mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
1b54c4f8e7
* Modify controller DTOs * Can check duplicates on server side * Remove deviceassetid and deviceid * Remove device ids from file uploader * Add db migration for removed device ids * Don't sanitize checksum * Convert asset checksum to string * Make checksum not optional for asset * Use enums when rejecting duplicates * Cleanup * Return of the device id, but optional * Don't use deviceId for upload folder * Use checksum in thumb path * Only use asset id in thumb path * Openapi generation * Put deviceAssetId back in asset response dto * Add missing checksum in test fixture * Add another missing checksum in test fixture * Cleanup asset repository * Add back previous /exists endpoint * Require checksum to not be null * Correctly set deviceId in db * Remove index * Fix compilation errors * Make device id nullabel in asset response dto * Reduce PR scope * Revert asset service * Reorder imports * Reorder imports * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Reduce PR scope * Update openapi * Reduce PR scope * refactor: asset bulk upload check * chore: regenreate open-api * chore: fix tests * chore: tests * update migrations and regenerate api * Feat: use checksum in web file uploader * Change to wasm-crypto * Use crypto api for checksumming in web uploader * Minor cleanup of file upload * feat(web): pause and resume jobs * Make device asset id not nullable again * Cleanup * Device id not nullable in response dto * Update API specs * Bump api specs * Remove old TODO comment * Remove NOT NULL constraint on checksum index * Fix requested pubspec changes * Remove unneeded import * Update server/apps/immich/src/api-v1/asset/asset.service.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove unneeded check * Update server/apps/immich/src/api-v1/asset/asset-repository.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Remove hashing in the web uploader * Cleanup file uploader * Remove varchar from asset entity fields * Return 200 from bulk upload check * Put device asset id back into asset repository * Merge migrations * Revert pubspec lock * Update openapi specs * Merge upstream changes * Fix failing asset service tests * Fix formatting issue * Cleanup migrations * Remove newline from pubspec * Revert newline * Checkout main version * Revert again * Only return AssetCheck --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
168 lines
5.4 KiB
Dart
Generated
168 lines
5.4 KiB
Dart
Generated
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.12
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
import 'package:openapi/api.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
|
|
/// tests for AssetApi
|
|
void main() {
|
|
// final instance = AssetApi();
|
|
|
|
group('tests for AssetApi', () {
|
|
//Future<SharedLinkResponseDto> addAssetsToSharedLink(AddAssetsDto addAssetsDto, { String key }) async
|
|
test('test addAssetsToSharedLink', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Checks if assets exist by checksums
|
|
//
|
|
//Future<AssetBulkUploadCheckResponseDto> bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async
|
|
test('test bulkUploadCheck', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Check duplicated asset before uploading - for Web upload used
|
|
//
|
|
//Future<CheckDuplicateAssetResponseDto> checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String key }) async
|
|
test('test checkDuplicateAsset', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Checks if multiple assets exist on the server and returns all existing - used by background backup
|
|
//
|
|
//Future<CheckExistingAssetsResponseDto> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async
|
|
test('test checkExistingAssets', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<SharedLinkResponseDto> createAssetsSharedLink(CreateAssetsShareLinkDto createAssetsShareLinkDto) async
|
|
test('test createAssetsSharedLink', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
|
|
test('test deleteAsset', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<MultipartFile> downloadFile(String assetId, { String key }) async
|
|
test('test downloadFile', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<MultipartFile> downloadFiles(DownloadFilesDto downloadFilesDto, { String key }) async
|
|
test('test downloadFiles', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Current this is not used in any UI element
|
|
//
|
|
//Future<MultipartFile> downloadLibrary({ String name, num skip, String key }) async
|
|
test('test downloadLibrary', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get all AssetEntity belong to the user
|
|
//
|
|
//Future<List<AssetResponseDto>> getAllAssets({ bool isFavorite, bool isArchived, num skip, String ifNoneMatch }) async
|
|
test('test getAllAssets', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<AssetCountByUserIdResponseDto> getArchivedAssetCountByUserId() async
|
|
test('test getArchivedAssetCountByUserId', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get a single asset's information
|
|
//
|
|
//Future<AssetResponseDto> getAssetById(String assetId, { String key }) async
|
|
test('test getAssetById', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<AssetResponseDto>> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto) async
|
|
test('test getAssetByTimeBucket', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<AssetCountByTimeBucketResponseDto> getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto) async
|
|
test('test getAssetCountByTimeBucket', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<AssetCountByUserIdResponseDto> getAssetCountByUserId() async
|
|
test('test getAssetCountByUserId', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<String>> getAssetSearchTerms() async
|
|
test('test getAssetSearchTerms', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<MultipartFile> getAssetThumbnail(String assetId, { ThumbnailFormat format, String key }) async
|
|
test('test getAssetThumbnail', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<CuratedLocationsResponseDto>> getCuratedLocations() async
|
|
test('test getCuratedLocations', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<CuratedObjectsResponseDto>> getCuratedObjects() async
|
|
test('test getCuratedObjects', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isFavorite }) async
|
|
test('test getMapMarkers', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get all asset of a device that are in the database, ID only.
|
|
//
|
|
//Future<List<String>> getUserAssetsByDeviceId(String deviceId) async
|
|
test('test getUserAssetsByDeviceId', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<SharedLinkResponseDto> removeAssetsFromSharedLink(RemoveAssetsDto removeAssetsDto, { String key }) async
|
|
test('test removeAssetsFromSharedLink', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<List<AssetResponseDto>> searchAsset(SearchAssetDto searchAssetDto) async
|
|
test('test searchAsset', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<MultipartFile> serveFile(String assetId, { bool isThumb, bool isWeb, String key }) async
|
|
test('test serveFile', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Update an asset
|
|
//
|
|
//Future<AssetResponseDto> updateAsset(String assetId, UpdateAssetDto updateAssetDto) async
|
|
test('test updateAsset', () async {
|
|
// TODO
|
|
});
|
|
|
|
//Future<AssetFileUploadResponseDto> uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String deviceAssetId, String deviceId, String fileCreatedAt, String fileModifiedAt, bool isFavorite, String fileExtension, { String key, MultipartFile livePhotoData, bool isArchived, bool isVisible, String duration }) async
|
|
test('test uploadFile', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|