mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
chore: open api / sql
This commit is contained in:
4
mobile/openapi/README.md
generated
4
mobile/openapi/README.md
generated
@@ -161,10 +161,10 @@ Class | Method | HTTP request | Description
|
|||||||
*LibrariesApi* | [**scanLibrary**](doc//LibrariesApi.md#scanlibrary) | **POST** /libraries/{id}/scan | Scan a library
|
*LibrariesApi* | [**scanLibrary**](doc//LibrariesApi.md#scanlibrary) | **POST** /libraries/{id}/scan | Scan a library
|
||||||
*LibrariesApi* | [**updateLibrary**](doc//LibrariesApi.md#updatelibrary) | **PUT** /libraries/{id} | Update a library
|
*LibrariesApi* | [**updateLibrary**](doc//LibrariesApi.md#updatelibrary) | **PUT** /libraries/{id} | Update a library
|
||||||
*LibrariesApi* | [**validate**](doc//LibrariesApi.md#validate) | **POST** /libraries/{id}/validate | Validate library settings
|
*LibrariesApi* | [**validate**](doc//LibrariesApi.md#validate) | **POST** /libraries/{id}/validate | Validate library settings
|
||||||
*MaintenanceAdminApi* | [**deleteIntegrityReport**](doc//MaintenanceAdminApi.md#deleteintegrityreport) | **DELETE** /admin/integrity/report/{id} | Delete report entry and perform corresponding deletion action
|
*MaintenanceAdminApi* | [**deleteIntegrityReport**](doc//MaintenanceAdminApi.md#deleteintegrityreport) | **DELETE** /admin/integrity/report/{id} | Delete integrity report item
|
||||||
*MaintenanceAdminApi* | [**getIntegrityReport**](doc//MaintenanceAdminApi.md#getintegrityreport) | **POST** /admin/integrity/report | Get integrity report by type
|
*MaintenanceAdminApi* | [**getIntegrityReport**](doc//MaintenanceAdminApi.md#getintegrityreport) | **POST** /admin/integrity/report | Get integrity report by type
|
||||||
*MaintenanceAdminApi* | [**getIntegrityReportCsv**](doc//MaintenanceAdminApi.md#getintegrityreportcsv) | **GET** /admin/integrity/report/{type}/csv | Export integrity report by type as CSV
|
*MaintenanceAdminApi* | [**getIntegrityReportCsv**](doc//MaintenanceAdminApi.md#getintegrityreportcsv) | **GET** /admin/integrity/report/{type}/csv | Export integrity report by type as CSV
|
||||||
*MaintenanceAdminApi* | [**getIntegrityReportFile**](doc//MaintenanceAdminApi.md#getintegrityreportfile) | **GET** /admin/integrity/report/{id}/file | Download the orphan/broken file if one exists
|
*MaintenanceAdminApi* | [**getIntegrityReportFile**](doc//MaintenanceAdminApi.md#getintegrityreportfile) | **GET** /admin/integrity/report/{id}/file | Download flagged file file
|
||||||
*MaintenanceAdminApi* | [**getIntegrityReportSummary**](doc//MaintenanceAdminApi.md#getintegrityreportsummary) | **GET** /admin/integrity/summary | Get integrity report summary
|
*MaintenanceAdminApi* | [**getIntegrityReportSummary**](doc//MaintenanceAdminApi.md#getintegrityreportsummary) | **GET** /admin/integrity/summary | Get integrity report summary
|
||||||
*MaintenanceAdminApi* | [**maintenanceLogin**](doc//MaintenanceAdminApi.md#maintenancelogin) | **POST** /admin/maintenance/login | Log into maintenance mode
|
*MaintenanceAdminApi* | [**maintenanceLogin**](doc//MaintenanceAdminApi.md#maintenancelogin) | **POST** /admin/maintenance/login | Log into maintenance mode
|
||||||
*MaintenanceAdminApi* | [**setMaintenanceMode**](doc//MaintenanceAdminApi.md#setmaintenancemode) | **POST** /admin/maintenance | Set maintenance mode
|
*MaintenanceAdminApi* | [**setMaintenanceMode**](doc//MaintenanceAdminApi.md#setmaintenancemode) | **POST** /admin/maintenance | Set maintenance mode
|
||||||
|
|||||||
28
mobile/openapi/lib/api/maintenance_admin_api.dart
generated
28
mobile/openapi/lib/api/maintenance_admin_api.dart
generated
@@ -16,9 +16,9 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
final ApiClient apiClient;
|
final ApiClient apiClient;
|
||||||
|
|
||||||
/// Delete report entry and perform corresponding deletion action
|
/// Delete integrity report item
|
||||||
///
|
///
|
||||||
/// ...
|
/// Delete a given report item and perform corresponding deletion (e.g. trash asset, delete file)
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@@ -51,9 +51,9 @@ class MaintenanceAdminApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete report entry and perform corresponding deletion action
|
/// Delete integrity report item
|
||||||
///
|
///
|
||||||
/// ...
|
/// Delete a given report item and perform corresponding deletion (e.g. trash asset, delete file)
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@@ -67,7 +67,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Get integrity report by type
|
/// Get integrity report by type
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get all flagged items by integrity report type
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@@ -101,7 +101,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Get integrity report by type
|
/// Get integrity report by type
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get all flagged items by integrity report type
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@@ -123,7 +123,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Export integrity report by type as CSV
|
/// Export integrity report by type as CSV
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get all integrity report entries for a given type as a CSV
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@@ -158,7 +158,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Export integrity report by type as CSV
|
/// Export integrity report by type as CSV
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get all integrity report entries for a given type as a CSV
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@@ -178,9 +178,9 @@ class MaintenanceAdminApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Download the orphan/broken file if one exists
|
/// Download flagged file file
|
||||||
///
|
///
|
||||||
/// ...
|
/// Download the orphan/broken file if one exists
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
///
|
///
|
||||||
@@ -213,9 +213,9 @@ class MaintenanceAdminApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Download the orphan/broken file if one exists
|
/// Download flagged file file
|
||||||
///
|
///
|
||||||
/// ...
|
/// Download the orphan/broken file if one exists
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@@ -237,7 +237,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Get integrity report summary
|
/// Get integrity report summary
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get a count of the items flagged in each integrity report
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
Future<Response> getIntegrityReportSummaryWithHttpInfo() async {
|
Future<Response> getIntegrityReportSummaryWithHttpInfo() async {
|
||||||
@@ -267,7 +267,7 @@ class MaintenanceAdminApi {
|
|||||||
|
|
||||||
/// Get integrity report summary
|
/// Get integrity report summary
|
||||||
///
|
///
|
||||||
/// ...
|
/// Get a count of the items flagged in each integrity report
|
||||||
Future<IntegrityReportSummaryResponseDto?> getIntegrityReportSummary() async {
|
Future<IntegrityReportSummaryResponseDto?> getIntegrityReportSummary() async {
|
||||||
final response = await getIntegrityReportSummaryWithHttpInfo();
|
final response = await getIntegrityReportSummaryWithHttpInfo();
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
|||||||
9
mobile/openapi/lib/model/job_name.dart
generated
9
mobile/openapi/lib/model/job_name.dart
generated
@@ -86,7 +86,8 @@ class JobName {
|
|||||||
static const integrityMissingFilesRefresh = JobName._(r'IntegrityMissingFilesRefresh');
|
static const integrityMissingFilesRefresh = JobName._(r'IntegrityMissingFilesRefresh');
|
||||||
static const integrityChecksumFiles = JobName._(r'IntegrityChecksumFiles');
|
static const integrityChecksumFiles = JobName._(r'IntegrityChecksumFiles');
|
||||||
static const integrityChecksumFilesRefresh = JobName._(r'IntegrityChecksumFilesRefresh');
|
static const integrityChecksumFilesRefresh = JobName._(r'IntegrityChecksumFilesRefresh');
|
||||||
static const integrityReportDelete = JobName._(r'IntegrityReportDelete');
|
static const integrityDeleteReportType = JobName._(r'IntegrityDeleteReportType');
|
||||||
|
static const integrityDeleteReports = JobName._(r'IntegrityDeleteReports');
|
||||||
|
|
||||||
/// List of all possible values in this [enum][JobName].
|
/// List of all possible values in this [enum][JobName].
|
||||||
static const values = <JobName>[
|
static const values = <JobName>[
|
||||||
@@ -153,7 +154,8 @@ class JobName {
|
|||||||
integrityMissingFilesRefresh,
|
integrityMissingFilesRefresh,
|
||||||
integrityChecksumFiles,
|
integrityChecksumFiles,
|
||||||
integrityChecksumFilesRefresh,
|
integrityChecksumFilesRefresh,
|
||||||
integrityReportDelete,
|
integrityDeleteReportType,
|
||||||
|
integrityDeleteReports,
|
||||||
];
|
];
|
||||||
|
|
||||||
static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value);
|
static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value);
|
||||||
@@ -255,7 +257,8 @@ class JobNameTypeTransformer {
|
|||||||
case r'IntegrityMissingFilesRefresh': return JobName.integrityMissingFilesRefresh;
|
case r'IntegrityMissingFilesRefresh': return JobName.integrityMissingFilesRefresh;
|
||||||
case r'IntegrityChecksumFiles': return JobName.integrityChecksumFiles;
|
case r'IntegrityChecksumFiles': return JobName.integrityChecksumFiles;
|
||||||
case r'IntegrityChecksumFilesRefresh': return JobName.integrityChecksumFilesRefresh;
|
case r'IntegrityChecksumFilesRefresh': return JobName.integrityChecksumFilesRefresh;
|
||||||
case r'IntegrityReportDelete': return JobName.integrityReportDelete;
|
case r'IntegrityDeleteReportType': return JobName.integrityDeleteReportType;
|
||||||
|
case r'IntegrityDeleteReports': return JobName.integrityDeleteReports;
|
||||||
default:
|
default:
|
||||||
if (!allowNull) {
|
if (!allowNull) {
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
throw ArgumentError('Unknown enum value to decode: $data');
|
||||||
|
|||||||
@@ -338,7 +338,7 @@
|
|||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"responses": {
|
"responses": {
|
||||||
"201": {
|
"200": {
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
|
|||||||
@@ -1894,7 +1894,7 @@ export function getIntegrityReport({ integrityGetReportDto }: {
|
|||||||
integrityGetReportDto: IntegrityGetReportDto;
|
integrityGetReportDto: IntegrityGetReportDto;
|
||||||
}, opts?: Oazapfts.RequestOpts) {
|
}, opts?: Oazapfts.RequestOpts) {
|
||||||
return oazapfts.ok(oazapfts.fetchJson<{
|
return oazapfts.ok(oazapfts.fetchJson<{
|
||||||
status: 201;
|
status: 200;
|
||||||
data: IntegrityReportResponseDto;
|
data: IntegrityReportResponseDto;
|
||||||
}>("/admin/integrity/report", oazapfts.json({
|
}>("/admin/integrity/report", oazapfts.json({
|
||||||
...opts,
|
...opts,
|
||||||
@@ -1903,7 +1903,7 @@ export function getIntegrityReport({ integrityGetReportDto }: {
|
|||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Delete report entry and perform corresponding deletion action
|
* Delete integrity report item
|
||||||
*/
|
*/
|
||||||
export function deleteIntegrityReport({ id }: {
|
export function deleteIntegrityReport({ id }: {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -1914,7 +1914,7 @@ export function deleteIntegrityReport({ id }: {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Download the orphan/broken file if one exists
|
* Download flagged file file
|
||||||
*/
|
*/
|
||||||
export function getIntegrityReportFile({ id }: {
|
export function getIntegrityReportFile({ id }: {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -5610,7 +5610,8 @@ export enum JobName {
|
|||||||
IntegrityMissingFilesRefresh = "IntegrityMissingFilesRefresh",
|
IntegrityMissingFilesRefresh = "IntegrityMissingFilesRefresh",
|
||||||
IntegrityChecksumFiles = "IntegrityChecksumFiles",
|
IntegrityChecksumFiles = "IntegrityChecksumFiles",
|
||||||
IntegrityChecksumFilesRefresh = "IntegrityChecksumFilesRefresh",
|
IntegrityChecksumFilesRefresh = "IntegrityChecksumFilesRefresh",
|
||||||
IntegrityReportDelete = "IntegrityReportDelete"
|
IntegrityDeleteReportType = "IntegrityDeleteReportType",
|
||||||
|
IntegrityDeleteReports = "IntegrityDeleteReports"
|
||||||
}
|
}
|
||||||
export enum SearchSuggestionType {
|
export enum SearchSuggestionType {
|
||||||
Country = "country",
|
Country = "country",
|
||||||
|
|||||||
@@ -135,7 +135,8 @@ from
|
|||||||
left join "integrity_report" on "integrity_report"."assetId" = "asset"."id"
|
left join "integrity_report" on "integrity_report"."assetId" = "asset"."id"
|
||||||
and "integrity_report"."type" = $1
|
and "integrity_report"."type" = $1
|
||||||
where
|
where
|
||||||
"createdAt" >= $2
|
"asset"."deletedAt" is null
|
||||||
|
and "createdAt" >= $2
|
||||||
and "createdAt" <= $3
|
and "createdAt" <= $3
|
||||||
order by
|
order by
|
||||||
"createdAt" asc
|
"createdAt" asc
|
||||||
|
|||||||
Reference in New Issue
Block a user