@drxsuperapp/sdk 1.1.406 → 1.1.408
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 +2 -0
- package/apis/SwapApi.ts +43 -0
- package/deploy.log +15 -9
- package/dist/apis/SwapApi.d.ts +11 -1
- package/dist/apis/SwapApi.js +34 -1
- package/dist/models/ApiWeb3AdminSwapAutoApprovePost200Response.d.ts +51 -0
- package/dist/models/ApiWeb3AdminSwapAutoApprovePost200Response.js +54 -0
- package/dist/models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.d.ts +39 -0
- package/dist/models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.js +48 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/ApiWeb3AdminSwapAutoApprovePost200Response.ts +100 -0
- package/models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts +83 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -284,6 +284,8 @@ models/ApiWalletStatusGet200Response.ts
|
|
|
284
284
|
models/ApiWalletStatusGet200ResponseResponseObject.ts
|
|
285
285
|
models/ApiWalletUnbindPost200Response.ts
|
|
286
286
|
models/ApiWalletUnbindPost200ResponseResponseObject.ts
|
|
287
|
+
models/ApiWeb3AdminSwapAutoApprovePost200Response.ts
|
|
288
|
+
models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts
|
|
287
289
|
models/ApiWeb3AdminSwapIdActionPutRequest.ts
|
|
288
290
|
models/ApiWeb3PrepareRedeemPost200Response.ts
|
|
289
291
|
models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.ts
|
package/apis/SwapApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiWeb3AdminSwapAutoApprovePost200Response,
|
|
18
19
|
ApiWeb3AdminSwapIdActionPutRequest,
|
|
19
20
|
ApiWeb3SwapGet200Response,
|
|
20
21
|
ApiWeb3SwapGetFilterParameter,
|
|
@@ -23,6 +24,8 @@ import type {
|
|
|
23
24
|
ApiWeb3SwapPostRequest,
|
|
24
25
|
} from '../models/index';
|
|
25
26
|
import {
|
|
27
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON,
|
|
28
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseToJSON,
|
|
26
29
|
ApiWeb3AdminSwapIdActionPutRequestFromJSON,
|
|
27
30
|
ApiWeb3AdminSwapIdActionPutRequestToJSON,
|
|
28
31
|
ApiWeb3SwapGet200ResponseFromJSON,
|
|
@@ -73,6 +76,46 @@ export interface ApiWeb3SwapPostOperationRequest {
|
|
|
73
76
|
*/
|
|
74
77
|
export class SwapApi extends runtime.BaseAPI {
|
|
75
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
81
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
82
|
+
*/
|
|
83
|
+
async apiWeb3AdminSwapAutoApprovePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3AdminSwapAutoApprovePost200Response>> {
|
|
84
|
+
const queryParameters: any = {};
|
|
85
|
+
|
|
86
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
93
|
+
const token = this.configuration.accessToken;
|
|
94
|
+
const tokenString = await token("BearerAuth", []);
|
|
95
|
+
|
|
96
|
+
if (tokenString) {
|
|
97
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/api/web3/admin/swap/auto-approve`,
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
|
|
107
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON(jsonValue));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
112
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
113
|
+
*/
|
|
114
|
+
async apiWeb3AdminSwapAutoApprovePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3AdminSwapAutoApprovePost200Response> {
|
|
115
|
+
const response = await this.apiWeb3AdminSwapAutoApprovePostRaw(initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
|
|
76
119
|
/**
|
|
77
120
|
* Retrieve a paginated list of all swap requests
|
|
78
121
|
* Admin Get All Swap Requests
|
package/deploy.log
CHANGED
|
@@ -291,6 +291,8 @@
|
|
|
291
291
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_swap_post_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_web3_swap_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_swap_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
292
292
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_swap_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_swap_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_swap_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
293
293
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_admin_swap__id__action_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_web3_admin_swap__id__action_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_admin_swap__id__action_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
294
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_admin_swap_auto_approve_post_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_web3_admin_swap_auto_approve_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_admin_swap_auto_approve_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
295
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_admin_swap_auto_approve_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_admin_swap_auto_approve_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_admin_swap_auto_approve_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
294
296
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet_active__purpose__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_pool_wallet_active__purpose__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet_active__purpose__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
295
297
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet_active__purpose__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_pool_wallet_active__purpose__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet_active__purpose__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
296
298
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_pool_wallet_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -574,6 +576,8 @@
|
|
|
574
576
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletStatusGet200ResponseResponseObject.ts
|
|
575
577
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletUnbindPost200Response.ts
|
|
576
578
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWalletUnbindPost200ResponseResponseObject.ts
|
|
579
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapAutoApprovePost200Response.ts
|
|
580
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts
|
|
577
581
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapIdActionPutRequest.ts
|
|
578
582
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3PrepareRedeemPost200Response.ts
|
|
579
583
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.ts
|
|
@@ -737,6 +741,7 @@
|
|
|
737
741
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap. Renamed to auto-generated operationId: apiWeb3AdminSwapGet
|
|
738
742
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap/{id}. Renamed to auto-generated operationId: apiWeb3AdminSwapIdGet
|
|
739
743
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/web3/admin/swap/{id}/action. Renamed to auto-generated operationId: apiWeb3AdminSwapIdActionPut
|
|
744
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/web3/admin/swap/auto-approve. Renamed to auto-generated operationId: apiWeb3AdminSwapAutoApprovePost
|
|
740
745
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward/{id}. Renamed to auto-generated operationId: apiPublicWeb3RewardIdGet
|
|
741
746
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward. Renamed to auto-generated operationId: apiPublicWeb3RewardGet
|
|
742
747
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/pool-wallet/active/{purpose}. Renamed to auto-generated operationId: apiPoolWalletActivePurposeGet
|
|
@@ -818,21 +823,22 @@
|
|
|
818
823
|
# https://opencollective.com/openapi_generator/donate #
|
|
819
824
|
################################################################################
|
|
820
825
|
✅ SDK generated
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
+
[master c211bf6] VPS: Generated API SDK
|
|
827
|
+
5 files changed, 230 insertions(+)
|
|
828
|
+
create mode 100644 models/ApiWeb3AdminSwapAutoApprovePost200Response.ts
|
|
829
|
+
create mode 100644 models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts
|
|
830
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
831
|
+
88f5db5..c211bf6 master -> master
|
|
826
832
|
✅ Changes committed and pushed
|
|
827
|
-
v1.1.
|
|
833
|
+
v1.1.408
|
|
828
834
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
829
|
-
|
|
835
|
+
c211bf6..4d838c3 master -> master
|
|
830
836
|
✅ Version bumped
|
|
831
837
|
|
|
832
|
-
> @drxsuperapp/sdk@1.1.
|
|
838
|
+
> @drxsuperapp/sdk@1.1.408 prepublishOnly
|
|
833
839
|
> npm run build
|
|
834
840
|
|
|
835
841
|
|
|
836
|
-
> @drxsuperapp/sdk@1.1.
|
|
842
|
+
> @drxsuperapp/sdk@1.1.408 build
|
|
837
843
|
> tsc
|
|
838
844
|
|
package/dist/apis/SwapApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiWeb3AdminSwapIdActionPutRequest, ApiWeb3SwapGet200Response, ApiWeb3SwapGetFilterParameter, ApiWeb3SwapLimitsGet200Response, ApiWeb3SwapPost200Response, ApiWeb3SwapPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiWeb3AdminSwapAutoApprovePost200Response, ApiWeb3AdminSwapIdActionPutRequest, ApiWeb3SwapGet200Response, ApiWeb3SwapGetFilterParameter, ApiWeb3SwapLimitsGet200Response, ApiWeb3SwapPost200Response, ApiWeb3SwapPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiWeb3AdminSwapGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -40,6 +40,16 @@ export interface ApiWeb3SwapPostOperationRequest {
|
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
42
|
export declare class SwapApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
45
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
46
|
+
*/
|
|
47
|
+
apiWeb3AdminSwapAutoApprovePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3AdminSwapAutoApprovePost200Response>>;
|
|
48
|
+
/**
|
|
49
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
50
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
51
|
+
*/
|
|
52
|
+
apiWeb3AdminSwapAutoApprovePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3AdminSwapAutoApprovePost200Response>;
|
|
43
53
|
/**
|
|
44
54
|
* Retrieve a paginated list of all swap requests
|
|
45
55
|
* Admin Get All Swap Requests
|
package/dist/apis/SwapApi.js
CHANGED
|
@@ -12,11 +12,44 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiWeb3AdminSwapIdActionPutRequestToJSON, ApiWeb3SwapGet200ResponseFromJSON, ApiWeb3SwapLimitsGet200ResponseFromJSON, ApiWeb3SwapPost200ResponseFromJSON, ApiWeb3SwapPostRequestToJSON, } from '../models/index';
|
|
15
|
+
import { ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON, ApiWeb3AdminSwapIdActionPutRequestToJSON, ApiWeb3SwapGet200ResponseFromJSON, ApiWeb3SwapLimitsGet200ResponseFromJSON, ApiWeb3SwapPost200ResponseFromJSON, ApiWeb3SwapPostRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class SwapApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
22
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
23
|
+
*/
|
|
24
|
+
async apiWeb3AdminSwapAutoApprovePostRaw(initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
29
|
+
}
|
|
30
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
31
|
+
const token = this.configuration.accessToken;
|
|
32
|
+
const tokenString = await token("BearerAuth", []);
|
|
33
|
+
if (tokenString) {
|
|
34
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: `/api/web3/admin/swap/auto-approve`,
|
|
39
|
+
method: 'POST',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON(jsonValue));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Manually trigger auto-approval process for swap requests < 5 DRX
|
|
47
|
+
* Admin Manual Auto-Approve Small Swap Requests
|
|
48
|
+
*/
|
|
49
|
+
async apiWeb3AdminSwapAutoApprovePost(initOverrides) {
|
|
50
|
+
const response = await this.apiWeb3AdminSwapAutoApprovePostRaw(initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
20
53
|
/**
|
|
21
54
|
* Retrieve a paginated list of all swap requests
|
|
22
55
|
* Admin Get All Swap Requests
|
|
@@ -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 { ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject } from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiWeb3AdminSwapAutoApprovePost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiWeb3AdminSwapAutoApprovePost200Response(value: object): value is ApiWeb3AdminSwapAutoApprovePost200Response;
|
|
48
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200Response;
|
|
49
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapAutoApprovePost200Response;
|
|
50
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200Response;
|
|
51
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSONTyped(value?: ApiWeb3AdminSwapAutoApprovePost200Response | 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 { ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON, ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON, } from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiWeb3AdminSwapAutoApprovePost200Response(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 ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSONTyped(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 : ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSON(json) {
|
|
42
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { ApiWeb3SwapPost200ResponseResponseObject } from './ApiWeb3SwapPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiWeb3SwapPost200ResponseResponseObject>}
|
|
22
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
approvedRequests: Array<ApiWeb3SwapPost200ResponseResponseObject>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject(value: object): value is ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
36
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
37
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
38
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
39
|
+
export declare function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped(value?: ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { ApiWeb3SwapPost200ResponseResponseObjectFromJSON, ApiWeb3SwapPost200ResponseResponseObjectToJSON, } from './ApiWeb3SwapPost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject(value) {
|
|
19
|
+
if (!('approvedRequests' in value) || value['approvedRequests'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON(json) {
|
|
26
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'approvedRequests': (json['approvedRequests'].map(ApiWeb3SwapPost200ResponseResponseObjectFromJSON)),
|
|
34
|
+
'message': json['message'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON(json) {
|
|
38
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'approvedRequests': (value['approvedRequests'].map(ApiWeb3SwapPost200ResponseResponseObjectToJSON)),
|
|
46
|
+
'message': value['message'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -257,6 +257,8 @@ export * from './ApiWalletStatusGet200Response';
|
|
|
257
257
|
export * from './ApiWalletStatusGet200ResponseResponseObject';
|
|
258
258
|
export * from './ApiWalletUnbindPost200Response';
|
|
259
259
|
export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
260
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
261
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
260
262
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
261
263
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
262
264
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
package/dist/models/index.js
CHANGED
|
@@ -259,6 +259,8 @@ export * from './ApiWalletStatusGet200Response';
|
|
|
259
259
|
export * from './ApiWalletStatusGet200ResponseResponseObject';
|
|
260
260
|
export * from './ApiWalletUnbindPost200Response';
|
|
261
261
|
export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
262
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
263
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
262
264
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
263
265
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
264
266
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
@@ -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 { ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject } from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiWeb3AdminSwapAutoApprovePost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiWeb3AdminSwapAutoApprovePost200Response(value: object): value is ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
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 ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
67
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
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 : ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200Response {
|
|
84
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseToJSONTyped(value?: ApiWeb3AdminSwapAutoApprovePost200Response | 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': ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { ApiWeb3SwapPost200ResponseResponseObject } from './ApiWeb3SwapPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiWeb3SwapPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiWeb3SwapPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiWeb3SwapPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiWeb3SwapPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiWeb3SwapPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiWeb3SwapPost200ResponseResponseObject>}
|
|
33
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
approvedRequests: Array<ApiWeb3SwapPost200ResponseResponseObject>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject(value: object): value is ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
48
|
+
if (!('approvedRequests' in value) || value['approvedRequests'] === undefined) return false;
|
|
49
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
54
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'approvedRequests': ((json['approvedRequests'] as Array<any>).map(ApiWeb3SwapPost200ResponseResponseObjectFromJSON)),
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSON(json: any): ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject {
|
|
69
|
+
return ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObjectToJSONTyped(value?: ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'approvedRequests': ((value['approvedRequests'] as Array<any>).map(ApiWeb3SwapPost200ResponseResponseObjectToJSON)),
|
|
80
|
+
'message': value['message'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/models/index.ts
CHANGED
|
@@ -259,6 +259,8 @@ export * from './ApiWalletStatusGet200Response';
|
|
|
259
259
|
export * from './ApiWalletStatusGet200ResponseResponseObject';
|
|
260
260
|
export * from './ApiWalletUnbindPost200Response';
|
|
261
261
|
export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
262
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
263
|
+
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
262
264
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
263
265
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
264
266
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|