Skip to content

Commit 842995a

Browse files
committed
Update client code for 109be66a51885a34c40cdbb7b6d17b8688990d94
1 parent 682aac6 commit 842995a

46 files changed

Lines changed: 3844 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/gen/api/LockControllerApi.js

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
*/
1515
import {ApiClient} from "../ApiClient";
1616
import {ResponseWrapperNftLockerResponse} from '../model/ResponseWrapperNftLockerResponse';
17+
import {ResponseWrapperPageResponseTaNftLockerLockInfo} from '../model/ResponseWrapperPageResponseTaNftLockerLockInfo';
18+
import {ResponseWrapperPageResponseV4NftLockerLockInfos} from '../model/ResponseWrapperPageResponseV4NftLockerLockInfos';
1719
import {ResponseWrapperTokenLockerResponse} from '../model/ResponseWrapperTokenLockerResponse';
20+
import {ResponseWrapperV4LpLockerLockInfoResp} from '../model/ResponseWrapperV4LpLockerLockInfoResp';
1821

1922
/**
2023
* LockController service.
@@ -35,6 +38,57 @@ export class LockControllerApi {
3538
this.apiClient = apiClient || ApiClient.instance;
3639
}
3740

41+
/**
42+
* Callback function to receive the result of the getNftLockerLockInfosListUsingGET operation.
43+
* @callback moduleapi/LockControllerApi~getNftLockerLockInfosListUsingGETCallback
44+
* @param {String} error Error message, if any.
45+
* @param {module:model/ResponseWrapperPageResponseTaNftLockerLockInfo{ data The data returned by the service call.
46+
* @param {String} response The complete HTTP response.
47+
*/
48+
49+
/**
50+
* get lpv3 locker infos
51+
* @param {Number} pageNum pageNum
52+
* @param {Number} pageSize pageSize
53+
* @param {module:api/LockControllerApi~getNftLockerLockInfosListUsingGETCallback} callback The callback function, accepting three arguments: error, data, response
54+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
55+
*/
56+
getNftLockerLockInfosListUsingGET(pageNum, pageSize, callback) {
57+
58+
let postBody = null;
59+
// verify the required parameter 'pageNum' is set
60+
if (pageNum === undefined || pageNum === null) {
61+
throw new Error("Missing the required parameter 'pageNum' when calling getNftLockerLockInfosListUsingGET");
62+
}
63+
// verify the required parameter 'pageSize' is set
64+
if (pageSize === undefined || pageSize === null) {
65+
throw new Error("Missing the required parameter 'pageSize' when calling getNftLockerLockInfosListUsingGET");
66+
}
67+
68+
let pathParams = {
69+
70+
};
71+
let queryParams = {
72+
'pageNum': pageNum,'pageSize': pageSize
73+
};
74+
let headerParams = {
75+
76+
};
77+
let formParams = {
78+
79+
};
80+
81+
let authNames = [];
82+
let contentTypes = [];
83+
let accepts = ['*/*'];
84+
let returnType = ResponseWrapperPageResponseTaNftLockerLockInfo;
85+
86+
return this.apiClient.callApi(
87+
'/open/api/v1/locks/lpv3s', 'GET',
88+
pathParams, queryParams, headerParams, formParams, postBody,
89+
authNames, contentTypes, accepts, returnType, callback
90+
);
91+
}
3892
/**
3993
* Callback function to receive the result of the getNftLockersUsingGET operation.
4094
* @callback moduleapi/LockControllerApi~getNftLockersUsingGETCallback
@@ -161,5 +215,117 @@ export class LockControllerApi {
161215
authNames, contentTypes, accepts, returnType, callback
162216
);
163217
}
218+
/**
219+
* Callback function to receive the result of the getV4NftLockerLockInfosListUsingGET operation.
220+
* @callback moduleapi/LockControllerApi~getV4NftLockerLockInfosListUsingGETCallback
221+
* @param {String} error Error message, if any.
222+
* @param {module:model/ResponseWrapperPageResponseV4NftLockerLockInfos{ data The data returned by the service call.
223+
* @param {String} response The complete HTTP response.
224+
*/
225+
226+
/**
227+
* get lpv4 locker infos
228+
* @param {Number} pageNum pageNum
229+
* @param {Number} pageSize pageSize
230+
* @param {module:api/LockControllerApi~getV4NftLockerLockInfosListUsingGETCallback} callback The callback function, accepting three arguments: error, data, response
231+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
232+
*/
233+
getV4NftLockerLockInfosListUsingGET(pageNum, pageSize, callback) {
234+
235+
let postBody = null;
236+
// verify the required parameter 'pageNum' is set
237+
if (pageNum === undefined || pageNum === null) {
238+
throw new Error("Missing the required parameter 'pageNum' when calling getV4NftLockerLockInfosListUsingGET");
239+
}
240+
// verify the required parameter 'pageSize' is set
241+
if (pageSize === undefined || pageSize === null) {
242+
throw new Error("Missing the required parameter 'pageSize' when calling getV4NftLockerLockInfosListUsingGET");
243+
}
244+
245+
let pathParams = {
246+
247+
};
248+
let queryParams = {
249+
'pageNum': pageNum,'pageSize': pageSize
250+
};
251+
let headerParams = {
252+
253+
};
254+
let formParams = {
255+
256+
};
257+
258+
let authNames = [];
259+
let contentTypes = [];
260+
let accepts = ['*/*'];
261+
let returnType = ResponseWrapperPageResponseV4NftLockerLockInfos;
262+
263+
return this.apiClient.callApi(
264+
'/open/api/v1/locks/lpv4s', 'GET',
265+
pathParams, queryParams, headerParams, formParams, postBody,
266+
authNames, contentTypes, accepts, returnType, callback
267+
);
268+
}
269+
/**
270+
* Callback function to receive the result of the getV4NftLockersUsingGET operation.
271+
* @callback moduleapi/LockControllerApi~getV4NftLockersUsingGETCallback
272+
* @param {String} error Error message, if any.
273+
* @param {module:model/ResponseWrapperV4LpLockerLockInfoResp{ data The data returned by the service call.
274+
* @param {String} response The complete HTTP response.
275+
*/
276+
277+
/**
278+
* get v4 nft locker info
279+
* @param {String} chainId chainId
280+
* @param {Number} pageNum pageNum
281+
* @param {Number} pageSize pageSize
282+
* @param {String} poolId poolId
283+
* @param {module:api/LockControllerApi~getV4NftLockersUsingGETCallback} callback The callback function, accepting three arguments: error, data, response
284+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
285+
*/
286+
getV4NftLockersUsingGET(chainId, pageNum, pageSize, poolId, callback) {
287+
288+
let postBody = null;
289+
// verify the required parameter 'chainId' is set
290+
if (chainId === undefined || chainId === null) {
291+
throw new Error("Missing the required parameter 'chainId' when calling getV4NftLockersUsingGET");
292+
}
293+
// verify the required parameter 'pageNum' is set
294+
if (pageNum === undefined || pageNum === null) {
295+
throw new Error("Missing the required parameter 'pageNum' when calling getV4NftLockersUsingGET");
296+
}
297+
// verify the required parameter 'pageSize' is set
298+
if (pageSize === undefined || pageSize === null) {
299+
throw new Error("Missing the required parameter 'pageSize' when calling getV4NftLockersUsingGET");
300+
}
301+
// verify the required parameter 'poolId' is set
302+
if (poolId === undefined || poolId === null) {
303+
throw new Error("Missing the required parameter 'poolId' when calling getV4NftLockersUsingGET");
304+
}
305+
306+
let pathParams = {
307+
308+
};
309+
let queryParams = {
310+
'chainId': chainId,'pageNum': pageNum,'pageSize': pageSize,'poolId': poolId
311+
};
312+
let headerParams = {
313+
314+
};
315+
let formParams = {
316+
317+
};
318+
319+
let authNames = [];
320+
let contentTypes = [];
321+
let accepts = ['*/*'];
322+
let returnType = ResponseWrapperV4LpLockerLockInfoResp;
323+
324+
return this.apiClient.callApi(
325+
'/open/api/v1/locks/lpv4', 'GET',
326+
pathParams, queryParams, headerParams, formParams, postBody,
327+
authNames, contentTypes, accepts, returnType, callback
328+
);
329+
}
164330

