2022-07-13 05:23:48 -07:00
|
|
|
//
|
|
|
|
// 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', () {
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<SharedLinkResponseDto> addAssetsToSharedLink(AddAssetsDto addAssetsDto, { String key }) async
|
2023-02-15 14:21:22 -07:00
|
|
|
test('test addAssetsToSharedLink', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-05-24 14:08:21 -07:00
|
|
|
// Checks if assets exist by checksums
|
|
|
|
//
|
|
|
|
//Future<AssetBulkUploadCheckResponseDto> bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async
|
|
|
|
test('test bulkUploadCheck', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-07-13 05:23:48 -07:00
|
|
|
// Check duplicated asset before uploading - for Web upload used
|
|
|
|
//
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<CheckDuplicateAssetResponseDto> checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String key }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test checkDuplicateAsset', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-12-06 15:10:04 -07:00
|
|
|
// 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
|
|
|
|
});
|
|
|
|
|
2023-01-14 22:49:47 -07:00
|
|
|
//Future<SharedLinkResponseDto> createAssetsSharedLink(CreateAssetsShareLinkDto createAssetsShareLinkDto) async
|
|
|
|
test('test createAssetsSharedLink', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-12-06 15:10:04 -07:00
|
|
|
//Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test deleteAsset', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<MultipartFile> downloadFile(String assetId, { String key }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test downloadFile', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<MultipartFile> downloadFiles(DownloadFilesDto downloadFilesDto, { String key }) async
|
2023-01-09 13:16:08 -07:00
|
|
|
test('test downloadFiles', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-01-23 20:46:37 -07:00
|
|
|
// Current this is not used in any UI element
|
2023-01-14 22:49:47 -07:00
|
|
|
//
|
2023-04-06 10:50:55 -07:00
|
|
|
//Future<MultipartFile> downloadLibrary({ String name, num skip, String key }) async
|
2022-12-06 15:10:04 -07:00
|
|
|
test('test downloadLibrary', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-07-13 05:23:48 -07:00
|
|
|
// Get all AssetEntity belong to the user
|
|
|
|
//
|
2023-05-24 20:52:43 -07:00
|
|
|
//Future<List<AssetResponseDto>> getAllAssets({ String userId, bool isFavorite, bool isArchived, num skip, String ifNoneMatch }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test getAllAssets', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-04-12 08:37:52 -07:00
|
|
|
//Future<AssetCountByUserIdResponseDto> getArchivedAssetCountByUserId() async
|
|
|
|
test('test getArchivedAssetCountByUserId', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-07-13 05:23:48 -07:00
|
|
|
// Get a single asset's information
|
|
|
|
//
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<AssetResponseDto> getAssetById(String assetId, { String key }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test getAssetById', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-12-06 15:10:04 -07:00
|
|
|
//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
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test getAssetSearchTerms', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<MultipartFile> getAssetThumbnail(String assetId, { ThumbnailFormat format, String key }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
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
|
|
|
|
});
|
|
|
|
|
2023-05-25 09:47:52 -07:00
|
|
|
//Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async
|
2023-05-05 18:33:30 -07:00
|
|
|
test('test getMapMarkers', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-07-13 05:23:48 -07:00
|
|
|
// 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
|
|
|
|
});
|
|
|
|
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<SharedLinkResponseDto> removeAssetsFromSharedLink(RemoveAssetsDto removeAssetsDto, { String key }) async
|
2023-02-15 14:21:22 -07:00
|
|
|
test('test removeAssetsFromSharedLink', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-07-13 05:23:48 -07:00
|
|
|
//Future<List<AssetResponseDto>> searchAsset(SearchAssetDto searchAssetDto) async
|
|
|
|
test('test searchAsset', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2023-02-24 09:01:10 -07:00
|
|
|
//Future<MultipartFile> serveFile(String assetId, { bool isThumb, bool isWeb, String key }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test serveFile', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
2022-12-06 15:10:04 -07:00
|
|
|
// Update an asset
|
|
|
|
//
|
|
|
|
//Future<AssetResponseDto> updateAsset(String assetId, UpdateAssetDto updateAssetDto) async
|
|
|
|
test('test updateAsset', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
feat(server): xmp sidecar metadata (#2466)
* initial commit for XMP sidecar support
* Added support for 'missing' metadata files to include those without sidecar files, now detects sidecar files in the filesystem for media already ingested but the sidecar was created afterwards
* didn't mean to commit default log level during testing
* new sidecar logic for video metadata as well
* Added xml mimetype for sidecars only
* don't need capture group for this regex
* wrong default value reverted
* simplified the move here - keep it in the same try catch since the outcome is to move the media back anyway
* simplified setter logic
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
* simplified logic per suggestions
* sidecar is now its own queue with a discover and sync, updated UI for the new job queueing
* queue a sidecar job for every asset based on discovery or sync, though the logic is almost identical aside from linking the sidecar
* now queue sidecar jobs for each assset, though logic is mostly the same between discovery and sync
* simplified logic of filename extraction and asset instantiation
* not sure how that got deleted..
* updated code per suggestions and comments in the PR
* stat was not being used, removed the variable set
* better type checking, using in-scope variables for exif getter instead of passing in every time
* removed commented out test
* ran and resolved all lints, formats, checks, and tests
* resolved suggested change in PR
* made getExifProperty more dynamic with multiple possible args for fallbacks, fixed typo, used generic in function for better type checking
* better error handling and moving files back to positions on move or save failure
* regenerated api
* format fixes
* Added XMP documentation
* documentation typo
* Merged in main
* missed merge conflict
* more changes due to a merge
* Resolving conflicts
* added icon for sidecar jobs
---------
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2023-05-24 18:59:30 -07:00
|
|
|
//Future<AssetFileUploadResponseDto> uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String deviceAssetId, String deviceId, String fileCreatedAt, String fileModifiedAt, bool isFavorite, String fileExtension, { String key, MultipartFile livePhotoData, MultipartFile sidecarData, bool isArchived, bool isVisible, String duration }) async
|
2022-07-13 05:23:48 -07:00
|
|
|
test('test uploadFile', () async {
|
|
|
|
// TODO
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|