mirror of
https://github.com/immich-app/immich.git
synced 2026-01-06 12:10:35 -05:00
* refactor: asset media endpoints * refactor: mobile upload livePhoto as separate request * refactor: change mobile backup flow to use new asset upload endpoints * chore: format and analyze dart code * feat: mark motion as hidden when linked * feat: upload video portion of live photo before image portion * fix: incorrect assetApi calls in mobile code * fix: download asset --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Zack Pollard <zackpollard@ymail.com>
20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { UploadFieldName } from 'src/dtos/asset-media.dto';
|
|
|
|
export class CreateProfileImageDto {
|
|
@ApiProperty({ type: 'string', format: 'binary' })
|
|
[UploadFieldName.PROFILE_DATA]!: Express.Multer.File;
|
|
}
|
|
|
|
export class CreateProfileImageResponseDto {
|
|
userId!: string;
|
|
profileImagePath!: string;
|
|
}
|
|
|
|
export function mapCreateProfileImageResponse(userId: string, profileImagePath: string): CreateProfileImageResponseDto {
|
|
return {
|
|
userId: userId,
|
|
profileImagePath: profileImagePath,
|
|
};
|
|
}
|