diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6935482..8841191 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.10.0-SNAPSHOT +7.11.0-SNAPSHOT diff --git a/README.md b/README.md index b9912b3..519453c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## dofusdude-ts@0.9.4 +## dofusdude-ts@1.0.0-rc.2 This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install dofusdude-ts@0.9.4 --save +npm install dofusdude-ts@1.0.0-rc.2 --save ``` _unPublished (not recommended):_ diff --git a/api.ts b/api.ts index 45ce83b..6311aa5 100644 --- a/api.ts +++ b/api.ts @@ -2,9 +2,9 @@ /* eslint-disable */ /** * dofusdude - * # 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). + * # 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: 0.9.4 + * The version of the OpenAPI document: 1.0.0-rc.2 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,100 +26,100 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM /** * * @export - * @interface AlmanaxEntry + * @interface Almanax */ -export interface AlmanaxEntry { +export interface Almanax { /** * - * @type {AlmanaxEntryBonus} - * @memberof AlmanaxEntry + * @type {AlmanaxBonus} + * @memberof Almanax */ - 'bonus'?: AlmanaxEntryBonus; + 'bonus'?: AlmanaxBonus; /** * * @type {string} - * @memberof AlmanaxEntry + * @memberof Almanax */ 'date'?: string; /** * - * @type {AlmanaxEntryTribute} - * @memberof AlmanaxEntry + * @type {AlmanaxTribute} + * @memberof Almanax */ - 'tribute'?: AlmanaxEntryTribute; + 'tribute'?: AlmanaxTribute; /** * Amount of Kamas you get as reward for finishing this Almanax quest. * @type {number} - * @memberof AlmanaxEntry + * @memberof Almanax */ 'reward_kamas'?: number | null; } /** * * @export - * @interface AlmanaxEntryBonus + * @interface AlmanaxBonus */ -export interface AlmanaxEntryBonus { +export interface AlmanaxBonus { /** * * @type {string} - * @memberof AlmanaxEntryBonus + * @memberof AlmanaxBonus */ 'description'?: string; /** * * @type {GetMetaAlmanaxBonuses200ResponseInner} - * @memberof AlmanaxEntryBonus + * @memberof AlmanaxBonus */ 'type'?: GetMetaAlmanaxBonuses200ResponseInner; } /** * * @export - * @interface AlmanaxEntryTribute + * @interface AlmanaxTribute */ -export interface AlmanaxEntryTribute { +export interface AlmanaxTribute { /** * - * @type {AlmanaxEntryTributeItem} - * @memberof AlmanaxEntryTribute + * @type {AlmanaxTributeItem} + * @memberof AlmanaxTribute */ - 'item'?: AlmanaxEntryTributeItem; + 'item'?: AlmanaxTributeItem; /** * * @type {number} - * @memberof AlmanaxEntryTribute + * @memberof AlmanaxTribute */ 'quantity'?: number; } /** * * @export - * @interface AlmanaxEntryTributeItem + * @interface AlmanaxTributeItem */ -export interface AlmanaxEntryTributeItem { +export interface AlmanaxTributeItem { /** * * @type {number} - * @memberof AlmanaxEntryTributeItem + * @memberof AlmanaxTributeItem */ 'ankama_id'?: number; /** * - * @type {ImageUrls} - * @memberof AlmanaxEntryTributeItem + * @type {Images} + * @memberof AlmanaxTributeItem */ - 'image_urls'?: ImageUrls; + 'image_urls'?: Images; /** * * @type {string} - * @memberof AlmanaxEntryTributeItem + * @memberof AlmanaxTributeItem */ 'name'?: string; /** * * @type {string} - * @memberof AlmanaxEntryTributeItem + * @memberof AlmanaxTributeItem */ 'subtype'?: string; } @@ -142,13 +142,13 @@ export interface AlmanaxWebhook { */ 'daily_settings'?: AlmanaxWebhookDailySettings; /** - * Only post when these bonuses come up. From all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses. + * Only post when these bonuses come up. From all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses. * @type {Array} * @memberof AlmanaxWebhook */ 'bonus_whitelist'?: Array | null; /** - * Skip the day when these bonuses come up. From all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses + * Skip the day when these bonuses come up. From all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses * @type {Array} * @memberof AlmanaxWebhook */ @@ -244,77 +244,77 @@ export interface AlmanaxWebhookDailySettings { /** * * @export - * @interface ConditionEntry + * @interface Condition */ -export interface ConditionEntry { +export interface Condition { /** * * @type {string} - * @memberof ConditionEntry + * @memberof Condition */ 'operator'?: string; /** * * @type {number} - * @memberof ConditionEntry + * @memberof Condition */ 'int_value'?: number; /** * - * @type {ItemsListEntryTypedType} - * @memberof ConditionEntry + * @type {TranslatedId} + * @memberof Condition */ - 'element'?: ItemsListEntryTypedType; + 'element'?: TranslatedId; } /** * * @export - * @interface ConditionTreeLeaf + * @interface ConditionLeaf */ -export interface ConditionTreeLeaf { +export interface ConditionLeaf { /** * always \"true\" for the leaf of a tree * @type {boolean} - * @memberof ConditionTreeLeaf + * @memberof ConditionLeaf */ 'is_operand'?: boolean; /** * - * @type {ConditionEntry} - * @memberof ConditionTreeLeaf + * @type {Condition} + * @memberof ConditionLeaf */ - 'condition'?: ConditionEntry; + 'condition'?: Condition; } /** - * @type ConditionTreeNode + * @type ConditionNode * @export */ -export type ConditionTreeNode = ConditionTreeLeaf | ConditionTreeRelation; +export type ConditionNode = ConditionLeaf | ConditionRelation; /** * * @export - * @interface ConditionTreeRelation + * @interface ConditionRelation */ -export interface ConditionTreeRelation { +export interface ConditionRelation { /** * always \"false\" for relations * @type {boolean} - * @memberof ConditionTreeRelation + * @memberof ConditionRelation */ 'is_operand'?: boolean; /** * \"and\", \"or\" * @type {string} - * @memberof ConditionTreeRelation + * @memberof ConditionRelation */ 'relation'?: string; /** * - * @type {Array} - * @memberof ConditionTreeRelation + * @type {Array} + * @memberof ConditionRelation */ - 'children'?: Array; + 'children'?: Array; } /** * @@ -323,13 +323,13 @@ export interface ConditionTreeRelation { */ export interface CreateAlmanaxWebhook { /** - * from all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses + * from all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses * @type {Array} * @memberof CreateAlmanaxWebhook */ 'bonus_whitelist'?: Array | null; /** - * from all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses + * from all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses * @type {Array} * @memberof CreateAlmanaxWebhook */ @@ -555,46 +555,77 @@ export type CreateTwitterWebhookFormatEnum = typeof CreateTwitterWebhookFormatEn /** * * @export - * @interface EffectsEntry + * @interface Effect */ -export interface EffectsEntry { +export interface Effect { /** * minimum int value, can be a single if ignore_int_max and no ignore_int_min * @type {number} - * @memberof EffectsEntry + * @memberof Effect */ 'int_minimum'?: number; /** * maximum int value, if not ignore_int_max and not ignore_int_min, the effect has a range value * @type {number} - * @memberof EffectsEntry + * @memberof Effect */ 'int_maximum'?: number; /** * - * @type {SetEffectsEntryType} - * @memberof EffectsEntry + * @type {EffectType} + * @memberof Effect */ - 'type'?: SetEffectsEntryType; + 'type'?: EffectType; /** * ignore the int min field because the actual value is a string. For readability the templated field is the only important field in this case. * @type {boolean} - * @memberof EffectsEntry + * @memberof Effect */ 'ignore_int_min'?: boolean; /** * ignore the int max field, if ignore_int_min is true, int min is a single value * @type {boolean} - * @memberof EffectsEntry + * @memberof Effect */ 'ignore_int_max'?: boolean; /** * all fields from above encoded in a single string * @type {string} - * @memberof EffectsEntry + * @memberof Effect */ 'formatted'?: string; } +/** + * + * @export + * @interface EffectType + */ +export interface EffectType { + /** + * + * @type {number} + * @memberof EffectType + */ + 'id'?: number; + /** + * + * @type {string} + * @memberof EffectType + */ + 'name'?: string; + /** + * Affects target or source actively. + * @type {boolean} + * @memberof EffectType + */ + 'is_active'?: boolean; + /** + * true if a type is generated from the Api instead of Ankama. In that case, always prefer showing the templated string and omit everything else. The \"name\" field will have an english description of the meta type. An example for such effects are class sets effects. + * @type {boolean} + * @memberof EffectType + */ + 'is_meta'?: boolean; +} /** * * @export @@ -621,10 +652,10 @@ export interface Equipment { 'description'?: string; /** * - * @type {ItemsListEntryTypedType} + * @type {TranslatedId} * @memberof Equipment */ - 'type'?: ItemsListEntryTypedType; + 'type'?: TranslatedId; /** * * @type {boolean} @@ -645,41 +676,34 @@ export interface Equipment { 'pods'?: number; /** * - * @type {ImageUrls} - * @memberof Equipment - */ - 'image_urls'?: ImageUrls; - /** - * - * @type {Array} + * @type {Images} * @memberof Equipment */ - 'effects'?: Array | null; + 'image_urls'?: Images; /** * - * @type {Array} + * @type {Array} * @memberof Equipment - * @deprecated */ - 'conditions'?: Array | null; + 'effects'?: Array | null; /** * - * @type {ConditionTreeNode} + * @type {ConditionNode} * @memberof Equipment */ - 'condition_tree'?: ConditionTreeNode; + 'conditions'?: ConditionNode | null; /** * - * @type {Array} + * @type {Array} * @memberof Equipment */ - 'recipe'?: Array | null; + 'recipe'?: Array | null; /** * - * @type {ItemListEntryParentSet} + * @type {TranslatedId} * @memberof Equipment */ - 'parent_set'?: ItemListEntryParentSet | null; + 'parent_set'?: TranslatedId | null; } /** * @@ -707,10 +731,10 @@ export interface EquipmentSet { 'equipment_ids'?: Array; /** * - * @type {Array>} + * @type {{ [key: string]: Array; }} * @memberof EquipmentSet */ - 'effects'?: Array> | null; + 'effects'?: { [key: string]: Array; }; /** * * @type {number} @@ -727,71 +751,90 @@ export interface EquipmentSet { /** * * @export - * @interface GetGameSearch200ResponseInner + * @interface GameSearch */ -export interface GetGameSearch200ResponseInner { +export interface GameSearch { + /** + * + * @type {number} + * @memberof GameSearch + */ + 'ankama_id'?: number; /** - * Name of the hit. The query could still have matched with the description only. + * * @type {string} - * @memberof GetGameSearch200ResponseInner + * @memberof GameSearch */ 'name'?: string; /** - * Ankama ID for retrieving more details in the type specific endpoint. - * @type {number} - * @memberof GetGameSearch200ResponseInner + * + * @type {GameSearchType} + * @memberof GameSearch */ - 'ankama_id'?: number; + 'type'?: GameSearchType; /** - * Type classification - * @type {string} - * @memberof GetGameSearch200ResponseInner + * + * @type {GameSearchItem} + * @memberof GameSearch */ - 'type'?: string; + 'item_fields'?: GameSearchItem; } /** * * @export - * @interface GetMetaAlmanaxBonuses200ResponseInner + * @interface GameSearchItem */ -export interface GetMetaAlmanaxBonuses200ResponseInner { +export interface GameSearchItem { /** * - * @type {string} - * @memberof GetMetaAlmanaxBonuses200ResponseInner + * @type {GameSearchType} + * @memberof GameSearchItem */ - 'id'?: string; + 'type'?: GameSearchType; /** * - * @type {string} - * @memberof GetMetaAlmanaxBonuses200ResponseInner + * @type {number} + * @memberof GameSearchItem */ - 'name'?: string; + 'level'?: number | null; + /** + * + * @type {Images} + * @memberof GameSearchItem + */ + 'image_urls'?: Images; } /** * * @export - * @interface GetMetaVersion200Response + * @interface GameSearchType */ -export interface GetMetaVersion200Response { +export interface GameSearchType { /** * * @type {string} - * @memberof GetMetaVersion200Response + * @memberof GameSearchType */ - 'version'?: string; + 'name_id'?: string; +} +/** + * + * @export + * @interface GetMetaAlmanaxBonuses200ResponseInner + */ +export interface GetMetaAlmanaxBonuses200ResponseInner { /** * * @type {string} - * @memberof GetMetaVersion200Response + * @memberof GetMetaAlmanaxBonuses200ResponseInner */ - 'release'?: string; + 'id'?: string; /** * * @type {string} - * @memberof GetMetaVersion200Response + * @memberof GetMetaAlmanaxBonuses200ResponseInner */ - 'update_stamp'?: string; + 'name'?: string; } /** * @@ -809,305 +852,347 @@ export interface GetMetaWebhooksTwitter200Response { /** * All images except icon are rendered in the background which can take some time (up to hours if all data is completely generated from scratch). Because of this, they can be null if they are not yet rendered. * @export - * @interface ImageUrls + * @interface Images */ -export interface ImageUrls { +export interface Images { /** - * 60x60 px, always available + * 64x64 px, always available * @type {string} - * @memberof ImageUrls + * @memberof Images */ 'icon'?: string; /** - * 200x200 px + * around 2x the resolution of icon * @type {string} - * @memberof ImageUrls + * @memberof Images */ 'sd'?: string | null; /** - * 400x400 px + * around 2x the resolution of sd * @type {string} - * @memberof ImageUrls + * @memberof Images */ 'hq'?: string | null; /** - * 800x800 px + * around 2x the resolution of hd * @type {string} - * @memberof ImageUrls + * @memberof Images */ 'hd'?: string | null; } /** * * @export - * @interface ItemListEntry + * @interface ItemSubtype + */ +export interface ItemSubtype { + /** + * + * @type {number} + * @memberof ItemSubtype + */ + 'ankama_id'?: number; + /** + * unique + * @type {string} + * @memberof ItemSubtype + */ + 'name_id'?: string; +} +/** + * + * @export + * @interface ListEquipmentSet */ -export interface ItemListEntry { +export interface ListEquipmentSet { /** * * @type {number} - * @memberof ItemListEntry + * @memberof ListEquipmentSet */ 'ankama_id'?: number; /** * * @type {string} - * @memberof ItemListEntry + * @memberof ListEquipmentSet */ 'name'?: string; /** - * - * @type {ItemsListEntryTypedType} - * @memberof ItemListEntry + * amount + * @type {number} + * @memberof ListEquipmentSet */ - 'type'?: ItemsListEntryTypedType; + 'items'?: number; /** * * @type {number} - * @memberof ItemListEntry + * @memberof ListEquipmentSet */ 'level'?: number; /** * - * @type {ImageUrls} - * @memberof ItemListEntry + * @type {{ [key: string]: Array; }} + * @memberof ListEquipmentSet */ - 'image_urls'?: ImageUrls; + 'effects'?: { [key: string]: Array; }; /** * - * @type {Array} - * @memberof ItemListEntry + * @type {Array} + * @memberof ListEquipmentSet */ - 'recipe'?: Array | null; + 'equipment_ids'?: Array | null; /** * - * @type {string} - * @memberof ItemListEntry + * @type {boolean} + * @memberof ListEquipmentSet */ - 'description'?: string | null; + 'is_cosmetic'?: boolean; +} +/** + * + * @export + * @interface ListEquipmentSets + */ +export interface ListEquipmentSets { /** * - * @type {Array} - * @memberof ItemListEntry - * @deprecated + * @type {PagedLinks} + * @memberof ListEquipmentSets */ - 'conditions'?: Array | null; + '_links'?: PagedLinks; /** * - * @type {ConditionTreeNode} - * @memberof ItemListEntry + * @type {Array} + * @memberof ListEquipmentSets */ - 'condition_tree'?: ConditionTreeNode; + 'sets'?: Array; +} +/** + * + * @export + * @interface ListItem + */ +export interface ListItem { /** * - * @type {Array} - * @memberof ItemListEntry + * @type {number} + * @memberof ListItem */ - 'effects'?: Array | null; + 'ankama_id'?: number; /** * - * @type {boolean} - * @memberof ItemListEntry + * @type {string} + * @memberof ListItem */ - 'is_weapon'?: boolean | null; + 'name'?: string; + /** + * + * @type {TranslatedId} + * @memberof ListItem + */ + 'type'?: TranslatedId; /** * * @type {number} - * @memberof ItemListEntry + * @memberof ListItem */ - 'pods'?: number | null; + 'level'?: number; /** * - * @type {ItemListEntryParentSet} - * @memberof ItemListEntry + * @type {Images} + * @memberof ListItem */ - 'parent_set'?: ItemListEntryParentSet | null; + 'image_urls'?: Images; /** * - * @type {number} - * @memberof ItemListEntry + * @type {Array} + * @memberof ListItem */ - 'critical_hit_probability'?: number | null; + 'recipe'?: Array | null; /** * - * @type {number} - * @memberof ItemListEntry + * @type {string} + * @memberof ListItem */ - 'critical_hit_bonus'?: number | null; + 'description'?: string | null; /** * - * @type {boolean} - * @memberof ItemListEntry + * @type {ConditionNode} + * @memberof ListItem */ - 'is_two_handed'?: boolean | null; + 'conditions'?: ConditionNode | null; /** * - * @type {number} - * @memberof ItemListEntry + * @type {Array} + * @memberof ListItem */ - 'max_cast_per_turn'?: number | null; + 'effects'?: Array | null; + /** + * + * @type {boolean} + * @memberof ListItem + */ + 'is_weapon'?: boolean | null; /** * * @type {number} - * @memberof ItemListEntry + * @memberof ListItem */ - 'ap_cost'?: number | null; + 'pods'?: number | null; /** * - * @type {ItemListEntryRange} - * @memberof ItemListEntry + * @type {TranslatedId} + * @memberof ListItem */ - 'range'?: ItemListEntryRange | null; -} -/** - * - * @export - * @interface ItemListEntryParentSet - */ -export interface ItemListEntryParentSet { + 'parent_set'?: TranslatedId | null; /** * * @type {number} - * @memberof ItemListEntryParentSet + * @memberof ListItem */ - 'id'?: number; + 'critical_hit_probability'?: number | null; /** * - * @type {string} - * @memberof ItemListEntryParentSet + * @type {number} + * @memberof ListItem */ - 'name'?: string; -} -/** - * - * @export - * @interface ItemListEntryRange - */ -export interface ItemListEntryRange { + 'critical_hit_bonus'?: number | null; /** * * @type {number} - * @memberof ItemListEntryRange + * @memberof ListItem */ - 'min'?: number; + 'max_cast_per_turn'?: number | null; /** * * @type {number} - * @memberof ItemListEntryRange + * @memberof ListItem */ - 'max'?: number; + 'ap_cost'?: number | null; + /** + * + * @type {Range} + * @memberof ListItem + */ + 'range'?: Range; } /** * * @export - * @interface ItemsListEntryTyped + * @interface ListItemGeneral */ -export interface ItemsListEntryTyped { +export interface ListItemGeneral { /** * * @type {number} - * @memberof ItemsListEntryTyped + * @memberof ListItemGeneral */ 'ankama_id'?: number; /** * * @type {string} - * @memberof ItemsListEntryTyped + * @memberof ListItemGeneral */ 'name'?: string; /** * - * @type {ItemsListEntryTypedType} - * @memberof ItemsListEntryTyped + * @type {TranslatedId} + * @memberof ListItemGeneral */ - 'type'?: ItemsListEntryTypedType; + 'type'?: TranslatedId; /** - * The API item category. Can be used to build the request URL for this particular item. Always english. - * @type {string} - * @memberof ItemsListEntryTyped + * + * @type {ItemSubtype} + * @memberof ListItemGeneral */ - 'item_subtype'?: string; + 'item_subtype'?: ItemSubtype; /** * * @type {number} - * @memberof ItemsListEntryTyped + * @memberof ListItemGeneral */ 'level'?: number; /** * - * @type {ImageUrls} - * @memberof ItemsListEntryTyped + * @type {Images} + * @memberof ListItemGeneral */ - 'image_urls'?: ImageUrls; + 'image_urls'?: Images; } /** * * @export - * @interface ItemsListEntryTypedType + * @interface ListItems */ -export interface ItemsListEntryTypedType { +export interface ListItems { /** * - * @type {string} - * @memberof ItemsListEntryTypedType + * @type {PagedLinks} + * @memberof ListItems */ - 'name'?: string; + '_links'?: PagedLinks; /** * - * @type {number} - * @memberof ItemsListEntryTypedType + * @type {Array} + * @memberof ListItems */ - 'id'?: number; + 'items'?: Array; } /** * * @export - * @interface ItemsListPaged + * @interface ListMounts */ -export interface ItemsListPaged { +export interface ListMounts { /** * - * @type {LinksPaged} - * @memberof ItemsListPaged + * @type {PagedLinks} + * @memberof ListMounts */ - '_links'?: LinksPaged; + '_links'?: PagedLinks; /** * - * @type {Array} - * @memberof ItemsListPaged + * @type {Array} + * @memberof ListMounts */ - 'items'?: Array; + 'items'?: Array; } /** * * @export - * @interface LinksPaged + * @interface ModelError */ -export interface LinksPaged { +export interface ModelError { /** - * + * HTTP status code + * @type {number} + * @memberof ModelError + */ + 'status'?: number; + /** + * HTTP status as text * @type {string} - * @memberof LinksPaged + * @memberof ModelError */ - 'first'?: string | null; + 'error'?: string; /** - * + * API specific error identifier for switch-case handling * @type {string} - * @memberof LinksPaged + * @memberof ModelError */ - 'prev'?: string | null; + 'code'?: string; /** - * + * General, human-friendly error description * @type {string} - * @memberof LinksPaged + * @memberof ModelError */ - 'next'?: string | null; + 'message'?: string; /** - * + * Detailed, human-friendly problem description adopting specific inputs of the request * @type {string} - * @memberof LinksPaged + * @memberof ModelError */ - 'last'?: string | null; + 'details'?: string; } /** * @@ -1129,78 +1214,72 @@ export interface Mount { 'name'?: string; /** * - * @type {string} + * @type {MountFamily} * @memberof Mount */ - 'family_name'?: string; + 'family'?: MountFamily; /** * - * @type {ImageUrls} + * @type {Images} * @memberof Mount */ - 'image_urls'?: ImageUrls; + 'image_urls'?: Images; /** * - * @type {Array} + * @type {Array} * @memberof Mount */ - 'effects'?: Array | null; + 'effects'?: Array | null; } /** * * @export - * @interface MountListEntry + * @interface MountFamily */ -export interface MountListEntry { +export interface MountFamily { /** * * @type {number} - * @memberof MountListEntry + * @memberof MountFamily */ 'ankama_id'?: number; /** - * + * localized name * @type {string} - * @memberof MountListEntry + * @memberof MountFamily */ 'name'?: string; +} +/** + * + * @export + * @interface PagedLinks + */ +export interface PagedLinks { /** * * @type {string} - * @memberof MountListEntry + * @memberof PagedLinks */ - 'family_name'?: string; - /** - * - * @type {ImageUrls} - * @memberof MountListEntry - */ - 'image_urls'?: ImageUrls; + 'first'?: string | null; /** * - * @type {Array} - * @memberof MountListEntry + * @type {string} + * @memberof PagedLinks */ - 'effects'?: Array | null; -} -/** - * - * @export - * @interface MountsListPaged - */ -export interface MountsListPaged { + 'prev'?: string | null; /** * - * @type {LinksPaged} - * @memberof MountsListPaged + * @type {string} + * @memberof PagedLinks */ - '_links'?: LinksPaged; + 'next'?: string | null; /** * - * @type {Array} - * @memberof MountsListPaged + * @type {string} + * @memberof PagedLinks */ - 'items'?: Array; + 'last'?: string | null; } /** * @@ -1209,13 +1288,13 @@ export interface MountsListPaged { */ export interface PutAlmanaxWebhook { /** - * from all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses. Delete old entries with empty array []. Just null changes nothing. + * from all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses. Delete old entries with empty array []. Just null changes nothing. * @type {Array} * @memberof PutAlmanaxWebhook */ 'bonus_whitelist'?: Array | null; /** - * from all available bonuses (ids) from /dofus2/meta/{language}/almanax/bonuses. Delete old entries with empty array []. Just null changes nothing. + * from all available bonuses (ids) from /dofus3/meta/{language}/almanax/bonuses. Delete old entries with empty array []. Just null changes nothing. * @type {Array} * @memberof PutAlmanaxWebhook */ @@ -1342,25 +1421,44 @@ export interface PutTwitterWebhook { /** * * @export - * @interface RecipeEntry + * @interface Range + */ +export interface Range { + /** + * + * @type {number} + * @memberof Range + */ + 'min'?: number; + /** + * + * @type {number} + * @memberof Range + */ + 'max'?: number; +} +/** + * + * @export + * @interface Recipe */ -export interface RecipeEntry { +export interface Recipe { /** * * @type {number} - * @memberof RecipeEntry + * @memberof Recipe */ 'item_ankama_id'?: number; /** * * @type {string} - * @memberof RecipeEntry + * @memberof Recipe */ 'item_subtype'?: string; /** * * @type {number} - * @memberof RecipeEntry + * @memberof Recipe */ 'quantity'?: number; } @@ -1390,10 +1488,10 @@ export interface Resource { 'description'?: string; /** * - * @type {ResourceType} + * @type {TranslatedId} * @memberof Resource */ - 'type'?: ResourceType; + 'type'?: TranslatedId; /** * * @type {number} @@ -1408,54 +1506,28 @@ export interface Resource { 'pods'?: number; /** * - * @type {ImageUrls} + * @type {Images} * @memberof Resource */ - 'image_urls'?: ImageUrls; + 'image_urls'?: Images; /** * - * @type {Array} + * @type {Array} * @memberof Resource */ - 'effects'?: Array | null; + 'effects'?: Array | null; /** * - * @type {Array} + * @type {ConditionNode} * @memberof Resource - * @deprecated */ - 'conditions'?: Array | null; + 'conditions'?: ConditionNode | null; /** * - * @type {ConditionTreeNode} + * @type {Array} * @memberof Resource */ - 'condition_tree'?: ConditionTreeNode; - /** - * - * @type {Array} - * @memberof Resource - */ - 'recipe'?: Array | null; -} -/** - * - * @export - * @interface ResourceType - */ -export interface ResourceType { - /** - * - * @type {string} - * @memberof ResourceType - */ - 'name'?: string; - /** - * - * @type {number} - * @memberof ResourceType - */ - 'id'?: number; + 'recipe'?: Array | null; } /** * @@ -1528,150 +1600,21 @@ export type RssWebhookFormatEnum = typeof RssWebhookFormatEnum[keyof typeof RssW /** * * @export - * @interface SetEffectsEntry + * @interface TranslatedId */ -export interface SetEffectsEntry { +export interface TranslatedId { /** - * minimum int value, can be a single if ignore_int_max and no ignore_int_min + * unique * @type {number} - * @memberof SetEffectsEntry - */ - 'int_minimum'?: number; - /** - * maximum int value, if not ignore_int_max and not ignore_int_min, the effect has a range value - * @type {number} - * @memberof SetEffectsEntry - */ - 'int_maximum'?: number; - /** - * - * @type {SetEffectsEntryType} - * @memberof SetEffectsEntry - */ - 'type'?: SetEffectsEntryType; - /** - * ignore the int min field because the actual value is a string. For readability the templated field is the only important field in this case. - * @type {boolean} - * @memberof SetEffectsEntry - */ - 'ignore_int_min'?: boolean; - /** - * ignore the int max field, if ignore_int_min is true, int min is a single value - * @type {boolean} - * @memberof SetEffectsEntry - */ - 'ignore_int_max'?: boolean; - /** - * all fields from above encoded in a single string - * @type {string} - * @memberof SetEffectsEntry - */ - 'formatted'?: string; - /** - * how many items it needs to trigger this effect with the given set - * @type {number} - * @memberof SetEffectsEntry - */ - 'item_combination'?: number; -} -/** - * - * @export - * @interface SetEffectsEntryType - */ -export interface SetEffectsEntryType { - /** - * - * @type {string} - * @memberof SetEffectsEntryType - */ - 'name'?: string; - /** - * - * @type {number} - * @memberof SetEffectsEntryType + * @memberof TranslatedId */ 'id'?: number; /** - * true if a type is generated from the Api instead of Ankama. In that case, always prefer showing the templated string and omit everything else. The \"name\" field will have an english description of the meta type. An example for such effects are class sets effects. - * @type {boolean} - * @memberof SetEffectsEntryType - */ - 'is_meta'?: boolean; - /** - * Affects target or source actively. - * @type {boolean} - * @memberof SetEffectsEntryType - */ - 'is_active'?: boolean; -} -/** - * - * @export - * @interface SetListEntry - */ -export interface SetListEntry { - /** - * - * @type {number} - * @memberof SetListEntry - */ - 'ankama_id'?: number; - /** - * + * localized name * @type {string} - * @memberof SetListEntry + * @memberof TranslatedId */ 'name'?: string; - /** - * amount - * @type {number} - * @memberof SetListEntry - */ - 'items'?: number; - /** - * - * @type {number} - * @memberof SetListEntry - */ - 'level'?: number; - /** - * - * @type {Array>} - * @memberof SetListEntry - */ - 'effects'?: Array> | null; - /** - * - * @type {Array} - * @memberof SetListEntry - */ - 'equipment_ids'?: Array | null; - /** - * - * @type {boolean} - * @memberof SetListEntry - */ - 'is_cosmetic'?: boolean; -} -/** - * - * @export - * @interface SetsListPaged - */ -export interface SetsListPaged { - /** - * - * @type {LinksPaged} - * @memberof SetsListPaged - */ - '_links'?: LinksPaged; - /** - * - * @type {Array} - * @memberof SetsListPaged - */ - 'sets'?: Array; } /** * @@ -1741,6 +1684,31 @@ export const TwitterWebhookFormatEnum = { export type TwitterWebhookFormatEnum = typeof TwitterWebhookFormatEnum[keyof typeof TwitterWebhookFormatEnum]; +/** + * + * @export + * @interface Version + */ +export interface Version { + /** + * + * @type {string} + * @memberof Version + */ + 'version'?: string; + /** + * + * @type {string} + * @memberof Version + */ + 'release'?: string; + /** + * + * @type {string} + * @memberof Version + */ + 'update_stamp'?: string; +} /** * * @export @@ -1767,10 +1735,10 @@ export interface Weapon { 'description'?: string; /** * - * @type {ItemsListEntryTypedType} + * @type {TranslatedId} * @memberof Weapon */ - 'type'?: ItemsListEntryTypedType; + 'type'?: TranslatedId; /** * always true when the item is a weapon. Many fields are now available. Always check for this flag first when getting single equipment items. * @type {boolean} @@ -1791,29 +1759,22 @@ export interface Weapon { 'pods'?: number; /** * - * @type {ImageUrls} + * @type {Images} * @memberof Weapon */ - 'image_urls'?: ImageUrls; + 'image_urls'?: Images; /** * - * @type {Array} + * @type {Array} * @memberof Weapon */ - 'effects'?: Array | null; + 'effects'?: Array | null; /** * - * @type {Array} + * @type {ConditionNode} * @memberof Weapon - * @deprecated */ - 'conditions'?: Array | null; - /** - * - * @type {ConditionTreeNode} - * @memberof Weapon - */ - 'condition_tree'?: ConditionTreeNode; + 'conditions'?: ConditionNode | null; /** * * @type {number} @@ -1826,12 +1787,6 @@ export interface Weapon { * @memberof Weapon */ 'critical_hit_bonus'?: number; - /** - * - * @type {boolean} - * @memberof Weapon - */ - 'is_two_handed'?: boolean; /** * * @type {number} @@ -1846,41 +1801,22 @@ export interface Weapon { 'ap_cost'?: number; /** * - * @type {WeaponRange} + * @type {Range} * @memberof Weapon */ - 'range'?: WeaponRange; + 'range'?: Range; /** * - * @type {Array} + * @type {Array} * @memberof Weapon */ - 'recipe'?: Array | null; + 'recipe'?: Array | null; /** * - * @type {ItemListEntryParentSet} + * @type {TranslatedId} * @memberof Weapon */ - 'parent_set'?: ItemListEntryParentSet | null; -} -/** - * - * @export - * @interface WeaponRange - */ -export interface WeaponRange { - /** - * - * @type {number} - * @memberof WeaponRange - */ - 'min'?: number; - /** - * - * @type {number} - * @memberof WeaponRange - */ - 'max'?: number; + 'parent_set'?: TranslatedId | null; } /** @@ -1902,7 +1838,7 @@ export const AlmanaxApiAxiosParamCreator = function (configuration?: Configurati assertParamExists('getAlmanaxDate', 'language', language) // verify required parameter 'date' is not null or undefined assertParamExists('getAlmanaxDate', 'date', date) - const localVarPath = `/dofus2/{language}/almanax/{date}` + const localVarPath = `/dofus3/{language}/almanax/{date}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"date"}}`, encodeURIComponent(String(date))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -1942,7 +1878,7 @@ export const AlmanaxApiAxiosParamCreator = function (configuration?: Configurati getAlmanaxRange: async (language: GetAlmanaxRangeLanguageEnum, filterBonusType?: string, rangeFrom?: string, rangeTo?: string, rangeSize?: number, timezone?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAlmanaxRange', 'language', language) - const localVarPath = `/dofus2/{language}/almanax` + const localVarPath = `/dofus3/{language}/almanax` .replace(`{${"language"}}`, encodeURIComponent(String(language))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2008,7 +1944,7 @@ export const AlmanaxApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAlmanaxDate(language: GetAlmanaxDateLanguageEnum, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAlmanaxDate(language: GetAlmanaxDateLanguageEnum, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAlmanaxDate(language, date, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AlmanaxApi.getAlmanaxDate']?.[localVarOperationServerIndex]?.url; @@ -2026,7 +1962,7 @@ export const AlmanaxApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAlmanaxRange(language: GetAlmanaxRangeLanguageEnum, filterBonusType?: string, rangeFrom?: string, rangeTo?: string, rangeSize?: number, timezone?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getAlmanaxRange(language: GetAlmanaxRangeLanguageEnum, filterBonusType?: string, rangeFrom?: string, rangeTo?: string, rangeSize?: number, timezone?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAlmanaxRange(language, filterBonusType, rangeFrom, rangeTo, rangeSize, timezone, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AlmanaxApi.getAlmanaxRange']?.[localVarOperationServerIndex]?.url; @@ -2050,7 +1986,7 @@ export const AlmanaxApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAlmanaxDate(language: GetAlmanaxDateLanguageEnum, date: string, options?: RawAxiosRequestConfig): AxiosPromise { + getAlmanaxDate(language: GetAlmanaxDateLanguageEnum, date: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAlmanaxDate(language, date, options).then((request) => request(axios, basePath)); }, /** @@ -2065,7 +2001,7 @@ export const AlmanaxApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAlmanaxRange(language: GetAlmanaxRangeLanguageEnum, filterBonusType?: string, rangeFrom?: string, rangeTo?: string, rangeSize?: number, timezone?: string, options?: RawAxiosRequestConfig): AxiosPromise> { + getAlmanaxRange(language: GetAlmanaxRangeLanguageEnum, filterBonusType?: string, rangeFrom?: string, rangeTo?: string, rangeSize?: number, timezone?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAlmanaxRange(language, filterBonusType, rangeFrom, rangeTo, rangeSize, timezone, options).then((request) => request(axios, basePath)); }, }; @@ -2143,22 +2079,21 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu * Retrieve all consumable items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Consumables * @param {GetAllItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetAllItemsConsumablesListGameEnum} game + * @param {GetAllItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsConsumablesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsConsumablesList: async (language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getAllItemsConsumablesList: async (language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllItemsConsumablesList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllItemsConsumablesList', 'game', game) - const localVarPath = `/{game}/{language}/items/consumables/all` + const localVarPath = `/{game}/v1/{language}/items/consumables/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2173,11 +2108,7 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu const localVarQueryParameter = {} as any; if (sortLevel !== undefined) { - localVarQueryParameter['sort[level]'] = sortLevel; - } - - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; + localVarQueryParameter['sort[level]'] = sortLevel; } if (filterMinLevel !== undefined) { @@ -2188,16 +2119,15 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['filter[max_level]'] = filterMaxLevel; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } + + if (acceptEncoding != null) { localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2211,24 +2141,23 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu * Retrieve a list of consumable items. * @summary List Consumables * @param {GetItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetItemsConsumablesListGameEnum} game + * @param {GetItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsConsumablesList: async (language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsConsumablesList: async (language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsConsumablesList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsConsumablesList', 'game', game) - const localVarPath = `/{game}/{language}/items/consumables` + const localVarPath = `/{game}/v1/{language}/items/consumables` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2246,10 +2175,6 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -2270,8 +2195,8 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -2289,24 +2214,23 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu * Search in all names and descriptions of consumable items with a query. * @summary Search Consumables * @param {GetItemsConsumablesSearchLanguageEnum} language a valid language code - * @param {GetItemsConsumablesSearchGameEnum} game + * @param {GetItemsConsumablesSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsConsumablesSearch: async (language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsConsumablesSearch: async (language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsConsumablesSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsConsumablesSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getItemsConsumablesSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/consumables/search` + const localVarPath = `/{game}/v1/{language}/items/consumables/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2324,10 +2248,6 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['query'] = query; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -2340,8 +2260,8 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['limit'] = limit; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -2360,7 +2280,7 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu * @summary Single Consumables * @param {GetItemsConsumablesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsConsumablesSingleGameEnum} game + * @param {GetItemsConsumablesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2371,7 +2291,7 @@ export const ConsumablesApiAxiosParamCreator = function (configuration?: Configu assertParamExists('getItemsConsumablesSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsConsumablesSingle', 'game', game) - const localVarPath = `/{game}/{language}/items/consumables/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/items/consumables/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -2411,18 +2331,17 @@ export const ConsumablesApiFp = function(configuration?: Configuration) { * Retrieve all consumable items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Consumables * @param {GetAllItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetAllItemsConsumablesListGameEnum} game + * @param {GetAllItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsConsumablesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options); + async getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConsumablesApi.getAllItemsConsumablesList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2431,20 +2350,19 @@ export const ConsumablesApiFp = function(configuration?: Configuration) { * Retrieve a list of consumable items. * @summary List Consumables * @param {GetItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetItemsConsumablesListGameEnum} game + * @param {GetItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options); + async getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConsumablesApi.getItemsConsumablesList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2453,18 +2371,17 @@ export const ConsumablesApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of consumable items with a query. * @summary Search Consumables * @param {GetItemsConsumablesSearchLanguageEnum} language a valid language code - * @param {GetItemsConsumablesSearchGameEnum} game + * @param {GetItemsConsumablesSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsConsumablesSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); + async getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsConsumablesSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ConsumablesApi.getItemsConsumablesSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2474,7 +2391,7 @@ export const ConsumablesApiFp = function(configuration?: Configuration) { * @summary Single Consumables * @param {GetItemsConsumablesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsConsumablesSingleGameEnum} game + * @param {GetItemsConsumablesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2498,61 +2415,58 @@ export const ConsumablesApiFactory = function (configuration?: Configuration, ba * Retrieve all consumable items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Consumables * @param {GetAllItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetAllItemsConsumablesListGameEnum} game + * @param {GetAllItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsConsumablesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(axios, basePath)); + getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of consumable items. * @summary List Consumables * @param {GetItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetItemsConsumablesListGameEnum} game + * @param {GetItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of consumable items with a query. * @summary Search Consumables * @param {GetItemsConsumablesSearchLanguageEnum} language a valid language code - * @param {GetItemsConsumablesSearchGameEnum} game + * @param {GetItemsConsumablesSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getItemsConsumablesSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getItemsConsumablesSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a specific consumable item with id. * @summary Single Consumables * @param {GetItemsConsumablesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsConsumablesSingleGameEnum} game + * @param {GetItemsConsumablesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2573,59 +2487,56 @@ export class ConsumablesApi extends BaseAPI { * Retrieve all consumable items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Consumables * @param {GetAllItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetAllItemsConsumablesListGameEnum} game + * @param {GetAllItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsConsumablesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConsumablesApi */ - public getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ConsumablesApiFp(this.configuration).getAllItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getAllItemsConsumablesList(language: GetAllItemsConsumablesListLanguageEnum, game: GetAllItemsConsumablesListGameEnum, sortLevel?: GetAllItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsConsumablesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ConsumablesApiFp(this.configuration).getAllItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of consumable items. * @summary List Consumables * @param {GetItemsConsumablesListLanguageEnum} language a valid language code - * @param {GetItemsConsumablesListGameEnum} game + * @param {GetItemsConsumablesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsConsumablesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConsumablesApi */ - public getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ConsumablesApiFp(this.configuration).getItemsConsumablesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsConsumablesList(language: GetItemsConsumablesListLanguageEnum, game: GetItemsConsumablesListGameEnum, sortLevel?: GetItemsConsumablesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ConsumablesApiFp(this.configuration).getItemsConsumablesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of consumable items with a query. * @summary Search Consumables * @param {GetItemsConsumablesSearchLanguageEnum} language a valid language code - * @param {GetItemsConsumablesSearchGameEnum} game + * @param {GetItemsConsumablesSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConsumablesApi */ - public getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ConsumablesApiFp(this.configuration).getItemsConsumablesSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsConsumablesSearch(language: GetItemsConsumablesSearchLanguageEnum, game: GetItemsConsumablesSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ConsumablesApiFp(this.configuration).getItemsConsumablesSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2633,7 +2544,7 @@ export class ConsumablesApi extends BaseAPI { * @summary Single Consumables * @param {GetItemsConsumablesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsConsumablesSingleGameEnum} game + * @param {GetItemsConsumablesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ConsumablesApi @@ -2659,8 +2570,8 @@ export type GetAllItemsConsumablesListLanguageEnum = typeof GetAllItemsConsumabl * @export */ export const GetAllItemsConsumablesListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllItemsConsumablesListGameEnum = typeof GetAllItemsConsumablesListGameEnum[keyof typeof GetAllItemsConsumablesListGameEnum]; /** @@ -2694,8 +2605,8 @@ export type GetItemsConsumablesListLanguageEnum = typeof GetItemsConsumablesList * @export */ export const GetItemsConsumablesListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsConsumablesListGameEnum = typeof GetItemsConsumablesListGameEnum[keyof typeof GetItemsConsumablesListGameEnum]; /** @@ -2732,8 +2643,8 @@ export type GetItemsConsumablesSearchLanguageEnum = typeof GetItemsConsumablesSe * @export */ export const GetItemsConsumablesSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsConsumablesSearchGameEnum = typeof GetItemsConsumablesSearchGameEnum[keyof typeof GetItemsConsumablesSearchGameEnum]; /** @@ -2752,8 +2663,8 @@ export type GetItemsConsumablesSingleLanguageEnum = typeof GetItemsConsumablesSi * @export */ export const GetItemsConsumablesSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsConsumablesSingleGameEnum = typeof GetItemsConsumablesSingleGameEnum[keyof typeof GetItemsConsumablesSingleGameEnum]; @@ -2768,22 +2679,21 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura * Retrieve all cosmetic items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Cosmetics * @param {GetAllCosmeticsListLanguageEnum} language a valid language code - * @param {GetAllCosmeticsListGameEnum} game + * @param {GetAllCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetAllCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllCosmeticsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllCosmeticsList: async (language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getAllCosmeticsList: async (language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllCosmeticsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllCosmeticsList', 'game', game) - const localVarPath = `/{game}/{language}/items/cosmetics/all` + const localVarPath = `/{game}/v1/{language}/items/cosmetics/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2801,10 +2711,6 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -2813,16 +2719,15 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['filter[max_level]'] = filterMaxLevel; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } + + if (acceptEncoding != null) { localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2836,24 +2741,23 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura * Retrieve a list of cosmetic items. * @summary List Cosmetics * @param {GetCosmeticsListLanguageEnum} language a valid language code - * @param {GetCosmeticsListGameEnum} game + * @param {GetCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCosmeticsList: async (language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getCosmeticsList: async (language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getCosmeticsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getCosmeticsList', 'game', game) - const localVarPath = `/{game}/{language}/items/cosmetics` + const localVarPath = `/{game}/v1/{language}/items/cosmetics` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2871,10 +2775,6 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -2895,8 +2795,8 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -2914,24 +2814,23 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura * Search in all names and descriptions of cosmetic items with a query. * @summary Search Cosmetics * @param {GetCosmeticsSearchLanguageEnum} language a valid language code - * @param {GetCosmeticsSearchGameEnum} game + * @param {GetCosmeticsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCosmeticsSearch: async (language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getCosmeticsSearch: async (language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getCosmeticsSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getCosmeticsSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getCosmeticsSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/cosmetics/search` + const localVarPath = `/{game}/v1/{language}/items/cosmetics/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -2949,10 +2848,6 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['query'] = query; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -2965,8 +2860,8 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['limit'] = limit; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -2985,7 +2880,7 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura * @summary Single Cosmetics * @param {GetCosmeticsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetCosmeticsSingleGameEnum} game + * @param {GetCosmeticsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2996,7 +2891,7 @@ export const CosmeticsApiAxiosParamCreator = function (configuration?: Configura assertParamExists('getCosmeticsSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getCosmeticsSingle', 'game', game) - const localVarPath = `/{game}/{language}/items/cosmetics/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/items/cosmetics/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -3036,18 +2931,17 @@ export const CosmeticsApiFp = function(configuration?: Configuration) { * Retrieve all cosmetic items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Cosmetics * @param {GetAllCosmeticsListLanguageEnum} language a valid language code - * @param {GetAllCosmeticsListGameEnum} game + * @param {GetAllCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetAllCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllCosmeticsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options); + async getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CosmeticsApi.getAllCosmeticsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3056,20 +2950,19 @@ export const CosmeticsApiFp = function(configuration?: Configuration) { * Retrieve a list of cosmetic items. * @summary List Cosmetics * @param {GetCosmeticsListLanguageEnum} language a valid language code - * @param {GetCosmeticsListGameEnum} game + * @param {GetCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options); + async getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CosmeticsApi.getCosmeticsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3078,18 +2971,17 @@ export const CosmeticsApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of cosmetic items with a query. * @summary Search Cosmetics * @param {GetCosmeticsSearchLanguageEnum} language a valid language code - * @param {GetCosmeticsSearchGameEnum} game + * @param {GetCosmeticsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCosmeticsSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); + async getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCosmeticsSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CosmeticsApi.getCosmeticsSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3099,7 +2991,7 @@ export const CosmeticsApiFp = function(configuration?: Configuration) { * @summary Single Cosmetics * @param {GetCosmeticsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetCosmeticsSingleGameEnum} game + * @param {GetCosmeticsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3123,61 +3015,58 @@ export const CosmeticsApiFactory = function (configuration?: Configuration, base * Retrieve all cosmetic items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Cosmetics * @param {GetAllCosmeticsListLanguageEnum} language a valid language code - * @param {GetAllCosmeticsListGameEnum} game + * @param {GetAllCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetAllCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllCosmeticsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(axios, basePath)); + getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of cosmetic items. * @summary List Cosmetics * @param {GetCosmeticsListLanguageEnum} language a valid language code - * @param {GetCosmeticsListGameEnum} game + * @param {GetCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of cosmetic items with a query. * @summary Search Cosmetics * @param {GetCosmeticsSearchLanguageEnum} language a valid language code - * @param {GetCosmeticsSearchGameEnum} game + * @param {GetCosmeticsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getCosmeticsSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); + getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getCosmeticsSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a specific cosmetic item with id. * @summary Single Cosmetics * @param {GetCosmeticsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetCosmeticsSingleGameEnum} game + * @param {GetCosmeticsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3198,59 +3087,56 @@ export class CosmeticsApi extends BaseAPI { * Retrieve all cosmetic items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Cosmetics * @param {GetAllCosmeticsListLanguageEnum} language a valid language code - * @param {GetAllCosmeticsListGameEnum} game + * @param {GetAllCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetAllCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllCosmeticsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CosmeticsApi */ - public getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return CosmeticsApiFp(this.configuration).getAllCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getAllCosmeticsList(language: GetAllCosmeticsListLanguageEnum, game: GetAllCosmeticsListGameEnum, sortLevel?: GetAllCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllCosmeticsListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return CosmeticsApiFp(this.configuration).getAllCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of cosmetic items. * @summary List Cosmetics * @param {GetCosmeticsListLanguageEnum} language a valid language code - * @param {GetCosmeticsListGameEnum} game + * @param {GetCosmeticsListGameEnum} game dofus3 | dofus3beta * @param {GetCosmeticsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CosmeticsApi */ - public getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return CosmeticsApiFp(this.configuration).getCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getCosmeticsList(language: GetCosmeticsListLanguageEnum, game: GetCosmeticsListGameEnum, sortLevel?: GetCosmeticsListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return CosmeticsApiFp(this.configuration).getCosmeticsList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of cosmetic items with a query. * @summary Search Cosmetics * @param {GetCosmeticsSearchLanguageEnum} language a valid language code - * @param {GetCosmeticsSearchGameEnum} game + * @param {GetCosmeticsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CosmeticsApi */ - public getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return CosmeticsApiFp(this.configuration).getCosmeticsSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getCosmeticsSearch(language: GetCosmeticsSearchLanguageEnum, game: GetCosmeticsSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return CosmeticsApiFp(this.configuration).getCosmeticsSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -3258,7 +3144,7 @@ export class CosmeticsApi extends BaseAPI { * @summary Single Cosmetics * @param {GetCosmeticsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetCosmeticsSingleGameEnum} game + * @param {GetCosmeticsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CosmeticsApi @@ -3284,8 +3170,8 @@ export type GetAllCosmeticsListLanguageEnum = typeof GetAllCosmeticsListLanguage * @export */ export const GetAllCosmeticsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllCosmeticsListGameEnum = typeof GetAllCosmeticsListGameEnum[keyof typeof GetAllCosmeticsListGameEnum]; /** @@ -3319,8 +3205,8 @@ export type GetCosmeticsListLanguageEnum = typeof GetCosmeticsListLanguageEnum[k * @export */ export const GetCosmeticsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetCosmeticsListGameEnum = typeof GetCosmeticsListGameEnum[keyof typeof GetCosmeticsListGameEnum]; /** @@ -3344,7 +3230,6 @@ export const GetCosmeticsListFieldsItemEnum = { ParentSet: 'parent_set', CriticalHitProbability: 'critical_hit_probability', CriticalHitBonus: 'critical_hit_bonus', - IsTwoHanded: 'is_two_handed', MaxCastPerTurn: 'max_cast_per_turn', ApCost: 'ap_cost', Range: 'range' @@ -3366,8 +3251,8 @@ export type GetCosmeticsSearchLanguageEnum = typeof GetCosmeticsSearchLanguageEn * @export */ export const GetCosmeticsSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetCosmeticsSearchGameEnum = typeof GetCosmeticsSearchGameEnum[keyof typeof GetCosmeticsSearchGameEnum]; /** @@ -3386,8 +3271,8 @@ export type GetCosmeticsSingleLanguageEnum = typeof GetCosmeticsSingleLanguageEn * @export */ export const GetCosmeticsSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetCosmeticsSingleGameEnum = typeof GetCosmeticsSingleGameEnum[keyof typeof GetCosmeticsSingleGameEnum]; @@ -3402,22 +3287,21 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura * Retrieve all equipment items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Equipment * @param {GetAllItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetAllItemsEquipmentListGameEnum} game + * @param {GetAllItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsEquipmentListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsEquipmentList: async (language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getAllItemsEquipmentList: async (language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllItemsEquipmentList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllItemsEquipmentList', 'game', game) - const localVarPath = `/{game}/{language}/items/equipment/all` + const localVarPath = `/{game}/v1/{language}/items/equipment/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -3435,10 +3319,6 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -3447,16 +3327,15 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['filter[max_level]'] = filterMaxLevel; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } + + if (acceptEncoding != null) { localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3470,24 +3349,23 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura * Retrieve a list of equipment items. * @summary List Equipment * @param {GetItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetItemsEquipmentListGameEnum} game + * @param {GetItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsEquipmentList: async (language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsEquipmentList: async (language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsEquipmentList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsEquipmentList', 'game', game) - const localVarPath = `/{game}/{language}/items/equipment` + const localVarPath = `/{game}/v1/{language}/items/equipment` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -3505,10 +3383,6 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -3529,8 +3403,8 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -3548,24 +3422,23 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura * Search in all names and descriptions of equipment items with a query. * @summary Search Equipment * @param {GetItemsEquipmentSearchLanguageEnum} language a valid language code - * @param {GetItemsEquipmentSearchGameEnum} game + * @param {GetItemsEquipmentSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsEquipmentSearch: async (language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsEquipmentSearch: async (language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsEquipmentSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsEquipmentSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getItemsEquipmentSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/equipment/search` + const localVarPath = `/{game}/v1/{language}/items/equipment/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -3583,10 +3456,6 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['query'] = query; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -3599,8 +3468,8 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['limit'] = limit; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -3619,7 +3488,7 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura * @summary Single Equipment * @param {GetItemsEquipmentSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsEquipmentSingleGameEnum} game + * @param {GetItemsEquipmentSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3630,7 +3499,7 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura assertParamExists('getItemsEquipmentSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsEquipmentSingle', 'game', game) - const localVarPath = `/{game}/{language}/items/equipment/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/items/equipment/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -3670,18 +3539,17 @@ export const EquipmentApiFp = function(configuration?: Configuration) { * Retrieve all equipment items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Equipment * @param {GetAllItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetAllItemsEquipmentListGameEnum} game + * @param {GetAllItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsEquipmentListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options); + async getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['EquipmentApi.getAllItemsEquipmentList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3690,20 +3558,19 @@ export const EquipmentApiFp = function(configuration?: Configuration) { * Retrieve a list of equipment items. * @summary List Equipment * @param {GetItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetItemsEquipmentListGameEnum} game + * @param {GetItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options); + async getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['EquipmentApi.getItemsEquipmentList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3712,18 +3579,17 @@ export const EquipmentApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of equipment items with a query. * @summary Search Equipment * @param {GetItemsEquipmentSearchLanguageEnum} language a valid language code - * @param {GetItemsEquipmentSearchGameEnum} game + * @param {GetItemsEquipmentSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsEquipmentSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); + async getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsEquipmentSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['EquipmentApi.getItemsEquipmentSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3733,7 +3599,7 @@ export const EquipmentApiFp = function(configuration?: Configuration) { * @summary Single Equipment * @param {GetItemsEquipmentSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsEquipmentSingleGameEnum} game + * @param {GetItemsEquipmentSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3757,61 +3623,58 @@ export const EquipmentApiFactory = function (configuration?: Configuration, base * Retrieve all equipment items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Equipment * @param {GetAllItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetAllItemsEquipmentListGameEnum} game + * @param {GetAllItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsEquipmentListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(axios, basePath)); + getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of equipment items. * @summary List Equipment * @param {GetItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetItemsEquipmentListGameEnum} game + * @param {GetItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of equipment items with a query. * @summary Search Equipment * @param {GetItemsEquipmentSearchLanguageEnum} language a valid language code - * @param {GetItemsEquipmentSearchGameEnum} game + * @param {GetItemsEquipmentSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getItemsEquipmentSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getItemsEquipmentSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a specific equipment item with id. * @summary Single Equipment * @param {GetItemsEquipmentSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsEquipmentSingleGameEnum} game + * @param {GetItemsEquipmentSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3832,59 +3695,56 @@ export class EquipmentApi extends BaseAPI { * Retrieve all equipment items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Equipment * @param {GetAllItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetAllItemsEquipmentListGameEnum} game + * @param {GetAllItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsEquipmentListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EquipmentApi */ - public getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return EquipmentApiFp(this.configuration).getAllItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getAllItemsEquipmentList(language: GetAllItemsEquipmentListLanguageEnum, game: GetAllItemsEquipmentListGameEnum, sortLevel?: GetAllItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsEquipmentListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return EquipmentApiFp(this.configuration).getAllItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of equipment items. * @summary List Equipment * @param {GetItemsEquipmentListLanguageEnum} language a valid language code - * @param {GetItemsEquipmentListGameEnum} game + * @param {GetItemsEquipmentListGameEnum} game dofus3 | dofus3beta * @param {GetItemsEquipmentListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EquipmentApi */ - public getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return EquipmentApiFp(this.configuration).getItemsEquipmentList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsEquipmentList(language: GetItemsEquipmentListLanguageEnum, game: GetItemsEquipmentListGameEnum, sortLevel?: GetItemsEquipmentListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return EquipmentApiFp(this.configuration).getItemsEquipmentList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of equipment items with a query. * @summary Search Equipment * @param {GetItemsEquipmentSearchLanguageEnum} language a valid language code - * @param {GetItemsEquipmentSearchGameEnum} game + * @param {GetItemsEquipmentSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EquipmentApi */ - public getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return EquipmentApiFp(this.configuration).getItemsEquipmentSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsEquipmentSearch(language: GetItemsEquipmentSearchLanguageEnum, game: GetItemsEquipmentSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return EquipmentApiFp(this.configuration).getItemsEquipmentSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -3892,7 +3752,7 @@ export class EquipmentApi extends BaseAPI { * @summary Single Equipment * @param {GetItemsEquipmentSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsEquipmentSingleGameEnum} game + * @param {GetItemsEquipmentSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EquipmentApi @@ -3918,8 +3778,8 @@ export type GetAllItemsEquipmentListLanguageEnum = typeof GetAllItemsEquipmentLi * @export */ export const GetAllItemsEquipmentListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllItemsEquipmentListGameEnum = typeof GetAllItemsEquipmentListGameEnum[keyof typeof GetAllItemsEquipmentListGameEnum]; /** @@ -3953,8 +3813,8 @@ export type GetItemsEquipmentListLanguageEnum = typeof GetItemsEquipmentListLang * @export */ export const GetItemsEquipmentListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsEquipmentListGameEnum = typeof GetItemsEquipmentListGameEnum[keyof typeof GetItemsEquipmentListGameEnum]; /** @@ -3978,7 +3838,6 @@ export const GetItemsEquipmentListFieldsItemEnum = { ParentSet: 'parent_set', CriticalHitProbability: 'critical_hit_probability', CriticalHitBonus: 'critical_hit_bonus', - IsTwoHanded: 'is_two_handed', MaxCastPerTurn: 'max_cast_per_turn', ApCost: 'ap_cost', Range: 'range' @@ -4000,8 +3859,8 @@ export type GetItemsEquipmentSearchLanguageEnum = typeof GetItemsEquipmentSearch * @export */ export const GetItemsEquipmentSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsEquipmentSearchGameEnum = typeof GetItemsEquipmentSearchGameEnum[keyof typeof GetItemsEquipmentSearchGameEnum]; /** @@ -4020,8 +3879,8 @@ export type GetItemsEquipmentSingleLanguageEnum = typeof GetItemsEquipmentSingle * @export */ export const GetItemsEquipmentSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsEquipmentSingleGameEnum = typeof GetItemsEquipmentSingleGameEnum[keyof typeof GetItemsEquipmentSingleGameEnum]; @@ -4033,26 +3892,26 @@ export type GetItemsEquipmentSingleGameEnum = typeof GetItemsEquipmentSingleGame export const GameApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus2/meta/search/types. + * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus3/meta/search/types. * @summary Game Search * @param {GetGameSearchLanguageEnum} language a valid language code - * @param {GetGameSearchGameEnum} game + * @param {GetGameSearchGameEnum} game dofus3 | dofus3beta * @param {string} query search query - * @param {Set} [filterType] only results with all specific type + * @param {Set} [filterSearchIndex] only results with all specific type * @param {number} [limit] maximum number of returned results * @param {Set} [fieldsItem] adds fields from the item search to the list entries if the hit is a item. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getGameSearch: async (language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterType?: Set, limit?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getGameSearch: async (language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterSearchIndex?: Set, limit?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getGameSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getGameSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getGameSearch', 'query', query) - const localVarPath = `/{game}/{language}/search` + const localVarPath = `/{game}/v1/{language}/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -4070,8 +3929,8 @@ export const GameApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['query'] = query; } - if (filterType) { - localVarQueryParameter['filter[type]'] = Array.from(filterType).join(COLLECTION_FORMATS.csv); + if (filterSearchIndex) { + localVarQueryParameter['filter[search_index]'] = Array.from(filterSearchIndex).join(COLLECTION_FORMATS.csv); } if (limit !== undefined) { @@ -4082,8 +3941,8 @@ export const GameApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -4101,24 +3960,23 @@ export const GameApiAxiosParamCreator = function (configuration?: Configuration) * Search in all names and descriptions of Dofus items (including all subtypes) with a query. * @summary Search All Items * @param {GetItemsAllSearchLanguageEnum} language a valid language code - * @param {GetItemsAllSearchGameEnum} game + * @param {GetItemsAllSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name across all item_subtypes * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsAllSearch: async (language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsAllSearch: async (language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsAllSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsAllSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getItemsAllSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/search` + const localVarPath = `/{game}/v1/{language}/items/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -4136,10 +3994,6 @@ export const GameApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['query'] = query; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -4152,8 +4006,8 @@ export const GameApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['limit'] = limit; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -4178,20 +4032,20 @@ export const GameApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = GameApiAxiosParamCreator(configuration) return { /** - * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus2/meta/search/types. + * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus3/meta/search/types. * @summary Game Search * @param {GetGameSearchLanguageEnum} language a valid language code - * @param {GetGameSearchGameEnum} game + * @param {GetGameSearchGameEnum} game dofus3 | dofus3beta * @param {string} query search query - * @param {Set} [filterType] only results with all specific type + * @param {Set} [filterSearchIndex] only results with all specific type * @param {number} [limit] maximum number of returned results * @param {Set} [fieldsItem] adds fields from the item search to the list entries if the hit is a item. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterType?: Set, limit?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGameSearch(language, game, query, filterType, limit, fieldsItem, filterTypeEnum, options); + async getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterSearchIndex?: Set, limit?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGameSearch(language, game, query, filterSearchIndex, limit, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['GameApi.getGameSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -4200,18 +4054,17 @@ export const GameApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of Dofus items (including all subtypes) with a query. * @summary Search All Items * @param {GetItemsAllSearchLanguageEnum} language a valid language code - * @param {GetItemsAllSearchGameEnum} game + * @param {GetItemsAllSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name across all item_subtypes * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsAllSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); + async getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsAllSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['GameApi.getItemsAllSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -4227,37 +4080,36 @@ export const GameApiFactory = function (configuration?: Configuration, basePath? const localVarFp = GameApiFp(configuration) return { /** - * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus2/meta/search/types. + * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus3/meta/search/types. * @summary Game Search * @param {GetGameSearchLanguageEnum} language a valid language code - * @param {GetGameSearchGameEnum} game + * @param {GetGameSearchGameEnum} game dofus3 | dofus3beta * @param {string} query search query - * @param {Set} [filterType] only results with all specific type + * @param {Set} [filterSearchIndex] only results with all specific type * @param {number} [limit] maximum number of returned results * @param {Set} [fieldsItem] adds fields from the item search to the list entries if the hit is a item. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterType?: Set, limit?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getGameSearch(language, game, query, filterType, limit, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterSearchIndex?: Set, limit?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getGameSearch(language, game, query, filterSearchIndex, limit, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of Dofus items (including all subtypes) with a query. * @summary Search All Items * @param {GetItemsAllSearchLanguageEnum} language a valid language code - * @param {GetItemsAllSearchGameEnum} game + * @param {GetItemsAllSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name across all item_subtypes * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getItemsAllSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getItemsAllSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(axios, basePath)); }, }; }; @@ -4270,40 +4122,39 @@ export const GameApiFactory = function (configuration?: Configuration, basePath? */ export class GameApi extends BaseAPI { /** - * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus2/meta/search/types. + * Search in all names and descriptions of all supported types in the game. For the list of supported types see the endpoint /dofus3/meta/search/types. * @summary Game Search * @param {GetGameSearchLanguageEnum} language a valid language code - * @param {GetGameSearchGameEnum} game + * @param {GetGameSearchGameEnum} game dofus3 | dofus3beta * @param {string} query search query - * @param {Set} [filterType] only results with all specific type + * @param {Set} [filterSearchIndex] only results with all specific type * @param {number} [limit] maximum number of returned results * @param {Set} [fieldsItem] adds fields from the item search to the list entries if the hit is a item. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english item type name, including \"mount\" and \"set\" from filter[type]. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GameApi */ - public getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterType?: Set, limit?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return GameApiFp(this.configuration).getGameSearch(language, game, query, filterType, limit, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getGameSearch(language: GetGameSearchLanguageEnum, game: GetGameSearchGameEnum, query: string, filterSearchIndex?: Set, limit?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return GameApiFp(this.configuration).getGameSearch(language, game, query, filterSearchIndex, limit, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of Dofus items (including all subtypes) with a query. * @summary Search All Items * @param {GetItemsAllSearchLanguageEnum} language a valid language code - * @param {GetItemsAllSearchGameEnum} game + * @param {GetItemsAllSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name across all item_subtypes * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GameApi */ - public getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return GameApiFp(this.configuration).getItemsAllSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsAllSearch(language: GetItemsAllSearchLanguageEnum, game: GetItemsAllSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return GameApiFp(this.configuration).getItemsAllSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } } @@ -4323,14 +4174,14 @@ export type GetGameSearchLanguageEnum = typeof GetGameSearchLanguageEnum[keyof t * @export */ export const GetGameSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetGameSearchGameEnum = typeof GetGameSearchGameEnum[keyof typeof GetGameSearchGameEnum]; /** * @export */ -export const GetGameSearchFilterTypeEnum = { +export const GetGameSearchFilterSearchIndexEnum = { ItemsConsumables: 'items-consumables', ItemsCosmetics: 'items-cosmetics', ItemsResources: 'items-resources', @@ -4339,7 +4190,7 @@ export const GetGameSearchFilterTypeEnum = { Mounts: 'mounts', Sets: 'sets' } as const; -export type GetGameSearchFilterTypeEnum = typeof GetGameSearchFilterTypeEnum[keyof typeof GetGameSearchFilterTypeEnum]; +export type GetGameSearchFilterSearchIndexEnum = typeof GetGameSearchFilterSearchIndexEnum[keyof typeof GetGameSearchFilterSearchIndexEnum]; /** * @export */ @@ -4365,8 +4216,8 @@ export type GetItemsAllSearchLanguageEnum = typeof GetItemsAllSearchLanguageEnum * @export */ export const GetItemsAllSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsAllSearchGameEnum = typeof GetItemsAllSearchGameEnum[keyof typeof GetItemsAllSearchGameEnum]; @@ -4378,13 +4229,13 @@ export type GetItemsAllSearchGameEnum = typeof GetItemsAllSearchGameEnum[keyof t export const MetaApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Get all types for /{game}/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. + * Get all types for /{game}/v1/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. * @summary Available Game Search Types * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGameSearchTypes: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/dofus2/meta/search/types`; + const localVarPath = `/dofus3/meta/search/types`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -4414,7 +4265,7 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) * @throws {RequiredError} */ getItemTypes: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/dofus2/meta/items/types`; + const localVarPath = `/dofus3/meta/items/types`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -4440,14 +4291,14 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) /** * Get all the available bonuses and their id for filtering them in the range endpoint. * @summary Available Almanax Bonuses - * @param {GetMetaAlmanaxBonusesLanguageEnum} language + * @param {GetMetaAlmanaxBonusesLanguageEnum} language a valid language code * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMetaAlmanaxBonuses: async (language: GetMetaAlmanaxBonusesLanguageEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getMetaAlmanaxBonuses', 'language', language) - const localVarPath = `/dofus2/meta/{language}/almanax/bonuses` + const localVarPath = `/dofus3/meta/{language}/almanax/bonuses` .replace(`{${"language"}}`, encodeURIComponent(String(language))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4485,7 +4336,7 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) assertParamExists('getMetaAlmanaxBonusesSearch', 'language', language) // verify required parameter 'query' is not null or undefined assertParamExists('getMetaAlmanaxBonusesSearch', 'query', query) - const localVarPath = `/dofus2/meta/{language}/almanax/bonuses/search` + const localVarPath = `/dofus3/meta/{language}/almanax/bonuses/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4524,7 +4375,7 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) * @throws {RequiredError} */ getMetaElements: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/dofus2/meta/elements`; + const localVarPath = `/dofus3/meta/elements`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -4554,7 +4405,7 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) * @throws {RequiredError} */ getMetaVersion: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/dofus2/meta/version`; + const localVarPath = `/dofus3/meta/version`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -4588,7 +4439,7 @@ export const MetaApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration) return { /** - * Get all types for /{game}/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. + * Get all types for /{game}/v1/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. * @summary Available Game Search Types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4614,7 +4465,7 @@ export const MetaApiFp = function(configuration?: Configuration) { /** * Get all the available bonuses and their id for filtering them in the range endpoint. * @summary Available Almanax Bonuses - * @param {GetMetaAlmanaxBonusesLanguageEnum} language + * @param {GetMetaAlmanaxBonusesLanguageEnum} language a valid language code * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4657,7 +4508,7 @@ export const MetaApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMetaVersion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getMetaVersion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMetaVersion(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MetaApi.getMetaVersion']?.[localVarOperationServerIndex]?.url; @@ -4674,7 +4525,7 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath? const localVarFp = MetaApiFp(configuration) return { /** - * Get all types for /{game}/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. + * Get all types for /{game}/v1/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. * @summary Available Game Search Types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4694,7 +4545,7 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath? /** * Get all the available bonuses and their id for filtering them in the range endpoint. * @summary Available Almanax Bonuses - * @param {GetMetaAlmanaxBonusesLanguageEnum} language + * @param {GetMetaAlmanaxBonusesLanguageEnum} language a valid language code * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4728,7 +4579,7 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMetaVersion(options?: RawAxiosRequestConfig): AxiosPromise { + getMetaVersion(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMetaVersion(options).then((request) => request(axios, basePath)); }, }; @@ -4742,7 +4593,7 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath? */ export class MetaApi extends BaseAPI { /** - * Get all types for /{game}/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. + * Get all types for /{game}/v1/{lang}/search available for filtering. All names are english for comparing them inside applications. Order is fixed so you can compare indices instead of strings. * @summary Available Game Search Types * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4766,7 +4617,7 @@ export class MetaApi extends BaseAPI { /** * Get all the available bonuses and their id for filtering them in the range endpoint. * @summary Available Almanax Bonuses - * @param {GetMetaAlmanaxBonusesLanguageEnum} language + * @param {GetMetaAlmanaxBonusesLanguageEnum} language a valid language code * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MetaApi @@ -4846,18 +4697,19 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio * Retrieve all mounts with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Mounts * @param {GetAllMountsListLanguageEnum} language a valid language code - * @param {GetAllMountsListGameEnum} game + * @param {GetAllMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {GetAllMountsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllMountsList: async (language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, options: RawAxiosRequestConfig = {}): Promise => { + getAllMountsList: async (language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, filterFamilyId?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllMountsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllMountsList', 'game', game) - const localVarPath = `/{game}/{language}/mounts/all` + const localVarPath = `/{game}/v1/{language}/mounts/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -4872,15 +4724,18 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; if (filterFamilyName !== undefined) { - localVarQueryParameter['filter[family_name]'] = filterFamilyName; + localVarQueryParameter['filter[family.name]'] = filterFamilyName; } - if (acceptEncoding != null) { - localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); + if (filterFamilyId !== undefined) { + localVarQueryParameter['filter[family.id]'] = filterFamilyId; } + if (acceptEncoding != null) { + localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); + } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4894,20 +4749,21 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio * Retrieve a list of mounts. * @summary List Mounts * @param {GetMountsListLanguageEnum} language a valid language code - * @param {GetMountsListGameEnum} game + * @param {GetMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsMount] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMountsList: async (language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getMountsList: async (language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, filterFamilyId?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getMountsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getMountsList', 'game', game) - const localVarPath = `/{game}/{language}/mounts` + const localVarPath = `/{game}/v1/{language}/mounts` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -4922,7 +4778,7 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; if (filterFamilyName !== undefined) { - localVarQueryParameter['filter[family_name]'] = filterFamilyName; + localVarQueryParameter['filter[family.name]'] = filterFamilyName; } if (pageSize !== undefined) { @@ -4937,6 +4793,10 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio localVarQueryParameter['fields[mount]'] = Array.from(fieldsMount).join(COLLECTION_FORMATS.csv); } + if (filterFamilyId !== undefined) { + localVarQueryParameter['filter[family.id]'] = filterFamilyId; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4952,7 +4812,7 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio * Search in all names and descriptions of mounts with a query. * @summary Search Mounts * @param {GetMountsSearchLanguageEnum} language a valid language code - * @param {GetMountsSearchGameEnum} game + * @param {GetMountsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [limit] maximum number of returned results @@ -4966,7 +4826,7 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio assertParamExists('getMountsSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getMountsSearch', 'query', query) - const localVarPath = `/{game}/{language}/mounts/search` + const localVarPath = `/{game}/v1/{language}/mounts/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -5008,7 +4868,7 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio * @summary Single Mounts * @param {GetMountsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetMountsSingleGameEnum} game + * @param {GetMountsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5019,7 +4879,7 @@ export const MountsApiAxiosParamCreator = function (configuration?: Configuratio assertParamExists('getMountsSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getMountsSingle', 'game', game) - const localVarPath = `/{game}/{language}/mounts/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/mounts/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -5059,14 +4919,15 @@ export const MountsApiFp = function(configuration?: Configuration) { * Retrieve all mounts with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Mounts * @param {GetAllMountsListLanguageEnum} language a valid language code - * @param {GetAllMountsListGameEnum} game + * @param {GetAllMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {GetAllMountsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllMountsList(language, game, filterFamilyName, acceptEncoding, options); + async getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, filterFamilyId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllMountsList(language, game, filterFamilyName, acceptEncoding, filterFamilyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MountsApi.getAllMountsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -5075,16 +4936,17 @@ export const MountsApiFp = function(configuration?: Configuration) { * Retrieve a list of mounts. * @summary List Mounts * @param {GetMountsListLanguageEnum} language a valid language code - * @param {GetMountsListGameEnum} game + * @param {GetMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsMount] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, options); + async getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, filterFamilyId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, filterFamilyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MountsApi.getMountsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -5093,14 +4955,14 @@ export const MountsApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of mounts with a query. * @summary Search Mounts * @param {GetMountsSearchLanguageEnum} language a valid language code - * @param {GetMountsSearchGameEnum} game + * @param {GetMountsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [limit] maximum number of returned results * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMountsSearch(language: GetMountsSearchLanguageEnum, game: GetMountsSearchGameEnum, query: string, filterFamilyName?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getMountsSearch(language: GetMountsSearchLanguageEnum, game: GetMountsSearchGameEnum, query: string, filterFamilyName?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMountsSearch(language, game, query, filterFamilyName, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MountsApi.getMountsSearch']?.[localVarOperationServerIndex]?.url; @@ -5111,7 +4973,7 @@ export const MountsApiFp = function(configuration?: Configuration) { * @summary Single Mounts * @param {GetMountsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetMountsSingleGameEnum} game + * @param {GetMountsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5135,42 +4997,44 @@ export const MountsApiFactory = function (configuration?: Configuration, basePat * Retrieve all mounts with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Mounts * @param {GetAllMountsListLanguageEnum} language a valid language code - * @param {GetAllMountsListGameEnum} game + * @param {GetAllMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {GetAllMountsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllMountsList(language, game, filterFamilyName, acceptEncoding, options).then((request) => request(axios, basePath)); + getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, filterFamilyId?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllMountsList(language, game, filterFamilyName, acceptEncoding, filterFamilyId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of mounts. * @summary List Mounts * @param {GetMountsListLanguageEnum} language a valid language code - * @param {GetMountsListGameEnum} game + * @param {GetMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsMount] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, options).then((request) => request(axios, basePath)); + getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, filterFamilyId?: number, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, filterFamilyId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of mounts with a query. * @summary Search Mounts * @param {GetMountsSearchLanguageEnum} language a valid language code - * @param {GetMountsSearchGameEnum} game + * @param {GetMountsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [limit] maximum number of returned results * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMountsSearch(language: GetMountsSearchLanguageEnum, game: GetMountsSearchGameEnum, query: string, filterFamilyName?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise> { + getMountsSearch(language: GetMountsSearchLanguageEnum, game: GetMountsSearchGameEnum, query: string, filterFamilyName?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getMountsSearch(language, game, query, filterFamilyName, limit, options).then((request) => request(axios, basePath)); }, /** @@ -5178,7 +5042,7 @@ export const MountsApiFactory = function (configuration?: Configuration, basePat * @summary Single Mounts * @param {GetMountsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetMountsSingleGameEnum} game + * @param {GetMountsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5199,39 +5063,41 @@ export class MountsApi extends BaseAPI { * Retrieve all mounts with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Mounts * @param {GetAllMountsListLanguageEnum} language a valid language code - * @param {GetAllMountsListGameEnum} game + * @param {GetAllMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {GetAllMountsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MountsApi */ - public getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, options?: RawAxiosRequestConfig) { - return MountsApiFp(this.configuration).getAllMountsList(language, game, filterFamilyName, acceptEncoding, options).then((request) => request(this.axios, this.basePath)); + public getAllMountsList(language: GetAllMountsListLanguageEnum, game: GetAllMountsListGameEnum, filterFamilyName?: string, acceptEncoding?: GetAllMountsListAcceptEncodingEnum, filterFamilyId?: number, options?: RawAxiosRequestConfig) { + return MountsApiFp(this.configuration).getAllMountsList(language, game, filterFamilyName, acceptEncoding, filterFamilyId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of mounts. * @summary List Mounts * @param {GetMountsListLanguageEnum} language a valid language code - * @param {GetMountsListGameEnum} game + * @param {GetMountsListGameEnum} game dofus3 | dofus3beta * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsMount] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. + * @param {number} [filterFamilyId] only results with the unique family id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MountsApi */ - public getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, options?: RawAxiosRequestConfig) { - return MountsApiFp(this.configuration).getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, options).then((request) => request(this.axios, this.basePath)); + public getMountsList(language: GetMountsListLanguageEnum, game: GetMountsListGameEnum, filterFamilyName?: string, pageSize?: number, pageNumber?: number, fieldsMount?: Set, filterFamilyId?: number, options?: RawAxiosRequestConfig) { + return MountsApiFp(this.configuration).getMountsList(language, game, filterFamilyName, pageSize, pageNumber, fieldsMount, filterFamilyId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of mounts with a query. * @summary Search Mounts * @param {GetMountsSearchLanguageEnum} language a valid language code - * @param {GetMountsSearchGameEnum} game + * @param {GetMountsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterFamilyName] only results with the translated family name * @param {number} [limit] maximum number of returned results @@ -5248,7 +5114,7 @@ export class MountsApi extends BaseAPI { * @summary Single Mounts * @param {GetMountsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetMountsSingleGameEnum} game + * @param {GetMountsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MountsApi @@ -5274,8 +5140,8 @@ export type GetAllMountsListLanguageEnum = typeof GetAllMountsListLanguageEnum[k * @export */ export const GetAllMountsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllMountsListGameEnum = typeof GetAllMountsListGameEnum[keyof typeof GetAllMountsListGameEnum]; /** @@ -5301,8 +5167,8 @@ export type GetMountsListLanguageEnum = typeof GetMountsListLanguageEnum[keyof t * @export */ export const GetMountsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetMountsListGameEnum = typeof GetMountsListGameEnum[keyof typeof GetMountsListGameEnum]; /** @@ -5328,8 +5194,8 @@ export type GetMountsSearchLanguageEnum = typeof GetMountsSearchLanguageEnum[key * @export */ export const GetMountsSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetMountsSearchGameEnum = typeof GetMountsSearchGameEnum[keyof typeof GetMountsSearchGameEnum]; /** @@ -5348,8 +5214,8 @@ export type GetMountsSingleLanguageEnum = typeof GetMountsSingleLanguageEnum[key * @export */ export const GetMountsSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetMountsSingleGameEnum = typeof GetMountsSingleGameEnum[keyof typeof GetMountsSingleGameEnum]; @@ -5364,22 +5230,21 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur * Retrieve all quest items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Quest Items * @param {GetAllItemsQuestListLanguageEnum} language a valid language code - * @param {GetAllItemsQuestListGameEnum} game + * @param {GetAllItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsQuestListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsQuestList: async (language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getAllItemsQuestList: async (language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllItemsQuestList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllItemsQuestList', 'game', game) - const localVarPath = `/{game}/{language}/items/quest/all` + const localVarPath = `/{game}/v1/{language}/items/quest/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -5397,10 +5262,6 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -5409,16 +5270,15 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['filter[max_level]'] = filterMaxLevel; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } + + if (acceptEncoding != null) { localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5433,7 +5293,7 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur * @summary Single Quest Items * @param {GetItemQuestSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemQuestSingleGameEnum} game + * @param {GetItemQuestSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5444,7 +5304,7 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur assertParamExists('getItemQuestSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getItemQuestSingle', 'game', game) - const localVarPath = `/{game}/{language}/items/quest/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/items/quest/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -5474,24 +5334,23 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur * Retrieve a list of quest items. * @summary List Quest Items * @param {GetItemsQuestListLanguageEnum} language a valid language code - * @param {GetItemsQuestListGameEnum} game + * @param {GetItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsQuestList: async (language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsQuestList: async (language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsQuestList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsQuestList', 'game', game) - const localVarPath = `/{game}/{language}/items/quest` + const localVarPath = `/{game}/v1/{language}/items/quest` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -5509,10 +5368,6 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -5533,8 +5388,8 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -5552,7 +5407,7 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur * Search in all names and descriptions of quest items with a query. * @summary Search Quest Items * @param {GetItemsQuestSearchLanguageEnum} language a valid language code - * @param {GetItemsQuestSearchGameEnum} game + * @param {GetItemsQuestSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value @@ -5569,7 +5424,7 @@ export const QuestItemsApiAxiosParamCreator = function (configuration?: Configur assertParamExists('getItemsQuestSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getItemsQuestSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/quest/search` + const localVarPath = `/{game}/v1/{language}/items/quest/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -5632,18 +5487,17 @@ export const QuestItemsApiFp = function(configuration?: Configuration) { * Retrieve all quest items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Quest Items * @param {GetAllItemsQuestListLanguageEnum} language a valid language code - * @param {GetAllItemsQuestListGameEnum} game + * @param {GetAllItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsQuestListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options); + async getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['QuestItemsApi.getAllItemsQuestList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -5653,7 +5507,7 @@ export const QuestItemsApiFp = function(configuration?: Configuration) { * @summary Single Quest Items * @param {GetItemQuestSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemQuestSingleGameEnum} game + * @param {GetItemQuestSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5667,20 +5521,19 @@ export const QuestItemsApiFp = function(configuration?: Configuration) { * Retrieve a list of quest items. * @summary List Quest Items * @param {GetItemsQuestListLanguageEnum} language a valid language code - * @param {GetItemsQuestListGameEnum} game + * @param {GetItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options); + async getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['QuestItemsApi.getItemsQuestList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -5689,7 +5542,7 @@ export const QuestItemsApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of quest items with a query. * @summary Search Quest Items * @param {GetItemsQuestSearchLanguageEnum} language a valid language code - * @param {GetItemsQuestSearchGameEnum} game + * @param {GetItemsQuestSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value @@ -5699,7 +5552,7 @@ export const QuestItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsQuestSearch(language: GetItemsQuestSearchLanguageEnum, game: GetItemsQuestSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getItemsQuestSearch(language: GetItemsQuestSearchLanguageEnum, game: GetItemsQuestSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsQuestSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['QuestItemsApi.getItemsQuestSearch']?.[localVarOperationServerIndex]?.url; @@ -5719,25 +5572,24 @@ export const QuestItemsApiFactory = function (configuration?: Configuration, bas * Retrieve all quest items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Quest Items * @param {GetAllItemsQuestListLanguageEnum} language a valid language code - * @param {GetAllItemsQuestListGameEnum} game + * @param {GetAllItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsQuestListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(axios, basePath)); + getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a specific quest item with id. * @summary Single Quest Items * @param {GetItemQuestSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemQuestSingleGameEnum} game + * @param {GetItemQuestSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5748,26 +5600,25 @@ export const QuestItemsApiFactory = function (configuration?: Configuration, bas * Retrieve a list of quest items. * @summary List Quest Items * @param {GetItemsQuestListLanguageEnum} language a valid language code - * @param {GetItemsQuestListGameEnum} game + * @param {GetItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of quest items with a query. * @summary Search Quest Items * @param {GetItemsQuestSearchLanguageEnum} language a valid language code - * @param {GetItemsQuestSearchGameEnum} game + * @param {GetItemsQuestSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value @@ -5777,7 +5628,7 @@ export const QuestItemsApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsQuestSearch(language: GetItemsQuestSearchLanguageEnum, game: GetItemsQuestSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + getItemsQuestSearch(language: GetItemsQuestSearchLanguageEnum, game: GetItemsQuestSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getItemsQuestSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); }, }; @@ -5794,19 +5645,18 @@ export class QuestItemsApi extends BaseAPI { * Retrieve all quest items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Quest Items * @param {GetAllItemsQuestListLanguageEnum} language a valid language code - * @param {GetAllItemsQuestListGameEnum} game + * @param {GetAllItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsQuestListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof QuestItemsApi */ - public getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return QuestItemsApiFp(this.configuration).getAllItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getAllItemsQuestList(language: GetAllItemsQuestListLanguageEnum, game: GetAllItemsQuestListGameEnum, sortLevel?: GetAllItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsQuestListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return QuestItemsApiFp(this.configuration).getAllItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -5814,7 +5664,7 @@ export class QuestItemsApi extends BaseAPI { * @summary Single Quest Items * @param {GetItemQuestSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemQuestSingleGameEnum} game + * @param {GetItemQuestSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof QuestItemsApi @@ -5827,28 +5677,27 @@ export class QuestItemsApi extends BaseAPI { * Retrieve a list of quest items. * @summary List Quest Items * @param {GetItemsQuestListLanguageEnum} language a valid language code - * @param {GetItemsQuestListGameEnum} game + * @param {GetItemsQuestListGameEnum} game dofus3 | dofus3beta * @param {GetItemsQuestListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof QuestItemsApi */ - public getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return QuestItemsApiFp(this.configuration).getItemsQuestList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsQuestList(language: GetItemsQuestListLanguageEnum, game: GetItemsQuestListGameEnum, sortLevel?: GetItemsQuestListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return QuestItemsApiFp(this.configuration).getItemsQuestList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of quest items with a query. * @summary Search Quest Items * @param {GetItemsQuestSearchLanguageEnum} language a valid language code - * @param {GetItemsQuestSearchGameEnum} game + * @param {GetItemsQuestSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value @@ -5880,8 +5729,8 @@ export type GetAllItemsQuestListLanguageEnum = typeof GetAllItemsQuestListLangua * @export */ export const GetAllItemsQuestListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllItemsQuestListGameEnum = typeof GetAllItemsQuestListGameEnum[keyof typeof GetAllItemsQuestListGameEnum]; /** @@ -5915,8 +5764,8 @@ export type GetItemQuestSingleLanguageEnum = typeof GetItemQuestSingleLanguageEn * @export */ export const GetItemQuestSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemQuestSingleGameEnum = typeof GetItemQuestSingleGameEnum[keyof typeof GetItemQuestSingleGameEnum]; /** @@ -5935,8 +5784,8 @@ export type GetItemsQuestListLanguageEnum = typeof GetItemsQuestListLanguageEnum * @export */ export const GetItemsQuestListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsQuestListGameEnum = typeof GetItemsQuestListGameEnum[keyof typeof GetItemsQuestListGameEnum]; /** @@ -5973,8 +5822,8 @@ export type GetItemsQuestSearchLanguageEnum = typeof GetItemsQuestSearchLanguage * @export */ export const GetItemsQuestSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsQuestSearchGameEnum = typeof GetItemsQuestSearchGameEnum[keyof typeof GetItemsQuestSearchGameEnum]; @@ -5989,22 +5838,21 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura * Retrieve all resource items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Resources * @param {GetAllItemsResourcesListLanguageEnum} language a valid language code - * @param {GetAllItemsResourcesListGameEnum} game + * @param {GetAllItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsResourcesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsResourcesList: async (language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getAllItemsResourcesList: async (language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllItemsResourcesList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllItemsResourcesList', 'game', game) - const localVarPath = `/{game}/{language}/items/resources/all` + const localVarPath = `/{game}/v1/{language}/items/resources/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6022,10 +5870,6 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -6034,16 +5878,15 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['filter[max_level]'] = filterMaxLevel; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } + + if (acceptEncoding != null) { localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6057,24 +5900,23 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura * Search in all names and descriptions of resource items with a query. * @summary Search Resources * @param {GetItemsResourceSearchLanguageEnum} language a valid language code - * @param {GetItemsResourceSearchGameEnum} game + * @param {GetItemsResourceSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsResourceSearch: async (language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsResourceSearch: async (language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsResourceSearch', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsResourceSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getItemsResourceSearch', 'query', query) - const localVarPath = `/{game}/{language}/items/resources/search` + const localVarPath = `/{game}/v1/{language}/items/resources/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6092,10 +5934,6 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['query'] = query; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -6108,8 +5946,8 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['limit'] = limit; } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -6127,24 +5965,23 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura * Retrieve a list of resource items. * @summary List Resources * @param {GetItemsResourcesListLanguageEnum} language a valid language code - * @param {GetItemsResourcesListGameEnum} game + * @param {GetItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsResourcesList: async (language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options: RawAxiosRequestConfig = {}): Promise => { + getItemsResourcesList: async (language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getItemsResourcesList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsResourcesList', 'game', game) - const localVarPath = `/{game}/{language}/items/resources` + const localVarPath = `/{game}/v1/{language}/items/resources` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6162,10 +5999,6 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['sort[level]'] = sortLevel; } - if (filterTypeName !== undefined) { - localVarQueryParameter['filter[type_name]'] = filterTypeName; - } - if (filterMinLevel !== undefined) { localVarQueryParameter['filter[min_level]'] = filterMinLevel; } @@ -6186,8 +6019,8 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['fields[item]'] = Array.from(fieldsItem).join(COLLECTION_FORMATS.csv); } - if (filterTypeEnum) { - localVarQueryParameter['filter[type_enum]'] = Array.from(filterTypeEnum).join(COLLECTION_FORMATS.csv); + if (filterTypeNameId) { + localVarQueryParameter['filter[type.name_id]'] = Array.from(filterTypeNameId).join(COLLECTION_FORMATS.csv); } @@ -6206,7 +6039,7 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura * @summary Single Resources * @param {GetItemsResourcesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsResourcesSingleGameEnum} game + * @param {GetItemsResourcesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6217,7 +6050,7 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura assertParamExists('getItemsResourcesSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getItemsResourcesSingle', 'game', game) - const localVarPath = `/{game}/{language}/items/resources/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/items/resources/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -6257,18 +6090,17 @@ export const ResourcesApiFp = function(configuration?: Configuration) { * Retrieve all resource items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Resources * @param {GetAllItemsResourcesListLanguageEnum} language a valid language code - * @param {GetAllItemsResourcesListGameEnum} game + * @param {GetAllItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsResourcesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options); + async getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getAllItemsResourcesList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -6277,18 +6109,17 @@ export const ResourcesApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of resource items with a query. * @summary Search Resources * @param {GetItemsResourceSearchLanguageEnum} language a valid language code - * @param {GetItemsResourceSearchGameEnum} game + * @param {GetItemsResourceSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsResourceSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options); + async getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsResourceSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getItemsResourceSearch']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -6297,20 +6128,19 @@ export const ResourcesApiFp = function(configuration?: Configuration) { * Retrieve a list of resource items. * @summary List Resources * @param {GetItemsResourcesListLanguageEnum} language a valid language code - * @param {GetItemsResourcesListGameEnum} game + * @param {GetItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options); + async getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getItemsResourcesList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -6320,7 +6150,7 @@ export const ResourcesApiFp = function(configuration?: Configuration) { * @summary Single Resources * @param {GetItemsResourcesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsResourcesSingleGameEnum} game + * @param {GetItemsResourcesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6344,61 +6174,58 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base * Retrieve all resource items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Resources * @param {GetAllItemsResourcesListLanguageEnum} language a valid language code - * @param {GetAllItemsResourcesListGameEnum} game + * @param {GetAllItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsResourcesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(axios, basePath)); + getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of resource items with a query. * @summary Search Resources * @param {GetItemsResourceSearchLanguageEnum} language a valid language code - * @param {GetItemsResourceSearchGameEnum} game + * @param {GetItemsResourceSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { - return localVarFp.getItemsResourceSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.getItemsResourceSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of resource items. * @summary List Resources * @param {GetItemsResourcesListLanguageEnum} language a valid language code - * @param {GetItemsResourcesListGameEnum} game + * @param {GetItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(axios, basePath)); + getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(axios, basePath)); }, /** * Retrieve a specific resource item with id. * @summary Single Resources * @param {GetItemsResourcesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsResourcesSingleGameEnum} game + * @param {GetItemsResourcesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6419,59 +6246,56 @@ export class ResourcesApi extends BaseAPI { * Retrieve all resource items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Resources * @param {GetAllItemsResourcesListLanguageEnum} language a valid language code - * @param {GetAllItemsResourcesListGameEnum} game + * @param {GetAllItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetAllItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {GetAllItemsResourcesListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourcesApi */ - public getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ResourcesApiFp(this.configuration).getAllItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getAllItemsResourcesList(language: GetAllItemsResourcesListLanguageEnum, game: GetAllItemsResourcesListGameEnum, sortLevel?: GetAllItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, acceptEncoding?: GetAllItemsResourcesListAcceptEncodingEnum, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ResourcesApiFp(this.configuration).getAllItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, acceptEncoding, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of resource items with a query. * @summary Search Resources * @param {GetItemsResourceSearchLanguageEnum} language a valid language code - * @param {GetItemsResourceSearchGameEnum} game + * @param {GetItemsResourceSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [limit] maximum number of returned results - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourcesApi */ - public getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ResourcesApiFp(this.configuration).getItemsResourceSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsResourceSearch(language: GetItemsResourceSearchLanguageEnum, game: GetItemsResourceSearchGameEnum, query: string, filterMinLevel?: number, filterMaxLevel?: number, limit?: number, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ResourcesApiFp(this.configuration).getItemsResourceSearch(language, game, query, filterMinLevel, filterMaxLevel, limit, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of resource items. * @summary List Resources * @param {GetItemsResourcesListLanguageEnum} language a valid language code - * @param {GetItemsResourcesListGameEnum} game + * @param {GetItemsResourcesListGameEnum} game dofus3 | dofus3beta * @param {GetItemsResourcesListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted - * @param {string} [filterTypeName] only results with the translated type name * @param {number} [filterMinLevel] only results which level is equal or above this value * @param {number} [filterMaxLevel] only results which level is equal or below this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsItem] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {Set} [filterTypeEnum] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". + * @param {Set} [filterTypeNameId] multi-filter results with the english type name. Add with \"wood\" or \"+wood\" and exclude with \"-wood\". * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourcesApi */ - public getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterTypeName?: string, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeEnum?: Set, options?: RawAxiosRequestConfig) { - return ResourcesApiFp(this.configuration).getItemsResourcesList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeEnum, options).then((request) => request(this.axios, this.basePath)); + public getItemsResourcesList(language: GetItemsResourcesListLanguageEnum, game: GetItemsResourcesListGameEnum, sortLevel?: GetItemsResourcesListSortLevelEnum, filterMinLevel?: number, filterMaxLevel?: number, pageSize?: number, pageNumber?: number, fieldsItem?: Set, filterTypeNameId?: Set, options?: RawAxiosRequestConfig) { + return ResourcesApiFp(this.configuration).getItemsResourcesList(language, game, sortLevel, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem, filterTypeNameId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6479,7 +6303,7 @@ export class ResourcesApi extends BaseAPI { * @summary Single Resources * @param {GetItemsResourcesSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetItemsResourcesSingleGameEnum} game + * @param {GetItemsResourcesSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ResourcesApi @@ -6505,8 +6329,8 @@ export type GetAllItemsResourcesListLanguageEnum = typeof GetAllItemsResourcesLi * @export */ export const GetAllItemsResourcesListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllItemsResourcesListGameEnum = typeof GetAllItemsResourcesListGameEnum[keyof typeof GetAllItemsResourcesListGameEnum]; /** @@ -6540,8 +6364,8 @@ export type GetItemsResourceSearchLanguageEnum = typeof GetItemsResourceSearchLa * @export */ export const GetItemsResourceSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsResourceSearchGameEnum = typeof GetItemsResourceSearchGameEnum[keyof typeof GetItemsResourceSearchGameEnum]; /** @@ -6560,8 +6384,8 @@ export type GetItemsResourcesListLanguageEnum = typeof GetItemsResourcesListLang * @export */ export const GetItemsResourcesListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsResourcesListGameEnum = typeof GetItemsResourcesListGameEnum[keyof typeof GetItemsResourcesListGameEnum]; /** @@ -6598,8 +6422,8 @@ export type GetItemsResourcesSingleLanguageEnum = typeof GetItemsResourcesSingle * @export */ export const GetItemsResourcesSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetItemsResourcesSingleGameEnum = typeof GetItemsResourcesSingleGameEnum[keyof typeof GetItemsResourcesSingleGameEnum]; @@ -6614,21 +6438,22 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) * Retrieve all sets with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Sets * @param {GetAllSetsListLanguageEnum} language a valid language code - * @param {GetAllSetsListGameEnum} game + * @param {GetAllSetsListGameEnum} game dofus3 | dofus3beta * @param {GetAllSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {GetAllSetsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllSetsList: async (language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterIsCosmetic?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getAllSetsList: async (language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getAllSetsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getAllSetsList', 'game', game) - const localVarPath = `/{game}/{language}/sets/all` + const localVarPath = `/{game}/v1/{language}/sets/all` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6654,16 +6479,19 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['filter[max_highest_equipment_level]'] = filterMaxHighestEquipmentLevel; } - if (filterIsCosmetic !== undefined) { - localVarQueryParameter['filter[is_cosmetic]'] = filterIsCosmetic; + if (filterContainsCosmeticsOnly !== undefined) { + localVarQueryParameter['filter[contains_cosmetics_only]'] = filterContainsCosmeticsOnly; } - if (acceptEncoding != null) { - localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); + if (filterContainsCosmetics !== undefined) { + localVarQueryParameter['filter[contains_cosmetics]'] = filterContainsCosmetics; } + if (acceptEncoding != null) { + localVarHeaderParameter['Accept-Encoding'] = String(acceptEncoding); + } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6677,23 +6505,24 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) * Retrieve a list of sets. * @summary List Sets * @param {GetSetsListLanguageEnum} language a valid language code - * @param {GetSetsListGameEnum} game + * @param {GetSetsListGameEnum} game dofus3 | dofus3beta * @param {GetSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsSet] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSetsList: async (language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterIsCosmetic?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getSetsList: async (language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'language' is not null or undefined assertParamExists('getSetsList', 'language', language) // verify required parameter 'game' is not null or undefined assertParamExists('getSetsList', 'game', game) - const localVarPath = `/{game}/{language}/sets` + const localVarPath = `/{game}/v1/{language}/sets` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6731,8 +6560,12 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['fields[set]'] = Array.from(fieldsSet).join(COLLECTION_FORMATS.csv); } - if (filterIsCosmetic !== undefined) { - localVarQueryParameter['filter[is_cosmetic]'] = filterIsCosmetic; + if (filterContainsCosmeticsOnly !== undefined) { + localVarQueryParameter['filter[contains_cosmetics_only]'] = filterContainsCosmeticsOnly; + } + + if (filterContainsCosmetics !== undefined) { + localVarQueryParameter['filter[contains_cosmetics]'] = filterContainsCosmetics; } @@ -6750,7 +6583,7 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) * Search in all names and descriptions of sets with a query. * @summary Search Sets * @param {GetSetsSearchLanguageEnum} language a valid language code - * @param {GetSetsSearchGameEnum} game + * @param {GetSetsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value @@ -6766,7 +6599,7 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) assertParamExists('getSetsSearch', 'game', game) // verify required parameter 'query' is not null or undefined assertParamExists('getSetsSearch', 'query', query) - const localVarPath = `/{game}/{language}/sets/search` + const localVarPath = `/{game}/v1/{language}/sets/search` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6816,7 +6649,7 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) * @summary Single Sets * @param {GetSetsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetSetsSingleGameEnum} game + * @param {GetSetsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6827,7 +6660,7 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration) assertParamExists('getSetsSingle', 'ankamaId', ankamaId) // verify required parameter 'game' is not null or undefined assertParamExists('getSetsSingle', 'game', game) - const localVarPath = `/{game}/{language}/sets/{ankama_id}` + const localVarPath = `/{game}/v1/{language}/sets/{ankama_id}` .replace(`{${"language"}}`, encodeURIComponent(String(language))) .replace(`{${"ankama_id"}}`, encodeURIComponent(String(ankamaId))) .replace(`{${"game"}}`, encodeURIComponent(String(game))); @@ -6867,17 +6700,18 @@ export const SetsApiFp = function(configuration?: Configuration) { * Retrieve all sets with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Sets * @param {GetAllSetsListLanguageEnum} language a valid language code - * @param {GetAllSetsListGameEnum} game + * @param {GetAllSetsListGameEnum} game dofus3 | dofus3beta * @param {GetAllSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {GetAllSetsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterIsCosmetic, options); + async getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterContainsCosmeticsOnly, filterContainsCosmetics, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SetsApi.getAllSetsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -6886,19 +6720,20 @@ export const SetsApiFp = function(configuration?: Configuration) { * Retrieve a list of sets. * @summary List Sets * @param {GetSetsListLanguageEnum} language a valid language code - * @param {GetSetsListGameEnum} game + * @param {GetSetsListGameEnum} game dofus3 | dofus3beta * @param {GetSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsSet] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterIsCosmetic, options); + async getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterContainsCosmeticsOnly, filterContainsCosmetics, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SetsApi.getSetsList']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -6907,7 +6742,7 @@ export const SetsApiFp = function(configuration?: Configuration) { * Search in all names and descriptions of sets with a query. * @summary Search Sets * @param {GetSetsSearchLanguageEnum} language a valid language code - * @param {GetSetsSearchGameEnum} game + * @param {GetSetsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value @@ -6916,7 +6751,7 @@ export const SetsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterIsCosmetic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SetsApi.getSetsSearch']?.[localVarOperationServerIndex]?.url; @@ -6927,7 +6762,7 @@ export const SetsApiFp = function(configuration?: Configuration) { * @summary Single Sets * @param {GetSetsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetSetsSingleGameEnum} game + * @param {GetSetsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6951,41 +6786,43 @@ export const SetsApiFactory = function (configuration?: Configuration, basePath? * Retrieve all sets with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Sets * @param {GetAllSetsListLanguageEnum} language a valid language code - * @param {GetAllSetsListGameEnum} game + * @param {GetAllSetsListGameEnum} game dofus3 | dofus3beta * @param {GetAllSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {GetAllSetsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterIsCosmetic, options).then((request) => request(axios, basePath)); + getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(axios, basePath)); }, /** * Retrieve a list of sets. * @summary List Sets * @param {GetSetsListLanguageEnum} language a valid language code - * @param {GetSetsListGameEnum} game + * @param {GetSetsListGameEnum} game dofus3 | dofus3beta * @param {GetSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsSet] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterIsCosmetic, options).then((request) => request(axios, basePath)); + getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(axios, basePath)); }, /** * Search in all names and descriptions of sets with a query. * @summary Search Sets * @param {GetSetsSearchLanguageEnum} language a valid language code - * @param {GetSetsSearchGameEnum} game + * @param {GetSetsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value @@ -6994,7 +6831,7 @@ export const SetsApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): AxiosPromise> { + getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterIsCosmetic, options).then((request) => request(axios, basePath)); }, /** @@ -7002,7 +6839,7 @@ export const SetsApiFactory = function (configuration?: Configuration, basePath? * @summary Single Sets * @param {GetSetsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetSetsSingleGameEnum} game + * @param {GetSetsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7023,45 +6860,47 @@ export class SetsApi extends BaseAPI { * Retrieve all sets with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header \'Accept-Encoding: gzip\' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH \'Accept-Encoding: gzip\' | gunzip - ``` * @summary List All Sets * @param {GetAllSetsListLanguageEnum} language a valid language code - * @param {GetAllSetsListGameEnum} game + * @param {GetAllSetsListGameEnum} game dofus3 | dofus3beta * @param {GetAllSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {GetAllSetsListAcceptEncodingEnum} [acceptEncoding] optional compression for saving bandwidth - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SetsApi */ - public getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig) { - return SetsApiFp(this.configuration).getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterIsCosmetic, options).then((request) => request(this.axios, this.basePath)); + public getAllSetsList(language: GetAllSetsListLanguageEnum, game: GetAllSetsListGameEnum, sortLevel?: GetAllSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, acceptEncoding?: GetAllSetsListAcceptEncodingEnum, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig) { + return SetsApiFp(this.configuration).getAllSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, acceptEncoding, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve a list of sets. * @summary List Sets * @param {GetSetsListLanguageEnum} language a valid language code - * @param {GetSetsListGameEnum} game + * @param {GetSetsListGameEnum} game dofus3 | dofus3beta * @param {GetSetsListSortLevelEnum} [sortLevel] sort the resulting list by level, default unsorted * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value * @param {number} [pageSize] size of the results from the list. -1 disables pagination and gets all in one response. * @param {number} [pageNumber] 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. * @param {Set} [fieldsSet] adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. - * @param {boolean} [filterIsCosmetic] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmeticsOnly] filter sets based on if they only got cosmetic items in it. If true, the item ids are for the cosmetic endpoints instead of equipment. + * @param {boolean} [filterContainsCosmetics] filter sets based on if they got cosmetic items in it. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SetsApi */ - public getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig) { - return SetsApiFp(this.configuration).getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterIsCosmetic, options).then((request) => request(this.axios, this.basePath)); + public getSetsList(language: GetSetsListLanguageEnum, game: GetSetsListGameEnum, sortLevel?: GetSetsListSortLevelEnum, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, pageSize?: number, pageNumber?: number, fieldsSet?: Set, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig) { + return SetsApiFp(this.configuration).getSetsList(language, game, sortLevel, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, pageSize, pageNumber, fieldsSet, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(this.axios, this.basePath)); } /** * Search in all names and descriptions of sets with a query. * @summary Search Sets * @param {GetSetsSearchLanguageEnum} language a valid language code - * @param {GetSetsSearchGameEnum} game + * @param {GetSetsSearchGameEnum} game dofus3 | dofus3beta * @param {string} query case sensitive search query * @param {number} [filterMinHighestEquipmentLevel] only results where the equipment with the highest level is above or equal to this value * @param {number} [filterMaxHighestEquipmentLevel] only results where the equipment with the highest level is below or equal to this value @@ -7080,7 +6919,7 @@ export class SetsApi extends BaseAPI { * @summary Single Sets * @param {GetSetsSingleLanguageEnum} language a valid language code * @param {number} ankamaId identifier - * @param {GetSetsSingleGameEnum} game + * @param {GetSetsSingleGameEnum} game dofus3 | dofus3beta * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SetsApi @@ -7106,8 +6945,8 @@ export type GetAllSetsListLanguageEnum = typeof GetAllSetsListLanguageEnum[keyof * @export */ export const GetAllSetsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetAllSetsListGameEnum = typeof GetAllSetsListGameEnum[keyof typeof GetAllSetsListGameEnum]; /** @@ -7141,8 +6980,8 @@ export type GetSetsListLanguageEnum = typeof GetSetsListLanguageEnum[keyof typeo * @export */ export const GetSetsListGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetSetsListGameEnum = typeof GetSetsListGameEnum[keyof typeof GetSetsListGameEnum]; /** @@ -7177,8 +7016,8 @@ export type GetSetsSearchLanguageEnum = typeof GetSetsSearchLanguageEnum[keyof t * @export */ export const GetSetsSearchGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetSetsSearchGameEnum = typeof GetSetsSearchGameEnum[keyof typeof GetSetsSearchGameEnum]; /** @@ -7197,8 +7036,8 @@ export type GetSetsSingleLanguageEnum = typeof GetSetsSingleLanguageEnum[keyof t * @export */ export const GetSetsSingleGameEnum = { - Dofus2: 'dofus2', - Dofus2beta: 'dofus2beta' + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' } as const; export type GetSetsSingleGameEnum = typeof GetSetsSingleGameEnum[keyof typeof GetSetsSingleGameEnum]; @@ -7212,7 +7051,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Delete a Webhook from the service. * @summary Unregister Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7246,7 +7085,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Delete a Webhook from the service. * @summary Unregister RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7280,7 +7119,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Delete a Webhook from the service. * @summary Unregister Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7404,7 +7243,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Retrieve details about an existing Almanax Webhook with a given uuid. * @summary Get Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7438,7 +7277,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Retrieve details about an existing RSS Webhook with a given uuid. * @summary Get RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7472,7 +7311,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Retrieve details about an existing Twitter Webhook with a given uuid. * @summary Get Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7608,7 +7447,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Update the details of an Almanax Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutAlmanaxWebhook} [putAlmanaxWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7646,7 +7485,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Update the details of a RSS Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutRSSWebhook} [putRSSWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7684,7 +7523,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Update the details of a Twitter Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutTwitterWebhook} [putTwitterWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7732,7 +7571,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Delete a Webhook from the service. * @summary Unregister Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7745,7 +7584,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Delete a Webhook from the service. * @summary Unregister RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7758,7 +7597,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Delete a Webhook from the service. * @summary Unregister Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7807,7 +7646,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Retrieve details about an existing Almanax Webhook with a given uuid. * @summary Get Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7820,7 +7659,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Retrieve details about an existing RSS Webhook with a given uuid. * @summary Get RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7833,7 +7672,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Retrieve details about an existing Twitter Webhook with a given uuid. * @summary Get Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7885,7 +7724,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Update the details of an Almanax Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutAlmanaxWebhook} [putAlmanaxWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7899,7 +7738,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Update the details of a RSS Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutRSSWebhook} [putRSSWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7913,7 +7752,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Update the details of a Twitter Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutTwitterWebhook} [putTwitterWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7937,7 +7776,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Delete a Webhook from the service. * @summary Unregister Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7947,7 +7786,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Delete a Webhook from the service. * @summary Unregister RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7957,7 +7796,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Delete a Webhook from the service. * @summary Unregister Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7994,7 +7833,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Retrieve details about an existing Almanax Webhook with a given uuid. * @summary Get Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8004,7 +7843,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Retrieve details about an existing RSS Webhook with a given uuid. * @summary Get RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8014,7 +7853,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Retrieve details about an existing Twitter Webhook with a given uuid. * @summary Get Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8054,7 +7893,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Update the details of an Almanax Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutAlmanaxWebhook} [putAlmanaxWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8065,7 +7904,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Update the details of a RSS Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutRSSWebhook} [putRSSWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8076,7 +7915,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Update the details of a Twitter Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutTwitterWebhook} [putTwitterWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8097,7 +7936,7 @@ export class WebhooksApi extends BaseAPI { /** * Delete a Webhook from the service. * @summary Unregister Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8109,7 +7948,7 @@ export class WebhooksApi extends BaseAPI { /** * Delete a Webhook from the service. * @summary Unregister RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8121,7 +7960,7 @@ export class WebhooksApi extends BaseAPI { /** * Delete a Webhook from the service. * @summary Unregister Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8166,7 +8005,7 @@ export class WebhooksApi extends BaseAPI { /** * Retrieve details about an existing Almanax Webhook with a given uuid. * @summary Get Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8178,7 +8017,7 @@ export class WebhooksApi extends BaseAPI { /** * Retrieve details about an existing RSS Webhook with a given uuid. * @summary Get RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8190,7 +8029,7 @@ export class WebhooksApi extends BaseAPI { /** * Retrieve details about an existing Twitter Webhook with a given uuid. * @summary Get Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -8238,7 +8077,7 @@ export class WebhooksApi extends BaseAPI { /** * Update the details of an Almanax Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Almanax Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutAlmanaxWebhook} [putAlmanaxWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8251,7 +8090,7 @@ export class WebhooksApi extends BaseAPI { /** * Update the details of a RSS Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update RSS Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutRSSWebhook} [putRSSWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8264,7 +8103,7 @@ export class WebhooksApi extends BaseAPI { /** * Update the details of a Twitter Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array. * @summary Update Twitter Hook - * @param {string} id + * @param {string} id the ID returned from the API when creating the webhook * @param {PutTwitterWebhook} [putTwitterWebhook] * @param {*} [options] Override http request option. * @throws {RequiredError} diff --git a/base.ts b/base.ts index e143839..c42f3d7 100644 --- a/base.ts +++ b/base.ts @@ -2,9 +2,9 @@ /* eslint-disable */ /** * dofusdude - * # 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). + * # 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: 0.9.4 + * The version of the OpenAPI document: 1.0.0-rc.2 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/common.ts b/common.ts index cae976f..3dff46b 100644 --- a/common.ts +++ b/common.ts @@ -2,9 +2,9 @@ /* eslint-disable */ /** * dofusdude - * # 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). + * # 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: 0.9.4 + * The version of the OpenAPI document: 1.0.0-rc.2 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/configuration.ts b/configuration.ts index afe3bfd..e875d6d 100644 --- a/configuration.ts +++ b/configuration.ts @@ -2,9 +2,9 @@ /* eslint-disable */ /** * dofusdude - * # 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). + * # 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: 0.9.4 + * The version of the OpenAPI document: 1.0.0-rc.2 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/index.ts b/index.ts index 8c126a5..aed942b 100644 --- a/index.ts +++ b/index.ts @@ -2,9 +2,9 @@ /* eslint-disable */ /** * dofusdude - * # 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). + * # 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: 0.9.4 + * The version of the OpenAPI document: 1.0.0-rc.2 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/package-lock.json b/package-lock.json index c3ecdec..83b600f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dofusdude-ts", - "version": "0.9.4", + "version": "1.0.0-rc.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dofusdude-ts", - "version": "0.9.4", + "version": "1.0.0-rc.2", "license": "Unlicense", "dependencies": { "axios": "^1.6.1" @@ -28,9 +28,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -113,9 +113,9 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -139,9 +139,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "requires": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -195,9 +195,9 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true } } diff --git a/package.json b/package.json index e4e7d68..77812bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dofusdude-ts", - "version": "0.9.4", + "version": "1.0.0-rc.2", "description": "OpenAPI client for dofusdude-ts", "author": "OpenAPI-Generator Contributors", "repository": {