Skip to content

Commit 36f64a0

Browse files
committed
1 parent ef53bbd commit 36f64a0

File tree

128 files changed

+209
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+209
-144
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.11.0-SNAPSHOT
1+
7.12.0-SNAPSHOT

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Your favorite language is missing? Please let me know!
3838

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

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

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

109110
try:
110111
# Single Almanax Date
111-
api_response = api_instance.get_almanax_date(language, var_date)
112+
api_response = api_instance.get_almanax_date(language, var_date, level=level)
112113
print("The response of AlmanaxApi->get_almanax_date:\n")
113114
pprint(api_response)
114115
except ApiException as e:

docs/Almanax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**var_date** | **str** | | [optional]
1010
**tribute** | [**AlmanaxTribute**](AlmanaxTribute.md) | | [optional]
1111
**reward_kamas** | **int** | Amount of Kamas you get as reward for finishing this Almanax quest. | [optional]
12+
**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]
1213

1314
## Example
1415

docs/AlmanaxApi.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **get_almanax_date**
12-
> Almanax get_almanax_date(language, var_date)
12+
> Almanax get_almanax_date(language, var_date, level=level)
1313
1414
Single Almanax Date
1515

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

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

6062
### Return type
6163

@@ -79,7 +81,7 @@ No authorization required
7981
[[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)
8082

8183
# **get_almanax_range**
82-
> 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)
84+
> 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)
8385
8486
Almanax Range
8587

@@ -111,10 +113,11 @@ with dofusdude.ApiClient(configuration) as api_client:
111113
range_to = '2013-10-20' # date | yyyy-mm-dd (optional)
112114
range_size = -1 # int | Size of the returned range. Disable to fully use the range by setting size to -1. (optional)
113115
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')
116+
level = 56 # int | character level for the reward_xp field (optional)
114117

115118
try:
116119
# Almanax Range
117-
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)
120+
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)
118121
print("The response of AlmanaxApi->get_almanax_range:\n")
119122
pprint(api_response)
120123
except Exception as e:
@@ -134,6 +137,7 @@ Name | Type | Description | Notes
134137
**range_to** | **date**| yyyy-mm-dd | [optional]
135138
**range_size** | **int**| Size of the returned range. Disable to fully use the range by setting size to -1. | [optional]
136139
**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']
140+
**level** | **int**| character level for the reward_xp field | [optional]
137141

138142
### Return type
139143

dofusdude/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
# 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).
99
10-
The version of the OpenAPI document: 1.0.0-rc.8
10+
The version of the OpenAPI document: 1.0.0-rc.9
1111
Contact: stelzo@steado.de
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.0.0-rc.8"
18+
__version__ = "1.0.0-rc.9"
1919

2020
# import apis into sdk package
2121
from dofusdude.api.almanax_api import AlmanaxApi

dofusdude/api/almanax_api.py

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
# 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).
77
8-
The version of the OpenAPI document: 1.0.0-rc.8
8+
The version of the OpenAPI document: 1.0.0-rc.9
99
Contact: stelzo@steado.de
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -18,7 +18,7 @@
1818
from typing_extensions import Annotated
1919

