Socket
Socket
Sign inDemoInstall

@forestvpn/forestvpn_api

Package Overview
Dependencies
2
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.3 to 3.2.4

76

apis/checkout-api.ts

@@ -129,2 +129,43 @@ /* tslint:disable */

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest: async (X_Country?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/checkout/wait-list/`;
// 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;
// authentication bearerAuth required
if (X_Country !== undefined && X_Country !== null) {
localVarHeaderParameter['X-Country'] = String(X_Country);
}
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};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary Expire checkout session

@@ -448,2 +489,16 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
const localVarAxiosArgs = await CheckoutApiAxiosParamCreator(configuration).createWaitListRequest(X_Country, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary Expire checkout session

@@ -567,2 +622,12 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
return CheckoutApiFp(configuration).createWaitListRequest(X_Country, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Expire checkout session

@@ -665,2 +730,13 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutApi
*/
public async createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
return CheckoutApiFp(this.configuration).createWaitListRequest(X_Country, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Expire checkout session

@@ -667,0 +743,0 @@ * @param {string} sessionID

@@ -49,2 +49,10 @@ /**

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest: (X_Country?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Expire checkout session

@@ -125,2 +133,10 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
/**
*
* @summary Expire checkout session

@@ -201,2 +217,10 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
/**
*
* @summary Expire checkout session

@@ -281,2 +305,11 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutApi
*/
createWaitListRequest(X_Country?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
/**
*
* @summary Expire checkout session

@@ -283,0 +316,0 @@ * @param {string} sessionID

@@ -182,2 +182,43 @@ "use strict";

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest: function (X_Country, options) {
if (options === void 0) { options = {}; }
return __awaiter(_this, void 0, void 0, function () {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
return __generator(this, function (_a) {
localVarPath = "/checkout/wait-list/";
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication bearerAuth required
if (X_Country !== undefined && X_Country !== null) {
localVarHeaderParameter['X-Country'] = String(X_Country);
}
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);
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
/**
*
* @summary Expire checkout session

@@ -521,2 +562,27 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest: function (X_Country, options) {
return __awaiter(this, void 0, void 0, function () {
var localVarAxiosArgs;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, exports.CheckoutApiAxiosParamCreator(configuration).createWaitListRequest(X_Country, 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);
}];
}
});
});
},
/**
*
* @summary Expire checkout session

@@ -713,2 +779,16 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createWaitListRequest: function (X_Country, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, exports.CheckoutApiFp(configuration).createWaitListRequest(X_Country, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
*
* @summary Expire checkout session

@@ -848,2 +928,18 @@ * @param {string} sessionID

*
* @summary Create request to add country in wait list
* @param {string} [X_Country]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutApi
*/
CheckoutApi.prototype.createWaitListRequest = function (X_Country, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, exports.CheckoutApiFp(this.configuration).createWaitListRequest(X_Country, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
*
* @summary Expire checkout session

@@ -850,0 +946,0 @@ * @param {string} sessionID

2

package.json
{
"name": "@forestvpn/forestvpn_api",
"version": "3.2.3",
"version": "3.2.4",
"description": "A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)",

@@ -5,0 +5,0 @@ "author": "ForestVPN",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc