@drxsuperapp/sdk 1.1.491 → 1.1.493
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/NotificationManagementApi.ts +6 -3
- package/apis/SocialBindApi.ts +152 -0
- package/apis/index.ts +1 -0
- package/deploy.log +20 -9
- package/dist/apis/NotificationManagementApi.d.ts +3 -3
- package/dist/apis/NotificationManagementApi.js +2 -2
- 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
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ApiNotificationMyNotificationsGet200Response,
|
|
20
20
|
ApiNotificationTopicPostRequest,
|
|
21
21
|
ApiNotificationUserPost200Response,
|
|
22
|
+
ApiNotificationUserPost200ResponseResponseObject,
|
|
22
23
|
ApiNotificationUserPostRequest,
|
|
23
24
|
} from '../models/index';
|
|
24
25
|
import {
|
|
@@ -30,6 +31,8 @@ import {
|
|
|
30
31
|
ApiNotificationTopicPostRequestToJSON,
|
|
31
32
|
ApiNotificationUserPost200ResponseFromJSON,
|
|
32
33
|
ApiNotificationUserPost200ResponseToJSON,
|
|
34
|
+
ApiNotificationUserPost200ResponseResponseObjectFromJSON,
|
|
35
|
+
ApiNotificationUserPost200ResponseResponseObjectToJSON,
|
|
33
36
|
ApiNotificationUserPostRequestFromJSON,
|
|
34
37
|
ApiNotificationUserPostRequestToJSON,
|
|
35
38
|
} from '../models/index';
|
|
@@ -62,7 +65,7 @@ export class NotificationManagementApi extends runtime.BaseAPI {
|
|
|
62
65
|
* Broadcast Notification
|
|
63
66
|
* Broadcast Notification
|
|
64
67
|
*/
|
|
65
|
-
async apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
68
|
+
async apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200ResponseResponseObject>> {
|
|
66
69
|
const queryParameters: any = {};
|
|
67
70
|
|
|
68
71
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -89,14 +92,14 @@ export class NotificationManagementApi extends runtime.BaseAPI {
|
|
|
89
92
|
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
90
93
|
}, initOverrides);
|
|
91
94
|
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
95
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseResponseObjectFromJSON(jsonValue));
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
/**
|
|
96
99
|
* Broadcast Notification
|
|
97
100
|
* Broadcast Notification
|
|
98
101
|
*/
|
|
99
|
-
async apiAdminNotificationBroadcastPost(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
102
|
+
async apiAdminNotificationBroadcastPost(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200ResponseResponseObject> {
|
|
100
103
|
const response = await this.apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides);
|
|
101
104
|
return await response.value();
|
|
102
105
|
}
|
|
@@ -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,20 @@
|
|
|
880
892
|
# https://opencollective.com/openapi_generator/donate #
|
|
881
893
|
################################################################################
|
|
882
894
|
✅ SDK generated
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
Everything up-to-date
|
|
895
|
+
[master 4090b7e] VPS: Generated API SDK
|
|
896
|
+
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
897
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
898
|
+
6c8c0bd..4090b7e master -> master
|
|
888
899
|
✅ Changes committed and pushed
|
|
889
|
-
v1.1.
|
|
900
|
+
v1.1.493
|
|
890
901
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
891
|
-
|
|
902
|
+
4090b7e..c109337 master -> master
|
|
892
903
|
✅ Version bumped
|
|
893
904
|
|
|
894
|
-
> @drxsuperapp/sdk@1.1.
|
|
905
|
+
> @drxsuperapp/sdk@1.1.493 prepublishOnly
|
|
895
906
|
> npm run build
|
|
896
907
|
|
|
897
908
|
|
|
898
|
-
> @drxsuperapp/sdk@1.1.
|
|
909
|
+
> @drxsuperapp/sdk@1.1.493 build
|
|
899
910
|
> tsc
|
|
900
911
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAdminNotificationBroadcastPostRequest, ApiNotificationMyNotificationsGet200Response, ApiNotificationTopicPostRequest, ApiNotificationUserPost200Response, ApiNotificationUserPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiAdminNotificationBroadcastPostRequest, ApiNotificationMyNotificationsGet200Response, ApiNotificationTopicPostRequest, ApiNotificationUserPost200Response, ApiNotificationUserPost200ResponseResponseObject, ApiNotificationUserPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiAdminNotificationBroadcastPostOperationRequest {
|
|
15
15
|
apiAdminNotificationBroadcastPostRequest?: ApiAdminNotificationBroadcastPostRequest;
|
|
16
16
|
}
|
|
@@ -34,12 +34,12 @@ export declare class NotificationManagementApi extends runtime.BaseAPI {
|
|
|
34
34
|
* Broadcast Notification
|
|
35
35
|
* Broadcast Notification
|
|
36
36
|
*/
|
|
37
|
-
apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
37
|
+
apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200ResponseResponseObject>>;
|
|
38
38
|
/**
|
|
39
39
|
* Broadcast Notification
|
|
40
40
|
* Broadcast Notification
|
|
41
41
|
*/
|
|
42
|
-
apiAdminNotificationBroadcastPost(requestParameters?: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
42
|
+
apiAdminNotificationBroadcastPost(requestParameters?: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200ResponseResponseObject>;
|
|
43
43
|
/**
|
|
44
44
|
* Admin Notification List
|
|
45
45
|
* Admin Notification List
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAdminNotificationBroadcastPostRequestToJSON, ApiNotificationMyNotificationsGet200ResponseFromJSON, ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200ResponseFromJSON, ApiNotificationUserPostRequestToJSON, } from '../models/index';
|
|
15
|
+
import { ApiAdminNotificationBroadcastPostRequestToJSON, ApiNotificationMyNotificationsGet200ResponseFromJSON, ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200ResponseFromJSON, ApiNotificationUserPost200ResponseResponseObjectFromJSON, ApiNotificationUserPostRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -42,7 +42,7 @@ export class NotificationManagementApi extends runtime.BaseAPI {
|
|
|
42
42
|
query: queryParameters,
|
|
43
43
|
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
44
44
|
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseResponseObjectFromJSON(jsonValue));
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Broadcast Notification
|
|
@@ -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
|
+
}
|