Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Oct 21, 2024
1 parent fb0bc18 commit c208c55
Show file tree
Hide file tree
Showing 129 changed files with 154 additions and 1,131 deletions.
9 changes: 3 additions & 6 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ docs/Model/ConditionEntry.md
docs/Model/ConditionTreeLeaf.md
docs/Model/ConditionTreeNode.md
docs/Model/ConditionTreeRelation.md
docs/Model/Cosmetic.md
docs/Model/CosmeticType.md
docs/Model/CreateAlmanaxWebhook.md
docs/Model/CreateAlmanaxWebhookDailySettings.md
docs/Model/CreateAlmanaxWebhookMentionsValueInner.md
Expand Down Expand Up @@ -55,6 +53,7 @@ docs/Model/PutRSSWebhook.md
docs/Model/PutTwitterWebhook.md
docs/Model/RecipeEntry.md
docs/Model/Resource.md
docs/Model/ResourceType.md
docs/Model/RssWebhook.md
docs/Model/SetEffectsEntry.md
docs/Model/SetEffectsEntryType.md
Expand Down Expand Up @@ -88,8 +87,6 @@ lib/Model/ConditionEntry.php
lib/Model/ConditionTreeLeaf.php
lib/Model/ConditionTreeNode.php
lib/Model/ConditionTreeRelation.php
lib/Model/Cosmetic.php
lib/Model/CosmeticType.php
lib/Model/CreateAlmanaxWebhook.php
lib/Model/CreateAlmanaxWebhookDailySettings.php
lib/Model/CreateAlmanaxWebhookMentionsValueInner.php
Expand Down Expand Up @@ -119,6 +116,7 @@ lib/Model/PutRSSWebhook.php
lib/Model/PutTwitterWebhook.php
lib/Model/RecipeEntry.php
lib/Model/Resource.php
lib/Model/ResourceType.php
lib/Model/RssWebhook.php
lib/Model/SetEffectsEntry.php
lib/Model/SetEffectsEntryType.php
Expand Down Expand Up @@ -150,8 +148,6 @@ test/Model/ConditionEntryTest.php
test/Model/ConditionTreeLeafTest.php
test/Model/ConditionTreeNodeTest.php
test/Model/ConditionTreeRelationTest.php
test/Model/CosmeticTest.php
test/Model/CosmeticTypeTest.php
test/Model/CreateAlmanaxWebhookDailySettingsTest.php
test/Model/CreateAlmanaxWebhookMentionsValueInnerTest.php
test/Model/CreateAlmanaxWebhookTest.php
Expand Down Expand Up @@ -180,6 +176,7 @@ test/Model/PutRSSWebhookTest.php
test/Model/PutTwitterWebhookTest.php
test/Model/RecipeEntryTest.php
test/Model/ResourceTest.php
test/Model/ResourceTypeTest.php
test/Model/RssWebhookTest.php
test/Model/SetEffectsEntryTest.php
test/Model/SetEffectsEntryTypeTest.php
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ Class | Method | HTTP request | Description
- [ConditionTreeLeaf](docs/Model/ConditionTreeLeaf.md)
- [ConditionTreeNode](docs/Model/ConditionTreeNode.md)
- [ConditionTreeRelation](docs/Model/ConditionTreeRelation.md)
- [Cosmetic](docs/Model/Cosmetic.md)
- [CosmeticType](docs/Model/CosmeticType.md)
- [CreateAlmanaxWebhook](docs/Model/CreateAlmanaxWebhook.md)
- [CreateAlmanaxWebhookDailySettings](docs/Model/CreateAlmanaxWebhookDailySettings.md)
- [CreateAlmanaxWebhookMentionsValueInner](docs/Model/CreateAlmanaxWebhookMentionsValueInner.md)
Expand Down Expand Up @@ -203,6 +201,7 @@ Class | Method | HTTP request | Description
- [PutTwitterWebhook](docs/Model/PutTwitterWebhook.md)
- [RecipeEntry](docs/Model/RecipeEntry.md)
- [Resource](docs/Model/Resource.md)
- [ResourceType](docs/Model/ResourceType.md)
- [RssWebhook](docs/Model/RssWebhook.md)
- [SetEffectsEntry](docs/Model/SetEffectsEntry.md)
- [SetEffectsEntryType](docs/Model/SetEffectsEntryType.md)
Expand Down Expand Up @@ -232,6 +231,6 @@ stelzo@steado.de

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

