5151from .schema import InfrahubSchema , InfrahubSchemaSync , NodeSchemaAPI
5252from .store import NodeStore , NodeStoreSync
5353from .timestamp import Timestamp
54- from .types import AsyncRequester , HTTPMethod , OrderModel , SyncRequester
54+ from .types import AsyncRequester , HTTPMethod , Order , SyncRequester
5555from .utils import decode_json , is_valid_uuid
5656
5757if TYPE_CHECKING :
@@ -540,7 +540,7 @@ async def all(
540540 fragment : bool = ...,
541541 prefetch_relationships : bool = ...,
542542 property : bool = ...,
543- order : OrderModel | None = ...,
543+ order : Order | None = ...,
544544 ) -> list [SchemaType ]: ...
545545
546546 @overload
@@ -558,7 +558,7 @@ async def all(
558558 fragment : bool = ...,
559559 prefetch_relationships : bool = ...,
560560 property : bool = ...,
561- order : OrderModel | None = ...,
561+ order : Order | None = ...,
562562 ) -> list [InfrahubNode ]: ...
563563
564564 async def all (
@@ -575,7 +575,7 @@ async def all(
575575 fragment : bool = False ,
576576 prefetch_relationships : bool = False ,
577577 property : bool = False ,
578- order : OrderModel | None = None ,
578+ order : Order | None = None ,
579579 ) -> list [InfrahubNode ] | list [SchemaType ]:
580580 """Retrieve all nodes of a given kind
581581
@@ -591,6 +591,7 @@ async def all(
591591 exclude (list[str], optional): List of attributes or relationships to exclude from the query.
592592 fragment (bool, optional): Flag to use GraphQL fragments for generic schemas.
593593 prefetch_relationships (bool, optional): Flag to indicate whether to prefetch related node data.
594+ order (Order, optional): Ordering related options. Setting `disable=True` enhances performances.
594595
595596 Returns:
596597 list[InfrahubNode]: List of Nodes
@@ -627,7 +628,7 @@ async def filters(
627628 prefetch_relationships : bool = ...,
628629 partial_match : bool = ...,
629630 property : bool = ...,
630- order : OrderModel | None = ...,
631+ order : Order | None = ...,
631632 ** kwargs : Any ,
632633 ) -> list [SchemaType ]: ...
633634
@@ -647,7 +648,7 @@ async def filters(
647648 prefetch_relationships : bool = ...,
648649 partial_match : bool = ...,
649650 property : bool = ...,
650- order : OrderModel | None = ...,
651+ order : Order | None = ...,
651652 ** kwargs : Any ,
652653 ) -> list [InfrahubNode ]: ...
653654
@@ -666,7 +667,7 @@ async def filters(
666667 prefetch_relationships : bool = False ,
667668 partial_match : bool = False ,
668669 property : bool = False ,
669- order : OrderModel | None = None ,
670+ order : Order | None = None ,
670671 ** kwargs : Any ,
671672 ) -> list [InfrahubNode ] | list [SchemaType ]:
672673 """Retrieve nodes of a given kind based on provided filters.
@@ -684,6 +685,7 @@ async def filters(
684685 fragment (bool, optional): Flag to use GraphQL fragments for generic schemas.
685686 prefetch_relationships (bool, optional): Flag to indicate whether to prefetch related node data.
686687 partial_match (bool, optional): Allow partial match of filter criteria for the query.
688+ order (Order, optional): Ordering related options. Setting `disable=True` enhances performances.
687689 **kwargs (Any): Additional filter criteria for the query.
688690
689691 Returns:
@@ -1572,7 +1574,7 @@ def all(
15721574 fragment : bool = ...,
15731575 prefetch_relationships : bool = ...,
15741576 property : bool = ...,
1575- order : OrderModel | None = ...,
1577+ order : Order | None = ...,
15761578 ) -> list [SchemaTypeSync ]: ...
15771579
15781580 @overload
@@ -1590,7 +1592,7 @@ def all(
15901592 fragment : bool = ...,
15911593 prefetch_relationships : bool = ...,
15921594 property : bool = ...,
1593- order : OrderModel | None = ...,
1595+ order : Order | None = ...,
15941596 ) -> list [InfrahubNodeSync ]: ...
15951597
15961598 def all (
@@ -1607,7 +1609,7 @@ def all(
16071609 fragment : bool = False ,
16081610 prefetch_relationships : bool = False ,
16091611 property : bool = False ,
1610- order : OrderModel | None = None ,
1612+ order : Order | None = None ,
16111613 ) -> list [InfrahubNodeSync ] | list [SchemaTypeSync ]:
16121614 """Retrieve all nodes of a given kind
16131615
@@ -1623,6 +1625,7 @@ def all(
16231625 exclude (list[str], optional): List of attributes or relationships to exclude from the query.
16241626 fragment (bool, optional): Flag to use GraphQL fragments for generic schemas.
16251627 prefetch_relationships (bool, optional): Flag to indicate whether to prefetch related node data.
1628+ order (Order, optional): Ordering related options. Setting `disable=True` enhances performances.
16261629
16271630 Returns:
16281631 list[InfrahubNodeSync]: List of Nodes
@@ -1694,7 +1697,7 @@ def filters(
16941697 prefetch_relationships : bool = ...,
16951698 partial_match : bool = ...,
16961699 property : bool = ...,
1697- order : OrderModel | None = ...,
1700+ order : Order | None = ...,
16981701 ** kwargs : Any ,
16991702 ) -> list [SchemaTypeSync ]: ...
17001703
@@ -1714,7 +1717,7 @@ def filters(
17141717 prefetch_relationships : bool = ...,
17151718 partial_match : bool = ...,
17161719 property : bool = ...,
1717- order : OrderModel | None = ...,
1720+ order : Order | None = ...,
17181721 ** kwargs : Any ,
17191722 ) -> list [InfrahubNodeSync ]: ...
17201723
@@ -1733,7 +1736,7 @@ def filters(
17331736 prefetch_relationships : bool = False ,
17341737 partial_match : bool = False ,
17351738 property : bool = False ,
1736- order : OrderModel | None = None ,
1739+ order : Order | None = None ,
17371740 ** kwargs : Any ,
17381741 ) -> list [InfrahubNodeSync ] | list [SchemaTypeSync ]:
17391742 """Retrieve nodes of a given kind based on provided filters.
@@ -1751,6 +1754,7 @@ def filters(
17511754 fragment (bool, optional): Flag to use GraphQL fragments for generic schemas.
17521755 prefetch_relationships (bool, optional): Flag to indicate whether to prefetch related node data.
17531756 partial_match (bool, optional): Allow partial match of filter criteria for the query.
1757+ order (Order, optional): Ordering related options. Setting `disable=True` enhances performances.
17541758 **kwargs (Any): Additional filter criteria for the query.
17551759
17561760 Returns:
0 commit comments