@hawksightco/swagger-client
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -34,6 +34,7 @@ /* tslint:disable */ | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
poolsGet: async (hash?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/pools`; | ||
@@ -50,2 +51,6 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
if (hash !== undefined) { | ||
localVarQueryParameter['hash'] = hash; | ||
} | ||
const query = new URLSearchParams(localVarUrlObj.search); | ||
@@ -257,7 +262,8 @@ for (const key in localVarQueryParameter) { | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async poolsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<HawksightPool>>>> { | ||
const localVarAxiosArgs = await GeneralEndpointsApiAxiosParamCreator(configuration).poolsGet(options); | ||
async poolsGet(hash?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<HawksightPool>>>> { | ||
const localVarAxiosArgs = await GeneralEndpointsApiAxiosParamCreator(configuration).poolsGet(hash, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
@@ -334,7 +340,8 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async poolsGet(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>> { | ||
return GeneralEndpointsApiFp(configuration).poolsGet(options).then((request) => request(axios, basePath)); | ||
async poolsGet(hash?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>> { | ||
return GeneralEndpointsApiFp(configuration).poolsGet(hash, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -392,2 +399,3 @@ /** | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
@@ -397,4 +405,4 @@ * @throws {RequiredError} | ||
*/ | ||
public async poolsGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<HawksightPool>>> { | ||
return GeneralEndpointsApiFp(this.configuration).poolsGet(options).then((request) => request(this.axios, this.basePath)); | ||
public async poolsGet(hash?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<HawksightPool>>> { | ||
return GeneralEndpointsApiFp(this.configuration).poolsGet(hash, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -401,0 +409,0 @@ /** |
@@ -27,6 +27,7 @@ /** | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
poolsGet: (hash?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -71,6 +72,7 @@ * Retrieves the user's portfolio based on the provided wallet and optional pool address. | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<HawksightPool>>>>; | ||
poolsGet(hash?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<HawksightPool>>>>; | ||
/** | ||
@@ -115,6 +117,7 @@ * Retrieves the user's portfolio based on the provided wallet and optional pool address. | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>>; | ||
poolsGet(hash?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>>; | ||
/** | ||
@@ -161,2 +164,3 @@ * Retrieves the user's portfolio based on the provided wallet and optional pool address. | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
@@ -166,3 +170,3 @@ * @throws {RequiredError} | ||
*/ | ||
poolsGet(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>>; | ||
poolsGet(hash?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<HawksightPool>>>; | ||
/** | ||
@@ -169,0 +173,0 @@ * Retrieves the user's portfolio based on the provided wallet and optional pool address. |
@@ -101,11 +101,12 @@ "use strict"; | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet: function () { | ||
poolsGet: function (hash_1) { | ||
var args_1 = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args_1[_i] = arguments[_i]; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args_1[_i - 1] = arguments[_i]; | ||
} | ||
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) { | ||
return __awaiter(_this, __spreadArray([hash_1], args_1, true), void 0, function (hash, options) { | ||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions; | ||
@@ -122,2 +123,5 @@ if (options === void 0) { options = {}; } | ||
localVarQueryParameter = {}; | ||
if (hash !== undefined) { | ||
localVarQueryParameter['hash'] = hash; | ||
} | ||
query = new URLSearchParams(localVarUrlObj.search); | ||
@@ -347,6 +351,7 @@ for (key in localVarQueryParameter) { | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet: function (options) { | ||
poolsGet: function (hash, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -356,3 +361,3 @@ var localVarAxiosArgs; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, exports.GeneralEndpointsApiAxiosParamCreator)(configuration).poolsGet(options)]; | ||
case 0: return [4 /*yield*/, (0, exports.GeneralEndpointsApiAxiosParamCreator)(configuration).poolsGet(hash, options)]; | ||
case 1: | ||
@@ -480,9 +485,10 @@ localVarAxiosArgs = _a.sent(); | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
poolsGet: function (options) { | ||
poolsGet: function (hash, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(configuration).poolsGet(options).then(function (request) { return request(axios, basePath); })]; | ||
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(configuration).poolsGet(hash, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
@@ -562,2 +568,3 @@ }); | ||
* Returns all pools integrated by Hawksight. | ||
* @param {string} [hash] Optional hash parameter | ||
* @param {*} [options] Override http request option. | ||
@@ -567,7 +574,7 @@ * @throws {RequiredError} | ||
*/ | ||
GeneralEndpointsApi.prototype.poolsGet = function (options) { | ||
GeneralEndpointsApi.prototype.poolsGet = function (hash, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(this.configuration).poolsGet(options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(this.configuration).poolsGet(hash, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
@@ -574,0 +581,0 @@ }); |
{ | ||
"name": "@hawksightco/swagger-client", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "OpenAPI client for Hawksight v2 Public API", | ||
@@ -5,0 +5,0 @@ "author": "Hawksight", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
977455
25156