@drxsuperapp/sdk 1.1.71 → 1.1.73
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 +2 -1
- package/deploy.log +14 -11
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObject.d.ts +3 -3
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObject.js +3 -9
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.d.ts +10 -18
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.js +10 -19
- package/dist/models/{ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue.d.ts → ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.d.ts} +10 -10
- package/dist/models/{ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue.js → ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.js} +8 -8
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.d.ts +38 -0
- package/dist/models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.js +47 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/models/ApiPadelMatchesIdGet200ResponseResponseObject.ts +6 -9
- package/models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.ts +24 -28
- package/models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.ts +83 -0
- package/models/{ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue.ts → ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.ts} +12 -12
- package/models/index.ts +2 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,7 +31,8 @@ models/ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInner.ts
|
|
|
31
31
|
models/ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner.ts
|
|
32
32
|
models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.ts
|
|
33
33
|
models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections.ts
|
|
34
|
-
models/
|
|
34
|
+
models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.ts
|
|
35
|
+
models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.ts
|
|
35
36
|
models/ApiPadelSeedGet200Response.ts
|
|
36
37
|
models/index.ts
|
|
37
38
|
runtime.ts
|
package/deploy.log
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
26
26
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
27
27
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
28
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
28
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_responseObject_stats_match_anyOf_value. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_match_anyOf_value=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_match_anyOf_value=NewModel,ModelA=NewModelA in CLI).
|
|
29
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_responseObject_stats_match. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_match=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_match=NewModel,ModelA=NewModelA in CLI).
|
|
29
30
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_responseObject_stats_connections. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_connections=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats_connections=NewModel,ModelA=NewModelA in CLI).
|
|
30
31
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_responseObject_stats. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_responseObject_stats=NewModel,ModelA=NewModelA in CLI).
|
|
31
32
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_responseObject_sets_sets_inner_games_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_responseObject_sets_sets_inner_games_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_responseObject_sets_sets_inner_games_inner=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -64,7 +65,8 @@
|
|
|
64
65
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner.ts
|
|
65
66
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.ts
|
|
66
67
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections.ts
|
|
67
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
68
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.ts
|
|
69
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.ts
|
|
68
70
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelSeedGet200Response.ts
|
|
69
71
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
|
|
70
72
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
@@ -94,21 +96,22 @@
|
|
|
94
96
|
# https://opencollective.com/openapi_generator/donate #
|
|
95
97
|
################################################################################
|
|
96
98
|
✅ SDK generated
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
[master 4676d64] VPS: Generated API SDK
|
|
100
|
+
6 files changed, 129 insertions(+), 48 deletions(-)
|
|
101
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch.ts
|
|
102
|
+
rename models/{ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue.ts => ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue.ts} (68%)
|
|
103
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
104
|
+
8fe56f6..4676d64 master -> master
|
|
102
105
|
✅ Changes committed and pushed
|
|
103
|
-
v1.1.
|
|
106
|
+
v1.1.73
|
|
104
107
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
105
|
-
|
|
108
|
+
4676d64..81b3175 master -> master
|
|
106
109
|
✅ Version bumped
|
|
107
110
|
|
|
108
|
-
> @drxsuperapp/sdk@1.1.
|
|
111
|
+
> @drxsuperapp/sdk@1.1.73 prepublishOnly
|
|
109
112
|
> npm run build
|
|
110
113
|
|
|
111
114
|
|
|
112
|
-
> @drxsuperapp/sdk@1.1.
|
|
115
|
+
> @drxsuperapp/sdk@1.1.73 build
|
|
113
116
|
> tsc
|
|
114
117
|
|
|
@@ -78,7 +78,7 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObject {
|
|
|
78
78
|
* @type {ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers}
|
|
79
79
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
80
80
|
*/
|
|
81
|
-
players
|
|
81
|
+
players?: ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {Date}
|
|
@@ -114,13 +114,13 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObject {
|
|
|
114
114
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStats}
|
|
115
115
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
116
116
|
*/
|
|
117
|
-
stats
|
|
117
|
+
stats?: ApiPadelMatchesIdGet200ResponseResponseObjectStats | null;
|
|
118
118
|
/**
|
|
119
119
|
*
|
|
120
120
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectSets}
|
|
121
121
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
122
122
|
*/
|
|
123
|
-
sets
|
|
123
|
+
sets?: ApiPadelMatchesIdGet200ResponseResponseObjectSets | null;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
* @type {Date}
|
|
@@ -37,8 +37,6 @@ export function instanceOfApiPadelMatchesIdGet200ResponseResponseObject(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('score' in value) || value['score'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('players' in value) || value['players'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('playedAt' in value) || value['playedAt'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('status' in value) || value['status'] === undefined)
|
|
@@ -49,10 +47,6 @@ export function instanceOfApiPadelMatchesIdGet200ResponseResponseObject(value) {
|
|
|
49
47
|
return false;
|
|
50
48
|
if (!('court' in value) || value['court'] === undefined)
|
|
51
49
|
return false;
|
|
52
|
-
if (!('stats' in value) || value['stats'] === undefined)
|
|
53
|
-
return false;
|
|
54
|
-
if (!('sets' in value) || value['sets'] === undefined)
|
|
55
|
-
return false;
|
|
56
50
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
51
|
return false;
|
|
58
52
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -76,14 +70,14 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectFromJSONTyped(json,
|
|
|
76
70
|
'name': json['name'],
|
|
77
71
|
'round': json['round'],
|
|
78
72
|
'score': (json['score'] == null ? null : json['score'].map(ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInnerFromJSON)),
|
|
79
|
-
'players': ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersFromJSON(json['players']),
|
|
73
|
+
'players': json['players'] == null ? undefined : ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersFromJSON(json['players']),
|
|
80
74
|
'playedAt': (new Date(json['playedAt'])),
|
|
81
75
|
'status': json['status'],
|
|
82
76
|
'category': json['category'],
|
|
83
77
|
'duration': json['duration'],
|
|
84
78
|
'court': json['court'],
|
|
85
|
-
'stats': ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSON(json['stats']),
|
|
86
|
-
'sets': ApiPadelMatchesIdGet200ResponseResponseObjectSetsFromJSON(json['sets']),
|
|
79
|
+
'stats': json['stats'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSON(json['stats']),
|
|
80
|
+
'sets': json['sets'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectSetsFromJSON(json['sets']),
|
|
87
81
|
'createdAt': (new Date(json['createdAt'])),
|
|
88
82
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
89
83
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -31,42 +31,34 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObjectStats {
|
|
|
31
31
|
self: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
35
35
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
36
36
|
*/
|
|
37
|
-
match
|
|
38
|
-
[key: string]: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue;
|
|
39
|
-
};
|
|
37
|
+
match?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
40
38
|
/**
|
|
41
39
|
*
|
|
42
|
-
* @type {
|
|
40
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
43
41
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
44
42
|
*/
|
|
45
|
-
set1
|
|
46
|
-
[key: string]: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue;
|
|
47
|
-
};
|
|
43
|
+
set1?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
48
44
|
/**
|
|
49
45
|
*
|
|
50
|
-
* @type {
|
|
46
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
51
47
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
52
48
|
*/
|
|
53
|
-
set2
|
|
54
|
-
[key: string]: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue;
|
|
55
|
-
};
|
|
49
|
+
set2?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
56
50
|
/**
|
|
57
51
|
*
|
|
58
|
-
* @type {
|
|
52
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
59
53
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
60
54
|
*/
|
|
61
|
-
set3?:
|
|
62
|
-
[key: string]: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValue;
|
|
63
|
-
};
|
|
55
|
+
set3?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
64
56
|
/**
|
|
65
57
|
*
|
|
66
58
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections}
|
|
67
59
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
68
60
|
*/
|
|
69
|
-
connections
|
|
61
|
+
connections?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections;
|
|
70
62
|
}
|
|
71
63
|
/**
|
|
72
64
|
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStats interface.
|
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { mapValues } from '../runtime';
|
|
15
14
|
import { ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsFromJSON, ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsToJSON, } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
16
|
-
import {
|
|
15
|
+
import { ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON, ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON, } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
17
16
|
/**
|
|
18
17
|
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStats interface.
|
|
19
18
|
*/
|
|
@@ -22,14 +21,6 @@ export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStats(val
|
|
|
22
21
|
return false;
|
|
23
22
|
if (!('self' in value) || value['self'] === undefined)
|
|
24
23
|
return false;
|
|
25
|
-
if (!('match' in value) || value['match'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('set1' in value) || value['set1'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('set2' in value) || value['set2'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('connections' in value) || value['connections'] === undefined)
|
|
32
|
-
return false;
|
|
33
24
|
return true;
|
|
34
25
|
}
|
|
35
26
|
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSON(json) {
|
|
@@ -42,11 +33,11 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSONTyped(
|
|
|
42
33
|
return {
|
|
43
34
|
'id': json['id'],
|
|
44
35
|
'self': json['self'],
|
|
45
|
-
'match': (
|
|
46
|
-
'set1': (
|
|
47
|
-
'set2': (
|
|
48
|
-
'set3': json['set_3'] == null ? undefined : (
|
|
49
|
-
'connections': ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsFromJSON(json['connections']),
|
|
36
|
+
'match': json['match'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['match']),
|
|
37
|
+
'set1': json['set_1'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_1']),
|
|
38
|
+
'set2': json['set_2'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_2']),
|
|
39
|
+
'set3': json['set_3'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_3']),
|
|
40
|
+
'connections': json['connections'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsFromJSON(json['connections']),
|
|
50
41
|
};
|
|
51
42
|
}
|
|
52
43
|
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsToJSON(json) {
|
|
@@ -59,10 +50,10 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsToJSONTyped(va
|
|
|
59
50
|
return {
|
|
60
51
|
'id': value['id'],
|
|
61
52
|
'self': value['self'],
|
|
62
|
-
'match': (
|
|
63
|
-
'set_1': (
|
|
64
|
-
'set_2': (
|
|
65
|
-
'set_3':
|
|
53
|
+
'match': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['match']),
|
|
54
|
+
'set_1': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set1']),
|
|
55
|
+
'set_2': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set2']),
|
|
56
|
+
'set_3': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set3']),
|
|
66
57
|
'connections': ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsToJSON(value['connections']),
|
|
67
58
|
};
|
|
68
59
|
}
|
|
@@ -12,27 +12,27 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
22
22
|
*/
|
|
23
23
|
team1: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
28
28
|
*/
|
|
29
29
|
team2: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Check if a given object implements the
|
|
32
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch interface.
|
|
33
33
|
*/
|
|
34
|
-
export declare function
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
34
|
+
export declare function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch(value: object): value is ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
35
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
36
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
37
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
38
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped(value?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch(value) {
|
|
18
18
|
if (!('team1' in value) || value['team1'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('team2' in value) || value['team2'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json) {
|
|
25
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
@@ -33,10 +33,10 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValueFrom
|
|
|
33
33
|
'team2': json['team_2'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
36
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(json) {
|
|
37
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
22
|
+
*/
|
|
23
|
+
team1: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
28
|
+
*/
|
|
29
|
+
team2: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue(value: object): value is ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue;
|
|
35
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue;
|
|
36
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue;
|
|
37
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue;
|
|
38
|
+
export declare function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped(value?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue(value) {
|
|
18
|
+
if (!('team1' in value) || value['team1'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('team2' in value) || value['team2'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSON(json) {
|
|
25
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'team1': json['team_1'],
|
|
33
|
+
'team2': json['team_2'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSON(json) {
|
|
37
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'team_1': value['team1'],
|
|
45
|
+
'team_2': value['team2'],
|
|
46
|
+
};
|
|
47
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInner';
|
|
|
26
26
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner';
|
|
27
27
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStats';
|
|
28
28
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
29
|
-
export * from './
|
|
29
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
30
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue';
|
|
30
31
|
export * from './ApiPadelSeedGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -28,5 +28,6 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInner';
|
|
|
28
28
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner';
|
|
29
29
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStats';
|
|
30
30
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
31
|
-
export * from './
|
|
31
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
32
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue';
|
|
32
33
|
export * from './ApiPadelSeedGet200Response';
|
|
@@ -107,7 +107,7 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObject {
|
|
|
107
107
|
* @type {ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers}
|
|
108
108
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
109
109
|
*/
|
|
110
|
-
players
|
|
110
|
+
players?: ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers;
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @type {Date}
|
|
@@ -143,13 +143,13 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObject {
|
|
|
143
143
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStats}
|
|
144
144
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
145
145
|
*/
|
|
146
|
-
stats
|
|
146
|
+
stats?: ApiPadelMatchesIdGet200ResponseResponseObjectStats | null;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectSets}
|
|
150
150
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObject
|
|
151
151
|
*/
|
|
152
|
-
sets
|
|
152
|
+
sets?: ApiPadelMatchesIdGet200ResponseResponseObjectSets | null;
|
|
153
153
|
/**
|
|
154
154
|
*
|
|
155
155
|
* @type {Date}
|
|
@@ -177,14 +177,11 @@ export function instanceOfApiPadelMatchesIdGet200ResponseResponseObject(value: o
|
|
|
177
177
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
178
178
|
if (!('round' in value) || value['round'] === undefined) return false;
|
|
179
179
|
if (!('score' in value) || value['score'] === undefined) return false;
|
|
180
|
-
if (!('players' in value) || value['players'] === undefined) return false;
|
|
181
180
|
if (!('playedAt' in value) || value['playedAt'] === undefined) return false;
|
|
182
181
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
183
182
|
if (!('category' in value) || value['category'] === undefined) return false;
|
|
184
183
|
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
185
184
|
if (!('court' in value) || value['court'] === undefined) return false;
|
|
186
|
-
if (!('stats' in value) || value['stats'] === undefined) return false;
|
|
187
|
-
if (!('sets' in value) || value['sets'] === undefined) return false;
|
|
188
185
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
189
186
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
190
187
|
return true;
|
|
@@ -209,14 +206,14 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectFromJSONTyped(json:
|
|
|
209
206
|
'name': json['name'],
|
|
210
207
|
'round': json['round'],
|
|
211
208
|
'score': (json['score'] == null ? null : (json['score'] as Array<any>).map(ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInnerFromJSON)),
|
|
212
|
-
'players': ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersFromJSON(json['players']),
|
|
209
|
+
'players': json['players'] == null ? undefined : ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersFromJSON(json['players']),
|
|
213
210
|
'playedAt': (new Date(json['playedAt'])),
|
|
214
211
|
'status': json['status'],
|
|
215
212
|
'category': json['category'],
|
|
216
213
|
'duration': json['duration'],
|
|
217
214
|
'court': json['court'],
|
|
218
|
-
'stats': ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSON(json['stats']),
|
|
219
|
-
'sets': ApiPadelMatchesIdGet200ResponseResponseObjectSetsFromJSON(json['sets']),
|
|
215
|
+
'stats': json['stats'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSON(json['stats']),
|
|
216
|
+
'sets': json['sets'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectSetsFromJSON(json['sets']),
|
|
220
217
|
'createdAt': (new Date(json['createdAt'])),
|
|
221
218
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
222
219
|
};
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsToJSON,
|
|
21
21
|
ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsToJSONTyped,
|
|
22
22
|
} from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
23
|
-
import type {
|
|
23
|
+
import type { ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON,
|
|
26
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped,
|
|
27
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON,
|
|
28
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped,
|
|
29
|
+
} from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -48,34 +48,34 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObjectStats {
|
|
|
48
48
|
self: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
52
52
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
53
53
|
*/
|
|
54
|
-
match
|
|
54
|
+
match?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
58
58
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
59
59
|
*/
|
|
60
|
-
set1
|
|
60
|
+
set1?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
64
64
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
65
65
|
*/
|
|
66
|
-
set2
|
|
66
|
+
set2?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch}
|
|
70
70
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
71
71
|
*/
|
|
72
|
-
set3?:
|
|
72
|
+
set3?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections}
|
|
76
76
|
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStats
|
|
77
77
|
*/
|
|
78
|
-
connections
|
|
78
|
+
connections?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -84,10 +84,6 @@ export interface ApiPadelMatchesIdGet200ResponseResponseObjectStats {
|
|
|
84
84
|
export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStats(value: object): value is ApiPadelMatchesIdGet200ResponseResponseObjectStats {
|
|
85
85
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
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
87
|
return true;
|
|
92
88
|
}
|
|
93
89
|
|
|
@@ -103,11 +99,11 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsFromJSONTyped(
|
|
|
103
99
|
|
|
104
100
|
'id': json['id'],
|
|
105
101
|
'self': json['self'],
|
|
106
|
-
'match': (
|
|
107
|
-
'set1': (
|
|
108
|
-
'set2': (
|
|
109
|
-
'set3': json['set_3'] == null ? undefined : (
|
|
110
|
-
'connections': ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsFromJSON(json['connections']),
|
|
102
|
+
'match': json['match'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['match']),
|
|
103
|
+
'set1': json['set_1'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_1']),
|
|
104
|
+
'set2': json['set_2'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_2']),
|
|
105
|
+
'set3': json['set_3'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json['set_3']),
|
|
106
|
+
'connections': json['connections'] == null ? undefined : ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsFromJSON(json['connections']),
|
|
111
107
|
};
|
|
112
108
|
}
|
|
113
109
|
|
|
@@ -124,10 +120,10 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsToJSONTyped(va
|
|
|
124
120
|
|
|
125
121
|
'id': value['id'],
|
|
126
122
|
'self': value['self'],
|
|
127
|
-
'match': (
|
|
128
|
-
'set_1': (
|
|
129
|
-
'set_2': (
|
|
130
|
-
'set_3':
|
|
123
|
+
'match': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['match']),
|
|
124
|
+
'set_1': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set1']),
|
|
125
|
+
'set_2': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set2']),
|
|
126
|
+
'set_3': ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(value['set3']),
|
|
131
127
|
'connections': ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnectionsToJSON(value['connections']),
|
|
132
128
|
};
|
|
133
129
|
}
|
|
@@ -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 { ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue } from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue';
|
|
17
|
+
import {
|
|
18
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSON,
|
|
19
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped,
|
|
20
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSON,
|
|
21
|
+
ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped,
|
|
22
|
+
} from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
34
|
+
*/
|
|
35
|
+
team1: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch
|
|
40
|
+
*/
|
|
41
|
+
team2: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch(value: object): value is ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
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 ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
54
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'team1': json['team_1'],
|
|
64
|
+
'team2': json['team_2'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch {
|
|
69
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchToJSONTyped(value?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'team_1': value['team1'],
|
|
80
|
+
'team_2': value['team2'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -16,37 +16,37 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
26
26
|
*/
|
|
27
27
|
team1: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue
|
|
32
32
|
*/
|
|
33
33
|
team2: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
37
|
+
* Check if a given object implements the ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue interface.
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
39
|
+
export function instanceOfApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue(value: object): value is ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
40
40
|
if (!('team1' in value) || value['team1'] === undefined) return false;
|
|
41
41
|
if (!('team2' in value) || value['team2'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
45
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
46
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped(json, false);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export function
|
|
49
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
50
50
|
if (json == null) {
|
|
51
51
|
return json;
|
|
52
52
|
}
|
|
@@ -57,11 +57,11 @@ export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchValueFrom
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSON(json: any): ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue {
|
|
61
|
+
return ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValueToJSONTyped(value?: ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue | null, ignoreDiscriminator: boolean = false): any {
|
|
65
65
|
if (value == null) {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
package/models/index.ts
CHANGED
|
@@ -28,5 +28,6 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInner';
|
|
|
28
28
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner';
|
|
29
29
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStats';
|
|
30
30
|
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
31
|
-
export * from './
|
|
31
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatch';
|
|
32
|
+
export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsMatchAnyOfValue';
|
|
32
33
|
export * from './ApiPadelSeedGet200Response';
|