download_file_params.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { LanguageMapping } from "./language_mapping";
  2. import type { FileFormat } from "../types/file_format";
  3. type FilterData = "translated" | "untranslated" | "reviewed" | "reviewed_only" | "last_reviewed_only" | "verified" | "nonhidden";
  4. type ExportSort = "first_added" | "last_added" | "last_updated" | "a_z" | "z_a";
  5. type ExportEmptyAs = "empty" | "base" | "null" | "skip";
  6. type ExportNullAs = "null" | "empty";
  7. type Trigger = "amazons3" | "gcs" | "github" | "github-enterprise" | "gitlab" | "bitbucket" | "bitbucket-enterprise" | "azure";
  8. type PluralFormat = "json_string" | "icu" | "array" | "generic" | "symfony" | "i18next" | "i18next_v4";
  9. type PlaceholderFormat = "printf" | "ios" | "icu" | "net" | "symfony" | "i18n" | "raw";
  10. type Indentation = "default" | "1sp" | "2sp" | "3sp" | "4sp" | "5sp" | "6sp" | "7sp" | "8sp" | "tab";
  11. type JavaPropertiesEncoding = "utf-8" | "latin-1";
  12. export interface DownloadFileParams {
  13. format: FileFormat;
  14. original_filenames?: boolean;
  15. bundle_structure?: string;
  16. directory_prefix?: string;
  17. all_platforms?: boolean;
  18. filter_langs?: string[];
  19. filter_data?: FilterData[];
  20. filter_filenames?: string[];
  21. add_newline_eof?: boolean;
  22. custom_translation_status_ids?: string[] | number[];
  23. include_tags?: string[];
  24. exclude_tags?: string[];
  25. export_sort?: ExportSort;
  26. export_empty_as?: ExportEmptyAs;
  27. export_null_as?: ExportNullAs;
  28. include_comments?: boolean;
  29. include_description?: boolean;
  30. include_pids?: string[];
  31. triggers?: Trigger[];
  32. filter_repositories?: string[];
  33. replace_breaks?: boolean;
  34. disable_references?: boolean;
  35. plural_format?: PluralFormat;
  36. placeholder_format?: PlaceholderFormat;
  37. webhook_url?: string;
  38. language_mapping?: LanguageMapping[];
  39. icu_numeric?: boolean;
  40. escape_percent?: boolean;
  41. indentation?: Indentation;
  42. yaml_include_root?: boolean;
  43. json_unescaped_slashes?: boolean;
  44. java_properties_encoding?: JavaPropertiesEncoding;
  45. java_properties_separator?: string;
  46. bundle_description?: string;
  47. filter_task_id?: number;
  48. compact?: boolean;
  49. }
  50. export {};