@drxsuperapp/sdk 1.1.18 → 1.1.20
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/.openapi-generator/FILES +28 -32
- package/apis/ExampleApi.ts +212 -0
- package/apis/HealthCheckApi.ts +54 -0
- package/apis/NewsApi.ts +115 -0
- package/apis/PadelApi.ts +56 -0
- package/apis/index.ts +6 -0
- package/deploy.log +35 -38
- package/dist/apis/ExampleApi.d.ts +65 -0
- package/dist/apis/ExampleApi.js +133 -0
- package/dist/apis/HealthCheckApi.d.ts +24 -0
- package/dist/apis/HealthCheckApi.js +39 -0
- package/dist/apis/NewsApi.d.ts +39 -0
- package/dist/apis/NewsApi.js +73 -0
- package/dist/apis/PadelApi.d.ts +26 -0
- package/dist/apis/PadelApi.js +41 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +6 -0
- package/dist/index.d.ts +3 -13
- package/dist/index.js +3 -13
- package/dist/models/ApiExamplesGet200ResponseInner.d.ts +56 -0
- package/dist/models/ApiExamplesGet200ResponseInner.js +59 -0
- package/dist/models/ApiExamplesIdPutRequest.d.ts +38 -0
- package/dist/models/ApiExamplesIdPutRequest.js +43 -0
- package/dist/models/ApiExamplesPostRequest.d.ts +38 -0
- package/dist/models/ApiExamplesPostRequest.js +47 -0
- package/dist/models/ApiHealthCheckGet200Response.d.ts +50 -0
- package/dist/models/ApiHealthCheckGet200Response.js +53 -0
- package/dist/models/ApiNewsGet200Response.d.ts +51 -0
- package/dist/models/ApiNewsGet200Response.js +54 -0
- package/dist/models/ApiNewsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiNewsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiNewsGet200ResponseResponseObjectItemsInner.d.ts +62 -0
- package/dist/models/ApiNewsGet200ResponseResponseObjectItemsInner.js +63 -0
- package/dist/models/ApiNewsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiNewsIdGet200Response.js +54 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObject.d.ts +106 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObject.js +93 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.d.ts +33 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.js +44 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.d.ts +44 -0
- package/dist/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.js +51 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInner.d.ts +120 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInner.js +103 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayers.d.ts +39 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayers.js +48 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.d.ts +50 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.js +55 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerScoreInner.d.ts +38 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerScoreInner.js +47 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSets.d.ts +52 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSets.js +57 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.d.ts +39 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.js +48 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.d.ts +44 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.js +51 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStats.d.ts +78 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStats.js +68 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.d.ts +32 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.js +43 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsMatchValue.d.ts +38 -0
- package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsMatchValue.js +47 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +23 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +333 -0
- package/index.ts +3 -16
- package/models/ApiExamplesGet200ResponseInner.ts +102 -0
- package/models/ApiExamplesIdPutRequest.ts +73 -0
- package/models/ApiExamplesPostRequest.ts +75 -0
- package/models/ApiHealthCheckGet200Response.ts +92 -0
- package/models/ApiNewsGet200Response.ts +100 -0
- package/models/ApiNewsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiNewsGet200ResponseResponseObjectItemsInner.ts +111 -0
- package/models/ApiNewsIdGet200Response.ts +100 -0
- package/models/ApiNewsIdGet200ResponseResponseObject.ts +189 -0
- package/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts +74 -0
- package/models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts +84 -0
- package/models/ApiPadelMatchesGet200ResponseInner.ts +221 -0
- package/models/ApiPadelMatchesGet200ResponseInnerPlayers.ts +83 -0
- package/models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.ts +93 -0
- package/models/ApiPadelMatchesGet200ResponseInnerScoreInner.ts +75 -0
- package/models/ApiPadelMatchesGet200ResponseInnerSets.ts +108 -0
- package/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.ts +83 -0
- package/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.ts +84 -0
- package/models/ApiPadelMatchesGet200ResponseInnerStats.ts +134 -0
- package/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.ts +66 -0
- package/models/ApiPadelMatchesGet200ResponseInnerStatsMatchValue.ts +75 -0
- package/models/index.ts +23 -0
- package/package.json +1 -1
- package/runtime.ts +432 -0
- package/workflow.sh +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
38
|
+
*/
|
|
39
|
+
abbreviation: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague(value: object): value is ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
48
|
+
if (!('abbreviation' in value) || value['abbreviation'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSON(json: any): ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
53
|
+
return ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'description': json['description'],
|
|
64
|
+
'abbreviation': json['abbreviation'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSON(json: any): ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
69
|
+
return ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSONTyped(value?: ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'description': value['description'],
|
|
81
|
+
'abbreviation': value['abbreviation'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,221 @@
|
|
|
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 { ApiPadelMatchesGet200ResponseInnerPlayers } from './ApiPadelMatchesGet200ResponseInnerPlayers';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesGet200ResponseInnerPlayersFromJSON,
|
|
19
|
+
ApiPadelMatchesGet200ResponseInnerPlayersFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesGet200ResponseInnerPlayersToJSON,
|
|
21
|
+
ApiPadelMatchesGet200ResponseInnerPlayersToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesGet200ResponseInnerPlayers';
|
|
23
|
+
import type { ApiPadelMatchesGet200ResponseInnerStats } from './ApiPadelMatchesGet200ResponseInnerStats';
|
|
24
|
+
import {
|
|
25
|
+
ApiPadelMatchesGet200ResponseInnerStatsFromJSON,
|
|
26
|
+
ApiPadelMatchesGet200ResponseInnerStatsFromJSONTyped,
|
|
27
|
+
ApiPadelMatchesGet200ResponseInnerStatsToJSON,
|
|
28
|
+
ApiPadelMatchesGet200ResponseInnerStatsToJSONTyped,
|
|
29
|
+
} from './ApiPadelMatchesGet200ResponseInnerStats';
|
|
30
|
+
import type { ApiPadelMatchesGet200ResponseInnerSets } from './ApiPadelMatchesGet200ResponseInnerSets';
|
|
31
|
+
import {
|
|
32
|
+
ApiPadelMatchesGet200ResponseInnerSetsFromJSON,
|
|
33
|
+
ApiPadelMatchesGet200ResponseInnerSetsFromJSONTyped,
|
|
34
|
+
ApiPadelMatchesGet200ResponseInnerSetsToJSON,
|
|
35
|
+
ApiPadelMatchesGet200ResponseInnerSetsToJSONTyped,
|
|
36
|
+
} from './ApiPadelMatchesGet200ResponseInnerSets';
|
|
37
|
+
import type { ApiPadelMatchesGet200ResponseInnerScoreInner } from './ApiPadelMatchesGet200ResponseInnerScoreInner';
|
|
38
|
+
import {
|
|
39
|
+
ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSON,
|
|
40
|
+
ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSONTyped,
|
|
41
|
+
ApiPadelMatchesGet200ResponseInnerScoreInnerToJSON,
|
|
42
|
+
ApiPadelMatchesGet200ResponseInnerScoreInnerToJSONTyped,
|
|
43
|
+
} from './ApiPadelMatchesGet200ResponseInnerScoreInner';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface ApiPadelMatchesGet200ResponseInner
|
|
49
|
+
*/
|
|
50
|
+
export interface ApiPadelMatchesGet200ResponseInner {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
55
|
+
*/
|
|
56
|
+
id: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
61
|
+
*/
|
|
62
|
+
tournamentId: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
73
|
+
*/
|
|
74
|
+
round: number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerScoreInner>}
|
|
78
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
79
|
+
*/
|
|
80
|
+
score: Array<ApiPadelMatchesGet200ResponseInnerScoreInner>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {ApiPadelMatchesGet200ResponseInnerPlayers}
|
|
84
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
85
|
+
*/
|
|
86
|
+
players: ApiPadelMatchesGet200ResponseInnerPlayers;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
91
|
+
*/
|
|
92
|
+
playedAt: Date;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
97
|
+
*/
|
|
98
|
+
status: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
103
|
+
*/
|
|
104
|
+
category: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
109
|
+
*/
|
|
110
|
+
duration: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
115
|
+
*/
|
|
116
|
+
court: string | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStats}
|
|
120
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
121
|
+
*/
|
|
122
|
+
stats: ApiPadelMatchesGet200ResponseInnerStats;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {ApiPadelMatchesGet200ResponseInnerSets}
|
|
126
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
127
|
+
*/
|
|
128
|
+
sets: ApiPadelMatchesGet200ResponseInnerSets;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Date}
|
|
132
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
133
|
+
*/
|
|
134
|
+
createdAt: Date;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {Date}
|
|
138
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
139
|
+
*/
|
|
140
|
+
updatedAt: Date;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInner interface.
|
|
145
|
+
*/
|
|
146
|
+
export function instanceOfApiPadelMatchesGet200ResponseInner(value: object): value is ApiPadelMatchesGet200ResponseInner {
|
|
147
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
148
|
+
if (!('tournamentId' in value) || value['tournamentId'] === undefined) return false;
|
|
149
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
150
|
+
if (!('round' in value) || value['round'] === undefined) return false;
|
|
151
|
+
if (!('score' in value) || value['score'] === undefined) return false;
|
|
152
|
+
if (!('players' in value) || value['players'] === undefined) return false;
|
|
153
|
+
if (!('playedAt' in value) || value['playedAt'] === undefined) return false;
|
|
154
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
155
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
156
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
157
|
+
if (!('court' in value) || value['court'] === undefined) return false;
|
|
158
|
+
if (!('stats' in value) || value['stats'] === undefined) return false;
|
|
159
|
+
if (!('sets' in value) || value['sets'] === undefined) return false;
|
|
160
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
161
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function ApiPadelMatchesGet200ResponseInnerFromJSON(json: any): ApiPadelMatchesGet200ResponseInner {
|
|
166
|
+
return ApiPadelMatchesGet200ResponseInnerFromJSONTyped(json, false);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function ApiPadelMatchesGet200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInner {
|
|
170
|
+
if (json == null) {
|
|
171
|
+
return json;
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'id': json['id'],
|
|
176
|
+
'tournamentId': json['tournamentId'],
|
|
177
|
+
'name': json['name'],
|
|
178
|
+
'round': json['round'],
|
|
179
|
+
'score': ((json['score'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSON)),
|
|
180
|
+
'players': ApiPadelMatchesGet200ResponseInnerPlayersFromJSON(json['players']),
|
|
181
|
+
'playedAt': (new Date(json['playedAt'])),
|
|
182
|
+
'status': json['status'],
|
|
183
|
+
'category': json['category'],
|
|
184
|
+
'duration': json['duration'],
|
|
185
|
+
'court': json['court'],
|
|
186
|
+
'stats': ApiPadelMatchesGet200ResponseInnerStatsFromJSON(json['stats']),
|
|
187
|
+
'sets': ApiPadelMatchesGet200ResponseInnerSetsFromJSON(json['sets']),
|
|
188
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
189
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function ApiPadelMatchesGet200ResponseInnerToJSON(json: any): ApiPadelMatchesGet200ResponseInner {
|
|
194
|
+
return ApiPadelMatchesGet200ResponseInnerToJSONTyped(json, false);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export function ApiPadelMatchesGet200ResponseInnerToJSONTyped(value?: ApiPadelMatchesGet200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
|
|
198
|
+
if (value == null) {
|
|
199
|
+
return value;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
|
|
204
|
+
'id': value['id'],
|
|
205
|
+
'tournamentId': value['tournamentId'],
|
|
206
|
+
'name': value['name'],
|
|
207
|
+
'round': value['round'],
|
|
208
|
+
'score': ((value['score'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerScoreInnerToJSON)),
|
|
209
|
+
'players': ApiPadelMatchesGet200ResponseInnerPlayersToJSON(value['players']),
|
|
210
|
+
'playedAt': ((value['playedAt']).toISOString()),
|
|
211
|
+
'status': value['status'],
|
|
212
|
+
'category': value['category'],
|
|
213
|
+
'duration': value['duration'],
|
|
214
|
+
'court': value['court'],
|
|
215
|
+
'stats': ApiPadelMatchesGet200ResponseInnerStatsToJSON(value['stats']),
|
|
216
|
+
'sets': ApiPadelMatchesGet200ResponseInnerSetsToJSON(value['sets']),
|
|
217
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
218
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner } from './ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSON,
|
|
19
|
+
ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSON,
|
|
21
|
+
ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayers
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
33
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
34
|
+
*/
|
|
35
|
+
team1: Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
39
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
40
|
+
*/
|
|
41
|
+
team2: Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerPlayers interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerPlayers(value: object): value is ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
48
|
+
if (!('team1' in value) || value['team1'] === undefined) return false;
|
|
49
|
+
if (!('team2' in value) || value['team2'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
54
|
+
return ApiPadelMatchesGet200ResponseInnerPlayersFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'team1': ((json['team_1'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSON)),
|
|
64
|
+
'team2': ((json['team_2'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersToJSON(json: any): ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
69
|
+
return ApiPadelMatchesGet200ResponseInnerPlayersToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerPlayers | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'team_1': ((value['team1'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSON)),
|
|
80
|
+
'team_2': ((value['team2'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
38
|
+
*/
|
|
39
|
+
self: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
44
|
+
*/
|
|
45
|
+
side: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner(value: object): value is ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
55
|
+
if (!('side' in value) || value['side'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
60
|
+
return ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'self': json['self'],
|
|
72
|
+
'side': json['side'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSON(json: any): ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
77
|
+
return ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiPadelMatchesGet200ResponseInnerPlayersTeam1InnerToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'name': value['name'],
|
|
89
|
+
'self': value['self'],
|
|
90
|
+
'side': value['side'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
26
|
+
*/
|
|
27
|
+
team1: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
32
|
+
*/
|
|
33
|
+
team2: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerScoreInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerScoreInner(value: object): value is ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
40
|
+
if (!('team1' in value) || value['team1'] === undefined) return false;
|
|
41
|
+
if (!('team2' in value) || value['team2'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
46
|
+
return ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiPadelMatchesGet200ResponseInnerScoreInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'team1': json['team_1'],
|
|
56
|
+
'team2': json['team_2'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiPadelMatchesGet200ResponseInnerScoreInnerToJSON(json: any): ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
61
|
+
return ApiPadelMatchesGet200ResponseInnerScoreInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiPadelMatchesGet200ResponseInnerScoreInnerToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerScoreInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'team_1': value['team1'],
|
|
72
|
+
'team_2': value['team2'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { ApiPadelMatchesGet200ResponseInnerSetsSetsInner } from './ApiPadelMatchesGet200ResponseInnerSetsSetsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSON,
|
|
19
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSON,
|
|
21
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesGet200ResponseInnerSetsSetsInner';
|
|
23
|
+
import type { ApiPadelMatchesGet200ResponseInnerStatsConnections } from './ApiPadelMatchesGet200ResponseInnerStatsConnections';
|
|
24
|
+
import {
|
|
25
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSON,
|
|
26
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSONTyped,
|
|
27
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSON,
|
|
28
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSONTyped,
|
|
29
|
+
} from './ApiPadelMatchesGet200ResponseInnerStatsConnections';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiPadelMatchesGet200ResponseInnerSets
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiPadelMatchesGet200ResponseInnerSets {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
47
|
+
*/
|
|
48
|
+
self: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>}
|
|
52
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
53
|
+
*/
|
|
54
|
+
sets: Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
58
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
59
|
+
*/
|
|
60
|
+
connections: ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerSets interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerSets(value: object): value is ApiPadelMatchesGet200ResponseInnerSets {
|
|
67
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
68
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
69
|
+
if (!('sets' in value) || value['sets'] === undefined) return false;
|
|
70
|
+
if (!('connections' in value) || value['connections'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerSets {
|
|
75
|
+
return ApiPadelMatchesGet200ResponseInnerSetsFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerSets {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'self': json['self'],
|
|
86
|
+
'sets': ((json['sets'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSON)),
|
|
87
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSON(json['connections']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsToJSON(json: any): ApiPadelMatchesGet200ResponseInnerSets {
|
|
92
|
+
return ApiPadelMatchesGet200ResponseInnerSetsToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerSets | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'self': value['self'],
|
|
104
|
+
'sets': ((value['sets'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSON)),
|
|
105
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSON(value['connections']),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|