interface ITagManager {
    canUseTagAsync(tagId: string): Promise<boolean>;
    deleteTag(cardId: string, tagId: string): Promise<ValidationResult>;
    getTags(cardId: string): Promise<TagInfo[]>;
    storeTags(
        tags: Tag[],
        tokenInfo: null | IStorage,
    ): Promise<ValidationResult>;
}

Implemented by

Methods

  • Define if the user can use the tag.

    Parameters

    • tagId: string

      Tag ID.

    Returns Promise<boolean>

    true, if the user can use the tag, otherwise false.

  • Delete the tag from the card.

    Parameters

    • cardId: string

      Card ID.

    • tagId: string

      Tag ID.

    Returns Promise<ValidationResult>

    The operation result.

  • Get the tags for the card.

    Parameters

    • cardId: string

      Card ID.

    Returns Promise<TagInfo[]>

    The operation result.

  • Store the tags for the card.

    Parameters

    • tags: Tag[]

      Collection of the tag objects, which includes information about the tag, about the card and about the user, who performs the operation.

    • tokenInfo: null | IStorage

      Пользовательский токен для доступа к карточке.

    Returns Promise<ValidationResult>

    The operation result.

MMNEPVFCICPMFPCPTTAAATR