Fix the orderBy validation description

This commit is contained in:
Jeremy 2025-10-06 10:24:48 -05:00
parent 2bd878525b
commit f1eb009c25
3 changed files with 7 additions and 7 deletions

View file

@ -40,7 +40,7 @@ class TimelineApi {
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first) /// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
/// ///
/// * [AssetOrderBy] orderBy: /// * [AssetOrderBy] orderBy:
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED) /// The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
/// ///
/// * [String] personId: /// * [String] personId:
/// Filter assets containing a specific person (face recognition) /// Filter assets containing a specific person (face recognition)
@ -155,7 +155,7 @@ class TimelineApi {
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first) /// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
/// ///
/// * [AssetOrderBy] orderBy: /// * [AssetOrderBy] orderBy:
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED) /// The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
/// ///
/// * [String] personId: /// * [String] personId:
/// Filter assets containing a specific person (face recognition) /// Filter assets containing a specific person (face recognition)
@ -215,7 +215,7 @@ class TimelineApi {
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first) /// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
/// ///
/// * [AssetOrderBy] orderBy: /// * [AssetOrderBy] orderBy:
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED) /// The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
/// ///
/// * [String] personId: /// * [String] personId:
/// Filter assets containing a specific person (face recognition) /// Filter assets containing a specific person (face recognition)
@ -326,7 +326,7 @@ class TimelineApi {
/// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first) /// Sort order for assets within time buckets (ASC for oldest first, DESC for newest first)
/// ///
/// * [AssetOrderBy] orderBy: /// * [AssetOrderBy] orderBy:
/// Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED) /// The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)
/// ///
/// * [String] personId: /// * [String] personId:
/// Filter assets containing a specific person (face recognition) /// Filter assets containing a specific person (face recognition)

View file

@ -8845,7 +8845,7 @@
"name": "orderBy", "name": "orderBy",
"required": false, "required": false,
"in": "query", "in": "query",
"description": "Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)", "description": "The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)",
"schema": { "schema": {
"$ref": "#/components/schemas/AssetOrderBy" "$ref": "#/components/schemas/AssetOrderBy"
} }
@ -9018,7 +9018,7 @@
"name": "orderBy", "name": "orderBy",
"required": false, "required": false,
"in": "query", "in": "query",
"description": "Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)", "description": "The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)",
"schema": { "schema": {
"$ref": "#/components/schemas/AssetOrderBy" "$ref": "#/components/schemas/AssetOrderBy"
} }

View file

@ -49,7 +49,7 @@ export class TimeBucketDto {
@ValidateEnum({ @ValidateEnum({
enum: AssetOrderBy, enum: AssetOrderBy,
name: 'AssetOrderBy', name: 'AssetOrderBy',
description: 'Sort order by for assets within time buckets (DATE_TAKEN, DATE_ADDED, DATE_DELETED)', description: 'The field to sort time bucket assets by (DATE_TAKEN, DATE_ADDED, DATE_DELETED)',
optional: true, optional: true,
}) })
orderBy?: AssetOrderBy; orderBy?: AssetOrderBy;