11from typing import Iterable , Optional
22
3+ import warnings
34from crowdin_api .api_resources .abstract .resources import BaseResource
45from crowdin_api .api_resources .screenshots .types import (
56 AddTagRequest ,
@@ -30,8 +31,10 @@ def get_screenshots_path(self, projectId: int, screenshotId: Optional[int] = Non
3031
3132 def list_screenshots (
3233 self ,
34+ orderBy : Optional [str ] = None ,
3335 projectId : Optional [int ] = None ,
3436 stringId : Optional [int ] = None ,
37+ stringIds : Optional [Iterable [int ]] = None ,
3538 labelIds : Optional [Iterable [int ]] = None ,
3639 excludeLabelIds : Optional [Iterable [int ]] = None ,
3740 page : Optional [int ] = None ,
@@ -47,7 +50,11 @@ def list_screenshots(
4750
4851 projectId = projectId or self .get_project_id ()
4952
50- params = {"stringId" : stringId , "labelIds" : labelIds , "excludeLabelIds" : excludeLabelIds }
53+ if stringId :
54+ warnings .warn ("`stringId` is deprecated, use `stringIds` instead" , category = DeprecationWarning )
55+ stringIds = [stringId ]
56+
57+ params = {"orderBy" : orderBy , "stringIds" : stringIds , "labelIds" : labelIds , "excludeLabelIds" : excludeLabelIds }
5158 params .update (self .get_page_params (page = page , offset = offset , limit = limit ))
5259
5360 return self ._get_entire_data (
0 commit comments