@drxsuperapp/sdk 1.1.419 → 1.1.421
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/PoolWalletManagementApi.ts +50 -0
- package/apis/SwapApi.ts +51 -0
- package/deploy.log +11 -8
- package/dist/apis/PoolWalletManagementApi.d.ts +14 -1
- package/dist/apis/PoolWalletManagementApi.js +36 -1
- package/dist/apis/SwapApi.d.ts +13 -0
- package/dist/apis/SwapApi.js +36 -0
- package/dist/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.d.ts +12 -0
- package/dist/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.js +4 -0
- package/dist/models/ApiPoolWalletGeneratePostRequest.d.ts +32 -0
- package/dist/models/ApiPoolWalletGeneratePostRequest.js +41 -0
- package/dist/models/ApiWeb3AdminSwapStatusGet200Response.d.ts +1 -0
- package/dist/models/ApiWeb3AdminSwapStatusGet200Response.js +2 -1
- package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.d.ts +1 -0
- package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.js +2 -1
- package/dist/models/ApiWeb3SwapPost200ResponseResponseObject.d.ts +1 -0
- package/dist/models/ApiWeb3SwapPost200ResponseResponseObject.js +2 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.ts +16 -0
- package/models/ApiPoolWalletGeneratePostRequest.ts +65 -0
- package/models/ApiWeb3AdminSwapStatusGet200Response.ts +2 -1
- package/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.ts +2 -1
- package/models/ApiWeb3SwapPost200ResponseResponseObject.ts +2 -1
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -179,6 +179,7 @@ models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections.ts
|
|
|
179
179
|
models/ApiPadelSeedGet200Response.ts
|
|
180
180
|
models/ApiPoolWalletActivePurposeGet200Response.ts
|
|
181
181
|
models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.ts
|
|
182
|
+
models/ApiPoolWalletGeneratePostRequest.ts
|
|
182
183
|
models/ApiPoolWalletGet200Response.ts
|
|
183
184
|
models/ApiPoolWalletGetFilterParameter.ts
|
|
184
185
|
models/ApiPoolWalletIdPutRequest.ts
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiPoolWalletActivePurposeGet200Response,
|
|
19
|
+
ApiPoolWalletGeneratePostRequest,
|
|
19
20
|
ApiPoolWalletGet200Response,
|
|
20
21
|
ApiPoolWalletGetFilterParameter,
|
|
21
22
|
ApiPoolWalletIdPutRequest,
|
|
@@ -23,6 +24,8 @@ import type {
|
|
|
23
24
|
import {
|
|
24
25
|
ApiPoolWalletActivePurposeGet200ResponseFromJSON,
|
|
25
26
|
ApiPoolWalletActivePurposeGet200ResponseToJSON,
|
|
27
|
+
ApiPoolWalletGeneratePostRequestFromJSON,
|
|
28
|
+
ApiPoolWalletGeneratePostRequestToJSON,
|
|
26
29
|
ApiPoolWalletGet200ResponseFromJSON,
|
|
27
30
|
ApiPoolWalletGet200ResponseToJSON,
|
|
28
31
|
ApiPoolWalletGetFilterParameterFromJSON,
|
|
@@ -35,6 +38,10 @@ export interface ApiPoolWalletActivePurposeGetRequest {
|
|
|
35
38
|
purpose: string;
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export interface ApiPoolWalletGeneratePostOperationRequest {
|
|
42
|
+
apiPoolWalletGeneratePostRequest?: ApiPoolWalletGeneratePostRequest;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
export interface ApiPoolWalletGetRequest {
|
|
39
46
|
page?: number;
|
|
40
47
|
pageSize?: number;
|
|
@@ -103,6 +110,49 @@ export class PoolWalletManagementApi extends runtime.BaseAPI {
|
|
|
103
110
|
return await response.value();
|
|
104
111
|
}
|
|
105
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Generate a new pool wallet for specified purpose
|
|
115
|
+
* Admin Generate Pool Wallet
|
|
116
|
+
*/
|
|
117
|
+
async apiPoolWalletGeneratePostRaw(requestParameters: ApiPoolWalletGeneratePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPoolWalletActivePurposeGet200Response>> {
|
|
118
|
+
const queryParameters: any = {};
|
|
119
|
+
|
|
120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
+
|
|
122
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
123
|
+
|
|
124
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
125
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
const token = this.configuration.accessToken;
|
|
130
|
+
const tokenString = await token("BearerAuth", []);
|
|
131
|
+
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: `/api/pool-wallet/generate`,
|
|
138
|
+
method: 'POST',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
body: ApiPoolWalletGeneratePostRequestToJSON(requestParameters['apiPoolWalletGeneratePostRequest']),
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPoolWalletActivePurposeGet200ResponseFromJSON(jsonValue));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Generate a new pool wallet for specified purpose
|
|
149
|
+
* Admin Generate Pool Wallet
|
|
150
|
+
*/
|
|
151
|
+
async apiPoolWalletGeneratePost(requestParameters: ApiPoolWalletGeneratePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPoolWalletActivePurposeGet200Response> {
|
|
152
|
+
const response = await this.apiPoolWalletGeneratePostRaw(requestParameters, initOverrides);
|
|
153
|
+
return await response.value();
|
|
154
|
+
}
|
|
155
|
+
|
|
106
156
|
/**
|
|
107
157
|
* Retrieve a list of pool wallets with optional filtering
|
|
108
158
|
* Admin List Pool Wallets
|
package/apis/SwapApi.ts
CHANGED
|
@@ -66,6 +66,10 @@ export interface ApiWeb3SwapGetRequest {
|
|
|
66
66
|
filter?: ApiWeb3SwapGetFilterParameter;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export interface ApiWeb3SwapIdCancelPutRequest {
|
|
70
|
+
id: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
69
73
|
export interface ApiWeb3SwapIdGetRequest {
|
|
70
74
|
id: string;
|
|
71
75
|
}
|
|
@@ -368,6 +372,53 @@ export class SwapApi extends runtime.BaseAPI {
|
|
|
368
372
|
return await response.value();
|
|
369
373
|
}
|
|
370
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Cancel a pending swap request and refund points
|
|
377
|
+
* User Cancel Swap Request
|
|
378
|
+
*/
|
|
379
|
+
async apiWeb3SwapIdCancelPutRaw(requestParameters: ApiWeb3SwapIdCancelPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3SwapPost200Response>> {
|
|
380
|
+
if (requestParameters['id'] == null) {
|
|
381
|
+
throw new runtime.RequiredError(
|
|
382
|
+
'id',
|
|
383
|
+
'Required parameter "id" was null or undefined when calling apiWeb3SwapIdCancelPut().'
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const queryParameters: any = {};
|
|
388
|
+
|
|
389
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
390
|
+
|
|
391
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
392
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
396
|
+
const token = this.configuration.accessToken;
|
|
397
|
+
const tokenString = await token("BearerAuth", []);
|
|
398
|
+
|
|
399
|
+
if (tokenString) {
|
|
400
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
const response = await this.request({
|
|
404
|
+
path: `/api/web3/swap/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
405
|
+
method: 'PUT',
|
|
406
|
+
headers: headerParameters,
|
|
407
|
+
query: queryParameters,
|
|
408
|
+
}, initOverrides);
|
|
409
|
+
|
|
410
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3SwapPost200ResponseFromJSON(jsonValue));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Cancel a pending swap request and refund points
|
|
415
|
+
* User Cancel Swap Request
|
|
416
|
+
*/
|
|
417
|
+
async apiWeb3SwapIdCancelPut(requestParameters: ApiWeb3SwapIdCancelPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3SwapPost200Response> {
|
|
418
|
+
const response = await this.apiWeb3SwapIdCancelPutRaw(requestParameters, initOverrides);
|
|
419
|
+
return await response.value();
|
|
420
|
+
}
|
|
421
|
+
|
|
371
422
|
/**
|
|
372
423
|
* Retrieve detailed information about a specific swap request
|
|
373
424
|
* User Get Swap Request Detail
|
package/deploy.log
CHANGED
|
@@ -296,6 +296,7 @@
|
|
|
296
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).
|
|
297
297
|
[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).
|
|
298
298
|
[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).
|
|
299
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet_generate_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_pool_wallet_generate_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet_generate_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
299
300
|
[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).
|
|
300
301
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet_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_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
301
302
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_pool_wallet__id__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_pool_wallet__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_pool_wallet__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -472,6 +473,7 @@
|
|
|
472
473
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelSeedGet200Response.ts
|
|
473
474
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletActivePurposeGet200Response.ts
|
|
474
475
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.ts
|
|
476
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletGeneratePostRequest.ts
|
|
475
477
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletGet200Response.ts
|
|
476
478
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletGetFilterParameter.ts
|
|
477
479
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPoolWalletIdPutRequest.ts
|
|
@@ -739,6 +741,7 @@
|
|
|
739
741
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap/limits. Renamed to auto-generated operationId: apiWeb3SwapLimitsGet
|
|
740
742
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap. Renamed to auto-generated operationId: apiWeb3SwapGet
|
|
741
743
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/web3/swap. Renamed to auto-generated operationId: apiWeb3SwapPost
|
|
744
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/web3/swap/{id}/cancel. Renamed to auto-generated operationId: apiWeb3SwapIdCancelPut
|
|
742
745
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap/{id}. Renamed to auto-generated operationId: apiWeb3SwapIdGet
|
|
743
746
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap. Renamed to auto-generated operationId: apiWeb3AdminSwapGet
|
|
744
747
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap/status. Renamed to auto-generated operationId: apiWeb3AdminSwapStatusGet
|
|
@@ -748,6 +751,7 @@
|
|
|
748
751
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward/{id}. Renamed to auto-generated operationId: apiPublicWeb3RewardIdGet
|
|
749
752
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward. Renamed to auto-generated operationId: apiPublicWeb3RewardGet
|
|
750
753
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/pool-wallet/active/{purpose}. Renamed to auto-generated operationId: apiPoolWalletActivePurposeGet
|
|
754
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/pool-wallet/generate. Renamed to auto-generated operationId: apiPoolWalletGeneratePost
|
|
751
755
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/pool-wallet. Renamed to auto-generated operationId: apiPoolWalletGet
|
|
752
756
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/pool-wallet/{id}. Renamed to auto-generated operationId: apiPoolWalletIdPut
|
|
753
757
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/pool-wallet/{id}. Renamed to auto-generated operationId: apiPoolWalletIdDelete
|
|
@@ -827,21 +831,20 @@
|
|
|
827
831
|
# https://opencollective.com/openapi_generator/donate #
|
|
828
832
|
################################################################################
|
|
829
833
|
✅ SDK generated
|
|
830
|
-
[master
|
|
831
|
-
4 files changed,
|
|
832
|
-
create mode 100644 models/ApiWeb3AdminSwapStatusGet200Response.ts
|
|
834
|
+
[master d9d8e3c] VPS: Generated API SDK
|
|
835
|
+
4 files changed, 57 insertions(+), 3 deletions(-)
|
|
833
836
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
834
|
-
|
|
837
|
+
6e5b244..d9d8e3c master -> master
|
|
835
838
|
✅ Changes committed and pushed
|
|
836
|
-
v1.1.
|
|
839
|
+
v1.1.421
|
|
837
840
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
838
|
-
|
|
841
|
+
d9d8e3c..08464e3 master -> master
|
|
839
842
|
✅ Version bumped
|
|
840
843
|
|
|
841
|
-
> @drxsuperapp/sdk@1.1.
|
|
844
|
+
> @drxsuperapp/sdk@1.1.421 prepublishOnly
|
|
842
845
|
> npm run build
|
|
843
846
|
|
|
844
847
|
|
|
845
|
-
> @drxsuperapp/sdk@1.1.
|
|
848
|
+
> @drxsuperapp/sdk@1.1.421 build
|
|
846
849
|
> tsc
|
|
847
850
|
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiPoolWalletActivePurposeGet200Response, ApiPoolWalletGet200Response, ApiPoolWalletGetFilterParameter, ApiPoolWalletIdPutRequest } from '../models/index';
|
|
13
|
+
import type { ApiPoolWalletActivePurposeGet200Response, ApiPoolWalletGeneratePostRequest, ApiPoolWalletGet200Response, ApiPoolWalletGetFilterParameter, ApiPoolWalletIdPutRequest } from '../models/index';
|
|
14
14
|
export interface ApiPoolWalletActivePurposeGetRequest {
|
|
15
15
|
purpose: string;
|
|
16
16
|
}
|
|
17
|
+
export interface ApiPoolWalletGeneratePostOperationRequest {
|
|
18
|
+
apiPoolWalletGeneratePostRequest?: ApiPoolWalletGeneratePostRequest;
|
|
19
|
+
}
|
|
17
20
|
export interface ApiPoolWalletGetRequest {
|
|
18
21
|
page?: number;
|
|
19
22
|
pageSize?: number;
|
|
@@ -41,6 +44,16 @@ export declare class PoolWalletManagementApi extends runtime.BaseAPI {
|
|
|
41
44
|
* Admin Get Active Pool Wallet
|
|
42
45
|
*/
|
|
43
46
|
apiPoolWalletActivePurposeGet(requestParameters: ApiPoolWalletActivePurposeGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPoolWalletActivePurposeGet200Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Generate a new pool wallet for specified purpose
|
|
49
|
+
* Admin Generate Pool Wallet
|
|
50
|
+
*/
|
|
51
|
+
apiPoolWalletGeneratePostRaw(requestParameters: ApiPoolWalletGeneratePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPoolWalletActivePurposeGet200Response>>;
|
|
52
|
+
/**
|
|
53
|
+
* Generate a new pool wallet for specified purpose
|
|
54
|
+
* Admin Generate Pool Wallet
|
|
55
|
+
*/
|
|
56
|
+
apiPoolWalletGeneratePost(requestParameters?: ApiPoolWalletGeneratePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPoolWalletActivePurposeGet200Response>;
|
|
44
57
|
/**
|
|
45
58
|
* Retrieve a list of pool wallets with optional filtering
|
|
46
59
|
* Admin List Pool Wallets
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiPoolWalletActivePurposeGet200ResponseFromJSON, ApiPoolWalletGet200ResponseFromJSON, ApiPoolWalletIdPutRequestToJSON, } from '../models/index';
|
|
15
|
+
import { ApiPoolWalletActivePurposeGet200ResponseFromJSON, ApiPoolWalletGeneratePostRequestToJSON, ApiPoolWalletGet200ResponseFromJSON, ApiPoolWalletIdPutRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -53,6 +53,41 @@ export class PoolWalletManagementApi extends runtime.BaseAPI {
|
|
|
53
53
|
const response = await this.apiPoolWalletActivePurposeGetRaw(requestParameters, initOverrides);
|
|
54
54
|
return await response.value();
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Generate a new pool wallet for specified purpose
|
|
58
|
+
* Admin Generate Pool Wallet
|
|
59
|
+
*/
|
|
60
|
+
async apiPoolWalletGeneratePostRaw(requestParameters, initOverrides) {
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
66
|
+
}
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("BearerAuth", []);
|
|
70
|
+
if (tokenString) {
|
|
71
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const response = await this.request({
|
|
75
|
+
path: `/api/pool-wallet/generate`,
|
|
76
|
+
method: 'POST',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
body: ApiPoolWalletGeneratePostRequestToJSON(requestParameters['apiPoolWalletGeneratePostRequest']),
|
|
80
|
+
}, initOverrides);
|
|
81
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPoolWalletActivePurposeGet200ResponseFromJSON(jsonValue));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Generate a new pool wallet for specified purpose
|
|
85
|
+
* Admin Generate Pool Wallet
|
|
86
|
+
*/
|
|
87
|
+
async apiPoolWalletGeneratePost(requestParameters = {}, initOverrides) {
|
|
88
|
+
const response = await this.apiPoolWalletGeneratePostRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
56
91
|
/**
|
|
57
92
|
* Retrieve a list of pool wallets with optional filtering
|
|
58
93
|
* Admin List Pool Wallets
|
package/dist/apis/SwapApi.d.ts
CHANGED
|
@@ -30,6 +30,9 @@ export interface ApiWeb3SwapGetRequest {
|
|
|
30
30
|
sort?: string;
|
|
31
31
|
filter?: ApiWeb3SwapGetFilterParameter;
|
|
32
32
|
}
|
|
33
|
+
export interface ApiWeb3SwapIdCancelPutRequest {
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
33
36
|
export interface ApiWeb3SwapIdGetRequest {
|
|
34
37
|
id: string;
|
|
35
38
|
}
|
|
@@ -100,6 +103,16 @@ export declare class SwapApi extends runtime.BaseAPI {
|
|
|
100
103
|
* User Get Swap Requests
|
|
101
104
|
*/
|
|
102
105
|
apiWeb3SwapGet(requestParameters?: ApiWeb3SwapGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3SwapGet200Response>;
|
|
106
|
+
/**
|
|
107
|
+
* Cancel a pending swap request and refund points
|
|
108
|
+
* User Cancel Swap Request
|
|
109
|
+
*/
|
|
110
|
+
apiWeb3SwapIdCancelPutRaw(requestParameters: ApiWeb3SwapIdCancelPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3SwapPost200Response>>;
|
|
111
|
+
/**
|
|
112
|
+
* Cancel a pending swap request and refund points
|
|
113
|
+
* User Cancel Swap Request
|
|
114
|
+
*/
|
|
115
|
+
apiWeb3SwapIdCancelPut(requestParameters: ApiWeb3SwapIdCancelPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3SwapPost200Response>;
|
|
103
116
|
/**
|
|
104
117
|
* Retrieve detailed information about a specific swap request
|
|
105
118
|
* User Get Swap Request Detail
|
package/dist/apis/SwapApi.js
CHANGED
|
@@ -247,6 +247,42 @@ export class SwapApi extends runtime.BaseAPI {
|
|
|
247
247
|
const response = await this.apiWeb3SwapGetRaw(requestParameters, initOverrides);
|
|
248
248
|
return await response.value();
|
|
249
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* Cancel a pending swap request and refund points
|
|
252
|
+
* User Cancel Swap Request
|
|
253
|
+
*/
|
|
254
|
+
async apiWeb3SwapIdCancelPutRaw(requestParameters, initOverrides) {
|
|
255
|
+
if (requestParameters['id'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiWeb3SwapIdCancelPut().');
|
|
257
|
+
}
|
|
258
|
+
const queryParameters = {};
|
|
259
|
+
const headerParameters = {};
|
|
260
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
261
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
262
|
+
}
|
|
263
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
264
|
+
const token = this.configuration.accessToken;
|
|
265
|
+
const tokenString = await token("BearerAuth", []);
|
|
266
|
+
if (tokenString) {
|
|
267
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const response = await this.request({
|
|
271
|
+
path: `/api/web3/swap/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
272
|
+
method: 'PUT',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
}, initOverrides);
|
|
276
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3SwapPost200ResponseFromJSON(jsonValue));
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Cancel a pending swap request and refund points
|
|
280
|
+
* User Cancel Swap Request
|
|
281
|
+
*/
|
|
282
|
+
async apiWeb3SwapIdCancelPut(requestParameters, initOverrides) {
|
|
283
|
+
const response = await this.apiWeb3SwapIdCancelPutRaw(requestParameters, initOverrides);
|
|
284
|
+
return await response.value();
|
|
285
|
+
}
|
|
250
286
|
/**
|
|
251
287
|
* Retrieve detailed information about a specific swap request
|
|
252
288
|
* User Get Swap Request Detail
|
|
@@ -51,6 +51,18 @@ export interface ApiPoolWalletActivePurposeGet200ResponseResponseObject {
|
|
|
51
51
|
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
52
52
|
*/
|
|
53
53
|
updatedAt?: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
deletedAt?: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
64
|
+
*/
|
|
65
|
+
deletedBy?: string;
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* Check if a given object implements the ApiPoolWalletActivePurposeGet200ResponseResponseObject interface.
|
|
@@ -41,6 +41,8 @@ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTy
|
|
|
41
41
|
'isActive': json['isActive'],
|
|
42
42
|
'createdAt': (new Date(json['createdAt'])),
|
|
43
43
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
44
|
+
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
45
|
+
'deletedBy': json['deletedBy'] == null ? undefined : json['deletedBy'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON(json) {
|
|
@@ -57,5 +59,7 @@ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONType
|
|
|
57
59
|
'isActive': value['isActive'],
|
|
58
60
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
59
61
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
62
|
+
'deletedAt': value['deletedAt'] == null ? undefined : ((value['deletedAt']).toISOString()),
|
|
63
|
+
'deletedBy': value['deletedBy'],
|
|
60
64
|
};
|
|
61
65
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiPoolWalletGeneratePostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiPoolWalletGeneratePostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiPoolWalletGeneratePostRequest
|
|
22
|
+
*/
|
|
23
|
+
purpose?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiPoolWalletGeneratePostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiPoolWalletGeneratePostRequest(value: object): value is ApiPoolWalletGeneratePostRequest;
|
|
29
|
+
export declare function ApiPoolWalletGeneratePostRequestFromJSON(json: any): ApiPoolWalletGeneratePostRequest;
|
|
30
|
+
export declare function ApiPoolWalletGeneratePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletGeneratePostRequest;
|
|
31
|
+
export declare function ApiPoolWalletGeneratePostRequestToJSON(json: any): ApiPoolWalletGeneratePostRequest;
|
|
32
|
+
export declare function ApiPoolWalletGeneratePostRequestToJSONTyped(value?: ApiPoolWalletGeneratePostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiPoolWalletGeneratePostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiPoolWalletGeneratePostRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ApiPoolWalletGeneratePostRequestFromJSON(json) {
|
|
21
|
+
return ApiPoolWalletGeneratePostRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ApiPoolWalletGeneratePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ApiPoolWalletGeneratePostRequestToJSON(json) {
|
|
32
|
+
return ApiPoolWalletGeneratePostRequestToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiPoolWalletGeneratePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'purpose': value['purpose'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -51,6 +51,7 @@ export declare const ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum: {
|
|
|
51
51
|
readonly Completed: "COMPLETED";
|
|
52
52
|
readonly Rejected: "REJECTED";
|
|
53
53
|
readonly Failed: "FAILED";
|
|
54
|
+
readonly Cancelled: "CANCELLED";
|
|
54
55
|
};
|
|
55
56
|
export type ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum[keyof typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum];
|
|
56
57
|
/**
|
|
@@ -21,7 +21,8 @@ export const ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = {
|
|
|
21
21
|
PendingRetry: 'PENDING_RETRY',
|
|
22
22
|
Completed: 'COMPLETED',
|
|
23
23
|
Rejected: 'REJECTED',
|
|
24
|
-
Failed: 'FAILED'
|
|
24
|
+
Failed: 'FAILED',
|
|
25
|
+
Cancelled: 'CANCELLED'
|
|
25
26
|
};
|
|
26
27
|
/**
|
|
27
28
|
* Check if a given object implements the ApiWeb3AdminSwapStatusGet200Response interface.
|
|
@@ -88,6 +88,7 @@ export declare const ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum
|
|
|
88
88
|
readonly Completed: "COMPLETED";
|
|
89
89
|
readonly Rejected: "REJECTED";
|
|
90
90
|
readonly Failed: "FAILED";
|
|
91
|
+
readonly Cancelled: "CANCELLED";
|
|
91
92
|
};
|
|
92
93
|
export type ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum = typeof ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum[keyof typeof ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum];
|
|
93
94
|
/**
|
|
@@ -22,7 +22,8 @@ export const ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum = {
|
|
|
22
22
|
PendingRetry: 'PENDING_RETRY',
|
|
23
23
|
Completed: 'COMPLETED',
|
|
24
24
|
Rejected: 'REJECTED',
|
|
25
|
-
Failed: 'FAILED'
|
|
25
|
+
Failed: 'FAILED',
|
|
26
|
+
Cancelled: 'CANCELLED'
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* Check if a given object implements the ApiWeb3SwapGet200ResponseResponseObjectItemsInner interface.
|
|
@@ -124,6 +124,7 @@ export declare const ApiWeb3SwapPost200ResponseResponseObjectStatusEnum: {
|
|
|
124
124
|
readonly Completed: "COMPLETED";
|
|
125
125
|
readonly Rejected: "REJECTED";
|
|
126
126
|
readonly Failed: "FAILED";
|
|
127
|
+
readonly Cancelled: "CANCELLED";
|
|
127
128
|
};
|
|
128
129
|
export type ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum[keyof typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum];
|
|
129
130
|
/**
|
|
@@ -22,7 +22,8 @@ export const ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = {
|
|
|
22
22
|
PendingRetry: 'PENDING_RETRY',
|
|
23
23
|
Completed: 'COMPLETED',
|
|
24
24
|
Rejected: 'REJECTED',
|
|
25
|
-
Failed: 'FAILED'
|
|
25
|
+
Failed: 'FAILED',
|
|
26
|
+
Cancelled: 'CANCELLED'
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* Check if a given object implements the ApiWeb3SwapPost200ResponseResponseObject interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
|
152
152
|
export * from './ApiPadelSeedGet200Response';
|
|
153
153
|
export * from './ApiPoolWalletActivePurposeGet200Response';
|
|
154
154
|
export * from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
|
|
155
|
+
export * from './ApiPoolWalletGeneratePostRequest';
|
|
155
156
|
export * from './ApiPoolWalletGet200Response';
|
|
156
157
|
export * from './ApiPoolWalletGetFilterParameter';
|
|
157
158
|
export * from './ApiPoolWalletIdPutRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -154,6 +154,7 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
|
154
154
|
export * from './ApiPadelSeedGet200Response';
|
|
155
155
|
export * from './ApiPoolWalletActivePurposeGet200Response';
|
|
156
156
|
export * from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
|
|
157
|
+
export * from './ApiPoolWalletGeneratePostRequest';
|
|
157
158
|
export * from './ApiPoolWalletGet200Response';
|
|
158
159
|
export * from './ApiPoolWalletGetFilterParameter';
|
|
159
160
|
export * from './ApiPoolWalletIdPutRequest';
|
|
@@ -55,6 +55,18 @@ export interface ApiPoolWalletActivePurposeGet200ResponseResponseObject {
|
|
|
55
55
|
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
56
56
|
*/
|
|
57
57
|
updatedAt?: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
62
|
+
*/
|
|
63
|
+
deletedAt?: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
|
|
68
|
+
*/
|
|
69
|
+
deletedBy?: string;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
/**
|
|
@@ -85,6 +97,8 @@ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTy
|
|
|
85
97
|
'isActive': json['isActive'],
|
|
86
98
|
'createdAt': (new Date(json['createdAt'])),
|
|
87
99
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
100
|
+
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
101
|
+
'deletedBy': json['deletedBy'] == null ? undefined : json['deletedBy'],
|
|
88
102
|
};
|
|
89
103
|
}
|
|
90
104
|
|
|
@@ -105,6 +119,8 @@ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONType
|
|
|
105
119
|
'isActive': value['isActive'],
|
|
106
120
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
107
121
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
122
|
+
'deletedAt': value['deletedAt'] == null ? undefined : ((value['deletedAt']).toISOString()),
|
|
123
|
+
'deletedBy': value['deletedBy'],
|
|
108
124
|
};
|
|
109
125
|
}
|
|
110
126
|
|
|
@@ -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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiPoolWalletGeneratePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPoolWalletGeneratePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiPoolWalletGeneratePostRequest
|
|
26
|
+
*/
|
|
27
|
+
purpose?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiPoolWalletGeneratePostRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiPoolWalletGeneratePostRequest(value: object): value is ApiPoolWalletGeneratePostRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ApiPoolWalletGeneratePostRequestFromJSON(json: any): ApiPoolWalletGeneratePostRequest {
|
|
38
|
+
return ApiPoolWalletGeneratePostRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ApiPoolWalletGeneratePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletGeneratePostRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiPoolWalletGeneratePostRequestToJSON(json: any): ApiPoolWalletGeneratePostRequest {
|
|
52
|
+
return ApiPoolWalletGeneratePostRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiPoolWalletGeneratePostRequestToJSONTyped(value?: ApiPoolWalletGeneratePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'purpose': value['purpose'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -56,7 +56,8 @@ export const ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = {
|
|
|
56
56
|
PendingRetry: 'PENDING_RETRY',
|
|
57
57
|
Completed: 'COMPLETED',
|
|
58
58
|
Rejected: 'REJECTED',
|
|
59
|
-
Failed: 'FAILED'
|
|
59
|
+
Failed: 'FAILED',
|
|
60
|
+
Cancelled: 'CANCELLED'
|
|
60
61
|
} as const;
|
|
61
62
|
export type ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum = typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum[keyof typeof ApiWeb3AdminSwapStatusGet200ResponseResponseObjectEnum];
|
|
62
63
|
|
|
@@ -100,7 +100,8 @@ export const ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum = {
|
|
|
100
100
|
PendingRetry: 'PENDING_RETRY',
|
|
101
101
|
Completed: 'COMPLETED',
|
|
102
102
|
Rejected: 'REJECTED',
|
|
103
|
-
Failed: 'FAILED'
|
|
103
|
+
Failed: 'FAILED',
|
|
104
|
+
Cancelled: 'CANCELLED'
|
|
104
105
|
} as const;
|
|
105
106
|
export type ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum = typeof ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum[keyof typeof ApiWeb3SwapGet200ResponseResponseObjectItemsInnerStatusEnum];
|
|
106
107
|
|
|
@@ -136,7 +136,8 @@ export const ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = {
|
|
|
136
136
|
PendingRetry: 'PENDING_RETRY',
|
|
137
137
|
Completed: 'COMPLETED',
|
|
138
138
|
Rejected: 'REJECTED',
|
|
139
|
-
Failed: 'FAILED'
|
|
139
|
+
Failed: 'FAILED',
|
|
140
|
+
Cancelled: 'CANCELLED'
|
|
140
141
|
} as const;
|
|
141
142
|
export type ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum[keyof typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum];
|
|
142
143
|
|
package/models/index.ts
CHANGED
|
@@ -154,6 +154,7 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
|
|
|
154
154
|
export * from './ApiPadelSeedGet200Response';
|
|
155
155
|
export * from './ApiPoolWalletActivePurposeGet200Response';
|
|
156
156
|
export * from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
|
|
157
|
+
export * from './ApiPoolWalletGeneratePostRequest';
|
|
157
158
|
export * from './ApiPoolWalletGet200Response';
|
|
158
159
|
export * from './ApiPoolWalletGetFilterParameter';
|
|
159
160
|
export * from './ApiPoolWalletIdPutRequest';
|