refactor(server)!: add/remove album assets (#3109)

* refactor: add/remove album assets

* chore: open api

* feat: remove owned assets from album

* refactor: move to bulk id req/res dto

* chore: open api

* chore: merge main

* dev: mobile work

* fix: adding asset from web not sync with mobile

* remove print statement

---------

Co-authored-by: Alex Tran <Alex.Tran@conductix.com>
This commit is contained in:
Jason Rasmussen 2023-08-01 21:29:14 -04:00 committed by GitHub
parent ba71c83948
commit b9cda59172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 890 additions and 1282 deletions

View file

@ -1,37 +0,0 @@
//
// 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 AddAssetsResponseDto
void main() {
// final instance = AddAssetsResponseDto();
group('test AddAssetsResponseDto', () {
// AlbumResponseDto album
test('to test the property `album`', () async {
// TODO
});
// List<String> alreadyInAlbum (default value: const [])
test('to test the property `alreadyInAlbum`', () async {
// TODO
});
// int successfullyAdded
test('to test the property `successfullyAdded`', () async {
// TODO
});
});
}

View file

@ -17,7 +17,7 @@ void main() {
// final instance = AlbumApi();
group('tests for AlbumApi', () {
//Future<AddAssetsResponseDto> addAssetsToAlbum(String id, AddAssetsDto addAssetsDto, { String key }) async
//Future<List<BulkIdResponseDto>> addAssetsToAlbum(String id, BulkIdsDto bulkIdsDto, { String key }) async
test('test addAssetsToAlbum', () async {
// TODO
});
@ -52,7 +52,7 @@ void main() {
// TODO
});
//Future<AlbumResponseDto> removeAssetFromAlbum(String id, RemoveAssetsDto removeAssetsDto) async
//Future<List<BulkIdResponseDto>> removeAssetFromAlbum(String id, BulkIdsDto bulkIdsDto) async
test('test removeAssetFromAlbum', () async {
// TODO
});

View file

@ -11,13 +11,13 @@
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for AddAssetsDto
// tests for BulkIdsDto
void main() {
// final instance = AddAssetsDto();
// final instance = BulkIdsDto();
group('test AddAssetsDto', () {
// List<String> assetIds (default value: const [])
test('to test the property `assetIds`', () async {
group('test BulkIdsDto', () {
// List<String> ids (default value: const [])
test('to test the property `ids`', () async {
// TODO
});

View file

@ -1,27 +0,0 @@
//
// 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 RemoveAssetsDto
void main() {
// final instance = RemoveAssetsDto();
group('test RemoveAssetsDto', () {
// List<String> assetIds (default value: const [])
test('to test the property `assetIds`', () async {
// TODO
});
});
}