UNPKG

teambition-sdk-socket

Version:
38 lines (37 loc) 999 B
import { Schema, ISchema } from './schema'; import { visibility } from '../teambition'; import { EntryId, EntryCategoryId, ProjectId, UserId, TagId } from '../teambition'; export interface EntryData extends ISchema { _id: EntryId; _projectId: ProjectId; _creatorId: UserId; _entryCategoryId: EntryCategoryId; type: number; content: string; note: string; amount: number; status: string; involveMembers: UserId[]; visible: visibility; tagIds: TagId[]; created: string; updated: string; isArchived: boolean; } export default class EntrySchema extends Schema<EntryData> implements EntryData { _id: EntryId; _projectId: ProjectId; _creatorId: UserId; _entryCategoryId: EntryCategoryId; type: number; content: string; note: string; amount: number; status: string; involveMembers: UserId[]; visible: visibility; tagIds: TagId[]; created: string; updated: string; isArchived: boolean; }