@hawksightco/swagger-client
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -22,2 +22,3 @@ /* tslint:disable */ | ||
import { AutomationRebalanceAutomationIxBody } from '../models'; | ||
import { AutomationWithdrawAndCloseAutomationIxBody } from '../models'; | ||
import { InlineResponse400 } from '../models'; | ||
@@ -115,2 +116,44 @@ import { TransactionMetadata } from '../models'; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: async (body: AutomationWithdrawAndCloseAutomationIxBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'body' is not null or undefined | ||
if (body === null || body === undefined) { | ||
throw new RequiredError('body','Required parameter body was null or undefined when calling meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost.'); | ||
} | ||
const localVarPath = `/meteora/dlmm/automation/withdrawAndCloseAutomationIx`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
const query = new URLSearchParams(localVarUrlObj.search); | ||
for (const key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (const key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; | ||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); | ||
return { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
@@ -151,2 +194,15 @@ }; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> { | ||
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
} | ||
@@ -179,2 +235,11 @@ }; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> { | ||
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
@@ -210,2 +275,12 @@ }; | ||
} | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof MeteoraDLMMAutomationInstructionsApi | ||
*/ | ||
public async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> { | ||
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
@@ -17,2 +17,3 @@ /** | ||
import { AutomationRebalanceAutomationIxBody } from '../models'; | ||
import { AutomationWithdrawAndCloseAutomationIxBody } from '../models'; | ||
import { TransactionMetadata } from '../models'; | ||
@@ -38,2 +39,9 @@ /** | ||
meteoraDlmmAutomationRebalanceAutomationIxPost: (body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: (body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -59,2 +67,9 @@ /** | ||
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>; | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>; | ||
}; | ||
@@ -80,2 +95,9 @@ /** | ||
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; | ||
}; | ||
@@ -105,2 +127,10 @@ /** | ||
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof MeteoraDLMMAutomationInstructionsApi | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; | ||
} |
@@ -193,2 +193,49 @@ "use strict"; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body_1) { | ||
var args_1 = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args_1[_i - 1] = arguments[_i]; | ||
} | ||
return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) { | ||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization; | ||
if (options === void 0) { options = {}; } | ||
return __generator(this, function (_a) { | ||
// verify required parameter 'body' is not null or undefined | ||
if (body === null || body === undefined) { | ||
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost.'); | ||
} | ||
localVarPath = "/meteora/dlmm/automation/withdrawAndCloseAutomationIx"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
localVarHeaderParameter['Content-Type'] = 'application/json'; | ||
query = new URLSearchParams(localVarUrlObj.search); | ||
for (key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; | ||
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); | ||
return [2 /*return*/, { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -251,2 +298,26 @@ }; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var localVarAxiosArgs; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, exports.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options)]; | ||
case 1: | ||
localVarAxiosArgs = _a.sent(); | ||
return [2 /*return*/, function (axios, basePath) { | ||
if (axios === void 0) { axios = axios_1.default; } | ||
if (basePath === void 0) { basePath = base_1.BASE_PATH; } | ||
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url }); | ||
return axios.request(axiosRequestArgs); | ||
}]; | ||
} | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -287,2 +358,15 @@ }; | ||
}, | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -332,4 +416,19 @@ }; | ||
}; | ||
/** | ||
* Performs a full withdrawal and closes position | ||
* @param {AutomationWithdrawAndCloseAutomationIxBody} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof MeteoraDLMMAutomationInstructionsApi | ||
*/ | ||
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost = function (body, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(this.configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
return MeteoraDLMMAutomationInstructionsApi; | ||
}(base_1.BaseAPI)); | ||
exports.MeteoraDLMMAutomationInstructionsApi = MeteoraDLMMAutomationInstructionsApi; |
@@ -7,2 +7,3 @@ export * from './account'; | ||
export * from './automation-rebalance-automation-ix-body'; | ||
export * from './automation-withdraw-and-close-automation-ix-body'; | ||
export * from './balance'; | ||
@@ -9,0 +10,0 @@ export * from './hawksight-pool'; |
@@ -23,2 +23,3 @@ "use strict"; | ||
__exportStar(require("./automation-rebalance-automation-ix-body"), exports); | ||
__exportStar(require("./automation-withdraw-and-close-automation-ix-body"), exports); | ||
__exportStar(require("./balance"), exports); | ||
@@ -25,0 +26,0 @@ __exportStar(require("./hawksight-pool"), exports); |
@@ -7,2 +7,3 @@ export * from './account'; | ||
export * from './automation-rebalance-automation-ix-body'; | ||
export * from './automation-withdraw-and-close-automation-ix-body'; | ||
export * from './balance'; | ||
@@ -9,0 +10,0 @@ export * from './hawksight-pool'; |
{ | ||
"name": "@hawksightco/swagger-client", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"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
725059
288
18870