import BaseService from "../../service"; import { IService, IResourceMapper, IFindParams } from "../../interfaces"; import { ITag, ITagResource, ITagAssociationResource, ITopic, ITopicResource } from "./"; export interface ITagService extends IService { addTagToResource(tag: ITag): Promise; findByResource(id: string, type: string, options?: IFindParams): Promise; deleteAssociation(id: string): void; findTopic(options?: IFindParams): Promise; } export default class TagService extends BaseService implements ITagService { resource: string; mapper: IResourceMapper; topicMapper: IResourceMapper; url(): string; tagAssociationUrl(): string; findByResource(id: string, type: string, options?: IFindParams): Promise; addTagToResource(tag: ITag): Promise; deleteAssociation(id: any): Promise; findTopic(options?: IFindParams): Promise; headers(): { "Accept-Version": string; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: string): boolean; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: string): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }; }