import { CreativeWorkType } from '../../../creativeWorkType'; import { EventType } from '../../../eventType'; import { OfferType } from '../../../offerType'; import { ProductType } from '../../../product'; export interface IObjectAsNote { identifier: string; typeOf: CreativeWorkType.NoteDigitalDocument; } export interface IObjectAsProduct { productID: string; typeOf: ProductType; } export interface IObjectAsSingleResource { typeOf: OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType; } export type IObject = IObjectAsSingleResource | IObjectAsNote[] | IObjectAsProduct[];