user.ts 550 B

1234567891011121314151617181920212223
  1. export type User = {
  2. id: string
  3. email: string
  4. allowedFreeTrial?: boolean
  5. features?: {
  6. collaborators?: number
  7. compileGroup?: 'standard' | 'priority'
  8. compileTimeout?: number
  9. dropbox?: boolean
  10. gitBridge?: boolean
  11. github?: boolean
  12. mendeley?: boolean
  13. references?: boolean
  14. referencesSearch?: boolean
  15. symbolPalette?: boolean
  16. templates?: boolean
  17. trackChanges?: boolean
  18. versioning?: boolean
  19. zotero?: boolean
  20. }
  21. }
  22. export type MongoUser = Pick<User, Exclude<keyof User, 'id'>> & { _id: string }