import { ApplicationSchema } from './Application'; import { CollectionSchema } from './Collection'; import { EntrySchema } from './Entry'; import { EventSchema } from './Event'; import { FileSchema } from './File'; import { OrganizationSchema } from './Organization'; import { PostSchema } from './Post'; import { ProjectSchema } from './Project'; import { SmartGroupSchema } from './SmartGroup'; import { TaskSchema } from './Task'; import { TagSchema } from './Tag'; import { TasklistSchema } from './Tasklist'; import { TeamSchema } from './Team'; import { UserMe } from './UserMe'; import { ExecutorOrCreator, ProjectId, UserId } from 'teambition-types'; export declare namespace HomeActivityType { type Common = { creator: string; }; type User = { type: 'user'; content: Common & { user: Pick; }; }; type Invite = { type: 'users'; content: Common & { users: Pick[]; userNames: string[]; source: string; }; }; type Task = { type: 'task'; content: Common & { task: Pick; }; }; type Post = { type: 'post'; content: Common & { post: Pick; }; }; type Event = { type: 'event'; content: Common & { event: Pick; }; }; type Work = { type: 'work'; content: Common & { work: Pick; }; }; type Works = { type: 'works'; content: Common & { works: Pick[]; }; }; type Entry = { type: 'entry'; content: Common & { entry: Pick; }; }; type Collection = { type: 'collection'; content: Common & { collection: Pick; }; }; type Tasklist = { type: 'tasklist'; content: Common & { tasklist: Pick; }; }; type Tag = { type: 'tag'; content: Common & { tag: Pick; }; }; type Project = { type: 'project'; content: Common & { project: Pick; }; }; type Application = { type: 'application'; content: Common & { application: Pick; }; }; type Organization = { type: 'organization'; content: Common & { organization: Pick; }; }; type Team = { type: 'team'; content: Common & { team: Pick; }; }; type SmartGroup = { type: 'smartgroup'; content: Common & { smartgroup: Pick; }; }; type Unknown = { type: 'unknown'; content: Common & { unftitle?: string; }; }; type Union = User | Invite | Task | Post | Event | Work | Works | Collection | Entry | Tasklist | Tag | Project | Application | Organization | Team | SmartGroup | Unknown; } export declare type HomeActivityBase = { _boundToObjectId: ProjectId; _creatorId: UserId; _id: string; action: string; boundToObjectType: 'project'; created: string; creator: ExecutorOrCreator; rawAction: string; rootId: ProjectId; title: string; updated: string; }; export declare type HomeActivitySchema = HomeActivityBase & HomeActivityType.Union; export declare type ApplicationHomeActivity = HomeActivityBase & HomeActivityType.Application; export declare type CollectionHomeActivity = HomeActivityBase & HomeActivityType.Collection; export declare type EntryHomeActivity = HomeActivityBase & HomeActivityType.Entry; export declare type EventHomeActivity = HomeActivityBase & HomeActivityType.Event; export declare type InviteHomeActivity = HomeActivityBase & HomeActivityType.Invite; export declare type OrganizationHomeActivity = HomeActivityBase & HomeActivityType.Organization; export declare type PostHomeActivity = HomeActivityBase & HomeActivityType.Post; export declare type ProjectHomeActivity = HomeActivityBase & HomeActivityType.Project; export declare type SmartGroupHomeActivity = HomeActivityBase & HomeActivityType.SmartGroup; export declare type TagHomeActivity = HomeActivityBase & HomeActivityType.Tag; export declare type TaskHomeActivity = HomeActivityBase & HomeActivityType.Task; export declare type TasklistHomeActivity = HomeActivityBase & HomeActivityType.Tasklist; export declare type TeamHomeActivity = HomeActivityBase & HomeActivityType.Team; export declare type UnknownHomeActivity = HomeActivityBase & HomeActivityType.Unknown; export declare type UserHomeActivity = HomeActivityBase & HomeActivityType.User; export declare type WorkHomeActivity = HomeActivityBase & HomeActivityType.Work; export declare type WorksHomeActivity = HomeActivityBase & HomeActivityType.Works;