asset_api_test.dart 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. //
  2. // AUTO-GENERATED FILE, DO NOT MODIFY!
  3. //
  4. // @dart=2.12
  5. // ignore_for_file: unused_element, unused_import
  6. // ignore_for_file: always_put_required_named_parameters_first
  7. // ignore_for_file: constant_identifier_names
  8. // ignore_for_file: lines_longer_than_80_chars
  9. import 'package:openapi/api.dart';
  10. import 'package:test/test.dart';
  11. /// tests for AssetApi
  12. void main() {
  13. // final instance = AssetApi();
  14. group('tests for AssetApi', () {
  15. //Future<SharedLinkResponseDto> addAssetsToSharedLink(AddAssetsDto addAssetsDto, { String key }) async
  16. test('test addAssetsToSharedLink', () async {
  17. // TODO
  18. });
  19. // Checks if assets exist by checksums
  20. //
  21. //Future<AssetBulkUploadCheckResponseDto> bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async
  22. test('test bulkUploadCheck', () async {
  23. // TODO
  24. });
  25. // Check duplicated asset before uploading - for Web upload used
  26. //
  27. //Future<CheckDuplicateAssetResponseDto> checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String key }) async
  28. test('test checkDuplicateAsset', () async {
  29. // TODO
  30. });
  31. // Checks if multiple assets exist on the server and returns all existing - used by background backup
  32. //
  33. //Future<CheckExistingAssetsResponseDto> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async
  34. test('test checkExistingAssets', () async {
  35. // TODO
  36. });
  37. //Future<SharedLinkResponseDto> createAssetsSharedLink(CreateAssetsShareLinkDto createAssetsShareLinkDto) async
  38. test('test createAssetsSharedLink', () async {
  39. // TODO
  40. });
  41. //Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
  42. test('test deleteAsset', () async {
  43. // TODO
  44. });
  45. //Future<MultipartFile> downloadFile(String id, { String key }) async
  46. test('test downloadFile', () async {
  47. // TODO
  48. });
  49. //Future<MultipartFile> downloadFiles(DownloadFilesDto downloadFilesDto, { String key }) async
  50. test('test downloadFiles', () async {
  51. // TODO
  52. });
  53. // Current this is not used in any UI element
  54. //
  55. //Future<MultipartFile> downloadLibrary({ String name, num skip, String key }) async
  56. test('test downloadLibrary', () async {
  57. // TODO
  58. });
  59. // Get all AssetEntity belong to the user
  60. //
  61. //Future<List<AssetResponseDto>> getAllAssets({ String userId, bool isFavorite, bool isArchived, bool withoutThumbs, num skip, String ifNoneMatch }) async
  62. test('test getAllAssets', () async {
  63. // TODO
  64. });
  65. //Future<AssetCountByUserIdResponseDto> getArchivedAssetCountByUserId() async
  66. test('test getArchivedAssetCountByUserId', () async {
  67. // TODO
  68. });
  69. // Get a single asset's information
  70. //
  71. //Future<AssetResponseDto> getAssetById(String id, { String key }) async
  72. test('test getAssetById', () async {
  73. // TODO
  74. });
  75. //Future<List<AssetResponseDto>> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto) async
  76. test('test getAssetByTimeBucket', () async {
  77. // TODO
  78. });
  79. //Future<AssetCountByTimeBucketResponseDto> getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto) async
  80. test('test getAssetCountByTimeBucket', () async {
  81. // TODO
  82. });
  83. //Future<AssetCountByUserIdResponseDto> getAssetCountByUserId() async
  84. test('test getAssetCountByUserId', () async {
  85. // TODO
  86. });
  87. //Future<List<String>> getAssetSearchTerms() async
  88. test('test getAssetSearchTerms', () async {
  89. // TODO
  90. });
  91. //Future<MultipartFile> getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async
  92. test('test getAssetThumbnail', () async {
  93. // TODO
  94. });
  95. //Future<List<CuratedLocationsResponseDto>> getCuratedLocations() async
  96. test('test getCuratedLocations', () async {
  97. // TODO
  98. });
  99. //Future<List<CuratedObjectsResponseDto>> getCuratedObjects() async
  100. test('test getCuratedObjects', () async {
  101. // TODO
  102. });
  103. //Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async
  104. test('test getMapMarkers', () async {
  105. // TODO
  106. });
  107. //Future<List<MemoryLaneResponseDto>> getMemoryLane(DateTime timestamp) async
  108. test('test getMemoryLane', () async {
  109. // TODO
  110. });
  111. // Get all asset of a device that are in the database, ID only.
  112. //
  113. //Future<List<String>> getUserAssetsByDeviceId(String deviceId) async
  114. test('test getUserAssetsByDeviceId', () async {
  115. // TODO
  116. });
  117. //Future<SharedLinkResponseDto> removeAssetsFromSharedLink(RemoveAssetsDto removeAssetsDto, { String key }) async
  118. test('test removeAssetsFromSharedLink', () async {
  119. // TODO
  120. });
  121. //Future<List<AssetResponseDto>> searchAsset(SearchAssetDto searchAssetDto) async
  122. test('test searchAsset', () async {
  123. // TODO
  124. });
  125. //Future<MultipartFile> serveFile(String id, { bool isThumb, bool isWeb, String key }) async
  126. test('test serveFile', () async {
  127. // TODO
  128. });
  129. // Update an asset
  130. //
  131. //Future<AssetResponseDto> updateAsset(String id, UpdateAssetDto updateAssetDto) async
  132. test('test updateAsset', () async {
  133. // TODO
  134. });
  135. //Future<AssetFileUploadResponseDto> uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, bool isFavorite, String fileExtension, { String key, MultipartFile livePhotoData, MultipartFile sidecarData, bool isArchived, bool isVisible, String duration }) async
  136. test('test uploadFile', () async {
  137. // TODO
  138. });
  139. });
  140. }