beeoclock / client-panel-app

https://panel.beeoclock.com
2 stars 0 forks source link

[MEDIA] Update logic for media after backend update #272

Closed Karbashevskyi closed 1 year ago

Karbashevskyi commented 1 year ago

Backend have updated - Media for:

  1. identity.beeoclock (TODO: Remeber add the changes for client-app and client.beeoclock)
    • Client
      • Logo
      • Main banner -> banners
      • Gallery
  2. panel.beeoclock
    • Service
    • Member
      • Avatar

Add new interface IMedia:

export interface IMedia {
object: 'Media';
media: Blob;
mediaType: MediaType;
}

export const enum MediaType {
    logo = 'logo',
    banner = 'banner',
    avatar = 'avatar',
    galleryItem = "galleryItem",
    serviceBanner = "serviceBanner",
    clientLogo = "clientLogo",
    clientBanner = "clientBanner",
    memberAvatar = "memberAvatar"
}