@drxsuperapp/sdk 1.1.316 → 1.1.342
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 +36 -12
- package/apis/{AppConfigApi.ts → AppConfigurationApi.ts} +1 -1
- package/apis/{EsportApi.ts → EsportsManagementApi.ts} +1 -1
- package/apis/{GarudakuApi.ts → GarudakuIntegrationApi.ts} +1 -1
- package/apis/{MMAApi.ts → MMASportsApi.ts} +1 -1
- package/apis/{NewsApi.ts → NewsManagementApi.ts} +1 -1
- package/apis/{NotificationApi.ts → NotificationManagementApi.ts} +1 -1
- package/apis/{PadelApi.ts → PadelSportsApi.ts} +1 -1
- package/apis/PublicRewardApi.ts +131 -0
- package/apis/RedemptionApi.ts +129 -0
- package/apis/RewardManagementApi.ts +408 -0
- package/apis/{TennisApi.ts → TennisSportsApi.ts} +1 -1
- package/apis/{TournamentApi.ts → TournamentManagementApi.ts} +1 -1
- package/apis/{UserApi.ts → UserManagementApi.ts} +1 -1
- package/apis/{WalletApi.ts → WalletManagementApi.ts} +42 -1
- package/apis/{YoutubeApi.ts → YouTubeIntegrationApi.ts} +1 -1
- package/apis/index.ts +15 -12
- package/deploy.log +371 -21
- package/dist/apis/{AppConfigApi.d.ts → AppConfigurationApi.d.ts} +1 -1
- package/dist/apis/{AppConfigApi.js → AppConfigurationApi.js} +1 -1
- package/dist/apis/{EsportApi.d.ts → EsportsManagementApi.d.ts} +1 -1
- package/dist/apis/{EsportApi.js → EsportsManagementApi.js} +1 -1
- package/dist/apis/{GarudakuApi.d.ts → GarudakuIntegrationApi.d.ts} +1 -1
- package/dist/apis/{GarudakuApi.js → GarudakuIntegrationApi.js} +1 -1
- package/dist/apis/{MMAApi.d.ts → MMASportsApi.d.ts} +1 -1
- package/dist/apis/{MMAApi.js → MMASportsApi.js} +1 -1
- package/dist/apis/{NewsApi.d.ts → NewsManagementApi.d.ts} +1 -1
- package/dist/apis/{NewsApi.js → NewsManagementApi.js} +1 -1
- package/dist/apis/{NotificationApi.d.ts → NotificationManagementApi.d.ts} +1 -1
- package/dist/apis/{NotificationApi.js → NotificationManagementApi.js} +1 -1
- package/dist/apis/{PadelApi.d.ts → PadelSportsApi.d.ts} +1 -1
- package/dist/apis/{PadelApi.js → PadelSportsApi.js} +1 -1
- package/dist/apis/PublicRewardApi.d.ts +40 -0
- package/dist/apis/PublicRewardApi.js +88 -0
- package/dist/apis/RedemptionApi.d.ts +40 -0
- package/dist/apis/RedemptionApi.js +86 -0
- package/dist/apis/RewardManagementApi.d.ts +100 -0
- package/dist/apis/RewardManagementApi.js +285 -0
- package/dist/apis/{TennisApi.d.ts → TennisSportsApi.d.ts} +1 -1
- package/dist/apis/{TennisApi.js → TennisSportsApi.js} +1 -1
- package/dist/apis/{TournamentApi.d.ts → TournamentManagementApi.d.ts} +1 -1
- package/dist/apis/{TournamentApi.js → TournamentManagementApi.js} +1 -1
- package/dist/apis/{UserApi.d.ts → UserManagementApi.d.ts} +1 -1
- package/dist/apis/{UserApi.js → UserManagementApi.js} +1 -1
- package/dist/apis/{WalletApi.d.ts → WalletManagementApi.d.ts} +10 -2
- package/dist/apis/{WalletApi.js → WalletManagementApi.js} +33 -2
- package/dist/apis/{YoutubeApi.d.ts → YouTubeIntegrationApi.d.ts} +1 -1
- package/dist/apis/{YoutubeApi.js → YouTubeIntegrationApi.js} +1 -1
- package/dist/apis/index.d.ts +15 -12
- package/dist/apis/index.js +15 -12
- package/dist/models/ApiWalletStatusGet200Response.d.ts +51 -0
- package/dist/models/ApiWalletStatusGet200Response.js +54 -0
- package/dist/models/ApiWalletStatusGet200ResponseResponseObject.d.ts +74 -0
- package/dist/models/ApiWalletStatusGet200ResponseResponseObject.js +57 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200Response.d.ts +51 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200Response.js +54 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.d.ts +52 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.js +57 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem.d.ts +106 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem.js +87 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData.d.ts +50 -0
- package/dist/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData.js +53 -0
- package/dist/models/ApiWeb3PrepareRedeemPostRequest.d.ts +38 -0
- package/dist/models/ApiWeb3PrepareRedeemPostRequest.js +47 -0
- package/dist/models/ApiWeb3RedeemPost200Response.d.ts +51 -0
- package/dist/models/ApiWeb3RedeemPost200Response.js +54 -0
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObject.d.ts +45 -0
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObject.js +50 -0
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObjectData.d.ts +69 -0
- package/dist/models/ApiWeb3RedeemPost200ResponseResponseObjectData.js +68 -0
- package/dist/models/ApiWeb3RedeemPostRequest.d.ts +38 -0
- package/dist/models/ApiWeb3RedeemPostRequest.js +47 -0
- package/dist/models/ApiWeb3RewardCategoriesGet200Response.d.ts +51 -0
- package/dist/models/ApiWeb3RewardCategoriesGet200Response.js +54 -0
- package/dist/models/ApiWeb3RewardCategoriesGet200ResponseResponseObject.d.ts +42 -0
- package/dist/models/ApiWeb3RewardCategoriesGet200ResponseResponseObject.js +52 -0
- package/dist/models/ApiWeb3RewardGet200Response.d.ts +51 -0
- package/dist/models/ApiWeb3RewardGet200Response.js +54 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInner.d.ts +105 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInner.js +91 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInner.d.ts +106 -0
- package/dist/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInner.js +87 -0
- package/dist/models/ApiWeb3RewardItemIdDelete200Response.d.ts +51 -0
- package/dist/models/ApiWeb3RewardItemIdDelete200Response.js +54 -0
- package/dist/models/ApiWeb3RewardPut200Response.d.ts +51 -0
- package/dist/models/ApiWeb3RewardPut200Response.js +54 -0
- package/dist/models/ApiWeb3RewardPutRequest.d.ts +87 -0
- package/dist/models/ApiWeb3RewardPutRequest.js +75 -0
- package/dist/models/ApiWeb3RewardPutRequestRedeemableItemsInner.d.ts +82 -0
- package/dist/models/ApiWeb3RewardPutRequestRedeemableItemsInner.js +67 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/models/ApiWalletStatusGet200Response.ts +100 -0
- package/models/ApiWalletStatusGet200ResponseResponseObject.ts +122 -0
- package/models/ApiWeb3PrepareRedeemPost200Response.ts +100 -0
- package/models/ApiWeb3PrepareRedeemPost200ResponseResponseObject.ts +108 -0
- package/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem.ts +172 -0
- package/models/ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData.ts +92 -0
- package/models/ApiWeb3PrepareRedeemPostRequest.ts +75 -0
- package/models/ApiWeb3RedeemPost200Response.ts +100 -0
- package/models/ApiWeb3RedeemPost200ResponseResponseObject.ts +91 -0
- package/models/ApiWeb3RedeemPost200ResponseResponseObjectData.ts +128 -0
- package/models/ApiWeb3RedeemPostRequest.ts +75 -0
- package/models/ApiWeb3RewardCategoriesGet200Response.ts +100 -0
- package/models/ApiWeb3RewardCategoriesGet200ResponseResponseObject.ts +79 -0
- package/models/ApiWeb3RewardGet200Response.ts +100 -0
- package/models/ApiWeb3RewardGet200ResponseResponseObject.ts +110 -0
- package/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInner.ts +176 -0
- package/models/ApiWeb3RewardGet200ResponseResponseObjectItemsInnerRedeemableItemsInner.ts +172 -0
- package/models/ApiWeb3RewardItemIdDelete200Response.ts +100 -0
- package/models/ApiWeb3RewardPut200Response.ts +100 -0
- package/models/ApiWeb3RewardPutRequest.ts +147 -0
- package/models/ApiWeb3RewardPutRequestRedeemableItemsInner.ts +134 -0
- package/models/index.ts +21 -0
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiWalletBindPost200Response, ApiWalletBindPostRequest, ApiWalletConversionRateGet200Response, ApiWalletUnbindPost200Response } from '../models/index';
|
|
13
|
+
import type { ApiWalletBindPost200Response, ApiWalletBindPostRequest, ApiWalletConversionRateGet200Response, ApiWalletStatusGet200Response, ApiWalletUnbindPost200Response } from '../models/index';
|
|
14
14
|
export interface ApiWalletBindPostOperationRequest {
|
|
15
15
|
apiWalletBindPostRequest?: ApiWalletBindPostRequest;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export declare class
|
|
20
|
+
export declare class WalletManagementApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
22
|
* Bind Wallet
|
|
23
23
|
*/
|
|
@@ -34,6 +34,14 @@ export declare class WalletApi extends runtime.BaseAPI {
|
|
|
34
34
|
* Get Conversion Rate
|
|
35
35
|
*/
|
|
36
36
|
apiWalletConversionRateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletConversionRateGet200Response>;
|
|
37
|
+
/**
|
|
38
|
+
* Get Wallet Status
|
|
39
|
+
*/
|
|
40
|
+
apiWalletStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWalletStatusGet200Response>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get Wallet Status
|
|
43
|
+
*/
|
|
44
|
+
apiWalletStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWalletStatusGet200Response>;
|
|
37
45
|
/**
|
|
38
46
|
* Unbind Wallet
|
|
39
47
|
*/
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiWalletBindPost200ResponseFromJSON, ApiWalletBindPostRequestToJSON, ApiWalletConversionRateGet200ResponseFromJSON, ApiWalletUnbindPost200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiWalletBindPost200ResponseFromJSON, ApiWalletBindPostRequestToJSON, ApiWalletConversionRateGet200ResponseFromJSON, ApiWalletStatusGet200ResponseFromJSON, ApiWalletUnbindPost200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class WalletManagementApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
* Bind Wallet
|
|
22
22
|
*/
|
|
@@ -81,6 +81,37 @@ export class WalletApi extends runtime.BaseAPI {
|
|
|
81
81
|
const response = await this.apiWalletConversionRateGetRaw(initOverrides);
|
|
82
82
|
return await response.value();
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Get Wallet Status
|
|
86
|
+
*/
|
|
87
|
+
async apiWalletStatusGetRaw(initOverrides) {
|
|
88
|
+
const queryParameters = {};
|
|
89
|
+
const headerParameters = {};
|
|
90
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
91
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
92
|
+
}
|
|
93
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
94
|
+
const token = this.configuration.accessToken;
|
|
95
|
+
const tokenString = await token("BearerAuth", []);
|
|
96
|
+
if (tokenString) {
|
|
97
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/api/wallet/status`,
|
|
102
|
+
method: 'GET',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWalletStatusGet200ResponseFromJSON(jsonValue));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get Wallet Status
|
|
110
|
+
*/
|
|
111
|
+
async apiWalletStatusGet(initOverrides) {
|
|
112
|
+
const response = await this.apiWalletStatusGetRaw(initOverrides);
|
|
113
|
+
return await response.value();
|
|
114
|
+
}
|
|
84
115
|
/**
|
|
85
116
|
* Unbind Wallet
|
|
86
117
|
*/
|
|
@@ -17,7 +17,7 @@ export interface ApiYoutubePrivateStreamPostRequest {
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export declare class
|
|
20
|
+
export declare class YouTubeIntegrationApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
22
|
* Get current live stream and 3 previous long-form videos from DRX Sportnet YouTube channel
|
|
23
23
|
* Get DRX Sportnet Content
|
|
@@ -16,7 +16,7 @@ import { ApiYoutubeDrxContentGet200ResponseFromJSON, ApiYoutubePrivateStreamDele
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class YouTubeIntegrationApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
* Get current live stream and 3 previous long-form videos from DRX Sportnet YouTube channel
|
|
22
22
|
* Get DRX Sportnet Content
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './AppConfigurationApi';
|
|
2
2
|
export * from './AuthenticationApi';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
3
|
+
export * from './EsportsManagementApi';
|
|
4
|
+
export * from './GarudakuIntegrationApi';
|
|
5
5
|
export * from './HealthCheckApi';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
6
|
+
export * from './MMASportsApi';
|
|
7
|
+
export * from './NewsManagementApi';
|
|
8
|
+
export * from './NotificationManagementApi';
|
|
9
|
+
export * from './PadelSportsApi';
|
|
10
|
+
export * from './PublicRewardApi';
|
|
11
|
+
export * from './RedemptionApi';
|
|
12
|
+
export * from './RewardManagementApi';
|
|
13
|
+
export * from './TennisSportsApi';
|
|
14
|
+
export * from './TournamentManagementApi';
|
|
13
15
|
export * from './UserAffiliateApi';
|
|
16
|
+
export * from './UserManagementApi';
|
|
14
17
|
export * from './UserNotificationsApi';
|
|
15
18
|
export * from './UserPointsApi';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
19
|
+
export * from './WalletManagementApi';
|
|
20
|
+
export * from './YouTubeIntegrationApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './AppConfigurationApi';
|
|
4
4
|
export * from './AuthenticationApi';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
5
|
+
export * from './EsportsManagementApi';
|
|
6
|
+
export * from './GarudakuIntegrationApi';
|
|
7
7
|
export * from './HealthCheckApi';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
8
|
+
export * from './MMASportsApi';
|
|
9
|
+
export * from './NewsManagementApi';
|
|
10
|
+
export * from './NotificationManagementApi';
|
|
11
|
+
export * from './PadelSportsApi';
|
|
12
|
+
export * from './PublicRewardApi';
|
|
13
|
+
export * from './RedemptionApi';
|
|
14
|
+
export * from './RewardManagementApi';
|
|
15
|
+
export * from './TennisSportsApi';
|
|
16
|
+
export * from './TournamentManagementApi';
|
|
15
17
|
export * from './UserAffiliateApi';
|
|
18
|
+
export * from './UserManagementApi';
|
|
16
19
|
export * from './UserNotificationsApi';
|
|
17
20
|
export * from './UserPointsApi';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
21
|
+
export * from './WalletManagementApi';
|
|
22
|
+
export * from './YouTubeIntegrationApi';
|
|
@@ -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 { ApiWalletStatusGet200ResponseResponseObject } from './ApiWalletStatusGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiWalletStatusGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiWalletStatusGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiWalletStatusGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiWalletStatusGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiWalletStatusGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiWalletStatusGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiWalletStatusGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiWalletStatusGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiWalletStatusGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiWalletStatusGet200Response(value: object): value is ApiWalletStatusGet200Response;
|
|
48
|
+
export declare function ApiWalletStatusGet200ResponseFromJSON(json: any): ApiWalletStatusGet200Response;
|
|
49
|
+
export declare function ApiWalletStatusGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletStatusGet200Response;
|
|
50
|
+
export declare function ApiWalletStatusGet200ResponseToJSON(json: any): ApiWalletStatusGet200Response;
|
|
51
|
+
export declare function ApiWalletStatusGet200ResponseToJSONTyped(value?: ApiWalletStatusGet200Response | 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 { ApiWalletStatusGet200ResponseResponseObjectFromJSON, ApiWalletStatusGet200ResponseResponseObjectToJSON, } from './ApiWalletStatusGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiWalletStatusGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiWalletStatusGet200Response(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 ApiWalletStatusGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiWalletStatusGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiWalletStatusGet200ResponseFromJSONTyped(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 : ApiWalletStatusGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiWalletStatusGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiWalletStatusGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiWalletStatusGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiWalletStatusGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 ApiWalletStatusGet200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiWalletStatusGet200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
binded: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
wallet_address?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
id?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
user_id?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
network?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
is_active?: boolean | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
binded_at?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ApiWalletStatusGet200ResponseResponseObject
|
|
64
|
+
*/
|
|
65
|
+
unbinded_at?: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ApiWalletStatusGet200ResponseResponseObject interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfApiWalletStatusGet200ResponseResponseObject(value: object): value is ApiWalletStatusGet200ResponseResponseObject;
|
|
71
|
+
export declare function ApiWalletStatusGet200ResponseResponseObjectFromJSON(json: any): ApiWalletStatusGet200ResponseResponseObject;
|
|
72
|
+
export declare function ApiWalletStatusGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWalletStatusGet200ResponseResponseObject;
|
|
73
|
+
export declare function ApiWalletStatusGet200ResponseResponseObjectToJSON(json: any): ApiWalletStatusGet200ResponseResponseObject;
|
|
74
|
+
export declare function ApiWalletStatusGet200ResponseResponseObjectToJSONTyped(value?: ApiWalletStatusGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 ApiWalletStatusGet200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiWalletStatusGet200ResponseResponseObject(value) {
|
|
18
|
+
if (!('binded' in value) || value['binded'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiWalletStatusGet200ResponseResponseObjectFromJSON(json) {
|
|
23
|
+
return ApiWalletStatusGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiWalletStatusGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'binded': json['binded'],
|
|
31
|
+
'wallet_address': json['wallet_address'] == null ? undefined : json['wallet_address'],
|
|
32
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
33
|
+
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
34
|
+
'network': json['network'] == null ? undefined : json['network'],
|
|
35
|
+
'is_active': json['is_active'] == null ? undefined : json['is_active'],
|
|
36
|
+
'binded_at': json['binded_at'] == null ? undefined : json['binded_at'],
|
|
37
|
+
'unbinded_at': json['unbinded_at'] == null ? undefined : json['unbinded_at'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function ApiWalletStatusGet200ResponseResponseObjectToJSON(json) {
|
|
41
|
+
return ApiWalletStatusGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ApiWalletStatusGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'binded': value['binded'],
|
|
49
|
+
'wallet_address': value['wallet_address'],
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'user_id': value['user_id'],
|
|
52
|
+
'network': value['network'],
|
|
53
|
+
'is_active': value['is_active'],
|
|
54
|
+
'binded_at': value['binded_at'],
|
|
55
|
+
'unbinded_at': value['unbinded_at'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { ApiWeb3PrepareRedeemPost200ResponseResponseObject } from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiWeb3PrepareRedeemPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiWeb3PrepareRedeemPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiWeb3PrepareRedeemPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiWeb3PrepareRedeemPost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiWeb3PrepareRedeemPost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiWeb3PrepareRedeemPost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiWeb3PrepareRedeemPost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiWeb3PrepareRedeemPost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiWeb3PrepareRedeemPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiWeb3PrepareRedeemPost200Response(value: object): value is ApiWeb3PrepareRedeemPost200Response;
|
|
48
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseFromJSON(json: any): ApiWeb3PrepareRedeemPost200Response;
|
|
49
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3PrepareRedeemPost200Response;
|
|
50
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseToJSON(json: any): ApiWeb3PrepareRedeemPost200Response;
|
|
51
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseToJSONTyped(value?: ApiWeb3PrepareRedeemPost200Response | 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 { ApiWeb3PrepareRedeemPost200ResponseResponseObjectFromJSON, ApiWeb3PrepareRedeemPost200ResponseResponseObjectToJSON, } from './ApiWeb3PrepareRedeemPost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiWeb3PrepareRedeemPost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiWeb3PrepareRedeemPost200Response(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 ApiWeb3PrepareRedeemPost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiWeb3PrepareRedeemPost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiWeb3PrepareRedeemPost200ResponseFromJSONTyped(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 : ApiWeb3PrepareRedeemPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiWeb3PrepareRedeemPost200ResponseToJSON(json) {
|
|
42
|
+
return ApiWeb3PrepareRedeemPost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiWeb3PrepareRedeemPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiWeb3PrepareRedeemPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem } from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem';
|
|
13
|
+
import type { ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData } from './ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ApiWeb3PrepareRedeemPost200ResponseResponseObject
|
|
18
|
+
*/
|
|
19
|
+
export interface ApiWeb3PrepareRedeemPost200ResponseResponseObject {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for this redemption intent
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ApiWeb3PrepareRedeemPost200ResponseResponseObject
|
|
24
|
+
*/
|
|
25
|
+
intentId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData}
|
|
29
|
+
* @memberof ApiWeb3PrepareRedeemPost200ResponseResponseObject
|
|
30
|
+
*/
|
|
31
|
+
transactionData: ApiWeb3PrepareRedeemPost200ResponseResponseObjectTransactionData;
|
|
32
|
+
/**
|
|
33
|
+
* Expiration time for this intent
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiWeb3PrepareRedeemPost200ResponseResponseObject
|
|
36
|
+
*/
|
|
37
|
+
expiresAt: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem}
|
|
41
|
+
* @memberof ApiWeb3PrepareRedeemPost200ResponseResponseObject
|
|
42
|
+
*/
|
|
43
|
+
rewardItem: ApiWeb3PrepareRedeemPost200ResponseResponseObjectRewardItem;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ApiWeb3PrepareRedeemPost200ResponseResponseObject interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfApiWeb3PrepareRedeemPost200ResponseResponseObject(value: object): value is ApiWeb3PrepareRedeemPost200ResponseResponseObject;
|
|
49
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseResponseObjectFromJSON(json: any): ApiWeb3PrepareRedeemPost200ResponseResponseObject;
|
|
50
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWeb3PrepareRedeemPost200ResponseResponseObject;
|
|
51
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseResponseObjectToJSON(json: any): ApiWeb3PrepareRedeemPost200ResponseResponseObject;
|
|
52
|
+
export declare function ApiWeb3PrepareRedeemPost200ResponseResponseObjectToJSONTyped(value?: ApiWeb3PrepareRedeemPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|