key.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import { Filenames } from "../types/filenames";
  2. import { SupportedPlatforms } from "../types/supported_platforms";
  3. import { Filenames as Keynames } from "../types/filenames";
  4. import { Comment } from "../interfaces/comment";
  5. import { Screenshot } from "../interfaces/screenshot";
  6. import { Translation } from "../interfaces/translation";
  7. type KeyComment = Omit<Comment, "key_id">;
  8. export interface Key {
  9. key_id: number;
  10. created_at: string;
  11. created_at_timestamp: number;
  12. key_name: Keynames;
  13. filenames: Filenames;
  14. description: string;
  15. platforms: SupportedPlatforms[];
  16. tags: string[];
  17. comments: KeyComment[];
  18. screenshots: Screenshot[];
  19. translations: Translation[];
  20. is_plural: boolean;
  21. plural_name: string;
  22. is_hidden: boolean;
  23. is_archived: boolean;
  24. context: string;
  25. base_words: number;
  26. char_limit: number;
  27. custom_attributes: any[] | string;
  28. modified_at: string;
  29. modified_at_timestamp: number;
  30. translations_modified_at: string;
  31. translations_modified_at_timestamp: number;
  32. }
  33. export {};