@drxsuperapp/sdk 1.1.388 → 1.1.390

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 +51 -4
  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,63 @@
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 ApiWeb3SwapLimitsGet200ResponseResponseObject interface.
16
+ */
17
+ export function instanceOfApiWeb3SwapLimitsGet200ResponseResponseObject(value) {
18
+ if (!('dailyLimitPoints' in value) || value['dailyLimitPoints'] === undefined)
19
+ return false;
20
+ if (!('minSwapAmount' in value) || value['minSwapAmount'] === undefined)
21
+ return false;
22
+ if (!('pointsToDrxRate' in value) || value['pointsToDrxRate'] === undefined)
23
+ return false;
24
+ if (!('availablePoints' in value) || value['availablePoints'] === undefined)
25
+ return false;
26
+ if (!('todayUsedPoints' in value) || value['todayUsedPoints'] === undefined)
27
+ return false;
28
+ if (!('remainingDailyLimit' in value) || value['remainingDailyLimit'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ApiWeb3SwapLimitsGet200ResponseResponseObjectFromJSON(json) {
33
+ return ApiWeb3SwapLimitsGet200ResponseResponseObjectFromJSONTyped(json, false);
34
+ }
35
+ export function ApiWeb3SwapLimitsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'dailyLimitPoints': json['dailyLimitPoints'],
41
+ 'minSwapAmount': json['minSwapAmount'],
42
+ 'pointsToDrxRate': json['pointsToDrxRate'],
43
+ 'availablePoints': json['availablePoints'],
44
+ 'todayUsedPoints': json['todayUsedPoints'],
45
+ 'remainingDailyLimit': json['remainingDailyLimit'],
46
+ };
47
+ }
48
+ export function ApiWeb3SwapLimitsGet200ResponseResponseObjectToJSON(json) {
49
+ return ApiWeb3SwapLimitsGet200ResponseResponseObjectToJSONTyped(json, false);
50
+ }
51
+ export function ApiWeb3SwapLimitsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'dailyLimitPoints': value['dailyLimitPoints'],
57
+ 'minSwapAmount': value['minSwapAmount'],
58
+ 'pointsToDrxRate': value['pointsToDrxRate'],
59
+ 'availablePoints': value['availablePoints'],
60
+ 'todayUsedPoints': value['todayUsedPoints'],
61
+ 'remainingDailyLimit': value['remainingDailyLimit'],
62
+ };
63
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiWeb3SwapPost200ResponseResponseObject } from './ApiWeb3SwapPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiWeb3SwapPost200Response
17
+ */
18
+ export interface ApiWeb3SwapPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiWeb3SwapPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiWeb3SwapPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiWeb3SwapPost200ResponseResponseObject}
34
+ * @memberof ApiWeb3SwapPost200Response
35
+ */
36
+ responseObject?: ApiWeb3SwapPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiWeb3SwapPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiWeb3SwapPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiWeb3SwapPost200Response(value: object): value is ApiWeb3SwapPost200Response;
48
+ export declare function ApiWeb3SwapPost200ResponseFromJSON(json: any): ApiWeb3SwapPost200Response;
49
+ export declare function ApiWeb3SwapPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3SwapPost200Response;
50
+ export declare function ApiWeb3SwapPost200ResponseToJSON(json: any): ApiWeb3SwapPost200Response;
51
+ export declare function ApiWeb3SwapPost200ResponseToJSONTyped(value?: ApiWeb3SwapPost200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApiWeb3SwapPost200ResponseResponseObjectFromJSON, ApiWeb3SwapPost200ResponseResponseObjectToJSON, } from './ApiWeb3SwapPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiWeb3SwapPost200Response interface.
17
+ */
18
+ export function instanceOfApiWeb3SwapPost200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiWeb3SwapPost200ResponseFromJSON(json) {
28
+ return ApiWeb3SwapPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiWeb3SwapPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiWeb3SwapPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiWeb3SwapPost200ResponseToJSON(json) {
42
+ return ApiWeb3SwapPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiWeb3SwapPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiWeb3SwapPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,135 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser } from './ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiWeb3SwapPost200ResponseResponseObject
17
+ */
18
+ export interface ApiWeb3SwapPost200ResponseResponseObject {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
29
+ */
30
+ userId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
35
+ */
36
+ recipientWallet: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
41
+ */
42
+ pointAmount: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
47
+ */
48
+ drxAmount: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
53
+ */
54
+ conversionRate: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
59
+ */
60
+ status: ApiWeb3SwapPost200ResponseResponseObjectStatusEnum;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
65
+ */
66
+ txHash: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
71
+ */
72
+ adminRemarks: string | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
77
+ */
78
+ processedBy: string | null;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
83
+ */
84
+ processedAt: Date | null;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
89
+ */
90
+ completedAt: Date | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
95
+ */
96
+ failureReason: string | null;
97
+ /**
98
+ *
99
+ * @type {Date}
100
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
101
+ */
102
+ createdAt: Date;
103
+ /**
104
+ *
105
+ * @type {Date}
106
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
107
+ */
108
+ updatedAt: Date;
109
+ /**
110
+ *
111
+ * @type {ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser}
112
+ * @memberof ApiWeb3SwapPost200ResponseResponseObject
113
+ */
114
+ user?: ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser;
115
+ }
116
+ /**
117
+ * @export
118
+ */
119
+ export declare const ApiWeb3SwapPost200ResponseResponseObjectStatusEnum: {
120
+ readonly Pending: "PENDING";
121
+ readonly Approved: "APPROVED";
122
+ readonly Processing: "PROCESSING";
123
+ readonly Completed: "COMPLETED";
124
+ readonly Rejected: "REJECTED";
125
+ readonly Failed: "FAILED";
126
+ };
127
+ export type ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum[keyof typeof ApiWeb3SwapPost200ResponseResponseObjectStatusEnum];
128
+ /**
129
+ * Check if a given object implements the ApiWeb3SwapPost200ResponseResponseObject interface.
130
+ */
131
+ export declare function instanceOfApiWeb3SwapPost200ResponseResponseObject(value: object): value is ApiWeb3SwapPost200ResponseResponseObject;
132
+ export declare function ApiWeb3SwapPost200ResponseResponseObjectFromJSON(json: any): ApiWeb3SwapPost200ResponseResponseObject;
133
+ export declare function ApiWeb3SwapPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3SwapPost200ResponseResponseObject;
134
+ export declare function ApiWeb3SwapPost200ResponseResponseObjectToJSON(json: any): ApiWeb3SwapPost200ResponseResponseObject;
135
+ export declare function ApiWeb3SwapPost200ResponseResponseObjectToJSONTyped(value?: ApiWeb3SwapPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,113 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUserFromJSON, ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUserToJSON, } from './ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ApiWeb3SwapPost200ResponseResponseObjectStatusEnum = {
19
+ Pending: 'PENDING',
20
+ Approved: 'APPROVED',
21
+ Processing: 'PROCESSING',
22
+ Completed: 'COMPLETED',
23
+ Rejected: 'REJECTED',
24
+ Failed: 'FAILED'
25
+ };
26
+ /**
27
+ * Check if a given object implements the ApiWeb3SwapPost200ResponseResponseObject interface.
28
+ */
29
+ export function instanceOfApiWeb3SwapPost200ResponseResponseObject(value) {
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('userId' in value) || value['userId'] === undefined)
33
+ return false;
34
+ if (!('recipientWallet' in value) || value['recipientWallet'] === undefined)
35
+ return false;
36
+ if (!('pointAmount' in value) || value['pointAmount'] === undefined)
37
+ return false;
38
+ if (!('drxAmount' in value) || value['drxAmount'] === undefined)
39
+ return false;
40
+ if (!('conversionRate' in value) || value['conversionRate'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('txHash' in value) || value['txHash'] === undefined)
45
+ return false;
46
+ if (!('adminRemarks' in value) || value['adminRemarks'] === undefined)
47
+ return false;
48
+ if (!('processedBy' in value) || value['processedBy'] === undefined)
49
+ return false;
50
+ if (!('processedAt' in value) || value['processedAt'] === undefined)
51
+ return false;
52
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
53
+ return false;
54
+ if (!('failureReason' in value) || value['failureReason'] === undefined)
55
+ return false;
56
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
57
+ return false;
58
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
59
+ return false;
60
+ return true;
61
+ }
62
+ export function ApiWeb3SwapPost200ResponseResponseObjectFromJSON(json) {
63
+ return ApiWeb3SwapPost200ResponseResponseObjectFromJSONTyped(json, false);
64
+ }
65
+ export function ApiWeb3SwapPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+ 'id': json['id'],
71
+ 'userId': json['userId'],
72
+ 'recipientWallet': json['recipientWallet'],
73
+ 'pointAmount': json['pointAmount'],
74
+ 'drxAmount': json['drxAmount'],
75
+ 'conversionRate': json['conversionRate'],
76
+ 'status': json['status'],
77
+ 'txHash': json['txHash'],
78
+ 'adminRemarks': json['adminRemarks'],
79
+ 'processedBy': json['processedBy'],
80
+ 'processedAt': (json['processedAt'] == null ? null : new Date(json['processedAt'])),
81
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
82
+ 'failureReason': json['failureReason'],
83
+ 'createdAt': (new Date(json['createdAt'])),
84
+ 'updatedAt': (new Date(json['updatedAt'])),
85
+ 'user': json['user'] == null ? undefined : ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUserFromJSON(json['user']),
86
+ };
87
+ }
88
+ export function ApiWeb3SwapPost200ResponseResponseObjectToJSON(json) {
89
+ return ApiWeb3SwapPost200ResponseResponseObjectToJSONTyped(json, false);
90
+ }
91
+ export function ApiWeb3SwapPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'id': value['id'],
97
+ 'userId': value['userId'],
98
+ 'recipientWallet': value['recipientWallet'],
99
+ 'pointAmount': value['pointAmount'],
100
+ 'drxAmount': value['drxAmount'],
101
+ 'conversionRate': value['conversionRate'],
102
+ 'status': value['status'],
103
+ 'txHash': value['txHash'],
104
+ 'adminRemarks': value['adminRemarks'],
105
+ 'processedBy': value['processedBy'],
106
+ 'processedAt': (value['processedAt'] == null ? null : value['processedAt'].toISOString()),
107
+ 'completedAt': (value['completedAt'] == null ? null : value['completedAt'].toISOString()),
108
+ 'failureReason': value['failureReason'],
109
+ 'createdAt': ((value['createdAt']).toISOString()),
110
+ 'updatedAt': ((value['updatedAt']).toISOString()),
111
+ 'user': ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUserToJSON(value['user']),
112
+ };
113
+ }
@@ -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 ApiWeb3SwapPostRequest
16
+ */
17
+ export interface ApiWeb3SwapPostRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ApiWeb3SwapPostRequest
22
+ */
23
+ pointAmount: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiWeb3SwapPostRequest interface.
27
+ */
28
+ export declare function instanceOfApiWeb3SwapPostRequest(value: object): value is ApiWeb3SwapPostRequest;
29
+ export declare function ApiWeb3SwapPostRequestFromJSON(json: any): ApiWeb3SwapPostRequest;
30
+ export declare function ApiWeb3SwapPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3SwapPostRequest;
31
+ export declare function ApiWeb3SwapPostRequestToJSON(json: any): ApiWeb3SwapPostRequest;
32
+ export declare function ApiWeb3SwapPostRequestToJSONTyped(value?: ApiWeb3SwapPostRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 ApiWeb3SwapPostRequest interface.
16
+ */
17
+ export function instanceOfApiWeb3SwapPostRequest(value) {
18
+ if (!('pointAmount' in value) || value['pointAmount'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiWeb3SwapPostRequestFromJSON(json) {
23
+ return ApiWeb3SwapPostRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ApiWeb3SwapPostRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'pointAmount': json['pointAmount'],
31
+ };
32
+ }
33
+ export function ApiWeb3SwapPostRequestToJSON(json) {
34
+ return ApiWeb3SwapPostRequestToJSONTyped(json, false);
35
+ }
36
+ export function ApiWeb3SwapPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'pointAmount': value['pointAmount'],
42
+ };
43
+ }
@@ -146,6 +146,11 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGames
146
146
  export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStats';
147
147
  export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
148
148
  export * from './ApiPadelSeedGet200Response';
149
+ export * from './ApiPoolWalletActivePurposeGet200Response';
150
+ export * from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
151
+ export * from './ApiPoolWalletGet200Response';
152
+ export * from './ApiPoolWalletGetFilterParameter';
153
+ export * from './ApiPoolWalletIdPutRequest';
149
154
  export * from './ApiTennisEventTypesGet200Response';
150
155
  export * from './ApiTennisEventTypesGet200ResponseResponseObjectInner';
151
156
  export * from './ApiTennisMatchesGet200Response';
@@ -248,6 +253,7 @@ export * from './ApiWalletStatusGet200Response';
248
253
  export * from './ApiWalletStatusGet200ResponseResponseObject';
249
254
  export * from './ApiWalletUnbindPost200Response';
250
255
  export * from './ApiWalletUnbindPost200ResponseResponseObject';
256
+ export * from './ApiWeb3AdminSwapIdActionPutRequest';
251
257
  export * from './ApiWeb3PrepareRedeemPost200Response';
252
258
  export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
253
259
  export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
@@ -277,6 +283,16 @@ export * from './ApiWeb3RewardItemIdDelete200Response';
277
283
  export * from './ApiWeb3RewardPut200Response';
278
284
  export * from './ApiWeb3RewardPutRequest';
279
285
  export * from './ApiWeb3RewardPutRequestRedeemableItemsInner';
286
+ export * from './ApiWeb3SwapGet200Response';
287
+ export * from './ApiWeb3SwapGet200ResponseResponseObject';
288
+ export * from './ApiWeb3SwapGet200ResponseResponseObjectItemsInner';
289
+ export * from './ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser';
290
+ export * from './ApiWeb3SwapGetFilterParameter';
291
+ export * from './ApiWeb3SwapLimitsGet200Response';
292
+ export * from './ApiWeb3SwapLimitsGet200ResponseResponseObject';
293
+ export * from './ApiWeb3SwapPost200Response';
294
+ export * from './ApiWeb3SwapPost200ResponseResponseObject';
295
+ export * from './ApiWeb3SwapPostRequest';
280
296
  export * from './ApiYoutubeDrxContentGet200Response';
281
297
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
282
298
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
@@ -148,6 +148,11 @@ export * from './ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGames
148
148
  export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStats';
149
149
  export * from './ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections';
150
150
  export * from './ApiPadelSeedGet200Response';
151
+ export * from './ApiPoolWalletActivePurposeGet200Response';
152
+ export * from './ApiPoolWalletActivePurposeGet200ResponseResponseObject';
153
+ export * from './ApiPoolWalletGet200Response';
154
+ export * from './ApiPoolWalletGetFilterParameter';
155
+ export * from './ApiPoolWalletIdPutRequest';
151
156
  export * from './ApiTennisEventTypesGet200Response';
152
157
  export * from './ApiTennisEventTypesGet200ResponseResponseObjectInner';
153
158
  export * from './ApiTennisMatchesGet200Response';
@@ -250,6 +255,7 @@ export * from './ApiWalletStatusGet200Response';
250
255
  export * from './ApiWalletStatusGet200ResponseResponseObject';
251
256
  export * from './ApiWalletUnbindPost200Response';
252
257
  export * from './ApiWalletUnbindPost200ResponseResponseObject';
258
+ export * from './ApiWeb3AdminSwapIdActionPutRequest';
253
259
  export * from './ApiWeb3PrepareRedeemPost200Response';
254
260
  export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
255
261
  export * from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
@@ -279,6 +285,16 @@ export * from './ApiWeb3RewardItemIdDelete200Response';
279
285
  export * from './ApiWeb3RewardPut200Response';
280
286
  export * from './ApiWeb3RewardPutRequest';
281
287
  export * from './ApiWeb3RewardPutRequestRedeemableItemsInner';
288
+ export * from './ApiWeb3SwapGet200Response';
289
+ export * from './ApiWeb3SwapGet200ResponseResponseObject';
290
+ export * from './ApiWeb3SwapGet200ResponseResponseObjectItemsInner';
291
+ export * from './ApiWeb3SwapGet200ResponseResponseObjectItemsInnerUser';
292
+ export * from './ApiWeb3SwapGetFilterParameter';
293
+ export * from './ApiWeb3SwapLimitsGet200Response';
294
+ export * from './ApiWeb3SwapLimitsGet200ResponseResponseObject';
295
+ export * from './ApiWeb3SwapPost200Response';
296
+ export * from './ApiWeb3SwapPost200ResponseResponseObject';
297
+ export * from './ApiWeb3SwapPostRequest';
282
298
  export * from './ApiYoutubeDrxContentGet200Response';
283
299
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
284
300
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
@@ -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
+