@drxsuperapp/sdk 1.1.48 → 1.1.49
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 +0 -4
- package/apis/index.ts +0 -1
- package/deploy.log +12 -22
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/models/index.ts +0 -3
- package/package.json +1 -1
- package/apis/ExampleApi.ts +0 -272
- package/dist/apis/ExampleApi.d.ts +0 -65
- package/dist/apis/ExampleApi.js +0 -183
- package/dist/models/ApiExamplesGet200ResponseInner.d.ts +0 -56
- package/dist/models/ApiExamplesGet200ResponseInner.js +0 -59
- package/dist/models/ApiExamplesIdPutRequest.d.ts +0 -38
- package/dist/models/ApiExamplesIdPutRequest.js +0 -43
- package/dist/models/ApiExamplesPostRequest.d.ts +0 -38
- package/dist/models/ApiExamplesPostRequest.js +0 -47
- package/models/ApiExamplesGet200ResponseInner.ts +0 -102
- package/models/ApiExamplesIdPutRequest.ts +0 -73
- package/models/ApiExamplesPostRequest.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
apis/ExampleApi.ts
|
|
2
1
|
apis/HealthCheckApi.ts
|
|
3
2
|
apis/NewsApi.ts
|
|
4
3
|
apis/PadelApi.ts
|
|
5
4
|
apis/index.ts
|
|
6
5
|
index.ts
|
|
7
|
-
models/ApiExamplesGet200ResponseInner.ts
|
|
8
|
-
models/ApiExamplesIdPutRequest.ts
|
|
9
|
-
models/ApiExamplesPostRequest.ts
|
|
10
6
|
models/ApiHealthCheckGet200Response.ts
|
|
11
7
|
models/ApiNewsCategoriesListGet200Response.ts
|
|
12
8
|
models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
package/apis/index.ts
CHANGED
package/deploy.log
CHANGED
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
|
|
6
6
|
[main] WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to `false`.
|
|
7
7
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_healthCheck_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_healthCheck_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_healthCheck_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
8
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
9
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
10
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__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_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
11
8
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_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_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
12
9
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_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_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
13
10
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_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_news_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -37,9 +34,6 @@
|
|
|
37
34
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_cron_point_by_point_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_cron_point_by_point_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_cron_point_by_point_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
38
35
|
[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/]
|
|
39
36
|
[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/]
|
|
40
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesGet200ResponseInner.ts
|
|
41
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesIdPutRequest.ts
|
|
42
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesPostRequest.ts
|
|
43
37
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
44
38
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200Response.ts
|
|
45
39
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -69,11 +63,6 @@
|
|
|
69
63
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseStatsConnections.ts
|
|
70
64
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseStatsMatchValue.ts
|
|
71
65
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
|
|
72
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
73
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
74
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
75
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
76
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
77
66
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
78
67
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
79
68
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/categories/list. Renamed to auto-generated operationId: apiNewsCategoriesListGet
|
|
@@ -81,8 +70,6 @@
|
|
|
81
70
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/matches/{id}. Renamed to auto-generated operationId: apiPadelMatchesIdGet
|
|
82
71
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/point-by-point. Renamed to auto-generated operationId: apiPadelCronPointByPointGet
|
|
83
72
|
[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/]
|
|
84
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/ExampleApi.ts
|
|
85
|
-
[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/]
|
|
86
73
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
|
|
87
74
|
[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/]
|
|
88
75
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NewsApi.ts
|
|
@@ -102,21 +89,24 @@
|
|
|
102
89
|
# https://opencollective.com/openapi_generator/donate #
|
|
103
90
|
################################################################################
|
|
104
91
|
✅ SDK generated
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
92
|
+
[master dcdae7b] VPS: Generated API SDK
|
|
93
|
+
7 files changed, 530 deletions(-)
|
|
94
|
+
delete mode 100644 apis/ExampleApi.ts
|
|
95
|
+
delete mode 100644 models/ApiExamplesGet200ResponseInner.ts
|
|
96
|
+
delete mode 100644 models/ApiExamplesIdPutRequest.ts
|
|
97
|
+
delete mode 100644 models/ApiExamplesPostRequest.ts
|
|
98
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
99
|
+
2dbdf03..dcdae7b master -> master
|
|
110
100
|
✅ Changes committed and pushed
|
|
111
|
-
v1.1.
|
|
101
|
+
v1.1.49
|
|
112
102
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
113
|
-
|
|
103
|
+
dcdae7b..6eaa35d master -> master
|
|
114
104
|
✅ Version bumped
|
|
115
105
|
|
|
116
|
-
> @drxsuperapp/sdk@1.1.
|
|
106
|
+
> @drxsuperapp/sdk@1.1.49 prepublishOnly
|
|
117
107
|
> npm run build
|
|
118
108
|
|
|
119
109
|
|
|
120
|
-
> @drxsuperapp/sdk@1.1.
|
|
110
|
+
> @drxsuperapp/sdk@1.1.49 build
|
|
121
111
|
> tsc
|
|
122
112
|
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './ApiExamplesGet200ResponseInner';
|
|
2
|
-
export * from './ApiExamplesIdPutRequest';
|
|
3
|
-
export * from './ApiExamplesPostRequest';
|
|
4
1
|
export * from './ApiHealthCheckGet200Response';
|
|
5
2
|
export * from './ApiNewsCategoriesListGet200Response';
|
|
6
3
|
export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
|
package/dist/models/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './ApiExamplesGet200ResponseInner';
|
|
4
|
-
export * from './ApiExamplesIdPutRequest';
|
|
5
|
-
export * from './ApiExamplesPostRequest';
|
|
6
3
|
export * from './ApiHealthCheckGet200Response';
|
|
7
4
|
export * from './ApiNewsCategoriesListGet200Response';
|
|
8
5
|
export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
|
package/models/index.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './ApiExamplesGet200ResponseInner';
|
|
4
|
-
export * from './ApiExamplesIdPutRequest';
|
|
5
|
-
export * from './ApiExamplesPostRequest';
|
|
6
3
|
export * from './ApiHealthCheckGet200Response';
|
|
7
4
|
export * from './ApiNewsCategoriesListGet200Response';
|
|
8
5
|
export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
|
package/package.json
CHANGED
package/apis/ExampleApi.ts
DELETED
|
@@ -1,272 +0,0 @@
|
|
|
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
|
-
ApiExamplesGet200ResponseInner,
|
|
19
|
-
ApiExamplesIdPutRequest,
|
|
20
|
-
ApiExamplesPostRequest,
|
|
21
|
-
} from '../models/index';
|
|
22
|
-
import {
|
|
23
|
-
ApiExamplesGet200ResponseInnerFromJSON,
|
|
24
|
-
ApiExamplesGet200ResponseInnerToJSON,
|
|
25
|
-
ApiExamplesIdPutRequestFromJSON,
|
|
26
|
-
ApiExamplesIdPutRequestToJSON,
|
|
27
|
-
ApiExamplesPostRequestFromJSON,
|
|
28
|
-
ApiExamplesPostRequestToJSON,
|
|
29
|
-
} from '../models/index';
|
|
30
|
-
|
|
31
|
-
export interface ApiExamplesGetRequest {
|
|
32
|
-
page?: number;
|
|
33
|
-
limit?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface ApiExamplesIdDeleteRequest {
|
|
37
|
-
id: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ApiExamplesIdGetRequest {
|
|
41
|
-
id: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface ApiExamplesIdPutOperationRequest {
|
|
45
|
-
id: string;
|
|
46
|
-
apiExamplesIdPutRequest?: ApiExamplesIdPutRequest;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ApiExamplesPostOperationRequest {
|
|
50
|
-
apiExamplesPostRequest?: ApiExamplesPostRequest;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export class ExampleApi extends runtime.BaseAPI {
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
*/
|
|
60
|
-
async apiExamplesGetRaw(requestParameters: ApiExamplesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiExamplesGet200ResponseInner>>> {
|
|
61
|
-
const queryParameters: any = {};
|
|
62
|
-
|
|
63
|
-
if (requestParameters['page'] != null) {
|
|
64
|
-
queryParameters['page'] = requestParameters['page'];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (requestParameters['limit'] != null) {
|
|
68
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
-
|
|
73
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
-
const token = this.configuration.accessToken;
|
|
79
|
-
const tokenString = await token("BearerAuth", []);
|
|
80
|
-
|
|
81
|
-
if (tokenString) {
|
|
82
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
const response = await this.request({
|
|
86
|
-
path: `/api/examples`,
|
|
87
|
-
method: 'GET',
|
|
88
|
-
headers: headerParameters,
|
|
89
|
-
query: queryParameters,
|
|
90
|
-
}, initOverrides);
|
|
91
|
-
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiExamplesGet200ResponseInnerFromJSON));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
*/
|
|
97
|
-
async apiExamplesGet(requestParameters: ApiExamplesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiExamplesGet200ResponseInner>> {
|
|
98
|
-
const response = await this.apiExamplesGetRaw(requestParameters, initOverrides);
|
|
99
|
-
return await response.value();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
*/
|
|
104
|
-
async apiExamplesIdDeleteRaw(requestParameters: ApiExamplesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
105
|
-
if (requestParameters['id'] == null) {
|
|
106
|
-
throw new runtime.RequiredError(
|
|
107
|
-
'id',
|
|
108
|
-
'Required parameter "id" was null or undefined when calling apiExamplesIdDelete().'
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const queryParameters: any = {};
|
|
113
|
-
|
|
114
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
|
-
|
|
116
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
117
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
121
|
-
const token = this.configuration.accessToken;
|
|
122
|
-
const tokenString = await token("BearerAuth", []);
|
|
123
|
-
|
|
124
|
-
if (tokenString) {
|
|
125
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
const response = await this.request({
|
|
129
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
130
|
-
method: 'DELETE',
|
|
131
|
-
headers: headerParameters,
|
|
132
|
-
query: queryParameters,
|
|
133
|
-
}, initOverrides);
|
|
134
|
-
|
|
135
|
-
return new runtime.VoidApiResponse(response);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
*/
|
|
140
|
-
async apiExamplesIdDelete(requestParameters: ApiExamplesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
141
|
-
await this.apiExamplesIdDeleteRaw(requestParameters, initOverrides);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
*/
|
|
146
|
-
async apiExamplesIdGetRaw(requestParameters: ApiExamplesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>> {
|
|
147
|
-
if (requestParameters['id'] == null) {
|
|
148
|
-
throw new runtime.RequiredError(
|
|
149
|
-
'id',
|
|
150
|
-
'Required parameter "id" was null or undefined when calling apiExamplesIdGet().'
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const queryParameters: any = {};
|
|
155
|
-
|
|
156
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
157
|
-
|
|
158
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
-
const token = this.configuration.accessToken;
|
|
164
|
-
const tokenString = await token("BearerAuth", []);
|
|
165
|
-
|
|
166
|
-
if (tokenString) {
|
|
167
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const response = await this.request({
|
|
171
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
172
|
-
method: 'GET',
|
|
173
|
-
headers: headerParameters,
|
|
174
|
-
query: queryParameters,
|
|
175
|
-
}, initOverrides);
|
|
176
|
-
|
|
177
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
*/
|
|
182
|
-
async apiExamplesIdGet(requestParameters: ApiExamplesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner> {
|
|
183
|
-
const response = await this.apiExamplesIdGetRaw(requestParameters, initOverrides);
|
|
184
|
-
return await response.value();
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
*/
|
|
189
|
-
async apiExamplesIdPutRaw(requestParameters: ApiExamplesIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>> {
|
|
190
|
-
if (requestParameters['id'] == null) {
|
|
191
|
-
throw new runtime.RequiredError(
|
|
192
|
-
'id',
|
|
193
|
-
'Required parameter "id" was null or undefined when calling apiExamplesIdPut().'
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const queryParameters: any = {};
|
|
198
|
-
|
|
199
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
200
|
-
|
|
201
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
-
|
|
203
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
204
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
208
|
-
const token = this.configuration.accessToken;
|
|
209
|
-
const tokenString = await token("BearerAuth", []);
|
|
210
|
-
|
|
211
|
-
if (tokenString) {
|
|
212
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
const response = await this.request({
|
|
216
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
217
|
-
method: 'PUT',
|
|
218
|
-
headers: headerParameters,
|
|
219
|
-
query: queryParameters,
|
|
220
|
-
body: ApiExamplesIdPutRequestToJSON(requestParameters['apiExamplesIdPutRequest']),
|
|
221
|
-
}, initOverrides);
|
|
222
|
-
|
|
223
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
*/
|
|
228
|
-
async apiExamplesIdPut(requestParameters: ApiExamplesIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner> {
|
|
229
|
-
const response = await this.apiExamplesIdPutRaw(requestParameters, initOverrides);
|
|
230
|
-
return await response.value();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
*/
|
|
235
|
-
async apiExamplesPostRaw(requestParameters: ApiExamplesPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>> {
|
|
236
|
-
const queryParameters: any = {};
|
|
237
|
-
|
|
238
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
239
|
-
|
|
240
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
241
|
-
|
|
242
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
243
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
247
|
-
const token = this.configuration.accessToken;
|
|
248
|
-
const tokenString = await token("BearerAuth", []);
|
|
249
|
-
|
|
250
|
-
if (tokenString) {
|
|
251
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
const response = await this.request({
|
|
255
|
-
path: `/api/examples`,
|
|
256
|
-
method: 'POST',
|
|
257
|
-
headers: headerParameters,
|
|
258
|
-
query: queryParameters,
|
|
259
|
-
body: ApiExamplesPostRequestToJSON(requestParameters['apiExamplesPostRequest']),
|
|
260
|
-
}, initOverrides);
|
|
261
|
-
|
|
262
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
*/
|
|
267
|
-
async apiExamplesPost(requestParameters: ApiExamplesPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner> {
|
|
268
|
-
const response = await this.apiExamplesPostRaw(requestParameters, initOverrides);
|
|
269
|
-
return await response.value();
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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 { ApiExamplesGet200ResponseInner, ApiExamplesIdPutRequest, ApiExamplesPostRequest } from '../models/index';
|
|
14
|
-
export interface ApiExamplesGetRequest {
|
|
15
|
-
page?: number;
|
|
16
|
-
limit?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ApiExamplesIdDeleteRequest {
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ApiExamplesIdGetRequest {
|
|
22
|
-
id: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ApiExamplesIdPutOperationRequest {
|
|
25
|
-
id: string;
|
|
26
|
-
apiExamplesIdPutRequest?: ApiExamplesIdPutRequest;
|
|
27
|
-
}
|
|
28
|
-
export interface ApiExamplesPostOperationRequest {
|
|
29
|
-
apiExamplesPostRequest?: ApiExamplesPostRequest;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class ExampleApi extends runtime.BaseAPI {
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
|
-
apiExamplesGetRaw(requestParameters: ApiExamplesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiExamplesGet200ResponseInner>>>;
|
|
38
|
-
/**
|
|
39
|
-
*/
|
|
40
|
-
apiExamplesGet(requestParameters?: ApiExamplesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiExamplesGet200ResponseInner>>;
|
|
41
|
-
/**
|
|
42
|
-
*/
|
|
43
|
-
apiExamplesIdDeleteRaw(requestParameters: ApiExamplesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
44
|
-
/**
|
|
45
|
-
*/
|
|
46
|
-
apiExamplesIdDelete(requestParameters: ApiExamplesIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
*/
|
|
49
|
-
apiExamplesIdGetRaw(requestParameters: ApiExamplesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>>;
|
|
50
|
-
/**
|
|
51
|
-
*/
|
|
52
|
-
apiExamplesIdGet(requestParameters: ApiExamplesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner>;
|
|
53
|
-
/**
|
|
54
|
-
*/
|
|
55
|
-
apiExamplesIdPutRaw(requestParameters: ApiExamplesIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>>;
|
|
56
|
-
/**
|
|
57
|
-
*/
|
|
58
|
-
apiExamplesIdPut(requestParameters: ApiExamplesIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner>;
|
|
59
|
-
/**
|
|
60
|
-
*/
|
|
61
|
-
apiExamplesPostRaw(requestParameters: ApiExamplesPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiExamplesGet200ResponseInner>>;
|
|
62
|
-
/**
|
|
63
|
-
*/
|
|
64
|
-
apiExamplesPost(requestParameters?: ApiExamplesPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiExamplesGet200ResponseInner>;
|
|
65
|
-
}
|
package/dist/apis/ExampleApi.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
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 { ApiExamplesGet200ResponseInnerFromJSON, ApiExamplesIdPutRequestToJSON, ApiExamplesPostRequestToJSON, } from '../models/index';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export class ExampleApi extends runtime.BaseAPI {
|
|
20
|
-
/**
|
|
21
|
-
*/
|
|
22
|
-
async apiExamplesGetRaw(requestParameters, initOverrides) {
|
|
23
|
-
const queryParameters = {};
|
|
24
|
-
if (requestParameters['page'] != null) {
|
|
25
|
-
queryParameters['page'] = requestParameters['page'];
|
|
26
|
-
}
|
|
27
|
-
if (requestParameters['limit'] != null) {
|
|
28
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
29
|
-
}
|
|
30
|
-
const headerParameters = {};
|
|
31
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
32
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
33
|
-
}
|
|
34
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
35
|
-
const token = this.configuration.accessToken;
|
|
36
|
-
const tokenString = await token("BearerAuth", []);
|
|
37
|
-
if (tokenString) {
|
|
38
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const response = await this.request({
|
|
42
|
-
path: `/api/examples`,
|
|
43
|
-
method: 'GET',
|
|
44
|
-
headers: headerParameters,
|
|
45
|
-
query: queryParameters,
|
|
46
|
-
}, initOverrides);
|
|
47
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiExamplesGet200ResponseInnerFromJSON));
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
async apiExamplesGet(requestParameters = {}, initOverrides) {
|
|
52
|
-
const response = await this.apiExamplesGetRaw(requestParameters, initOverrides);
|
|
53
|
-
return await response.value();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
*/
|
|
57
|
-
async apiExamplesIdDeleteRaw(requestParameters, initOverrides) {
|
|
58
|
-
if (requestParameters['id'] == null) {
|
|
59
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiExamplesIdDelete().');
|
|
60
|
-
}
|
|
61
|
-
const queryParameters = {};
|
|
62
|
-
const headerParameters = {};
|
|
63
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
|
-
}
|
|
66
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
-
const token = this.configuration.accessToken;
|
|
68
|
-
const tokenString = await token("BearerAuth", []);
|
|
69
|
-
if (tokenString) {
|
|
70
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
const response = await this.request({
|
|
74
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
75
|
-
method: 'DELETE',
|
|
76
|
-
headers: headerParameters,
|
|
77
|
-
query: queryParameters,
|
|
78
|
-
}, initOverrides);
|
|
79
|
-
return new runtime.VoidApiResponse(response);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
*/
|
|
83
|
-
async apiExamplesIdDelete(requestParameters, initOverrides) {
|
|
84
|
-
await this.apiExamplesIdDeleteRaw(requestParameters, initOverrides);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
*/
|
|
88
|
-
async apiExamplesIdGetRaw(requestParameters, initOverrides) {
|
|
89
|
-
if (requestParameters['id'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiExamplesIdGet().');
|
|
91
|
-
}
|
|
92
|
-
const queryParameters = {};
|
|
93
|
-
const headerParameters = {};
|
|
94
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
95
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
96
|
-
}
|
|
97
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
98
|
-
const token = this.configuration.accessToken;
|
|
99
|
-
const tokenString = await token("BearerAuth", []);
|
|
100
|
-
if (tokenString) {
|
|
101
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
const response = await this.request({
|
|
105
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
106
|
-
method: 'GET',
|
|
107
|
-
headers: headerParameters,
|
|
108
|
-
query: queryParameters,
|
|
109
|
-
}, initOverrides);
|
|
110
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
*/
|
|
114
|
-
async apiExamplesIdGet(requestParameters, initOverrides) {
|
|
115
|
-
const response = await this.apiExamplesIdGetRaw(requestParameters, initOverrides);
|
|
116
|
-
return await response.value();
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
*/
|
|
120
|
-
async apiExamplesIdPutRaw(requestParameters, initOverrides) {
|
|
121
|
-
if (requestParameters['id'] == null) {
|
|
122
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiExamplesIdPut().');
|
|
123
|
-
}
|
|
124
|
-
const queryParameters = {};
|
|
125
|
-
const headerParameters = {};
|
|
126
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
127
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
129
|
-
}
|
|
130
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
-
const token = this.configuration.accessToken;
|
|
132
|
-
const tokenString = await token("BearerAuth", []);
|
|
133
|
-
if (tokenString) {
|
|
134
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
const response = await this.request({
|
|
138
|
-
path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
139
|
-
method: 'PUT',
|
|
140
|
-
headers: headerParameters,
|
|
141
|
-
query: queryParameters,
|
|
142
|
-
body: ApiExamplesIdPutRequestToJSON(requestParameters['apiExamplesIdPutRequest']),
|
|
143
|
-
}, initOverrides);
|
|
144
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
*/
|
|
148
|
-
async apiExamplesIdPut(requestParameters, initOverrides) {
|
|
149
|
-
const response = await this.apiExamplesIdPutRaw(requestParameters, initOverrides);
|
|
150
|
-
return await response.value();
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
*/
|
|
154
|
-
async apiExamplesPostRaw(requestParameters, initOverrides) {
|
|
155
|
-
const queryParameters = {};
|
|
156
|
-
const headerParameters = {};
|
|
157
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
158
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
160
|
-
}
|
|
161
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
162
|
-
const token = this.configuration.accessToken;
|
|
163
|
-
const tokenString = await token("BearerAuth", []);
|
|
164
|
-
if (tokenString) {
|
|
165
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
const response = await this.request({
|
|
169
|
-
path: `/api/examples`,
|
|
170
|
-
method: 'POST',
|
|
171
|
-
headers: headerParameters,
|
|
172
|
-
query: queryParameters,
|
|
173
|
-
body: ApiExamplesPostRequestToJSON(requestParameters['apiExamplesPostRequest']),
|
|
174
|
-
}, initOverrides);
|
|
175
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiExamplesGet200ResponseInnerFromJSON(jsonValue));
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
*/
|
|
179
|
-
async apiExamplesPost(requestParameters = {}, initOverrides) {
|
|
180
|
-
const response = await this.apiExamplesPostRaw(requestParameters, initOverrides);
|
|
181
|
-
return await response.value();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
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 ApiExamplesGet200ResponseInner
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiExamplesGet200ResponseInner {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
22
|
-
*/
|
|
23
|
-
id: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
34
|
-
*/
|
|
35
|
-
email: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
40
|
-
*/
|
|
41
|
-
wkwkwkwk: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
46
|
-
*/
|
|
47
|
-
wkwkwkwk2: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the ApiExamplesGet200ResponseInner interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfApiExamplesGet200ResponseInner(value: object): value is ApiExamplesGet200ResponseInner;
|
|
53
|
-
export declare function ApiExamplesGet200ResponseInnerFromJSON(json: any): ApiExamplesGet200ResponseInner;
|
|
54
|
-
export declare function ApiExamplesGet200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesGet200ResponseInner;
|
|
55
|
-
export declare function ApiExamplesGet200ResponseInnerToJSON(json: any): ApiExamplesGet200ResponseInner;
|
|
56
|
-
export declare function ApiExamplesGet200ResponseInnerToJSONTyped(value?: ApiExamplesGet200ResponseInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
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 ApiExamplesGet200ResponseInner interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfApiExamplesGet200ResponseInner(value) {
|
|
18
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('wkwkwkwk' in value) || value['wkwkwkwk'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('wkwkwkwk2' in value) || value['wkwkwkwk2'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
export function ApiExamplesGet200ResponseInnerFromJSON(json) {
|
|
31
|
-
return ApiExamplesGet200ResponseInnerFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
export function ApiExamplesGet200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'id': json['id'],
|
|
39
|
-
'name': json['name'],
|
|
40
|
-
'email': json['email'],
|
|
41
|
-
'wkwkwkwk': json['wkwkwkwk'],
|
|
42
|
-
'wkwkwkwk2': json['wkwkwkwk2'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export function ApiExamplesGet200ResponseInnerToJSON(json) {
|
|
46
|
-
return ApiExamplesGet200ResponseInnerToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
export function ApiExamplesGet200ResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'id': value['id'],
|
|
54
|
-
'name': value['name'],
|
|
55
|
-
'email': value['email'],
|
|
56
|
-
'wkwkwkwk': value['wkwkwkwk'],
|
|
57
|
-
'wkwkwkwk2': value['wkwkwkwk2'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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 ApiExamplesIdPutRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiExamplesIdPutRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ApiExamplesIdPutRequest
|
|
22
|
-
*/
|
|
23
|
-
name?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ApiExamplesIdPutRequest
|
|
28
|
-
*/
|
|
29
|
-
email?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ApiExamplesIdPutRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfApiExamplesIdPutRequest(value: object): value is ApiExamplesIdPutRequest;
|
|
35
|
-
export declare function ApiExamplesIdPutRequestFromJSON(json: any): ApiExamplesIdPutRequest;
|
|
36
|
-
export declare function ApiExamplesIdPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesIdPutRequest;
|
|
37
|
-
export declare function ApiExamplesIdPutRequestToJSON(json: any): ApiExamplesIdPutRequest;
|
|
38
|
-
export declare function ApiExamplesIdPutRequestToJSONTyped(value?: ApiExamplesIdPutRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
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 ApiExamplesIdPutRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfApiExamplesIdPutRequest(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function ApiExamplesIdPutRequestFromJSON(json) {
|
|
21
|
-
return ApiExamplesIdPutRequestFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function ApiExamplesIdPutRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export function ApiExamplesIdPutRequestToJSON(json) {
|
|
33
|
-
return ApiExamplesIdPutRequestToJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function ApiExamplesIdPutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
-
if (value == null) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'name': value['name'],
|
|
41
|
-
'email': value['email'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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 ApiExamplesPostRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiExamplesPostRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ApiExamplesPostRequest
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ApiExamplesPostRequest
|
|
28
|
-
*/
|
|
29
|
-
email: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ApiExamplesPostRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfApiExamplesPostRequest(value: object): value is ApiExamplesPostRequest;
|
|
35
|
-
export declare function ApiExamplesPostRequestFromJSON(json: any): ApiExamplesPostRequest;
|
|
36
|
-
export declare function ApiExamplesPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesPostRequest;
|
|
37
|
-
export declare function ApiExamplesPostRequestToJSON(json: any): ApiExamplesPostRequest;
|
|
38
|
-
export declare function ApiExamplesPostRequestToJSONTyped(value?: ApiExamplesPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
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 ApiExamplesPostRequest interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfApiExamplesPostRequest(value) {
|
|
18
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
export function ApiExamplesPostRequestFromJSON(json) {
|
|
25
|
-
return ApiExamplesPostRequestFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function ApiExamplesPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (json == null) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'name': json['name'],
|
|
33
|
-
'email': json['email'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function ApiExamplesPostRequestToJSON(json) {
|
|
37
|
-
return ApiExamplesPostRequestToJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
export function ApiExamplesPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'name': value['name'],
|
|
45
|
-
'email': value['email'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
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 ApiExamplesGet200ResponseInner
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiExamplesGet200ResponseInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
38
|
-
*/
|
|
39
|
-
email: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
44
|
-
*/
|
|
45
|
-
wkwkwkwk: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
50
|
-
*/
|
|
51
|
-
wkwkwkwk2: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the ApiExamplesGet200ResponseInner interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfApiExamplesGet200ResponseInner(value: object): value is ApiExamplesGet200ResponseInner {
|
|
58
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
-
if (!('wkwkwkwk' in value) || value['wkwkwkwk'] === undefined) return false;
|
|
62
|
-
if (!('wkwkwkwk2' in value) || value['wkwkwkwk2'] === undefined) return false;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function ApiExamplesGet200ResponseInnerFromJSON(json: any): ApiExamplesGet200ResponseInner {
|
|
67
|
-
return ApiExamplesGet200ResponseInnerFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function ApiExamplesGet200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesGet200ResponseInner {
|
|
71
|
-
if (json == null) {
|
|
72
|
-
return json;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'id': json['id'],
|
|
77
|
-
'name': json['name'],
|
|
78
|
-
'email': json['email'],
|
|
79
|
-
'wkwkwkwk': json['wkwkwkwk'],
|
|
80
|
-
'wkwkwkwk2': json['wkwkwkwk2'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function ApiExamplesGet200ResponseInnerToJSON(json: any): ApiExamplesGet200ResponseInner {
|
|
85
|
-
return ApiExamplesGet200ResponseInnerToJSONTyped(json, false);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function ApiExamplesGet200ResponseInnerToJSONTyped(value?: ApiExamplesGet200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
-
if (value == null) {
|
|
90
|
-
return value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
'id': value['id'],
|
|
96
|
-
'name': value['name'],
|
|
97
|
-
'email': value['email'],
|
|
98
|
-
'wkwkwkwk': value['wkwkwkwk'],
|
|
99
|
-
'wkwkwkwk2': value['wkwkwkwk2'],
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 ApiExamplesIdPutRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiExamplesIdPutRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiExamplesIdPutRequest
|
|
26
|
-
*/
|
|
27
|
-
name?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiExamplesIdPutRequest
|
|
32
|
-
*/
|
|
33
|
-
email?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ApiExamplesIdPutRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfApiExamplesIdPutRequest(value: object): value is ApiExamplesIdPutRequest {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function ApiExamplesIdPutRequestFromJSON(json: any): ApiExamplesIdPutRequest {
|
|
44
|
-
return ApiExamplesIdPutRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function ApiExamplesIdPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesIdPutRequest {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function ApiExamplesIdPutRequestToJSON(json: any): ApiExamplesIdPutRequest {
|
|
59
|
-
return ApiExamplesIdPutRequestToJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function ApiExamplesIdPutRequestToJSONTyped(value?: ApiExamplesIdPutRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
-
if (value == null) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'name': value['name'],
|
|
70
|
-
'email': value['email'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
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 ApiExamplesPostRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiExamplesPostRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiExamplesPostRequest
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiExamplesPostRequest
|
|
32
|
-
*/
|
|
33
|
-
email: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ApiExamplesPostRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfApiExamplesPostRequest(value: object): value is ApiExamplesPostRequest {
|
|
40
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ApiExamplesPostRequestFromJSON(json: any): ApiExamplesPostRequest {
|
|
46
|
-
return ApiExamplesPostRequestFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ApiExamplesPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiExamplesPostRequest {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'name': json['name'],
|
|
56
|
-
'email': json['email'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function ApiExamplesPostRequestToJSON(json: any): ApiExamplesPostRequest {
|
|
61
|
-
return ApiExamplesPostRequestToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function ApiExamplesPostRequestToJSONTyped(value?: ApiExamplesPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'name': value['name'],
|
|
72
|
-
'email': value['email'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|