@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,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiNewsGet200ResponseResponseObject } from './ApiNewsGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiNewsGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiNewsGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiNewsGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiNewsGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiNewsGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNewsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNewsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiNewsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiNewsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiNewsGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiNewsGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiNewsGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiNewsGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiNewsGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiNewsGet200Response(value: object): value is ApiNewsGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiNewsGet200ResponseFromJSON(json: any): ApiNewsGet200Response {
|
|
67
|
+
return ApiNewsGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiNewsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiNewsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiNewsGet200ResponseToJSON(json: any): ApiNewsGet200Response {
|
|
84
|
+
return ApiNewsGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiNewsGet200ResponseToJSONTyped(value?: ApiNewsGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiNewsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { ApiNewsGet200ResponseResponseObjectItemsInner } from './ApiNewsGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiNewsGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNewsGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNewsGet200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
33
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
items: Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
currentPage: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
totalItems: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
totalPages: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
pageSize: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiNewsGet200ResponseResponseObject interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfApiNewsGet200ResponseResponseObject(value: object): value is ApiNewsGet200ResponseResponseObject {
|
|
66
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
67
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
|
|
68
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
69
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
70
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiNewsGet200ResponseResponseObjectFromJSON(json: any): ApiNewsGet200ResponseResponseObject {
|
|
75
|
+
return ApiNewsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiNewsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsGet200ResponseResponseObject {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'items': ((json['items'] as Array<any>).map(ApiNewsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
85
|
+
'currentPage': json['currentPage'],
|
|
86
|
+
'totalItems': json['totalItems'],
|
|
87
|
+
'totalPages': json['totalPages'],
|
|
88
|
+
'pageSize': json['pageSize'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiNewsGet200ResponseResponseObjectToJSON(json: any): ApiNewsGet200ResponseResponseObject {
|
|
93
|
+
return ApiNewsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiNewsGet200ResponseResponseObjectToJSONTyped(value?: ApiNewsGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'items': ((value['items'] as Array<any>).map(ApiNewsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
104
|
+
'currentPage': value['currentPage'],
|
|
105
|
+
'totalItems': value['totalItems'],
|
|
106
|
+
'totalPages': value['totalPages'],
|
|
107
|
+
'pageSize': value['pageSize'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 ApiNewsGet200ResponseResponseObjectItemsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
32
|
+
*/
|
|
33
|
+
thumbnail: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
38
|
+
*/
|
|
39
|
+
title: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
44
|
+
*/
|
|
45
|
+
source: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
50
|
+
*/
|
|
51
|
+
byline: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
56
|
+
*/
|
|
57
|
+
publishedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ApiNewsGet200ResponseResponseObjectItemsInner interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfApiNewsGet200ResponseResponseObjectItemsInner(value: object): value is ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
66
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
67
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
68
|
+
if (!('byline' in value) || value['byline'] === undefined) return false;
|
|
69
|
+
if (!('publishedAt' in value) || value['publishedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApiNewsGet200ResponseResponseObjectItemsInnerFromJSON(json: any): ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
74
|
+
return ApiNewsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ApiNewsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'thumbnail': json['thumbnail'],
|
|
85
|
+
'title': json['title'],
|
|
86
|
+
'source': json['source'],
|
|
87
|
+
'byline': json['byline'],
|
|
88
|
+
'publishedAt': (json['publishedAt'] == null ? null : new Date(json['publishedAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiNewsGet200ResponseResponseObjectItemsInnerToJSON(json: any): ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
93
|
+
return ApiNewsGet200ResponseResponseObjectItemsInnerToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiNewsGet200ResponseResponseObjectItemsInnerToJSONTyped(value?: ApiNewsGet200ResponseResponseObjectItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'thumbnail': value['thumbnail'],
|
|
105
|
+
'title': value['title'],
|
|
106
|
+
'source': value['source'],
|
|
107
|
+
'byline': value['byline'],
|
|
108
|
+
'publishedAt': (value['publishedAt'] == null ? null : (value['publishedAt'] as any).toISOString()),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiNewsIdGet200ResponseResponseObject } from './ApiNewsIdGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiNewsIdGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiNewsIdGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiNewsIdGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiNewsIdGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiNewsIdGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNewsIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNewsIdGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiNewsIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiNewsIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiNewsIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiNewsIdGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiNewsIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiNewsIdGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiNewsIdGet200Response(value: object): value is ApiNewsIdGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiNewsIdGet200ResponseFromJSON(json: any): ApiNewsIdGet200Response {
|
|
67
|
+
return ApiNewsIdGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiNewsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsIdGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiNewsIdGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiNewsIdGet200ResponseToJSON(json: any): ApiNewsIdGet200Response {
|
|
84
|
+
return ApiNewsIdGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiNewsIdGet200ResponseToJSONTyped(value?: ApiNewsIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiNewsIdGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,189 @@
|
|
|
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 { ApiNewsGet200ResponseResponseObjectItemsInner } from './ApiNewsGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiNewsGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiNewsGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
import type { ApiNewsIdGet200ResponseResponseObjectLeaguesInner } from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
24
|
+
import {
|
|
25
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSON,
|
|
26
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSONTyped,
|
|
27
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSON,
|
|
28
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSONTyped,
|
|
29
|
+
} from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
title: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
53
|
+
*/
|
|
54
|
+
description: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
59
|
+
*/
|
|
60
|
+
htmlContent: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
65
|
+
*/
|
|
66
|
+
source: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
71
|
+
*/
|
|
72
|
+
keywords: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
77
|
+
*/
|
|
78
|
+
byline: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
83
|
+
*/
|
|
84
|
+
publishedAt: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
89
|
+
*/
|
|
90
|
+
thumbnail: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
106
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
107
|
+
*/
|
|
108
|
+
leagues: Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
112
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
113
|
+
*/
|
|
114
|
+
relatedNews: Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the ApiNewsIdGet200ResponseResponseObject interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfApiNewsIdGet200ResponseResponseObject(value: object): value is ApiNewsIdGet200ResponseResponseObject {
|
|
121
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
122
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
123
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
124
|
+
if (!('htmlContent' in value) || value['htmlContent'] === undefined) return false;
|
|
125
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
126
|
+
if (!('keywords' in value) || value['keywords'] === undefined) return false;
|
|
127
|
+
if (!('byline' in value) || value['byline'] === undefined) return false;
|
|
128
|
+
if (!('publishedAt' in value) || value['publishedAt'] === undefined) return false;
|
|
129
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
130
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
131
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
132
|
+
if (!('leagues' in value) || value['leagues'] === undefined) return false;
|
|
133
|
+
if (!('relatedNews' in value) || value['relatedNews'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function ApiNewsIdGet200ResponseResponseObjectFromJSON(json: any): ApiNewsIdGet200ResponseResponseObject {
|
|
138
|
+
return ApiNewsIdGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function ApiNewsIdGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsIdGet200ResponseResponseObject {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'id': json['id'],
|
|
148
|
+
'title': json['title'],
|
|
149
|
+
'description': json['description'],
|
|
150
|
+
'htmlContent': json['html_content'],
|
|
151
|
+
'source': json['source'],
|
|
152
|
+
'keywords': json['keywords'],
|
|
153
|
+
'byline': json['byline'],
|
|
154
|
+
'publishedAt': (json['publishedAt'] == null ? null : new Date(json['publishedAt'])),
|
|
155
|
+
'thumbnail': json['thumbnail'],
|
|
156
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
157
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
158
|
+
'leagues': ((json['leagues'] as Array<any>).map(ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSON)),
|
|
159
|
+
'relatedNews': ((json['relatedNews'] as Array<any>).map(ApiNewsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function ApiNewsIdGet200ResponseResponseObjectToJSON(json: any): ApiNewsIdGet200ResponseResponseObject {
|
|
164
|
+
return ApiNewsIdGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function ApiNewsIdGet200ResponseResponseObjectToJSONTyped(value?: ApiNewsIdGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
168
|
+
if (value == null) {
|
|
169
|
+
return value;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return {
|
|
173
|
+
|
|
174
|
+
'id': value['id'],
|
|
175
|
+
'title': value['title'],
|
|
176
|
+
'description': value['description'],
|
|
177
|
+
'html_content': value['htmlContent'],
|
|
178
|
+
'source': value['source'],
|
|
179
|
+
'keywords': value['keywords'],
|
|
180
|
+
'byline': value['byline'],
|
|
181
|
+
'publishedAt': (value['publishedAt'] == null ? null : (value['publishedAt'] as any).toISOString()),
|
|
182
|
+
'thumbnail': value['thumbnail'],
|
|
183
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
184
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
185
|
+
'leagues': ((value['leagues'] as Array<any>).map(ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSON)),
|
|
186
|
+
'relatedNews': ((value['relatedNews'] as Array<any>).map(ApiNewsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague } from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
17
|
+
import {
|
|
18
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSON,
|
|
19
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSONTyped,
|
|
20
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSON,
|
|
21
|
+
ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSONTyped,
|
|
22
|
+
} from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
33
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
34
|
+
*/
|
|
35
|
+
league: ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiNewsIdGet200ResponseResponseObjectLeaguesInner interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfApiNewsIdGet200ResponseResponseObjectLeaguesInner(value: object): value is ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
42
|
+
if (!('league' in value) || value['league'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSON(json: any): ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
47
|
+
return ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueFromJSON(json['league']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSON(json: any): ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
61
|
+
return ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiNewsIdGet200ResponseResponseObjectLeaguesInnerToJSONTyped(value?: ApiNewsIdGet200ResponseResponseObjectLeaguesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeagueToJSON(value['league']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|