2020
from datetime import date
21-
from pydantic import Field, StrictStr, field_validator
21+
from pydantic import Field, StrictInt, StrictStr, field_validator
2222
from typing import List, Optional
2323
from typing_extensions import Annotated
2424
from dofusdude.models.almanax import Almanax
@@ -46,6 +46,7 @@ def get_almanax_date(
4646
self,
4747
language: Annotated[StrictStr, Field(description="code")],
4848
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
49+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
4950
_request_timeout: Union[
5051
None,
5152
Annotated[StrictFloat, Field(gt=0)],
@@ -67,6 +68,8 @@ def get_almanax_date(
6768
:type language: str
6869
:param var_date: yyyy-mm-dd (required)
6970
:type var_date: date
71+
:param level: character level for the reward_xp field
72+
:type level: int
7073
:param _request_timeout: timeout setting for this request. If one
7174
number provided, it will be total request
7275
timeout. It can also be a pair (tuple) of
@@ -92,6 +95,7 @@ def get_almanax_date(
9295
_param = self._get_almanax_date_serialize(
9396
language=language,
9497
var_date=var_date,
98+
level=level,
9599
_request_auth=_request_auth,
96100
_content_type=_content_type,
97101
_headers=_headers,
@@ -117,6 +121,7 @@ def get_almanax_date_with_http_info(
117121
self,
118122
language: Annotated[StrictStr, Field(description="code")],
119123
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
124+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
120125
_request_timeout: Union[
121126
None,
122127
Annotated[StrictFloat, Field(gt=0)],
@@ -138,6 +143,8 @@ def get_almanax_date_with_http_info(
138143
:type language: str
139144
:param var_date: yyyy-mm-dd (required)
140145
:type var_date: date
146+
:param level: character level for the reward_xp field
147+
:type level: int
141148
:param _request_timeout: timeout setting for this request. If one
142149
number provided, it will be total request
143150
timeout. It can also be a pair (tuple) of
@@ -163,6 +170,7 @@ def get_almanax_date_with_http_info(
163170
_param = self._get_almanax_date_serialize(
164171
language=language,
165172
var_date=var_date,
173+
level=level,
166174
_request_auth=_request_auth,
167175
_content_type=_content_type,
168176
_headers=_headers,
@@ -188,6 +196,7 @@ def get_almanax_date_without_preload_content(
188196
self,
189197
language: Annotated[StrictStr, Field(description="code")],
190198
var_date: Annotated[date, Field(description="yyyy-mm-dd")],
199+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
191200
_request_timeout: Union[
192201
None,
193202
Annotated[StrictFloat, Field(gt=0)],
@@ -209,6 +218,8 @@ def get_almanax_date_without_preload_content(
209218
:type language: str
210219
:param var_date: yyyy-mm-dd (required)
211220
:type var_date: date
221+
:param level: character level for the reward_xp field
222+
:type level: int
212223
:param _request_timeout: timeout setting for this request. If one
213224
number provided, it will be total request
214225
timeout. It can also be a pair (tuple) of
@@ -234,6 +245,7 @@ def get_almanax_date_without_preload_content(
234245
_param = self._get_almanax_date_serialize(
235246
language=language,
236247
var_date=var_date,
248+
level=level,
237249
_request_auth=_request_auth,
238250
_content_type=_content_type,
239251
_headers=_headers,
@@ -254,6 +266,7 @@ def _get_almanax_date_serialize(
254266
self,
255267
language,
256268
var_date,
269+
level,
257270
_request_auth,
258271
_content_type,
259272
_headers,
@@ -280,6 +293,10 @@ def _get_almanax_date_serialize(
280293
if var_date is not None:
281294
_path_params['date'] = var_date
282295
# process the query parameters
296+
if level is not None:
297+
298+
_query_params.append(('level', level))
299+
283300
# process the header parameters
284301
# process the form parameters
285302
# process the body parameter
@@ -325,6 +342,7 @@ def get_almanax_range(
325342
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
326343
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,
327344
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,
345+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
328346
_request_timeout: Union[
329347
None,
330348
Annotated[StrictFloat, Field(gt=0)],
@@ -354,6 +372,8 @@ def get_almanax_range(
354372
:type range_size: int
355373
: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.
356374
:type timezone: str
375+
:param level: character level for the reward_xp field
376+
:type level: int
357377
:param _request_timeout: timeout setting for this request. If one
358378
number provided, it will be total request
359379
timeout. It can also be a pair (tuple) of
@@ -383,6 +403,7 @@ def get_almanax_range(
383403
range_to=range_to,
384404
range_size=range_size,
385405
timezone=timezone,
406+
level=level,
386407
_request_auth=_request_auth,
387408
_content_type=_content_type,
388409
_headers=_headers,
@@ -412,6 +433,7 @@ def get_almanax_range_with_http_info(
412433
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
413434
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,
414435
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,
436+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
415437
_request_timeout: Union[
416438
None,
417439
Annotated[StrictFloat, Field(gt=0)],
@@ -441,6 +463,8 @@ def get_almanax_range_with_http_info(
441463
:type range_size: int
442464
: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.
443465
:type timezone: str
466+
:param level: character level for the reward_xp field
467+
:type level: int
444468
:param _request_timeout: timeout setting for this request. If one
445469
number provided, it will be total request
446470
timeout. It can also be a pair (tuple) of
@@ -470,6 +494,7 @@ def get_almanax_range_with_http_info(
470494
range_to=range_to,
471495
range_size=range_size,
472496
timezone=timezone,
497+
level=level,
473498
_request_auth=_request_auth,
474499
_content_type=_content_type,
475500
_headers=_headers,
@@ -499,6 +524,7 @@ def get_almanax_range_without_preload_content(
499524
range_to: Annotated[Optional[date], Field(description="yyyy-mm-dd")] = None,
500525
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,
501526
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,
527+
level: Annotated[Optional[StrictInt], Field(description="character level for the reward_xp field")] = None,
502528
_request_timeout: Union[
503529
None,
504530
Annotated[StrictFloat, Field(gt=0)],
@@ -528,6 +554,8 @@ def get_almanax_range_without_preload_content(
528554
:type range_size: int
529555
: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.
530556
:type timezone: str
557+
:param level: character level for the reward_xp field
558+
:type level: int
531559
:param _request_timeout: timeout setting for this request. If one
532560
number provided, it will be total request
533561
timeout. It can also be a pair (tuple) of
@@ -557,6 +585,7 @@ def get_almanax_range_without_preload_content(
557585
range_to=range_to,
558586
range_size=range_size,
559587
timezone=timezone,
588+
level=level,
560589
_request_auth=_request_auth,
561590
_content_type=_content_type,
562591
_headers=_headers,
@@ -581,6 +610,7 @@ def _get_almanax_range_serialize(
581610
range_to,
582611
range_size,
583612
timezone,
613+
level,
584614
_request_auth,
585615
_content_type,
586616
_headers,
@@ -643,6 +673,10 @@ def _get_almanax_range_serialize(
643673

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

676+
if level is not None:
677+
678+
_query_params.append(('level', level))
679+
646680
# process the header parameters
647681
# process the form parameters
648682
# process the body parameter

0 commit comments

Comments
 (0)