@drxsuperapp/sdk 1.1.83 → 1.1.84
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/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +123 -0
- package/.openapi-generator/FILES +37 -0
- package/apis/TournamentApi.ts +469 -0
- package/apis/YoutubeApi.ts +70 -0
- package/apis/index.ts +2 -0
- package/dist/apis/TournamentApi.d.ts +111 -0
- package/dist/apis/TournamentApi.js +324 -0
- package/dist/apis/YoutubeApi.d.ts +28 -0
- package/dist/apis/YoutubeApi.js +53 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/ApiTournamentGameTypesGet200Response.d.ts +51 -0
- package/dist/models/ApiTournamentGameTypesGet200Response.js +54 -0
- package/dist/models/ApiTournamentGameTypesGet200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentGameTypesGet200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentGet200Response.d.ts +51 -0
- package/dist/models/ApiTournamentGet200Response.js +54 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInner.d.ts +111 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInner.js +98 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreSoloInner.d.ts +50 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreSoloInner.js +55 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreTeamInner.d.ts +50 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreTeamInner.js +55 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerGameType.d.ts +56 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerGameType.js +59 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner.d.ts +86 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner.js +79 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesTeamInner.d.ts +74 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesTeamInner.js +71 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerPlayersInner.d.ts +50 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerPlayersInner.js +55 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerTeamsInner.d.ts +44 -0
- package/dist/models/ApiTournamentGet200ResponseResponseObjectItemsInnerTeamsInner.js +51 -0
- package/dist/models/ApiTournamentPadelIdDelete200Response.d.ts +51 -0
- package/dist/models/ApiTournamentPadelIdDelete200Response.js +54 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObject.d.ts +33 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObject.js +44 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObjectParams.d.ts +32 -0
- package/dist/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObjectParams.js +43 -0
- package/dist/models/ApiTournamentPadelIdGet200Response.d.ts +51 -0
- package/dist/models/ApiTournamentPadelIdGet200Response.js +54 -0
- package/dist/models/ApiTournamentPadelIdGet200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentPadelIdGet200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200Response.d.ts +51 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200Response.js +54 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObject.d.ts +57 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObject.js +60 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObjectFinalScores.d.ts +86 -0
- package/dist/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObjectFinalScores.js +79 -0
- package/dist/models/ApiTournamentPadelMatchSoloPut200Response.d.ts +51 -0
- package/dist/models/ApiTournamentPadelMatchSoloPut200Response.js +54 -0
- package/dist/models/ApiTournamentPadelMatchSoloPut200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentPadelMatchSoloPut200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentPadelMatchSoloPutRequest.d.ts +33 -0
- package/dist/models/ApiTournamentPadelMatchSoloPutRequest.js +44 -0
- package/dist/models/ApiTournamentPadelPost200Response.d.ts +51 -0
- package/dist/models/ApiTournamentPadelPost200Response.js +54 -0
- package/dist/models/ApiTournamentPadelPost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiTournamentPadelPost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiTournamentPadelPostRequest.d.ts +33 -0
- package/dist/models/ApiTournamentPadelPostRequest.js +44 -0
- package/dist/models/ApiTournamentPadelPostRequestBody.d.ts +64 -0
- package/dist/models/ApiTournamentPadelPostRequestBody.js +63 -0
- package/dist/models/ApiTournamentPadelPostRequestBodyPlayersInner.d.ts +38 -0
- package/dist/models/ApiTournamentPadelPostRequestBodyPlayersInner.js +45 -0
- package/dist/models/ApiTournamentPadelPostRequestBodyTeamsInner.d.ts +38 -0
- package/dist/models/ApiTournamentPadelPostRequestBodyTeamsInner.js +45 -0
- package/dist/models/ApiYoutubeDrxContentGet200Response.d.ts +51 -0
- package/dist/models/ApiYoutubeDrxContentGet200Response.js +54 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObject.d.ts +40 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObject.js +49 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.d.ts +110 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.js +85 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.d.ts +104 -0
- package/dist/models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.js +83 -0
- package/dist/models/index.d.ts +35 -0
- package/dist/models/index.js +35 -0
- package/models/ApiTournamentGameTypesGet200Response.ts +100 -0
- package/models/ApiTournamentGameTypesGet200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentGet200Response.ts +100 -0
- package/models/ApiTournamentGet200ResponseResponseObject.ts +110 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInner.ts +224 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreSoloInner.ts +93 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerFinalScoreTeamInner.ts +93 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerGameType.ts +102 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner.ts +147 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesTeamInner.ts +129 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerPlayersInner.ts +93 -0
- package/models/ApiTournamentGet200ResponseResponseObjectItemsInnerTeamsInner.ts +84 -0
- package/models/ApiTournamentPadelIdDelete200Response.ts +100 -0
- package/models/ApiTournamentPadelIdDelete200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObject.ts +74 -0
- package/models/ApiTournamentPadelIdDelete200ResponseResponseObjectResponseObjectParams.ts +66 -0
- package/models/ApiTournamentPadelIdGet200Response.ts +100 -0
- package/models/ApiTournamentPadelIdGet200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentPadelLeaderboardIdGet200Response.ts +100 -0
- package/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObject.ts +110 -0
- package/models/ApiTournamentPadelLeaderboardIdGet200ResponseResponseObjectResponseObjectFinalScores.ts +147 -0
- package/models/ApiTournamentPadelMatchSoloPut200Response.ts +100 -0
- package/models/ApiTournamentPadelMatchSoloPut200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentPadelMatchSoloPutRequest.ts +74 -0
- package/models/ApiTournamentPadelPost200Response.ts +100 -0
- package/models/ApiTournamentPadelPost200ResponseResponseObject.ts +100 -0
- package/models/ApiTournamentPadelPostRequest.ts +74 -0
- package/models/ApiTournamentPadelPostRequestBody.ts +125 -0
- package/models/ApiTournamentPadelPostRequestBodyPlayersInner.ts +74 -0
- package/models/ApiTournamentPadelPostRequestBodyTeamsInner.ts +74 -0
- package/models/ApiYoutubeDrxContentGet200Response.ts +100 -0
- package/models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts +90 -0
- package/models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts +178 -0
- package/models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts +170 -0
- package/models/index.ts +35 -0
- package/package.json +1 -1
- package/deploy.log +0 -116
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelMatchSoloPut200ResponseResponseObject } from './ApiTournamentPadelMatchSoloPut200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelMatchSoloPut200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelMatchSoloPut200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelMatchSoloPut200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiTournamentPadelMatchSoloPut200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiTournamentPadelMatchSoloPut200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiTournamentPadelMatchSoloPut200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiTournamentPadelMatchSoloPut200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiTournamentPadelMatchSoloPut200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiTournamentPadelMatchSoloPut200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiTournamentPadelMatchSoloPut200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiTournamentPadelMatchSoloPut200Response(value: object): value is ApiTournamentPadelMatchSoloPut200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseFromJSON(json: any): ApiTournamentPadelMatchSoloPut200Response {
|
|
67
|
+
return ApiTournamentPadelMatchSoloPut200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelMatchSoloPut200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseToJSON(json: any): ApiTournamentPadelMatchSoloPut200Response {
|
|
84
|
+
return ApiTournamentPadelMatchSoloPut200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseToJSONTyped(value?: ApiTournamentPadelMatchSoloPut200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelMatchSoloPutRequest } from './ApiTournamentPadelMatchSoloPutRequest';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelMatchSoloPutRequestFromJSON,
|
|
19
|
+
ApiTournamentPadelMatchSoloPutRequestFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelMatchSoloPutRequestToJSON,
|
|
21
|
+
ApiTournamentPadelMatchSoloPutRequestToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelMatchSoloPutRequest';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelMatchSoloPut200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelMatchSoloPut200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiTournamentPadelMatchSoloPut200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiTournamentPadelMatchSoloPut200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiTournamentPadelMatchSoloPutRequest}
|
|
45
|
+
* @memberof ApiTournamentPadelMatchSoloPut200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiTournamentPadelMatchSoloPutRequest;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiTournamentPadelMatchSoloPut200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiTournamentPadelMatchSoloPut200ResponseResponseObject interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiTournamentPadelMatchSoloPut200ResponseResponseObject(value: object): value is ApiTournamentPadelMatchSoloPut200ResponseResponseObject {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSON(json: any): ApiTournamentPadelMatchSoloPut200ResponseResponseObject {
|
|
67
|
+
return ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelMatchSoloPut200ResponseResponseObject {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiTournamentPadelMatchSoloPutRequestFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSON(json: any): ApiTournamentPadelMatchSoloPut200ResponseResponseObject {
|
|
84
|
+
return ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTournamentPadelMatchSoloPut200ResponseResponseObjectToJSONTyped(value?: ApiTournamentPadelMatchSoloPut200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiTournamentPadelMatchSoloPutRequestToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner } from './ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerFromJSON,
|
|
19
|
+
ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerFromJSONTyped,
|
|
20
|
+
ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerToJSON,
|
|
21
|
+
ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerToJSONTyped,
|
|
22
|
+
} from './ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelMatchSoloPutRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelMatchSoloPutRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner}
|
|
33
|
+
* @memberof ApiTournamentPadelMatchSoloPutRequest
|
|
34
|
+
*/
|
|
35
|
+
body: ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInner;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiTournamentPadelMatchSoloPutRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiTournamentPadelMatchSoloPutRequest(value: object): value is ApiTournamentPadelMatchSoloPutRequest {
|
|
42
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiTournamentPadelMatchSoloPutRequestFromJSON(json: any): ApiTournamentPadelMatchSoloPutRequest {
|
|
47
|
+
return ApiTournamentPadelMatchSoloPutRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiTournamentPadelMatchSoloPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelMatchSoloPutRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'body': ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerFromJSON(json['body']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiTournamentPadelMatchSoloPutRequestToJSON(json: any): ApiTournamentPadelMatchSoloPutRequest {
|
|
61
|
+
return ApiTournamentPadelMatchSoloPutRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiTournamentPadelMatchSoloPutRequestToJSONTyped(value?: ApiTournamentPadelMatchSoloPutRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'body': ApiTournamentGet200ResponseResponseObjectItemsInnerMatchesSoloInnerToJSON(value['body']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelPost200ResponseResponseObject } from './ApiTournamentPadelPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiTournamentPadelPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiTournamentPadelPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiTournamentPadelPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiTournamentPadelPost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiTournamentPadelPost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiTournamentPadelPost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiTournamentPadelPost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiTournamentPadelPost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiTournamentPadelPost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiTournamentPadelPost200Response(value: object): value is ApiTournamentPadelPost200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiTournamentPadelPost200ResponseFromJSON(json: any): ApiTournamentPadelPost200Response {
|
|
67
|
+
return ApiTournamentPadelPost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiTournamentPadelPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelPost200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiTournamentPadelPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiTournamentPadelPost200ResponseToJSON(json: any): ApiTournamentPadelPost200Response {
|
|
84
|
+
return ApiTournamentPadelPost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTournamentPadelPost200ResponseToJSONTyped(value?: ApiTournamentPadelPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiTournamentPadelPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelPostRequest } from './ApiTournamentPadelPostRequest';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelPostRequestFromJSON,
|
|
19
|
+
ApiTournamentPadelPostRequestFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelPostRequestToJSON,
|
|
21
|
+
ApiTournamentPadelPostRequestToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelPostRequest';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelPost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelPost200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiTournamentPadelPost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiTournamentPadelPost200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiTournamentPadelPostRequest}
|
|
45
|
+
* @memberof ApiTournamentPadelPost200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiTournamentPadelPostRequest;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiTournamentPadelPost200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiTournamentPadelPost200ResponseResponseObject interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiTournamentPadelPost200ResponseResponseObject(value: object): value is ApiTournamentPadelPost200ResponseResponseObject {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiTournamentPadelPost200ResponseResponseObjectFromJSON(json: any): ApiTournamentPadelPost200ResponseResponseObject {
|
|
67
|
+
return ApiTournamentPadelPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiTournamentPadelPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelPost200ResponseResponseObject {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiTournamentPadelPostRequestFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiTournamentPadelPost200ResponseResponseObjectToJSON(json: any): ApiTournamentPadelPost200ResponseResponseObject {
|
|
84
|
+
return ApiTournamentPadelPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTournamentPadelPost200ResponseResponseObjectToJSONTyped(value?: ApiTournamentPadelPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiTournamentPadelPostRequestToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelPostRequestBody } from './ApiTournamentPadelPostRequestBody';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelPostRequestBodyFromJSON,
|
|
19
|
+
ApiTournamentPadelPostRequestBodyFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelPostRequestBodyToJSON,
|
|
21
|
+
ApiTournamentPadelPostRequestBodyToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelPostRequestBody';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiTournamentPadelPostRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiTournamentPadelPostRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiTournamentPadelPostRequestBody}
|
|
33
|
+
* @memberof ApiTournamentPadelPostRequest
|
|
34
|
+
*/
|
|
35
|
+
body: ApiTournamentPadelPostRequestBody;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiTournamentPadelPostRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiTournamentPadelPostRequest(value: object): value is ApiTournamentPadelPostRequest {
|
|
42
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiTournamentPadelPostRequestFromJSON(json: any): ApiTournamentPadelPostRequest {
|
|
47
|
+
return ApiTournamentPadelPostRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiTournamentPadelPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelPostRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'body': ApiTournamentPadelPostRequestBodyFromJSON(json['body']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiTournamentPadelPostRequestToJSON(json: any): ApiTournamentPadelPostRequest {
|
|
61
|
+
return ApiTournamentPadelPostRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiTournamentPadelPostRequestToJSONTyped(value?: ApiTournamentPadelPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'body': ApiTournamentPadelPostRequestBodyToJSON(value['body']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiTournamentPadelPostRequestBodyTeamsInner } from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiTournamentPadelPostRequestBodyTeamsInnerFromJSON,
|
|
19
|
+
ApiTournamentPadelPostRequestBodyTeamsInnerFromJSONTyped,
|
|
20
|
+
ApiTournamentPadelPostRequestBodyTeamsInnerToJSON,
|
|
21
|
+
ApiTournamentPadelPostRequestBodyTeamsInnerToJSONTyped,
|
|
22
|
+
} from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
23
|
+
import type { ApiTournamentPadelPostRequestBodyPlayersInner } from './ApiTournamentPadelPostRequestBodyPlayersInner';
|
|
24
|
+
import {
|
|
25
|
+
ApiTournamentPadelPostRequestBodyPlayersInnerFromJSON,
|
|
26
|
+
ApiTournamentPadelPostRequestBodyPlayersInnerFromJSONTyped,
|
|
27
|
+
ApiTournamentPadelPostRequestBodyPlayersInnerToJSON,
|
|
28
|
+
ApiTournamentPadelPostRequestBodyPlayersInnerToJSONTyped,
|
|
29
|
+
} from './ApiTournamentPadelPostRequestBodyPlayersInner';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiTournamentPadelPostRequestBody
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiTournamentPadelPostRequestBody {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
41
|
+
*/
|
|
42
|
+
title: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
47
|
+
*/
|
|
48
|
+
gameType: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
53
|
+
*/
|
|
54
|
+
courtsAmount: number | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
59
|
+
*/
|
|
60
|
+
userId?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<ApiTournamentPadelPostRequestBodyPlayersInner>}
|
|
64
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
65
|
+
*/
|
|
66
|
+
players: Array<ApiTournamentPadelPostRequestBodyPlayersInner>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<ApiTournamentPadelPostRequestBodyTeamsInner>}
|
|
70
|
+
* @memberof ApiTournamentPadelPostRequestBody
|
|
71
|
+
*/
|
|
72
|
+
teams: Array<ApiTournamentPadelPostRequestBodyTeamsInner>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ApiTournamentPadelPostRequestBody interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfApiTournamentPadelPostRequestBody(value: object): value is ApiTournamentPadelPostRequestBody {
|
|
79
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
80
|
+
if (!('gameType' in value) || value['gameType'] === undefined) return false;
|
|
81
|
+
if (!('courtsAmount' in value) || value['courtsAmount'] === undefined) return false;
|
|
82
|
+
if (!('players' in value) || value['players'] === undefined) return false;
|
|
83
|
+
if (!('teams' in value) || value['teams'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiTournamentPadelPostRequestBodyFromJSON(json: any): ApiTournamentPadelPostRequestBody {
|
|
88
|
+
return ApiTournamentPadelPostRequestBodyFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ApiTournamentPadelPostRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiTournamentPadelPostRequestBody {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'title': json['title'],
|
|
98
|
+
'gameType': json['game_type'],
|
|
99
|
+
'courtsAmount': json['courts_amount'],
|
|
100
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
101
|
+
'players': ((json['players'] as Array<any>).map(ApiTournamentPadelPostRequestBodyPlayersInnerFromJSON)),
|
|
102
|
+
'teams': ((json['teams'] as Array<any>).map(ApiTournamentPadelPostRequestBodyTeamsInnerFromJSON)),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function ApiTournamentPadelPostRequestBodyToJSON(json: any): ApiTournamentPadelPostRequestBody {
|
|
107
|
+
return ApiTournamentPadelPostRequestBodyToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ApiTournamentPadelPostRequestBodyToJSONTyped(value?: ApiTournamentPadelPostRequestBody | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'title': value['title'],
|
|
118
|
+
'game_type': value['gameType'],
|
|
119
|
+
'courts_amount': value['courtsAmount'],
|
|
120
|
+
'user_id': value['userId'],
|
|
121
|
+
'players': ((value['players'] as Array<any>).map(ApiTournamentPadelPostRequestBodyPlayersInnerToJSON)),
|
|
122
|
+
'teams': ((value['teams'] as Array<any>).map(ApiTournamentPadelPostRequestBodyTeamsInnerToJSON)),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|