diff --git a/README.md b/README.md index 519453c..e751f5e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## dofusdude-ts@1.0.0-rc.2 +## dofusdude-ts@1.0.0-rc.3 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@1.0.0-rc.2 --save +npm install dofusdude-ts@1.0.0-rc.3 --save ``` _unPublished (not recommended):_ diff --git a/api.ts b/api.ts index 2c4e0c8..2788ffe 100644 --- a/api.ts +++ b/api.ts @@ -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.2 + * The version of the OpenAPI document: 1.0.0-rc.3 * Contact: stelzo@steado.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -4401,11 +4401,15 @@ export const MetaApiAxiosParamCreator = function (configuration?: Configuration) /** * The current game version of the hosted data. * @summary Game Version + * @param {GetMetaVersionGameEnum} game game main \'dofus3\' or beta channel \'dofus3beta\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMetaVersion: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/dofus3beta/v1/meta/version`; + getMetaVersion: async (game: GetMetaVersionGameEnum, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'game' is not null or undefined + assertParamExists('getMetaVersion', 'game', game) + const localVarPath = `/{game}/v1/meta/version` + .replace(`{${"game"}}`, encodeURIComponent(String(game))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -4505,11 +4509,12 @@ export const MetaApiFp = function(configuration?: Configuration) { /** * The current game version of the hosted data. * @summary Game Version + * @param {GetMetaVersionGameEnum} game game main \'dofus3\' or beta channel \'dofus3beta\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMetaVersion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMetaVersion(options); + async getMetaVersion(game: GetMetaVersionGameEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMetaVersion(game, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MetaApi.getMetaVersion']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -4576,11 +4581,12 @@ export const MetaApiFactory = function (configuration?: Configuration, basePath? /** * The current game version of the hosted data. * @summary Game Version + * @param {GetMetaVersionGameEnum} game game main \'dofus3\' or beta channel \'dofus3beta\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMetaVersion(options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getMetaVersion(options).then((request) => request(axios, basePath)); + getMetaVersion(game: GetMetaVersionGameEnum, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getMetaVersion(game, options).then((request) => request(axios, basePath)); }, }; }; @@ -4654,12 +4660,13 @@ export class MetaApi extends BaseAPI { /** * The current game version of the hosted data. * @summary Game Version + * @param {GetMetaVersionGameEnum} game game main \'dofus3\' or beta channel \'dofus3beta\' * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MetaApi */ - public getMetaVersion(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).getMetaVersion(options).then((request) => request(this.axios, this.basePath)); + public getMetaVersion(game: GetMetaVersionGameEnum, options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration).getMetaVersion(game, options).then((request) => request(this.axios, this.basePath)); } } @@ -4685,6 +4692,14 @@ export const GetMetaAlmanaxBonusesSearchLanguageEnum = { Es: 'es' } as const; export type GetMetaAlmanaxBonusesSearchLanguageEnum = typeof GetMetaAlmanaxBonusesSearchLanguageEnum[keyof typeof GetMetaAlmanaxBonusesSearchLanguageEnum]; +/** + * @export + */ +export const GetMetaVersionGameEnum = { + Dofus3: 'dofus3', + Dofus3beta: 'dofus3beta' +} as const; +export type GetMetaVersionGameEnum = typeof GetMetaVersionGameEnum[keyof typeof GetMetaVersionGameEnum]; /** diff --git a/base.ts b/base.ts index c42f3d7..7cd227e 100644 --- a/base.ts +++ b/base.ts @@ -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.2 + * The version of the OpenAPI document: 1.0.0-rc.3 * 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 3dff46b..89cf46d 100644 --- a/common.ts +++ b/common.ts @@ -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.2 + * The version of the OpenAPI document: 1.0.0-rc.3 * 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 e875d6d..5c4df55 100644 --- a/configuration.ts +++ b/configuration.ts @@ -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.2 + * The version of the OpenAPI document: 1.0.0-rc.3 * 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 aed942b..ac55334 100644 --- a/index.ts +++ b/index.ts @@ -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.2 + * The version of the OpenAPI document: 1.0.0-rc.3 * 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 83b600f..a71cb07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dofusdude-ts", - "version": "1.0.0-rc.2", + "version": "1.0.0-rc.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dofusdude-ts", - "version": "1.0.0-rc.2", + "version": "1.0.0-rc.3", "license": "Unlicense", "dependencies": { "axios": "^1.6.1" diff --git a/package.json b/package.json index 77812bb..2c034a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dofusdude-ts", - "version": "1.0.0-rc.2", + "version": "1.0.0-rc.3", "description": "OpenAPI client for dofusdude-ts", "author": "OpenAPI-Generator Contributors", "repository": {