@drxsuperapp/sdk 1.1.418 → 1.1.419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/apis/SwapApi.ts +43 -0
- package/deploy.log +12 -9
- package/dist/apis/SwapApi.d.ts +11 -1
- package/dist/apis/SwapApi.js +34 -1
- package/dist/models/ApiWeb3AdminSwapStatusGet200Response.d.ts +63 -0
- package/dist/models/ApiWeb3AdminSwapStatusGet200Response.js +65 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiWeb3AdminSwapStatusGet200Response.ts +108 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -287,6 +287,7 @@ models/ApiWalletUnbindPost200ResponseResponseObject.ts
|
|
|
287
287
|
models/ApiWeb3AdminSwapAutoApprovePost200Response.ts
|
|
288
288
|
models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts
|
|
289
289
|
models/ApiWeb3AdminSwapIdActionPutRequest.ts
|
|
290
|
+
models/ApiWeb3AdminSwapStatusGet200Response.ts
|
|
290
291
|
models/ApiWeb3PrepareRedeemPost200Response.ts
|
|
291
292
|
models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.ts
|
|
292
293
|
models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem.ts
|
package/apis/SwapApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiWeb3AdminSwapAutoApprovePost200Response,
|
|
19
19
|
ApiWeb3AdminSwapIdActionPutRequest,
|
|
20
|
+
ApiWeb3AdminSwapStatusGet200Response,
|
|
20
21
|
ApiWeb3SwapGet200Response,
|
|
21
22
|
ApiWeb3SwapGetFilterParameter,
|
|
22
23
|
ApiWeb3SwapLimitsGet200Response,
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
ApiWeb3AdminSwapAutoApprovePost200ResponseToJSON,
|
|
29
30
|
ApiWeb3AdminSwapIdActionPutRequestFromJSON,
|
|
30
31
|
ApiWeb3AdminSwapIdActionPutRequestToJSON,
|
|
32
|
+
ApiWeb3AdminSwapStatusGet200ResponseFromJSON,
|
|
33
|
+
ApiWeb3AdminSwapStatusGet200ResponseToJSON,
|
|
31
34
|
ApiWeb3SwapGet200ResponseFromJSON,
|
|
32
35
|
ApiWeb3SwapGet200ResponseToJSON,
|
|
33
36
|
ApiWeb3SwapGetFilterParameterFromJSON,
|
|
@@ -269,6 +272,46 @@ export class SwapApi extends runtime.BaseAPI {
|
|
|
269
272
|
return await response.value();
|
|
270
273
|
}
|
|
271
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Retrieve all status of the swap process
|
|
277
|
+
* Admin Get Swap Status
|
|
278
|
+
*/
|
|
279
|
+
async apiWeb3AdminSwapStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3AdminSwapStatusGet200Response>> {
|
|
280
|
+
const queryParameters: any = {};
|
|
281
|
+
|
|
282
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
283
|
+
|
|
284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = await token("BearerAuth", []);
|
|
291
|
+
|
|
292
|
+
if (tokenString) {
|
|
293
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
const response = await this.request({
|
|
297
|
+
path: `/api/web3/admin/swap/status`,
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
}, initOverrides);
|
|
302
|
+
|
|
303
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3AdminSwapStatusGet200ResponseFromJSON(jsonValue));
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Retrieve all status of the swap process
|
|
308
|
+
* Admin Get Swap Status
|
|
309
|
+
*/
|
|
310
|
+
async apiWeb3AdminSwapStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3AdminSwapStatusGet200Response> {
|
|
311
|
+
const response = await this.apiWeb3AdminSwapStatusGetRaw(initOverrides);
|
|
312
|
+
return await response.value();
|
|
313
|
+
}
|
|
314
|
+
|
|
272
315
|
/**
|
|
273
316
|
* Retrieve a paginated list of user swap requests
|
|
274
317
|
* User Get Swap Requests
|
package/deploy.log
CHANGED
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_swap_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_web3_swap_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_swap_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
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
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_admin_swap_status_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_admin_swap_status_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_admin_swap_status_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
293
294
|
[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
295
|
[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
296
|
[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).
|
|
@@ -579,6 +580,7 @@
|
|
|
579
580
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapAutoApprovePost200Response.ts
|
|
580
581
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject.ts
|
|
581
582
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapIdActionPutRequest.ts
|
|
583
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3AdminSwapStatusGet200Response.ts
|
|
582
584
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3PrepareRedeemPost200Response.ts
|
|
583
585
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.ts
|
|
584
586
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem.ts
|
|
@@ -739,6 +741,7 @@
|
|
|
739
741
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/web3/swap. Renamed to auto-generated operationId: apiWeb3SwapPost
|
|
740
742
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap/{id}. Renamed to auto-generated operationId: apiWeb3SwapIdGet
|
|
741
743
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap. Renamed to auto-generated operationId: apiWeb3AdminSwapGet
|
|
744
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap/status. Renamed to auto-generated operationId: apiWeb3AdminSwapStatusGet
|
|
742
745
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap/{id}. Renamed to auto-generated operationId: apiWeb3AdminSwapIdGet
|
|
743
746
|
[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
747
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/web3/admin/swap/auto-approve. Renamed to auto-generated operationId: apiWeb3AdminSwapAutoApprovePost
|
|
@@ -824,21 +827,21 @@
|
|
|
824
827
|
# https://opencollective.com/openapi_generator/donate #
|
|
825
828
|
################################################################################
|
|
826
829
|
✅ SDK generated
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
[master 2dd4749] VPS: Generated API SDK
|
|
831
|
+
4 files changed, 153 insertions(+)
|
|
832
|
+
create mode 100644 models/ApiWeb3AdminSwapStatusGet200Response.ts
|
|
833
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
834
|
+
31cb814..2dd4749 master -> master
|
|
832
835
|
✅ Changes committed and pushed
|
|
833
|
-
v1.1.
|
|
836
|
+
v1.1.419
|
|
834
837
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
835
|
-
|
|
838
|
+
2dd4749..43f0270 master -> master
|
|
836
839
|
✅ Version bumped
|
|
837
840
|
|
|
838
|
-
> @drxsuperapp/sdk@1.1.
|
|
841
|
+
> @drxsuperapp/sdk@1.1.419 prepublishOnly
|
|
839
842
|
> npm run build
|
|
840
843
|
|
|
841
844
|
|
|
842
|
-
> @drxsuperapp/sdk@1.1.
|
|
845
|
+
> @drxsuperapp/sdk@1.1.419 build
|
|
843
846
|
> tsc
|
|
844
847
|
|
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 { ApiWeb3AdminSwapAutoApprovePost200Response, ApiWeb3AdminSwapIdActionPutRequest, ApiWeb3SwapGet200Response, ApiWeb3SwapGetFilterParameter, ApiWeb3SwapLimitsGet200Response, ApiWeb3SwapPost200Response, ApiWeb3SwapPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiWeb3AdminSwapAutoApprovePost200Response, ApiWeb3AdminSwapIdActionPutRequest, ApiWeb3AdminSwapStatusGet200Response, ApiWeb3SwapGet200Response, ApiWeb3SwapGetFilterParameter, ApiWeb3SwapLimitsGet200Response, ApiWeb3SwapPost200Response, ApiWeb3SwapPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiWeb3AdminSwapGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -80,6 +80,16 @@ export declare class SwapApi extends runtime.BaseAPI {
|
|
|
80
80
|
* Admin Get Swap Request Detail
|
|
81
81
|
*/
|
|
82
82
|
apiWeb3AdminSwapIdGet(requestParameters: ApiWeb3AdminSwapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3SwapPost200Response>;
|
|
83
|
+
/**
|
|
84
|
+
* Retrieve all status of the swap process
|
|
85
|
+
* Admin Get Swap Status
|
|
86
|
+
*/
|
|
87
|
+
apiWeb3AdminSwapStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3AdminSwapStatusGet200Response>>;
|
|
88
|
+
/**
|
|
89
|
+
* Retrieve all status of the swap process
|
|
90
|
+
* Admin Get Swap Status
|
|
91
|
+
*/
|
|
92
|
+
apiWeb3AdminSwapStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3AdminSwapStatusGet200Response>;
|
|
83
93
|
/**
|
|
84
94
|
* Retrieve a paginated list of user swap requests
|
|
85
95
|
* User Get Swap Requests
|
package/dist/apis/SwapApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON, ApiWeb3AdminSwapIdActionPutRequestToJSON, ApiWeb3SwapGet200ResponseFromJSON, ApiWeb3SwapLimitsGet200ResponseFromJSON, ApiWeb3SwapPost200ResponseFromJSON, ApiWeb3SwapPostRequestToJSON, } from '../models/index';
|
|
15
|
+
import { ApiWeb3AdminSwapAutoApprovePost200ResponseFromJSON, ApiWeb3AdminSwapIdActionPutRequestToJSON, ApiWeb3AdminSwapStatusGet200ResponseFromJSON, ApiWeb3SwapGet200ResponseFromJSON, ApiWeb3SwapLimitsGet200ResponseFromJSON, ApiWeb3SwapPost200ResponseFromJSON, ApiWeb3SwapPostRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -169,6 +169,39 @@ export class SwapApi extends runtime.BaseAPI {
|
|
|
169
169
|
const response = await this.apiWeb3AdminSwapIdGetRaw(requestParameters, initOverrides);
|
|
170
170
|
return await response.value();
|
|
171
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Retrieve all status of the swap process
|
|
174
|
+
* Admin Get Swap Status
|
|
175
|
+
*/
|
|
176
|
+
async apiWeb3AdminSwapStatusGetRaw(initOverrides) {
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
const headerParameters = {};
|
|
179
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
180
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
181
|
+
}
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
const token = this.configuration.accessToken;
|
|
184
|
+
const tokenString = await token("BearerAuth", []);
|
|
185
|
+
if (tokenString) {
|
|
186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const response = await this.request({
|
|
190
|
+
path: `/api/web3/admin/swap/status`,
|
|
191
|
+
method: 'GET',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
}, initOverrides);
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3AdminSwapStatusGet200ResponseFromJSON(jsonValue));
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Retrieve all status of the swap process
|
|
199
|
+
* Admin Get Swap Status
|
|
200
|
+
*/
|
|
201
|
+
async apiWeb3AdminSwapStatusGet(initOverrides) {
|
|
202
|
+
const response = await this.apiWeb3AdminSwapStatusGetRaw(initOverrides);
|
|
203
|
+
return await response.value();
|
|
204
|
+
}
|
|
172
205
|
/**
|
|
173
206
|
* Retrieve a paginated list of user swap requests
|
|
174
207
|
* User Get Swap Requests
|
|
@@ -0,0 +1,63 @@
|
|
|
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 ApiWeb3AdminSwapStatusGet200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiWeb3AdminSwapStatusGet200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
34
|
+
*/
|
|
35
|
+
responseObject?: Array<ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
40
|
+
*/
|
|
41
|
+
statusCode: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum: {
|
|
47
|
+
readonly Pending: "PENDING";
|
|
48
|
+
readonly Approved: "APPROVED";
|
|
49
|
+
readonly Processing: "PROCESSING";
|
|
50
|
+
readonly PendingRetry: "PENDING_RETRY";
|
|
51
|
+
readonly Completed: "COMPLETED";
|
|
52
|
+
readonly Rejected: "REJECTED";
|
|
53
|
+
readonly Failed: "FAILED";
|
|
54
|
+
};
|
|
55
|
+
export type ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum[keyof typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiWeb3AdminSwapStatusGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfApiWeb3AdminSwapStatusGet200Response(value: object): value is ApiWeb3AdminSwapStatusGet200Response;
|
|
60
|
+
export declare function ApiWeb3AdminSwapStatusGet200ResponseFromJSON(json: any): ApiWeb3AdminSwapStatusGet200Response;
|
|
61
|
+
export declare function ApiWeb3AdminSwapStatusGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapStatusGet200Response;
|
|
62
|
+
export declare function ApiWeb3AdminSwapStatusGet200ResponseToJSON(json: any): ApiWeb3AdminSwapStatusGet200Response;
|
|
63
|
+
export declare function ApiWeb3AdminSwapStatusGet200ResponseToJSONTyped(value?: ApiWeb3AdminSwapStatusGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = {
|
|
18
|
+
Pending: 'PENDING',
|
|
19
|
+
Approved: 'APPROVED',
|
|
20
|
+
Processing: 'PROCESSING',
|
|
21
|
+
PendingRetry: 'PENDING_RETRY',
|
|
22
|
+
Completed: 'COMPLETED',
|
|
23
|
+
Rejected: 'REJECTED',
|
|
24
|
+
Failed: 'FAILED'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiWeb3AdminSwapStatusGet200Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfApiWeb3AdminSwapStatusGet200Response(value) {
|
|
30
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseFromJSON(json) {
|
|
39
|
+
return ApiWeb3AdminSwapStatusGet200ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'success': json['success'],
|
|
47
|
+
'message': json['message'],
|
|
48
|
+
'responseObject': json['responseObject'] == null ? undefined : json['responseObject'],
|
|
49
|
+
'statusCode': json['statusCode'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseToJSON(json) {
|
|
53
|
+
return ApiWeb3AdminSwapStatusGet200ResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'success': value['success'],
|
|
61
|
+
'message': value['message'],
|
|
62
|
+
'responseObject': value['responseObject'],
|
|
63
|
+
'statusCode': value['statusCode'],
|
|
64
|
+
};
|
|
65
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
|
260
260
|
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
261
261
|
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
262
262
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
263
|
+
export * from './ApiWeb3AdminSwapStatusGet200Response';
|
|
263
264
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
264
265
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
265
266
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
|
package/dist/models/index.js
CHANGED
|
@@ -262,6 +262,7 @@ export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
|
262
262
|
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
263
263
|
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
264
264
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
265
|
+
export * from './ApiWeb3AdminSwapStatusGet200Response';
|
|
265
266
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
266
267
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
267
268
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ApiWeb3AdminSwapStatusGet200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiWeb3AdminSwapStatusGet200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
38
|
+
*/
|
|
39
|
+
responseObject?: Array<ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiWeb3AdminSwapStatusGet200Response
|
|
44
|
+
*/
|
|
45
|
+
statusCode: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = {
|
|
53
|
+
Pending: 'PENDING',
|
|
54
|
+
Approved: 'APPROVED',
|
|
55
|
+
Processing: 'PROCESSING',
|
|
56
|
+
PendingRetry: 'PENDING_RETRY',
|
|
57
|
+
Completed: 'COMPLETED',
|
|
58
|
+
Rejected: 'REJECTED',
|
|
59
|
+
Failed: 'FAILED'
|
|
60
|
+
} as const;
|
|
61
|
+
export type ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum[keyof typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum];
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ApiWeb3AdminSwapStatusGet200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfApiWeb3AdminSwapStatusGet200Response(value: object): value is ApiWeb3AdminSwapStatusGet200Response {
|
|
68
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
69
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
70
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseFromJSON(json: any): ApiWeb3AdminSwapStatusGet200Response {
|
|
75
|
+
return ApiWeb3AdminSwapStatusGet200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapStatusGet200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'success': json['success'],
|
|
85
|
+
'message': json['message'],
|
|
86
|
+
'responseObject': json['responseObject'] == null ? undefined : json['responseObject'],
|
|
87
|
+
'statusCode': json['statusCode'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseToJSON(json: any): ApiWeb3AdminSwapStatusGet200Response {
|
|
92
|
+
return ApiWeb3AdminSwapStatusGet200ResponseToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ApiWeb3AdminSwapStatusGet200ResponseToJSONTyped(value?: ApiWeb3AdminSwapStatusGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'success': value['success'],
|
|
103
|
+
'message': value['message'],
|
|
104
|
+
'responseObject': value['responseObject'],
|
|
105
|
+
'statusCode': value['statusCode'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
package/models/index.ts
CHANGED
|
@@ -262,6 +262,7 @@ export * from './ApiWalletUnbindPost200ResponseResponseObject';
|
|
|
262
262
|
export * from './ApiWeb3AdminSwapAutoApprovePost200Response';
|
|
263
263
|
export * from './ApiWeb3AdminSwapAutoApprovePost200ResponseResponseObject';
|
|
264
264
|
export * from './ApiWeb3AdminSwapIdActionPutRequest';
|
|
265
|
+
export * from './ApiWeb3AdminSwapStatusGet200Response';
|
|
265
266
|
export * from './ApiWeb3PrepareRedeemPost200Response';
|
|
266
267
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
267
268
|
export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
|