@jugarhoy/api 1.0.3 → 1.0.5

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 (50) hide show
  1. package/apis/AdminClubsApi.ts +118 -0
  2. package/apis/AdminFeaturesApi.ts +264 -0
  3. package/apis/AdminPlaySpotsApi.ts +61 -0
  4. package/apis/AdminReservationsApi.ts +54 -0
  5. package/apis/AdminSubscriptionBillingApi.ts +331 -0
  6. package/apis/AdminSubscriptionsApi.ts +312 -5
  7. package/apis/AuthApi.ts +117 -0
  8. package/apis/index.ts +3 -0
  9. package/models/AddCoachToSubscriptionRequest.ts +66 -0
  10. package/models/AddPlayerToSubscriptionRequest.ts +66 -0
  11. package/models/BlockSpotItem.ts +75 -0
  12. package/models/BlockSpots200Response.ts +73 -0
  13. package/models/BlockSpotsCommand.ts +109 -0
  14. package/models/ChargeOn.ts +1 -1
  15. package/models/ClonePlaySpotRequest.ts +75 -0
  16. package/models/CreateClubForSuperadminParams.ts +227 -0
  17. package/models/CreateClubForSuperadminResponse.ts +83 -0
  18. package/models/CreateClubForSuperadminResponseResult.ts +111 -0
  19. package/models/CreateClubForSuperadminResponseResultAdminUser.ts +73 -0
  20. package/models/CreateFeatureRequest.ts +103 -0
  21. package/models/ExtendSubscriptions200Response.ts +89 -0
  22. package/models/ExtendSubscriptions200ResponseDetailsInner.ts +81 -0
  23. package/models/Feature.ts +18 -0
  24. package/models/GenerateSubscriptionBillsRequest.ts +65 -0
  25. package/models/GetAllShifts200ResponseInner.ts +8 -0
  26. package/models/LinkPaymentToBillRequest.ts +66 -0
  27. package/models/ListAllClubsResponse.ts +83 -0
  28. package/models/ListAllClubsResponseResult.ts +81 -0
  29. package/models/PlayPrice.ts +2 -2
  30. package/models/PlaySpotShift.ts +8 -0
  31. package/models/PlaySubscription.ts +41 -0
  32. package/models/PlaySubscriptionCreateDto.ts +37 -3
  33. package/models/PlaySubscriptionListDto.ts +240 -0
  34. package/models/RequestPasswordReset200Response.ts +65 -0
  35. package/models/RequestPasswordReset500Response.ts +65 -0
  36. package/models/RequestPasswordResetRequest.ts +66 -0
  37. package/models/Reserve.ts +15 -0
  38. package/models/ReserveType.ts +1 -0
  39. package/models/ResetPassword200Response.ts +73 -0
  40. package/models/ResetPassword400Response.ts +79 -0
  41. package/models/ResetPassword500Response.ts +65 -0
  42. package/models/ResetPasswordRequest.ts +75 -0
  43. package/models/Sport.ts +15 -6
  44. package/models/SubscriptionBill.ts +198 -0
  45. package/models/UpdateBillRequest.ts +91 -0
  46. package/models/UpdateFeatureRequest.ts +91 -0
  47. package/models/UpdateReservationAdminRequest.ts +8 -0
  48. package/models/UserRole.ts +2 -1
  49. package/models/index.ts +28 -0
  50. package/package.json +1 -1
