@forestvpn/forestvpn_api
Advanced tools
Comparing version 3.9.3 to 3.10.0
@@ -29,2 +29,3 @@ /* tslint:disable */ | ||
export * from './apis/notifications-api'; | ||
export * from './apis/referral-api'; | ||
export * from './apis/support-api'; | ||
@@ -31,0 +32,0 @@ export * from './apis/user-api'; |
@@ -20,2 +20,4 @@ /* tslint:disable */ | ||
import { TicketCategory } from '../models'; | ||
import { UsageIssue } from '../models'; | ||
import { UsageReport } from '../models'; | ||
/** | ||
@@ -97,2 +99,61 @@ * SupportApi - axios parameter creator | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm: async (text: string, issues: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'text' is not null or undefined | ||
if (text === null || text === undefined) { | ||
throw new RequiredError('text','Required parameter text was null or undefined when calling createUsageReportForm.'); | ||
} | ||
// verify required parameter 'issues' is not null or undefined | ||
if (issues === null || issues === undefined) { | ||
throw new RequiredError('issues','Required parameter issues was null or undefined when calling createUsageReportForm.'); | ||
} | ||
const localVarPath = `/support/reports/`; | ||
// 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; | ||
const localVarFormParams = new FormData(); | ||
// authentication bearerAuth required | ||
if (text !== undefined) { | ||
localVarFormParams.append('text', text as any); | ||
} | ||
if (issues) { | ||
issues.forEach((element) => { | ||
localVarFormParams.append('issues', element as any); | ||
}) | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; | ||
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}; | ||
localVarRequestOptions.data = localVarFormParams; | ||
return { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -132,2 +193,74 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/support/issue-types/`; | ||
// 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: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
// authentication bearerAuth required | ||
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 Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/support/reports/`; | ||
// 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: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
// authentication bearerAuth required | ||
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, | ||
}; | ||
}, | ||
} | ||
@@ -160,2 +293,17 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> { | ||
const localVarAxiosArgs = await SupportApiAxiosParamCreator(configuration).createUsageReportForm(text, issues, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -172,2 +320,28 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listUsageIssues(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<UsageIssue>>>> { | ||
const localVarAxiosArgs = await SupportApiAxiosParamCreator(configuration).listUsageIssues(options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listUsageReports(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<UsageReport>>>> { | ||
const localVarAxiosArgs = await SupportApiAxiosParamCreator(configuration).listUsageReports(options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
} | ||
@@ -196,2 +370,13 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> { | ||
return SupportApiFp(configuration).createUsageReportForm(text, issues, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -204,2 +389,20 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listUsageIssues(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageIssue>>> { | ||
return SupportApiFp(configuration).listUsageIssues(options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listUsageReports(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageReport>>> { | ||
return SupportApiFp(configuration).listUsageReports(options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
@@ -230,2 +433,14 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
public async createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> { | ||
return SupportApiFp(this.configuration).createUsageReportForm(text, issues, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -239,2 +454,22 @@ * @param {*} [options] Override http request option. | ||
} | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
public async listUsageIssues(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<UsageIssue>>> { | ||
return SupportApiFp(this.configuration).listUsageIssues(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
public async listUsageReports(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<UsageReport>>> { | ||
return SupportApiFp(this.configuration).listUsageReports(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
@@ -27,4 +27,5 @@ /** | ||
export * from './apis/notifications-api'; | ||
export * from './apis/referral-api'; | ||
export * from './apis/support-api'; | ||
export * from './apis/user-api'; | ||
export * from './apis/wireguard-api'; |
@@ -41,4 +41,5 @@ "use strict"; | ||
__exportStar(require("./apis/notifications-api"), exports); | ||
__exportStar(require("./apis/referral-api"), exports); | ||
__exportStar(require("./apis/support-api"), exports); | ||
__exportStar(require("./apis/user-api"), exports); | ||
__exportStar(require("./apis/wireguard-api"), exports); |
@@ -16,2 +16,4 @@ /** | ||
import { TicketCategory } from '../models'; | ||
import { UsageIssue } from '../models'; | ||
import { UsageReport } from '../models'; | ||
/** | ||
@@ -34,2 +36,11 @@ * SupportApi - axios parameter creator | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm: (text: string, issues: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -40,2 +51,16 @@ * @param {*} [options] Override http request option. | ||
getSupportTicketCategory: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -59,2 +84,11 @@ /** | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>; | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -65,2 +99,16 @@ * @param {*} [options] Override http request option. | ||
getSupportTicketCategory(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<TicketCategory>>>>; | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<UsageIssue>>>>; | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<UsageReport>>>>; | ||
}; | ||
@@ -84,2 +132,11 @@ /** | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -90,2 +147,16 @@ * @param {*} [options] Override http request option. | ||
getSupportTicketCategory(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<TicketCategory>>>; | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageIssue>>>; | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageReport>>>; | ||
}; | ||
@@ -112,2 +183,12 @@ /** | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
createUsageReportForm(text: string, issues: Array<string>, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -119,2 +200,18 @@ * @param {*} [options] Override http request option. | ||
getSupportTicketCategory(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<TicketCategory>>>; | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
listUsageIssues(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageIssue>>>; | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
listUsageReports(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<UsageReport>>>; | ||
} |
@@ -156,2 +156,60 @@ "use strict"; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm: function (text, issues, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, query, key, key, headersFromBaseOptions; | ||
return __generator(this, function (_a) { | ||
// verify required parameter 'text' is not null or undefined | ||
if (text === null || text === undefined) { | ||
throw new base_1.RequiredError('text', 'Required parameter text was null or undefined when calling createUsageReportForm.'); | ||
} | ||
// verify required parameter 'issues' is not null or undefined | ||
if (issues === null || issues === undefined) { | ||
throw new base_1.RequiredError('issues', 'Required parameter issues was null or undefined when calling createUsageReportForm.'); | ||
} | ||
localVarPath = "/support/reports/"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
localVarFormParams = new FormData(); | ||
// authentication bearerAuth required | ||
if (text !== undefined) { | ||
localVarFormParams.append('text', text); | ||
} | ||
if (issues) { | ||
issues.forEach(function (element) { | ||
localVarFormParams.append('issues', element); | ||
}); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; | ||
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); | ||
localVarRequestOptions.data = localVarFormParams; | ||
return [2 /*return*/, { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -191,2 +249,74 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues: function (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 = "/support/issue-types/"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
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 Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports: function (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 = "/support/reports/"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
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, | ||
}]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -229,2 +359,28 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm: function (text, issues, 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.SupportApiAxiosParamCreator(configuration).createUsageReportForm(text, issues, 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 Get ticket categories | ||
@@ -252,2 +408,50 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues: function (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.SupportApiAxiosParamCreator(configuration).listUsageIssues(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 Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports: function (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.SupportApiAxiosParamCreator(configuration).listUsageReports(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); | ||
}]; | ||
} | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -279,2 +483,17 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUsageReportForm: function (text, issues, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(configuration).createUsageReportForm(text, issues, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -291,2 +510,28 @@ * @param {*} [options] Override http request option. | ||
}, | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageIssues: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(configuration).listUsageIssues(options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUsageReports: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(configuration).listUsageReports(options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -325,2 +570,19 @@ }; | ||
* | ||
* @summary Create usage report | ||
* @param {string} text | ||
* @param {Array<string>} issues | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
SupportApi.prototype.createUsageReportForm = function (text, issues, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(this.configuration).createUsageReportForm(text, issues, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* | ||
* @summary Get ticket categories | ||
@@ -339,4 +601,34 @@ * @param {*} [options] Override http request option. | ||
}; | ||
/** | ||
* | ||
* @summary Usage Issue list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
SupportApi.prototype.listUsageIssues = function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(this.configuration).listUsageIssues(options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* | ||
* @summary Usage Report list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SupportApi | ||
*/ | ||
SupportApi.prototype.listUsageReports = function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.SupportApiFp(this.configuration).listUsageReports(options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
return SupportApi; | ||
}(base_1.BaseAPI)); | ||
exports.SupportApi = SupportApi; |
@@ -9,2 +9,3 @@ export * from './access-token-request'; | ||
export * from './app-store-receipt-verification-request'; | ||
export * from './apply-referral-code-request'; | ||
export * from './architecture'; | ||
@@ -37,2 +38,3 @@ export * from './billing-account'; | ||
export * from './create-token-login'; | ||
export * from './create-usage-report'; | ||
export * from './currency'; | ||
@@ -72,3 +74,8 @@ export * from './device'; | ||
export * from './product-without-price'; | ||
export * from './public-user'; | ||
export * from './recurring'; | ||
export * from './referral'; | ||
export * from './referral-balance-item'; | ||
export * from './referral-profile'; | ||
export * from './referral-transaction'; | ||
export * from './server'; | ||
@@ -89,2 +96,4 @@ export * from './source-code'; | ||
export * from './update-user-device-request'; | ||
export * from './usage-issue'; | ||
export * from './usage-report'; | ||
export * from './user'; | ||
@@ -91,0 +100,0 @@ export * from './user-agent'; |
@@ -21,2 +21,3 @@ "use strict"; | ||
__exportStar(require("./app-store-receipt-verification-request"), exports); | ||
__exportStar(require("./apply-referral-code-request"), exports); | ||
__exportStar(require("./architecture"), exports); | ||
@@ -49,2 +50,3 @@ __exportStar(require("./billing-account"), exports); | ||
__exportStar(require("./create-token-login"), exports); | ||
__exportStar(require("./create-usage-report"), exports); | ||
__exportStar(require("./currency"), exports); | ||
@@ -84,3 +86,8 @@ __exportStar(require("./device"), exports); | ||
__exportStar(require("./product-without-price"), exports); | ||
__exportStar(require("./public-user"), exports); | ||
__exportStar(require("./recurring"), exports); | ||
__exportStar(require("./referral"), exports); | ||
__exportStar(require("./referral-balance-item"), exports); | ||
__exportStar(require("./referral-profile"), exports); | ||
__exportStar(require("./referral-transaction"), exports); | ||
__exportStar(require("./server"), exports); | ||
@@ -101,2 +108,4 @@ __exportStar(require("./source-code"), exports); | ||
__exportStar(require("./update-user-device-request"), exports); | ||
__exportStar(require("./usage-issue"), exports); | ||
__exportStar(require("./usage-report"), exports); | ||
__exportStar(require("./user"), exports); | ||
@@ -103,0 +112,0 @@ __exportStar(require("./user-agent"), exports); |
@@ -83,6 +83,6 @@ /** | ||
* | ||
* @type {Task} | ||
* @type {Array<Task>} | ||
* @memberof ModelFunction | ||
*/ | ||
task?: Task | null; | ||
tasks?: Array<Task> | null; | ||
} |
@@ -12,3 +12,2 @@ /** | ||
*/ | ||
import { Environment } from './environment'; | ||
/** | ||
@@ -31,8 +30,2 @@ * | ||
*/ | ||
promo_code?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
username: string; | ||
@@ -74,3 +67,3 @@ /** | ||
*/ | ||
date_joined?: Date; | ||
date_joined: Date; | ||
/** | ||
@@ -90,12 +83,6 @@ * | ||
* | ||
* @type {Array<Environment>} | ||
* @memberof User | ||
*/ | ||
environments?: Array<Environment> | null; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
ref?: string; | ||
language?: string; | ||
/** | ||
@@ -106,15 +93,3 @@ * | ||
*/ | ||
registration_ref?: string; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof User | ||
*/ | ||
invites?: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof User | ||
*/ | ||
accepted_invites?: number; | ||
timezone?: string; | ||
} |
@@ -9,2 +9,3 @@ export * from './access-token-request'; | ||
export * from './app-store-receipt-verification-request'; | ||
export * from './apply-referral-code-request'; | ||
export * from './architecture'; | ||
@@ -37,2 +38,3 @@ export * from './billing-account'; | ||
export * from './create-token-login'; | ||
export * from './create-usage-report'; | ||
export * from './currency'; | ||
@@ -72,3 +74,8 @@ export * from './device'; | ||
export * from './product-without-price'; | ||
export * from './public-user'; | ||
export * from './recurring'; | ||
export * from './referral'; | ||
export * from './referral-balance-item'; | ||
export * from './referral-profile'; | ||
export * from './referral-transaction'; | ||
export * from './server'; | ||
@@ -89,2 +96,4 @@ export * from './source-code'; | ||
export * from './update-user-device-request'; | ||
export * from './usage-issue'; | ||
export * from './usage-report'; | ||
export * from './user'; | ||
@@ -91,0 +100,0 @@ export * from './user-agent'; |
@@ -85,6 +85,6 @@ /* tslint:disable */ | ||
* | ||
* @type {Task} | ||
* @type {Array<Task>} | ||
* @memberof ModelFunction | ||
*/ | ||
task?: Task | null; | ||
tasks?: Array<Task> | null; | ||
} |
@@ -14,3 +14,2 @@ /* tslint:disable */ | ||
*/ | ||
import { Environment } from './environment'; | ||
/** | ||
@@ -33,8 +32,2 @@ * | ||
*/ | ||
promo_code?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
username: string; | ||
@@ -76,3 +69,3 @@ /** | ||
*/ | ||
date_joined?: Date; | ||
date_joined: Date; | ||
/** | ||
@@ -92,12 +85,6 @@ * | ||
* | ||
* @type {Array<Environment>} | ||
* @memberof User | ||
*/ | ||
environments?: Array<Environment> | null; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
ref?: string; | ||
language?: string; | ||
/** | ||
@@ -108,15 +95,3 @@ * | ||
*/ | ||
registration_ref?: string; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof User | ||
*/ | ||
invites?: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof User | ||
*/ | ||
accepted_invites?: number; | ||
timezone?: string; | ||
} |
{ | ||
"name": "@forestvpn/forestvpn_api", | ||
"version": "3.9.3", | ||
"version": "3.10.0", | ||
"description": "A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)", | ||
@@ -5,0 +5,0 @@ "author": "ForestVPN", |
Sorry, the diff of this file is not supported yet
1634454
412
38140