|
@@ -9986,18 +9986,11 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
return {
|
|
|
/**
|
|
|
*
|
|
|
- * @param {string} id
|
|
|
- * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- editSharedLink: async (id: string, editSharedLinkDto: EditSharedLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- // verify required parameter 'id' is not null or undefined
|
|
|
- assertParamExists('editSharedLink', 'id', id)
|
|
|
- // verify required parameter 'editSharedLinkDto' is not null or undefined
|
|
|
- assertParamExists('editSharedLink', 'editSharedLinkDto', editSharedLinkDto)
|
|
|
- const localVarPath = `/share/{id}`
|
|
|
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
+ getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/share`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
let baseOptions;
|
|
@@ -10005,7 +9998,7 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
|
|
|
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
@@ -10020,12 +10013,9 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
|
|
|
|
|
|
|
|
|
- localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
|
-
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
- localVarRequestOptions.data = serializeDataIfNeeded(editSharedLinkDto, localVarRequestOptions, configuration)
|
|
|
|
|
|
return {
|
|
|
url: toPathString(localVarUrlObj),
|
|
@@ -10034,11 +10024,12 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
+ * @param {string} [key]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/share`;
|
|
|
+ getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ const localVarPath = `/share/me`;
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
let baseOptions;
|
|
@@ -10059,6 +10050,10 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
// http bearer authentication required
|
|
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
|
|
+ if (key !== undefined) {
|
|
|
+ localVarQueryParameter['key'] = key;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -10072,12 +10067,15 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
|
- * @param {string} [key]
|
|
|
+ * @param {string} id
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getMySharedLink: async (key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/share/me`;
|
|
|
+ getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
+ assertParamExists('getSharedLinkById', 'id', id)
|
|
|
+ const localVarPath = `/share/{id}`
|
|
|
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
let baseOptions;
|
|
@@ -10098,10 +10096,6 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
// http bearer authentication required
|
|
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
|
|
- if (key !== undefined) {
|
|
|
- localVarQueryParameter['key'] = key;
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -10119,9 +10113,9 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'id' is not null or undefined
|
|
|
- assertParamExists('getSharedLinkById', 'id', id)
|
|
|
+ assertParamExists('removeSharedLink', 'id', id)
|
|
|
const localVarPath = `/share/{id}`
|
|
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10131,7 +10125,7 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
|
|
|
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
@@ -10158,12 +10152,15 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
/**
|
|
|
*
|
|
|
* @param {string} id
|
|
|
+ * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ updateSharedLink: async (id: string, editSharedLinkDto: EditSharedLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'id' is not null or undefined
|
|
|
- assertParamExists('removeSharedLink', 'id', id)
|
|
|
+ assertParamExists('updateSharedLink', 'id', id)
|
|
|
+ // verify required parameter 'editSharedLinkDto' is not null or undefined
|
|
|
+ assertParamExists('updateSharedLink', 'editSharedLinkDto', editSharedLinkDto)
|
|
|
const localVarPath = `/share/{id}`
|
|
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10173,7 +10170,7 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
}
|
|
|
|
|
|
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
|
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
@@ -10188,9 +10185,12 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
|
|
|
|
|
|
|
|
|
+ localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
|
+
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+ localVarRequestOptions.data = serializeDataIfNeeded(editSharedLinkDto, localVarRequestOptions, configuration)
|
|
|
|
|
|
return {
|
|
|
url: toPathString(localVarUrlObj),
|
|
@@ -10207,17 +10207,6 @@ export const ShareApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
export const ShareApiFp = function(configuration?: Configuration) {
|
|
|
const localVarAxiosParamCreator = ShareApiAxiosParamCreator(configuration)
|
|
|
return {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {string} id
|
|
|
- * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- async editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.editSharedLink(id, editSharedLinkDto, options);
|
|
|
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
- },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -10257,6 +10246,17 @@ export const ShareApiFp = function(configuration?: Configuration) {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async updateSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, editSharedLinkDto, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -10267,16 +10267,6 @@ export const ShareApiFp = function(configuration?: Configuration) {
|
|
|
export const ShareApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
const localVarFp = ShareApiFp(configuration)
|
|
|
return {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {string} id
|
|
|
- * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
|
|
|
- return localVarFp.editSharedLink(id, editSharedLinkDto, options).then((request) => request(axios, basePath));
|
|
|
- },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -10312,30 +10302,19 @@ export const ShareApiFactory = function (configuration?: Configuration, basePath
|
|
|
removeSharedLink(id: string, options?: any): AxiosPromise<void> {
|
|
|
return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {string} id
|
|
|
+ * @param {EditSharedLinkDto} editSharedLinkDto
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ updateSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
|
|
|
+ return localVarFp.updateSharedLink(id, editSharedLinkDto, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-/**
|
|
|
- * Request parameters for editSharedLink operation in ShareApi.
|
|
|
- * @export
|
|
|
- * @interface ShareApiEditSharedLinkRequest
|
|
|
- */
|
|
|
-export interface ShareApiEditSharedLinkRequest {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof ShareApiEditSharedLink
|
|
|
- */
|
|
|
- readonly id: string
|
|
|
-
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {EditSharedLinkDto}
|
|
|
- * @memberof ShareApiEditSharedLink
|
|
|
- */
|
|
|
- readonly editSharedLinkDto: EditSharedLinkDto
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Request parameters for getMySharedLink operation in ShareApi.
|
|
|
* @export
|
|
@@ -10379,23 +10358,33 @@ export interface ShareApiRemoveSharedLinkRequest {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * ShareApi - object-oriented interface
|
|
|
+ * Request parameters for updateSharedLink operation in ShareApi.
|
|
|
* @export
|
|
|
- * @class ShareApi
|
|
|
- * @extends {BaseAPI}
|
|
|
+ * @interface ShareApiUpdateSharedLinkRequest
|
|
|
*/
|
|
|
-export class ShareApi extends BaseAPI {
|
|
|
+export interface ShareApiUpdateSharedLinkRequest {
|
|
|
/**
|
|
|
*
|
|
|
- * @param {ShareApiEditSharedLinkRequest} requestParameters Request parameters.
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- * @memberof ShareApi
|
|
|
+ * @type {string}
|
|
|
+ * @memberof ShareApiUpdateSharedLink
|
|
|
*/
|
|
|
- public editSharedLink(requestParameters: ShareApiEditSharedLinkRequest, options?: AxiosRequestConfig) {
|
|
|
- return ShareApiFp(this.configuration).editSharedLink(requestParameters.id, requestParameters.editSharedLinkDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
- }
|
|
|
+ readonly id: string
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {EditSharedLinkDto}
|
|
|
+ * @memberof ShareApiUpdateSharedLink
|
|
|
+ */
|
|
|
+ readonly editSharedLinkDto: EditSharedLinkDto
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * ShareApi - object-oriented interface
|
|
|
+ * @export
|
|
|
+ * @class ShareApi
|
|
|
+ * @extends {BaseAPI}
|
|
|
+ */
|
|
|
+export class ShareApi extends BaseAPI {
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -10438,6 +10427,17 @@ export class ShareApi extends BaseAPI {
|
|
|
public removeSharedLink(requestParameters: ShareApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
|
|
|
return ShareApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {ShareApiUpdateSharedLinkRequest} requestParameters Request parameters.
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof ShareApi
|
|
|
+ */
|
|
|
+ public updateSharedLink(requestParameters: ShareApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
|
|
|
+ return ShareApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.editSharedLinkDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|