model.d.ts 667 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. declare const enum ChatType {
  2. Private = 'private',
  3. Group = 'group',
  4. Temp = 'temp'
  5. }
  6. interface IPrivateChat {
  7. chatID: number;
  8. chatType: ChatType.Private;
  9. }
  10. interface IGroupChat {
  11. chatID: number;
  12. chatType: ChatType.Group;
  13. }
  14. interface ITempChat {
  15. chatID: {qq: number, group: number, toString: () => string};
  16. chatType: ChatType.Temp;
  17. }
  18. type IChat = IPrivateChat | IGroupChat | ITempChat;
  19. interface ILock {
  20. offset: string;
  21. lastActions: WikiEditResult[];
  22. subscribers: IChat[];
  23. updatedAt: string;
  24. }
  25. interface WikiEditResult {
  26. pageid: number;
  27. title: string;
  28. new: boolean;
  29. result: string;
  30. mediafiles: string[];
  31. timestamp: string;
  32. }