asset_api_test.dart 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. // Checks if assets exist by checksums
  16. //
  17. //Future<AssetBulkUploadCheckResponseDto> bulkUploadCheck(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async
  18. test('test bulkUploadCheck', () async {
  19. // TODO
  20. });
  21. // Check duplicated asset before uploading - for Web upload used
  22. //
  23. //Future<CheckDuplicateAssetResponseDto> checkDuplicateAsset(CheckDuplicateAssetDto checkDuplicateAssetDto, { String key }) async
  24. test('test checkDuplicateAsset', () async {
  25. // TODO
  26. });
  27. // Checks if multiple assets exist on the server and returns all existing - used by background backup
  28. //
  29. //Future<CheckExistingAssetsResponseDto> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async
  30. test('test checkExistingAssets', () async {
  31. // TODO
  32. });
  33. //Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
  34. test('test deleteAsset', () async {
  35. // TODO
  36. });
  37. //Future<MultipartFile> downloadArchive(AssetIdsDto assetIdsDto, { String key }) async
  38. test('test downloadArchive', () async {
  39. // TODO
  40. });
  41. //Future<MultipartFile> downloadFile(String id, { String key }) async
  42. test('test downloadFile', () async {
  43. // TODO
  44. });
  45. // Get all AssetEntity belong to the user
  46. //
  47. //Future<List<AssetResponseDto>> getAllAssets({ String userId, bool isFavorite, bool isArchived, bool withoutThumbs, num skip, String ifNoneMatch }) async
  48. test('test getAllAssets', () async {
  49. // TODO
  50. });
  51. // Get a single asset's information
  52. //
  53. //Future<AssetResponseDto> getAssetById(String id, { String key }) async
  54. test('test getAssetById', () async {
  55. // TODO
  56. });
  57. //Future<List<String>> getAssetSearchTerms() async
  58. test('test getAssetSearchTerms', () async {
  59. // TODO
  60. });
  61. //Future<AssetStatsResponseDto> getAssetStats({ bool isArchived, bool isFavorite }) async
  62. test('test getAssetStats', () async {
  63. // TODO
  64. });
  65. //Future<MultipartFile> getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async
  66. test('test getAssetThumbnail', () async {
  67. // TODO
  68. });
  69. //Future<List<AssetResponseDto>> getByTimeBucket(TimeBucketSize size, String timeBucket, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, String key }) async
  70. test('test getByTimeBucket', () async {
  71. // TODO
  72. });
  73. //Future<List<CuratedLocationsResponseDto>> getCuratedLocations() async
  74. test('test getCuratedLocations', () async {
  75. // TODO
  76. });
  77. //Future<List<CuratedObjectsResponseDto>> getCuratedObjects() async
  78. test('test getCuratedObjects', () async {
  79. // TODO
  80. });
  81. //Future<DownloadResponseDto> getDownloadInfo({ List<String> assetIds, String albumId, String userId, num archiveSize, String key }) async
  82. test('test getDownloadInfo', () async {
  83. // TODO
  84. });
  85. //Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async
  86. test('test getMapMarkers', () async {
  87. // TODO
  88. });
  89. //Future<List<MemoryLaneResponseDto>> getMemoryLane(DateTime timestamp) async
  90. test('test getMemoryLane', () async {
  91. // TODO
  92. });
  93. //Future<List<TimeBucketResponseDto>> getTimeBuckets(TimeBucketSize size, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, String key }) async
  94. test('test getTimeBuckets', () async {
  95. // TODO
  96. });
  97. // Get all asset of a device that are in the database, ID only.
  98. //
  99. //Future<List<String>> getUserAssetsByDeviceId(String deviceId) async
  100. test('test getUserAssetsByDeviceId', () async {
  101. // TODO
  102. });
  103. //Future<AssetFileUploadResponseDto> importFile(ImportAssetDto importAssetDto) async
  104. test('test importFile', () async {
  105. // TODO
  106. });
  107. //Future<List<AssetResponseDto>> searchAsset(SearchAssetDto searchAssetDto) async
  108. test('test searchAsset', () async {
  109. // TODO
  110. });
  111. //Future<MultipartFile> serveFile(String id, { bool isThumb, bool isWeb, String key }) async
  112. test('test serveFile', () async {
  113. // TODO
  114. });
  115. // Update an asset
  116. //
  117. //Future<AssetResponseDto> updateAsset(String id, UpdateAssetDto updateAssetDto) async
  118. test('test updateAsset', () async {
  119. // TODO
  120. });
  121. //Future<AssetFileUploadResponseDto> uploadFile(MultipartFile assetData, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, bool isFavorite, { String key, String duration, bool isArchived, bool isReadOnly, bool isVisible, MultipartFile livePhotoData, MultipartFile sidecarData }) async
  122. test('test uploadFile', () async {
  123. // TODO
  124. });
  125. });
  126. }