|
@@ -295,6 +295,12 @@ export interface AllJobStatusResponseDto {
|
|
* @memberof AllJobStatusResponseDto
|
|
* @memberof AllJobStatusResponseDto
|
|
*/
|
|
*/
|
|
'clipEncoding': JobStatusDto;
|
|
'clipEncoding': JobStatusDto;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {JobStatusDto}
|
|
|
|
+ * @memberof AllJobStatusResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'library': JobStatusDto;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {JobStatusDto}
|
|
* @type {JobStatusDto}
|
|
@@ -621,12 +627,36 @@ export interface AssetResponseDto {
|
|
* @memberof AssetResponseDto
|
|
* @memberof AssetResponseDto
|
|
*/
|
|
*/
|
|
'isArchived': boolean;
|
|
'isArchived': boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof AssetResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'isExternal': boolean;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
* @memberof AssetResponseDto
|
|
* @memberof AssetResponseDto
|
|
*/
|
|
*/
|
|
'isFavorite': boolean;
|
|
'isFavorite': boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof AssetResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'isOffline': boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof AssetResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'isReadOnly': boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof AssetResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'libraryId': string;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {string}
|
|
* @type {string}
|
|
@@ -1097,6 +1127,45 @@ export interface CreateAlbumDto {
|
|
*/
|
|
*/
|
|
'sharedWithUserIds'?: Array<string>;
|
|
'sharedWithUserIds'?: Array<string>;
|
|
}
|
|
}
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+export interface CreateLibraryDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'exclusionPatterns'?: Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'importPaths'?: Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'isVisible'?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'name'?: string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {LibraryType}
|
|
|
|
+ * @memberof CreateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'type': LibraryType;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @export
|
|
* @export
|
|
@@ -1572,12 +1641,24 @@ export interface ImportAssetDto {
|
|
* @memberof ImportAssetDto
|
|
* @memberof ImportAssetDto
|
|
*/
|
|
*/
|
|
'isArchived'?: boolean;
|
|
'isArchived'?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof ImportAssetDto
|
|
|
|
+ */
|
|
|
|
+ 'isExternal'?: boolean;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
* @memberof ImportAssetDto
|
|
* @memberof ImportAssetDto
|
|
*/
|
|
*/
|
|
'isFavorite': boolean;
|
|
'isFavorite': boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof ImportAssetDto
|
|
|
|
+ */
|
|
|
|
+ 'isOffline'?: boolean;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
@@ -1590,6 +1671,12 @@ export interface ImportAssetDto {
|
|
* @memberof ImportAssetDto
|
|
* @memberof ImportAssetDto
|
|
*/
|
|
*/
|
|
'isVisible'?: boolean;
|
|
'isVisible'?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof ImportAssetDto
|
|
|
|
+ */
|
|
|
|
+ 'libraryId'?: string;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {string}
|
|
* @type {string}
|
|
@@ -1693,7 +1780,8 @@ export const JobName = {
|
|
BackgroundTask: 'backgroundTask',
|
|
BackgroundTask: 'backgroundTask',
|
|
StorageTemplateMigration: 'storageTemplateMigration',
|
|
StorageTemplateMigration: 'storageTemplateMigration',
|
|
Search: 'search',
|
|
Search: 'search',
|
|
- Sidecar: 'sidecar'
|
|
|
|
|
|
+ Sidecar: 'sidecar',
|
|
|
|
+ Library: 'library'
|
|
} as const;
|
|
} as const;
|
|
|
|
|
|
export type JobName = typeof JobName[keyof typeof JobName];
|
|
export type JobName = typeof JobName[keyof typeof JobName];
|
|
@@ -1731,6 +1819,120 @@ export interface JobStatusDto {
|
|
*/
|
|
*/
|
|
'queueStatus': QueueStatusDto;
|
|
'queueStatus': QueueStatusDto;
|
|
}
|
|
}
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+export interface LibraryResponseDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'assetCount': number;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'createdAt': string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'exclusionPatterns': Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'id': string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'importPaths': Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'name': string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'ownerId': string;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'refreshedAt': string | null;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {LibraryType}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'type': LibraryType;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'updatedAt': string;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryStatsResponseDto
|
|
|
|
+ */
|
|
|
|
+export interface LibraryStatsResponseDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof LibraryStatsResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'photos': number;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof LibraryStatsResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'total': number;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof LibraryStatsResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'usage': number;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {number}
|
|
|
|
+ * @memberof LibraryStatsResponseDto
|
|
|
|
+ */
|
|
|
|
+ 'videos': number;
|
|
|
|
+}
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @enum {string}
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+export const LibraryType = {
|
|
|
|
+ Upload: 'UPLOAD',
|
|
|
|
+ External: 'EXTERNAL'
|
|
|
|
+} as const;
|
|
|
|
+
|
|
|
|
+export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @export
|
|
* @export
|
|
@@ -2179,6 +2381,25 @@ export interface RecognitionConfig {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface ScanLibraryDto
|
|
|
|
+ */
|
|
|
|
+export interface ScanLibraryDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof ScanLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'refreshAllFiles'?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof ScanLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'refreshModifiedFiles'?: boolean;
|
|
|
|
+}
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @export
|
|
* @export
|
|
@@ -3007,6 +3228,12 @@ export interface SystemConfigJobDto {
|
|
* @memberof SystemConfigJobDto
|
|
* @memberof SystemConfigJobDto
|
|
*/
|
|
*/
|
|
'clipEncoding': JobSettingsDto;
|
|
'clipEncoding': JobSettingsDto;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {JobSettingsDto}
|
|
|
|
+ * @memberof SystemConfigJobDto
|
|
|
|
+ */
|
|
|
|
+ 'library': JobSettingsDto;
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {JobSettingsDto}
|
|
* @type {JobSettingsDto}
|
|
@@ -3486,6 +3713,37 @@ export interface UpdateAssetDto {
|
|
*/
|
|
*/
|
|
'isFavorite'?: boolean;
|
|
'isFavorite'?: boolean;
|
|
}
|
|
}
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @export
|
|
|
|
+ * @interface UpdateLibraryDto
|
|
|
|
+ */
|
|
|
|
+export interface UpdateLibraryDto {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof UpdateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'exclusionPatterns'?: Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {Array<string>}
|
|
|
|
+ * @memberof UpdateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'importPaths'?: Array<string>;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof UpdateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'isVisible'?: boolean;
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof UpdateLibraryDto
|
|
|
|
+ */
|
|
|
|
+ 'name'?: string;
|
|
|
|
+}
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @export
|
|
* @export
|
|
@@ -6463,14 +6721,17 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
* @param {string} [key]
|
|
* @param {string} [key]
|
|
* @param {string} [duration]
|
|
* @param {string} [duration]
|
|
* @param {boolean} [isArchived]
|
|
* @param {boolean} [isArchived]
|
|
|
|
+ * @param {boolean} [isExternal]
|
|
|
|
+ * @param {boolean} [isOffline]
|
|
* @param {boolean} [isReadOnly]
|
|
* @param {boolean} [isReadOnly]
|
|
* @param {boolean} [isVisible]
|
|
* @param {boolean} [isVisible]
|
|
|
|
+ * @param {string} [libraryId]
|
|
* @param {File} [livePhotoData]
|
|
* @param {File} [livePhotoData]
|
|
* @param {File} [sidecarData]
|
|
* @param {File} [sidecarData]
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
*/
|
|
*/
|
|
- uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
+ uploadFile: async (assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
// verify required parameter 'assetData' is not null or undefined
|
|
// verify required parameter 'assetData' is not null or undefined
|
|
assertParamExists('uploadFile', 'assetData', assetData)
|
|
assertParamExists('uploadFile', 'assetData', assetData)
|
|
// verify required parameter 'deviceAssetId' is not null or undefined
|
|
// verify required parameter 'deviceAssetId' is not null or undefined
|
|
@@ -6538,10 +6799,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
localVarFormParams.append('isArchived', isArchived as any);
|
|
localVarFormParams.append('isArchived', isArchived as any);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (isExternal !== undefined) {
|
|
|
|
+ localVarFormParams.append('isExternal', isExternal as any);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (isFavorite !== undefined) {
|
|
if (isFavorite !== undefined) {
|
|
localVarFormParams.append('isFavorite', isFavorite as any);
|
|
localVarFormParams.append('isFavorite', isFavorite as any);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (isOffline !== undefined) {
|
|
|
|
+ localVarFormParams.append('isOffline', isOffline as any);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (isReadOnly !== undefined) {
|
|
if (isReadOnly !== undefined) {
|
|
localVarFormParams.append('isReadOnly', isReadOnly as any);
|
|
localVarFormParams.append('isReadOnly', isReadOnly as any);
|
|
}
|
|
}
|
|
@@ -6550,6 +6819,10 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|
localVarFormParams.append('isVisible', isVisible as any);
|
|
localVarFormParams.append('isVisible', isVisible as any);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (libraryId !== undefined) {
|
|
|
|
+ localVarFormParams.append('libraryId', libraryId as any);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (livePhotoData !== undefined) {
|
|
if (livePhotoData !== undefined) {
|
|
localVarFormParams.append('livePhotoData', livePhotoData as any);
|
|
localVarFormParams.append('livePhotoData', livePhotoData as any);
|
|
}
|
|
}
|
|
@@ -6871,15 +7144,18 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|
* @param {string} [key]
|
|
* @param {string} [key]
|
|
* @param {string} [duration]
|
|
* @param {string} [duration]
|
|
* @param {boolean} [isArchived]
|
|
* @param {boolean} [isArchived]
|
|
|
|
+ * @param {boolean} [isExternal]
|
|
|
|
+ * @param {boolean} [isOffline]
|
|
* @param {boolean} [isReadOnly]
|
|
* @param {boolean} [isReadOnly]
|
|
* @param {boolean} [isVisible]
|
|
* @param {boolean} [isVisible]
|
|
|
|
+ * @param {string} [libraryId]
|
|
* @param {File} [livePhotoData]
|
|
* @param {File} [livePhotoData]
|
|
* @param {File} [sidecarData]
|
|
* @param {File} [sidecarData]
|
|
* @param {*} [options] Override http request option.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
*/
|
|
*/
|
|
- async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
|
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isReadOnly, isVisible, livePhotoData, sidecarData, options);
|
|
|
|
|
|
+ async uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isExternal?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, libraryId?: string, livePhotoData?: File, sidecarData?: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isExternal, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -7121,7 +7397,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|
* @throws {RequiredError}
|
|
* @throws {RequiredError}
|
|
*/
|
|
*/
|
|
uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
|
|
uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
|
|
- return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
+ return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
|
|
},
|
|
},
|
|
};
|
|
};
|
|
};
|
|
};
|
|
@@ -7727,6 +8003,20 @@ export interface AssetApiUploadFileRequest {
|
|
*/
|
|
*/
|
|
readonly isArchived?: boolean
|
|
readonly isArchived?: boolean
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof AssetApiUploadFile
|
|
|
|
+ */
|
|
|
|
+ readonly isExternal?: boolean
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {boolean}
|
|
|
|
+ * @memberof AssetApiUploadFile
|
|
|
|
+ */
|
|
|
|
+ readonly isOffline?: boolean
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {boolean}
|
|
* @type {boolean}
|
|
@@ -7741,6 +8031,13 @@ export interface AssetApiUploadFileRequest {
|
|
*/
|
|
*/
|
|
readonly isVisible?: boolean
|
|
readonly isVisible?: boolean
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof AssetApiUploadFile
|
|
|
|
+ */
|
|
|
|
+ readonly libraryId?: string
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*
|
|
*
|
|
* @type {File}
|
|
* @type {File}
|
|
@@ -8043,7 +8340,7 @@ export class AssetApi extends BaseAPI {
|
|
* @memberof AssetApi
|
|
* @memberof AssetApi
|
|
*/
|
|
*/
|
|
public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
|
|
public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
|
|
- return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
+ return AssetApiFp(this.configuration).uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isExternal, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.libraryId, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -9038,6 +9335,741 @@ export class JobApi extends BaseAPI {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * LibraryApi - axios parameter creator
|
|
|
|
+ * @export
|
|
|
|
+ */
|
|
|
|
+export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
|
|
+ return {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {CreateLibraryDto} createLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'createLibraryDto' is not null or undefined
|
|
|
|
+ assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
|
|
|
|
+ const localVarPath = `/library`;
|
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
|
+ let baseOptions;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, 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(createLibraryDto, localVarRequestOptions, configuration)
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('deleteLibrary', 'id', id)
|
|
|
|
+ const localVarPath = `/library/{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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getAllForUser: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ const localVarPath = `/library`;
|
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
|
+ let baseOptions;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('getLibraryInfo', 'id', id)
|
|
|
|
+ const localVarPath = `/library/{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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('getLibraryStatistics', 'id', id)
|
|
|
|
+ const localVarPath = `/library/{id}/statistics`
|
|
|
|
+ .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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('removeOfflineFiles', 'id', id)
|
|
|
|
+ const localVarPath = `/library/{id}/removeOffline`
|
|
|
|
+ .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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {ScanLibraryDto} scanLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('scanLibrary', 'id', id)
|
|
|
|
+ // verify required parameter 'scanLibraryDto' is not null or undefined
|
|
|
|
+ assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
|
|
|
|
+ const localVarPath = `/library/{id}/scan`
|
|
|
|
+ .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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, 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(scanLibraryDto, localVarRequestOptions, configuration)
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {UpdateLibraryDto} updateLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
+ // verify required parameter 'id' is not null or undefined
|
|
|
|
+ assertParamExists('updateLibrary', 'id', id)
|
|
|
|
+ // verify required parameter 'updateLibraryDto' is not null or undefined
|
|
|
|
+ assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
|
|
|
|
+ const localVarPath = `/library/{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;
|
|
|
|
+ if (configuration) {
|
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
|
+
|
|
|
|
+ // authentication cookie required
|
|
|
|
+
|
|
|
|
+ // authentication api_key required
|
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
|
+
|
|
|
|
+ // authentication bearer required
|
|
|
|
+ // http bearer authentication required
|
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, 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(updateLibraryDto, localVarRequestOptions, configuration)
|
|
|
|
+
|
|
|
|
+ return {
|
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
|
+ options: localVarRequestOptions,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * LibraryApi - functional programming interface
|
|
|
|
+ * @export
|
|
|
|
+ */
|
|
|
|
+export const LibraryApiFp = function(configuration?: Configuration) {
|
|
|
|
+ const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
|
|
|
|
+ return {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {CreateLibraryDto} createLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async getAllForUser(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllForUser(options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {ScanLibraryDto} scanLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {string} id
|
|
|
|
+ * @param {UpdateLibraryDto} updateLibraryDto
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
|
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
|
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * LibraryApi - factory interface
|
|
|
|
+ * @export
|
|
|
|
+ */
|
|
|
|
+export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
|
+ const localVarFp = LibraryApiFp(configuration)
|
|
|
|
+ return {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
|
|
|
|
+ return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
|
|
|
|
+ return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getAllForUser(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
|
|
|
|
+ return localVarFp.getAllForUser(options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
|
|
|
|
+ return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
|
|
|
|
+ return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
|
|
|
|
+ return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
|
|
|
|
+ return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ */
|
|
|
|
+ updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
|
|
|
|
+ return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for createLibrary operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiCreateLibraryRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiCreateLibraryRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {CreateLibraryDto}
|
|
|
|
+ * @memberof LibraryApiCreateLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly createLibraryDto: CreateLibraryDto
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for deleteLibrary operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiDeleteLibraryRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiDeleteLibraryRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiDeleteLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for getLibraryInfo operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiGetLibraryInfoRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiGetLibraryInfoRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiGetLibraryInfo
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for getLibraryStatistics operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiGetLibraryStatisticsRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiGetLibraryStatisticsRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiGetLibraryStatistics
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for removeOfflineFiles operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiRemoveOfflineFilesRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiRemoveOfflineFilesRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiRemoveOfflineFiles
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for scanLibrary operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiScanLibraryRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiScanLibraryRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiScanLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {ScanLibraryDto}
|
|
|
|
+ * @memberof LibraryApiScanLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly scanLibraryDto: ScanLibraryDto
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Request parameters for updateLibrary operation in LibraryApi.
|
|
|
|
+ * @export
|
|
|
|
+ * @interface LibraryApiUpdateLibraryRequest
|
|
|
|
+ */
|
|
|
|
+export interface LibraryApiUpdateLibraryRequest {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {string}
|
|
|
|
+ * @memberof LibraryApiUpdateLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly id: string
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @type {UpdateLibraryDto}
|
|
|
|
+ * @memberof LibraryApiUpdateLibrary
|
|
|
|
+ */
|
|
|
|
+ readonly updateLibraryDto: UpdateLibraryDto
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * LibraryApi - object-oriented interface
|
|
|
|
+ * @export
|
|
|
|
+ * @class LibraryApi
|
|
|
|
+ * @extends {BaseAPI}
|
|
|
|
+ */
|
|
|
|
+export class LibraryApi extends BaseAPI {
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public getAllForUser(options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).getAllForUser(options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
|
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
|
+ * @throws {RequiredError}
|
|
|
|
+ * @memberof LibraryApi
|
|
|
|
+ */
|
|
|
|
+ public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
|
|
|
|
+ return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* OAuthApi - axios parameter creator
|
|
* OAuthApi - axios parameter creator
|
|
* @export
|
|
* @export
|