1414 */
1515import { ApiClient } from "../ApiClient" ;
1616import { ResponseWrapperNftLockerResponse } from '../model/ResponseWrapperNftLockerResponse' ;
17+ import { ResponseWrapperPageResponseTaNftLockerLockInfo } from '../model/ResponseWrapperPageResponseTaNftLockerLockInfo' ;
18+ import { ResponseWrapperPageResponseV4NftLockerLockInfos } from '../model/ResponseWrapperPageResponseV4NftLockerLockInfos' ;
1719import { 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}
0 commit comments