mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
refactor(server): tags (#2589)
* refactor: tags * chore: open api * chore: unused import * feat: add/remove/get tag assets * chore: open api * chore: finish tag tests for add/remove assets
This commit is contained in:
27
mobile/openapi/test/asset_ids_dto_test.dart
generated
Normal file
27
mobile/openapi/test/asset_ids_dto_test.dart
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// 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 AssetIdsDto
|
||||
void main() {
|
||||
// final instance = AssetIdsDto();
|
||||
|
||||
group('test AssetIdsDto', () {
|
||||
// List<String> assetIds (default value: const [])
|
||||
test('to test the property `assetIds`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
37
mobile/openapi/test/asset_ids_response_dto_test.dart
generated
Normal file
37
mobile/openapi/test/asset_ids_response_dto_test.dart
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// 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 AssetIdsResponseDto
|
||||
void main() {
|
||||
// final instance = AssetIdsResponseDto();
|
||||
|
||||
group('test AssetIdsResponseDto', () {
|
||||
// String assetId
|
||||
test('to test the property `assetId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool success
|
||||
test('to test the property `success`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String error
|
||||
test('to test the property `error`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
35
mobile/openapi/test/tag_api_test.dart
generated
35
mobile/openapi/test/tag_api_test.dart
generated
@@ -17,28 +17,43 @@ void main() {
|
||||
// final instance = TagApi();
|
||||
|
||||
group('tests for TagApi', () {
|
||||
//Future<TagResponseDto> create(CreateTagDto createTagDto) async
|
||||
test('test create', () async {
|
||||
//Future<TagResponseDto> createTag(CreateTagDto createTagDto) async
|
||||
test('test createTag', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future delete(String id) async
|
||||
test('test delete', () async {
|
||||
//Future deleteTag(String id) async
|
||||
test('test deleteTag', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<TagResponseDto>> findAll() async
|
||||
test('test findAll', () async {
|
||||
//Future<List<TagResponseDto>> getAllTags() async
|
||||
test('test getAllTags', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<TagResponseDto> findOne(String id) async
|
||||
test('test findOne', () async {
|
||||
//Future<List<AssetResponseDto>> getTagAssets(String id) async
|
||||
test('test getTagAssets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<TagResponseDto> update(String id, UpdateTagDto updateTagDto) async
|
||||
test('test update', () async {
|
||||
//Future<TagResponseDto> getTagById(String id) async
|
||||
test('test getTagById', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<AssetIdsResponseDto>> tagAssets(String id, AssetIdsDto assetIdsDto) async
|
||||
test('test tagAssets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<List<AssetIdsResponseDto>> untagAssets(String id, AssetIdsDto assetIdsDto) async
|
||||
test('test untagAssets', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<TagResponseDto> updateTag(String id, UpdateTagDto updateTagDto) async
|
||||
test('test updateTag', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
13
mobile/openapi/test/tag_response_dto_test.dart
generated
13
mobile/openapi/test/tag_response_dto_test.dart
generated
@@ -16,13 +16,13 @@ void main() {
|
||||
// final instance = TagResponseDto();
|
||||
|
||||
group('test TagResponseDto', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TagTypeEnum type
|
||||
test('to test the property `type`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// TagTypeEnum type
|
||||
test('to test the property `type`', () async {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
@@ -36,11 +36,6 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String renameTagId
|
||||
test('to test the property `renameTagId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
5
mobile/openapi/test/update_tag_dto_test.dart
generated
5
mobile/openapi/test/update_tag_dto_test.dart
generated
@@ -21,11 +21,6 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String renameTagId
|
||||
test('to test the property `renameTagId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user