import { injectable } from "inversify"; import { IJsonApiResponse, IJsonApiResource, IJsonApiRelationship, IJsonApiRelationships, } from "../../interfaces"; export const tagAssociationType = "tag-association"; export interface ITagAssociationAttributes { confidence_score: number; label: string; score: number; } export interface ITagAssociationRelationships extends IJsonApiRelationships { target?: IJsonApiRelationship; topic?: IJsonApiRelationship; tag?: IJsonApiRelationship; entity?: IJsonApiRelationship; category?: IJsonApiRelationship; } export interface ITagAssociationResource extends IJsonApiResource {} export interface ITagAssociationResponse extends IJsonApiResponse {} export interface ITagAssociation { id?: string; confidenceScore?: number; label?: string; score?: number; target?: T & { id?: string; type?: string; }; tag_type?: string; tag_id?: string; } @injectable() export default class TagAssociation implements ITagAssociation { id?: string; confidenceScore?: number; label?: string; score?: number; target?: T & { id?: string; type?: string; }; tag_type?: string; tag_id?: string; constructor(options?: ITagAssociation) { Object.assign(this, options); } }