Skip to content

Commit

Permalink
Merge branch 'crowdin:main' into feat/notification-api
Browse files Browse the repository at this point in the history
  • Loading branch information
OmAximani0 authored Sep 21, 2023
2 parents ecf2492 + 737d83a commit 974a909
Show file tree
Hide file tree
Showing 9 changed files with 863 additions and 1 deletion.
14 changes: 14 additions & 0 deletions crowdin_api/api_resources/reports/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class ReportName(Enum):
TRANSLATION_COSTS = "translation-costs"
TOP_MEMBERS = "top-members"
CONTRIBUTION_RAW_DATA = "contribution-raw-data"
COSTS_ESTIMATION_POST_EDITING = "costs-estimation-pe"
TRANSLATION_COSTS_POST_EDITING = "translation-costs-pe"


class Unit(Enum):
Expand Down Expand Up @@ -84,3 +86,15 @@ class ReportSettingsTemplatesPatchPath(Enum):
UNIT = "unit"
MODE = "mode"
CONFIG = "config"


class ReportLabelIncludeType(Enum):
STRINGS_WITH_LABEL = "strings_with_label"
STRINGS_WITHOUT_LABEL = "strings_without_label"


class MatchType(Enum):
PERFECT = "perfect"
OPTION_100 = "100"
OPTION_99_82 = "99-82"
OPTION_81_60 = "81-60"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from typing import Iterable

from crowdin_api.api_resources.reports.types import Match
from crowdin_api.typing import TypedDict


class IndividualRate(TypedDict):
languageIds: Iterable[str]
userIds: Iterable[int]
fullTranslation: float
proofread: float


class NetRateSchemes(TypedDict):
tmMatch: Iterable[Match]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from typing import Iterable

from crowdin_api.api_resources.reports.types import Match
from crowdin_api.typing import TypedDict


class IndividualRate(TypedDict):
languageIds: Iterable[str]
userIds: Iterable[int]
fullTranslation: float
proofread: float


class NetRateSchemes(TypedDict):
tmMatch: Iterable[Match]
mtMatch: Iterable[Match]
suggestionMatch: Iterable[Match]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from typing import Iterable
from crowdin_api.api_resources.reports.types import Match
from crowdin_api.typing import TypedDict


class IndividualRate(TypedDict):
languageIds: Iterable[str]
userIds: Iterable[int]
fullTranslation: float
proofread: float


class NetRateSchemes(TypedDict):
tmMatch: Iterable[Match]
mtMatch: Iterable[Match]
suggestionMatch: Iterable[Match]
Loading

0 comments on commit 974a909

Please sign in to comment.