import { Activity } from "./Activity"; import { ItemEvent } from "./ItemEvent"; import { OrderEvent } from "./OrderEvent"; import { OwnershipEvent } from "./OwnershipEvent"; export type SubscriptionEvent = FakeSubscriptionEvent | ItemSubscriptionEvent | ItemOwnershipSubscriptionEvent | OwnershipSubscriptionEvent | OrderSubscriptionEvent | ActivitySubscriptionEvent; export type FakeSubscriptionEvent = { "@type": "FAKE"; }; export type ItemSubscriptionEvent = { "@type": "ITEM"; value: ItemEvent; }; export type ItemOwnershipSubscriptionEvent = { "@type": "ITEM_OWNERSHIP"; value: OwnershipEvent; }; export type OwnershipSubscriptionEvent = { "@type": "OWNERSHIP"; value: OwnershipEvent; }; export type OrderSubscriptionEvent = { "@type": "ORDER"; value: OrderEvent; }; export type ActivitySubscriptionEvent = { "@type": "ACTIVITY"; value: Activity; };