Skip to content

Commit cfd51f0

Browse files
committed
update public api
1 parent 685f565 commit cfd51f0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ayon_api/_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,13 +3248,16 @@ def get_events(
32483248
project_names: Optional[Iterable[str]] = None,
32493249
statuses: Optional[Iterable[EventStatus]] = None,
32503250
users: Optional[Iterable[str]] = None,
3251+
text_filter: Optional[str] = None,
32513252
include_logs: Optional[bool] = None,
32523253
has_children: Optional[bool] = None,
32533254
newer_than: Optional[str] = None,
32543255
older_than: Optional[str] = None,
32553256
fields: Optional[Iterable[str]] = None,
32563257
limit: Optional[int] = None,
32573258
order: Optional[SortOrder] = None,
3259+
first: Optional[int] = None,
3260+
last: Optional[int] = None,
32583261
states: Optional[Iterable[str]] = None,
32593262
) -> Generator[dict[str, Any], None, None]:
32603263
"""Get events from server with filtering options.
@@ -3270,6 +3273,7 @@ def get_events(
32703273
statuses (Optional[Iterable[EventStatus]]): Filtering by statuses.
32713274
users (Optional[Iterable[str]]): Filtering by users
32723275
who created/triggered an event.
3276+
text_filter (Optional[str]): Filtering by text in event payload.
32733277
include_logs (Optional[bool]): Query also log events.
32743278
has_children (Optional[bool]): Event is with/without children
32753279
events. If 'None' then all events are returned, default.
@@ -3283,6 +3287,8 @@ def get_events(
32833287
order (Optional[SortOrder]): Order events in ascending
32843288
or descending order. It is recommended to set 'limit'
32853289
when used descending.
3290+
first (Optional[int]): Get first n events.
3291+
last (Optional[int]): Get last n events.
32863292
states (Optional[Iterable[str]]): DEPRECATED Filtering by states.
32873293
Use 'statuses' instead.
32883294
@@ -3297,13 +3303,16 @@ def get_events(
32973303
project_names=project_names,
32983304
statuses=statuses,
32993305
users=users,
3306+
text_filter=text_filter,
33003307
include_logs=include_logs,
33013308
has_children=has_children,
33023309
newer_than=newer_than,
33033310
older_than=older_than,
33043311
fields=fields,
33053312
limit=limit,
33063313
order=order,
3314+
first=first,
3315+
last=last,
33073316
states=states,
33083317
)
33093318

0 commit comments

Comments
 (0)