- API version: `0.9.3`
- API version: `0.9.4`
- Generator version: `7.10.0-SNAPSHOT`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
6 changes: 3 additions & 3 deletions docs/Api/CosmeticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ $filter_max_level = 5; // int | only results which level is equal or below this
$page_size = 5; // int | size of the results from the list. -1 disables pagination and gets all in one response.
$page_number = 1; // int | page number based on the current page[size]. So you could get page 1 with 8 entrys and page 2 would have entries 8 to 16.
$fields_item = ["recipe"]; // string[] | adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed.
$filter_type_enum = ["ceremonial-hat"]; // string[] | multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\".
$filter_type_enum = array('filter_type_enum_example'); // string[] | multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\".

try {
$result = $apiInstance->getCosmeticsList($language, $game, $sort_level, $filter_type_name, $filter_min_level, $filter_max_level, $page_size, $page_number, $fields_item, $filter_type_enum);
Expand Down Expand Up @@ -227,7 +227,7 @@ No authorization required
## `getCosmeticsSingle()`

```php
getCosmeticsSingle($language, $ankama_id, $game): \OpenAPI\Client\Model\Cosmetic
getCosmeticsSingle($language, $ankama_id, $game): \OpenAPI\Client\Model\Equipment
```

Single Cosmetics
Expand Down Expand Up @@ -269,7 +269,7 @@ try {

### Return type

[**\OpenAPI\Client\Model\Cosmetic**](../Model/Cosmetic.md)
[**\OpenAPI\Client\Model\Equipment**](../Model/Equipment.md)

### Authorization

Expand Down
19 changes: 0 additions & 19 deletions docs/Model/Cosmetic.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Model/Resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**ankama_id** | **int** | | [optional]
**name** | **string** | | [optional]
**description** | **string** | | [optional]
**type** | [**\OpenAPI\Client\Model\CosmeticType**](CosmeticType.md) | | [optional]
**type** | [**\OpenAPI\Client\Model\ResourceType**](ResourceType.md) | | [optional]
**level** | **int** | | [optional]
**pods** | **int** | | [optional]
**image_urls** | [**\OpenAPI\Client\Model\ImageUrls**](ImageUrls.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/CosmeticType.md → docs/Model/ResourceType.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # CosmeticType
# # ResourceType

## Properties

Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AlmanaxApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* # A project for you - the developer. The all-in-one toolbelt for your next Ankama related project. ## 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` - [PHP](https://github.com/dofusdude/dofusdude-php) - [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 🇩🇪. - 📨 **Discord Integration** Ankama related RSS and Almanax feeds to post to Discord servers with advanced features like filters or mentions. Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 2 Beta** from stable to bleeding edge by replacing /dofus2 with /dofus2beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_ including the dropped languages from the Dofus website _de_ and _it_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Complete** actual data from the game including items invisible to the encyclopedia like quest items. - 🖼️ **HD Images** rendering game assets to high-res images with up to 800x800 px. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 0.9.3
* The version of the OpenAPI document: 0.9.4
* Contact: stelzo@steado.de
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ConsumablesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* # A project for you - the developer. The all-in-one toolbelt for your next Ankama related project. ## 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` - [PHP](https://github.com/dofusdude/dofusdude-php) - [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 🇩🇪. - 📨 **Discord Integration** Ankama related RSS and Almanax feeds to post to Discord servers with advanced features like filters or mentions. Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 2 Beta** from stable to bleeding edge by replacing /dofus2 with /dofus2beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_ including the dropped languages from the Dofus website _de_ and _it_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Complete** actual data from the game including items invisible to the encyclopedia like quest items. - 🖼️ **HD Images** rendering game assets to high-res images with up to 800x800 px. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 0.9.3
* The version of the OpenAPI document: 0.9.4
* Contact: stelzo@steado.de
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0-SNAPSHOT
Expand Down
18 changes: 9 additions & 9 deletions lib/Api/CosmeticsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* # A project for you - the developer. The all-in-one toolbelt for your next Ankama related project. ## 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` - [PHP](https://github.com/dofusdude/dofusdude-php) - [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 🇩🇪. - 📨 **Discord Integration** Ankama related RSS and Almanax feeds to post to Discord servers with advanced features like filters or mentions. Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 2 Beta** from stable to bleeding edge by replacing /dofus2 with /dofus2beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_ including the dropped languages from the Dofus website _de_ and _it_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Complete** actual data from the game including items invisible to the encyclopedia like quest items. - 🖼️ **HD Images** rendering game assets to high-res images with up to 800x800 px. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 0.9.3
* The version of the OpenAPI document: 0.9.4
* Contact: stelzo@steado.de
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0-SNAPSHOT
Expand Down Expand Up @@ -1471,7 +1471,7 @@ public function getCosmeticsSearchRequest($language, $game, $query, $filter_type
*
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\Cosmetic
* @return \OpenAPI\Client\Model\Equipment
*/
public function getCosmeticsSingle($language, $ankama_id, $game, string $contentType = self::contentTypes['getCosmeticsSingle'][0])
{
Expand All @@ -1491,7 +1491,7 @@ public function getCosmeticsSingle($language, $ankama_id, $game, string $content
*
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\Cosmetic, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPI\Client\Model\Equipment, HTTP status code, HTTP response headers (array of strings)
*/
public function getCosmeticsSingleWithHttpInfo($language, $ankama_id, $game, string $contentType = self::contentTypes['getCosmeticsSingle'][0])
{
Expand Down Expand Up @@ -1522,11 +1522,11 @@ public function getCosmeticsSingleWithHttpInfo($language, $ankama_id, $game, str

switch($statusCode) {
case 200:
if ('\OpenAPI\Client\Model\Cosmetic' === '\SplFileObject') {
if ('\OpenAPI\Client\Model\Equipment' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\OpenAPI\Client\Model\Cosmetic' !== 'string') {
if ('\OpenAPI\Client\Model\Equipment' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -1544,7 +1544,7 @@ public function getCosmeticsSingleWithHttpInfo($language, $ankama_id, $game, str
}

return [
ObjectSerializer::deserialize($content, '\OpenAPI\Client\Model\Cosmetic', []),
ObjectSerializer::deserialize($content, '\OpenAPI\Client\Model\Equipment', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand All @@ -1563,7 +1563,7 @@ public function getCosmeticsSingleWithHttpInfo($language, $ankama_id, $game, str
);
}

$returnType = '\OpenAPI\Client\Model\Cosmetic';
$returnType = '\OpenAPI\Client\Model\Equipment';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -1596,7 +1596,7 @@ public function getCosmeticsSingleWithHttpInfo($language, $ankama_id, $game, str
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\OpenAPI\Client\Model\Cosmetic',
'\OpenAPI\Client\Model\Equipment',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down Expand Up @@ -1644,7 +1644,7 @@ function ($response) {
*/
public function getCosmeticsSingleAsyncWithHttpInfo($language, $ankama_id, $game, string $contentType = self::contentTypes['getCosmeticsSingle'][0])
{
$returnType = '\OpenAPI\Client\Model\Cosmetic';
$returnType = '\OpenAPI\Client\Model\Equipment';
$request = $this->getCosmeticsSingleRequest($language, $ankama_id, $game, $contentType);

return $this->client
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/EquipmentApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* # A project for you - the developer. The all-in-one toolbelt for your next Ankama related project. ## 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` - [PHP](https://github.com/dofusdude/dofusdude-php) - [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 🇩🇪. - 📨 **Discord Integration** Ankama related RSS and Almanax feeds to post to Discord servers with advanced features like filters or mentions. Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 2 Beta** from stable to bleeding edge by replacing /dofus2 with /dofus2beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_ including the dropped languages from the Dofus website _de_ and _it_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Complete** actual data from the game including items invisible to the encyclopedia like quest items. - 🖼️ **HD Images** rendering game assets to high-res images with up to 800x800 px. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 0.9.3
* The version of the OpenAPI document: 0.9.4
* Contact: stelzo@steado.de
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0-SNAPSHOT
Expand Down
Loading

0 comments on commit c208c55

Please sign in to comment.