@drxsuperapp/sdk 1.1.388 → 1.1.389

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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/apis/PoolWalletManagementApi.ts +259 -0
  3. package/apis/SwapApi.ts +415 -0
  4. package/apis/index.ts +2 -0
  5. package/deploy.log +78 -9
  6. package/dist/apis/PoolWalletManagementApi.d.ts +74 -0
  7. package/dist/apis/PoolWalletManagementApi.js +175 -0
  8. package/dist/apis/SwapApi.d.ts +113 -0
  9. package/dist/apis/SwapApi.js +288 -0
  10. package/dist/apis/index.d.ts +2 -0
  11. package/dist/apis/index.js +2 -0
  12. package/dist/models/ApiPoolWalletActivePurposeGet200Response.d.ts +51 -0
  13. package/dist/models/ApiPoolWalletActivePurposeGet200Response.js +54 -0
  14. package/dist/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.d.ts +62 -0
  15. package/dist/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.js +61 -0
  16. package/dist/models/ApiPoolWalletGet200Response.d.ts +51 -0
  17. package/dist/models/ApiPoolWalletGet200Response.js +54 -0
  18. package/dist/models/ApiPoolWalletGetFilterParameter.d.ts +40 -0
  19. package/dist/models/ApiPoolWalletGetFilterParameter.js +45 -0
  20. package/dist/models/ApiPoolWalletIdPutRequest.d.ts +38 -0
  21. package/dist/models/ApiPoolWalletIdPutRequest.js +43 -0
  22. package/dist/models/ApiWeb3AdminSwapIdActionPutRequest.d.ts +46 -0
  23. package/dist/models/ApiWeb3AdminSwapIdActionPutRequest.js +52 -0
  24. package/dist/models/ApiWeb3SwapGet200Response.d.ts +51 -0
  25. package/dist/models/ApiWeb3SwapGet200Response.js +54 -0
  26. package/dist/models/ApiWeb3SwapGet200ResponseResponseObject.d.ts +57 -0
  27. package/dist/models/ApiWeb3SwapGet200ResponseResponseObject.js +60 -0
  28. package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.d.ts +87 -0
  29. package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.js +83 -0
  30. package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser.d.ts +50 -0
  31. package/dist/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser.js +55 -0
  32. package/dist/models/ApiWeb3SwapGetFilterParameter.d.ts +46 -0
  33. package/dist/models/ApiWeb3SwapGetFilterParameter.js +47 -0
  34. package/dist/models/ApiWeb3SwapLimitsGet200Response.d.ts +51 -0
  35. package/dist/models/ApiWeb3SwapLimitsGet200Response.js +54 -0
  36. package/dist/models/ApiWeb3SwapLimitsGet200ResponseResponseObject.d.ts +62 -0
  37. package/dist/models/ApiWeb3SwapLimitsGet200ResponseResponseObject.js +63 -0
  38. package/dist/models/ApiWeb3SwapPost200Response.d.ts +51 -0
  39. package/dist/models/ApiWeb3SwapPost200Response.js +54 -0
  40. package/dist/models/ApiWeb3SwapPost200ResponseResponseObject.d.ts +135 -0
  41. package/dist/models/ApiWeb3SwapPost200ResponseResponseObject.js +113 -0
  42. package/dist/models/ApiWeb3SwapPostRequest.d.ts +32 -0
  43. package/dist/models/ApiWeb3SwapPostRequest.js +43 -0
  44. package/dist/models/index.d.ts +16 -0
  45. package/dist/models/index.js +16 -0
  46. package/models/ApiPoolWalletActivePurposeGet200Response.ts +100 -0
  47. package/models/ApiPoolWalletActivePurposeGet200ResponseResponseObject.ts +110 -0
  48. package/models/ApiPoolWalletGet200Response.ts +100 -0
  49. package/models/ApiPoolWalletGetFilterParameter.ts +88 -0
  50. package/models/ApiPoolWalletIdPutRequest.ts +73 -0
  51. package/models/ApiWeb3AdminSwapIdActionPutRequest.ts +85 -0
  52. package/models/ApiWeb3SwapGet200Response.ts +100 -0
  53. package/models/ApiWeb3SwapGet200ResponseResponseObject.ts +110 -0
  54. package/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInner.ts +152 -0
  55. package/models/ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser.ts +93 -0
  56. package/models/ApiWeb3SwapGetFilterParameter.ts +96 -0
  57. package/models/ApiWeb3SwapLimitsGet200Response.ts +100 -0
  58. package/models/ApiWeb3SwapLimitsGet200ResponseResponseObject.ts +111 -0
  59. package/models/ApiWeb3SwapPost200Response.ts +100 -0
  60. package/models/ApiWeb3SwapPost200ResponseResponseObject.ts +223 -0
  61. package/models/ApiWeb3SwapPostRequest.ts +66 -0
  62. package/models/index.ts +16 -0
  63. package/package.json +1 -1
