fix: change PropertyLifecycle

This commit is contained in:
martabal 2024-10-15 13:00:55 +02:00
parent 1a9a3a9537
commit 274de40892
No known key found for this signature in database
GPG Key ID: C00196E3148A52BD
4 changed files with 10 additions and 10 deletions

View File

@ -322,10 +322,10 @@ class SearchApi {
/// * [String] name (required): /// * [String] name (required):
/// ///
/// * [num] page: /// * [num] page:
/// This property was added in v118.0.0 /// This property was added in v119.0.0
/// ///
/// * [num] size: /// * [num] size:
/// This property was added in v118.0.0 /// This property was added in v119.0.0
/// ///
/// * [bool] withHidden: /// * [bool] withHidden:
Future<Response> searchPersonWithHttpInfo(String name, { num? page, num? size, bool? withHidden, }) async { Future<Response> searchPersonWithHttpInfo(String name, { num? page, num? size, bool? withHidden, }) async {
@ -369,10 +369,10 @@ class SearchApi {
/// * [String] name (required): /// * [String] name (required):
/// ///
/// * [num] page: /// * [num] page:
/// This property was added in v118.0.0 /// This property was added in v119.0.0
/// ///
/// * [num] size: /// * [num] size:
/// This property was added in v118.0.0 /// This property was added in v119.0.0
/// ///
/// * [bool] withHidden: /// * [bool] withHidden:
Future<SearchPersonNameResponseDto?> searchPerson(String name, { num? page, num? size, bool? withHidden, }) async { Future<SearchPersonNameResponseDto?> searchPerson(String name, { num? page, num? size, bool? withHidden, }) async {

View File

@ -4409,7 +4409,7 @@
"Search" "Search"
], ],
"x-immich-lifecycle": { "x-immich-lifecycle": {
"addedAt": "v1.118.0" "addedAt": "v1.119.0"
} }
} }
}, },
@ -4541,7 +4541,7 @@
"name": "page", "name": "page",
"required": false, "required": false,
"in": "query", "in": "query",
"description": "This property was added in v118.0.0", "description": "This property was added in v119.0.0",
"schema": { "schema": {
"minimum": 1, "minimum": 1,
"default": 1, "default": 1,
@ -4552,7 +4552,7 @@
"name": "size", "name": "size",
"required": false, "required": false,
"in": "query", "in": "query",
"description": "This property was added in v118.0.0", "description": "This property was added in v119.0.0",
"schema": { "schema": {
"minimum": 1, "minimum": 1,
"maximum": 1000, "maximum": 1000,

View File

@ -78,7 +78,7 @@ export class SearchController {
} }
@Get('album') @Get('album')
@EndpointLifecycle({ addedAt: 'v1.118.0' }) @EndpointLifecycle({ addedAt: 'v1.119.0' })
@Authenticated() @Authenticated()
searchAlbum(@Auth() auth: AuthDto, @Query() dto: SearchAlbumsDto): Promise<SearchAlbumNameResponseDto> { searchAlbum(@Auth() auth: AuthDto, @Query() dto: SearchAlbumsDto): Promise<SearchAlbumNameResponseDto> {
return this.service.searchAlbum(auth, dto); return this.service.searchAlbum(auth, dto);

View File

@ -242,7 +242,7 @@ export class SearchPeopleDto {
/** Page number for pagination */ /** Page number for pagination */
@ApiPropertyOptional() @ApiPropertyOptional()
@PropertyLifecycle({ addedAt: 'v118.0.0' }) @PropertyLifecycle({ addedAt: 'v119.0.0' })
@IsInt() @IsInt()
@Min(1) @Min(1)
@Type(() => Number) @Type(() => Number)
@ -250,7 +250,7 @@ export class SearchPeopleDto {
/** Number of items per page */ /** Number of items per page */
@ApiPropertyOptional() @ApiPropertyOptional()
@PropertyLifecycle({ addedAt: 'v118.0.0' }) @PropertyLifecycle({ addedAt: 'v119.0.0' })
@IsInt() @IsInt()
@Min(1) @Min(1)
@Max(1000) @Max(1000)