@drxsuperapp/sdk 1.1.107 → 1.1.108
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 +1 -0
- package/apis/YoutubeApi.ts +43 -0
- package/deploy.log +11 -10
- package/dist/apis/YoutubeApi.d.ts +11 -1
- package/dist/apis/YoutubeApi.js +34 -1
- package/dist/models/ApiYoutubeRefreshPost200Response.d.ts +38 -0
- package/dist/models/ApiYoutubeRefreshPost200Response.js +43 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiYoutubeRefreshPost200Response.ts +73 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -74,5 +74,6 @@ models/ApiYoutubeDrxContentGet200Response.ts
|
|
|
74
74
|
models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
75
75
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
76
76
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
77
|
+
models/ApiYoutubeRefreshPost200Response.ts
|
|
77
78
|
models/index.ts
|
|
78
79
|
runtime.ts
|
package/apis/YoutubeApi.ts
CHANGED
|
@@ -16,10 +16,13 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiYoutubeDrxContentGet200Response,
|
|
19
|
+
ApiYoutubeRefreshPost200Response,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
21
22
|
ApiYoutubeDrxContentGet200ResponseFromJSON,
|
|
22
23
|
ApiYoutubeDrxContentGet200ResponseToJSON,
|
|
24
|
+
ApiYoutubeRefreshPost200ResponseFromJSON,
|
|
25
|
+
ApiYoutubeRefreshPost200ResponseToJSON,
|
|
23
26
|
} from '../models/index';
|
|
24
27
|
|
|
25
28
|
/**
|
|
@@ -67,4 +70,44 @@ export class YoutubeApi extends runtime.BaseAPI {
|
|
|
67
70
|
return await response.value();
|
|
68
71
|
}
|
|
69
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
75
|
+
* Refresh DRX Sportnet Content
|
|
76
|
+
*/
|
|
77
|
+
async apiYoutubeRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeRefreshPost200Response>> {
|
|
78
|
+
const queryParameters: any = {};
|
|
79
|
+
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
83
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
+
const token = this.configuration.accessToken;
|
|
88
|
+
const tokenString = await token("BearerAuth", []);
|
|
89
|
+
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const response = await this.request({
|
|
95
|
+
path: `/api/youtube/refresh`,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides);
|
|
100
|
+
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeRefreshPost200ResponseFromJSON(jsonValue));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
106
|
+
* Refresh DRX Sportnet Content
|
|
107
|
+
*/
|
|
108
|
+
async apiYoutubeRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeRefreshPost200Response> {
|
|
109
|
+
const response = await this.apiYoutubeRefreshPostRaw(initOverrides);
|
|
110
|
+
return await response.value();
|
|
111
|
+
}
|
|
112
|
+
|
|
70
113
|
}
|
package/deploy.log
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner=NewModel,ModelA=NewModelA in CLI).
|
|
40
40
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_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_youtube_drx_content_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
41
41
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_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_youtube_drx_content_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
42
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_refresh_post_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_youtube_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
42
43
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
43
44
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_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_tournament_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
44
45
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_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_tournament_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -142,6 +143,7 @@
|
|
|
142
143
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
143
144
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
144
145
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
146
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeRefreshPost200Response.ts
|
|
145
147
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
|
|
146
148
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
147
149
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
@@ -151,6 +153,7 @@
|
|
|
151
153
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/seed. Renamed to auto-generated operationId: apiPadelSeedGet
|
|
152
154
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/sync. Renamed to auto-generated operationId: apiPadelSyncGet
|
|
153
155
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/youtube/drx-content. Renamed to auto-generated operationId: apiYoutubeDrxContentGet
|
|
156
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/youtube/refresh. Renamed to auto-generated operationId: apiYoutubeRefreshPost
|
|
154
157
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament. Renamed to auto-generated operationId: apiTournamentGet
|
|
155
158
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/tournament/padel. Renamed to auto-generated operationId: apiTournamentPadelPost
|
|
156
159
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament/padel/{id}. Renamed to auto-generated operationId: apiTournamentPadelIdGet
|
|
@@ -187,23 +190,21 @@
|
|
|
187
190
|
# https://opencollective.com/openapi_generator/donate #
|
|
188
191
|
################################################################################
|
|
189
192
|
✅ SDK generated
|
|
190
|
-
[master
|
|
191
|
-
|
|
192
|
-
create mode 100644
|
|
193
|
-
create mode 100644 models/ApiUserGet200Response.ts
|
|
194
|
-
create mode 100644 models/ApiUserGetFilterParameter.ts
|
|
193
|
+
[master dcbab86] VPS: Generated API SDK
|
|
194
|
+
4 files changed, 118 insertions(+)
|
|
195
|
+
create mode 100644 models/ApiYoutubeRefreshPost200Response.ts
|
|
195
196
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
196
|
-
|
|
197
|
+
87b05e4..dcbab86 master -> master
|
|
197
198
|
✅ Changes committed and pushed
|
|
198
|
-
v1.1.
|
|
199
|
+
v1.1.108
|
|
199
200
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
200
|
-
|
|
201
|
+
dcbab86..3ba32d6 master -> master
|
|
201
202
|
✅ Version bumped
|
|
202
203
|
|
|
203
|
-
> @drxsuperapp/sdk@1.1.
|
|
204
|
+
> @drxsuperapp/sdk@1.1.108 prepublishOnly
|
|
204
205
|
> npm run build
|
|
205
206
|
|
|
206
207
|
|
|
207
|
-
> @drxsuperapp/sdk@1.1.
|
|
208
|
+
> @drxsuperapp/sdk@1.1.108 build
|
|
208
209
|
> tsc
|
|
209
210
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiYoutubeDrxContentGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiYoutubeDrxContentGet200Response, ApiYoutubeRefreshPost200Response } from '../models/index';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
@@ -25,4 +25,14 @@ export declare class YoutubeApi extends runtime.BaseAPI {
|
|
|
25
25
|
* Get DRX Sportnet Content
|
|
26
26
|
*/
|
|
27
27
|
apiYoutubeDrxContentGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeDrxContentGet200Response>;
|
|
28
|
+
/**
|
|
29
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
30
|
+
* Refresh DRX Sportnet Content
|
|
31
|
+
*/
|
|
32
|
+
apiYoutubeRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeRefreshPost200Response>>;
|
|
33
|
+
/**
|
|
34
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
35
|
+
* Refresh DRX Sportnet Content
|
|
36
|
+
*/
|
|
37
|
+
apiYoutubeRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeRefreshPost200Response>;
|
|
28
38
|
}
|
package/dist/apis/YoutubeApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiYoutubeDrxContentGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiYoutubeDrxContentGet200ResponseFromJSON, ApiYoutubeRefreshPost200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -50,4 +50,37 @@ export class YoutubeApi extends runtime.BaseAPI {
|
|
|
50
50
|
const response = await this.apiYoutubeDrxContentGetRaw(initOverrides);
|
|
51
51
|
return await response.value();
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
55
|
+
* Refresh DRX Sportnet Content
|
|
56
|
+
*/
|
|
57
|
+
async apiYoutubeRefreshPostRaw(initOverrides) {
|
|
58
|
+
const queryParameters = {};
|
|
59
|
+
const headerParameters = {};
|
|
60
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
61
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
62
|
+
}
|
|
63
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
64
|
+
const token = this.configuration.accessToken;
|
|
65
|
+
const tokenString = await token("BearerAuth", []);
|
|
66
|
+
if (tokenString) {
|
|
67
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const response = await this.request({
|
|
71
|
+
path: `/api/youtube/refresh`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
}, initOverrides);
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeRefreshPost200ResponseFromJSON(jsonValue));
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
|
|
80
|
+
* Refresh DRX Sportnet Content
|
|
81
|
+
*/
|
|
82
|
+
async apiYoutubeRefreshPost(initOverrides) {
|
|
83
|
+
const response = await this.apiYoutubeRefreshPostRaw(initOverrides);
|
|
84
|
+
return await response.value();
|
|
85
|
+
}
|
|
53
86
|
}
|
|
@@ -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 ApiYoutubeRefreshPost200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiYoutubeRefreshPost200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiYoutubeRefreshPost200Response
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiYoutubeRefreshPost200Response
|
|
28
|
+
*/
|
|
29
|
+
timestamp?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiYoutubeRefreshPost200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiYoutubeRefreshPost200Response(value: object): value is ApiYoutubeRefreshPost200Response;
|
|
35
|
+
export declare function ApiYoutubeRefreshPost200ResponseFromJSON(json: any): ApiYoutubeRefreshPost200Response;
|
|
36
|
+
export declare function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiYoutubeRefreshPost200Response;
|
|
37
|
+
export declare function ApiYoutubeRefreshPost200ResponseToJSON(json: any): ApiYoutubeRefreshPost200Response;
|
|
38
|
+
export declare function ApiYoutubeRefreshPost200ResponseToJSONTyped(value?: ApiYoutubeRefreshPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 ApiYoutubeRefreshPost200Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiYoutubeRefreshPost200Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ApiYoutubeRefreshPost200ResponseFromJSON(json) {
|
|
21
|
+
return ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
29
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ApiYoutubeRefreshPost200ResponseToJSON(json) {
|
|
33
|
+
return ApiYoutubeRefreshPost200ResponseToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ApiYoutubeRefreshPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'message': value['message'],
|
|
41
|
+
'timestamp': value['timestamp'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -66,3 +66,4 @@ export * from './ApiYoutubeDrxContentGet200Response';
|
|
|
66
66
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
67
67
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
|
68
68
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
|
|
69
|
+
export * from './ApiYoutubeRefreshPost200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -68,3 +68,4 @@ export * from './ApiYoutubeDrxContentGet200Response';
|
|
|
68
68
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
69
69
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
|
70
70
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
|
|
71
|
+
export * from './ApiYoutubeRefreshPost200Response';
|
|
@@ -0,0 +1,73 @@
|
|
|
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 ApiYoutubeRefreshPost200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiYoutubeRefreshPost200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiYoutubeRefreshPost200Response
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiYoutubeRefreshPost200Response
|
|
32
|
+
*/
|
|
33
|
+
timestamp?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiYoutubeRefreshPost200Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiYoutubeRefreshPost200Response(value: object): value is ApiYoutubeRefreshPost200Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ApiYoutubeRefreshPost200ResponseFromJSON(json: any): ApiYoutubeRefreshPost200Response {
|
|
44
|
+
return ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiYoutubeRefreshPost200Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
54
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ApiYoutubeRefreshPost200ResponseToJSON(json: any): ApiYoutubeRefreshPost200Response {
|
|
59
|
+
return ApiYoutubeRefreshPost200ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ApiYoutubeRefreshPost200ResponseToJSONTyped(value?: ApiYoutubeRefreshPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'message': value['message'],
|
|
70
|
+
'timestamp': value['timestamp'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/models/index.ts
CHANGED
|
@@ -68,3 +68,4 @@ export * from './ApiYoutubeDrxContentGet200Response';
|
|
|
68
68
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
69
69
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
|
70
70
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
|
|
71
|
+
export * from './ApiYoutubeRefreshPost200Response';
|