task.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { BaseModel } from "./base_model";
  2. import { Task as TaskInterface } from "../interfaces/task";
  3. export declare class Task extends BaseModel implements TaskInterface {
  4. task_id: number;
  5. title: string;
  6. description: string;
  7. status: string;
  8. progress: number;
  9. due_date: string;
  10. due_date_timestamp: number;
  11. keys_count: number;
  12. words_count: number;
  13. created_at: string;
  14. created_at_timestamp: number;
  15. created_by: number;
  16. created_by_email: string;
  17. can_be_parent: boolean;
  18. task_type: string;
  19. parent_task_id: number;
  20. closing_tags: string[];
  21. do_lock_translations: boolean;
  22. languages: Array<{
  23. language_iso: string;
  24. users: Array<{
  25. user_id: string | number;
  26. email: string;
  27. fullname: string;
  28. }>;
  29. groups: Array<{
  30. id: string | number;
  31. name: string;
  32. }>;
  33. keys: string[] | number[];
  34. status: string;
  35. progress: number;
  36. initial_tm_leverage: {
  37. "0%+": number;
  38. "60%+": number;
  39. "75%+": number;
  40. "95%+": number;
  41. "100%": number;
  42. };
  43. keys_count: number;
  44. words_count: number;
  45. completed_at: string;
  46. completed_at_timestamp: number;
  47. completed_by: number;
  48. completed_by_email: string;
  49. }>;
  50. source_language_iso: string;
  51. auto_close_languages: boolean;
  52. auto_close_task: boolean;
  53. auto_close_items: boolean;
  54. completed_at: string;
  55. completed_at_timestamp: number;
  56. completed_by: number;
  57. completed_by_email: string;
  58. custom_translation_status_ids: number[];
  59. }