@drxsuperapp/sdk 1.1.420 → 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/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
@@ -741,6 +741,7 @@
741
741
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap/limits. Renamed to auto-generated operationId: apiWeb3SwapLimitsGet
742
742
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap. Renamed to auto-generated operationId: apiWeb3SwapGet
743
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
744
745
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/swap/{id}. Renamed to auto-generated operationId: apiWeb3SwapIdGet
745
746
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap. Renamed to auto-generated operationId: apiWeb3AdminSwapGet
746
747
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/swap/status. Renamed to auto-generated operationId: apiWeb3AdminSwapStatusGet
@@ -830,21 +831,20 @@
830
831
  # https://opencollective.com/openapi_generator/donate #
831
832
  ################################################################################
832
833
  ✅ SDK generated
833
- [master 592cbad] VPS: Generated API SDK
834
- 5 files changed, 133 insertions(+)
835
- create mode 100644 models/ApiPoolWalletGeneratePostRequest.ts
834
+ [master d9d8e3c] VPS: Generated API SDK
835
+ 4 files changed, 57 insertions(+), 3 deletions(-)
836
836
  To https://gitlab.com/drx-super/drx-sdk.git
837
- 43f0270..592cbad master -> master
837
+ 6e5b244..d9d8e3c master -> master
838
838
  ✅ Changes committed and pushed
839
- v1.1.420
839
+ v1.1.421
840
840
  To https://gitlab.com/drx-super/drx-sdk.git
841
- 592cbad..6e5b244 master -> master
841
+ d9d8e3c..08464e3 master -> master
842
842
  ✅ Version bumped
843
843
 
844
- > @drxsuperapp/sdk@1.1.420 prepublishOnly
844
+ > @drxsuperapp/sdk@1.1.421 prepublishOnly
845
845
  > npm run build
846
846
 
847
847
 
848
- > @drxsuperapp/sdk@1.1.420 build
848
+ > @drxsuperapp/sdk@1.1.421 build
849
849
  > tsc
850
850
 
@@ -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
@@ -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,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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.420",
3
+ "version": "1.1.421",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {