Manages common avatar operations.

Implements

Constructors

Methods

  • Stores avatar content, after that reissues current token in order to update links.

    Parameters

    • id: string

      The identifier of the entity for that avatar content should be stored.

    • kind: AvatarContentKind

      Kind of avatar content.

    • content: Blob | File

      Main content of the new avatar.

    • additionalContent: null | Blob | File

      Additional content of the new avatar. Used only if kind is AvatarContentKind.Photo.

    Returns Promise<ValidationResult>