website cleanup
This commit is contained in:
@@ -6,6 +6,8 @@ import type { RequestAvatarGenerationOutputDTO } from '../../types/generated/Req
|
||||
import type { UpdateAvatarInputDTO } from '../../types/generated/UpdateAvatarInputDTO';
|
||||
import type { UpdateAvatarOutputDTO } from '../../types/generated/UpdateAvatarOutputDTO';
|
||||
import type { UploadMediaOutputDTO } from '../../types/generated/UploadMediaOutputDTO';
|
||||
import type { ValidateFaceInputDTO } from '../../types/generated/ValidateFaceInputDTO';
|
||||
import type { ValidateFaceOutputDTO } from '../../types/generated/ValidateFaceOutputDTO';
|
||||
import { BaseApiClient } from '../base/BaseApiClient';
|
||||
|
||||
/**
|
||||
@@ -49,4 +51,9 @@ export class MediaApiClient extends BaseApiClient {
|
||||
updateAvatar(input: UpdateAvatarInputDTO): Promise<UpdateAvatarOutputDTO> {
|
||||
return this.put<UpdateAvatarOutputDTO>(`/media/avatar/${input.driverId}`, { avatarUrl: input.avatarUrl });
|
||||
}
|
||||
|
||||
/** Validate face photo for avatar generation */
|
||||
validateFacePhoto(input: ValidateFaceInputDTO): Promise<ValidateFaceOutputDTO> {
|
||||
return this.post<ValidateFaceOutputDTO>('/media/avatar/validate-face', input);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user