page.ts 426 B

1234567891011121314151617181920212223
  1. import { IUser } from './user';
  2. import { IRevision } from './revision';
  3. import { ITag } from './tag';
  4. export type IPage = {
  5. path: string,
  6. status: string,
  7. revision: IRevision,
  8. tags: ITag[],
  9. creator: IUser,
  10. createdAt: Date,
  11. updatedAt: Date,
  12. seenUsers: string[]
  13. }
  14. export type ISearchedPage = IPage & {
  15. _id: string,
  16. noLink: boolean,
  17. lastUpdateUser: any,
  18. elasticSearchResult: {
  19. snippet: string,
  20. }
  21. }