asset_api_test.dart 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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> checkBulkUpload(AssetBulkUploadCheckDto assetBulkUploadCheckDto) async
  18. test('test checkBulkUpload', () async {
  19. // TODO
  20. });
  21. // Checks if multiple assets exist on the server and returns all existing - used by background backup
  22. //
  23. //Future<CheckExistingAssetsResponseDto> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async
  24. test('test checkExistingAssets', () async {
  25. // TODO
  26. });
  27. //Future deleteAssets(AssetBulkDeleteDto assetBulkDeleteDto) async
  28. test('test deleteAssets', () async {
  29. // TODO
  30. });
  31. //Future<MultipartFile> downloadArchive(AssetIdsDto assetIdsDto, { String key }) async
  32. test('test downloadArchive', () async {
  33. // TODO
  34. });
  35. //Future<MultipartFile> downloadFile(String id, { String key }) async
  36. test('test downloadFile', () async {
  37. // TODO
  38. });
  39. //Future emptyTrash() async
  40. test('test emptyTrash', () async {
  41. // TODO
  42. });
  43. // Get all AssetEntity belong to the user
  44. //
  45. //Future<List<AssetResponseDto>> getAllAssets({ int skip, int take, String userId, bool isFavorite, bool isArchived, DateTime updatedAfter, DateTime updatedBefore, String ifNoneMatch }) async
  46. test('test getAllAssets', () async {
  47. // TODO
  48. });
  49. // Get all asset of a device that are in the database, ID only.
  50. //
  51. //Future<List<String>> getAllUserAssetsByDeviceId(String deviceId) async
  52. test('test getAllUserAssetsByDeviceId', () async {
  53. // TODO
  54. });
  55. // Get a single asset's information
  56. //
  57. //Future<AssetResponseDto> getAssetById(String id, { String key }) async
  58. test('test getAssetById', () async {
  59. // TODO
  60. });
  61. //Future<List<String>> getAssetSearchTerms() async
  62. test('test getAssetSearchTerms', () async {
  63. // TODO
  64. });
  65. //Future<AssetStatsResponseDto> getAssetStatistics({ bool isArchived, bool isFavorite, bool isTrashed }) async
  66. test('test getAssetStatistics', () async {
  67. // TODO
  68. });
  69. //Future<MultipartFile> getAssetThumbnail(String id, { ThumbnailFormat format, String key }) async
  70. test('test getAssetThumbnail', () 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(DownloadInfoDto downloadInfoDto, { String key }) async
  82. test('test getDownloadInfo', () async {
  83. // TODO
  84. });
  85. //Future<List<MapMarkerResponseDto>> getMapMarkers({ bool isArchived, bool isFavorite, DateTime fileCreatedAfter, DateTime fileCreatedBefore }) async
  86. test('test getMapMarkers', () async {
  87. // TODO
  88. });
  89. //Future<List<MemoryLaneResponseDto>> getMemoryLane(int day, int month) async
  90. test('test getMemoryLane', () async {
  91. // TODO
  92. });
  93. //Future<List<AssetResponseDto>> getRandom({ num count }) async
  94. test('test getRandom', () async {
  95. // TODO
  96. });
  97. //Future<List<AssetResponseDto>> getTimeBucket(TimeBucketSize size, String timeBucket, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, bool isTrashed, bool withStacked, bool withPartners, String key }) async
  98. test('test getTimeBucket', () async {
  99. // TODO
  100. });
  101. //Future<List<TimeBucketResponseDto>> getTimeBuckets(TimeBucketSize size, { String userId, String albumId, String personId, bool isArchived, bool isFavorite, bool isTrashed, bool withStacked, bool withPartners, String key }) async
  102. test('test getTimeBuckets', () async {
  103. // TODO
  104. });
  105. // Use /asset/device/:deviceId instead - Remove in 1.92 release
  106. //
  107. //Future<List<String>> getUserAssetsByDeviceId(String deviceId) async
  108. test('test getUserAssetsByDeviceId', () async {
  109. // TODO
  110. });
  111. //Future restoreAssets(BulkIdsDto bulkIdsDto) async
  112. test('test restoreAssets', () async {
  113. // TODO
  114. });
  115. //Future restoreTrash() async
  116. test('test restoreTrash', () async {
  117. // TODO
  118. });
  119. //Future runAssetJobs(AssetJobsDto assetJobsDto) async
  120. test('test runAssetJobs', () async {
  121. // TODO
  122. });
  123. //Future<List<AssetResponseDto>> searchAssets({ String id, String libraryId, AssetTypeEnum type, AssetOrder order, String deviceAssetId, String deviceId, String checksum, bool isArchived, bool isEncoded, bool isExternal, bool isFavorite, bool isMotion, bool isOffline, bool isReadOnly, bool isVisible, bool withDeleted, bool withStacked, bool withExif, bool withPeople, DateTime createdBefore, DateTime createdAfter, DateTime updatedBefore, DateTime updatedAfter, DateTime trashedBefore, DateTime trashedAfter, DateTime takenBefore, DateTime takenAfter, String originalFileName, String originalPath, String resizePath, String webpPath, String encodedVideoPath, String city, String state, String country, String make, String model, String lensModel, num page, num size }) async
  124. test('test searchAssets', () async {
  125. // TODO
  126. });
  127. //Future<MultipartFile> serveFile(String id, { bool isThumb, bool isWeb, String key }) async
  128. test('test serveFile', () async {
  129. // TODO
  130. });
  131. //Future<AssetResponseDto> updateAsset(String id, UpdateAssetDto updateAssetDto) async
  132. test('test updateAsset', () async {
  133. // TODO
  134. });
  135. //Future updateAssets(AssetBulkUpdateDto assetBulkUpdateDto) async
  136. test('test updateAssets', () async {
  137. // TODO
  138. });
  139. //Future updateStackParent(UpdateStackParentDto updateStackParentDto) async
  140. test('test updateStackParent', () async {
  141. // TODO
  142. });
  143. //Future<AssetFileUploadResponseDto> uploadFile(MultipartFile assetData, String deviceAssetId, String deviceId, DateTime fileCreatedAt, DateTime fileModifiedAt, { String key, String duration, bool isArchived, bool isExternal, bool isFavorite, bool isOffline, bool isReadOnly, bool isVisible, String libraryId, MultipartFile livePhotoData, MultipartFile sidecarData }) async
  144. test('test uploadFile', () async {
  145. // TODO
  146. });
  147. });
  148. }