@drxsuperapp/sdk 1.1.362 → 1.1.371
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 +9 -0
- package/apis/FeatureApi.ts +216 -0
- package/apis/RedemptionApi.ts +121 -0
- package/apis/index.ts +1 -0
- package/deploy.log +343 -9
- package/dist/apis/FeatureApi.d.ts +59 -0
- package/dist/apis/FeatureApi.js +151 -0
- package/dist/apis/RedemptionApi.d.ts +31 -1
- package/dist/apis/RedemptionApi.js +84 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiFeatureGet200Response.d.ts +51 -0
- package/dist/models/ApiFeatureGet200Response.js +54 -0
- package/dist/models/ApiFeatureGet200ResponseResponseObjectInner.d.ts +69 -0
- package/dist/models/ApiFeatureGet200ResponseResponseObjectInner.js +62 -0
- package/dist/models/ApiFeatureGet200ResponseResponseObjectInnerNavigate.d.ts +52 -0
- package/dist/models/ApiFeatureGet200ResponseResponseObjectInnerNavigate.js +51 -0
- package/dist/models/ApiFeaturePut200Response.d.ts +51 -0
- package/dist/models/ApiFeaturePut200Response.js +54 -0
- package/dist/models/ApiFeaturePutRequest.d.ts +69 -0
- package/dist/models/ApiFeaturePutRequest.js +60 -0
- package/dist/models/ApiFeaturePutRequestNavigate.d.ts +52 -0
- package/dist/models/ApiFeaturePutRequestNavigate.js +49 -0
- package/dist/models/ApiFeatureSwitchPutRequest.d.ts +46 -0
- package/dist/models/ApiFeatureSwitchPutRequest.js +54 -0
- package/dist/models/ApiWeb3RedemptionGetFilterParameter.d.ts +7 -0
- package/dist/models/ApiWeb3RedemptionGetFilterParameter.js +3 -0
- package/dist/models/ApiWeb3RedemptionIdActionPutRequest.d.ts +53 -0
- package/dist/models/ApiWeb3RedemptionIdActionPutRequest.js +55 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/models/ApiFeatureGet200Response.ts +100 -0
- package/models/ApiFeatureGet200ResponseResponseObjectInner.ts +125 -0
- package/models/ApiFeatureGet200ResponseResponseObjectInnerNavigate.ts +91 -0
- package/models/ApiFeaturePut200Response.ts +100 -0
- package/models/ApiFeaturePutRequest.ts +124 -0
- package/models/ApiFeaturePutRequestNavigate.ts +90 -0
- package/models/ApiFeatureSwitchPutRequest.ts +86 -0
- package/models/ApiWeb3RedemptionGetFilterParameter.ts +15 -0
- package/models/ApiWeb3RedemptionIdActionPutRequest.ts +94 -0
- package/models/index.ts +8 -0
- package/package.json +1 -1
|
@@ -10,19 +10,29 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiWeb3PrepareRedeemPost200Response, ApiWeb3PrepareRedeemPostRequest, ApiWeb3RedeemPost200Response, ApiWeb3RedeemPostRequest, ApiWeb3RedemptionGet200Response, ApiWeb3RedemptionGetFilterParameter, ApiWeb3RedemptionIdGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiWeb3PrepareRedeemPost200Response, ApiWeb3PrepareRedeemPostRequest, ApiWeb3RedeemPost200Response, ApiWeb3RedeemPostRequest, ApiWeb3RedemptionGet200Response, ApiWeb3RedemptionGetFilterParameter, ApiWeb3RedemptionIdActionPutRequest, ApiWeb3RedemptionIdGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiWeb3PrepareRedeemPostOperationRequest {
|
|
15
15
|
apiWeb3PrepareRedeemPostRequest?: ApiWeb3PrepareRedeemPostRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface ApiWeb3RedeemPostOperationRequest {
|
|
18
18
|
apiWeb3RedeemPostRequest?: ApiWeb3RedeemPostRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface ApiWeb3RedemptionConfirmedGetRequest {
|
|
21
|
+
page?: number;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
sort?: string;
|
|
24
|
+
filter?: object;
|
|
25
|
+
}
|
|
20
26
|
export interface ApiWeb3RedemptionGetRequest {
|
|
21
27
|
page?: number;
|
|
22
28
|
pageSize?: number;
|
|
23
29
|
sort?: string;
|
|
24
30
|
filter?: ApiWeb3RedemptionGetFilterParameter;
|
|
25
31
|
}
|
|
32
|
+
export interface ApiWeb3RedemptionIdActionPutOperationRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
apiWeb3RedemptionIdActionPutRequest?: ApiWeb3RedemptionIdActionPutRequest;
|
|
35
|
+
}
|
|
26
36
|
export interface ApiWeb3RedemptionIdGetRequest {
|
|
27
37
|
id: string;
|
|
28
38
|
}
|
|
@@ -46,6 +56,16 @@ export declare class RedemptionApi extends runtime.BaseAPI {
|
|
|
46
56
|
* Complete Redeem (Step 2) - Submit transaction hash
|
|
47
57
|
*/
|
|
48
58
|
apiWeb3RedeemPost(requestParameters?: ApiWeb3RedeemPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedeemPost200Response>;
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve a paginated list of confirmed redemption rewards
|
|
61
|
+
* Get Confirmed Redemption Rewards
|
|
62
|
+
*/
|
|
63
|
+
apiWeb3RedemptionConfirmedGetRaw(requestParameters: ApiWeb3RedemptionConfirmedGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RedemptionGet200Response>>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieve a paginated list of confirmed redemption rewards
|
|
66
|
+
* Get Confirmed Redemption Rewards
|
|
67
|
+
*/
|
|
68
|
+
apiWeb3RedemptionConfirmedGet(requestParameters?: ApiWeb3RedemptionConfirmedGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedemptionGet200Response>;
|
|
49
69
|
/**
|
|
50
70
|
* Retrieve a paginated list of user redemption rewards
|
|
51
71
|
* Get User Redemption Rewards
|
|
@@ -56,6 +76,16 @@ export declare class RedemptionApi extends runtime.BaseAPI {
|
|
|
56
76
|
* Get User Redemption Rewards
|
|
57
77
|
*/
|
|
58
78
|
apiWeb3RedemptionGet(requestParameters?: ApiWeb3RedemptionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedemptionGet200Response>;
|
|
79
|
+
/**
|
|
80
|
+
* Admin action of redemption-reward
|
|
81
|
+
* Admin action of redemption-reward
|
|
82
|
+
*/
|
|
83
|
+
apiWeb3RedemptionIdActionPutRaw(requestParameters: ApiWeb3RedemptionIdActionPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiWeb3RedemptionIdGet200Response>>;
|
|
84
|
+
/**
|
|
85
|
+
* Admin action of redemption-reward
|
|
86
|
+
* Admin action of redemption-reward
|
|
87
|
+
*/
|
|
88
|
+
apiWeb3RedemptionIdActionPut(requestParameters: ApiWeb3RedemptionIdActionPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiWeb3RedemptionIdGet200Response>;
|
|
59
89
|
/**
|
|
60
90
|
* Retrieve detailed information about a specific redemption reward
|
|
61
91
|
* Get Redemption Reward Detail
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiWeb3PrepareRedeemPost200ResponseFromJSON, ApiWeb3PrepareRedeemPostRequestToJSON, ApiWeb3RedeemPost200ResponseFromJSON, ApiWeb3RedeemPostRequestToJSON, ApiWeb3RedemptionGet200ResponseFromJSON, ApiWeb3RedemptionIdGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiWeb3PrepareRedeemPost200ResponseFromJSON, ApiWeb3PrepareRedeemPostRequestToJSON, ApiWeb3RedeemPost200ResponseFromJSON, ApiWeb3RedeemPostRequestToJSON, ApiWeb3RedemptionGet200ResponseFromJSON, ApiWeb3RedemptionIdActionPutRequestToJSON, ApiWeb3RedemptionIdGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -83,6 +83,51 @@ export class RedemptionApi extends runtime.BaseAPI {
|
|
|
83
83
|
const response = await this.apiWeb3RedeemPostRaw(requestParameters, initOverrides);
|
|
84
84
|
return await response.value();
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve a paginated list of confirmed redemption rewards
|
|
88
|
+
* Get Confirmed Redemption Rewards
|
|
89
|
+
*/
|
|
90
|
+
async apiWeb3RedemptionConfirmedGetRaw(requestParameters, initOverrides) {
|
|
91
|
+
const queryParameters = {};
|
|
92
|
+
if (requestParameters['page'] != null) {
|
|
93
|
+
queryParameters['page'] = requestParameters['page'];
|
|
94
|
+
}
|
|
95
|
+
if (requestParameters['pageSize'] != null) {
|
|
96
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['sort'] != null) {
|
|
99
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
100
|
+
}
|
|
101
|
+
if (requestParameters['filter'] != null) {
|
|
102
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
103
|
+
}
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
107
|
+
}
|
|
108
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
+
const token = this.configuration.accessToken;
|
|
110
|
+
const tokenString = await token("BearerAuth", []);
|
|
111
|
+
if (tokenString) {
|
|
112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: `/api/web3/redemption/confirmed`,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RedemptionGet200ResponseFromJSON(jsonValue));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Retrieve a paginated list of confirmed redemption rewards
|
|
125
|
+
* Get Confirmed Redemption Rewards
|
|
126
|
+
*/
|
|
127
|
+
async apiWeb3RedemptionConfirmedGet(requestParameters = {}, initOverrides) {
|
|
128
|
+
const response = await this.apiWeb3RedemptionConfirmedGetRaw(requestParameters, initOverrides);
|
|
129
|
+
return await response.value();
|
|
130
|
+
}
|
|
86
131
|
/**
|
|
87
132
|
* Retrieve a paginated list of user redemption rewards
|
|
88
133
|
* Get User Redemption Rewards
|
|
@@ -128,6 +173,44 @@ export class RedemptionApi extends runtime.BaseAPI {
|
|
|
128
173
|
const response = await this.apiWeb3RedemptionGetRaw(requestParameters, initOverrides);
|
|
129
174
|
return await response.value();
|
|
130
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Admin action of redemption-reward
|
|
178
|
+
* Admin action of redemption-reward
|
|
179
|
+
*/
|
|
180
|
+
async apiWeb3RedemptionIdActionPutRaw(requestParameters, initOverrides) {
|
|
181
|
+
if (requestParameters['id'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiWeb3RedemptionIdActionPut().');
|
|
183
|
+
}
|
|
184
|
+
const queryParameters = {};
|
|
185
|
+
const headerParameters = {};
|
|
186
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
187
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
188
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
189
|
+
}
|
|
190
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
191
|
+
const token = this.configuration.accessToken;
|
|
192
|
+
const tokenString = await token("BearerAuth", []);
|
|
193
|
+
if (tokenString) {
|
|
194
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
const response = await this.request({
|
|
198
|
+
path: `/api/web3/redemption/{id}/action`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
199
|
+
method: 'PUT',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
body: ApiWeb3RedemptionIdActionPutRequestToJSON(requestParameters['apiWeb3RedemptionIdActionPutRequest']),
|
|
203
|
+
}, initOverrides);
|
|
204
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiWeb3RedemptionIdGet200ResponseFromJSON(jsonValue));
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Admin action of redemption-reward
|
|
208
|
+
* Admin action of redemption-reward
|
|
209
|
+
*/
|
|
210
|
+
async apiWeb3RedemptionIdActionPut(requestParameters, initOverrides) {
|
|
211
|
+
const response = await this.apiWeb3RedemptionIdActionPutRaw(requestParameters, initOverrides);
|
|
212
|
+
return await response.value();
|
|
213
|
+
}
|
|
131
214
|
/**
|
|
132
215
|
* Retrieve detailed information about a specific redemption reward
|
|
133
216
|
* Get Redemption Reward Detail
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -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 { ApiFeatureGet200ResponseResponseObjectInner } from './ApiFeatureGet200ResponseResponseObjectInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiFeatureGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiFeatureGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiFeatureGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiFeatureGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<ApiFeatureGet200ResponseResponseObjectInner>}
|
|
34
|
+
* @memberof ApiFeatureGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: Array<ApiFeatureGet200ResponseResponseObjectInner>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiFeatureGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiFeatureGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiFeatureGet200Response(value: object): value is ApiFeatureGet200Response;
|
|
48
|
+
export declare function ApiFeatureGet200ResponseFromJSON(json: any): ApiFeatureGet200Response;
|
|
49
|
+
export declare function ApiFeatureGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeatureGet200Response;
|
|
50
|
+
export declare function ApiFeatureGet200ResponseToJSON(json: any): ApiFeatureGet200Response;
|
|
51
|
+
export declare function ApiFeatureGet200ResponseToJSONTyped(value?: ApiFeatureGet200Response | 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 { ApiFeatureGet200ResponseResponseObjectInnerFromJSON, ApiFeatureGet200ResponseResponseObjectInnerToJSON, } from './ApiFeatureGet200ResponseResponseObjectInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiFeatureGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiFeatureGet200Response(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 ApiFeatureGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiFeatureGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiFeatureGet200ResponseFromJSONTyped(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 : (json['responseObject'].map(ApiFeatureGet200ResponseResponseObjectInnerFromJSON)),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiFeatureGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiFeatureGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiFeatureGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': value['responseObject'] == null ? undefined : (value['responseObject'].map(ApiFeatureGet200ResponseResponseObjectInnerToJSON)),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ApiFeatureGet200ResponseResponseObjectInnerNavigate } from './ApiFeatureGet200ResponseResponseObjectInnerNavigate';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiFeatureGet200ResponseResponseObjectInner
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiFeatureGet200ResponseResponseObjectInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
29
|
+
*/
|
|
30
|
+
image_url: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
41
|
+
*/
|
|
42
|
+
url?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
47
|
+
*/
|
|
48
|
+
requireLogin?: boolean | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
53
|
+
*/
|
|
54
|
+
sequence: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ApiFeatureGet200ResponseResponseObjectInnerNavigate}
|
|
58
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInner
|
|
59
|
+
*/
|
|
60
|
+
Navigate?: ApiFeatureGet200ResponseResponseObjectInnerNavigate | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiFeatureGet200ResponseResponseObjectInner interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfApiFeatureGet200ResponseResponseObjectInner(value: object): value is ApiFeatureGet200ResponseResponseObjectInner;
|
|
66
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerFromJSON(json: any): ApiFeatureGet200ResponseResponseObjectInner;
|
|
67
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeatureGet200ResponseResponseObjectInner;
|
|
68
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerToJSON(json: any): ApiFeatureGet200ResponseResponseObjectInner;
|
|
69
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerToJSONTyped(value?: ApiFeatureGet200ResponseResponseObjectInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSON, ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSON, } from './ApiFeatureGet200ResponseResponseObjectInnerNavigate';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiFeatureGet200ResponseResponseObjectInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiFeatureGet200ResponseResponseObjectInner(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('image_url' in value) || value['image_url'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('sequence' in value) || value['sequence'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerFromJSON(json) {
|
|
30
|
+
return ApiFeatureGet200ResponseResponseObjectInnerFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
'image_url': json['image_url'],
|
|
39
|
+
'label': json['label'],
|
|
40
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
41
|
+
'requireLogin': json['requireLogin'] == null ? undefined : json['requireLogin'],
|
|
42
|
+
'sequence': json['sequence'],
|
|
43
|
+
'Navigate': json['Navigate'] == null ? undefined : ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSON(json['Navigate']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerToJSON(json) {
|
|
47
|
+
return ApiFeatureGet200ResponseResponseObjectInnerToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'image_url': value['image_url'],
|
|
56
|
+
'label': value['label'],
|
|
57
|
+
'url': value['url'],
|
|
58
|
+
'requireLogin': value['requireLogin'],
|
|
59
|
+
'sequence': value['sequence'],
|
|
60
|
+
'Navigate': ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSON(value['Navigate']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiFeatureGet200ResponseResponseObjectInnerNavigate
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiFeatureGet200ResponseResponseObjectInnerNavigate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInnerNavigate
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInnerNavigate
|
|
28
|
+
*/
|
|
29
|
+
screen: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: any | null; }}
|
|
33
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInnerNavigate
|
|
34
|
+
*/
|
|
35
|
+
params?: {
|
|
36
|
+
[key: string]: any | null;
|
|
37
|
+
} | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ApiFeatureGet200ResponseResponseObjectInnerNavigate
|
|
42
|
+
*/
|
|
43
|
+
requireLogin?: boolean | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ApiFeatureGet200ResponseResponseObjectInnerNavigate interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfApiFeatureGet200ResponseResponseObjectInnerNavigate(value: object): value is ApiFeatureGet200ResponseResponseObjectInnerNavigate;
|
|
49
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSON(json: any): ApiFeatureGet200ResponseResponseObjectInnerNavigate;
|
|
50
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeatureGet200ResponseResponseObjectInnerNavigate;
|
|
51
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSON(json: any): ApiFeatureGet200ResponseResponseObjectInnerNavigate;
|
|
52
|
+
export declare function ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSONTyped(value?: ApiFeatureGet200ResponseResponseObjectInnerNavigate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ApiFeatureGet200ResponseResponseObjectInnerNavigate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiFeatureGet200ResponseResponseObjectInnerNavigate(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('screen' in value) || value['screen'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSON(json) {
|
|
25
|
+
return ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerNavigateFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'screen': json['screen'],
|
|
34
|
+
'params': json['params'] == null ? undefined : json['params'],
|
|
35
|
+
'requireLogin': json['requireLogin'] == null ? undefined : json['requireLogin'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSON(json) {
|
|
39
|
+
return ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ApiFeatureGet200ResponseResponseObjectInnerNavigateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'screen': value['screen'],
|
|
48
|
+
'params': value['params'],
|
|
49
|
+
'requireLogin': value['requireLogin'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 { ApiFeatureGet200ResponseResponseObjectInner } from './ApiFeatureGet200ResponseResponseObjectInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiFeaturePut200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiFeaturePut200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiFeaturePut200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiFeaturePut200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiFeatureGet200ResponseResponseObjectInner}
|
|
34
|
+
* @memberof ApiFeaturePut200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiFeatureGet200ResponseResponseObjectInner;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiFeaturePut200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiFeaturePut200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiFeaturePut200Response(value: object): value is ApiFeaturePut200Response;
|
|
48
|
+
export declare function ApiFeaturePut200ResponseFromJSON(json: any): ApiFeaturePut200Response;
|
|
49
|
+
export declare function ApiFeaturePut200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFeaturePut200Response;
|
|
50
|
+
export declare function ApiFeaturePut200ResponseToJSON(json: any): ApiFeaturePut200Response;
|
|
51
|
+
export declare function ApiFeaturePut200ResponseToJSONTyped(value?: ApiFeaturePut200Response | 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 { ApiFeatureGet200ResponseResponseObjectInnerFromJSON, ApiFeatureGet200ResponseResponseObjectInnerToJSON, } from './ApiFeatureGet200ResponseResponseObjectInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiFeaturePut200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiFeaturePut200Response(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 ApiFeaturePut200ResponseFromJSON(json) {
|
|
28
|
+
return ApiFeaturePut200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiFeaturePut200ResponseFromJSONTyped(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 : ApiFeatureGet200ResponseResponseObjectInnerFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiFeaturePut200ResponseToJSON(json) {
|
|
42
|
+
return ApiFeaturePut200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiFeaturePut200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiFeatureGet200ResponseResponseObjectInnerToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|