@@ -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 { ApiPoolWalletActivePurposeGet200ResponseResponseObject } from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
17
+ import {
18
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSON,
19
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON,
21
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiPoolWalletActivePurposeGet200Response
28
+ */
29
+ export interface ApiPoolWalletActivePurposeGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiPoolWalletActivePurposeGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiPoolWalletActivePurposeGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiPoolWalletActivePurposeGet200ResponseResponseObject}
45
+ * @memberof ApiPoolWalletActivePurposeGet200Response
46
+ */
47
+ responseObject?: ApiPoolWalletActivePurposeGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiPoolWalletActivePurposeGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiPoolWalletActivePurposeGet200Response interface.
58
+ */
59
+ export function instanceOfApiPoolWalletActivePurposeGet200Response(value: object): value is ApiPoolWalletActivePurposeGet200Response {
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 ApiPoolWalletActivePurposeGet200ResponseFromJSON(json: any): ApiPoolWalletActivePurposeGet200Response {
67
+ return ApiPoolWalletActivePurposeGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiPoolWalletActivePurposeGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletActivePurposeGet200Response {
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 : ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiPoolWalletActivePurposeGet200ResponseToJSON(json: any): ApiPoolWalletActivePurposeGet200Response {
84
+ return ApiPoolWalletActivePurposeGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiPoolWalletActivePurposeGet200ResponseToJSONTyped(value?: ApiPoolWalletActivePurposeGet200Response | 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': ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,110 @@
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 ApiPoolWalletActivePurposeGet200ResponseResponseObject
20
+ */
21
+ export interface ApiPoolWalletActivePurposeGet200ResponseResponseObject {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
32
+ */
33
+ address: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
38
+ */
39
+ purpose: string;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
44
+ */
45
+ isActive: boolean;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
50
+ */
51
+ createdAt: Date;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof ApiPoolWalletActivePurposeGet200ResponseResponseObject
56
+ */
57
+ updatedAt?: Date;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the ApiPoolWalletActivePurposeGet200ResponseResponseObject interface.
62
+ */
63
+ export function instanceOfApiPoolWalletActivePurposeGet200ResponseResponseObject(value: object): value is ApiPoolWalletActivePurposeGet200ResponseResponseObject {
64
+ if (!('id' in value) || value['id'] === undefined) return false;
65
+ if (!('address' in value) || value['address'] === undefined) return false;
66
+ if (!('purpose' in value) || value['purpose'] === undefined) return false;
67
+ if (!('isActive' in value) || value['isActive'] === undefined) return false;
68
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSON(json: any): ApiPoolWalletActivePurposeGet200ResponseResponseObject {
73
+ return ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletActivePurposeGet200ResponseResponseObject {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'id': json['id'],
83
+ 'address': json['address'],
84
+ 'purpose': json['purpose'],
85
+ 'isActive': json['isActive'],
86
+ 'createdAt': (new Date(json['createdAt'])),
87
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
88
+ };
89
+ }
90
+
91
+ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON(json: any): ApiPoolWalletActivePurposeGet200ResponseResponseObject {
92
+ return ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONTyped(json, false);
93
+ }
94
+
95
+ export function ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONTyped(value?: ApiPoolWalletActivePurposeGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'id': value['id'],
103
+ 'address': value['address'],
104
+ 'purpose': value['purpose'],
105
+ 'isActive': value['isActive'],
106
+ 'createdAt': ((value['createdAt']).toISOString()),
107
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
108
+ };
109
+ }
110
+
@@ -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 { ApiPoolWalletActivePurposeGet200ResponseResponseObject } from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
17
+ import {
18
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSON,
19
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON,
21
+ ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiPoolWalletGet200Response
28
+ */
29
+ export interface ApiPoolWalletGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiPoolWalletGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiPoolWalletGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {Array<ApiPoolWalletActivePurposeGet200ResponseResponseObject>}
45
+ * @memberof ApiPoolWalletGet200Response
46
+ */
47
+ responseObject?: Array<ApiPoolWalletActivePurposeGet200ResponseResponseObject>;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiPoolWalletGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiPoolWalletGet200Response interface.
58
+ */
59
+ export function instanceOfApiPoolWalletGet200Response(value: object): value is ApiPoolWalletGet200Response {
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 ApiPoolWalletGet200ResponseFromJSON(json: any): ApiPoolWalletGet200Response {
67
+ return ApiPoolWalletGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiPoolWalletGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletGet200Response {
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 : ((json['responseObject'] as Array<any>).map(ApiPoolWalletActivePurposeGet200ResponseResponseObjectFromJSON)),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiPoolWalletGet200ResponseToJSON(json: any): ApiPoolWalletGet200Response {
84
+ return ApiPoolWalletGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiPoolWalletGet200ResponseToJSONTyped(value?: ApiPoolWalletGet200Response | 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': value['responseObject'] == null ? undefined : ((value['responseObject'] as Array<any>).map(ApiPoolWalletActivePurposeGet200ResponseResponseObjectToJSON)),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,88 @@
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 { ApiPadelMatchesGetFilterParameterName } from './ApiPadelMatchesGetFilterParameterName';
17
+ import {
18
+ ApiPadelMatchesGetFilterParameterNameFromJSON,
19
+ ApiPadelMatchesGetFilterParameterNameFromJSONTyped,
20
+ ApiPadelMatchesGetFilterParameterNameToJSON,
21
+ ApiPadelMatchesGetFilterParameterNameToJSONTyped,
22
+ } from './ApiPadelMatchesGetFilterParameterName';
23
+ import type { ApiGarudakuGameTopupsGetFilterParameterIsPopular } from './ApiGarudakuGameTopupsGetFilterParameterIsPopular';
24
+ import {
25
+ ApiGarudakuGameTopupsGetFilterParameterIsPopularFromJSON,
26
+ ApiGarudakuGameTopupsGetFilterParameterIsPopularFromJSONTyped,
27
+ ApiGarudakuGameTopupsGetFilterParameterIsPopularToJSON,
28
+ ApiGarudakuGameTopupsGetFilterParameterIsPopularToJSONTyped,
29
+ } from './ApiGarudakuGameTopupsGetFilterParameterIsPopular';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ApiPoolWalletGetFilterParameter
35
+ */
36
+ export interface ApiPoolWalletGetFilterParameter {
37
+ /**
38
+ *
39
+ * @type {ApiGarudakuGameTopupsGetFilterParameterIsPopular}
40
+ * @memberof ApiPoolWalletGetFilterParameter
41
+ */
42
+ isActive?: ApiGarudakuGameTopupsGetFilterParameterIsPopular;
43
+ /**
44
+ *
45
+ * @type {ApiPadelMatchesGetFilterParameterName}
46
+ * @memberof ApiPoolWalletGetFilterParameter
47
+ */
48
+ purpose?: ApiPadelMatchesGetFilterParameterName;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the ApiPoolWalletGetFilterParameter interface.
53
+ */
54
+ export function instanceOfApiPoolWalletGetFilterParameter(value: object): value is ApiPoolWalletGetFilterParameter {
55
+ return true;
56
+ }
57
+
58
+ export function ApiPoolWalletGetFilterParameterFromJSON(json: any): ApiPoolWalletGetFilterParameter {
59
+ return ApiPoolWalletGetFilterParameterFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ApiPoolWalletGetFilterParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletGetFilterParameter {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'isActive': json['isActive'] == null ? undefined : ApiGarudakuGameTopupsGetFilterParameterIsPopularFromJSON(json['isActive']),
69
+ 'purpose': json['purpose'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['purpose']),
70
+ };
71
+ }
72
+
73
+ export function ApiPoolWalletGetFilterParameterToJSON(json: any): ApiPoolWalletGetFilterParameter {
74
+ return ApiPoolWalletGetFilterParameterToJSONTyped(json, false);
75
+ }
76
+
77
+ export function ApiPoolWalletGetFilterParameterToJSONTyped(value?: ApiPoolWalletGetFilterParameter | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'isActive': ApiGarudakuGameTopupsGetFilterParameterIsPopularToJSON(value['isActive']),
85
+ 'purpose': ApiPadelMatchesGetFilterParameterNameToJSON(value['purpose']),
86
+ };
87
+ }
88
+
@@ -0,0 +1,73 @@
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 ApiPoolWalletIdPutRequest
20
+ */
21
+ export interface ApiPoolWalletIdPutRequest {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ApiPoolWalletIdPutRequest
26
+ */
27
+ isActive?: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiPoolWalletIdPutRequest
32
+ */
33
+ purpose?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiPoolWalletIdPutRequest interface.
38
+ */
39
+ export function instanceOfApiPoolWalletIdPutRequest(value: object): value is ApiPoolWalletIdPutRequest {
40
+ return true;
41
+ }
42
+
43
+ export function ApiPoolWalletIdPutRequestFromJSON(json: any): ApiPoolWalletIdPutRequest {
44
+ return ApiPoolWalletIdPutRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ApiPoolWalletIdPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPoolWalletIdPutRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'isActive': json['isActive'] == null ? undefined : json['isActive'],
54
+ 'purpose': json['purpose'] == null ? undefined : json['purpose'],
55
+ };
56
+ }
57
+
58
+ export function ApiPoolWalletIdPutRequestToJSON(json: any): ApiPoolWalletIdPutRequest {
59
+ return ApiPoolWalletIdPutRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ApiPoolWalletIdPutRequestToJSONTyped(value?: ApiPoolWalletIdPutRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'isActive': value['isActive'],
70
+ 'purpose': value['purpose'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,85 @@
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 ApiWeb3AdminSwapIdActionPutRequest
20
+ */
21
+ export interface ApiWeb3AdminSwapIdActionPutRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiWeb3AdminSwapIdActionPutRequest
26
+ */
27
+ action: ApiWeb3AdminSwapIdActionPutRequestActionEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiWeb3AdminSwapIdActionPutRequest
32
+ */
33
+ remarks?: string | null;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ApiWeb3AdminSwapIdActionPutRequestActionEnum = {
41
+ Approved: 'APPROVED',
42
+ Rejected: 'REJECTED'
43
+ } as const;
44
+ export type ApiWeb3AdminSwapIdActionPutRequestActionEnum = typeof ApiWeb3AdminSwapIdActionPutRequestActionEnum[keyof typeof ApiWeb3AdminSwapIdActionPutRequestActionEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the ApiWeb3AdminSwapIdActionPutRequest interface.
49
+ */
50
+ export function instanceOfApiWeb3AdminSwapIdActionPutRequest(value: object): value is ApiWeb3AdminSwapIdActionPutRequest {
51
+ if (!('action' in value) || value['action'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function ApiWeb3AdminSwapIdActionPutRequestFromJSON(json: any): ApiWeb3AdminSwapIdActionPutRequest {
56
+ return ApiWeb3AdminSwapIdActionPutRequestFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function ApiWeb3AdminSwapIdActionPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3AdminSwapIdActionPutRequest {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'action': json['action'],
66
+ 'remarks': json['remarks'] == null ? undefined : json['remarks'],
67
+ };
68
+ }
69
+
70
+ export function ApiWeb3AdminSwapIdActionPutRequestToJSON(json: any): ApiWeb3AdminSwapIdActionPutRequest {
71
+ return ApiWeb3AdminSwapIdActionPutRequestToJSONTyped(json, false);
72
+ }
73
+
74
+ export function ApiWeb3AdminSwapIdActionPutRequestToJSONTyped(value?: ApiWeb3AdminSwapIdActionPutRequest | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'action': value['action'],
82
+ 'remarks': value['remarks'],
83
+ };
84
+ }
85
+
@@ -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 { ApiWeb3SwapGet200ResponseResponseObject } from './ApiWeb3SwapGet200ResponseResponseObject';
17
+ import {
18
+ ApiWeb3SwapGet200ResponseResponseObjectFromJSON,
19
+ ApiWeb3SwapGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiWeb3SwapGet200ResponseResponseObjectToJSON,
21
+ ApiWeb3SwapGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiWeb3SwapGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiWeb3SwapGet200Response
28
+ */
29
+ export interface ApiWeb3SwapGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiWeb3SwapGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiWeb3SwapGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiWeb3SwapGet200ResponseResponseObject}
45
+ * @memberof ApiWeb3SwapGet200Response
46
+ */
47
+ responseObject?: ApiWeb3SwapGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiWeb3SwapGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiWeb3SwapGet200Response interface.
58
+ */
59
+ export function instanceOfApiWeb3SwapGet200Response(value: object): value is ApiWeb3SwapGet200Response {
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 ApiWeb3SwapGet200ResponseFromJSON(json: any): ApiWeb3SwapGet200Response {
67
+ return ApiWeb3SwapGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiWeb3SwapGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3SwapGet200Response {
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 : ApiWeb3SwapGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiWeb3SwapGet200ResponseToJSON(json: any): ApiWeb3SwapGet200Response {
84
+ return ApiWeb3SwapGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiWeb3SwapGet200ResponseToJSONTyped(value?: ApiWeb3SwapGet200Response | 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': ApiWeb3SwapGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+