81f0265095
* refactor: validation * refactor: utilities * refactor: config
20 lines
457 B
TypeScript
20 lines
457 B
TypeScript
import { ValidateBoolean, ValidateUUID } from 'src/validation';
|
|
|
|
export class GetAlbumsDto {
|
|
@ValidateBoolean({ optional: true })
|
|
/**
|
|
* true: only shared albums
|
|
* false: only non-shared own albums
|
|
* undefined: shared and owned albums
|
|
*/
|
|
shared?: boolean;
|
|
|
|
/**
|
|
* Only returns albums that contain the asset
|
|
* Ignores the shared parameter
|
|
* undefined: get all albums
|
|
*/
|
|
@ValidateUUID({ optional: true })
|
|
assetId?: string;
|
|
}
|