import { injectable } from "inversify"; import { IJsonApiResponse, IJsonApiResource, IJsonApiRelationship, IJsonApiRelationships, } from "../../interfaces"; export const associationEntryType = "association-entry"; export interface IAssociationEntryAttributes { created_at?: string; matches_source?: boolean; updated_at?: string; } export interface IAssociationEntryRelationships extends IJsonApiRelationships { target: IJsonApiRelationship; } export interface IAssociationEntryResource extends IJsonApiResource {} export interface IAssociationEntryResponse extends IJsonApiResponse {} export interface IAssociationEntry { id?: string; matchesSource?: boolean; target?: T & { id?: string; type?: string; }; createdAt?: string; updatedAt?: string; } @injectable() export default class AssociationEntry implements IAssociationEntry { id?: string; target?: T & { id?: string; type?: string; }; matchesSource?: boolean; createdAt?: string; updatedAt?: string; constructor(options?: IAssociationEntry) { Object.assign(this, options); } }