@drxsuperapp/sdk 1.1.491 → 1.1.492
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 +5 -0
- package/apis/SocialBindApi.ts +152 -0
- package/apis/index.ts +1 -0
- package/deploy.log +25 -9
- package/dist/apis/SocialBindApi.d.ts +41 -0
- package/dist/apis/SocialBindApi.js +97 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiBindDiscordGet200Response.d.ts +51 -0
- package/dist/models/ApiBindDiscordGet200Response.js +54 -0
- package/dist/models/ApiBindDiscordGet200ResponseResponseObject.d.ts +62 -0
- package/dist/models/ApiBindDiscordGet200ResponseResponseObject.js +64 -0
- package/dist/models/ApiBindDiscordPreconnectGet200Response.d.ts +51 -0
- package/dist/models/ApiBindDiscordPreconnectGet200Response.js +54 -0
- package/dist/models/ApiBindDiscordPreconnectGet200ResponseResponseObject.d.ts +32 -0
- package/dist/models/ApiBindDiscordPreconnectGet200ResponseResponseObject.js +43 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/models/ApiBindDiscordGet200Response.ts +100 -0
- package/models/ApiBindDiscordGet200ResponseResponseObject.ts +106 -0
- package/models/ApiBindDiscordPreconnectGet200Response.ts +100 -0
- package/models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts +66 -0
- package/models/index.ts +4 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -14,6 +14,7 @@ apis/PoolWalletManagementApi.ts
|
|
|
14
14
|
apis/PublicRewardApi.ts
|
|
15
15
|
apis/RedemptionApi.ts
|
|
16
16
|
apis/RewardManagementApi.ts
|
|
17
|
+
apis/SocialBindApi.ts
|
|
17
18
|
apis/SwapApi.ts
|
|
18
19
|
apis/SystemOperationsApi.ts
|
|
19
20
|
apis/TennisSportsApi.ts
|
|
@@ -62,6 +63,10 @@ models/ApiAuthRegisterVerifyOtpPostRequest.ts
|
|
|
62
63
|
models/ApiAuthSocialMobilePost200Response.ts
|
|
63
64
|
models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
64
65
|
models/ApiAuthSocialMobilePostRequest.ts
|
|
66
|
+
models/ApiBindDiscordGet200Response.ts
|
|
67
|
+
models/ApiBindDiscordGet200ResponseResponseObject.ts
|
|
68
|
+
models/ApiBindDiscordPreconnectGet200Response.ts
|
|
69
|
+
models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts
|
|
65
70
|
models/ApiCategoryGet200Response.ts
|
|
66
71
|
models/ApiCategoryGet200ResponseResponseObjectInner.ts
|
|
67
72
|
models/ApiCategoryPut200Response.ts
|
|
@@ -0,0 +1,152 @@
|
|
|
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
|
+
ApiBindDiscordGet200Response,
|
|
19
|
+
ApiBindDiscordPreconnectGet200Response,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ApiBindDiscordGet200ResponseFromJSON,
|
|
23
|
+
ApiBindDiscordGet200ResponseToJSON,
|
|
24
|
+
ApiBindDiscordPreconnectGet200ResponseFromJSON,
|
|
25
|
+
ApiBindDiscordPreconnectGet200ResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ApiBindDiscordGetRequest {
|
|
29
|
+
clientId: string;
|
|
30
|
+
redirectUri: string;
|
|
31
|
+
responseType: string;
|
|
32
|
+
scope: string;
|
|
33
|
+
state: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export class SocialBindApi extends runtime.BaseAPI {
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
43
|
+
*/
|
|
44
|
+
async apiBindDiscordGetRaw(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>> {
|
|
45
|
+
if (requestParameters['clientId'] == null) {
|
|
46
|
+
throw new runtime.RequiredError(
|
|
47
|
+
'clientId',
|
|
48
|
+
'Required parameter "clientId" was null or undefined when calling apiBindDiscordGet().'
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (requestParameters['redirectUri'] == null) {
|
|
53
|
+
throw new runtime.RequiredError(
|
|
54
|
+
'redirectUri',
|
|
55
|
+
'Required parameter "redirectUri" was null or undefined when calling apiBindDiscordGet().'
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (requestParameters['responseType'] == null) {
|
|
60
|
+
throw new runtime.RequiredError(
|
|
61
|
+
'responseType',
|
|
62
|
+
'Required parameter "responseType" was null or undefined when calling apiBindDiscordGet().'
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (requestParameters['scope'] == null) {
|
|
67
|
+
throw new runtime.RequiredError(
|
|
68
|
+
'scope',
|
|
69
|
+
'Required parameter "scope" was null or undefined when calling apiBindDiscordGet().'
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (requestParameters['state'] == null) {
|
|
74
|
+
throw new runtime.RequiredError(
|
|
75
|
+
'state',
|
|
76
|
+
'Required parameter "state" was null or undefined when calling apiBindDiscordGet().'
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const queryParameters: any = {};
|
|
81
|
+
|
|
82
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
83
|
+
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = await token("BearerAuth", []);
|
|
91
|
+
|
|
92
|
+
if (tokenString) {
|
|
93
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: `/api/bind/discord`.replace(`{${"client_id"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"redirect_uri"}}`, encodeURIComponent(String(requestParameters['redirectUri']))).replace(`{${"response_type"}}`, encodeURIComponent(String(requestParameters['responseType']))).replace(`{${"scope"}}`, encodeURIComponent(String(requestParameters['scope']))).replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
108
|
+
*/
|
|
109
|
+
async apiBindDiscordGet(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response> {
|
|
110
|
+
const response = await this.apiBindDiscordGetRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Generate Discord Authorization Link for specific user
|
|
116
|
+
*/
|
|
117
|
+
async apiBindDiscordPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>> {
|
|
118
|
+
const queryParameters: any = {};
|
|
119
|
+
|
|
120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
123
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
127
|
+
const token = this.configuration.accessToken;
|
|
128
|
+
const tokenString = await token("BearerAuth", []);
|
|
129
|
+
|
|
130
|
+
if (tokenString) {
|
|
131
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
const response = await this.request({
|
|
135
|
+
path: `/api/bind/discord-preconnect`,
|
|
136
|
+
method: 'GET',
|
|
137
|
+
headers: headerParameters,
|
|
138
|
+
query: queryParameters,
|
|
139
|
+
}, initOverrides);
|
|
140
|
+
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Generate Discord Authorization Link for specific user
|
|
146
|
+
*/
|
|
147
|
+
async apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response> {
|
|
148
|
+
const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
|
|
149
|
+
return await response.value();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}
|
package/apis/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './PoolWalletManagementApi';
|
|
|
16
16
|
export * from './PublicRewardApi';
|
|
17
17
|
export * from './RedemptionApi';
|
|
18
18
|
export * from './RewardManagementApi';
|
|
19
|
+
export * from './SocialBindApi';
|
|
19
20
|
export * from './SwapApi';
|
|
20
21
|
export * from './SystemOperationsApi';
|
|
21
22
|
export * from './TennisSportsApi';
|
package/deploy.log
CHANGED
|
@@ -334,6 +334,10 @@
|
|
|
334
334
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_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_category_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
335
335
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_put_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_category_put_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_put_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
336
336
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_admin_notification_broadcast_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_admin_notification_broadcast_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_admin_notification_broadcast_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
337
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_preconnect_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_discord_preconnect_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_preconnect_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
338
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_preconnect_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_preconnect_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_preconnect_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
339
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_bind_discord_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_discord_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_bind_discord_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
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).
|
|
337
341
|
[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/]
|
|
338
342
|
[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/]
|
|
339
343
|
[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)
|
|
@@ -373,6 +377,10 @@
|
|
|
373
377
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
|
|
374
378
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
375
379
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
|
|
380
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordGet200Response.ts
|
|
381
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordGet200ResponseResponseObject.ts
|
|
382
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordPreconnectGet200Response.ts
|
|
383
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts
|
|
376
384
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryGet200Response.ts
|
|
377
385
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryGet200ResponseResponseObjectInner.ts
|
|
378
386
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiCategoryPut200Response.ts
|
|
@@ -814,6 +822,8 @@
|
|
|
814
822
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/category/{id}. Renamed to auto-generated operationId: apiCategoryIdDelete
|
|
815
823
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/admin-notification/broadcast. Renamed to auto-generated operationId: apiAdminNotificationBroadcastPost
|
|
816
824
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin-notification. Renamed to auto-generated operationId: apiAdminNotificationGet
|
|
825
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/discord-preconnect. Renamed to auto-generated operationId: apiBindDiscordPreconnectGet
|
|
826
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/discord. Renamed to auto-generated operationId: apiBindDiscordGet
|
|
817
827
|
[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/]
|
|
818
828
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
819
829
|
[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/]
|
|
@@ -847,6 +857,8 @@
|
|
|
847
857
|
[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/]
|
|
848
858
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/RewardManagementApi.ts
|
|
849
859
|
[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/]
|
|
860
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/SocialBindApi.ts
|
|
861
|
+
[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/]
|
|
850
862
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/SwapApi.ts
|
|
851
863
|
[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/]
|
|
852
864
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/SystemOperationsApi.ts
|
|
@@ -880,21 +892,25 @@
|
|
|
880
892
|
# https://opencollective.com/openapi_generator/donate #
|
|
881
893
|
################################################################################
|
|
882
894
|
✅ SDK generated
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
895
|
+
[master fb0f9eb] VPS: Generated API SDK
|
|
896
|
+
8 files changed, 534 insertions(+)
|
|
897
|
+
create mode 100644 apis/SocialBindApi.ts
|
|
898
|
+
create mode 100644 models/ApiBindDiscordGet200Response.ts
|
|
899
|
+
create mode 100644 models/ApiBindDiscordGet200ResponseResponseObject.ts
|
|
900
|
+
create mode 100644 models/ApiBindDiscordPreconnectGet200Response.ts
|
|
901
|
+
create mode 100644 models/ApiBindDiscordPreconnectGet200ResponseResponseObject.ts
|
|
902
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
903
|
+
ff5a528..fb0f9eb master -> master
|
|
888
904
|
✅ Changes committed and pushed
|
|
889
|
-
v1.1.
|
|
905
|
+
v1.1.492
|
|
890
906
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
891
|
-
|
|
907
|
+
fb0f9eb..6c8c0bd master -> master
|
|
892
908
|
✅ Version bumped
|
|
893
909
|
|
|
894
|
-
> @drxsuperapp/sdk@1.1.
|
|
910
|
+
> @drxsuperapp/sdk@1.1.492 prepublishOnly
|
|
895
911
|
> npm run build
|
|
896
912
|
|
|
897
913
|
|
|
898
|
-
> @drxsuperapp/sdk@1.1.
|
|
914
|
+
> @drxsuperapp/sdk@1.1.492 build
|
|
899
915
|
> tsc
|
|
900
916
|
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiBindDiscordGetRequest {
|
|
15
|
+
clientId: string;
|
|
16
|
+
redirectUri: string;
|
|
17
|
+
responseType: string;
|
|
18
|
+
scope: string;
|
|
19
|
+
state: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class SocialBindApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
27
|
+
*/
|
|
28
|
+
apiBindDiscordGetRaw(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordGet200Response>>;
|
|
29
|
+
/**
|
|
30
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
31
|
+
*/
|
|
32
|
+
apiBindDiscordGet(requestParameters: ApiBindDiscordGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordGet200Response>;
|
|
33
|
+
/**
|
|
34
|
+
* Generate Discord Authorization Link for specific user
|
|
35
|
+
*/
|
|
36
|
+
apiBindDiscordPreconnectGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiBindDiscordPreconnectGet200Response>>;
|
|
37
|
+
/**
|
|
38
|
+
* Generate Discord Authorization Link for specific user
|
|
39
|
+
*/
|
|
40
|
+
apiBindDiscordPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
|
|
41
|
+
}
|
|
@@ -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 { ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class SocialBindApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
22
|
+
*/
|
|
23
|
+
async apiBindDiscordGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['clientId'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('clientId', 'Required parameter "clientId" was null or undefined when calling apiBindDiscordGet().');
|
|
26
|
+
}
|
|
27
|
+
if (requestParameters['redirectUri'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('redirectUri', 'Required parameter "redirectUri" was null or undefined when calling apiBindDiscordGet().');
|
|
29
|
+
}
|
|
30
|
+
if (requestParameters['responseType'] == null) {
|
|
31
|
+
throw new runtime.RequiredError('responseType', 'Required parameter "responseType" was null or undefined when calling apiBindDiscordGet().');
|
|
32
|
+
}
|
|
33
|
+
if (requestParameters['scope'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('scope', 'Required parameter "scope" was null or undefined when calling apiBindDiscordGet().');
|
|
35
|
+
}
|
|
36
|
+
if (requestParameters['state'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling apiBindDiscordGet().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
42
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
43
|
+
}
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
const token = this.configuration.accessToken;
|
|
46
|
+
const tokenString = await token("BearerAuth", []);
|
|
47
|
+
if (tokenString) {
|
|
48
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const response = await this.request({
|
|
52
|
+
path: `/api/bind/discord`.replace(`{${"client_id"}}`, encodeURIComponent(String(requestParameters['clientId']))).replace(`{${"redirect_uri"}}`, encodeURIComponent(String(requestParameters['redirectUri']))).replace(`{${"response_type"}}`, encodeURIComponent(String(requestParameters['responseType']))).replace(`{${"scope"}}`, encodeURIComponent(String(requestParameters['scope']))).replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state']))),
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordGet200ResponseFromJSON(jsonValue));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A link where discord will callbacks to after finishes authorizing
|
|
61
|
+
*/
|
|
62
|
+
async apiBindDiscordGet(requestParameters, initOverrides) {
|
|
63
|
+
const response = await this.apiBindDiscordGetRaw(requestParameters, initOverrides);
|
|
64
|
+
return await response.value();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Generate Discord Authorization Link for specific user
|
|
68
|
+
*/
|
|
69
|
+
async apiBindDiscordPreconnectGetRaw(initOverrides) {
|
|
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/bind/discord-preconnect`,
|
|
84
|
+
method: 'GET',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiBindDiscordPreconnectGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Generate Discord Authorization Link for specific user
|
|
92
|
+
*/
|
|
93
|
+
async apiBindDiscordPreconnectGet(initOverrides) {
|
|
94
|
+
const response = await this.apiBindDiscordPreconnectGetRaw(initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
97
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './PoolWalletManagementApi';
|
|
|
14
14
|
export * from './PublicRewardApi';
|
|
15
15
|
export * from './RedemptionApi';
|
|
16
16
|
export * from './RewardManagementApi';
|
|
17
|
+
export * from './SocialBindApi';
|
|
17
18
|
export * from './SwapApi';
|
|
18
19
|
export * from './SystemOperationsApi';
|
|
19
20
|
export * from './TennisSportsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './PoolWalletManagementApi';
|
|
|
16
16
|
export * from './PublicRewardApi';
|
|
17
17
|
export * from './RedemptionApi';
|
|
18
18
|
export * from './RewardManagementApi';
|
|
19
|
+
export * from './SocialBindApi';
|
|
19
20
|
export * from './SwapApi';
|
|
20
21
|
export * from './SystemOperationsApi';
|
|
21
22
|
export * from './TennisSportsApi';
|
|
@@ -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 ApiBindDiscordGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiBindDiscordGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiBindDiscordGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiBindDiscordGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiBindDiscordGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiBindDiscordGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiBindDiscordGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiBindDiscordGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiBindDiscordGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiBindDiscordGet200Response(value: object): value is ApiBindDiscordGet200Response;
|
|
48
|
+
export declare function ApiBindDiscordGet200ResponseFromJSON(json: any): ApiBindDiscordGet200Response;
|
|
49
|
+
export declare function ApiBindDiscordGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordGet200Response;
|
|
50
|
+
export declare function ApiBindDiscordGet200ResponseToJSON(json: any): ApiBindDiscordGet200Response;
|
|
51
|
+
export declare function ApiBindDiscordGet200ResponseToJSONTyped(value?: ApiBindDiscordGet200Response | 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 ApiBindDiscordGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiBindDiscordGet200Response(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 ApiBindDiscordGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiBindDiscordGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiBindDiscordGet200ResponseFromJSONTyped(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 : ApiBindDiscordGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiBindDiscordGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiBindDiscordGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiBindDiscordGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiBindDiscordGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 ApiBindDiscordGet200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiBindDiscordGet200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
platform: ApiBindDiscordGet200ResponseResponseObjectPlatformEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any | null; }}
|
|
39
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
data: {
|
|
42
|
+
[key: string]: any | null;
|
|
43
|
+
} | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const ApiBindDiscordGet200ResponseResponseObjectPlatformEnum: {
|
|
49
|
+
readonly Discord: "DISCORD";
|
|
50
|
+
readonly Telegram: "TELEGRAM";
|
|
51
|
+
readonly Instagram: "INSTAGRAM";
|
|
52
|
+
readonly X: "X";
|
|
53
|
+
};
|
|
54
|
+
export type ApiBindDiscordGet200ResponseResponseObjectPlatformEnum = typeof ApiBindDiscordGet200ResponseResponseObjectPlatformEnum[keyof typeof ApiBindDiscordGet200ResponseResponseObjectPlatformEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ApiBindDiscordGet200ResponseResponseObject interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfApiBindDiscordGet200ResponseResponseObject(value: object): value is ApiBindDiscordGet200ResponseResponseObject;
|
|
59
|
+
export declare function ApiBindDiscordGet200ResponseResponseObjectFromJSON(json: any): ApiBindDiscordGet200ResponseResponseObject;
|
|
60
|
+
export declare function ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordGet200ResponseResponseObject;
|
|
61
|
+
export declare function ApiBindDiscordGet200ResponseResponseObjectToJSON(json: any): ApiBindDiscordGet200ResponseResponseObject;
|
|
62
|
+
export declare function ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(value?: ApiBindDiscordGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ApiBindDiscordGet200ResponseResponseObjectPlatformEnum = {
|
|
18
|
+
Discord: 'DISCORD',
|
|
19
|
+
Telegram: 'TELEGRAM',
|
|
20
|
+
Instagram: 'INSTAGRAM',
|
|
21
|
+
X: 'X'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ApiBindDiscordGet200ResponseResponseObject interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfApiBindDiscordGet200ResponseResponseObject(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('platform' in value) || value['platform'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function ApiBindDiscordGet200ResponseResponseObjectFromJSON(json) {
|
|
38
|
+
return ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'platform': json['platform'],
|
|
47
|
+
'userId': json['userId'],
|
|
48
|
+
'data': json['data'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ApiBindDiscordGet200ResponseResponseObjectToJSON(json) {
|
|
52
|
+
return ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'platform': value['platform'],
|
|
61
|
+
'userId': value['userId'],
|
|
62
|
+
'data': value['data'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { ApiBindDiscordPreconnectGet200ResponseResponseObject } from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiBindDiscordPreconnectGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiBindDiscordPreconnectGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiBindDiscordPreconnectGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiBindDiscordPreconnectGet200Response(value: object): value is ApiBindDiscordPreconnectGet200Response;
|
|
48
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseFromJSON(json: any): ApiBindDiscordPreconnectGet200Response;
|
|
49
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordPreconnectGet200Response;
|
|
50
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseToJSON(json: any): ApiBindDiscordPreconnectGet200Response;
|
|
51
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseToJSONTyped(value?: ApiBindDiscordPreconnectGet200Response | 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 { ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON, ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON, } from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiBindDiscordPreconnectGet200Response(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 ApiBindDiscordPreconnectGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiBindDiscordPreconnectGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiBindDiscordPreconnectGet200ResponseFromJSONTyped(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 : ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiBindDiscordPreconnectGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiBindDiscordPreconnectGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiBindDiscordPreconnectGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ApiBindDiscordPreconnectGet200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiBindDiscordPreconnectGet200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200ResponseResponseObject interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiBindDiscordPreconnectGet200ResponseResponseObject(value: object): value is ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
29
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON(json: any): ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
30
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
31
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON(json: any): ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
32
|
+
export declare function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped(value?: ApiBindDiscordPreconnectGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiBindDiscordPreconnectGet200ResponseResponseObject(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON(json) {
|
|
23
|
+
return ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'url': json['url'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON(json) {
|
|
34
|
+
return ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'url': value['url'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
|
|
|
34
34
|
export * from './ApiAuthSocialMobilePost200Response';
|
|
35
35
|
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
36
36
|
export * from './ApiAuthSocialMobilePostRequest';
|
|
37
|
+
export * from './ApiBindDiscordGet200Response';
|
|
38
|
+
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
39
|
+
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
40
|
+
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
37
41
|
export * from './ApiCategoryGet200Response';
|
|
38
42
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
39
43
|
export * from './ApiCategoryPut200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -36,6 +36,10 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
|
|
|
36
36
|
export * from './ApiAuthSocialMobilePost200Response';
|
|
37
37
|
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
38
38
|
export * from './ApiAuthSocialMobilePostRequest';
|
|
39
|
+
export * from './ApiBindDiscordGet200Response';
|
|
40
|
+
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
41
|
+
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
42
|
+
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
39
43
|
export * from './ApiCategoryGet200Response';
|
|
40
44
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
41
45
|
export * from './ApiCategoryPut200Response';
|
|
@@ -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 ApiBindDiscordGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiBindDiscordGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiBindDiscordGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiBindDiscordGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiBindDiscordGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiBindDiscordGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiBindDiscordGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiBindDiscordGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiBindDiscordGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiBindDiscordGet200Response(value: object): value is ApiBindDiscordGet200Response {
|
|
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 ApiBindDiscordGet200ResponseFromJSON(json: any): ApiBindDiscordGet200Response {
|
|
67
|
+
return ApiBindDiscordGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiBindDiscordGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordGet200Response {
|
|
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 : ApiBindDiscordGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiBindDiscordGet200ResponseToJSON(json: any): ApiBindDiscordGet200Response {
|
|
84
|
+
return ApiBindDiscordGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiBindDiscordGet200ResponseToJSONTyped(value?: ApiBindDiscordGet200Response | 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': ApiBindDiscordGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 ApiBindDiscordGet200ResponseResponseObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiBindDiscordGet200ResponseResponseObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
32
|
+
*/
|
|
33
|
+
platform: ApiBindDiscordGet200ResponseResponseObjectPlatformEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
38
|
+
*/
|
|
39
|
+
userId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any | null; }}
|
|
43
|
+
* @memberof ApiBindDiscordGet200ResponseResponseObject
|
|
44
|
+
*/
|
|
45
|
+
data: { [key: string]: any | null; } | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const ApiBindDiscordGet200ResponseResponseObjectPlatformEnum = {
|
|
53
|
+
Discord: 'DISCORD',
|
|
54
|
+
Telegram: 'TELEGRAM',
|
|
55
|
+
Instagram: 'INSTAGRAM',
|
|
56
|
+
X: 'X'
|
|
57
|
+
} as const;
|
|
58
|
+
export type ApiBindDiscordGet200ResponseResponseObjectPlatformEnum = typeof ApiBindDiscordGet200ResponseResponseObjectPlatformEnum[keyof typeof ApiBindDiscordGet200ResponseResponseObjectPlatformEnum];
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ApiBindDiscordGet200ResponseResponseObject interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfApiBindDiscordGet200ResponseResponseObject(value: object): value is ApiBindDiscordGet200ResponseResponseObject {
|
|
65
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
66
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
67
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiBindDiscordGet200ResponseResponseObjectFromJSON(json: any): ApiBindDiscordGet200ResponseResponseObject {
|
|
73
|
+
return ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiBindDiscordGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordGet200ResponseResponseObject {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'platform': json['platform'],
|
|
84
|
+
'userId': json['userId'],
|
|
85
|
+
'data': json['data'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ApiBindDiscordGet200ResponseResponseObjectToJSON(json: any): ApiBindDiscordGet200ResponseResponseObject {
|
|
90
|
+
return ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ApiBindDiscordGet200ResponseResponseObjectToJSONTyped(value?: ApiBindDiscordGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'id': value['id'],
|
|
101
|
+
'platform': value['platform'],
|
|
102
|
+
'userId': value['userId'],
|
|
103
|
+
'data': value['data'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -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 { ApiBindDiscordPreconnectGet200ResponseResponseObject } from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiBindDiscordPreconnectGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiBindDiscordPreconnectGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiBindDiscordPreconnectGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiBindDiscordPreconnectGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiBindDiscordPreconnectGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiBindDiscordPreconnectGet200Response(value: object): value is ApiBindDiscordPreconnectGet200Response {
|
|
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 ApiBindDiscordPreconnectGet200ResponseFromJSON(json: any): ApiBindDiscordPreconnectGet200Response {
|
|
67
|
+
return ApiBindDiscordPreconnectGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiBindDiscordPreconnectGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordPreconnectGet200Response {
|
|
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 : ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiBindDiscordPreconnectGet200ResponseToJSON(json: any): ApiBindDiscordPreconnectGet200Response {
|
|
84
|
+
return ApiBindDiscordPreconnectGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiBindDiscordPreconnectGet200ResponseToJSONTyped(value?: ApiBindDiscordPreconnectGet200Response | 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': ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ApiBindDiscordPreconnectGet200ResponseResponseObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiBindDiscordPreconnectGet200ResponseResponseObject
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiBindDiscordPreconnectGet200ResponseResponseObject interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiBindDiscordPreconnectGet200ResponseResponseObject(value: object): value is ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSON(json: any): ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
39
|
+
return ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSON(json: any): ApiBindDiscordPreconnectGet200ResponseResponseObject {
|
|
53
|
+
return ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiBindDiscordPreconnectGet200ResponseResponseObjectToJSONTyped(value?: ApiBindDiscordPreconnectGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.ts
CHANGED
|
@@ -36,6 +36,10 @@ export * from './ApiAuthRegisterVerifyOtpPostRequest';
|
|
|
36
36
|
export * from './ApiAuthSocialMobilePost200Response';
|
|
37
37
|
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
38
38
|
export * from './ApiAuthSocialMobilePostRequest';
|
|
39
|
+
export * from './ApiBindDiscordGet200Response';
|
|
40
|
+
export * from './ApiBindDiscordGet200ResponseResponseObject';
|
|
41
|
+
export * from './ApiBindDiscordPreconnectGet200Response';
|
|
42
|
+
export * from './ApiBindDiscordPreconnectGet200ResponseResponseObject';
|
|
39
43
|
export * from './ApiCategoryGet200Response';
|
|
40
44
|
export * from './ApiCategoryGet200ResponseResponseObjectInner';
|
|
41
45
|
export * from './ApiCategoryPut200Response';
|