asset_api.dart 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842
  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. part of openapi.api;
  10. class AssetApi {
  11. AssetApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
  12. final ApiClient apiClient;
  13. /// Checks if assets exist by checksums
  14. ///
  15. /// Note: This method returns the HTTP [Response].
  16. ///
  17. /// Parameters:
  18. ///
  19. /// * [AssetBulkUploadCheckDto] assetBulkUploadCheckDto (required):
  20. Future<Response> checkBulkUploadWithHttpInfo(AssetBulkUploadCheckDto assetBulkUploadCheckDto,) async {
  21. // ignore: prefer_const_declarations
  22. final path = r'/asset/bulk-upload-check';
  23. // ignore: prefer_final_locals
  24. Object? postBody = assetBulkUploadCheckDto;
  25. final queryParams = <QueryParam>[];
  26. final headerParams = <String, String>{};
  27. final formParams = <String, String>{};
  28. const contentTypes = <String>['application/json'];
  29. return apiClient.invokeAPI(
  30. path,
  31. 'POST',
  32. queryParams,
  33. postBody,
  34. headerParams,
  35. formParams,
  36. contentTypes.isEmpty ? null : contentTypes.first,
  37. );
  38. }
  39. /// Checks if assets exist by checksums
  40. ///
  41. /// Parameters:
  42. ///
  43. /// * [AssetBulkUploadCheckDto] assetBulkUploadCheckDto (required):
  44. Future<AssetBulkUploadCheckResponseDto?> checkBulkUpload(AssetBulkUploadCheckDto assetBulkUploadCheckDto,) async {
  45. final response = await checkBulkUploadWithHttpInfo(assetBulkUploadCheckDto,);
  46. if (response.statusCode >= HttpStatus.badRequest) {
  47. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  48. }
  49. // When a remote server returns no body with a status of 204, we shall not decode it.
  50. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  51. // FormatException when trying to decode an empty string.
  52. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  53. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetBulkUploadCheckResponseDto',) as AssetBulkUploadCheckResponseDto;
  54. }
  55. return null;
  56. }
  57. /// Checks if multiple assets exist on the server and returns all existing - used by background backup
  58. ///
  59. /// Note: This method returns the HTTP [Response].
  60. ///
  61. /// Parameters:
  62. ///
  63. /// * [CheckExistingAssetsDto] checkExistingAssetsDto (required):
  64. Future<Response> checkExistingAssetsWithHttpInfo(CheckExistingAssetsDto checkExistingAssetsDto,) async {
  65. // ignore: prefer_const_declarations
  66. final path = r'/asset/exist';
  67. // ignore: prefer_final_locals
  68. Object? postBody = checkExistingAssetsDto;
  69. final queryParams = <QueryParam>[];
  70. final headerParams = <String, String>{};
  71. final formParams = <String, String>{};
  72. const contentTypes = <String>['application/json'];
  73. return apiClient.invokeAPI(
  74. path,
  75. 'POST',
  76. queryParams,
  77. postBody,
  78. headerParams,
  79. formParams,
  80. contentTypes.isEmpty ? null : contentTypes.first,
  81. );
  82. }
  83. /// Checks if multiple assets exist on the server and returns all existing - used by background backup
  84. ///
  85. /// Parameters:
  86. ///
  87. /// * [CheckExistingAssetsDto] checkExistingAssetsDto (required):
  88. Future<CheckExistingAssetsResponseDto?> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto,) async {
  89. final response = await checkExistingAssetsWithHttpInfo(checkExistingAssetsDto,);
  90. if (response.statusCode >= HttpStatus.badRequest) {
  91. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  92. }
  93. // When a remote server returns no body with a status of 204, we shall not decode it.
  94. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  95. // FormatException when trying to decode an empty string.
  96. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  97. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CheckExistingAssetsResponseDto',) as CheckExistingAssetsResponseDto;
  98. }
  99. return null;
  100. }
  101. /// Performs an HTTP 'DELETE /asset' operation and returns the [Response].
  102. /// Parameters:
  103. ///
  104. /// * [AssetBulkDeleteDto] assetBulkDeleteDto (required):
  105. Future<Response> deleteAssetsWithHttpInfo(AssetBulkDeleteDto assetBulkDeleteDto,) async {
  106. // ignore: prefer_const_declarations
  107. final path = r'/asset';
  108. // ignore: prefer_final_locals
  109. Object? postBody = assetBulkDeleteDto;
  110. final queryParams = <QueryParam>[];
  111. final headerParams = <String, String>{};
  112. final formParams = <String, String>{};
  113. const contentTypes = <String>['application/json'];
  114. return apiClient.invokeAPI(
  115. path,
  116. 'DELETE',
  117. queryParams,
  118. postBody,
  119. headerParams,
  120. formParams,
  121. contentTypes.isEmpty ? null : contentTypes.first,
  122. );
  123. }
  124. /// Parameters:
  125. ///
  126. /// * [AssetBulkDeleteDto] assetBulkDeleteDto (required):
  127. Future<void> deleteAssets(AssetBulkDeleteDto assetBulkDeleteDto,) async {
  128. final response = await deleteAssetsWithHttpInfo(assetBulkDeleteDto,);
  129. if (response.statusCode >= HttpStatus.badRequest) {
  130. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  131. }
  132. }
  133. /// Performs an HTTP 'POST /asset/download/archive' operation and returns the [Response].
  134. /// Parameters:
  135. ///
  136. /// * [AssetIdsDto] assetIdsDto (required):
  137. ///
  138. /// * [String] key:
  139. Future<Response> downloadArchiveWithHttpInfo(AssetIdsDto assetIdsDto, { String? key, }) async {
  140. // ignore: prefer_const_declarations
  141. final path = r'/asset/download/archive';
  142. // ignore: prefer_final_locals
  143. Object? postBody = assetIdsDto;
  144. final queryParams = <QueryParam>[];
  145. final headerParams = <String, String>{};
  146. final formParams = <String, String>{};
  147. if (key != null) {
  148. queryParams.addAll(_queryParams('', 'key', key));
  149. }
  150. const contentTypes = <String>['application/json'];
  151. return apiClient.invokeAPI(
  152. path,
  153. 'POST',
  154. queryParams,
  155. postBody,
  156. headerParams,
  157. formParams,
  158. contentTypes.isEmpty ? null : contentTypes.first,
  159. );
  160. }
  161. /// Parameters:
  162. ///
  163. /// * [AssetIdsDto] assetIdsDto (required):
  164. ///
  165. /// * [String] key:
  166. Future<MultipartFile?> downloadArchive(AssetIdsDto assetIdsDto, { String? key, }) async {
  167. final response = await downloadArchiveWithHttpInfo(assetIdsDto, key: key, );
  168. if (response.statusCode >= HttpStatus.badRequest) {
  169. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  170. }
  171. // When a remote server returns no body with a status of 204, we shall not decode it.
  172. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  173. // FormatException when trying to decode an empty string.
  174. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  175. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
  176. }
  177. return null;
  178. }
  179. /// Performs an HTTP 'POST /asset/download/{id}' operation and returns the [Response].
  180. /// Parameters:
  181. ///
  182. /// * [String] id (required):
  183. ///
  184. /// * [String] key:
  185. Future<Response> downloadFileWithHttpInfo(String id, { String? key, }) async {
  186. // ignore: prefer_const_declarations
  187. final path = r'/asset/download/{id}'
  188. .replaceAll('{id}', id);
  189. // ignore: prefer_final_locals
  190. Object? postBody;
  191. final queryParams = <QueryParam>[];
  192. final headerParams = <String, String>{};
  193. final formParams = <String, String>{};
  194. if (key != null) {
  195. queryParams.addAll(_queryParams('', 'key', key));
  196. }
  197. const contentTypes = <String>[];
  198. return apiClient.invokeAPI(
  199. path,
  200. 'POST',
  201. queryParams,
  202. postBody,
  203. headerParams,
  204. formParams,
  205. contentTypes.isEmpty ? null : contentTypes.first,
  206. );
  207. }
  208. /// Parameters:
  209. ///
  210. /// * [String] id (required):
  211. ///
  212. /// * [String] key:
  213. Future<MultipartFile?> downloadFile(String id, { String? key, }) async {
  214. final response = await downloadFileWithHttpInfo(id, key: key, );
  215. if (response.statusCode >= HttpStatus.badRequest) {
  216. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  217. }
  218. // When a remote server returns no body with a status of 204, we shall not decode it.
  219. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  220. // FormatException when trying to decode an empty string.
  221. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  222. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
  223. }
  224. return null;
  225. }
  226. /// Performs an HTTP 'POST /asset/trash/empty' operation and returns the [Response].
  227. Future<Response> emptyTrashWithHttpInfo() async {
  228. // ignore: prefer_const_declarations
  229. final path = r'/asset/trash/empty';
  230. // ignore: prefer_final_locals
  231. Object? postBody;
  232. final queryParams = <QueryParam>[];
  233. final headerParams = <String, String>{};
  234. final formParams = <String, String>{};
  235. const contentTypes = <String>[];
  236. return apiClient.invokeAPI(
  237. path,
  238. 'POST',
  239. queryParams,
  240. postBody,
  241. headerParams,
  242. formParams,
  243. contentTypes.isEmpty ? null : contentTypes.first,
  244. );
  245. }
  246. Future<void> emptyTrash() async {
  247. final response = await emptyTrashWithHttpInfo();
  248. if (response.statusCode >= HttpStatus.badRequest) {
  249. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  250. }
  251. }
  252. /// Get all AssetEntity belong to the user
  253. ///
  254. /// Note: This method returns the HTTP [Response].
  255. ///
  256. /// Parameters:
  257. ///
  258. /// * [int] skip:
  259. ///
  260. /// * [int] take:
  261. ///
  262. /// * [String] userId:
  263. ///
  264. /// * [bool] isFavorite:
  265. ///
  266. /// * [bool] isArchived:
  267. ///
  268. /// * [DateTime] updatedAfter:
  269. ///
  270. /// * [DateTime] updatedBefore:
  271. ///
  272. /// * [String] ifNoneMatch:
  273. /// ETag of data already cached on the client
  274. Future<Response> getAllAssetsWithHttpInfo({ int? skip, int? take, String? userId, bool? isFavorite, bool? isArchived, DateTime? updatedAfter, DateTime? updatedBefore, String? ifNoneMatch, }) async {
  275. // ignore: prefer_const_declarations
  276. final path = r'/asset';
  277. // ignore: prefer_final_locals
  278. Object? postBody;
  279. final queryParams = <QueryParam>[];
  280. final headerParams = <String, String>{};
  281. final formParams = <String, String>{};
  282. if (skip != null) {
  283. queryParams.addAll(_queryParams('', 'skip', skip));
  284. }
  285. if (take != null) {
  286. queryParams.addAll(_queryParams('', 'take', take));
  287. }
  288. if (userId != null) {
  289. queryParams.addAll(_queryParams('', 'userId', userId));
  290. }
  291. if (isFavorite != null) {
  292. queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
  293. }
  294. if (isArchived != null) {
  295. queryParams.addAll(_queryParams('', 'isArchived', isArchived));
  296. }
  297. if (updatedAfter != null) {
  298. queryParams.addAll(_queryParams('', 'updatedAfter', updatedAfter));
  299. }
  300. if (updatedBefore != null) {
  301. queryParams.addAll(_queryParams('', 'updatedBefore', updatedBefore));
  302. }
  303. if (ifNoneMatch != null) {
  304. headerParams[r'if-none-match'] = parameterToString(ifNoneMatch);
  305. }
  306. const contentTypes = <String>[];
  307. return apiClient.invokeAPI(
  308. path,
  309. 'GET',
  310. queryParams,
  311. postBody,
  312. headerParams,
  313. formParams,
  314. contentTypes.isEmpty ? null : contentTypes.first,
  315. );
  316. }
  317. /// Get all AssetEntity belong to the user
  318. ///
  319. /// Parameters:
  320. ///
  321. /// * [int] skip:
  322. ///
  323. /// * [int] take:
  324. ///
  325. /// * [String] userId:
  326. ///
  327. /// * [bool] isFavorite:
  328. ///
  329. /// * [bool] isArchived:
  330. ///
  331. /// * [DateTime] updatedAfter:
  332. ///
  333. /// * [DateTime] updatedBefore:
  334. ///
  335. /// * [String] ifNoneMatch:
  336. /// ETag of data already cached on the client
  337. Future<List<AssetResponseDto>?> getAllAssets({ int? skip, int? take, String? userId, bool? isFavorite, bool? isArchived, DateTime? updatedAfter, DateTime? updatedBefore, String? ifNoneMatch, }) async {
  338. final response = await getAllAssetsWithHttpInfo( skip: skip, take: take, userId: userId, isFavorite: isFavorite, isArchived: isArchived, updatedAfter: updatedAfter, updatedBefore: updatedBefore, ifNoneMatch: ifNoneMatch, );
  339. if (response.statusCode >= HttpStatus.badRequest) {
  340. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  341. }
  342. // When a remote server returns no body with a status of 204, we shall not decode it.
  343. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  344. // FormatException when trying to decode an empty string.
  345. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  346. final responseBody = await _decodeBodyBytes(response);
  347. return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
  348. .cast<AssetResponseDto>()
  349. .toList();
  350. }
  351. return null;
  352. }
  353. /// Get a single asset's information
  354. ///
  355. /// Note: This method returns the HTTP [Response].
  356. ///
  357. /// Parameters:
  358. ///
  359. /// * [String] id (required):
  360. ///
  361. /// * [String] key:
  362. Future<Response> getAssetByIdWithHttpInfo(String id, { String? key, }) async {
  363. // ignore: prefer_const_declarations
  364. final path = r'/asset/assetById/{id}'
  365. .replaceAll('{id}', id);
  366. // ignore: prefer_final_locals
  367. Object? postBody;
  368. final queryParams = <QueryParam>[];
  369. final headerParams = <String, String>{};
  370. final formParams = <String, String>{};
  371. if (key != null) {
  372. queryParams.addAll(_queryParams('', 'key', key));
  373. }
  374. const contentTypes = <String>[];
  375. return apiClient.invokeAPI(
  376. path,
  377. 'GET',
  378. queryParams,
  379. postBody,
  380. headerParams,
  381. formParams,
  382. contentTypes.isEmpty ? null : contentTypes.first,
  383. );
  384. }
  385. /// Get a single asset's information
  386. ///
  387. /// Parameters:
  388. ///
  389. /// * [String] id (required):
  390. ///
  391. /// * [String] key:
  392. Future<AssetResponseDto?> getAssetById(String id, { String? key, }) async {
  393. final response = await getAssetByIdWithHttpInfo(id, key: key, );
  394. if (response.statusCode >= HttpStatus.badRequest) {
  395. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  396. }
  397. // When a remote server returns no body with a status of 204, we shall not decode it.
  398. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  399. // FormatException when trying to decode an empty string.
  400. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  401. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetResponseDto',) as AssetResponseDto;
  402. }
  403. return null;
  404. }
  405. /// Performs an HTTP 'GET /asset/search-terms' operation and returns the [Response].
  406. Future<Response> getAssetSearchTermsWithHttpInfo() async {
  407. // ignore: prefer_const_declarations
  408. final path = r'/asset/search-terms';
  409. // ignore: prefer_final_locals
  410. Object? postBody;
  411. final queryParams = <QueryParam>[];
  412. final headerParams = <String, String>{};
  413. final formParams = <String, String>{};
  414. const contentTypes = <String>[];
  415. return apiClient.invokeAPI(
  416. path,
  417. 'GET',
  418. queryParams,
  419. postBody,
  420. headerParams,
  421. formParams,
  422. contentTypes.isEmpty ? null : contentTypes.first,
  423. );
  424. }
  425. Future<List<String>?> getAssetSearchTerms() async {
  426. final response = await getAssetSearchTermsWithHttpInfo();
  427. if (response.statusCode >= HttpStatus.badRequest) {
  428. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  429. }
  430. // When a remote server returns no body with a status of 204, we shall not decode it.
  431. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  432. // FormatException when trying to decode an empty string.
  433. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  434. final responseBody = await _decodeBodyBytes(response);
  435. return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
  436. .cast<String>()
  437. .toList();
  438. }
  439. return null;
  440. }
  441. /// Performs an HTTP 'GET /asset/statistics' operation and returns the [Response].
  442. /// Parameters:
  443. ///
  444. /// * [bool] isArchived:
  445. ///
  446. /// * [bool] isFavorite:
  447. ///
  448. /// * [bool] isTrashed:
  449. Future<Response> getAssetStatisticsWithHttpInfo({ bool? isArchived, bool? isFavorite, bool? isTrashed, }) async {
  450. // ignore: prefer_const_declarations
  451. final path = r'/asset/statistics';
  452. // ignore: prefer_final_locals
  453. Object? postBody;
  454. final queryParams = <QueryParam>[];
  455. final headerParams = <String, String>{};
  456. final formParams = <String, String>{};
  457. if (isArchived != null) {
  458. queryParams.addAll(_queryParams('', 'isArchived', isArchived));
  459. }
  460. if (isFavorite != null) {
  461. queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
  462. }
  463. if (isTrashed != null) {
  464. queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
  465. }
  466. const contentTypes = <String>[];
  467. return apiClient.invokeAPI(
  468. path,
  469. 'GET',
  470. queryParams,
  471. postBody,
  472. headerParams,
  473. formParams,
  474. contentTypes.isEmpty ? null : contentTypes.first,
  475. );
  476. }
  477. /// Parameters:
  478. ///
  479. /// * [bool] isArchived:
  480. ///
  481. /// * [bool] isFavorite:
  482. ///
  483. /// * [bool] isTrashed:
  484. Future<AssetStatsResponseDto?> getAssetStatistics({ bool? isArchived, bool? isFavorite, bool? isTrashed, }) async {
  485. final response = await getAssetStatisticsWithHttpInfo( isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, );
  486. if (response.statusCode >= HttpStatus.badRequest) {
  487. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  488. }
  489. // When a remote server returns no body with a status of 204, we shall not decode it.
  490. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  491. // FormatException when trying to decode an empty string.
  492. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  493. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetStatsResponseDto',) as AssetStatsResponseDto;
  494. }
  495. return null;
  496. }
  497. /// Performs an HTTP 'GET /asset/thumbnail/{id}' operation and returns the [Response].
  498. /// Parameters:
  499. ///
  500. /// * [String] id (required):
  501. ///
  502. /// * [ThumbnailFormat] format:
  503. ///
  504. /// * [String] key:
  505. Future<Response> getAssetThumbnailWithHttpInfo(String id, { ThumbnailFormat? format, String? key, }) async {
  506. // ignore: prefer_const_declarations
  507. final path = r'/asset/thumbnail/{id}'
  508. .replaceAll('{id}', id);
  509. // ignore: prefer_final_locals
  510. Object? postBody;
  511. final queryParams = <QueryParam>[];
  512. final headerParams = <String, String>{};
  513. final formParams = <String, String>{};
  514. if (format != null) {
  515. queryParams.addAll(_queryParams('', 'format', format));
  516. }
  517. if (key != null) {
  518. queryParams.addAll(_queryParams('', 'key', key));
  519. }
  520. const contentTypes = <String>[];
  521. return apiClient.invokeAPI(
  522. path,
  523. 'GET',
  524. queryParams,
  525. postBody,
  526. headerParams,
  527. formParams,
  528. contentTypes.isEmpty ? null : contentTypes.first,
  529. );
  530. }
  531. /// Parameters:
  532. ///
  533. /// * [String] id (required):
  534. ///
  535. /// * [ThumbnailFormat] format:
  536. ///
  537. /// * [String] key:
  538. Future<MultipartFile?> getAssetThumbnail(String id, { ThumbnailFormat? format, String? key, }) async {
  539. final response = await getAssetThumbnailWithHttpInfo(id, format: format, key: key, );
  540. if (response.statusCode >= HttpStatus.badRequest) {
  541. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  542. }
  543. // When a remote server returns no body with a status of 204, we shall not decode it.
  544. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  545. // FormatException when trying to decode an empty string.
  546. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  547. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
  548. }
  549. return null;
  550. }
  551. /// Performs an HTTP 'GET /asset/curated-locations' operation and returns the [Response].
  552. Future<Response> getCuratedLocationsWithHttpInfo() async {
  553. // ignore: prefer_const_declarations
  554. final path = r'/asset/curated-locations';
  555. // ignore: prefer_final_locals
  556. Object? postBody;
  557. final queryParams = <QueryParam>[];
  558. final headerParams = <String, String>{};
  559. final formParams = <String, String>{};
  560. const contentTypes = <String>[];
  561. return apiClient.invokeAPI(
  562. path,
  563. 'GET',
  564. queryParams,
  565. postBody,
  566. headerParams,
  567. formParams,
  568. contentTypes.isEmpty ? null : contentTypes.first,
  569. );
  570. }
  571. Future<List<CuratedLocationsResponseDto>?> getCuratedLocations() async {
  572. final response = await getCuratedLocationsWithHttpInfo();
  573. if (response.statusCode >= HttpStatus.badRequest) {
  574. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  575. }
  576. // When a remote server returns no body with a status of 204, we shall not decode it.
  577. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  578. // FormatException when trying to decode an empty string.
  579. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  580. final responseBody = await _decodeBodyBytes(response);
  581. return (await apiClient.deserializeAsync(responseBody, 'List<CuratedLocationsResponseDto>') as List)
  582. .cast<CuratedLocationsResponseDto>()
  583. .toList();
  584. }
  585. return null;
  586. }
  587. /// Performs an HTTP 'GET /asset/curated-objects' operation and returns the [Response].
  588. Future<Response> getCuratedObjectsWithHttpInfo() async {
  589. // ignore: prefer_const_declarations
  590. final path = r'/asset/curated-objects';
  591. // ignore: prefer_final_locals
  592. Object? postBody;
  593. final queryParams = <QueryParam>[];
  594. final headerParams = <String, String>{};
  595. final formParams = <String, String>{};
  596. const contentTypes = <String>[];
  597. return apiClient.invokeAPI(
  598. path,
  599. 'GET',
  600. queryParams,
  601. postBody,
  602. headerParams,
  603. formParams,
  604. contentTypes.isEmpty ? null : contentTypes.first,
  605. );
  606. }
  607. Future<List<CuratedObjectsResponseDto>?> getCuratedObjects() async {
  608. final response = await getCuratedObjectsWithHttpInfo();
  609. if (response.statusCode >= HttpStatus.badRequest) {
  610. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  611. }
  612. // When a remote server returns no body with a status of 204, we shall not decode it.
  613. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  614. // FormatException when trying to decode an empty string.
  615. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  616. final responseBody = await _decodeBodyBytes(response);
  617. return (await apiClient.deserializeAsync(responseBody, 'List<CuratedObjectsResponseDto>') as List)
  618. .cast<CuratedObjectsResponseDto>()
  619. .toList();
  620. }
  621. return null;
  622. }
  623. /// Performs an HTTP 'POST /asset/download/info' operation and returns the [Response].
  624. /// Parameters:
  625. ///
  626. /// * [DownloadInfoDto] downloadInfoDto (required):
  627. ///
  628. /// * [String] key:
  629. Future<Response> getDownloadInfoWithHttpInfo(DownloadInfoDto downloadInfoDto, { String? key, }) async {
  630. // ignore: prefer_const_declarations
  631. final path = r'/asset/download/info';
  632. // ignore: prefer_final_locals
  633. Object? postBody = downloadInfoDto;
  634. final queryParams = <QueryParam>[];
  635. final headerParams = <String, String>{};
  636. final formParams = <String, String>{};
  637. if (key != null) {
  638. queryParams.addAll(_queryParams('', 'key', key));
  639. }
  640. const contentTypes = <String>['application/json'];
  641. return apiClient.invokeAPI(
  642. path,
  643. 'POST',
  644. queryParams,
  645. postBody,
  646. headerParams,
  647. formParams,
  648. contentTypes.isEmpty ? null : contentTypes.first,
  649. );
  650. }
  651. /// Parameters:
  652. ///
  653. /// * [DownloadInfoDto] downloadInfoDto (required):
  654. ///
  655. /// * [String] key:
  656. Future<DownloadResponseDto?> getDownloadInfo(DownloadInfoDto downloadInfoDto, { String? key, }) async {
  657. final response = await getDownloadInfoWithHttpInfo(downloadInfoDto, key: key, );
  658. if (response.statusCode >= HttpStatus.badRequest) {
  659. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  660. }
  661. // When a remote server returns no body with a status of 204, we shall not decode it.
  662. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  663. // FormatException when trying to decode an empty string.
  664. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  665. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'DownloadResponseDto',) as DownloadResponseDto;
  666. }
  667. return null;
  668. }
  669. /// Performs an HTTP 'GET /asset/map-marker' operation and returns the [Response].
  670. /// Parameters:
  671. ///
  672. /// * [bool] isArchived:
  673. ///
  674. /// * [bool] isFavorite:
  675. ///
  676. /// * [DateTime] fileCreatedAfter:
  677. ///
  678. /// * [DateTime] fileCreatedBefore:
  679. Future<Response> getMapMarkersWithHttpInfo({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async {
  680. // ignore: prefer_const_declarations
  681. final path = r'/asset/map-marker';
  682. // ignore: prefer_final_locals
  683. Object? postBody;
  684. final queryParams = <QueryParam>[];
  685. final headerParams = <String, String>{};
  686. final formParams = <String, String>{};
  687. if (isArchived != null) {
  688. queryParams.addAll(_queryParams('', 'isArchived', isArchived));
  689. }
  690. if (isFavorite != null) {
  691. queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
  692. }
  693. if (fileCreatedAfter != null) {
  694. queryParams.addAll(_queryParams('', 'fileCreatedAfter', fileCreatedAfter));
  695. }
  696. if (fileCreatedBefore != null) {
  697. queryParams.addAll(_queryParams('', 'fileCreatedBefore', fileCreatedBefore));
  698. }
  699. const contentTypes = <String>[];
  700. return apiClient.invokeAPI(
  701. path,
  702. 'GET',
  703. queryParams,
  704. postBody,
  705. headerParams,
  706. formParams,
  707. contentTypes.isEmpty ? null : contentTypes.first,
  708. );
  709. }
  710. /// Parameters:
  711. ///
  712. /// * [bool] isArchived:
  713. ///
  714. /// * [bool] isFavorite:
  715. ///
  716. /// * [DateTime] fileCreatedAfter:
  717. ///
  718. /// * [DateTime] fileCreatedBefore:
  719. Future<List<MapMarkerResponseDto>?> getMapMarkers({ bool? isArchived, bool? isFavorite, DateTime? fileCreatedAfter, DateTime? fileCreatedBefore, }) async {
  720. final response = await getMapMarkersWithHttpInfo( isArchived: isArchived, isFavorite: isFavorite, fileCreatedAfter: fileCreatedAfter, fileCreatedBefore: fileCreatedBefore, );
  721. if (response.statusCode >= HttpStatus.badRequest) {
  722. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  723. }
  724. // When a remote server returns no body with a status of 204, we shall not decode it.
  725. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  726. // FormatException when trying to decode an empty string.
  727. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  728. final responseBody = await _decodeBodyBytes(response);
  729. return (await apiClient.deserializeAsync(responseBody, 'List<MapMarkerResponseDto>') as List)
  730. .cast<MapMarkerResponseDto>()
  731. .toList();
  732. }
  733. return null;
  734. }
  735. /// Performs an HTTP 'GET /asset/memory-lane' operation and returns the [Response].
  736. /// Parameters:
  737. ///
  738. /// * [int] day (required):
  739. ///
  740. /// * [int] month (required):
  741. Future<Response> getMemoryLaneWithHttpInfo(int day, int month,) async {
  742. // ignore: prefer_const_declarations
  743. final path = r'/asset/memory-lane';
  744. // ignore: prefer_final_locals
  745. Object? postBody;
  746. final queryParams = <QueryParam>[];
  747. final headerParams = <String, String>{};
  748. final formParams = <String, String>{};
  749. queryParams.addAll(_queryParams('', 'day', day));
  750. queryParams.addAll(_queryParams('', 'month', month));
  751. const contentTypes = <String>[];
  752. return apiClient.invokeAPI(
  753. path,
  754. 'GET',
  755. queryParams,
  756. postBody,
  757. headerParams,
  758. formParams,
  759. contentTypes.isEmpty ? null : contentTypes.first,
  760. );
  761. }
  762. /// Parameters:
  763. ///
  764. /// * [int] day (required):
  765. ///
  766. /// * [int] month (required):
  767. Future<List<MemoryLaneResponseDto>?> getMemoryLane(int day, int month,) async {
  768. final response = await getMemoryLaneWithHttpInfo(day, month,);
  769. if (response.statusCode >= HttpStatus.badRequest) {
  770. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  771. }
  772. // When a remote server returns no body with a status of 204, we shall not decode it.
  773. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  774. // FormatException when trying to decode an empty string.
  775. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  776. final responseBody = await _decodeBodyBytes(response);
  777. return (await apiClient.deserializeAsync(responseBody, 'List<MemoryLaneResponseDto>') as List)
  778. .cast<MemoryLaneResponseDto>()
  779. .toList();
  780. }
  781. return null;
  782. }
  783. /// Performs an HTTP 'GET /asset/random' operation and returns the [Response].
  784. /// Parameters:
  785. ///
  786. /// * [num] count:
  787. Future<Response> getRandomWithHttpInfo({ num? count, }) async {
  788. // ignore: prefer_const_declarations
  789. final path = r'/asset/random';
  790. // ignore: prefer_final_locals
  791. Object? postBody;
  792. final queryParams = <QueryParam>[];
  793. final headerParams = <String, String>{};
  794. final formParams = <String, String>{};
  795. if (count != null) {
  796. queryParams.addAll(_queryParams('', 'count', count));
  797. }
  798. const contentTypes = <String>[];
  799. return apiClient.invokeAPI(
  800. path,
  801. 'GET',
  802. queryParams,
  803. postBody,
  804. headerParams,
  805. formParams,
  806. contentTypes.isEmpty ? null : contentTypes.first,
  807. );
  808. }
  809. /// Parameters:
  810. ///
  811. /// * [num] count:
  812. Future<List<AssetResponseDto>?> getRandom({ num? count, }) async {
  813. final response = await getRandomWithHttpInfo( count: count, );
  814. if (response.statusCode >= HttpStatus.badRequest) {
  815. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  816. }
  817. // When a remote server returns no body with a status of 204, we shall not decode it.
  818. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  819. // FormatException when trying to decode an empty string.
  820. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  821. final responseBody = await _decodeBodyBytes(response);
  822. return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
  823. .cast<AssetResponseDto>()
  824. .toList();
  825. }
  826. return null;
  827. }
  828. /// Performs an HTTP 'GET /asset/time-bucket' operation and returns the [Response].
  829. /// Parameters:
  830. ///
  831. /// * [TimeBucketSize] size (required):
  832. ///
  833. /// * [String] timeBucket (required):
  834. ///
  835. /// * [String] userId:
  836. ///
  837. /// * [String] albumId:
  838. ///
  839. /// * [String] personId:
  840. ///
  841. /// * [bool] isArchived:
  842. ///
  843. /// * [bool] isFavorite:
  844. ///
  845. /// * [bool] isTrashed:
  846. ///
  847. /// * [bool] withStacked:
  848. ///
  849. /// * [String] key:
  850. Future<Response> getTimeBucketWithHttpInfo(TimeBucketSize size, String timeBucket, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, String? key, }) async {
  851. // ignore: prefer_const_declarations
  852. final path = r'/asset/time-bucket';
  853. // ignore: prefer_final_locals
  854. Object? postBody;
  855. final queryParams = <QueryParam>[];
  856. final headerParams = <String, String>{};
  857. final formParams = <String, String>{};
  858. queryParams.addAll(_queryParams('', 'size', size));
  859. if (userId != null) {
  860. queryParams.addAll(_queryParams('', 'userId', userId));
  861. }
  862. if (albumId != null) {
  863. queryParams.addAll(_queryParams('', 'albumId', albumId));
  864. }
  865. if (personId != null) {
  866. queryParams.addAll(_queryParams('', 'personId', personId));
  867. }
  868. if (isArchived != null) {
  869. queryParams.addAll(_queryParams('', 'isArchived', isArchived));
  870. }
  871. if (isFavorite != null) {
  872. queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
  873. }
  874. if (isTrashed != null) {
  875. queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
  876. }
  877. if (withStacked != null) {
  878. queryParams.addAll(_queryParams('', 'withStacked', withStacked));
  879. }
  880. queryParams.addAll(_queryParams('', 'timeBucket', timeBucket));
  881. if (key != null) {
  882. queryParams.addAll(_queryParams('', 'key', key));
  883. }
  884. const contentTypes = <String>[];
  885. return apiClient.invokeAPI(
  886. path,
  887. 'GET',
  888. queryParams,
  889. postBody,
  890. headerParams,
  891. formParams,
  892. contentTypes.isEmpty ? null : contentTypes.first,
  893. );
  894. }
  895. /// Parameters:
  896. ///
  897. /// * [TimeBucketSize] size (required):
  898. ///
  899. /// * [String] timeBucket (required):
  900. ///
  901. /// * [String] userId:
  902. ///
  903. /// * [String] albumId:
  904. ///
  905. /// * [String] personId:
  906. ///
  907. /// * [bool] isArchived:
  908. ///
  909. /// * [bool] isFavorite:
  910. ///
  911. /// * [bool] isTrashed:
  912. ///
  913. /// * [bool] withStacked:
  914. ///
  915. /// * [String] key:
  916. Future<List<AssetResponseDto>?> getTimeBucket(TimeBucketSize size, String timeBucket, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, String? key, }) async {
  917. final response = await getTimeBucketWithHttpInfo(size, timeBucket, userId: userId, albumId: albumId, personId: personId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, withStacked: withStacked, key: key, );
  918. if (response.statusCode >= HttpStatus.badRequest) {
  919. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  920. }
  921. // When a remote server returns no body with a status of 204, we shall not decode it.
  922. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  923. // FormatException when trying to decode an empty string.
  924. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  925. final responseBody = await _decodeBodyBytes(response);
  926. return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
  927. .cast<AssetResponseDto>()
  928. .toList();
  929. }
  930. return null;
  931. }
  932. /// Performs an HTTP 'GET /asset/time-buckets' operation and returns the [Response].
  933. /// Parameters:
  934. ///
  935. /// * [TimeBucketSize] size (required):
  936. ///
  937. /// * [String] userId:
  938. ///
  939. /// * [String] albumId:
  940. ///
  941. /// * [String] personId:
  942. ///
  943. /// * [bool] isArchived:
  944. ///
  945. /// * [bool] isFavorite:
  946. ///
  947. /// * [bool] isTrashed:
  948. ///
  949. /// * [bool] withStacked:
  950. ///
  951. /// * [String] key:
  952. Future<Response> getTimeBucketsWithHttpInfo(TimeBucketSize size, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, String? key, }) async {
  953. // ignore: prefer_const_declarations
  954. final path = r'/asset/time-buckets';
  955. // ignore: prefer_final_locals
  956. Object? postBody;
  957. final queryParams = <QueryParam>[];
  958. final headerParams = <String, String>{};
  959. final formParams = <String, String>{};
  960. queryParams.addAll(_queryParams('', 'size', size));
  961. if (userId != null) {
  962. queryParams.addAll(_queryParams('', 'userId', userId));
  963. }
  964. if (albumId != null) {
  965. queryParams.addAll(_queryParams('', 'albumId', albumId));
  966. }
  967. if (personId != null) {
  968. queryParams.addAll(_queryParams('', 'personId', personId));
  969. }
  970. if (isArchived != null) {
  971. queryParams.addAll(_queryParams('', 'isArchived', isArchived));
  972. }
  973. if (isFavorite != null) {
  974. queryParams.addAll(_queryParams('', 'isFavorite', isFavorite));
  975. }
  976. if (isTrashed != null) {
  977. queryParams.addAll(_queryParams('', 'isTrashed', isTrashed));
  978. }
  979. if (withStacked != null) {
  980. queryParams.addAll(_queryParams('', 'withStacked', withStacked));
  981. }
  982. if (key != null) {
  983. queryParams.addAll(_queryParams('', 'key', key));
  984. }
  985. const contentTypes = <String>[];
  986. return apiClient.invokeAPI(
  987. path,
  988. 'GET',
  989. queryParams,
  990. postBody,
  991. headerParams,
  992. formParams,
  993. contentTypes.isEmpty ? null : contentTypes.first,
  994. );
  995. }
  996. /// Parameters:
  997. ///
  998. /// * [TimeBucketSize] size (required):
  999. ///
  1000. /// * [String] userId:
  1001. ///
  1002. /// * [String] albumId:
  1003. ///
  1004. /// * [String] personId:
  1005. ///
  1006. /// * [bool] isArchived:
  1007. ///
  1008. /// * [bool] isFavorite:
  1009. ///
  1010. /// * [bool] isTrashed:
  1011. ///
  1012. /// * [bool] withStacked:
  1013. ///
  1014. /// * [String] key:
  1015. Future<List<TimeBucketResponseDto>?> getTimeBuckets(TimeBucketSize size, { String? userId, String? albumId, String? personId, bool? isArchived, bool? isFavorite, bool? isTrashed, bool? withStacked, String? key, }) async {
  1016. final response = await getTimeBucketsWithHttpInfo(size, userId: userId, albumId: albumId, personId: personId, isArchived: isArchived, isFavorite: isFavorite, isTrashed: isTrashed, withStacked: withStacked, key: key, );
  1017. if (response.statusCode >= HttpStatus.badRequest) {
  1018. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1019. }
  1020. // When a remote server returns no body with a status of 204, we shall not decode it.
  1021. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1022. // FormatException when trying to decode an empty string.
  1023. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1024. final responseBody = await _decodeBodyBytes(response);
  1025. return (await apiClient.deserializeAsync(responseBody, 'List<TimeBucketResponseDto>') as List)
  1026. .cast<TimeBucketResponseDto>()
  1027. .toList();
  1028. }
  1029. return null;
  1030. }
  1031. /// Get all asset of a device that are in the database, ID only.
  1032. ///
  1033. /// Note: This method returns the HTTP [Response].
  1034. ///
  1035. /// Parameters:
  1036. ///
  1037. /// * [String] deviceId (required):
  1038. Future<Response> getUserAssetsByDeviceIdWithHttpInfo(String deviceId,) async {
  1039. // ignore: prefer_const_declarations
  1040. final path = r'/asset/{deviceId}'
  1041. .replaceAll('{deviceId}', deviceId);
  1042. // ignore: prefer_final_locals
  1043. Object? postBody;
  1044. final queryParams = <QueryParam>[];
  1045. final headerParams = <String, String>{};
  1046. final formParams = <String, String>{};
  1047. const contentTypes = <String>[];
  1048. return apiClient.invokeAPI(
  1049. path,
  1050. 'GET',
  1051. queryParams,
  1052. postBody,
  1053. headerParams,
  1054. formParams,
  1055. contentTypes.isEmpty ? null : contentTypes.first,
  1056. );
  1057. }
  1058. /// Get all asset of a device that are in the database, ID only.
  1059. ///
  1060. /// Parameters:
  1061. ///
  1062. /// * [String] deviceId (required):
  1063. Future<List<String>?> getUserAssetsByDeviceId(String deviceId,) async {
  1064. final response = await getUserAssetsByDeviceIdWithHttpInfo(deviceId,);
  1065. if (response.statusCode >= HttpStatus.badRequest) {
  1066. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1067. }
  1068. // When a remote server returns no body with a status of 204, we shall not decode it.
  1069. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1070. // FormatException when trying to decode an empty string.
  1071. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1072. final responseBody = await _decodeBodyBytes(response);
  1073. return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
  1074. .cast<String>()
  1075. .toList();
  1076. }
  1077. return null;
  1078. }
  1079. /// Performs an HTTP 'POST /asset/import' operation and returns the [Response].
  1080. /// Parameters:
  1081. ///
  1082. /// * [ImportAssetDto] importAssetDto (required):
  1083. Future<Response> importFileWithHttpInfo(ImportAssetDto importAssetDto,) async {
  1084. // ignore: prefer_const_declarations
  1085. final path = r'/asset/import';
  1086. // ignore: prefer_final_locals
  1087. Object? postBody = importAssetDto;
  1088. final queryParams = <QueryParam>[];
  1089. final headerParams = <String, String>{};
  1090. final formParams = <String, String>{};
  1091. const contentTypes = <String>['application/json'];
  1092. return apiClient.invokeAPI(
  1093. path,
  1094. 'POST',
  1095. queryParams,
  1096. postBody,
  1097. headerParams,
  1098. formParams,
  1099. contentTypes.isEmpty ? null : contentTypes.first,
  1100. );
  1101. }
  1102. /// Parameters:
  1103. ///
  1104. /// * [ImportAssetDto] importAssetDto (required):
  1105. Future<AssetFileUploadResponseDto?> importFile(ImportAssetDto importAssetDto,) async {
  1106. final response = await importFileWithHttpInfo(importAssetDto,);
  1107. if (response.statusCode >= HttpStatus.badRequest) {
  1108. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1109. }
  1110. // When a remote server returns no body with a status of 204, we shall not decode it.
  1111. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1112. // FormatException when trying to decode an empty string.
  1113. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1114. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetFileUploadResponseDto',) as AssetFileUploadResponseDto;
  1115. }
  1116. return null;
  1117. }
  1118. /// Performs an HTTP 'POST /asset/restore' operation and returns the [Response].
  1119. /// Parameters:
  1120. ///
  1121. /// * [BulkIdsDto] bulkIdsDto (required):
  1122. Future<Response> restoreAssetsWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
  1123. // ignore: prefer_const_declarations
  1124. final path = r'/asset/restore';
  1125. // ignore: prefer_final_locals
  1126. Object? postBody = bulkIdsDto;
  1127. final queryParams = <QueryParam>[];
  1128. final headerParams = <String, String>{};
  1129. final formParams = <String, String>{};
  1130. const contentTypes = <String>['application/json'];
  1131. return apiClient.invokeAPI(
  1132. path,
  1133. 'POST',
  1134. queryParams,
  1135. postBody,
  1136. headerParams,
  1137. formParams,
  1138. contentTypes.isEmpty ? null : contentTypes.first,
  1139. );
  1140. }
  1141. /// Parameters:
  1142. ///
  1143. /// * [BulkIdsDto] bulkIdsDto (required):
  1144. Future<void> restoreAssets(BulkIdsDto bulkIdsDto,) async {
  1145. final response = await restoreAssetsWithHttpInfo(bulkIdsDto,);
  1146. if (response.statusCode >= HttpStatus.badRequest) {
  1147. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1148. }
  1149. }
  1150. /// Performs an HTTP 'POST /asset/trash/restore' operation and returns the [Response].
  1151. Future<Response> restoreTrashWithHttpInfo() async {
  1152. // ignore: prefer_const_declarations
  1153. final path = r'/asset/trash/restore';
  1154. // ignore: prefer_final_locals
  1155. Object? postBody;
  1156. final queryParams = <QueryParam>[];
  1157. final headerParams = <String, String>{};
  1158. final formParams = <String, String>{};
  1159. const contentTypes = <String>[];
  1160. return apiClient.invokeAPI(
  1161. path,
  1162. 'POST',
  1163. queryParams,
  1164. postBody,
  1165. headerParams,
  1166. formParams,
  1167. contentTypes.isEmpty ? null : contentTypes.first,
  1168. );
  1169. }
  1170. Future<void> restoreTrash() async {
  1171. final response = await restoreTrashWithHttpInfo();
  1172. if (response.statusCode >= HttpStatus.badRequest) {
  1173. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1174. }
  1175. }
  1176. /// Performs an HTTP 'POST /asset/jobs' operation and returns the [Response].
  1177. /// Parameters:
  1178. ///
  1179. /// * [AssetJobsDto] assetJobsDto (required):
  1180. Future<Response> runAssetJobsWithHttpInfo(AssetJobsDto assetJobsDto,) async {
  1181. // ignore: prefer_const_declarations
  1182. final path = r'/asset/jobs';
  1183. // ignore: prefer_final_locals
  1184. Object? postBody = assetJobsDto;
  1185. final queryParams = <QueryParam>[];
  1186. final headerParams = <String, String>{};
  1187. final formParams = <String, String>{};
  1188. const contentTypes = <String>['application/json'];
  1189. return apiClient.invokeAPI(
  1190. path,
  1191. 'POST',
  1192. queryParams,
  1193. postBody,
  1194. headerParams,
  1195. formParams,
  1196. contentTypes.isEmpty ? null : contentTypes.first,
  1197. );
  1198. }
  1199. /// Parameters:
  1200. ///
  1201. /// * [AssetJobsDto] assetJobsDto (required):
  1202. Future<void> runAssetJobs(AssetJobsDto assetJobsDto,) async {
  1203. final response = await runAssetJobsWithHttpInfo(assetJobsDto,);
  1204. if (response.statusCode >= HttpStatus.badRequest) {
  1205. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1206. }
  1207. }
  1208. /// Performs an HTTP 'POST /asset/search' operation and returns the [Response].
  1209. /// Parameters:
  1210. ///
  1211. /// * [SearchAssetDto] searchAssetDto (required):
  1212. Future<Response> searchAssetWithHttpInfo(SearchAssetDto searchAssetDto,) async {
  1213. // ignore: prefer_const_declarations
  1214. final path = r'/asset/search';
  1215. // ignore: prefer_final_locals
  1216. Object? postBody = searchAssetDto;
  1217. final queryParams = <QueryParam>[];
  1218. final headerParams = <String, String>{};
  1219. final formParams = <String, String>{};
  1220. const contentTypes = <String>['application/json'];
  1221. return apiClient.invokeAPI(
  1222. path,
  1223. 'POST',
  1224. queryParams,
  1225. postBody,
  1226. headerParams,
  1227. formParams,
  1228. contentTypes.isEmpty ? null : contentTypes.first,
  1229. );
  1230. }
  1231. /// Parameters:
  1232. ///
  1233. /// * [SearchAssetDto] searchAssetDto (required):
  1234. Future<List<AssetResponseDto>?> searchAsset(SearchAssetDto searchAssetDto,) async {
  1235. final response = await searchAssetWithHttpInfo(searchAssetDto,);
  1236. if (response.statusCode >= HttpStatus.badRequest) {
  1237. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1238. }
  1239. // When a remote server returns no body with a status of 204, we shall not decode it.
  1240. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1241. // FormatException when trying to decode an empty string.
  1242. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1243. final responseBody = await _decodeBodyBytes(response);
  1244. return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
  1245. .cast<AssetResponseDto>()
  1246. .toList();
  1247. }
  1248. return null;
  1249. }
  1250. /// Performs an HTTP 'GET /asset/file/{id}' operation and returns the [Response].
  1251. /// Parameters:
  1252. ///
  1253. /// * [String] id (required):
  1254. ///
  1255. /// * [bool] isThumb:
  1256. ///
  1257. /// * [bool] isWeb:
  1258. ///
  1259. /// * [String] key:
  1260. Future<Response> serveFileWithHttpInfo(String id, { bool? isThumb, bool? isWeb, String? key, }) async {
  1261. // ignore: prefer_const_declarations
  1262. final path = r'/asset/file/{id}'
  1263. .replaceAll('{id}', id);
  1264. // ignore: prefer_final_locals
  1265. Object? postBody;
  1266. final queryParams = <QueryParam>[];
  1267. final headerParams = <String, String>{};
  1268. final formParams = <String, String>{};
  1269. if (isThumb != null) {
  1270. queryParams.addAll(_queryParams('', 'isThumb', isThumb));
  1271. }
  1272. if (isWeb != null) {
  1273. queryParams.addAll(_queryParams('', 'isWeb', isWeb));
  1274. }
  1275. if (key != null) {
  1276. queryParams.addAll(_queryParams('', 'key', key));
  1277. }
  1278. const contentTypes = <String>[];
  1279. return apiClient.invokeAPI(
  1280. path,
  1281. 'GET',
  1282. queryParams,
  1283. postBody,
  1284. headerParams,
  1285. formParams,
  1286. contentTypes.isEmpty ? null : contentTypes.first,
  1287. );
  1288. }
  1289. /// Parameters:
  1290. ///
  1291. /// * [String] id (required):
  1292. ///
  1293. /// * [bool] isThumb:
  1294. ///
  1295. /// * [bool] isWeb:
  1296. ///
  1297. /// * [String] key:
  1298. Future<MultipartFile?> serveFile(String id, { bool? isThumb, bool? isWeb, String? key, }) async {
  1299. final response = await serveFileWithHttpInfo(id, isThumb: isThumb, isWeb: isWeb, key: key, );
  1300. if (response.statusCode >= HttpStatus.badRequest) {
  1301. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1302. }
  1303. // When a remote server returns no body with a status of 204, we shall not decode it.
  1304. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1305. // FormatException when trying to decode an empty string.
  1306. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1307. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile;
  1308. }
  1309. return null;
  1310. }
  1311. /// Performs an HTTP 'PUT /asset/{id}' operation and returns the [Response].
  1312. /// Parameters:
  1313. ///
  1314. /// * [String] id (required):
  1315. ///
  1316. /// * [UpdateAssetDto] updateAssetDto (required):
  1317. Future<Response> updateAssetWithHttpInfo(String id, UpdateAssetDto updateAssetDto,) async {
  1318. // ignore: prefer_const_declarations
  1319. final path = r'/asset/{id}'
  1320. .replaceAll('{id}', id);
  1321. // ignore: prefer_final_locals
  1322. Object? postBody = updateAssetDto;
  1323. final queryParams = <QueryParam>[];
  1324. final headerParams = <String, String>{};
  1325. final formParams = <String, String>{};
  1326. const contentTypes = <String>['application/json'];
  1327. return apiClient.invokeAPI(
  1328. path,
  1329. 'PUT',
  1330. queryParams,
  1331. postBody,
  1332. headerParams,
  1333. formParams,
  1334. contentTypes.isEmpty ? null : contentTypes.first,
  1335. );
  1336. }
  1337. /// Parameters:
  1338. ///
  1339. /// * [String] id (required):
  1340. ///
  1341. /// * [UpdateAssetDto] updateAssetDto (required):
  1342. Future<AssetResponseDto?> updateAsset(String id, UpdateAssetDto updateAssetDto,) async {
  1343. final response = await updateAssetWithHttpInfo(id, updateAssetDto,);
  1344. if (response.statusCode >= HttpStatus.badRequest) {
  1345. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1346. }
  1347. // When a remote server returns no body with a status of 204, we shall not decode it.
  1348. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1349. // FormatException when trying to decode an empty string.
  1350. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1351. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetResponseDto',) as AssetResponseDto;
  1352. }
  1353. return null;
  1354. }
  1355. /// Performs an HTTP 'PUT /asset' operation and returns the [Response].
  1356. /// Parameters:
  1357. ///
  1358. /// * [AssetBulkUpdateDto] assetBulkUpdateDto (required):
  1359. Future<Response> updateAssetsWithHttpInfo(AssetBulkUpdateDto assetBulkUpdateDto,) async {
  1360. // ignore: prefer_const_declarations
  1361. final path = r'/asset';
  1362. // ignore: prefer_final_locals
  1363. Object? postBody = assetBulkUpdateDto;
  1364. final queryParams = <QueryParam>[];
  1365. final headerParams = <String, String>{};
  1366. final formParams = <String, String>{};
  1367. const contentTypes = <String>['application/json'];
  1368. return apiClient.invokeAPI(
  1369. path,
  1370. 'PUT',
  1371. queryParams,
  1372. postBody,
  1373. headerParams,
  1374. formParams,
  1375. contentTypes.isEmpty ? null : contentTypes.first,
  1376. );
  1377. }
  1378. /// Parameters:
  1379. ///
  1380. /// * [AssetBulkUpdateDto] assetBulkUpdateDto (required):
  1381. Future<void> updateAssets(AssetBulkUpdateDto assetBulkUpdateDto,) async {
  1382. final response = await updateAssetsWithHttpInfo(assetBulkUpdateDto,);
  1383. if (response.statusCode >= HttpStatus.badRequest) {
  1384. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1385. }
  1386. }
  1387. /// Performs an HTTP 'PUT /asset/stack/parent' operation and returns the [Response].
  1388. /// Parameters:
  1389. ///
  1390. /// * [UpdateStackParentDto] updateStackParentDto (required):
  1391. Future<Response> updateStackParentWithHttpInfo(UpdateStackParentDto updateStackParentDto,) async {
  1392. // ignore: prefer_const_declarations
  1393. final path = r'/asset/stack/parent';
  1394. // ignore: prefer_final_locals
  1395. Object? postBody = updateStackParentDto;
  1396. final queryParams = <QueryParam>[];
  1397. final headerParams = <String, String>{};
  1398. final formParams = <String, String>{};
  1399. const contentTypes = <String>['application/json'];
  1400. return apiClient.invokeAPI(
  1401. path,
  1402. 'PUT',
  1403. queryParams,
  1404. postBody,
  1405. headerParams,
  1406. formParams,
  1407. contentTypes.isEmpty ? null : contentTypes.first,
  1408. );
  1409. }
  1410. /// Parameters:
  1411. ///
  1412. /// * [UpdateStackParentDto] updateStackParentDto (required):
  1413. Future<void> updateStackParent(UpdateStackParentDto updateStackParentDto,) async {
  1414. final response = await updateStackParentWithHttpInfo(updateStackParentDto,);
  1415. if (response.statusCode >= HttpStatus.badRequest) {
  1416. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1417. }
  1418. }
  1419. /// Performs an HTTP 'POST /asset/upload' operation and returns the [Response].
  1420. /// Parameters:
  1421. ///
  1422. /// * [MultipartFile] assetData (required):
  1423. ///
  1424. /// * [String] deviceAssetId (required):
  1425. ///
  1426. /// * [String] deviceId (required):
  1427. ///
  1428. /// * [DateTime] fileCreatedAt (required):
  1429. ///
  1430. /// * [DateTime] fileModifiedAt (required):
  1431. ///
  1432. /// * [String] key:
  1433. ///
  1434. /// * [String] duration:
  1435. ///
  1436. /// * [bool] isArchived:
  1437. ///
  1438. /// * [bool] isExternal:
  1439. ///
  1440. /// * [bool] isFavorite:
  1441. ///
  1442. /// * [bool] isOffline:
  1443. ///
  1444. /// * [bool] isReadOnly:
  1445. ///
  1446. /// * [bool] isVisible:
  1447. ///
  1448. /// * [String] libraryId:
  1449. ///
  1450. /// * [MultipartFile] livePhotoData:
  1451. ///
  1452. /// * [MultipartFile] sidecarData:
  1453. Future<Response> uploadFileWithHttpInfo(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 {
  1454. // ignore: prefer_const_declarations
  1455. final path = r'/asset/upload';
  1456. // ignore: prefer_final_locals
  1457. Object? postBody;
  1458. final queryParams = <QueryParam>[];
  1459. final headerParams = <String, String>{};
  1460. final formParams = <String, String>{};
  1461. if (key != null) {
  1462. queryParams.addAll(_queryParams('', 'key', key));
  1463. }
  1464. const contentTypes = <String>['multipart/form-data'];
  1465. bool hasFields = false;
  1466. final mp = MultipartRequest('POST', Uri.parse(path));
  1467. if (assetData != null) {
  1468. hasFields = true;
  1469. mp.fields[r'assetData'] = assetData.field;
  1470. mp.files.add(assetData);
  1471. }
  1472. if (deviceAssetId != null) {
  1473. hasFields = true;
  1474. mp.fields[r'deviceAssetId'] = parameterToString(deviceAssetId);
  1475. }
  1476. if (deviceId != null) {
  1477. hasFields = true;
  1478. mp.fields[r'deviceId'] = parameterToString(deviceId);
  1479. }
  1480. if (duration != null) {
  1481. hasFields = true;
  1482. mp.fields[r'duration'] = parameterToString(duration);
  1483. }
  1484. if (fileCreatedAt != null) {
  1485. hasFields = true;
  1486. mp.fields[r'fileCreatedAt'] = parameterToString(fileCreatedAt);
  1487. }
  1488. if (fileModifiedAt != null) {
  1489. hasFields = true;
  1490. mp.fields[r'fileModifiedAt'] = parameterToString(fileModifiedAt);
  1491. }
  1492. if (isArchived != null) {
  1493. hasFields = true;
  1494. mp.fields[r'isArchived'] = parameterToString(isArchived);
  1495. }
  1496. if (isExternal != null) {
  1497. hasFields = true;
  1498. mp.fields[r'isExternal'] = parameterToString(isExternal);
  1499. }
  1500. if (isFavorite != null) {
  1501. hasFields = true;
  1502. mp.fields[r'isFavorite'] = parameterToString(isFavorite);
  1503. }
  1504. if (isOffline != null) {
  1505. hasFields = true;
  1506. mp.fields[r'isOffline'] = parameterToString(isOffline);
  1507. }
  1508. if (isReadOnly != null) {
  1509. hasFields = true;
  1510. mp.fields[r'isReadOnly'] = parameterToString(isReadOnly);
  1511. }
  1512. if (isVisible != null) {
  1513. hasFields = true;
  1514. mp.fields[r'isVisible'] = parameterToString(isVisible);
  1515. }
  1516. if (libraryId != null) {
  1517. hasFields = true;
  1518. mp.fields[r'libraryId'] = parameterToString(libraryId);
  1519. }
  1520. if (livePhotoData != null) {
  1521. hasFields = true;
  1522. mp.fields[r'livePhotoData'] = livePhotoData.field;
  1523. mp.files.add(livePhotoData);
  1524. }
  1525. if (sidecarData != null) {
  1526. hasFields = true;
  1527. mp.fields[r'sidecarData'] = sidecarData.field;
  1528. mp.files.add(sidecarData);
  1529. }
  1530. if (hasFields) {
  1531. postBody = mp;
  1532. }
  1533. return apiClient.invokeAPI(
  1534. path,
  1535. 'POST',
  1536. queryParams,
  1537. postBody,
  1538. headerParams,
  1539. formParams,
  1540. contentTypes.isEmpty ? null : contentTypes.first,
  1541. );
  1542. }
  1543. /// Parameters:
  1544. ///
  1545. /// * [MultipartFile] assetData (required):
  1546. ///
  1547. /// * [String] deviceAssetId (required):
  1548. ///
  1549. /// * [String] deviceId (required):
  1550. ///
  1551. /// * [DateTime] fileCreatedAt (required):
  1552. ///
  1553. /// * [DateTime] fileModifiedAt (required):
  1554. ///
  1555. /// * [String] key:
  1556. ///
  1557. /// * [String] duration:
  1558. ///
  1559. /// * [bool] isArchived:
  1560. ///
  1561. /// * [bool] isExternal:
  1562. ///
  1563. /// * [bool] isFavorite:
  1564. ///
  1565. /// * [bool] isOffline:
  1566. ///
  1567. /// * [bool] isReadOnly:
  1568. ///
  1569. /// * [bool] isVisible:
  1570. ///
  1571. /// * [String] libraryId:
  1572. ///
  1573. /// * [MultipartFile] livePhotoData:
  1574. ///
  1575. /// * [MultipartFile] sidecarData:
  1576. 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 {
  1577. final response = await uploadFileWithHttpInfo(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key: key, duration: duration, isArchived: isArchived, isExternal: isExternal, isFavorite: isFavorite, isOffline: isOffline, isReadOnly: isReadOnly, isVisible: isVisible, libraryId: libraryId, livePhotoData: livePhotoData, sidecarData: sidecarData, );
  1578. if (response.statusCode >= HttpStatus.badRequest) {
  1579. throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  1580. }
  1581. // When a remote server returns no body with a status of 204, we shall not decode it.
  1582. // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  1583. // FormatException when trying to decode an empty string.
  1584. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
  1585. return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'AssetFileUploadResponseDto',) as AssetFileUploadResponseDto;
  1586. }
  1587. return null;
  1588. }
  1589. }