@@ -0,0 +1,66 @@
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 AddPlayerToSubscriptionRequest
20
+ */
21
+ export interface AddPlayerToSubscriptionRequest {
22
+ /**
23
+ * ID of the player to add
24
+ * @type {string}
25
+ * @memberof AddPlayerToSubscriptionRequest
26
+ */
27
+ playerId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AddPlayerToSubscriptionRequest interface.
32
+ */
33
+ export function instanceOfAddPlayerToSubscriptionRequest(value: object): value is AddPlayerToSubscriptionRequest {
34
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AddPlayerToSubscriptionRequestFromJSON(json: any): AddPlayerToSubscriptionRequest {
39
+ return AddPlayerToSubscriptionRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AddPlayerToSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddPlayerToSubscriptionRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'playerId': json['playerId'],
49
+ };
50
+ }
51
+
52
+ export function AddPlayerToSubscriptionRequestToJSON(json: any): AddPlayerToSubscriptionRequest {
53
+ return AddPlayerToSubscriptionRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AddPlayerToSubscriptionRequestToJSONTyped(value?: AddPlayerToSubscriptionRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'playerId': value['playerId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,75 @@
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 BlockSpotItem
20
+ */
21
+ export interface BlockSpotItem {
22
+ /**
23
+ * ID of the play spot to block
24
+ * @type {string}
25
+ * @memberof BlockSpotItem
26
+ */
27
+ playSpotId: string;
28
+ /**
29
+ * Start date and time of the block
30
+ * @type {Date}
31
+ * @memberof BlockSpotItem
32
+ */
33
+ rentedFrom: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BlockSpotItem interface.
38
+ */
39
+ export function instanceOfBlockSpotItem(value: object): value is BlockSpotItem {
40
+ if (!('playSpotId' in value) || value['playSpotId'] === undefined) return false;
41
+ if (!('rentedFrom' in value) || value['rentedFrom'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BlockSpotItemFromJSON(json: any): BlockSpotItem {
46
+ return BlockSpotItemFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BlockSpotItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockSpotItem {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'playSpotId': json['playSpotId'],
56
+ 'rentedFrom': (new Date(json['rentedFrom'])),
57
+ };
58
+ }
59
+
60
+ export function BlockSpotItemToJSON(json: any): BlockSpotItem {
61
+ return BlockSpotItemToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BlockSpotItemToJSONTyped(value?: BlockSpotItem | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'playSpotId': value['playSpotId'],
72
+ 'rentedFrom': ((value['rentedFrom']).toISOString()),
73
+ };
74
+ }
75
+
@@ -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
+ import type { Reserve } from './Reserve';
17
+ import {
18
+ ReserveFromJSON,
19
+ ReserveFromJSONTyped,
20
+ ReserveToJSON,
21
+ ReserveToJSONTyped,
22
+ } from './Reserve';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BlockSpots200Response
28
+ */
29
+ export interface BlockSpots200Response {
30
+ /**
31
+ * List of created block reservations
32
+ * @type {Array<Reserve>}
33
+ * @memberof BlockSpots200Response
34
+ */
35
+ blockedReservations?: Array<Reserve>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the BlockSpots200Response interface.
40
+ */
41
+ export function instanceOfBlockSpots200Response(value: object): value is BlockSpots200Response {
42
+ return true;
43
+ }
44
+
45
+ export function BlockSpots200ResponseFromJSON(json: any): BlockSpots200Response {
46
+ return BlockSpots200ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BlockSpots200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockSpots200Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'blockedReservations': json['blockedReservations'] == null ? undefined : ((json['blockedReservations'] as Array<any>).map(ReserveFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function BlockSpots200ResponseToJSON(json: any): BlockSpots200Response {
60
+ return BlockSpots200ResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function BlockSpots200ResponseToJSONTyped(value?: BlockSpots200Response | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'blockedReservations': value['blockedReservations'] == null ? undefined : ((value['blockedReservations'] as Array<any>).map(ReserveToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,109 @@
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 { BlockSpotItem } from './BlockSpotItem';
17
+ import {
18
+ BlockSpotItemFromJSON,
19
+ BlockSpotItemFromJSONTyped,
20
+ BlockSpotItemToJSON,
21
+ BlockSpotItemToJSONTyped,
22
+ } from './BlockSpotItem';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface BlockSpotsCommand
28
+ */
29
+ export interface BlockSpotsCommand {
30
+ /**
31
+ * ID of the location where spots will be blocked
32
+ * @type {string}
33
+ * @memberof BlockSpotsCommand
34
+ */
35
+ locationId: string;
36
+ /**
37
+ * List of spots to block with their start times
38
+ * @type {Array<BlockSpotItem>}
39
+ * @memberof BlockSpotsCommand
40
+ */
41
+ spots: Array<BlockSpotItem>;
42
+ /**
43
+ * Duration of each block in minutes (default 60)
44
+ * @type {number}
45
+ * @memberof BlockSpotsCommand
46
+ */
47
+ durationMinutes: number;
48
+ /**
49
+ * Optional reason for blocking (applied to all blocks)
50
+ * @type {string}
51
+ * @memberof BlockSpotsCommand
52
+ */
53
+ notes?: string | null;
54
+ /**
55
+ * ID of the admin user creating the blocks
56
+ * @type {string}
57
+ * @memberof BlockSpotsCommand
58
+ */
59
+ userId: string;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the BlockSpotsCommand interface.
64
+ */
65
+ export function instanceOfBlockSpotsCommand(value: object): value is BlockSpotsCommand {
66
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
67
+ if (!('spots' in value) || value['spots'] === undefined) return false;
68
+ if (!('durationMinutes' in value) || value['durationMinutes'] === undefined) return false;
69
+ if (!('userId' in value) || value['userId'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function BlockSpotsCommandFromJSON(json: any): BlockSpotsCommand {
74
+ return BlockSpotsCommandFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function BlockSpotsCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockSpotsCommand {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'locationId': json['locationId'],
84
+ 'spots': ((json['spots'] as Array<any>).map(BlockSpotItemFromJSON)),
85
+ 'durationMinutes': json['durationMinutes'],
86
+ 'notes': json['notes'] == null ? undefined : json['notes'],
87
+ 'userId': json['userId'],
88
+ };
89
+ }
90
+
91
+ export function BlockSpotsCommandToJSON(json: any): BlockSpotsCommand {
92
+ return BlockSpotsCommandToJSONTyped(json, false);
93
+ }
94
+
95
+ export function BlockSpotsCommandToJSONTyped(value?: BlockSpotsCommand | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'locationId': value['locationId'],
103
+ 'spots': ((value['spots'] as Array<any>).map(BlockSpotItemToJSON)),
104
+ 'durationMinutes': value['durationMinutes'],
105
+ 'notes': value['notes'],
106
+ 'userId': value['userId'],
107
+ };
108
+ }
109
+
@@ -19,7 +19,7 @@
19
19
  */
20
20
  export const ChargeOn = {
21
21
  Session: 'session',
22
- Monthly: 'monthly'
22
+ Subscription: 'subscription'
23
23
  } as const;
24
24
  export type ChargeOn = typeof ChargeOn[keyof typeof ChargeOn];
25
25
 
@@ -0,0 +1,75 @@
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 ClonePlaySpotRequest
20
+ */
21
+ export interface ClonePlaySpotRequest {
22
+ /**
23
+ * Name for the cloned play spot
24
+ * @type {string}
25
+ * @memberof ClonePlaySpotRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ * Unique code for the cloned play spot
30
+ * @type {string}
31
+ * @memberof ClonePlaySpotRequest
32
+ */
33
+ code: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ClonePlaySpotRequest interface.
38
+ */
39
+ export function instanceOfClonePlaySpotRequest(value: object): value is ClonePlaySpotRequest {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('code' in value) || value['code'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ClonePlaySpotRequestFromJSON(json: any): ClonePlaySpotRequest {
46
+ return ClonePlaySpotRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ClonePlaySpotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClonePlaySpotRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'code': json['code'],
57
+ };
58
+ }
59
+
60
+ export function ClonePlaySpotRequestToJSON(json: any): ClonePlaySpotRequest {
61
+ return ClonePlaySpotRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ClonePlaySpotRequestToJSONTyped(value?: ClonePlaySpotRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'code': value['code'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,227 @@
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
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateClubForSuperadminParams
28
+ */
29
+ export interface CreateClubForSuperadminParams {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateClubForSuperadminParams
34
+ */
35
+ clubName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateClubForSuperadminParams
40
+ */
41
+ clubCode: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateClubForSuperadminParams
46
+ */
47
+ sedeName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateClubForSuperadminParams
52
+ */
53
+ sedeCode: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateClubForSuperadminParams
58
+ */
59
+ address: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CreateClubForSuperadminParams
64
+ */
65
+ googleMapsUrl: string;
66
+ /**
67
+ *
68
+ * @type {Array<Sport>}
69
+ * @memberof CreateClubForSuperadminParams
70
+ */
71
+ sports: Array<Sport>;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CreateClubForSuperadminParams
76
+ */
77
+ phone: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CreateClubForSuperadminParams
82
+ */
83
+ website: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof CreateClubForSuperadminParams
88
+ */
89
+ email: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof CreateClubForSuperadminParams
94
+ */
95
+ instagramPage: string;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof CreateClubForSuperadminParams
100
+ */
101
+ latitude: number;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof CreateClubForSuperadminParams
106
+ */
107
+ longitude: number;
108
+ /**
109
+ *
110
+ * @type {string}
111
+ * @memberof CreateClubForSuperadminParams
112
+ */
113
+ placeId: string;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof CreateClubForSuperadminParams
118
+ */
119
+ adminEmail: string;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof CreateClubForSuperadminParams
124
+ */
125
+ adminPassword: string;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof CreateClubForSuperadminParams
130
+ */
131
+ adminFirstName: string;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof CreateClubForSuperadminParams
136
+ */
137
+ adminLastName: string;
138
+ }
139
+
140
+ /**
141
+ * Check if a given object implements the CreateClubForSuperadminParams interface.
142
+ */
143
+ export function instanceOfCreateClubForSuperadminParams(value: object): value is CreateClubForSuperadminParams {
144
+ if (!('clubName' in value) || value['clubName'] === undefined) return false;
145
+ if (!('clubCode' in value) || value['clubCode'] === undefined) return false;
146
+ if (!('sedeName' in value) || value['sedeName'] === undefined) return false;
147
+ if (!('sedeCode' in value) || value['sedeCode'] === undefined) return false;
148
+ if (!('address' in value) || value['address'] === undefined) return false;
149
+ if (!('googleMapsUrl' in value) || value['googleMapsUrl'] === undefined) return false;
150
+ if (!('sports' in value) || value['sports'] === undefined) return false;
151
+ if (!('phone' in value) || value['phone'] === undefined) return false;
152
+ if (!('website' in value) || value['website'] === undefined) return false;
153
+ if (!('email' in value) || value['email'] === undefined) return false;
154
+ if (!('instagramPage' in value) || value['instagramPage'] === undefined) return false;
155
+ if (!('latitude' in value) || value['latitude'] === undefined) return false;
156
+ if (!('longitude' in value) || value['longitude'] === undefined) return false;
157
+ if (!('placeId' in value) || value['placeId'] === undefined) return false;
158
+ if (!('adminEmail' in value) || value['adminEmail'] === undefined) return false;
159
+ if (!('adminPassword' in value) || value['adminPassword'] === undefined) return false;
160
+ if (!('adminFirstName' in value) || value['adminFirstName'] === undefined) return false;
161
+ if (!('adminLastName' in value) || value['adminLastName'] === undefined) return false;
162
+ return true;
163
+ }
164
+
165
+ export function CreateClubForSuperadminParamsFromJSON(json: any): CreateClubForSuperadminParams {
166
+ return CreateClubForSuperadminParamsFromJSONTyped(json, false);
167
+ }
168
+
169
+ export function CreateClubForSuperadminParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateClubForSuperadminParams {
170
+ if (json == null) {
171
+ return json;
172
+ }
173
+ return {
174
+
175
+ 'clubName': json['clubName'],
176
+ 'clubCode': json['clubCode'],
177
+ 'sedeName': json['sedeName'],
178
+ 'sedeCode': json['sedeCode'],
179
+ 'address': json['address'],
180
+ 'googleMapsUrl': json['googleMapsUrl'],
181
+ 'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
182
+ 'phone': json['phone'],
183
+ 'website': json['website'],
184
+ 'email': json['email'],
185
+ 'instagramPage': json['instagramPage'],
186
+ 'latitude': json['latitude'],
187
+ 'longitude': json['longitude'],
188
+ 'placeId': json['placeId'],
189
+ 'adminEmail': json['adminEmail'],
190
+ 'adminPassword': json['adminPassword'],
191
+ 'adminFirstName': json['adminFirstName'],
192
+ 'adminLastName': json['adminLastName'],
193
+ };
194
+ }
195
+
196
+ export function CreateClubForSuperadminParamsToJSON(json: any): CreateClubForSuperadminParams {
197
+ return CreateClubForSuperadminParamsToJSONTyped(json, false);
198
+ }
199
+
200
+ export function CreateClubForSuperadminParamsToJSONTyped(value?: CreateClubForSuperadminParams | null, ignoreDiscriminator: boolean = false): any {
201
+ if (value == null) {
202
+ return value;
203
+ }
204
+
205
+ return {
206
+
207
+ 'clubName': value['clubName'],
208
+ 'clubCode': value['clubCode'],
209
+ 'sedeName': value['sedeName'],
210
+ 'sedeCode': value['sedeCode'],
211
+ 'address': value['address'],
212
+ 'googleMapsUrl': value['googleMapsUrl'],
213
+ 'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
214
+ 'phone': value['phone'],
215
+ 'website': value['website'],
216
+ 'email': value['email'],
217
+ 'instagramPage': value['instagramPage'],
218
+ 'latitude': value['latitude'],
219
+ 'longitude': value['longitude'],
220
+ 'placeId': value['placeId'],
221
+ 'adminEmail': value['adminEmail'],
222
+ 'adminPassword': value['adminPassword'],
223
+ 'adminFirstName': value['adminFirstName'],
224
+ 'adminLastName': value['adminLastName'],
225
+ };
226
+ }
227
+