@jugarhoy/api 1.1.26 → 1.1.28
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 +8 -0
- 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/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
|
@@ -39,6 +39,18 @@ export interface TeamMemberResponse {
|
|
|
39
39
|
* @memberof TeamMemberResponse
|
|
40
40
|
*/
|
|
41
41
|
userId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TeamMemberResponse
|
|
46
|
+
*/
|
|
47
|
+
firstName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TeamMemberResponse
|
|
52
|
+
*/
|
|
53
|
+
lastName?: string;
|
|
42
54
|
/**
|
|
43
55
|
*
|
|
44
56
|
* @type {string}
|
|
@@ -92,6 +104,8 @@ export function TeamMemberResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
92
104
|
|
|
93
105
|
'id': json['id'] == null ? undefined : json['id'],
|
|
94
106
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
107
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
108
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
95
109
|
'userName': json['userName'] == null ? undefined : json['userName'],
|
|
96
110
|
'userAvatarUrl': json['userAvatarUrl'] == null ? undefined : json['userAvatarUrl'],
|
|
97
111
|
'role': json['role'] == null ? undefined : TeamMemberRoleFromJSON(json['role']),
|
|
@@ -113,6 +127,8 @@ export function TeamMemberResponseToJSONTyped(value?: TeamMemberResponse | null,
|
|
|
113
127
|
|
|
114
128
|
'id': value['id'],
|
|
115
129
|
'userId': value['userId'],
|
|
130
|
+
'firstName': value['firstName'],
|
|
131
|
+
'lastName': value['lastName'],
|
|
116
132
|
'userName': value['userName'],
|
|
117
133
|
'userAvatarUrl': value['userAvatarUrl'],
|
|
118
134
|
'role': TeamMemberRoleToJSON(value['role']),
|
|
@@ -0,0 +1,209 @@
|
|
|
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 { TeamType } from './TeamType';
|
|
17
|
+
import {
|
|
18
|
+
TeamTypeFromJSON,
|
|
19
|
+
TeamTypeFromJSONTyped,
|
|
20
|
+
TeamTypeToJSON,
|
|
21
|
+
TeamTypeToJSONTyped,
|
|
22
|
+
} from './TeamType';
|
|
23
|
+
import type { TeamPreviewResponseCoachesInner } from './TeamPreviewResponseCoachesInner';
|
|
24
|
+
import {
|
|
25
|
+
TeamPreviewResponseCoachesInnerFromJSON,
|
|
26
|
+
TeamPreviewResponseCoachesInnerFromJSONTyped,
|
|
27
|
+
TeamPreviewResponseCoachesInnerToJSON,
|
|
28
|
+
TeamPreviewResponseCoachesInnerToJSONTyped,
|
|
29
|
+
} from './TeamPreviewResponseCoachesInner';
|
|
30
|
+
import type { TeamMemberRole } from './TeamMemberRole';
|
|
31
|
+
import {
|
|
32
|
+
TeamMemberRoleFromJSON,
|
|
33
|
+
TeamMemberRoleFromJSONTyped,
|
|
34
|
+
TeamMemberRoleToJSON,
|
|
35
|
+
TeamMemberRoleToJSONTyped,
|
|
36
|
+
} from './TeamMemberRole';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface TeamPreviewResponse
|
|
42
|
+
*/
|
|
43
|
+
export interface TeamPreviewResponse {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof TeamPreviewResponse
|
|
48
|
+
*/
|
|
49
|
+
id?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof TeamPreviewResponse
|
|
54
|
+
*/
|
|
55
|
+
name?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof TeamPreviewResponse
|
|
60
|
+
*/
|
|
61
|
+
sport?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {TeamType}
|
|
65
|
+
* @memberof TeamPreviewResponse
|
|
66
|
+
*/
|
|
67
|
+
type?: TeamType;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof TeamPreviewResponse
|
|
72
|
+
*/
|
|
73
|
+
avatarUrl?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof TeamPreviewResponse
|
|
78
|
+
*/
|
|
79
|
+
bannerUrl?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof TeamPreviewResponse
|
|
84
|
+
*/
|
|
85
|
+
bgColor?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof TeamPreviewResponse
|
|
90
|
+
*/
|
|
91
|
+
fgColor?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof TeamPreviewResponse
|
|
96
|
+
*/
|
|
97
|
+
inviteCode?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof TeamPreviewResponse
|
|
102
|
+
*/
|
|
103
|
+
memberCount?: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof TeamPreviewResponse
|
|
108
|
+
*/
|
|
109
|
+
clubPlaceName?: string;
|
|
110
|
+
/**
|
|
111
|
+
* First name + last name initial, e.g. "John C."
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof TeamPreviewResponse
|
|
114
|
+
*/
|
|
115
|
+
ownerDisplayName?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof TeamPreviewResponse
|
|
120
|
+
*/
|
|
121
|
+
ownerAvatarUrl?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Optional team bio / description
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof TeamPreviewResponse
|
|
126
|
+
*/
|
|
127
|
+
bio?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {TeamMemberRole}
|
|
131
|
+
* @memberof TeamPreviewResponse
|
|
132
|
+
*/
|
|
133
|
+
userRole?: TeamMemberRole;
|
|
134
|
+
/**
|
|
135
|
+
* List of active coaches in the team
|
|
136
|
+
* @type {Array<TeamPreviewResponseCoachesInner>}
|
|
137
|
+
* @memberof TeamPreviewResponse
|
|
138
|
+
*/
|
|
139
|
+
coaches?: Array<TeamPreviewResponseCoachesInner>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the TeamPreviewResponse interface.
|
|
146
|
+
*/
|
|
147
|
+
export function instanceOfTeamPreviewResponse(value: object): value is TeamPreviewResponse {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function TeamPreviewResponseFromJSON(json: any): TeamPreviewResponse {
|
|
152
|
+
return TeamPreviewResponseFromJSONTyped(json, false);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function TeamPreviewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamPreviewResponse {
|
|
156
|
+
if (json == null) {
|
|
157
|
+
return json;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
162
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
163
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
164
|
+
'type': json['type'] == null ? undefined : TeamTypeFromJSON(json['type']),
|
|
165
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
166
|
+
'bannerUrl': json['bannerUrl'] == null ? undefined : json['bannerUrl'],
|
|
167
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
168
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
169
|
+
'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
|
|
170
|
+
'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
|
|
171
|
+
'clubPlaceName': json['clubPlaceName'] == null ? undefined : json['clubPlaceName'],
|
|
172
|
+
'ownerDisplayName': json['ownerDisplayName'] == null ? undefined : json['ownerDisplayName'],
|
|
173
|
+
'ownerAvatarUrl': json['ownerAvatarUrl'] == null ? undefined : json['ownerAvatarUrl'],
|
|
174
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
175
|
+
'userRole': json['userRole'] == null ? undefined : TeamMemberRoleFromJSON(json['userRole']),
|
|
176
|
+
'coaches': json['coaches'] == null ? undefined : ((json['coaches'] as Array<any>).map(TeamPreviewResponseCoachesInnerFromJSON)),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function TeamPreviewResponseToJSON(json: any): TeamPreviewResponse {
|
|
181
|
+
return TeamPreviewResponseToJSONTyped(json, false);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function TeamPreviewResponseToJSONTyped(value?: TeamPreviewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
185
|
+
if (value == null) {
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return {
|
|
190
|
+
|
|
191
|
+
'id': value['id'],
|
|
192
|
+
'name': value['name'],
|
|
193
|
+
'sport': value['sport'],
|
|
194
|
+
'type': TeamTypeToJSON(value['type']),
|
|
195
|
+
'avatarUrl': value['avatarUrl'],
|
|
196
|
+
'bannerUrl': value['bannerUrl'],
|
|
197
|
+
'bgColor': value['bgColor'],
|
|
198
|
+
'fgColor': value['fgColor'],
|
|
199
|
+
'inviteCode': value['inviteCode'],
|
|
200
|
+
'memberCount': value['memberCount'],
|
|
201
|
+
'clubPlaceName': value['clubPlaceName'],
|
|
202
|
+
'ownerDisplayName': value['ownerDisplayName'],
|
|
203
|
+
'ownerAvatarUrl': value['ownerAvatarUrl'],
|
|
204
|
+
'bio': value['bio'],
|
|
205
|
+
'userRole': TeamMemberRoleToJSON(value['userRole']),
|
|
206
|
+
'coaches': value['coaches'] == null ? undefined : ((value['coaches'] as Array<any>).map(TeamPreviewResponseCoachesInnerToJSON)),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
@@ -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 TeamPreviewResponseCoachesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface TeamPreviewResponseCoachesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TeamPreviewResponseCoachesInner
|
|
26
|
+
*/
|
|
27
|
+
displayName?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TeamPreviewResponseCoachesInner
|
|
32
|
+
*/
|
|
33
|
+
avatarUrl?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TeamPreviewResponseCoachesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTeamPreviewResponseCoachesInner(value: object): value is TeamPreviewResponseCoachesInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function TeamPreviewResponseCoachesInnerFromJSON(json: any): TeamPreviewResponseCoachesInner {
|
|
44
|
+
return TeamPreviewResponseCoachesInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TeamPreviewResponseCoachesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamPreviewResponseCoachesInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'displayName': json['displayName'] == null ? undefined : json['displayName'],
|
|
54
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function TeamPreviewResponseCoachesInnerToJSON(json: any): TeamPreviewResponseCoachesInner {
|
|
59
|
+
return TeamPreviewResponseCoachesInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function TeamPreviewResponseCoachesInnerToJSONTyped(value?: TeamPreviewResponseCoachesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'displayName': value['displayName'],
|
|
70
|
+
'avatarUrl': value['avatarUrl'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/models/TeamResponse.ts
CHANGED
|
@@ -70,12 +70,36 @@ export interface TeamResponse {
|
|
|
70
70
|
* @memberof TeamResponse
|
|
71
71
|
*/
|
|
72
72
|
customerId?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TeamResponse
|
|
77
|
+
*/
|
|
78
|
+
clubPlaceId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Name of the associated club place, if any
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof TeamResponse
|
|
83
|
+
*/
|
|
84
|
+
clubPlaceName?: string;
|
|
73
85
|
/**
|
|
74
86
|
*
|
|
75
87
|
* @type {string}
|
|
76
88
|
* @memberof TeamResponse
|
|
77
89
|
*/
|
|
78
90
|
avatarUrl?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof TeamResponse
|
|
95
|
+
*/
|
|
96
|
+
bannerUrl?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<string>}
|
|
100
|
+
* @memberof TeamResponse
|
|
101
|
+
*/
|
|
102
|
+
categories?: Array<string>;
|
|
79
103
|
/**
|
|
80
104
|
* Background color (hex code)
|
|
81
105
|
* @type {string}
|
|
@@ -151,7 +175,11 @@ export function TeamResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
151
175
|
'type': json['type'] == null ? undefined : TeamTypeFromJSON(json['type']),
|
|
152
176
|
'nivel': json['nivel'] == null ? undefined : json['nivel'],
|
|
153
177
|
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
178
|
+
'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
|
|
179
|
+
'clubPlaceName': json['clubPlaceName'] == null ? undefined : json['clubPlaceName'],
|
|
154
180
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
181
|
+
'bannerUrl': json['bannerUrl'] == null ? undefined : json['bannerUrl'],
|
|
182
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
155
183
|
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
156
184
|
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
157
185
|
'createdById': json['createdById'] == null ? undefined : json['createdById'],
|
|
@@ -180,7 +208,11 @@ export function TeamResponseToJSONTyped(value?: TeamResponse | null, ignoreDiscr
|
|
|
180
208
|
'type': TeamTypeToJSON(value['type']),
|
|
181
209
|
'nivel': value['nivel'],
|
|
182
210
|
'customerId': value['customerId'],
|
|
211
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
212
|
+
'clubPlaceName': value['clubPlaceName'],
|
|
183
213
|
'avatarUrl': value['avatarUrl'],
|
|
214
|
+
'bannerUrl': value['bannerUrl'],
|
|
215
|
+
'categories': value['categories'],
|
|
184
216
|
'bgColor': value['bgColor'],
|
|
185
217
|
'fgColor': value['fgColor'],
|
|
186
218
|
'createdById': value['createdById'],
|
package/models/TeamType.ts
CHANGED
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Type of team (private team for matches or
|
|
17
|
+
* Type of team (private team for matches, training group with coach, or league team linked to a verified club)
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const TeamType = {
|
|
21
21
|
PrivateTeam: 'PRIVATE_TEAM',
|
|
22
|
-
TrainingGroup: 'TRAINING_GROUP'
|
|
22
|
+
TrainingGroup: 'TRAINING_GROUP',
|
|
23
|
+
LeagueTeam: 'LEAGUE_TEAM'
|
|
23
24
|
} as const;
|
|
24
25
|
export type TeamType = typeof TeamType[keyof typeof TeamType];
|
|
25
26
|
|
|
@@ -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 UpdateMemberPaymentConfigRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateMemberPaymentConfigRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Payment config ID to set, or null to use subscription default
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateMemberPaymentConfigRequest
|
|
26
|
+
*/
|
|
27
|
+
customerPaymentConfigId?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateMemberPaymentConfigRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateMemberPaymentConfigRequest(value: object): value is UpdateMemberPaymentConfigRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function UpdateMemberPaymentConfigRequestFromJSON(json: any): UpdateMemberPaymentConfigRequest {
|
|
38
|
+
return UpdateMemberPaymentConfigRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UpdateMemberPaymentConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMemberPaymentConfigRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'customerPaymentConfigId': json['customerPaymentConfigId'] == null ? undefined : json['customerPaymentConfigId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpdateMemberPaymentConfigRequestToJSON(json: any): UpdateMemberPaymentConfigRequest {
|
|
52
|
+
return UpdateMemberPaymentConfigRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateMemberPaymentConfigRequestToJSONTyped(value?: UpdateMemberPaymentConfigRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'customerPaymentConfigId': value['customerPaymentConfigId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -49,6 +49,12 @@ export interface UpdateRecurringGameRequest {
|
|
|
49
49
|
* @memberof UpdateRecurringGameRequest
|
|
50
50
|
*/
|
|
51
51
|
precio?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof UpdateRecurringGameRequest
|
|
56
|
+
*/
|
|
57
|
+
quota?: number;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {number}
|
|
@@ -96,6 +102,7 @@ export function UpdateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
96
102
|
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
97
103
|
'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
|
|
98
104
|
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
105
|
+
'quota': json['quota'] == null ? undefined : json['quota'],
|
|
99
106
|
'daysBeforeMatch': json['daysBeforeMatch'] == null ? undefined : json['daysBeforeMatch'],
|
|
100
107
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
101
108
|
};
|
|
@@ -117,6 +124,7 @@ export function UpdateRecurringGameRequestToJSONTyped(value?: UpdateRecurringGam
|
|
|
117
124
|
'duration': value['duration'],
|
|
118
125
|
'clubPlaceId': value['clubPlaceId'],
|
|
119
126
|
'precio': value['precio'],
|
|
127
|
+
'quota': value['quota'],
|
|
120
128
|
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
121
129
|
'isActive': value['isActive'],
|
|
122
130
|
};
|
|
@@ -55,12 +55,36 @@ export interface UpdateTeamRequest {
|
|
|
55
55
|
* @memberof UpdateTeamRequest
|
|
56
56
|
*/
|
|
57
57
|
isActive?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Team banner image URL (16:9 ratio)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UpdateTeamRequest
|
|
62
|
+
*/
|
|
63
|
+
bannerUrl?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Team categories (e.g. KIDS, ADULTS)
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof UpdateTeamRequest
|
|
68
|
+
*/
|
|
69
|
+
categories?: Array<string>;
|
|
58
70
|
/**
|
|
59
71
|
* Base64 encoded avatar image (data URL format)
|
|
60
72
|
* @type {string}
|
|
61
73
|
* @memberof UpdateTeamRequest
|
|
62
74
|
*/
|
|
63
75
|
avatarBase64?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Base64 encoded banner image (data URL format, 16:9 ratio)
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof UpdateTeamRequest
|
|
80
|
+
*/
|
|
81
|
+
bannerBase64?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Optional team bio / description (max 500 chars)
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof UpdateTeamRequest
|
|
86
|
+
*/
|
|
87
|
+
bio?: string;
|
|
64
88
|
}
|
|
65
89
|
|
|
66
90
|
/**
|
|
@@ -86,7 +110,11 @@ export function UpdateTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
86
110
|
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
87
111
|
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
88
112
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
113
|
+
'bannerUrl': json['bannerUrl'] == null ? undefined : json['bannerUrl'],
|
|
114
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
89
115
|
'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
|
|
116
|
+
'bannerBase64': json['bannerBase64'] == null ? undefined : json['bannerBase64'],
|
|
117
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
90
118
|
};
|
|
91
119
|
}
|
|
92
120
|
|
|
@@ -107,7 +135,11 @@ export function UpdateTeamRequestToJSONTyped(value?: UpdateTeamRequest | null, i
|
|
|
107
135
|
'bgColor': value['bgColor'],
|
|
108
136
|
'fgColor': value['fgColor'],
|
|
109
137
|
'isActive': value['isActive'],
|
|
138
|
+
'bannerUrl': value['bannerUrl'],
|
|
139
|
+
'categories': value['categories'],
|
|
110
140
|
'avatarBase64': value['avatarBase64'],
|
|
141
|
+
'bannerBase64': value['bannerBase64'],
|
|
142
|
+
'bio': value['bio'],
|
|
111
143
|
};
|
|
112
144
|
}
|
|
113
145
|
|
|
@@ -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 UploadBillReceipt200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface UploadBillReceipt200Response {
|
|
22
|
+
/**
|
|
23
|
+
* URL of the uploaded receipt
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UploadBillReceipt200Response
|
|
26
|
+
*/
|
|
27
|
+
receiptUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UploadBillReceipt200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUploadBillReceipt200Response(value: object): value is UploadBillReceipt200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function UploadBillReceipt200ResponseFromJSON(json: any): UploadBillReceipt200Response {
|
|
38
|
+
return UploadBillReceipt200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UploadBillReceipt200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadBillReceipt200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'receiptUrl': json['receiptUrl'] == null ? undefined : json['receiptUrl'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UploadBillReceipt200ResponseToJSON(json: any): UploadBillReceipt200Response {
|
|
52
|
+
return UploadBillReceipt200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UploadBillReceipt200ResponseToJSONTyped(value?: UploadBillReceipt200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'receiptUrl': value['receiptUrl'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/models/UserDto.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface UserDto {
|
|
|
56
56
|
* @type {Date}
|
|
57
57
|
* @memberof UserDto
|
|
58
58
|
*/
|
|
59
|
-
birthDate
|
|
59
|
+
birthDate?: Date;
|
|
60
60
|
/**
|
|
61
61
|
* Base64 encoded string of the user's profile picture
|
|
62
62
|
* @type {string}
|
|
@@ -122,7 +122,6 @@ export function instanceOfUserDto(value: object): value is UserDto {
|
|
|
122
122
|
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
123
123
|
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
124
124
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
125
|
-
if (!('birthDate' in value) || value['birthDate'] === undefined) return false;
|
|
126
125
|
return true;
|
|
127
126
|
}
|
|
128
127
|
|
|
@@ -140,7 +139,7 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U
|
|
|
140
139
|
'lastName': json['lastName'],
|
|
141
140
|
'email': json['email'],
|
|
142
141
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
143
|
-
'birthDate': (new Date(json['birthDate'])),
|
|
142
|
+
'birthDate': json['birthDate'] == null ? undefined : (new Date(json['birthDate'])),
|
|
144
143
|
'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
|
|
145
144
|
'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
|
|
146
145
|
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
@@ -168,7 +167,7 @@ export function UserDtoToJSONTyped(value?: UserDto | null, ignoreDiscriminator:
|
|
|
168
167
|
'lastName': value['lastName'],
|
|
169
168
|
'email': value['email'],
|
|
170
169
|
'phone': value['phone'],
|
|
171
|
-
'birthDate': ((value['birthDate']).toISOString().substring(0,10)),
|
|
170
|
+
'birthDate': value['birthDate'] == null ? undefined : ((value['birthDate']).toISOString().substring(0,10)),
|
|
172
171
|
'avatarBase64': value['avatarBase64'],
|
|
173
172
|
'instagramHandle': value['instagramHandle'],
|
|
174
173
|
'latitude': value['latitude'],
|