Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Nov 30, 2024
1 parent 2c405c9 commit 0dbe5a6
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [email protected].4
## [email protected].5

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:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install [email protected].4 --save
npm install [email protected].5 --save
```

_unPublished (not recommended):_
Expand Down
52 changes: 36 additions & 16 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* dofusdude
* # Open Ankama Developer Community The all-in-one toolbelt for your next Ankama related project. ## Versions - [Dofus 2](https://docs.dofusdu.de/dofus2/) - [Dofus 3](https://docs.dofusdu.de/dofus3/) - v1 [latest] (you are here) ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) `npm i dofusdude-js --save` - [Typescript](https://github.com/dofusdude/dofusdude-ts) `npm i dofusdude-ts --save` - [Go](https://github.com/dofusdude/dodugo) `go get -u github.com/dofusdude/dodugo` - [Python](https://github.com/dofusdude/dofusdude-py) `pip install dofusdude` - [Java](https://github.com/dofusdude/dofusdude-java) Maven with GitHub packages setup Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there. Your favorite language is missing? Please let me know! # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date. - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪. - 📨 **Almanax Discord Integration** Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 3 Beta** from stable to bleeding edge by replacing /dofus3 with /dofus3beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_, _de_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Official Sources** generated from actual data from the game. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 1.0.0-rc.4
* The version of the OpenAPI document: 1.0.0-rc.5
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -746,7 +746,13 @@ export interface EquipmentSet {
* @type {boolean}
* @memberof EquipmentSet
*/
'is_cosmetic'?: boolean;
'contains_cosmetics'?: boolean;
/**
*
* @type {boolean}
* @memberof EquipmentSet
*/
'contains_cosmetics_only'?: boolean;
}
/**
*
Expand Down Expand Up @@ -946,7 +952,13 @@ export interface ListEquipmentSet {
* @type {boolean}
* @memberof ListEquipmentSet
*/
'is_cosmetic'?: boolean;
'contains_cosmetics'?: boolean;
/**
*
* @type {boolean}
* @memberof ListEquipmentSet
*/
'contains_cosmetics_only'?: boolean;
}
/**
*
Expand Down Expand Up @@ -6603,11 +6615,12 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration)
* @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} [limit] maximum number of returned results
* @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 any cosmetic items in it
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getSetsSearch: async (language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
getSetsSearch: async (language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'language' is not null or undefined
assertParamExists('getSetsSearch', 'language', language)
// verify required parameter 'game' is not null or undefined
Expand Down Expand Up @@ -6644,8 +6657,12 @@ export const SetsApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter['limit'] = limit;
}

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;
}


Expand Down Expand Up @@ -6762,12 +6779,13 @@ export const SetsApiFp = function(configuration?: Configuration) {
* @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} [limit] maximum number of returned results
* @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 any cosmetic items in it
* @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<Array<ListEquipmentSet>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterIsCosmetic, options);
async getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ListEquipmentSet>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterContainsCosmeticsOnly, filterContainsCosmetics, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SetsApi.getSetsSearch']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
Expand Down Expand Up @@ -6842,12 +6860,13 @@ export const SetsApiFactory = function (configuration?: Configuration, basePath?
* @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} [limit] maximum number of returned results
* @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 any cosmetic items in it
* @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<Array<ListEquipmentSet>> {
return localVarFp.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterIsCosmetic, options).then((request) => request(axios, basePath));
getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListEquipmentSet>> {
return localVarFp.getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(axios, basePath));
},
/**
* Retrieve a specific set with id.
Expand Down Expand Up @@ -6920,13 +6939,14 @@ export class SetsApi extends BaseAPI {
* @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} [limit] maximum number of returned results
* @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 any cosmetic items in it
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SetsApi
*/
public getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterIsCosmetic?: boolean, options?: RawAxiosRequestConfig) {
return SetsApiFp(this.configuration).getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterIsCosmetic, options).then((request) => request(this.axios, this.basePath));
public getSetsSearch(language: GetSetsSearchLanguageEnum, game: GetSetsSearchGameEnum, query: string, filterMinHighestEquipmentLevel?: number, filterMaxHighestEquipmentLevel?: number, limit?: number, filterContainsCosmeticsOnly?: boolean, filterContainsCosmetics?: boolean, options?: RawAxiosRequestConfig) {
return SetsApiFp(this.configuration).getSetsSearch(language, game, query, filterMinHighestEquipmentLevel, filterMaxHighestEquipmentLevel, limit, filterContainsCosmeticsOnly, filterContainsCosmetics, options).then((request) => request(this.axios, this.basePath));
}

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

0 comments on commit 0dbe5a6

Please sign in to comment.