@drxsuperapp/sdk 1.1.377 → 1.1.379
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apis/RedemptionApi.ts +51 -0
- package/deploy.log +10 -8
- package/dist/apis/RedemptionApi.d.ts +13 -0
- package/dist/apis/RedemptionApi.js +36 -0
- package/package.json +1 -1
package/apis/RedemptionApi.ts
CHANGED
|
@@ -43,6 +43,10 @@ import {
|
|
|
43
43
|
ApiWeb3RedemptionIdGet200ResponseToJSON,
|
|
44
44
|
} from '../models/index';
|
|
45
45
|
|
|
46
|
+
export interface ApiWeb3AdminRedemptionIdGetRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
export interface ApiWeb3PrepareRedeemPostOperationRequest {
|
|
47
51
|
apiWeb3PrepareRedeemPostRequest?: ApiWeb3PrepareRedeemPostRequest;
|
|
48
52
|
}
|
|
@@ -79,6 +83,53 @@ export interface ApiWeb3RedemptionIdGetRequest {
|
|
|
79
83
|
*/
|
|
80
84
|
export class RedemptionApi extends runtime.BaseAPI {
|
|
81
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve detailed information about a specific redemption reward
|
|
88
|
+
* Admin Get Redemption Reward Detail
|
|
89
|
+
*/
|
|
90
|
+
async apiWeb3AdminRedemptionIdGetRaw(requestParameters: ApiWeb3AdminRedemptionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RedemptionIdGet200Response>> {
|
|
91
|
+
if (requestParameters['id'] == null) {
|
|
92
|
+
throw new runtime.RequiredError(
|
|
93
|
+
'id',
|
|
94
|
+
'Required parameter "id" was null or undefined when calling apiWeb3AdminRedemptionIdGet().'
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const queryParameters: any = {};
|
|
99
|
+
|
|
100
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
101
|
+
|
|
102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
107
|
+
const token = this.configuration.accessToken;
|
|
108
|
+
const tokenString = await token("BearerAuth", []);
|
|
109
|
+
|
|
110
|
+
if (tokenString) {
|
|
111
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const response = await this.request({
|
|
115
|
+
path: `/api/web3/admin/redemption/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
116
|
+
method: 'GET',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RedemptionIdGet200ResponseFromJSON(jsonValue));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Retrieve detailed information about a specific redemption reward
|
|
126
|
+
* Admin Get Redemption Reward Detail
|
|
127
|
+
*/
|
|
128
|
+
async apiWeb3AdminRedemptionIdGet(requestParameters: ApiWeb3AdminRedemptionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedemptionIdGet200Response> {
|
|
129
|
+
const response = await this.apiWeb3AdminRedemptionIdGetRaw(requestParameters, initOverrides);
|
|
130
|
+
return await response.value();
|
|
131
|
+
}
|
|
132
|
+
|
|
82
133
|
/**
|
|
83
134
|
* User Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
84
135
|
*/
|
package/deploy.log
CHANGED
|
@@ -686,6 +686,7 @@
|
|
|
686
686
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/redemption. Renamed to auto-generated operationId: apiWeb3RedemptionGet
|
|
687
687
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/redemption/confirmed. Renamed to auto-generated operationId: apiWeb3RedemptionConfirmedGet
|
|
688
688
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/redemption/{id}. Renamed to auto-generated operationId: apiWeb3RedemptionIdGet
|
|
689
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/admin/redemption/{id}. Renamed to auto-generated operationId: apiWeb3AdminRedemptionIdGet
|
|
689
690
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/web3/redemption/{id}/action. Renamed to auto-generated operationId: apiWeb3RedemptionIdActionPut
|
|
690
691
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward/{id}. Renamed to auto-generated operationId: apiPublicWeb3RewardIdGet
|
|
691
692
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward. Renamed to auto-generated operationId: apiPublicWeb3RewardGet
|
|
@@ -754,20 +755,21 @@
|
|
|
754
755
|
# https://opencollective.com/openapi_generator/donate #
|
|
755
756
|
################################################################################
|
|
756
757
|
✅ SDK generated
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
On branch master
|
|
759
|
+
Your branch is up to date with 'origin/master'.
|
|
760
|
+
|
|
761
|
+
nothing to commit, working tree clean
|
|
762
|
+
Everything up-to-date
|
|
761
763
|
✅ Changes committed and pushed
|
|
762
|
-
v1.1.
|
|
764
|
+
v1.1.379
|
|
763
765
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
764
|
-
|
|
766
|
+
859311f..3f5321d master -> master
|
|
765
767
|
✅ Version bumped
|
|
766
768
|
|
|
767
|
-
> @drxsuperapp/sdk@1.1.
|
|
769
|
+
> @drxsuperapp/sdk@1.1.379 prepublishOnly
|
|
768
770
|
> npm run build
|
|
769
771
|
|
|
770
772
|
|
|
771
|
-
> @drxsuperapp/sdk@1.1.
|
|
773
|
+
> @drxsuperapp/sdk@1.1.379 build
|
|
772
774
|
> tsc
|
|
773
775
|
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiWeb3PrepareRedeemPost200Response, ApiWeb3PrepareRedeemPostRequest, ApiWeb3RedeemPost200Response, ApiWeb3RedeemPostRequest, ApiWeb3RedemptionGet200Response, ApiWeb3RedemptionGetFilterParameter, ApiWeb3RedemptionIdActionPutRequest, ApiWeb3RedemptionIdGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiWeb3AdminRedemptionIdGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
14
17
|
export interface ApiWeb3PrepareRedeemPostOperationRequest {
|
|
15
18
|
apiWeb3PrepareRedeemPostRequest?: ApiWeb3PrepareRedeemPostRequest;
|
|
16
19
|
}
|
|
@@ -40,6 +43,16 @@ export interface ApiWeb3RedemptionIdGetRequest {
|
|
|
40
43
|
*
|
|
41
44
|
*/
|
|
42
45
|
export declare class RedemptionApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Retrieve detailed information about a specific redemption reward
|
|
48
|
+
* Admin Get Redemption Reward Detail
|
|
49
|
+
*/
|
|
50
|
+
apiWeb3AdminRedemptionIdGetRaw(requestParameters: ApiWeb3AdminRedemptionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RedemptionIdGet200Response>>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve detailed information about a specific redemption reward
|
|
53
|
+
* Admin Get Redemption Reward Detail
|
|
54
|
+
*/
|
|
55
|
+
apiWeb3AdminRedemptionIdGet(requestParameters: ApiWeb3AdminRedemptionIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedemptionIdGet200Response>;
|
|
43
56
|
/**
|
|
44
57
|
* User Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
45
58
|
*/
|
|
@@ -17,6 +17,42 @@ import { ApiWeb3PrepareRedeemPost200ResponseFromJSON, ApiWeb3PrepareRedeemPostRe
|
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class RedemptionApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve detailed information about a specific redemption reward
|
|
22
|
+
* Admin Get Redemption Reward Detail
|
|
23
|
+
*/
|
|
24
|
+
async apiWeb3AdminRedemptionIdGetRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['id'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiWeb3AdminRedemptionIdGet().');
|
|
27
|
+
}
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
const headerParameters = {};
|
|
30
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
31
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
32
|
+
}
|
|
33
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
34
|
+
const token = this.configuration.accessToken;
|
|
35
|
+
const tokenString = await token("BearerAuth", []);
|
|
36
|
+
if (tokenString) {
|
|
37
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const response = await this.request({
|
|
41
|
+
path: `/api/web3/admin/redemption/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
}, initOverrides);
|
|
46
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RedemptionIdGet200ResponseFromJSON(jsonValue));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve detailed information about a specific redemption reward
|
|
50
|
+
* Admin Get Redemption Reward Detail
|
|
51
|
+
*/
|
|
52
|
+
async apiWeb3AdminRedemptionIdGet(requestParameters, initOverrides) {
|
|
53
|
+
const response = await this.apiWeb3AdminRedemptionIdGetRaw(requestParameters, initOverrides);
|
|
54
|
+
return await response.value();
|
|
55
|
+
}
|
|
20
56
|
/**
|
|
21
57
|
* User Prepare Redeem (Step 1) - Generate transaction data to sign
|
|
22
58
|
*/
|