Skip to content

Commit 99923d6

Browse files
feat: Added the new parameter taskId in the List Strings (#179)
1 parent 87e0122 commit 99923d6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crowdin_api/api_resources/source_strings/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def list_strings(
3737
branchId: Optional[int] = None,
3838
denormalizePlaceholders: Optional[DenormalizePlaceholders] = None,
3939
labelIds: Optional[Iterable[int]] = None,
40+
taskId: Optional[int] = None,
4041
croql: Optional[str] = None,
4142
filter: Optional[str] = None,
4243
scope: Optional[ScopeFilter] = None,
@@ -57,6 +58,7 @@ def list_strings(
5758
"fileId": fileId,
5859
"denormalizePlaceholders": denormalizePlaceholders,
5960
"labelIds": None if labelIds is None else ",".join(str(item) for item in labelIds),
61+
"taskId": taskId,
6062
"filter": filter,
6163
"croql": croql,
6264
"scope": scope,

crowdin_api/api_resources/source_strings/tests/test_source_strings_resources.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def test_get_source_strings_path(self, in_params, path, base_absolut_url):
5151
"filter": None,
5252
"scope": None,
5353
"branchId": None,
54+
"taskId": None,
5455
},
5556
),
5657
(
@@ -64,6 +65,7 @@ def test_get_source_strings_path(self, in_params, path, base_absolut_url):
6465
"filter": "some",
6566
"scope": ScopeFilter.CONTEXT,
6667
"branchId": 2,
68+
"taskId": 5,
6769
},
6870
{
6971
"offset": 0,
@@ -75,6 +77,7 @@ def test_get_source_strings_path(self, in_params, path, base_absolut_url):
7577
"filter": "some",
7678
"scope": ScopeFilter.CONTEXT,
7779
"branchId": 2,
80+
"taskId": 5,
7881
},
7982
),
8083
),

0 commit comments

Comments
 (0)