@@ -139,6 +139,7 @@ def projects(
139139 "roles.user.id" ,
140140 "title" ,
141141 ),
142+ deleted : Optional [bool ] = None ,
142143 first : Optional [int ] = None ,
143144 skip : int = 0 ,
144145 disable_tqdm : Optional [bool ] = None ,
@@ -173,6 +174,7 @@ def projects(
173174 "roles.user.id" ,
174175 "title" ,
175176 ),
177+ deleted : Optional [bool ] = None ,
176178 first : Optional [int ] = None ,
177179 skip : int = 0 ,
178180 disable_tqdm : Optional [bool ] = None ,
@@ -207,6 +209,7 @@ def projects(
207209 "roles.user.id" ,
208210 "title" ,
209211 ),
212+ deleted : Optional [bool ] = None ,
210213 first : Optional [int ] = None ,
211214 skip : int = 0 ,
212215 disable_tqdm : Optional [bool ] = None ,
@@ -235,6 +238,7 @@ def projects(
235238 skip: Number of projects to skip (they are ordered by their creation).
236239 disable_tqdm: If `True`, the progress bar will be disabled.
237240 as_generator: If `True`, a generator on the projects is returned.
241+ deleted: If `True`, all projects are returned (including deleted ones).
238242
239243 !!! info "Dates format"
240244 Date strings should have format: "YYYY-MM-DD"
@@ -265,6 +269,7 @@ def projects(
265269 created_at_lte = None ,
266270 organization_id = organization_id ,
267271 tag_ids = tag_ids ,
272+ deleted = deleted ,
268273 ),
269274 fields ,
270275 options = QueryOptions (disable_tqdm = disable_tqdm , first = first , skip = skip ),
@@ -395,6 +400,7 @@ def count_projects(
395400 updated_at_gte : Optional [str ] = None ,
396401 updated_at_lte : Optional [str ] = None ,
397402 archived : Optional [bool ] = None ,
403+ deleted : Optional [bool ] = None ,
398404 ) -> int :
399405 # pylint: disable=line-too-long
400406 """Count the number of projects with a search_query.
@@ -411,6 +417,7 @@ def count_projects(
411417 whose update date is lower or equal to this date.
412418 archived: If `True`, only archived projects are returned, if `False`, only active projects are returned.
413419 None disable this filter.
420+ deleted: If `True` all projects are counted (including deleted ones).
414421
415422 !!! info "Dates format"
416423 Date strings should have format: "YYYY-MM-DD"
@@ -426,5 +433,6 @@ def count_projects(
426433 updated_at_gte = updated_at_gte ,
427434 updated_at_lte = updated_at_lte ,
428435 archived = archived ,
436+ deleted = deleted ,
429437 )
430438 )
0 commit comments