Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Jan 25, 2025
1 parent ef53bbd commit 36f64a0
Show file tree
Hide file tree
Showing 128 changed files with 209 additions and 144 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.11.0-SNAPSHOT
7.12.0-SNAPSHOT
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Your favorite language is missing? Please let me know!

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0-rc.8
- Package version: 1.0.0-rc.8
- Generator version: 7.11.0-SNAPSHOT
- API version: 1.0.0-rc.9
- Package version: 1.0.0-rc.9
- Generator version: 7.12.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://discord.gg/3EtHskZD8h](https://discord.gg/3EtHskZD8h)

Expand Down Expand Up @@ -105,10 +105,11 @@ with dofusdude.ApiClient(configuration) as api_client:
api_instance = dofusdude.AlmanaxApi(api_client)
language = 'fr' # str | code
var_date = 'Tue Jul 14 00:00:00 UTC 2020' # date | yyyy-mm-dd
level = 56 # int | character level for the reward_xp field (optional)

try:
# Single Almanax Date
api_response = api_instance.get_almanax_date(language, var_date)
api_response = api_instance.get_almanax_date(language, var_date, level=level)
print("The response of AlmanaxApi->get_almanax_date:\n")
pprint(api_response)
except ApiException as e:
Expand Down
1 change: 1 addition & 0 deletions docs/Almanax.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**var_date** | **str** | | [optional]
**tribute** | [**AlmanaxTribute**](AlmanaxTribute.md) | | [optional]
**reward_kamas** | **int** | Amount of Kamas you get as reward for finishing this Almanax quest. | [optional]
**reward_xp** | **int** | Optional field that shows when a level is given in the request. Shows the experience points you get this day for finishing this Almanax quest. | [optional]

## Example

Expand Down
12 changes: 8 additions & 4 deletions docs/AlmanaxApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description


# **get_almanax_date**
> Almanax get_almanax_date(language, var_date)
> Almanax get_almanax_date(language, var_date, level=level)
Single Almanax Date

Expand Down Expand Up @@ -37,10 +37,11 @@ with dofusdude.ApiClient(configuration) as api_client:
api_instance = dofusdude.AlmanaxApi(api_client)
language = 'fr' # str | code
var_date = 'Tue Jul 14 00:00:00 UTC 2020' # date | yyyy-mm-dd
level = 56 # int | character level for the reward_xp field (optional)

