@drxsuperapp/sdk 1.1.18 → 1.1.19
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 +75 -43
- 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
|
@@ -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
|
+
|
|
@@ -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 { ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner } from './ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSON,
|
|
19
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSON,
|
|
21
|
+
ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>}
|
|
33
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
34
|
+
*/
|
|
35
|
+
games: Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
40
|
+
*/
|
|
41
|
+
setNumber: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerSetsSetsInner interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerSetsSetsInner(value: object): value is ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
48
|
+
if (!('games' in value) || value['games'] === undefined) return false;
|
|
49
|
+
if (!('setNumber' in value) || value['setNumber'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
54
|
+
return ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'games': ((json['games'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSON)),
|
|
64
|
+
'setNumber': json['set_number'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSON(json: any): ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
69
|
+
return ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerSetsSetsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'games': ((value['games'] as Array<any>).map(ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSON)),
|
|
80
|
+
'set_number': value['setNumber'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
26
|
+
*/
|
|
27
|
+
points: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
32
|
+
*/
|
|
33
|
+
gameScore: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
38
|
+
*/
|
|
39
|
+
gameNumber: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner(value: object): value is ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
46
|
+
if (!('points' in value) || value['points'] === undefined) return false;
|
|
47
|
+
if (!('gameScore' in value) || value['gameScore'] === undefined) return false;
|
|
48
|
+
if (!('gameNumber' in value) || value['gameNumber'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
53
|
+
return ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'points': json['points'],
|
|
63
|
+
'gameScore': json['game_score'],
|
|
64
|
+
'gameNumber': json['game_number'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSON(json: any): ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
69
|
+
return ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInnerToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'points': value['points'],
|
|
80
|
+
'game_score': value['gameScore'],
|
|
81
|
+
'game_number': value['gameNumber'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
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 { ApiPadelMatchesGet200ResponseInnerStatsConnections } from './ApiPadelMatchesGet200ResponseInnerStatsConnections';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSON,
|
|
19
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSON,
|
|
21
|
+
ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesGet200ResponseInnerStatsConnections';
|
|
23
|
+
import type { ApiPadelMatchesGet200ResponseInnerStatsMatchValue } from './ApiPadelMatchesGet200ResponseInnerStatsMatchValue';
|
|
24
|
+
import {
|
|
25
|
+
ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSON,
|
|
26
|
+
ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSONTyped,
|
|
27
|
+
ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSON,
|
|
28
|
+
ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSONTyped,
|
|
29
|
+
} from './ApiPadelMatchesGet200ResponseInnerStatsMatchValue';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiPadelMatchesGet200ResponseInnerStats
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiPadelMatchesGet200ResponseInnerStats {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
47
|
+
*/
|
|
48
|
+
self: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
52
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
53
|
+
*/
|
|
54
|
+
match: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
58
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
59
|
+
*/
|
|
60
|
+
set1: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
64
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
65
|
+
*/
|
|
66
|
+
set2: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
70
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
71
|
+
*/
|
|
72
|
+
set3?: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
76
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
77
|
+
*/
|
|
78
|
+
connections: ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerStats interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerStats(value: object): value is ApiPadelMatchesGet200ResponseInnerStats {
|
|
85
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
+
if (!('self' in value) || value['self'] === undefined) return false;
|
|
87
|
+
if (!('match' in value) || value['match'] === undefined) return false;
|
|
88
|
+
if (!('set1' in value) || value['set1'] === undefined) return false;
|
|
89
|
+
if (!('set2' in value) || value['set2'] === undefined) return false;
|
|
90
|
+
if (!('connections' in value) || value['connections'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerStats {
|
|
95
|
+
return ApiPadelMatchesGet200ResponseInnerStatsFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerStats {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'id': json['id'],
|
|
105
|
+
'self': json['self'],
|
|
106
|
+
'match': (mapValues(json['match'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSON)),
|
|
107
|
+
'set1': (mapValues(json['set_1'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSON)),
|
|
108
|
+
'set2': (mapValues(json['set_2'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSON)),
|
|
109
|
+
'set3': json['set_3'] == null ? undefined : (mapValues(json['set_3'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueFromJSON)),
|
|
110
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSON(json['connections']),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsToJSON(json: any): ApiPadelMatchesGet200ResponseInnerStats {
|
|
115
|
+
return ApiPadelMatchesGet200ResponseInnerStatsToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerStats | null, ignoreDiscriminator: boolean = false): any {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': value['id'],
|
|
126
|
+
'self': value['self'],
|
|
127
|
+
'match': (mapValues(value['match'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSON)),
|
|
128
|
+
'set_1': (mapValues(value['set1'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSON)),
|
|
129
|
+
'set_2': (mapValues(value['set2'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSON)),
|
|
130
|
+
'set_3': value['set3'] == null ? undefined : (mapValues(value['set3'], ApiPadelMatchesGet200ResponseInnerStatsMatchValueToJSON)),
|
|
131
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSON(value['connections']),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
26
|
+
*/
|
|
27
|
+
match: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiPadelMatchesGet200ResponseInnerStatsConnections interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiPadelMatchesGet200ResponseInnerStatsConnections(value: object): value is ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
34
|
+
if (!('match' in value) || value['match'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSON(json: any): ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
39
|
+
return ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsConnectionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'match': json['match'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSON(json: any): ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
53
|
+
return ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiPadelMatchesGet200ResponseInnerStatsConnectionsToJSONTyped(value?: ApiPadelMatchesGet200ResponseInnerStatsConnections | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'match': value['match'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|