@drxsuperapp/sdk 1.1.496 → 1.1.498
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/apis/SocialBindApi.ts +43 -0
- package/deploy.log +12 -8
- package/dist/apis/SocialBindApi.d.ts +11 -1
- package/dist/apis/SocialBindApi.js +34 -1
- package/dist/models/ApiBindDiscordGet200ResponseResponseObject.d.ts +6 -0
- package/dist/models/ApiBindDiscordGet200ResponseResponseObject.js +4 -0
- package/dist/models/ApiBindStatusGet200Response.d.ts +51 -0
- package/dist/models/ApiBindStatusGet200Response.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiBindDiscordGet200ResponseResponseObject.ts +9 -0
- package/models/ApiBindStatusGet200Response.ts +100 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -69,6 +69,7 @@ models/ApiBindDiscordGet200Response.ts
|
|
|
69
69
|
models/ApiBindDiscordGet200ResponseResponseObject.ts
|
|
70
70
|
models/ApiBindDiscordPreconnectGet200Response.ts
|
|
71
71
|
models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts
|
|
72
|
+
models/ApiBindStatusGet200Response.ts
|
|
72
73
|
models/ApiCategoryGet200Response.ts
|
|
73
74
|
models/ApiCategoryGet200ResponseResponseObjectInner.ts
|
|
74
75
|
models/ApiCategoryPut200Response.ts
|
package/apis/SocialBindApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ApiBindCreateJwtGet200Response,
|
|
19
19
|
ApiBindDiscordGet200Response,
|
|
20
20
|
ApiBindDiscordPreconnectGet200Response,
|
|
21
|
+
ApiBindStatusGet200Response,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
23
24
|
ApiBindCreateJwtGet200ResponseFromJSON,
|
|
@@ -26,6 +27,8 @@ import {
|
|
|
26
27
|
ApiBindDiscordGet200ResponseToJSON,
|
|
27
28
|
ApiBindDiscordPreconnectGet200ResponseFromJSON,
|
|
28
29
|
ApiBindDiscordPreconnectGet200ResponseToJSON,
|
|
30
|
+
ApiBindStatusGet200ResponseFromJSON,
|
|
31
|
+
ApiBindStatusGet200ResponseToJSON,
|
|
29
32
|
} from '../models/index';
|
|
30
33
|
|
|
31
34
|
export interface ApiBindDiscordGetRequest {
|
|
@@ -212,6 +215,46 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
212
215
|
return await response.value();
|
|
213
216
|
}
|
|
214
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Get Bind Status of Current User
|
|
220
|
+
* Status
|
|
221
|
+
*/
|
|
222
|
+
async apiBindStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindStatusGet200Response>> {
|
|
223
|
+
const queryParameters: any = {};
|
|
224
|
+
|
|
225
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
226
|
+
|
|
227
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
232
|
+
const token = this.configuration.accessToken;
|
|
233
|
+
const tokenString = await token("BearerAuth", []);
|
|
234
|
+
|
|
235
|
+
if (tokenString) {
|
|
236
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const response = await this.request({
|
|
240
|
+
path: `/api/bind/status`,
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
}, initOverrides);
|
|
245
|
+
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindStatusGet200ResponseFromJSON(jsonValue));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Get Bind Status of Current User
|
|
251
|
+
* Status
|
|
252
|
+
*/
|
|
253
|
+
async apiBindStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindStatusGet200Response> {
|
|
254
|
+
const response = await this.apiBindStatusGetRaw(initOverrides);
|
|
255
|
+
return await response.value();
|
|
256
|
+
}
|
|
257
|
+
|
|
215
258
|
/**
|
|
216
259
|
* Telegram Connect Page after the user connected
|
|
217
260
|
* Telegram Connect
|
package/deploy.log
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_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_bind_discord_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
341
341
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_create_jwt_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_bind_create_jwt_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_create_jwt_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
342
342
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_create_jwt_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_bind_create_jwt_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_create_jwt_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
343
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_status_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_bind_status_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_status_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
343
344
|
[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/]
|
|
344
345
|
[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/]
|
|
345
346
|
[main] INFO o.o.codegen.DefaultGenerator - Model _api_file_upload_post_request not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
|
|
@@ -385,6 +386,7 @@
|
|
|
385
386
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordGet200ResponseResponseObject.ts
|
|
386
387
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordPreconnectGet200Response.ts
|
|
387
388
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts
|
|
389
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindStatusGet200Response.ts
|
|
388
390
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryGet200Response.ts
|
|
389
391
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryGet200ResponseResponseObjectInner.ts
|
|
390
392
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryPut200Response.ts
|
|
@@ -834,6 +836,7 @@
|
|
|
834
836
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/telegram-preconnect. Renamed to auto-generated operationId: apiBindTelegramPreconnectGet
|
|
835
837
|
[main] WARN o.o.codegen.utils.ExamplesUtils - No application/json content media type found in response. Response examples can currently only be generated for application/json media type.
|
|
836
838
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/telegram/{jwt}. Renamed to auto-generated operationId: apiBindTelegramJwtGet
|
|
839
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/status. Renamed to auto-generated operationId: apiBindStatusGet
|
|
837
840
|
[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/]
|
|
838
841
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
839
842
|
[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/]
|
|
@@ -902,20 +905,21 @@
|
|
|
902
905
|
# https://opencollective.com/openapi_generator/donate #
|
|
903
906
|
################################################################################
|
|
904
907
|
✅ SDK generated
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
908
|
+
On branch master
|
|
909
|
+
Your branch is up to date with 'origin/master'.
|
|
910
|
+
|
|
911
|
+
nothing to commit, working tree clean
|
|
912
|
+
Everything up-to-date
|
|
909
913
|
✅ Changes committed and pushed
|
|
910
|
-
v1.1.
|
|
914
|
+
v1.1.498
|
|
911
915
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
912
|
-
|
|
916
|
+
a455678..de7ab12 master -> master
|
|
913
917
|
✅ Version bumped
|
|
914
918
|
|
|
915
|
-
> @drxsuperapp/sdk@1.1.
|
|
919
|
+
> @drxsuperapp/sdk@1.1.498 prepublishOnly
|
|
916
920
|
> npm run build
|
|
917
921
|
|
|
918
922
|
|
|
919
|
-
> @drxsuperapp/sdk@1.1.
|
|
923
|
+
> @drxsuperapp/sdk@1.1.498 build
|
|
920
924
|
> tsc
|
|
921
925
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiBindCreateJwtGet200Response, ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiBindCreateJwtGet200Response, ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response, ApiBindStatusGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiBindDiscordGetRequest {
|
|
15
15
|
clientId: string;
|
|
16
16
|
redirectUri: string;
|
|
@@ -65,6 +65,16 @@ export declare class SocialBindApi extends runtime.BaseAPI {
|
|
|
65
65
|
* Discord Preconnect
|
|
66
66
|
*/
|
|
67
67
|
apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
|
|
68
|
+
/**
|
|
69
|
+
* Get Bind Status of Current User
|
|
70
|
+
* Status
|
|
71
|
+
*/
|
|
72
|
+
apiBindStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindStatusGet200Response>>;
|
|
73
|
+
/**
|
|
74
|
+
* Get Bind Status of Current User
|
|
75
|
+
* Status
|
|
76
|
+
*/
|
|
77
|
+
apiBindStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindStatusGet200Response>;
|
|
68
78
|
/**
|
|
69
79
|
* Telegram Connect Page after the user connected
|
|
70
80
|
* Telegram Connect
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiBindCreateJwtGet200ResponseFromJSON, ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiBindCreateJwtGet200ResponseFromJSON, ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, ApiBindStatusGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -131,6 +131,39 @@ export class SocialBindApi extends runtime.BaseAPI {
|
|
|
131
131
|
const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
|
|
132
132
|
return await response.value();
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Get Bind Status of Current User
|
|
136
|
+
* Status
|
|
137
|
+
*/
|
|
138
|
+
async apiBindStatusGetRaw(initOverrides) {
|
|
139
|
+
const queryParameters = {};
|
|
140
|
+
const headerParameters = {};
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
143
|
+
}
|
|
144
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
145
|
+
const token = this.configuration.accessToken;
|
|
146
|
+
const tokenString = await token("BearerAuth", []);
|
|
147
|
+
if (tokenString) {
|
|
148
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const response = await this.request({
|
|
152
|
+
path: `/api/bind/status`,
|
|
153
|
+
method: 'GET',
|
|
154
|
+
headers: headerParameters,
|
|
155
|
+
query: queryParameters,
|
|
156
|
+
}, initOverrides);
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindStatusGet200ResponseFromJSON(jsonValue));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get Bind Status of Current User
|
|
161
|
+
* Status
|
|
162
|
+
*/
|
|
163
|
+
async apiBindStatusGet(initOverrides) {
|
|
164
|
+
const response = await this.apiBindStatusGetRaw(initOverrides);
|
|
165
|
+
return await response.value();
|
|
166
|
+
}
|
|
134
167
|
/**
|
|
135
168
|
* Telegram Connect Page after the user connected
|
|
136
169
|
* Telegram Connect
|
|
@@ -41,6 +41,12 @@ export interface ApiBindDiscordGet200ResponseResponseObject {
|
|
|
41
41
|
data: {
|
|
42
42
|
[key: string]: any | null;
|
|
43
43
|
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
48
|
+
*/
|
|
49
|
+
bindAt: string;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* @export
|
|
@@ -32,6 +32,8 @@ export function instanceOfApiBindDiscordGet200ResponseResponseObject(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('data' in value) || value['data'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('bindAt' in value) || value['bindAt'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
return true;
|
|
36
38
|
}
|
|
37
39
|
export function ApiBindDiscordGet200ResponseResponseObjectFromJSON(json) {
|
|
@@ -46,6 +48,7 @@ export function ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json, ig
|
|
|
46
48
|
'platform': json['platform'],
|
|
47
49
|
'userId': json['userId'],
|
|
48
50
|
'data': json['data'],
|
|
51
|
+
'bindAt': json['bindAt'],
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
export function ApiBindDiscordGet200ResponseResponseObjectToJSON(json) {
|
|
@@ -60,5 +63,6 @@ export function ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(value, ign
|
|
|
60
63
|
'platform': value['platform'],
|
|
61
64
|
'userId': value['userId'],
|
|
62
65
|
'data': value['data'],
|
|
66
|
+
'bindAt': value['bindAt'],
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -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 { ApiBindDiscordGet200ResponseResponseObject } from './ApiBindDiscordGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiBindStatusGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiBindStatusGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiBindStatusGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiBindStatusGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<ApiBindDiscordGet200ResponseResponseObject>}
|
|
34
|
+
* @memberof ApiBindStatusGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: Array<ApiBindDiscordGet200ResponseResponseObject>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiBindStatusGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiBindStatusGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiBindStatusGet200Response(value: object): value is ApiBindStatusGet200Response;
|
|
48
|
+
export declare function ApiBindStatusGet200ResponseFromJSON(json: any): ApiBindStatusGet200Response;
|
|
49
|
+
export declare function ApiBindStatusGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindStatusGet200Response;
|
|
50
|
+
export declare function ApiBindStatusGet200ResponseToJSON(json: any): ApiBindStatusGet200Response;
|
|
51
|
+
export declare function ApiBindStatusGet200ResponseToJSONTyped(value?: ApiBindStatusGet200Response | 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 { ApiBindDiscordGet200ResponseResponseObjectFromJSON, ApiBindDiscordGet200ResponseResponseObjectToJSON, } from './ApiBindDiscordGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiBindStatusGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiBindStatusGet200Response(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 ApiBindStatusGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiBindStatusGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiBindStatusGet200ResponseFromJSONTyped(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 : (json['responseObject'].map(ApiBindDiscordGet200ResponseResponseObjectFromJSON)),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiBindStatusGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiBindStatusGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiBindStatusGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': value['responseObject'] == null ? undefined : (value['responseObject'].map(ApiBindDiscordGet200ResponseResponseObjectToJSON)),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './ApiBindDiscordGet200Response';
|
|
|
40
40
|
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
41
41
|
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
42
42
|
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
43
|
+
export * from './ApiBindStatusGet200Response';
|
|
43
44
|
export * from './ApiCategoryGet200Response';
|
|
44
45
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
45
46
|
export * from './ApiCategoryPut200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from './ApiBindDiscordGet200Response';
|
|
|
42
42
|
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
43
43
|
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
44
44
|
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
45
|
+
export * from './ApiBindStatusGet200Response';
|
|
45
46
|
export * from './ApiCategoryGet200Response';
|
|
46
47
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
47
48
|
export * from './ApiCategoryPut200Response';
|
|
@@ -43,6 +43,12 @@ export interface ApiBindDiscordGet200ResponseResponseObject {
|
|
|
43
43
|
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
44
44
|
*/
|
|
45
45
|
data: { [key: string]: any | null; } | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
50
|
+
*/
|
|
51
|
+
bindAt: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
|
|
@@ -66,6 +72,7 @@ export function instanceOfApiBindDiscordGet200ResponseResponseObject(value: obje
|
|
|
66
72
|
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
67
73
|
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
68
74
|
if (!('data' in value) || value['data'] === undefined) return false;
|
|
75
|
+
if (!('bindAt' in value) || value['bindAt'] === undefined) return false;
|
|
69
76
|
return true;
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -83,6 +90,7 @@ export function ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json: an
|
|
|
83
90
|
'platform': json['platform'],
|
|
84
91
|
'userId': json['userId'],
|
|
85
92
|
'data': json['data'],
|
|
93
|
+
'bindAt': json['bindAt'],
|
|
86
94
|
};
|
|
87
95
|
}
|
|
88
96
|
|
|
@@ -101,6 +109,7 @@ export function ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(value?: Ap
|
|
|
101
109
|
'platform': value['platform'],
|
|
102
110
|
'userId': value['userId'],
|
|
103
111
|
'data': value['data'],
|
|
112
|
+
'bindAt': value['bindAt'],
|
|
104
113
|
};
|
|
105
114
|
}
|
|
106
115
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiBindDiscordGet200ResponseResponseObject } from './ApiBindDiscordGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiBindDiscordGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiBindDiscordGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiBindDiscordGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiBindDiscordGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiBindStatusGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiBindStatusGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiBindStatusGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiBindStatusGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<ApiBindDiscordGet200ResponseResponseObject>}
|
|
45
|
+
* @memberof ApiBindStatusGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: Array<ApiBindDiscordGet200ResponseResponseObject>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiBindStatusGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiBindStatusGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiBindStatusGet200Response(value: object): value is ApiBindStatusGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiBindStatusGet200ResponseFromJSON(json: any): ApiBindStatusGet200Response {
|
|
67
|
+
return ApiBindStatusGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiBindStatusGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindStatusGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ((json['responseObject'] as Array<any>).map(ApiBindDiscordGet200ResponseResponseObjectFromJSON)),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiBindStatusGet200ResponseToJSON(json: any): ApiBindStatusGet200Response {
|
|
84
|
+
return ApiBindStatusGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiBindStatusGet200ResponseToJSONTyped(value?: ApiBindStatusGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': value['responseObject'] == null ? undefined : ((value['responseObject'] as Array<any>).map(ApiBindDiscordGet200ResponseResponseObjectToJSON)),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './ApiBindDiscordGet200Response';
|
|
|
42
42
|
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
43
43
|
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
44
44
|
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
45
|
+
export * from './ApiBindStatusGet200Response';
|
|
45
46
|
export * from './ApiCategoryGet200Response';
|
|
46
47
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
47
48
|
export * from './ApiCategoryPut200Response';
|