try:
# Single Almanax Date
api_response = api_instance.get_almanax_date(language, var_date)
api_response = api_instance.get_almanax_date(language, var_date, level=level)
print("The response of AlmanaxApi->get_almanax_date:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -56,6 +57,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**language** | **str**| code |
**var_date** | **date**| yyyy-mm-dd |
**level** | **int**| character level for the reward_xp field | [optional]

### Return type

Expand All @@ -79,7 +81,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_almanax_range**
> List[Almanax] get_almanax_range(language, filter_bonus_type=filter_bonus_type, range_from=range_from, range_to=range_to, range_size=range_size, timezone=timezone)
> List[Almanax] get_almanax_range(language, filter_bonus_type=filter_bonus_type, range_from=range_from, range_to=range_to, range_size=range_size, timezone=timezone, level=level)
Almanax Range

Expand Down Expand Up @@ -111,10 +113,11 @@ with dofusdude.ApiClient(configuration) as api_client:
range_to = '2013-10-20' # date | yyyy-mm-dd (optional)
range_size = -1 # int | Size of the returned range. Disable to fully use the range by setting size to -1. (optional)
timezone = 'Europe/Paris' # str | determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location. (optional) (default to 'Europe/Paris')
level = 56 # int | character level for the reward_xp field (optional)

try:
# Almanax Range
api_response = api_instance.get_almanax_range(language, filter_bonus_type=filter_bonus_type, range_from=range_from, range_to=range_to, range_size=range_size, timezone=timezone)
api_response = api_instance.get_almanax_range(language, filter_bonus_type=filter_bonus_type, range_from=range_from, range_to=range_to, range_size=range_size, timezone=timezone, level=level)
print("The response of AlmanaxApi->get_almanax_range:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -134,6 +137,7 @@ Name | Type | Description | Notes
**range_to** | **date**| yyyy-mm-dd | [optional]
**range_size** | **int**| Size of the returned range. Disable to fully use the range by setting size to -1. | [optional]
**timezone** | **str**| determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location. | [optional] [default to 'Europe/Paris']
**level** | **int**| character level for the reward_xp field | [optional]

### Return type

Expand Down
4 changes: 2 additions & 2 deletions dofusdude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# Open Ankama Developer Community The all-in-one toolbelt for your next Ankama related project. ## Versions - [Dofus 2](https://docs.dofusdu.de/dofus2/) - [Dofus 3](https://docs.dofusdu.de/dofus3/) - v1 [latest] (you are here) ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) `npm i dofusdude-js --save` - [Typescript](https://github.com/dofusdude/dofusdude-ts) `npm i dofusdude-ts --save` - [Go](https://github.com/dofusdude/dodugo) `go get -u github.com/dofusdude/dodugo` - [Python](https://github.com/dofusdude/dofusdude-py) `pip install dofusdude` - [Java](https://github.com/dofusdude/dofusdude-java) Maven with GitHub packages setup Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there. Your favorite language is missing? Please let me know! # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date. - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪. - 📨 **Almanax Discord Integration** Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 3 Beta** from stable to bleeding edge by replacing /dofus3 with /dofus3beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_, _de_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Official Sources** generated from actual data from the game. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
The version of the OpenAPI document: 1.0.0-rc.8
The version of the OpenAPI document: 1.0.0-rc.9
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0-rc.8"
__version__ = "1.0.0-rc.9"

# import apis into sdk package
from dofusdude.api.almanax_api import AlmanaxApi
Expand Down
38 changes: 36 additions & 2 deletions dofusdude/api/almanax_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Open Ankama Developer Community The all-in-one toolbelt for your next Ankama related project. ## Versions - [Dofus 2](https://docs.dofusdu.de/dofus2/) - [Dofus 3](https://docs.dofusdu.de/dofus3/) - v1 [latest] (you are here) ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) `npm i dofusdude-js --save` - [Typescript](https://github.com/dofusdude/dofusdude-ts) `npm i dofusdude-ts --save` - [Go](https://github.com/dofusdude/dodugo) `go get -u github.com/dofusdude/dodugo` - [Python](https://github.com/dofusdude/dofusdude-py) `pip install dofusdude` - [Java](https://github.com/dofusdude/dofusdude-java) Maven with GitHub packages setup Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there. Your favorite language is missing? Please let me know! # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date. - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪. - 📨 **Almanax Discord Integration** Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 3 Beta** from stable to bleeding edge by replacing /dofus3 with /dofus3beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_, _de_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Official Sources** generated from actual data from the game. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
The version of the OpenAPI document: 1.0.0-rc.8
The version of the OpenAPI document: 1.0.0-rc.9
Contact: [email protected]
Generated by OpenAPI Generator (https://openapi-generator.tech)
Expand All @@ -18,7 +18,7 @@
from typing_extensions import Annotated

from datetime import date
from pydantic import Field, StrictStr, field_validator
from pydantic import Field, StrictInt, StrictStr, field_validator
from typing import List, Optional
from typing_extensions import Annotated
from dofusdude.models.almanax import Almanax
Expand Down Expand Up @@ -46,6 +46,7 @@ def get_almanax_date(
self,
language: Annotated[StrictStr, Field(description="code")],
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -67,6 +68,8 @@ def get_almanax_date(
:type language: str
:param var_date: yyyy-mm-dd (required)
:type var_date: date
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -92,6 +95,7 @@ def get_almanax_date(
_param = self._get_almanax_date_serialize(
language=language,
var_date=var_date,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -117,6 +121,7 @@ def get_almanax_date_with_http_info(
self,
language: Annotated[StrictStr, Field(description="code")],
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -138,6 +143,8 @@ def get_almanax_date_with_http_info(
:type language: str
:param var_date: yyyy-mm-dd (required)
:type var_date: date
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -163,6 +170,7 @@ def get_almanax_date_with_http_info(
_param = self._get_almanax_date_serialize(
language=language,
var_date=var_date,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -188,6 +196,7 @@ def get_almanax_date_without_preload_content(
self,
language: Annotated[StrictStr, Field(description="code")],
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -209,6 +218,8 @@ def get_almanax_date_without_preload_content(
:type language: str
:param var_date: yyyy-mm-dd (required)
:type var_date: date
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -234,6 +245,7 @@ def get_almanax_date_without_preload_content(
_param = self._get_almanax_date_serialize(
language=language,
var_date=var_date,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -254,6 +266,7 @@ def _get_almanax_date_serialize(
self,
language,
var_date,
level,
_request_auth,
_content_type,
_headers,
Expand All @@ -280,6 +293,10 @@ def _get_almanax_date_serialize(
if var_date is not None:
_path_params['date'] = var_date
# process the query parameters
if level is not None:

_query_params.append(('level', level))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down Expand Up @@ -325,6 +342,7 @@ def get_almanax_range(
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
range_size: Annotated[Optional[Annotated[int, Field(le=370, strict=True)]], Field(description="Size of the returned range. Disable to fully use the range by setting size to -1.")] = None,
timezone: Annotated[Optional[StrictStr], Field(description="determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.")] = None,
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -354,6 +372,8 @@ def get_almanax_range(
:type range_size: int
:param timezone: determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.
:type timezone: str
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -383,6 +403,7 @@ def get_almanax_range(
range_to=range_to,
range_size=range_size,
timezone=timezone,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -412,6 +433,7 @@ def get_almanax_range_with_http_info(
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
range_size: Annotated[Optional[Annotated[int, Field(le=370, strict=True)]], Field(description="Size of the returned range. Disable to fully use the range by setting size to -1.")] = None,
timezone: Annotated[Optional[StrictStr], Field(description="determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.")] = None,
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -441,6 +463,8 @@ def get_almanax_range_with_http_info(
:type range_size: int
:param timezone: determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.
:type timezone: str
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -470,6 +494,7 @@ def get_almanax_range_with_http_info(
range_to=range_to,
range_size=range_size,
timezone=timezone,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -499,6 +524,7 @@ def get_almanax_range_without_preload_content(
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
range_size: Annotated[Optional[Annotated[int, Field(le=370, strict=True)]], Field(description="Size of the returned range. Disable to fully use the range by setting size to -1.")] = None,
timezone: Annotated[Optional[StrictStr], Field(description="determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.")] = None,
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -528,6 +554,8 @@ def get_almanax_range_without_preload_content(
:type range_size: int
:param timezone: determine what the current time is. If you live in Brazil, \"today\" will be hours apart from Paris. Use your timezone to get results relative to your location.
:type timezone: str
:param level: character level for the reward_xp field
:type level: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -557,6 +585,7 @@ def get_almanax_range_without_preload_content(
range_to=range_to,
range_size=range_size,
timezone=timezone,
level=level,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -581,6 +610,7 @@ def _get_almanax_range_serialize(
range_to,
range_size,
timezone,
level,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -643,6 +673,10 @@ def _get_almanax_range_serialize(

_query_params.append(('timezone', timezone))

if level is not None:

_query_params.append(('level', level))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
Loading

0 comments on commit 36f64a0

Please sign in to comment.