teambition-sdk-socket
Version: 
Front-End SDK for Teambition
55 lines (54 loc) • 1.34 kB
TypeScript
import { Schema, ISchema } from './schema';
import { visibility, EventId, UserId, ProjectId, TagId } from '../teambition';
export interface EventData extends ISchema {
    _id: EventId;
    _creatorId: UserId;
    title: string;
    content: string;
    location: string;
    startDate: string;
    endDate: string;
    untilDate: string;
    involveMembers: UserId[];
    _projectId: ProjectId;
    _sourceId: EventId;
    sourceDate: string;
    source?: string;
    recurrence?: string[];
    reminders: string[];
    isArchived: boolean;
    visible: visibility;
    isDeleted?: boolean;
    created: string;
    updated: string;
    tagIds: TagId[];
    status?: string;
    isFavorite?: boolean;
    objectlinksCount?: number;
    mockId?: string;
    likesCount?: number;
    project?: {
        _id: ProjectId;
        name: string;
    };
}
export default class Event extends Schema<EventData> implements EventData {
    _id: EventId;
    endDate: string;
    startDate: string;
    _projectId: ProjectId;
    location: string;
    content: string;
    title: string;
    _creatorId: UserId;
    tagIds: TagId[];
    updated: string;
    created: string;
    visible: visibility;
    isArchived: boolean;
    involveMembers: UserId[];
    untilDate: string;
    _sourceId: EventId;
    sourceDate: string;
    reminders: string[];
}