@drxsuperapp/sdk 1.1.317 → 1.1.343
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 +292 -268
- package/.openapi-generator-ignore +23 -23
- package/api.ts +1491 -1491
- 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/base.ts +86 -86
- package/common.ts +150 -150
- package/configuration.ts +115 -115
- 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/ecosystem.config.js +13 -13
- package/git_push.sh +57 -57
- package/hooks.json +30 -30
- 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/openapitools.json +7 -7
- package/package.json +30 -30
- package/tsconfig.json +17 -17
- package/workflow.sh +88 -88
- package/deploy.log +0 -656
package/configuration.ts
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
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
|
-
|
|
16
|
-
export interface ConfigurationParameters {
|
|
17
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
-
username?: string;
|
|
19
|
-
password?: string;
|
|
20
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
-
basePath?: string;
|
|
22
|
-
serverIndex?: number;
|
|
23
|
-
baseOptions?: any;
|
|
24
|
-
formDataCtor?: new () => any;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export class Configuration {
|
|
28
|
-
/**
|
|
29
|
-
* parameter for apiKey security
|
|
30
|
-
* @param name security name
|
|
31
|
-
* @memberof Configuration
|
|
32
|
-
*/
|
|
33
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
34
|
-
/**
|
|
35
|
-
* parameter for basic security
|
|
36
|
-
*
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof Configuration
|
|
39
|
-
*/
|
|
40
|
-
username?: string;
|
|
41
|
-
/**
|
|
42
|
-
* parameter for basic security
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Configuration
|
|
46
|
-
*/
|
|
47
|
-
password?: string;
|
|
48
|
-
/**
|
|
49
|
-
* parameter for oauth2 security
|
|
50
|
-
* @param name security name
|
|
51
|
-
* @param scopes oauth2 scope
|
|
52
|
-
* @memberof Configuration
|
|
53
|
-
*/
|
|
54
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
55
|
-
/**
|
|
56
|
-
* override base path
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Configuration
|
|
60
|
-
*/
|
|
61
|
-
basePath?: string;
|
|
62
|
-
/**
|
|
63
|
-
* override server index
|
|
64
|
-
*
|
|
65
|
-
* @type {number}
|
|
66
|
-
* @memberof Configuration
|
|
67
|
-
*/
|
|
68
|
-
serverIndex?: number;
|
|
69
|
-
/**
|
|
70
|
-
* base options for axios calls
|
|
71
|
-
*
|
|
72
|
-
* @type {any}
|
|
73
|
-
* @memberof Configuration
|
|
74
|
-
*/
|
|
75
|
-
baseOptions?: any;
|
|
76
|
-
/**
|
|
77
|
-
* The FormData constructor that will be used to create multipart form data
|
|
78
|
-
* requests. You can inject this here so that execution environments that
|
|
79
|
-
* do not support the FormData class can still run the generated client.
|
|
80
|
-
*
|
|
81
|
-
* @type {new () => FormData}
|
|
82
|
-
*/
|
|
83
|
-
formDataCtor?: new () => any;
|
|
84
|
-
|
|
85
|
-
constructor(param: ConfigurationParameters = {}) {
|
|
86
|
-
this.apiKey = param.apiKey;
|
|
87
|
-
this.username = param.username;
|
|
88
|
-
this.password = param.password;
|
|
89
|
-
this.accessToken = param.accessToken;
|
|
90
|
-
this.basePath = param.basePath;
|
|
91
|
-
this.serverIndex = param.serverIndex;
|
|
92
|
-
this.baseOptions = {
|
|
93
|
-
...param.baseOptions,
|
|
94
|
-
headers: {
|
|
95
|
-
...param.baseOptions?.headers,
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
this.formDataCtor = param.formDataCtor;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Check if the given MIME is a JSON MIME.
|
|
103
|
-
* JSON MIME examples:
|
|
104
|
-
* application/json
|
|
105
|
-
* application/json; charset=UTF8
|
|
106
|
-
* APPLICATION/JSON
|
|
107
|
-
* application/vnd.company+json
|
|
108
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
109
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
110
|
-
*/
|
|
111
|
-
public isJsonMime(mime: string): boolean {
|
|
112
|
-
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
113
|
-
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
114
|
-
}
|
|
115
|
-
}
|
|
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
|
+
|
|
16
|
+
export interface ConfigurationParameters {
|
|
17
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
+
basePath?: string;
|
|
22
|
+
serverIndex?: number;
|
|
23
|
+
baseOptions?: any;
|
|
24
|
+
formDataCtor?: new () => any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class Configuration {
|
|
28
|
+
/**
|
|
29
|
+
* parameter for apiKey security
|
|
30
|
+
* @param name security name
|
|
31
|
+
* @memberof Configuration
|
|
32
|
+
*/
|
|
33
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
34
|
+
/**
|
|
35
|
+
* parameter for basic security
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Configuration
|
|
39
|
+
*/
|
|
40
|
+
username?: string;
|
|
41
|
+
/**
|
|
42
|
+
* parameter for basic security
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Configuration
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
* @memberof Configuration
|
|
53
|
+
*/
|
|
54
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
55
|
+
/**
|
|
56
|
+
* override base path
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Configuration
|
|
60
|
+
*/
|
|
61
|
+
basePath?: string;
|
|
62
|
+
/**
|
|
63
|
+
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
serverIndex?: number;
|
|
69
|
+
/**
|
|
70
|
+
* base options for axios calls
|
|
71
|
+
*
|
|
72
|
+
* @type {any}
|
|
73
|
+
* @memberof Configuration
|
|
74
|
+
*/
|
|
75
|
+
baseOptions?: any;
|
|
76
|
+
/**
|
|
77
|
+
* The FormData constructor that will be used to create multipart form data
|
|
78
|
+
* requests. You can inject this here so that execution environments that
|
|
79
|
+
* do not support the FormData class can still run the generated client.
|
|
80
|
+
*
|
|
81
|
+
* @type {new () => FormData}
|
|
82
|
+
*/
|
|
83
|
+
formDataCtor?: new () => any;
|
|
84
|
+
|
|
85
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
86
|
+
this.apiKey = param.apiKey;
|
|
87
|
+
this.username = param.username;
|
|
88
|
+
this.password = param.password;
|
|
89
|
+
this.accessToken = param.accessToken;
|
|
90
|
+
this.basePath = param.basePath;
|
|
91
|
+
this.serverIndex = param.serverIndex;
|
|
92
|
+
this.baseOptions = {
|
|
93
|
+
...param.baseOptions,
|
|
94
|
+
headers: {
|
|
95
|
+
...param.baseOptions?.headers,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
this.formDataCtor = param.formDataCtor;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if the given MIME is a JSON MIME.
|
|
103
|
+
* JSON MIME examples:
|
|
104
|
+
* application/json
|
|
105
|
+
* application/json; charset=UTF8
|
|
106
|
+
* APPLICATION/JSON
|
|
107
|
+
* application/vnd.company+json
|
|
108
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
109
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
110
|
+
*/
|
|
111
|
+
public isJsonMime(mime: string): boolean {
|
|
112
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
113
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -39,7 +39,7 @@ export interface ApiAdminAppConfigsPostOperationRequest {
|
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
|
-
export declare class
|
|
42
|
+
export declare class AppConfigurationApi extends runtime.BaseAPI {
|
|
43
43
|
/**
|
|
44
44
|
* Retrieve a paginated list of app configurations
|
|
45
45
|
* Get App Configs
|
|
@@ -16,7 +16,7 @@ import { ApiAdminAppConfigsGet200ResponseFromJSON, ApiAdminAppConfigsGroupGroupG
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class AppConfigurationApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
* Retrieve a paginated list of app configurations
|
|
22
22
|
* Get App Configs
|
|
@@ -49,7 +49,7 @@ export interface ApiGarudakuTournamentsPostOperationRequest {
|
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
|
-
export declare class
|
|
52
|
+
export declare class GarudakuIntegrationApi extends runtime.BaseAPI {
|
|
53
53
|
/**
|
|
54
54
|
* Get current live stream and 3 previous long-form videos from Garudaku YouTube channel
|
|
55
55
|
* Get Garudaku Content
|
|
@@ -16,7 +16,7 @@ import { ApiGarudakuGameTopupsGet200ResponseFromJSON, ApiGarudakuGameTopupsIdDel
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class GarudakuIntegrationApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
* Get current live stream and 3 previous long-form videos from Garudaku YouTube channel
|
|
22
22
|
* Get Garudaku Content
|
|
@@ -23,7 +23,7 @@ export interface ApiNewsIdGetRequest {
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare class
|
|
26
|
+
export declare class NewsManagementApi extends runtime.BaseAPI {
|
|
27
27
|
/**
|
|
28
28
|
*/
|
|
29
29
|
apiNewsCategoriesListGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNewsCategoriesListGet200Response>>;
|
|
@@ -16,7 +16,7 @@ import { ApiNewsCategoriesListGet200ResponseFromJSON, ApiNewsGet200ResponseFromJ
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class NewsManagementApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
22
|
async apiNewsCategoriesListGetRaw(initOverrides) {
|
|
@@ -20,7 +20,7 @@ export interface ApiNotificationUserPostOperationRequest {
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class NotificationManagementApi extends runtime.BaseAPI {
|
|
24
24
|
/**
|
|
25
25
|
* Send push notification to a topic/channel
|
|
26
26
|
*/
|
|
@@ -16,7 +16,7 @@ import { ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200Respon
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export class
|
|
19
|
+
export class NotificationManagementApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
21
|
* Send push notification to a topic/channel
|
|
22
22
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ApiWeb3RewardGet200Response, ApiWeb3RewardPut200Response } from '../models/index';
|
|
14
|
+
export interface ApiPublicWeb3RewardGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiPublicWeb3RewardIdGetRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class PublicRewardApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* List Rewards
|
|
26
|
+
*/
|
|
27
|
+
apiPublicWeb3RewardGetRaw(requestParameters: ApiPublicWeb3RewardGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RewardGet200Response>>;
|
|
28
|
+
/**
|
|
29
|
+
* List Rewards
|
|
30
|
+
*/
|
|
31
|
+
apiPublicWeb3RewardGet(requestParameters: ApiPublicWeb3RewardGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RewardGet200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* Get Reward Detail
|
|
34
|
+
*/
|
|
35
|
+
apiPublicWeb3RewardIdGetRaw(requestParameters: ApiPublicWeb3RewardIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RewardPut200Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get Reward Detail
|
|
38
|
+
*/
|
|
39
|
+
apiPublicWeb3RewardIdGet(requestParameters: ApiPublicWeb3RewardIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RewardPut200Response>;
|
|
40
|
+
}
|
|
@@ -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
|
+
import * as runtime from '../runtime';
|
|
15
|
+
import { ApiWeb3RewardGet200ResponseFromJSON, ApiWeb3RewardPut200ResponseFromJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class PublicRewardApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* List Rewards
|
|
22
|
+
*/
|
|
23
|
+
async apiPublicWeb3RewardGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['id'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiPublicWeb3RewardGet().');
|
|
26
|
+
}
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
31
|
+
}
|
|
32
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
33
|
+
const token = this.configuration.accessToken;
|
|
34
|
+
const tokenString = await token("BearerAuth", []);
|
|
35
|
+
if (tokenString) {
|
|
36
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const response = await this.request({
|
|
40
|
+
path: `/api/public/web3/reward`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RewardGet200ResponseFromJSON(jsonValue));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* List Rewards
|
|
49
|
+
*/
|
|
50
|
+
async apiPublicWeb3RewardGet(requestParameters, initOverrides) {
|
|
51
|
+
const response = await this.apiPublicWeb3RewardGetRaw(requestParameters, initOverrides);
|
|
52
|
+
return await response.value();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get Reward Detail
|
|
56
|
+
*/
|
|
57
|
+
async apiPublicWeb3RewardIdGetRaw(requestParameters, initOverrides) {
|
|
58
|
+
if (requestParameters['id'] == null) {
|
|
59
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiPublicWeb3RewardIdGet().');
|
|
60
|
+
}
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("BearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/public/web3/reward/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RewardPut200ResponseFromJSON(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get Reward Detail
|
|
83
|
+
*/
|
|
84
|
+
async apiPublicWeb3RewardIdGet(requestParameters, initOverrides) {
|
|
85
|
+
const response = await this.apiPublicWeb3RewardIdGetRaw(requestParameters, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ApiWeb3PrepareRedeemPost200Response, ApiWeb3PrepareRedeemPostRequest, ApiWeb3RedeemPost200Response, ApiWeb3RedeemPostRequest } from '../models/index';
|
|
14
|
+
export interface ApiWeb3PrepareRedeemPostOperationRequest {
|
|
15
|
+
apiWeb3PrepareRedeemPostRequest?: ApiWeb3PrepareRedeemPostRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiWeb3RedeemPostOperationRequest {
|
|
18
|
+
apiWeb3RedeemPostRequest?: ApiWeb3RedeemPostRequest;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class RedemptionApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
26
|
+
*/
|
|
27
|
+
apiWeb3PrepareRedeemPostRaw(requestParameters: ApiWeb3PrepareRedeemPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3PrepareRedeemPost200Response>>;
|
|
28
|
+
/**
|
|
29
|
+
* Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
30
|
+
*/
|
|
31
|
+
apiWeb3PrepareRedeemPost(requestParameters?: ApiWeb3PrepareRedeemPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3PrepareRedeemPost200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* Complete Redeem (Step 2) - Submit transaction hash
|
|
34
|
+
*/
|
|
35
|
+
apiWeb3RedeemPostRaw(requestParameters: ApiWeb3RedeemPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RedeemPost200Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* Complete Redeem (Step 2) - Submit transaction hash
|
|
38
|
+
*/
|
|
39
|
+
apiWeb3RedeemPost(requestParameters?: ApiWeb3RedeemPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedeemPost200Response>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 * as runtime from '../runtime';
|
|
15
|
+
import { ApiWeb3PrepareRedeemPost200ResponseFromJSON, ApiWeb3PrepareRedeemPostRequestToJSON, ApiWeb3RedeemPost200ResponseFromJSON, ApiWeb3RedeemPostRequestToJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class RedemptionApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
22
|
+
*/
|
|
23
|
+
async apiWeb3PrepareRedeemPostRaw(requestParameters, initOverrides) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
const headerParameters = {};
|
|
26
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
27
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
29
|
+
}
|
|
30
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
31
|
+
const token = this.configuration.accessToken;
|
|
32
|
+
const tokenString = await token("BearerAuth", []);
|
|
33
|
+
if (tokenString) {
|
|
34
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: `/api/web3/prepare-redeem`,
|
|
39
|
+
method: 'POST',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
body: ApiWeb3PrepareRedeemPostRequestToJSON(requestParameters['apiWeb3PrepareRedeemPostRequest']),
|
|
43
|
+
}, initOverrides);
|
|
44
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3PrepareRedeemPost200ResponseFromJSON(jsonValue));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
48
|
+
*/
|
|
49
|
+
async apiWeb3PrepareRedeemPost(requestParameters = {}, initOverrides) {
|
|
50
|
+
const response = await this.apiWeb3PrepareRedeemPostRaw(requestParameters, initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Complete Redeem (Step 2) - Submit transaction hash
|
|
55
|
+
*/
|
|
56
|
+
async apiWeb3RedeemPostRaw(requestParameters, initOverrides) {
|
|
57
|
+
const queryParameters = {};
|
|
58
|
+
const headerParameters = {};
|
|
59
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
60
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
61
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
62
|
+
}
|
|
63
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
64
|
+
const token = this.configuration.accessToken;
|
|
65
|
+
const tokenString = await token("BearerAuth", []);
|
|
66
|
+
if (tokenString) {
|
|
67
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const response = await this.request({
|
|
71
|
+
path: `/api/web3/redeem`,
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: headerParameters,
|
|
74
|
+
query: queryParameters,
|
|
75
|
+
body: ApiWeb3RedeemPostRequestToJSON(requestParameters['apiWeb3RedeemPostRequest']),
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RedeemPost200ResponseFromJSON(jsonValue));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Complete Redeem (Step 2) - Submit transaction hash
|
|
81
|
+
*/
|
|
82
|
+
async apiWeb3RedeemPost(requestParameters = {}, initOverrides) {
|
|
83
|
+
const response = await this.apiWeb3RedeemPostRaw(requestParameters, initOverrides);
|
|
84
|
+
return await response.value();
|
|
85
|
+
}
|
|
86
|
+
}
|