@drxsuperapp/sdk 1.1.293 → 1.1.295
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 +8 -0
- package/apis/MMAApi.ts +143 -0
- package/apis/index.ts +1 -0
- package/deploy.log +33 -11
- package/dist/apis/MMAApi.d.ts +43 -0
- package/dist/apis/MMAApi.js +97 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiMmaEventsGet200Response.d.ts +51 -0
- package/dist/models/ApiMmaEventsGet200Response.js +54 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.d.ts +81 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.js +60 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.d.ts +81 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.js +60 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.d.ts +51 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.js +50 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.d.ts +86 -0
- package/dist/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.js +61 -0
- package/dist/models/ApiMmaEventsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiMmaEventsIdGet200Response.js +54 -0
- package/dist/models/ApiUserFcmTokenPost200ResponseResponseObject.d.ts +0 -12
- package/dist/models/ApiUserFcmTokenPost200ResponseResponseObject.js +0 -8
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/models/ApiMmaEventsGet200Response.ts +100 -0
- package/models/ApiMmaEventsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.ts +138 -0
- package/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.ts +138 -0
- package/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.ts +98 -0
- package/models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.ts +138 -0
- package/models/ApiMmaEventsIdGet200Response.ts +100 -0
- package/models/ApiUserFcmTokenPost200ResponseResponseObject.ts +0 -18
- package/models/index.ts +7 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -3,6 +3,7 @@ apis/AuthenticationApi.ts
|
|
|
3
3
|
apis/EsportApi.ts
|
|
4
4
|
apis/GarudakuApi.ts
|
|
5
5
|
apis/HealthCheckApi.ts
|
|
6
|
+
apis/MMAApi.ts
|
|
6
7
|
apis/NewsApi.ts
|
|
7
8
|
apis/PadelApi.ts
|
|
8
9
|
apis/TennisApi.ts
|
|
@@ -108,6 +109,13 @@ models/ApiGarudakuTournamentsIdPutRequest.ts
|
|
|
108
109
|
models/ApiGarudakuTournamentsPost200Response.ts
|
|
109
110
|
models/ApiGarudakuTournamentsPostRequest.ts
|
|
110
111
|
models/ApiHealthCheckGet200Response.ts
|
|
112
|
+
models/ApiMmaEventsGet200Response.ts
|
|
113
|
+
models/ApiMmaEventsGet200ResponseResponseObject.ts
|
|
114
|
+
models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.ts
|
|
115
|
+
models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.ts
|
|
116
|
+
models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.ts
|
|
117
|
+
models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.ts
|
|
118
|
+
models/ApiMmaEventsIdGet200Response.ts
|
|
111
119
|
models/ApiNewsCategoriesListGet200Response.ts
|
|
112
120
|
models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
113
121
|
models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.ts
|
package/apis/MMAApi.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiMmaEventsGet200Response,
|
|
19
|
+
ApiMmaEventsIdGet200Response,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ApiMmaEventsGet200ResponseFromJSON,
|
|
23
|
+
ApiMmaEventsGet200ResponseToJSON,
|
|
24
|
+
ApiMmaEventsIdGet200ResponseFromJSON,
|
|
25
|
+
ApiMmaEventsIdGet200ResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ApiMmaEventsGetRequest {
|
|
29
|
+
page?: number;
|
|
30
|
+
pageSize?: number;
|
|
31
|
+
sort?: string;
|
|
32
|
+
filter?: object;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ApiMmaEventsIdGetRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export class MMAApi extends runtime.BaseAPI {
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get MMA Events
|
|
46
|
+
*/
|
|
47
|
+
async apiMmaEventsGetRaw(requestParameters: ApiMmaEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiMmaEventsGet200Response>> {
|
|
48
|
+
const queryParameters: any = {};
|
|
49
|
+
|
|
50
|
+
if (requestParameters['page'] != null) {
|
|
51
|
+
queryParameters['page'] = requestParameters['page'];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (requestParameters['pageSize'] != null) {
|
|
55
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (requestParameters['sort'] != null) {
|
|
59
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (requestParameters['filter'] != null) {
|
|
63
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
67
|
+
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
73
|
+
const token = this.configuration.accessToken;
|
|
74
|
+
const tokenString = await token("BearerAuth", []);
|
|
75
|
+
|
|
76
|
+
if (tokenString) {
|
|
77
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const response = await this.request({
|
|
81
|
+
path: `/api/mma/events`,
|
|
82
|
+
method: 'GET',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
}, initOverrides);
|
|
86
|
+
|
|
87
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiMmaEventsGet200ResponseFromJSON(jsonValue));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Get MMA Events
|
|
92
|
+
*/
|
|
93
|
+
async apiMmaEventsGet(requestParameters: ApiMmaEventsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiMmaEventsGet200Response> {
|
|
94
|
+
const response = await this.apiMmaEventsGetRaw(requestParameters, initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Get MMA Event Details
|
|
100
|
+
*/
|
|
101
|
+
async apiMmaEventsIdGetRaw(requestParameters: ApiMmaEventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiMmaEventsIdGet200Response>> {
|
|
102
|
+
if (requestParameters['id'] == null) {
|
|
103
|
+
throw new runtime.RequiredError(
|
|
104
|
+
'id',
|
|
105
|
+
'Required parameter "id" was null or undefined when calling apiMmaEventsIdGet().'
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const queryParameters: any = {};
|
|
110
|
+
|
|
111
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
112
|
+
|
|
113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
118
|
+
const token = this.configuration.accessToken;
|
|
119
|
+
const tokenString = await token("BearerAuth", []);
|
|
120
|
+
|
|
121
|
+
if (tokenString) {
|
|
122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
const response = await this.request({
|
|
126
|
+
path: `/api/mma/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
127
|
+
method: 'GET',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
}, initOverrides);
|
|
131
|
+
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiMmaEventsIdGet200ResponseFromJSON(jsonValue));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Get MMA Event Details
|
|
137
|
+
*/
|
|
138
|
+
async apiMmaEventsIdGet(requestParameters: ApiMmaEventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiMmaEventsIdGet200Response> {
|
|
139
|
+
const response = await this.apiMmaEventsIdGetRaw(requestParameters, initOverrides);
|
|
140
|
+
return await response.value();
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|
package/apis/index.ts
CHANGED
package/deploy.log
CHANGED
|
@@ -227,6 +227,13 @@
|
|
|
227
227
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_admin_app_configs_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_admin_app_configs_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_admin_app_configs_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
228
228
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_admin_app_configs__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_admin_app_configs__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_admin_app_configs__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
229
229
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_admin_app_configs_group__group__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_admin_app_configs_group__group__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_admin_app_configs_group__group__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
230
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner_Fighter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner_Fighter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner_Fighter=NewModel,ModelA=NewModelA in CLI).
|
|
231
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner_FightFighters_inner=NewModel,ModelA=NewModelA in CLI).
|
|
232
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject_items_inner_Fights_inner=NewModel,ModelA=NewModelA in CLI).
|
|
233
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_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_mma_events_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
234
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_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_mma_events_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
235
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_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_mma_events_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
236
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events__id__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_mma_events__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
230
237
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
231
238
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
232
239
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
|
|
@@ -323,6 +330,13 @@
|
|
|
323
330
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiGarudakuTournamentsPost200Response.ts
|
|
324
331
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiGarudakuTournamentsPostRequest.ts
|
|
325
332
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
333
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200Response.ts
|
|
334
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200ResponseResponseObject.ts
|
|
335
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.ts
|
|
336
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.ts
|
|
337
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.ts
|
|
338
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.ts
|
|
339
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiMmaEventsIdGet200Response.ts
|
|
326
340
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200Response.ts
|
|
327
341
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
328
342
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.ts
|
|
@@ -537,6 +551,8 @@
|
|
|
537
551
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/admin/app-configs/{id}. Renamed to auto-generated operationId: apiAdminAppConfigsIdDelete
|
|
538
552
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin/app-configs/key/{key}. Renamed to auto-generated operationId: apiAdminAppConfigsKeyKeyGet
|
|
539
553
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin/app-configs/group/{group}. Renamed to auto-generated operationId: apiAdminAppConfigsGroupGroupGet
|
|
554
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events. Renamed to auto-generated operationId: apiMmaEventsGet
|
|
555
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events/{id}. Renamed to auto-generated operationId: apiMmaEventsIdGet
|
|
540
556
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
541
557
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
542
558
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
@@ -548,6 +564,8 @@
|
|
|
548
564
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
549
565
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
|
|
550
566
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
567
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/MMAApi.ts
|
|
568
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
551
569
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NewsApi.ts
|
|
552
570
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
553
571
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/PadelApi.ts
|
|
@@ -579,24 +597,28 @@
|
|
|
579
597
|
# https://opencollective.com/openapi_generator/donate #
|
|
580
598
|
################################################################################
|
|
581
599
|
✅ SDK generated
|
|
582
|
-
[master
|
|
583
|
-
|
|
584
|
-
create mode 100644 apis/
|
|
585
|
-
create mode 100644 models/
|
|
586
|
-
create mode 100644 models/
|
|
587
|
-
create mode 100644 models/
|
|
600
|
+
[master 04b3012] VPS: Generated API SDK
|
|
601
|
+
11 files changed, 981 insertions(+)
|
|
602
|
+
create mode 100644 apis/MMAApi.ts
|
|
603
|
+
create mode 100644 models/ApiMmaEventsGet200Response.ts
|
|
604
|
+
create mode 100644 models/ApiMmaEventsGet200ResponseResponseObject.ts
|
|
605
|
+
create mode 100644 models/ApiMmaEventsGet200ResponseResponseObjectItemsInner.ts
|
|
606
|
+
create mode 100644 models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInner.ts
|
|
607
|
+
create mode 100644 models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInner.ts
|
|
608
|
+
create mode 100644 models/ApiMmaEventsGet200ResponseResponseObjectItemsInnerFightsInnerFightFightersInnerFighter.ts
|
|
609
|
+
create mode 100644 models/ApiMmaEventsIdGet200Response.ts
|
|
588
610
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
589
|
-
|
|
611
|
+
dedcee2..04b3012 master -> master
|
|
590
612
|
✅ Changes committed and pushed
|
|
591
|
-
v1.1.
|
|
613
|
+
v1.1.295
|
|
592
614
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
593
|
-
|
|
615
|
+
04b3012..51cbd4e master -> master
|
|
594
616
|
✅ Version bumped
|
|
595
617
|
|
|
596
|
-
> @drxsuperapp/sdk@1.1.
|
|
618
|
+
> @drxsuperapp/sdk@1.1.295 prepublishOnly
|
|
597
619
|
> npm run build
|
|
598
620
|
|
|
599
621
|
|
|
600
|
-
> @drxsuperapp/sdk@1.1.
|
|
622
|
+
> @drxsuperapp/sdk@1.1.295 build
|
|
601
623
|
> tsc
|
|
602
624
|
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ApiMmaEventsGet200Response, ApiMmaEventsIdGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiMmaEventsGetRequest {
|
|
15
|
+
page?: number;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
sort?: string;
|
|
18
|
+
filter?: object;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiMmaEventsIdGetRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class MMAApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Get MMA Events
|
|
29
|
+
*/
|
|
30
|
+
apiMmaEventsGetRaw(requestParameters: ApiMmaEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiMmaEventsGet200Response>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get MMA Events
|
|
33
|
+
*/
|
|
34
|
+
apiMmaEventsGet(requestParameters?: ApiMmaEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiMmaEventsGet200Response>;
|
|
35
|
+
/**
|
|
36
|
+
* Get MMA Event Details
|
|
37
|
+
*/
|
|
38
|
+
apiMmaEventsIdGetRaw(requestParameters: ApiMmaEventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiMmaEventsIdGet200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get MMA Event Details
|
|
41
|
+
*/
|
|
42
|
+
apiMmaEventsIdGet(requestParameters: ApiMmaEventsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiMmaEventsIdGet200Response>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
15
|
+
import { ApiMmaEventsGet200ResponseFromJSON, ApiMmaEventsIdGet200ResponseFromJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class MMAApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Get MMA Events
|
|
22
|
+
*/
|
|
23
|
+
async apiMmaEventsGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
if (requestParameters['page'] != null) {
|
|
26
|
+
queryParameters['page'] = requestParameters['page'];
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['pageSize'] != null) {
|
|
29
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['sort'] != null) {
|
|
32
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['filter'] != null) {
|
|
35
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
36
|
+
}
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
39
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
40
|
+
}
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = await token("BearerAuth", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const response = await this.request({
|
|
49
|
+
path: `/api/mma/events`,
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiMmaEventsGet200ResponseFromJSON(jsonValue));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get MMA Events
|
|
58
|
+
*/
|
|
59
|
+
async apiMmaEventsGet(requestParameters = {}, initOverrides) {
|
|
60
|
+
const response = await this.apiMmaEventsGetRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get MMA Event Details
|
|
65
|
+
*/
|
|
66
|
+
async apiMmaEventsIdGetRaw(requestParameters, initOverrides) {
|
|
67
|
+
if (requestParameters['id'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiMmaEventsIdGet().');
|
|
69
|
+
}
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
74
|
+
}
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: `/api/mma/events/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
84
|
+
method: 'GET',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiMmaEventsIdGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get MMA Event Details
|
|
92
|
+
*/
|
|
93
|
+
async apiMmaEventsIdGet(requestParameters, initOverrides) {
|
|
94
|
+
const response = await this.apiMmaEventsIdGetRaw(requestParameters, initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
97
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import type { ApiMmaEventsGet200ResponseResponseObject } from './ApiMmaEventsGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiMmaEventsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiMmaEventsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiMmaEventsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiMmaEventsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiMmaEventsGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiMmaEventsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiMmaEventsGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiMmaEventsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiMmaEventsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiMmaEventsGet200Response(value: object): value is ApiMmaEventsGet200Response;
|
|
48
|
+
export declare function ApiMmaEventsGet200ResponseFromJSON(json: any): ApiMmaEventsGet200Response;
|
|
49
|
+
export declare function ApiMmaEventsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMmaEventsGet200Response;
|
|
50
|
+
export declare function ApiMmaEventsGet200ResponseToJSON(json: any): ApiMmaEventsGet200Response;
|
|
51
|
+
export declare function ApiMmaEventsGet200ResponseToJSONTyped(value?: ApiMmaEventsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import { ApiMmaEventsGet200ResponseResponseObjectFromJSON, ApiMmaEventsGet200ResponseResponseObjectToJSON, } from './ApiMmaEventsGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiMmaEventsGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiMmaEventsGet200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiMmaEventsGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiMmaEventsGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiMmaEventsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiMmaEventsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiMmaEventsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiMmaEventsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiMmaEventsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiMmaEventsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { ApiMmaEventsGet200ResponseResponseObjectItemsInner } from './ApiMmaEventsGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiMmaEventsGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiMmaEventsGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiMmaEventsGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiMmaEventsGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiMmaEventsGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiMmaEventsGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiMmaEventsGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiMmaEventsGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiMmaEventsGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiMmaEventsGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiMmaEventsGet200ResponseResponseObject(value: object): value is ApiMmaEventsGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiMmaEventsGet200ResponseResponseObjectFromJSON(json: any): ApiMmaEventsGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiMmaEventsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiMmaEventsGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiMmaEventsGet200ResponseResponseObjectToJSON(json: any): ApiMmaEventsGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiMmaEventsGet200ResponseResponseObjectToJSONTyped(value?: ApiMmaEventsGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { ApiMmaEventsGet200ResponseResponseObjectItemsInnerFromJSON, ApiMmaEventsGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiMmaEventsGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiMmaEventsGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiMmaEventsGet200ResponseResponseObject(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function ApiMmaEventsGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiMmaEventsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiMmaEventsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiMmaEventsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiMmaEventsGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiMmaEventsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiMmaEventsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiMmaEventsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|