165331
}

src/gen/api/PublicControllerApi.js

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/*
2+
* GoPlus Security API Document
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: 1.0
6+
*
7+
* NOTE: This class is auto generated by the swagger code generator program.
8+
* https://github.com/swagger-api/swagger-codegen.git
9+
*
10+
* Swagger Codegen version: 3.0.45
11+
*
12+
* Do not edit the class manually.
13+
*
14+
*/
15+
import {ApiClient} from "../ApiClient";
16+
import {DustAttackDetectionReq} from '../model/DustAttackDetectionReq';
17+
import {ResponseWrapperDustAttackDetection} from '../model/ResponseWrapperDustAttackDetection';
18+
19+
/**
20+
* PublicController service.
21+
* @module api/PublicControllerApi
22+
* @version 1.0
23+
*/
24+
export class PublicControllerApi {
25+
26+
/**
27+
* Constructs a new PublicControllerApi.
28+
* @alias module:api/PublicControllerApi
29+
* @class
30+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
31+
* default to {@link module:ApiClient#instanc
32+
e} if unspecified.
33+
*/
34+
constructor(apiClient) {
35+
this.apiClient = apiClient || ApiClient.instance;
36+
}
37+
38+
/**
39+
* Callback function to receive the result of the dustAttackDetectionUsingPOST operation.
40+
* @callback moduleapi/PublicControllerApi~dustAttackDetectionUsingPOSTCallback
41+
* @param {String} error Error message, if any.
42+
* @param {module:model/ResponseWrapperDustAttackDetection{ data The data returned by the service call.
43+
* @param {String} response The complete HTTP response.
44+
*/
45+
46+
/**
47+
* dustAttackDetection
48+
* @param {module:model/DustAttackDetectionReq} body req
49+
* @param {Object} opts Optional parameters
50+
* @param {String} opts.Authorization Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
51+
* @param {module:api/PublicControllerApi~dustAttackDetectionUsingPOSTCallback} callback The callback function, accepting three arguments: error, data, response
52+
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}
53+
*/
54+
dustAttackDetectionUsingPOST(body, opts, callback) {
55+
opts = opts || {};
56+
let postBody = body;
57+
// verify the required parameter 'body' is set
58+
if (body === undefined || body === null) {
59+
throw new Error("Missing the required parameter 'body' when calling dustAttackDetectionUsingPOST");
60+
}
61+
62+
let pathParams = {
63+
64+
};
65+
let queryParams = {
66+
67+
};
68+
let headerParams = {
69+
'Authorization': opts['Authorization']
70+
};
71+
let formParams = {
72+
73+
};
74+
75+
let authNames = [];
76+
let contentTypes = ['application/json'];
77+
let accepts = ['*/*'];
78+
let returnType = ResponseWrapperDustAttackDetection;
79+
80+
return this.apiClient.callApi(
81+
'/api/v1/dust_attack_detection', 'POST',
82+
pathParams, queryParams, headerParams, formParams, postBody,
83+
authNames, contentTypes, accepts, returnType, callback
84+
);
85+
}
86+
87+
}

0 commit comments

Comments
 (0)