Skip to content

Commit

Permalink
Implements GraphQL endpoint for the Search Class
Browse files Browse the repository at this point in the history
- Adds a new JSON file with search results for Universal Context Search.
- Uses NotRequired from typing_extension.
- Updates Tests for Search Class.
- Improves Type Hinting for Search Class.
  • Loading branch information
isFakeAccount committed Jun 16, 2024
1 parent 88eaf5f commit c586e33
Show file tree
Hide file tree
Showing 9 changed files with 6,449 additions and 122 deletions.
4,381 changes: 4,381 additions & 0 deletions docs/examples/search/universal_search.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/psnawp_api/core/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import uuid
from functools import wraps
from logging import getLogger
from typing import TYPE_CHECKING, Callable, NotRequired, Optional, TypedDict, TypeVar, cast
from typing import TYPE_CHECKING, Callable, Optional, TypedDict, TypeVar, cast
from urllib.parse import parse_qs, urlparse

from requests import Response
from typing_extensions import ParamSpec, Unpack
from typing_extensions import NotRequired, ParamSpec, Unpack

from psnawp_api.core.psnawp_exceptions import PSNAWPAuthenticationError
from psnawp_api.core.request_builder import RequestBuilder
Expand Down
7 changes: 4 additions & 3 deletions src/psnawp_api/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from psnawp_api.models.client import Client
from psnawp_api.models.game_title import GameTitle
from psnawp_api.models.group import Group
from psnawp_api.models.search import Search
from psnawp_api.models.search import SearchDomain, UniversalSearch
from psnawp_api.models.title_stats import TitleStats, TitleStatsIterator
from psnawp_api.models.user import User

__all__ = [
"Client",
"GameTitle",
"Group",
"Search",
"User",
"SearchDomain",
"UniversalSearch",
"TitleStats",
"TitleStatsIterator",
"User",
]
Loading

0 comments on commit c586e33

Please sign in to comment.