enterprise.ts 830 B

123456789101112131415161718192021222324252627282930313233343536
  1. export enum Relationship {
  2. ADMIN = 'admin',
  3. STAFF = 'staff',
  4. IRRELEVANT = 'irrelevant',
  5. }
  6. export interface IMember {
  7. userID: string;
  8. memberName: string;
  9. cptList: string[];
  10. createProject: 'yes' | 'no';
  11. projectView: 'self' | 'all';
  12. editProject: 'self' | 'all';
  13. exportProject: 'disabled' | 'self' | 'all';
  14. importProject: 'disabled' | 'self' | 'all';
  15. shareProject: 'disabled' | 'self' | 'all';
  16. }
  17. export interface IEnterprise {
  18. ID: string;
  19. adminID: string;
  20. members: IMember[];
  21. active: boolean;
  22. licenceNum: number;
  23. cptList: string[];
  24. usedCptList: string[];
  25. companyName: string;
  26. logo: string;
  27. companyLocation: string[];
  28. companyType: string;
  29. companyScale: string;
  30. createTime: number;
  31. passwordCheck: 'no' | 'weak' | 'normal' | 'strong' | 'super';
  32. ip: string;
  33. logoutRule: string;
  34. }