@forestvpn/forestvpn_api
Advanced tools
Comparing version 3.7.7 to 3.7.8
@@ -29,90 +29,2 @@ /* tslint:disable */ | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new RequiredError('code','Required parameter code was null or undefined when calling acceptFriendshipInvitation.'); | ||
} | ||
const localVarPath = `/friendship/invitations/{code}/` | ||
.replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
// 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: 'PATCH', ...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 Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation: async (per_page?: number, page?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/friendship/invitations/`; | ||
// 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 (per_page !== undefined) { | ||
localVarQueryParameter['per_page'] = per_page; | ||
} | ||
if (page !== undefined) { | ||
localVarQueryParameter['page'] = page; | ||
} | ||
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 Delete friend | ||
@@ -202,14 +114,14 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new RequiredError('code','Required parameter code was null or undefined when calling getFriendshipInvitation.'); | ||
getInvitation: async (invitationID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'invitationID' is not null or undefined | ||
if (invitationID === null || invitationID === undefined) { | ||
throw new RequiredError('invitationID','Required parameter invitationID was null or undefined when calling getInvitation.'); | ||
} | ||
const localVarPath = `/friendship/invitations/{code}/` | ||
.replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
const localVarPath = `/friendship/invitations/{invitationID}/` | ||
.replace(`{${"invitationID"}}`, encodeURIComponent(String(invitationID))); | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
@@ -291,14 +203,8 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new RequiredError('code','Required parameter code was null or undefined when calling rejectFriendshipInvitation.'); | ||
} | ||
const localVarPath = `/friendship/invitations/{code}/` | ||
.replace(`{${"code"}}`, encodeURIComponent(String(code))); | ||
listFriendshipInvitation: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/friendship/invitations/`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
@@ -310,3 +216,3 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
} | ||
const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options}; | ||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
@@ -344,31 +250,2 @@ const localVarQueryParameter = {} as any; | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).acceptFriendshipInvitation(code, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).createFriendshipInvitation(per_page, page, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -402,9 +279,9 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).getFriendshipInvitation(code, options); | ||
async getInvitation(invitationID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).getInvitation(invitationID, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
@@ -432,9 +309,8 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).rejectFriendshipInvitation(code, options); | ||
async listFriendshipInvitation(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>> { | ||
const localVarAxiosArgs = await FriendshipApiAxiosParamCreator(configuration).listFriendshipInvitation(options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
@@ -456,23 +332,2 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> { | ||
return FriendshipApiFp(configuration).acceptFriendshipInvitation(code, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(configuration).createFriendshipInvitation(per_page, page, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -498,9 +353,9 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(configuration).getFriendshipInvitation(code, options).then((request) => request(axios, basePath)); | ||
async getInvitation(invitationID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(configuration).getInvitation(invitationID, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -520,9 +375,8 @@ /** | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> { | ||
return FriendshipApiFp(configuration).rejectFriendshipInvitation(code, options).then((request) => request(axios, basePath)); | ||
async listFriendshipInvitation(options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(configuration).listFriendshipInvitation(options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -541,25 +395,2 @@ }; | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
public async acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> { | ||
return FriendshipApiFp(this.configuration).acceptFriendshipInvitation(code, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
public async createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(this.configuration).createFriendshipInvitation(per_page, page, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -587,4 +418,4 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
@@ -594,4 +425,4 @@ * @throws {RequiredError} | ||
*/ | ||
public async getFriendshipInvitation(code: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(this.configuration).getFriendshipInvitation(code, options).then((request) => request(this.axios, this.basePath)); | ||
public async getInvitation(invitationID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(this.configuration).getInvitation(invitationID, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -612,4 +443,3 @@ /** | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
@@ -619,5 +449,5 @@ * @throws {RequiredError} | ||
*/ | ||
public async rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> { | ||
return FriendshipApiFp(this.configuration).rejectFriendshipInvitation(code, options).then((request) => request(this.axios, this.basePath)); | ||
public async listFriendshipInvitation(options?: AxiosRequestConfig) : Promise<AxiosResponse<FriendshipInvitation>> { | ||
return FriendshipApiFp(this.configuration).listFriendshipInvitation(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
@@ -28,15 +28,7 @@ /* tslint:disable */ | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm: async (id: string, data: Blob, url: string, mimetype: string, size: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'id' is not null or undefined | ||
if (id === null || id === undefined) { | ||
throw new RequiredError('id','Required parameter id was null or undefined when calling fileUploadForm.'); | ||
} | ||
fileUploadForm: async (data: Blob, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'data' is not null or undefined | ||
@@ -46,14 +38,2 @@ if (data === null || data === undefined) { | ||
} | ||
// verify required parameter 'url' is not null or undefined | ||
if (url === null || url === undefined) { | ||
throw new RequiredError('url','Required parameter url was null or undefined when calling fileUploadForm.'); | ||
} | ||
// verify required parameter 'mimetype' is not null or undefined | ||
if (mimetype === null || mimetype === undefined) { | ||
throw new RequiredError('mimetype','Required parameter mimetype was null or undefined when calling fileUploadForm.'); | ||
} | ||
// verify required parameter 'size' is not null or undefined | ||
if (size === null || size === undefined) { | ||
throw new RequiredError('size','Required parameter size was null or undefined when calling fileUploadForm.'); | ||
} | ||
const localVarPath = `/files/`; | ||
@@ -74,6 +54,2 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
if (id !== undefined) { | ||
localVarFormParams.append('id', id as any); | ||
} | ||
if (data !== undefined) { | ||
@@ -83,14 +59,2 @@ localVarFormParams.append('data', data as any); | ||
if (url !== undefined) { | ||
localVarFormParams.append('url', url as any); | ||
} | ||
if (mimetype !== undefined) { | ||
localVarFormParams.append('mimetype', mimetype as any); | ||
} | ||
if (size !== undefined) { | ||
localVarFormParams.append('size', size as any); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; | ||
@@ -126,12 +90,8 @@ const query = new URLSearchParams(localVarUrlObj.search); | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> { | ||
const localVarAxiosArgs = await MediaApiAxiosParamCreator(configuration).fileUploadForm(id, data, url, mimetype, size, options); | ||
async fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> { | ||
const localVarAxiosArgs = await MediaApiAxiosParamCreator(configuration).fileUploadForm(data, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
@@ -154,12 +114,8 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>> { | ||
return MediaApiFp(configuration).fileUploadForm(id, data, url, mimetype, size, options).then((request) => request(axios, basePath)); | ||
async fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>> { | ||
return MediaApiFp(configuration).fileUploadForm(data, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -179,7 +135,3 @@ }; | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
@@ -189,5 +141,5 @@ * @throws {RequiredError} | ||
*/ | ||
public async fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> { | ||
return MediaApiFp(this.configuration).fileUploadForm(id, data, url, mimetype, size, options).then((request) => request(this.axios, this.basePath)); | ||
public async fileUploadForm(data: Blob, options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> { | ||
return MediaApiFp(this.configuration).fileUploadForm(data, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
@@ -223,3 +223,3 @@ /* tslint:disable */ | ||
*/ | ||
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<NotificationAllList>>> { | ||
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<NotificationAllList>>>> { | ||
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).listNotifications(limit, offset, type, options); | ||
@@ -285,3 +285,3 @@ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
*/ | ||
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>> { | ||
async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>> { | ||
return NotificationsApiFp(configuration).listNotifications(limit, offset, type, options).then((request) => request(axios, basePath)); | ||
@@ -338,3 +338,3 @@ }, | ||
*/ | ||
public async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<NotificationAllList>> { | ||
public async listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<NotificationAllList>>> { | ||
return NotificationsApiFp(this.configuration).listNotifications(limit, offset, type, options).then((request) => request(this.axios, this.basePath)); | ||
@@ -341,0 +341,0 @@ } |
@@ -24,19 +24,2 @@ /** | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation: (code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation: (per_page?: number, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -58,8 +41,8 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation: (code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
getInvitation: (invitationID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
@@ -76,8 +59,7 @@ * | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation: (code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
listFriendshipInvitation: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -91,19 +73,2 @@ /** | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>; | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>>; | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -125,8 +90,8 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>>; | ||
getInvitation(invitationID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>>; | ||
/** | ||
@@ -143,8 +108,7 @@ * | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>; | ||
listFriendshipInvitation(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<FriendshipInvitation>>>; | ||
}; | ||
@@ -158,19 +122,2 @@ /** | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -192,8 +139,8 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
getInvitation(invitationID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
/** | ||
@@ -210,8 +157,7 @@ * | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
listFriendshipInvitation(options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
}; | ||
@@ -227,21 +173,2 @@ /** | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
acceptFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
createFriendshipInvitation(per_page?: number, page?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -265,4 +192,4 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
@@ -272,3 +199,3 @@ * @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
getInvitation(invitationID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
/** | ||
@@ -286,4 +213,3 @@ * | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
@@ -293,3 +219,3 @@ * @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation(code: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>; | ||
listFriendshipInvitation(options?: AxiosRequestConfig): Promise<AxiosResponse<FriendshipInvitation>>; | ||
} |
@@ -90,89 +90,2 @@ "use strict"; | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation: function (code, 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) { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new base_1.RequiredError('code', 'Required parameter code was null or undefined when calling acceptFriendshipInvitation.'); | ||
} | ||
localVarPath = "/friendship/invitations/{code}/" | ||
.replace("{" + "code" + "}", encodeURIComponent(String(code))); | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, 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 Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation: function (per_page, page, 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 = "/friendship/invitations/"; | ||
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 (per_page !== undefined) { | ||
localVarQueryParameter['per_page'] = per_page; | ||
} | ||
if (page !== undefined) { | ||
localVarQueryParameter['page'] = page; | ||
} | ||
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 Delete friend | ||
@@ -262,8 +175,8 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation: function (code, options) { | ||
getInvitation: function (invitationID, options) { | ||
if (options === void 0) { options = {}; } | ||
@@ -273,8 +186,8 @@ return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new base_1.RequiredError('code', 'Required parameter code was null or undefined when calling getFriendshipInvitation.'); | ||
// verify required parameter 'invitationID' is not null or undefined | ||
if (invitationID === null || invitationID === undefined) { | ||
throw new base_1.RequiredError('invitationID', 'Required parameter invitationID was null or undefined when calling getInvitation.'); | ||
} | ||
localVarPath = "/friendship/invitations/{code}/" | ||
.replace("{" + "code" + "}", encodeURIComponent(String(code))); | ||
localVarPath = "/friendship/invitations/{invitationID}/" | ||
.replace("{" + "invitationID" + "}", encodeURIComponent(String(invitationID))); | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
@@ -351,8 +264,7 @@ if (configuration) { | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation: function (code, options) { | ||
listFriendshipInvitation: function (options) { | ||
if (options === void 0) { options = {}; } | ||
@@ -362,8 +274,3 @@ return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
// verify required parameter 'code' is not null or undefined | ||
if (code === null || code === undefined) { | ||
throw new base_1.RequiredError('code', 'Required parameter code was null or undefined when calling rejectFriendshipInvitation.'); | ||
} | ||
localVarPath = "/friendship/invitations/{code}/" | ||
.replace("{" + "code" + "}", encodeURIComponent(String(code))); | ||
localVarPath = "/friendship/invitations/"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
@@ -373,3 +280,3 @@ if (configuration) { | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options); | ||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
@@ -404,53 +311,2 @@ localVarQueryParameter = {}; | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation: function (code, 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.FriendshipApiAxiosParamCreator(configuration).acceptFriendshipInvitation(code, 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 Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation: function (per_page, page, 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.FriendshipApiAxiosParamCreator(configuration).createFriendshipInvitation(per_page, page, 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 Delete friend | ||
@@ -506,8 +362,8 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation: function (code, options) { | ||
getInvitation: function (invitationID, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -517,3 +373,3 @@ var localVarAxiosArgs; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, exports.FriendshipApiAxiosParamCreator(configuration).getFriendshipInvitation(code, options)]; | ||
case 0: return [4 /*yield*/, exports.FriendshipApiAxiosParamCreator(configuration).getInvitation(invitationID, options)]; | ||
case 1: | ||
@@ -559,8 +415,7 @@ localVarAxiosArgs = _a.sent(); | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation: function (code, options) { | ||
listFriendshipInvitation: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -570,3 +425,3 @@ var localVarAxiosArgs; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, exports.FriendshipApiAxiosParamCreator(configuration).rejectFriendshipInvitation(code, options)]; | ||
case 0: return [4 /*yield*/, exports.FriendshipApiAxiosParamCreator(configuration).listFriendshipInvitation(options)]; | ||
case 1: | ||
@@ -594,31 +449,2 @@ localVarAxiosArgs = _a.sent(); | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
acceptFriendshipInvitation: function (code, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).acceptFriendshipInvitation(code, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createFriendshipInvitation: function (per_page, page, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).createFriendshipInvitation(per_page, page, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -652,11 +478,11 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFriendshipInvitation: function (code, options) { | ||
getInvitation: function (invitationID, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).getFriendshipInvitation(code, options).then(function (request) { return request(axios, basePath); })]; | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).getInvitation(invitationID, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
@@ -682,11 +508,10 @@ }); | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
rejectFriendshipInvitation: function (code, options) { | ||
listFriendshipInvitation: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).rejectFriendshipInvitation(code, options).then(function (request) { return request(axios, basePath); })]; | ||
return [2 /*return*/, exports.FriendshipApiFp(configuration).listFriendshipInvitation(options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
@@ -710,35 +535,2 @@ }); | ||
* | ||
* @summary Accept friendship invitation | ||
* @param {string} code | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
FriendshipApi.prototype.acceptFriendshipInvitation = function (code, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).acceptFriendshipInvitation(code, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* | ||
* @summary Create friendship invitation | ||
* @param {number} [per_page] | ||
* @param {number} [page] | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof FriendshipApi | ||
*/ | ||
FriendshipApi.prototype.createFriendshipInvitation = function (per_page, page, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).createFriendshipInvitation(per_page, page, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* | ||
* @summary Delete friend | ||
@@ -776,4 +568,4 @@ * @param {string} id | ||
* | ||
* @summary Friendship invitation details | ||
* @param {string} code | ||
* @summary Ivitation detail | ||
* @param {string} invitationID | ||
* @param {*} [options] Override http request option. | ||
@@ -783,7 +575,7 @@ * @throws {RequiredError} | ||
*/ | ||
FriendshipApi.prototype.getFriendshipInvitation = function (code, options) { | ||
FriendshipApi.prototype.getInvitation = function (invitationID, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).getFriendshipInvitation(code, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).getInvitation(invitationID, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
@@ -811,4 +603,3 @@ }); | ||
* | ||
* @summary Reject friendship invitation | ||
* @param {string} code | ||
* @summary Friendship invitations list | ||
* @param {*} [options] Override http request option. | ||
@@ -818,7 +609,7 @@ * @throws {RequiredError} | ||
*/ | ||
FriendshipApi.prototype.rejectFriendshipInvitation = function (code, options) { | ||
FriendshipApi.prototype.listFriendshipInvitation = function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).rejectFriendshipInvitation(code, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
return [2 /*return*/, exports.FriendshipApiFp(this.configuration).listFriendshipInvitation(options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
@@ -825,0 +616,0 @@ }); |
@@ -23,11 +23,7 @@ /** | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm: (id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
fileUploadForm: (data: Blob, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -42,11 +38,7 @@ /** | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>; | ||
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>; | ||
}; | ||
@@ -61,11 +53,7 @@ /** | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>; | ||
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>; | ||
}; | ||
@@ -82,7 +70,3 @@ /** | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
@@ -92,3 +76,3 @@ * @throws {RequiredError} | ||
*/ | ||
fileUploadForm(id: string, data: Blob, url: string, mimetype: string, size: number, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>; | ||
fileUploadForm(data: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>; | ||
} |
@@ -91,11 +91,7 @@ "use strict"; | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm: function (id, data, url, mimetype, size, options) { | ||
fileUploadForm: function (data, options) { | ||
if (options === void 0) { options = {}; } | ||
@@ -105,6 +101,2 @@ return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
// verify required parameter 'id' is not null or undefined | ||
if (id === null || id === undefined) { | ||
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling fileUploadForm.'); | ||
} | ||
// verify required parameter 'data' is not null or undefined | ||
@@ -114,14 +106,2 @@ if (data === null || data === undefined) { | ||
} | ||
// verify required parameter 'url' is not null or undefined | ||
if (url === null || url === undefined) { | ||
throw new base_1.RequiredError('url', 'Required parameter url was null or undefined when calling fileUploadForm.'); | ||
} | ||
// verify required parameter 'mimetype' is not null or undefined | ||
if (mimetype === null || mimetype === undefined) { | ||
throw new base_1.RequiredError('mimetype', 'Required parameter mimetype was null or undefined when calling fileUploadForm.'); | ||
} | ||
// verify required parameter 'size' is not null or undefined | ||
if (size === null || size === undefined) { | ||
throw new base_1.RequiredError('size', 'Required parameter size was null or undefined when calling fileUploadForm.'); | ||
} | ||
localVarPath = "/files/"; | ||
@@ -137,17 +117,5 @@ localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
// authentication bearerAuth required | ||
if (id !== undefined) { | ||
localVarFormParams.append('id', id); | ||
} | ||
if (data !== undefined) { | ||
localVarFormParams.append('data', data); | ||
} | ||
if (url !== undefined) { | ||
localVarFormParams.append('url', url); | ||
} | ||
if (mimetype !== undefined) { | ||
localVarFormParams.append('mimetype', mimetype); | ||
} | ||
if (size !== undefined) { | ||
localVarFormParams.append('size', size); | ||
} | ||
localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; | ||
@@ -183,11 +151,7 @@ query = new URLSearchParams(localVarUrlObj.search); | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm: function (id, data, url, mimetype, size, options) { | ||
fileUploadForm: function (data, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -197,3 +161,3 @@ var localVarAxiosArgs; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, exports.MediaApiAxiosParamCreator(configuration).fileUploadForm(id, data, url, mimetype, size, options)]; | ||
case 0: return [4 /*yield*/, exports.MediaApiAxiosParamCreator(configuration).fileUploadForm(data, options)]; | ||
case 1: | ||
@@ -222,14 +186,10 @@ localVarAxiosArgs = _a.sent(); | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
fileUploadForm: function (id, data, url, mimetype, size, options) { | ||
fileUploadForm: function (data, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.MediaApiFp(configuration).fileUploadForm(id, data, url, mimetype, size, options).then(function (request) { return request(axios, basePath); })]; | ||
return [2 /*return*/, exports.MediaApiFp(configuration).fileUploadForm(data, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
@@ -254,7 +214,3 @@ }); | ||
* @summary Upload a file | ||
* @param {string} id | ||
* @param {Blob} data | ||
* @param {string} url | ||
* @param {string} mimetype | ||
* @param {number} size | ||
* @param {*} [options] Override http request option. | ||
@@ -264,7 +220,7 @@ * @throws {RequiredError} | ||
*/ | ||
MediaApi.prototype.fileUploadForm = function (id, data, url, mimetype, size, options) { | ||
MediaApi.prototype.fileUploadForm = function (data, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.MediaApiFp(this.configuration).fileUploadForm(id, data, url, mimetype, size, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
return [2 /*return*/, exports.MediaApiFp(this.configuration).fileUploadForm(data, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
@@ -271,0 +227,0 @@ }); |
@@ -76,3 +76,3 @@ /** | ||
*/ | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<NotificationAllList>>>; | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<NotificationAllList>>>>; | ||
/** | ||
@@ -115,3 +115,3 @@ * | ||
*/ | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>>; | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>>; | ||
/** | ||
@@ -158,3 +158,3 @@ * | ||
*/ | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<NotificationAllList>>; | ||
listNotifications(limit?: number, offset?: number, type?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<NotificationAllList>>>; | ||
/** | ||
@@ -161,0 +161,0 @@ * |
@@ -46,2 +46,3 @@ export * from './access-token-request'; | ||
export * from './fcmdevice'; | ||
export * from './file-request'; | ||
export * from './friendship'; | ||
@@ -48,0 +49,0 @@ export * from './friendship-invitation'; |
@@ -58,2 +58,3 @@ "use strict"; | ||
__exportStar(require("./fcmdevice"), exports); | ||
__exportStar(require("./file-request"), exports); | ||
__exportStar(require("./friendship"), exports); | ||
@@ -60,0 +61,0 @@ __exportStar(require("./friendship-invitation"), exports); |
@@ -91,2 +91,14 @@ /** | ||
environments?: Array<Environment> | null; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
ref?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
registration_ref?: string; | ||
} |
@@ -46,2 +46,3 @@ export * from './access-token-request'; | ||
export * from './fcmdevice'; | ||
export * from './file-request'; | ||
export * from './friendship'; | ||
@@ -48,0 +49,0 @@ export * from './friendship-invitation'; |
@@ -93,2 +93,14 @@ /* tslint:disable */ | ||
environments?: Array<Environment> | null; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
ref?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof User | ||
*/ | ||
registration_ref?: string; | ||
} |
{ | ||
"name": "@forestvpn/forestvpn_api", | ||
"version": "3.7.7", | ||
"version": "3.7.8", | ||
"description": "A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)", | ||
@@ -5,0 +5,0 @@ "author": "ForestVPN", |
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
358
1400569
32583