forked from Cutlery/immich
job panel, update api
This commit is contained in:
parent
ba2ff0efee
commit
33d09fb5ef
1
mobile/openapi/doc/AllJobStatusResponseDto.md
generated
1
mobile/openapi/doc/AllJobStatusResponseDto.md
generated
@ -9,6 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**backgroundTask** | [**JobStatusDto**](JobStatusDto.md) | |
|
**backgroundTask** | [**JobStatusDto**](JobStatusDto.md) | |
|
||||||
|
**duplicateDetection** | [**JobStatusDto**](JobStatusDto.md) | |
|
||||||
**faceDetection** | [**JobStatusDto**](JobStatusDto.md) | |
|
**faceDetection** | [**JobStatusDto**](JobStatusDto.md) | |
|
||||||
**facialRecognition** | [**JobStatusDto**](JobStatusDto.md) | |
|
**facialRecognition** | [**JobStatusDto**](JobStatusDto.md) | |
|
||||||
**library_** | [**JobStatusDto**](JobStatusDto.md) | |
|
**library_** | [**JobStatusDto**](JobStatusDto.md) | |
|
||||||
|
1
mobile/openapi/doc/CLIPConfig.md
generated
1
mobile/openapi/doc/CLIPConfig.md
generated
@ -8,6 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**duplicateThreshold** | **double** | |
|
||||||
**enabled** | **bool** | |
|
**enabled** | **bool** | |
|
||||||
**mode** | [**CLIPMode**](CLIPMode.md) | | [optional]
|
**mode** | [**CLIPMode**](CLIPMode.md) | | [optional]
|
||||||
**modelName** | **String** | |
|
**modelName** | **String** | |
|
||||||
|
1
mobile/openapi/doc/SystemConfigJobDto.md
generated
1
mobile/openapi/doc/SystemConfigJobDto.md
generated
@ -9,6 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**backgroundTask** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**backgroundTask** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
|
**duplicateDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**faceDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**faceDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**library_** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**library_** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**metadataExtraction** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**metadataExtraction** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
|
@ -14,6 +14,7 @@ class AllJobStatusResponseDto {
|
|||||||
/// Returns a new [AllJobStatusResponseDto] instance.
|
/// Returns a new [AllJobStatusResponseDto] instance.
|
||||||
AllJobStatusResponseDto({
|
AllJobStatusResponseDto({
|
||||||
required this.backgroundTask,
|
required this.backgroundTask,
|
||||||
|
required this.duplicateDetection,
|
||||||
required this.faceDetection,
|
required this.faceDetection,
|
||||||
required this.facialRecognition,
|
required this.facialRecognition,
|
||||||
required this.library_,
|
required this.library_,
|
||||||
@ -29,6 +30,8 @@ class AllJobStatusResponseDto {
|
|||||||
|
|
||||||
JobStatusDto backgroundTask;
|
JobStatusDto backgroundTask;
|
||||||
|
|
||||||
|
JobStatusDto duplicateDetection;
|
||||||
|
|
||||||
JobStatusDto faceDetection;
|
JobStatusDto faceDetection;
|
||||||
|
|
||||||
JobStatusDto facialRecognition;
|
JobStatusDto facialRecognition;
|
||||||
@ -54,6 +57,7 @@ class AllJobStatusResponseDto {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
|
||||||
other.backgroundTask == backgroundTask &&
|
other.backgroundTask == backgroundTask &&
|
||||||
|
other.duplicateDetection == duplicateDetection &&
|
||||||
other.faceDetection == faceDetection &&
|
other.faceDetection == faceDetection &&
|
||||||
other.facialRecognition == facialRecognition &&
|
other.facialRecognition == facialRecognition &&
|
||||||
other.library_ == library_ &&
|
other.library_ == library_ &&
|
||||||
@ -70,6 +74,7 @@ class AllJobStatusResponseDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(backgroundTask.hashCode) +
|
(backgroundTask.hashCode) +
|
||||||
|
(duplicateDetection.hashCode) +
|
||||||
(faceDetection.hashCode) +
|
(faceDetection.hashCode) +
|
||||||
(facialRecognition.hashCode) +
|
(facialRecognition.hashCode) +
|
||||||
(library_.hashCode) +
|
(library_.hashCode) +
|
||||||
@ -83,11 +88,12 @@ class AllJobStatusResponseDto {
|
|||||||
(videoConversion.hashCode);
|
(videoConversion.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AllJobStatusResponseDto[backgroundTask=$backgroundTask, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
String toString() => 'AllJobStatusResponseDto[backgroundTask=$backgroundTask, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, facialRecognition=$facialRecognition, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, storageTemplateMigration=$storageTemplateMigration, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'backgroundTask'] = this.backgroundTask;
|
json[r'backgroundTask'] = this.backgroundTask;
|
||||||
|
json[r'duplicateDetection'] = this.duplicateDetection;
|
||||||
json[r'faceDetection'] = this.faceDetection;
|
json[r'faceDetection'] = this.faceDetection;
|
||||||
json[r'facialRecognition'] = this.facialRecognition;
|
json[r'facialRecognition'] = this.facialRecognition;
|
||||||
json[r'library'] = this.library_;
|
json[r'library'] = this.library_;
|
||||||
@ -111,6 +117,7 @@ class AllJobStatusResponseDto {
|
|||||||
|
|
||||||
return AllJobStatusResponseDto(
|
return AllJobStatusResponseDto(
|
||||||
backgroundTask: JobStatusDto.fromJson(json[r'backgroundTask'])!,
|
backgroundTask: JobStatusDto.fromJson(json[r'backgroundTask'])!,
|
||||||
|
duplicateDetection: JobStatusDto.fromJson(json[r'duplicateDetection'])!,
|
||||||
faceDetection: JobStatusDto.fromJson(json[r'faceDetection'])!,
|
faceDetection: JobStatusDto.fromJson(json[r'faceDetection'])!,
|
||||||
facialRecognition: JobStatusDto.fromJson(json[r'facialRecognition'])!,
|
facialRecognition: JobStatusDto.fromJson(json[r'facialRecognition'])!,
|
||||||
library_: JobStatusDto.fromJson(json[r'library'])!,
|
library_: JobStatusDto.fromJson(json[r'library'])!,
|
||||||
@ -170,6 +177,7 @@ class AllJobStatusResponseDto {
|
|||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
'backgroundTask',
|
'backgroundTask',
|
||||||
|
'duplicateDetection',
|
||||||
'faceDetection',
|
'faceDetection',
|
||||||
'facialRecognition',
|
'facialRecognition',
|
||||||
'library',
|
'library',
|
||||||
|
10
mobile/openapi/lib/model/clip_config.dart
generated
10
mobile/openapi/lib/model/clip_config.dart
generated
@ -13,12 +13,15 @@ part of openapi.api;
|
|||||||
class CLIPConfig {
|
class CLIPConfig {
|
||||||
/// Returns a new [CLIPConfig] instance.
|
/// Returns a new [CLIPConfig] instance.
|
||||||
CLIPConfig({
|
CLIPConfig({
|
||||||
|
required this.duplicateThreshold,
|
||||||
required this.enabled,
|
required this.enabled,
|
||||||
this.mode,
|
this.mode,
|
||||||
required this.modelName,
|
required this.modelName,
|
||||||
this.modelType,
|
this.modelType,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
double duplicateThreshold;
|
||||||
|
|
||||||
bool enabled;
|
bool enabled;
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -41,6 +44,7 @@ class CLIPConfig {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is CLIPConfig &&
|
bool operator ==(Object other) => identical(this, other) || other is CLIPConfig &&
|
||||||
|
other.duplicateThreshold == duplicateThreshold &&
|
||||||
other.enabled == enabled &&
|
other.enabled == enabled &&
|
||||||
other.mode == mode &&
|
other.mode == mode &&
|
||||||
other.modelName == modelName &&
|
other.modelName == modelName &&
|
||||||
@ -49,16 +53,18 @@ class CLIPConfig {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
|
(duplicateThreshold.hashCode) +
|
||||||
(enabled.hashCode) +
|
(enabled.hashCode) +
|
||||||
(mode == null ? 0 : mode!.hashCode) +
|
(mode == null ? 0 : mode!.hashCode) +
|
||||||
(modelName.hashCode) +
|
(modelName.hashCode) +
|
||||||
(modelType == null ? 0 : modelType!.hashCode);
|
(modelType == null ? 0 : modelType!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'CLIPConfig[enabled=$enabled, mode=$mode, modelName=$modelName, modelType=$modelType]';
|
String toString() => 'CLIPConfig[duplicateThreshold=$duplicateThreshold, enabled=$enabled, mode=$mode, modelName=$modelName, modelType=$modelType]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
|
json[r'duplicateThreshold'] = this.duplicateThreshold;
|
||||||
json[r'enabled'] = this.enabled;
|
json[r'enabled'] = this.enabled;
|
||||||
if (this.mode != null) {
|
if (this.mode != null) {
|
||||||
json[r'mode'] = this.mode;
|
json[r'mode'] = this.mode;
|
||||||
@ -82,6 +88,7 @@ class CLIPConfig {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return CLIPConfig(
|
return CLIPConfig(
|
||||||
|
duplicateThreshold: mapValueOfType<double>(json, r'duplicateThreshold')!,
|
||||||
enabled: mapValueOfType<bool>(json, r'enabled')!,
|
enabled: mapValueOfType<bool>(json, r'enabled')!,
|
||||||
mode: CLIPMode.fromJson(json[r'mode']),
|
mode: CLIPMode.fromJson(json[r'mode']),
|
||||||
modelName: mapValueOfType<String>(json, r'modelName')!,
|
modelName: mapValueOfType<String>(json, r'modelName')!,
|
||||||
@ -133,6 +140,7 @@ class CLIPConfig {
|
|||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
|
'duplicateThreshold',
|
||||||
'enabled',
|
'enabled',
|
||||||
'modelName',
|
'modelName',
|
||||||
};
|
};
|
||||||
|
3
mobile/openapi/lib/model/job_name.dart
generated
3
mobile/openapi/lib/model/job_name.dart
generated
@ -29,6 +29,7 @@ class JobName {
|
|||||||
static const faceDetection = JobName._(r'faceDetection');
|
static const faceDetection = JobName._(r'faceDetection');
|
||||||
static const facialRecognition = JobName._(r'facialRecognition');
|
static const facialRecognition = JobName._(r'facialRecognition');
|
||||||
static const smartSearch = JobName._(r'smartSearch');
|
static const smartSearch = JobName._(r'smartSearch');
|
||||||
|
static const duplicateDetection = JobName._(r'duplicateDetection');
|
||||||
static const backgroundTask = JobName._(r'backgroundTask');
|
static const backgroundTask = JobName._(r'backgroundTask');
|
||||||
static const storageTemplateMigration = JobName._(r'storageTemplateMigration');
|
static const storageTemplateMigration = JobName._(r'storageTemplateMigration');
|
||||||
static const migration = JobName._(r'migration');
|
static const migration = JobName._(r'migration');
|
||||||
@ -44,6 +45,7 @@ class JobName {
|
|||||||
faceDetection,
|
faceDetection,
|
||||||
facialRecognition,
|
facialRecognition,
|
||||||
smartSearch,
|
smartSearch,
|
||||||
|
duplicateDetection,
|
||||||
backgroundTask,
|
backgroundTask,
|
||||||
storageTemplateMigration,
|
storageTemplateMigration,
|
||||||
migration,
|
migration,
|
||||||
@ -94,6 +96,7 @@ class JobNameTypeTransformer {
|
|||||||
case r'faceDetection': return JobName.faceDetection;
|
case r'faceDetection': return JobName.faceDetection;
|
||||||
case r'facialRecognition': return JobName.facialRecognition;
|
case r'facialRecognition': return JobName.facialRecognition;
|
||||||
case r'smartSearch': return JobName.smartSearch;
|
case r'smartSearch': return JobName.smartSearch;
|
||||||
|
case r'duplicateDetection': return JobName.duplicateDetection;
|
||||||
case r'backgroundTask': return JobName.backgroundTask;
|
case r'backgroundTask': return JobName.backgroundTask;
|
||||||
case r'storageTemplateMigration': return JobName.storageTemplateMigration;
|
case r'storageTemplateMigration': return JobName.storageTemplateMigration;
|
||||||
case r'migration': return JobName.migration;
|
case r'migration': return JobName.migration;
|
||||||
|
10
mobile/openapi/lib/model/system_config_job_dto.dart
generated
10
mobile/openapi/lib/model/system_config_job_dto.dart
generated
@ -14,6 +14,7 @@ class SystemConfigJobDto {
|
|||||||
/// Returns a new [SystemConfigJobDto] instance.
|
/// Returns a new [SystemConfigJobDto] instance.
|
||||||
SystemConfigJobDto({
|
SystemConfigJobDto({
|
||||||
required this.backgroundTask,
|
required this.backgroundTask,
|
||||||
|
required this.duplicateDetection,
|
||||||
required this.faceDetection,
|
required this.faceDetection,
|
||||||
required this.library_,
|
required this.library_,
|
||||||
required this.metadataExtraction,
|
required this.metadataExtraction,
|
||||||
@ -27,6 +28,8 @@ class SystemConfigJobDto {
|
|||||||
|
|
||||||
JobSettingsDto backgroundTask;
|
JobSettingsDto backgroundTask;
|
||||||
|
|
||||||
|
JobSettingsDto duplicateDetection;
|
||||||
|
|
||||||
JobSettingsDto faceDetection;
|
JobSettingsDto faceDetection;
|
||||||
|
|
||||||
JobSettingsDto library_;
|
JobSettingsDto library_;
|
||||||
@ -48,6 +51,7 @@ class SystemConfigJobDto {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
|
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
|
||||||
other.backgroundTask == backgroundTask &&
|
other.backgroundTask == backgroundTask &&
|
||||||
|
other.duplicateDetection == duplicateDetection &&
|
||||||
other.faceDetection == faceDetection &&
|
other.faceDetection == faceDetection &&
|
||||||
other.library_ == library_ &&
|
other.library_ == library_ &&
|
||||||
other.metadataExtraction == metadataExtraction &&
|
other.metadataExtraction == metadataExtraction &&
|
||||||
@ -62,6 +66,7 @@ class SystemConfigJobDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(backgroundTask.hashCode) +
|
(backgroundTask.hashCode) +
|
||||||
|
(duplicateDetection.hashCode) +
|
||||||
(faceDetection.hashCode) +
|
(faceDetection.hashCode) +
|
||||||
(library_.hashCode) +
|
(library_.hashCode) +
|
||||||
(metadataExtraction.hashCode) +
|
(metadataExtraction.hashCode) +
|
||||||
@ -73,11 +78,12 @@ class SystemConfigJobDto {
|
|||||||
(videoConversion.hashCode);
|
(videoConversion.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'backgroundTask'] = this.backgroundTask;
|
json[r'backgroundTask'] = this.backgroundTask;
|
||||||
|
json[r'duplicateDetection'] = this.duplicateDetection;
|
||||||
json[r'faceDetection'] = this.faceDetection;
|
json[r'faceDetection'] = this.faceDetection;
|
||||||
json[r'library'] = this.library_;
|
json[r'library'] = this.library_;
|
||||||
json[r'metadataExtraction'] = this.metadataExtraction;
|
json[r'metadataExtraction'] = this.metadataExtraction;
|
||||||
@ -99,6 +105,7 @@ class SystemConfigJobDto {
|
|||||||
|
|
||||||
return SystemConfigJobDto(
|
return SystemConfigJobDto(
|
||||||
backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!,
|
backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!,
|
||||||
|
duplicateDetection: JobSettingsDto.fromJson(json[r'duplicateDetection'])!,
|
||||||
faceDetection: JobSettingsDto.fromJson(json[r'faceDetection'])!,
|
faceDetection: JobSettingsDto.fromJson(json[r'faceDetection'])!,
|
||||||
library_: JobSettingsDto.fromJson(json[r'library'])!,
|
library_: JobSettingsDto.fromJson(json[r'library'])!,
|
||||||
metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!,
|
metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!,
|
||||||
@ -156,6 +163,7 @@ class SystemConfigJobDto {
|
|||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
'backgroundTask',
|
'backgroundTask',
|
||||||
|
'duplicateDetection',
|
||||||
'faceDetection',
|
'faceDetection',
|
||||||
'library',
|
'library',
|
||||||
'metadataExtraction',
|
'metadataExtraction',
|
||||||
|
@ -21,6 +21,11 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// JobStatusDto duplicateDetection
|
||||||
|
test('to test the property `duplicateDetection`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
// JobStatusDto faceDetection
|
// JobStatusDto faceDetection
|
||||||
test('to test the property `faceDetection`', () async {
|
test('to test the property `faceDetection`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
5
mobile/openapi/test/clip_config_test.dart
generated
5
mobile/openapi/test/clip_config_test.dart
generated
@ -16,6 +16,11 @@ void main() {
|
|||||||
// final instance = CLIPConfig();
|
// final instance = CLIPConfig();
|
||||||
|
|
||||||
group('test CLIPConfig', () {
|
group('test CLIPConfig', () {
|
||||||
|
// double duplicateThreshold
|
||||||
|
test('to test the property `duplicateThreshold`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
// bool enabled
|
// bool enabled
|
||||||
test('to test the property `enabled`', () async {
|
test('to test the property `enabled`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -21,6 +21,11 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// JobSettingsDto duplicateDetection
|
||||||
|
test('to test the property `duplicateDetection`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
// JobSettingsDto faceDetection
|
// JobSettingsDto faceDetection
|
||||||
test('to test the property `faceDetection`', () async {
|
test('to test the property `faceDetection`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -6831,6 +6831,9 @@
|
|||||||
"backgroundTask": {
|
"backgroundTask": {
|
||||||
"$ref": "#/components/schemas/JobStatusDto"
|
"$ref": "#/components/schemas/JobStatusDto"
|
||||||
},
|
},
|
||||||
|
"duplicateDetection": {
|
||||||
|
"$ref": "#/components/schemas/JobStatusDto"
|
||||||
|
},
|
||||||
"faceDetection": {
|
"faceDetection": {
|
||||||
"$ref": "#/components/schemas/JobStatusDto"
|
"$ref": "#/components/schemas/JobStatusDto"
|
||||||
},
|
},
|
||||||
@ -6867,6 +6870,7 @@
|
|||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"backgroundTask",
|
"backgroundTask",
|
||||||
|
"duplicateDetection",
|
||||||
"faceDetection",
|
"faceDetection",
|
||||||
"facialRecognition",
|
"facialRecognition",
|
||||||
"library",
|
"library",
|
||||||
@ -7479,6 +7483,10 @@
|
|||||||
},
|
},
|
||||||
"CLIPConfig": {
|
"CLIPConfig": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"duplicateThreshold": {
|
||||||
|
"format": "float",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
"enabled": {
|
"enabled": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
@ -7493,6 +7501,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
"duplicateThreshold",
|
||||||
"enabled",
|
"enabled",
|
||||||
"modelName"
|
"modelName"
|
||||||
],
|
],
|
||||||
@ -8178,6 +8187,7 @@
|
|||||||
"faceDetection",
|
"faceDetection",
|
||||||
"facialRecognition",
|
"facialRecognition",
|
||||||
"smartSearch",
|
"smartSearch",
|
||||||
|
"duplicateDetection",
|
||||||
"backgroundTask",
|
"backgroundTask",
|
||||||
"storageTemplateMigration",
|
"storageTemplateMigration",
|
||||||
"migration",
|
"migration",
|
||||||
@ -9907,6 +9917,9 @@
|
|||||||
"backgroundTask": {
|
"backgroundTask": {
|
||||||
"$ref": "#/components/schemas/JobSettingsDto"
|
"$ref": "#/components/schemas/JobSettingsDto"
|
||||||
},
|
},
|
||||||
|
"duplicateDetection": {
|
||||||
|
"$ref": "#/components/schemas/JobSettingsDto"
|
||||||
|
},
|
||||||
"faceDetection": {
|
"faceDetection": {
|
||||||
"$ref": "#/components/schemas/JobSettingsDto"
|
"$ref": "#/components/schemas/JobSettingsDto"
|
||||||
},
|
},
|
||||||
@ -9937,6 +9950,7 @@
|
|||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"backgroundTask",
|
"backgroundTask",
|
||||||
|
"duplicateDetection",
|
||||||
"faceDetection",
|
"faceDetection",
|
||||||
"library",
|
"library",
|
||||||
"metadataExtraction",
|
"metadataExtraction",
|
||||||
|
@ -429,6 +429,7 @@ export type JobStatusDto = {
|
|||||||
};
|
};
|
||||||
export type AllJobStatusResponseDto = {
|
export type AllJobStatusResponseDto = {
|
||||||
backgroundTask: JobStatusDto;
|
backgroundTask: JobStatusDto;
|
||||||
|
duplicateDetection: JobStatusDto;
|
||||||
faceDetection: JobStatusDto;
|
faceDetection: JobStatusDto;
|
||||||
facialRecognition: JobStatusDto;
|
facialRecognition: JobStatusDto;
|
||||||
library: JobStatusDto;
|
library: JobStatusDto;
|
||||||
@ -832,6 +833,7 @@ export type JobSettingsDto = {
|
|||||||
};
|
};
|
||||||
export type SystemConfigJobDto = {
|
export type SystemConfigJobDto = {
|
||||||
backgroundTask: JobSettingsDto;
|
backgroundTask: JobSettingsDto;
|
||||||
|
duplicateDetection: JobSettingsDto;
|
||||||
faceDetection: JobSettingsDto;
|
faceDetection: JobSettingsDto;
|
||||||
library: JobSettingsDto;
|
library: JobSettingsDto;
|
||||||
metadataExtraction: JobSettingsDto;
|
metadataExtraction: JobSettingsDto;
|
||||||
@ -858,6 +860,7 @@ export type SystemConfigLoggingDto = {
|
|||||||
level: LogLevel;
|
level: LogLevel;
|
||||||
};
|
};
|
||||||
export type ClipConfig = {
|
export type ClipConfig = {
|
||||||
|
duplicateThreshold: number;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
mode?: CLIPMode;
|
mode?: CLIPMode;
|
||||||
modelName: string;
|
modelName: string;
|
||||||
@ -2816,6 +2819,7 @@ export enum JobName {
|
|||||||
FaceDetection = "faceDetection",
|
FaceDetection = "faceDetection",
|
||||||
FacialRecognition = "facialRecognition",
|
FacialRecognition = "facialRecognition",
|
||||||
SmartSearch = "smartSearch",
|
SmartSearch = "smartSearch",
|
||||||
|
DuplicateDetection = "duplicateDetection",
|
||||||
BackgroundTask = "backgroundTask",
|
BackgroundTask = "backgroundTask",
|
||||||
StorageTemplateMigration = "storageTemplateMigration",
|
StorageTemplateMigration = "storageTemplateMigration",
|
||||||
Migration = "migration",
|
Migration = "migration",
|
||||||
|
@ -88,6 +88,12 @@
|
|||||||
subtitle: 'Run machine learning on assets to support smart search',
|
subtitle: 'Run machine learning on assets to support smart search',
|
||||||
disabled: !$featureFlags.smartSearch,
|
disabled: !$featureFlags.smartSearch,
|
||||||
},
|
},
|
||||||
|
[JobName.DuplicateDetection]: {
|
||||||
|
icon: mdiImageSearch,
|
||||||
|
title: getJobName(JobName.DuplicateDetection),
|
||||||
|
subtitle: 'Run machine learning on assets to detect near-duplicate images',
|
||||||
|
disabled: !$featureFlags.smartSearch,
|
||||||
|
},
|
||||||
[JobName.FaceDetection]: {
|
[JobName.FaceDetection]: {
|
||||||
icon: mdiFaceRecognition,
|
icon: mdiFaceRecognition,
|
||||||
title: getJobName(JobName.FaceDetection),
|
title: getJobName(JobName.FaceDetection),
|
||||||
|
@ -115,6 +115,7 @@ export const getJobName = (jobName: JobName) => {
|
|||||||
[JobName.MetadataExtraction]: 'Extract Metadata',
|
[JobName.MetadataExtraction]: 'Extract Metadata',
|
||||||
[JobName.Sidecar]: 'Sidecar Metadata',
|
[JobName.Sidecar]: 'Sidecar Metadata',
|
||||||
[JobName.SmartSearch]: 'Smart Search',
|
[JobName.SmartSearch]: 'Smart Search',
|
||||||
|
[JobName.DuplicateDetection]: 'Duplicate Detection',
|
||||||
[JobName.FaceDetection]: 'Face Detection',
|
[JobName.FaceDetection]: 'Face Detection',
|
||||||
[JobName.FacialRecognition]: 'Facial Recognition',
|
[JobName.FacialRecognition]: 'Facial Recognition',
|
||||||
[JobName.VideoConversion]: 'Transcode Videos',
|
[JobName.VideoConversion]: 'Transcode Videos',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user