mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
feat(web/server): Add options to rerun job on all assets (#1422)
This commit is contained in:
1
mobile/openapi/doc/JobCommandDto.md
generated
1
mobile/openapi/doc/JobCommandDto.md
generated
@@ -9,6 +9,7 @@ import 'package:openapi/api.dart';
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**command** | [**JobCommand**](JobCommand.md) | |
|
||||
**includeAllAssets** | **bool** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
14
mobile/openapi/lib/model/job_command_dto.dart
generated
14
mobile/openapi/lib/model/job_command_dto.dart
generated
@@ -14,25 +14,31 @@ class JobCommandDto {
|
||||
/// Returns a new [JobCommandDto] instance.
|
||||
JobCommandDto({
|
||||
required this.command,
|
||||
required this.includeAllAssets,
|
||||
});
|
||||
|
||||
JobCommand command;
|
||||
|
||||
bool includeAllAssets;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is JobCommandDto &&
|
||||
other.command == command;
|
||||
other.command == command &&
|
||||
other.includeAllAssets == includeAllAssets;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(command.hashCode);
|
||||
(command.hashCode) +
|
||||
(includeAllAssets.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'JobCommandDto[command=$command]';
|
||||
String toString() => 'JobCommandDto[command=$command, includeAllAssets=$includeAllAssets]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'command'] = this.command;
|
||||
json[r'includeAllAssets'] = this.includeAllAssets;
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -56,6 +62,7 @@ class JobCommandDto {
|
||||
|
||||
return JobCommandDto(
|
||||
command: JobCommand.fromJson(json[r'command'])!,
|
||||
includeAllAssets: mapValueOfType<bool>(json, r'includeAllAssets')!,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
@@ -106,6 +113,7 @@ class JobCommandDto {
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'command',
|
||||
'includeAllAssets',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
5
mobile/openapi/test/job_command_dto_test.dart
generated
5
mobile/openapi/test/job_command_dto_test.dart
generated
@@ -21,6 +21,11 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool includeAllAssets
|
||||
test('to test the property `includeAllAssets`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user