add typescript-redux-query to ensure-up-to-date script (#4574)

* add typescript-redux-query to ensure-up-to-date script

* Update typescript-redux-query samples

* fixup! Update typescript-redux-query samples
This commit is contained in:
Esteban Gehring 2019-11-22 15:25:17 +01:00 committed by GitHub
parent a1fc114efa
commit 87a9fa3808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 240 additions and 21 deletions

View File

@ -78,6 +78,7 @@ declare -a samples=(
"${root}/bin/dart2-petstore.sh"
"${root}/bin/java-play-framework-petstore-server-all.sh"
#"${root}/bin/elm-petstore-all.sh"
"${root}/bin/typescript-redux-query-petstore-with-npm-version.sh"
)
# Some special case generators may expect to be run as a stanalone process (e.g. modifying classpath)

View File

@ -5,6 +5,6 @@ If Not Exist %executable% (
)
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-petstore-npm.json -g typescript-redux-query -o samples\client\petstore\typescript-redux-query\npm
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-redux-query-petstore-with-npm-version.json -g typescript-redux-query -o samples\client\petstore\typescript-redux-query\builds\with-npm-version
java %JAVA_OPTS% -jar %executable% %ags%

View File

@ -65,6 +65,7 @@ The following generators are available:
* [typescript-inversify](generators/typescript-inversify.md)
* [typescript-jquery](generators/typescript-jquery.md)
* [typescript-node](generators/typescript-node.md)
* [typescript-redux-query](generators/typescript-redux-query.md)
* [typescript-rxjs](generators/typescript-rxjs.md)

View File

@ -0,0 +1,19 @@
---
title: Config Options for typescript-redux-query
sidebar_label: typescript-redux-query
---
| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|modelPropertyNaming|Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name| |camelCase|
|supportsES6|Generate code that conforms to ES6.| |false|
|npmName|The name under which you want to publish generated npm package. Required to generate a full package| |null|
|npmVersion|The version of your npm package. If not provided, using the version from the OpenAPI specification file.| |1.0.0|
|snapshot|When setting this property to true, the version will be suffixed with -SNAPSHOT.yyyyMMddHHmm| |false|
|npmRepository|Use this property to set an url your private npmRepo in the package.json| |null|
|withInterfaces|Setting this property to true will generate interfaces next to the default class implementations.| |false|
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.| |true|

View File

@ -72,6 +72,7 @@ function addPetRaw<T>(requestParameters: AddPetRequest, requestConfig: runtime.T
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -84,6 +85,10 @@ function addPetRaw<T>(requestParameters: AddPetRequest, requestConfig: runtime.T
url: `/pet`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -115,6 +120,7 @@ function deletePetRaw<T>(requestParameters: DeletePetRequest, requestConfig: run
let queryParameters = null;
const headerParameters = {};
if (requestParameters.apiKey !== undefined && requestParameters.apiKey !== null) {
@ -129,6 +135,10 @@ function deletePetRaw<T>(requestParameters: DeletePetRequest, requestConfig: run
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -163,6 +173,7 @@ function findPetsByStatusRaw<T>(requestParameters: FindPetsByStatusRequest, requ
queryParameters = {};
if (requestParameters.status) {
queryParameters['status'] = requestParameters.status.join(runtime.COLLECTION_FORMATS["csv"]);
}
@ -177,6 +188,10 @@ function findPetsByStatusRaw<T>(requestParameters: FindPetsByStatusRequest, requ
url: `/pet/findByStatus`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -213,6 +228,7 @@ function findPetsByTagsRaw<T>(requestParameters: FindPetsByTagsRequest, requestC
queryParameters = {};
if (requestParameters.tags) {
queryParameters['tags'] = requestParameters.tags.join(runtime.COLLECTION_FORMATS["csv"]);
}
@ -227,6 +243,10 @@ function findPetsByTagsRaw<T>(requestParameters: FindPetsByTagsRequest, requestC
url: `/pet/findByTags`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -261,6 +281,7 @@ function getPetByIdRaw<T>(requestParameters: GetPetByIdRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -271,6 +292,10 @@ function getPetByIdRaw<T>(requestParameters: GetPetByIdRequest, requestConfig: r
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -304,6 +329,7 @@ function updatePetRaw<T>(requestParameters: UpdatePetRequest, requestConfig: run
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -316,6 +342,10 @@ function updatePetRaw<T>(requestParameters: UpdatePetRequest, requestConfig: run
url: `/pet`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'PUT',
headers: headerParameters,
@ -347,6 +377,7 @@ function updatePetWithFormRaw<T>(requestParameters: UpdatePetWithFormRequest, re
let queryParameters = null;
const headerParameters = {};
@ -366,11 +397,15 @@ function updatePetWithFormRaw<T>(requestParameters: UpdatePetWithFormRequest, re
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
},
body: queryParameters,
body: formData,
};
const { transform: requestTransform } = requestConfig;
@ -397,6 +432,7 @@ function uploadFileRaw<T>(requestParameters: UploadFileRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -416,11 +452,15 @@ function uploadFileRaw<T>(requestParameters: UploadFileRequest, requestConfig: r
url: `/pet/{petId}/uploadImage`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
},
body: queryParameters,
body: formData,
};
const { transform: requestTransform } = requestConfig;

View File

@ -45,6 +45,7 @@ function deleteOrderRaw<T>(requestParameters: DeleteOrderRequest, requestConfig:
let queryParameters = null;
const headerParameters = {};
@ -54,6 +55,10 @@ function deleteOrderRaw<T>(requestParameters: DeleteOrderRequest, requestConfig:
url: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -83,6 +88,7 @@ export function deleteOrder<T>(requestParameters: DeleteOrderRequest, requestCon
function getInventoryRaw<T>( requestConfig: runtime.TypedQueryConfig<T, { [key: string]: number; }> = {}): QueryConfig<T> {
let queryParameters = null;
const headerParameters = {};
@ -93,6 +99,10 @@ function getInventoryRaw<T>( requestConfig: runtime.TypedQueryConfig<T, { [key:
url: `/store/inventory`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -126,6 +136,7 @@ function getOrderByIdRaw<T>(requestParameters: GetOrderByIdRequest, requestConfi
let queryParameters = null;
const headerParameters = {};
@ -135,6 +146,10 @@ function getOrderByIdRaw<T>(requestParameters: GetOrderByIdRequest, requestConfi
url: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -168,6 +183,7 @@ function placeOrderRaw<T>(requestParameters: PlaceOrderRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -179,6 +195,10 @@ function placeOrderRaw<T>(requestParameters: PlaceOrderRequest, requestConfig: r
url: `/store/order`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,

View File

@ -63,6 +63,7 @@ function createUserRaw<T>(requestParameters: CreateUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -74,6 +75,10 @@ function createUserRaw<T>(requestParameters: CreateUserRequest, requestConfig: r
url: `/user`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -106,6 +111,7 @@ function createUsersWithArrayInputRaw<T>(requestParameters: CreateUsersWithArray
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -117,6 +123,10 @@ function createUsersWithArrayInputRaw<T>(requestParameters: CreateUsersWithArray
url: `/user/createWithArray`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -148,6 +158,7 @@ function createUsersWithListInputRaw<T>(requestParameters: CreateUsersWithListIn
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -159,6 +170,10 @@ function createUsersWithListInputRaw<T>(requestParameters: CreateUsersWithListIn
url: `/user/createWithList`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -191,6 +206,7 @@ function deleteUserRaw<T>(requestParameters: DeleteUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -200,6 +216,10 @@ function deleteUserRaw<T>(requestParameters: DeleteUserRequest, requestConfig: r
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -232,6 +252,7 @@ function getUserByNameRaw<T>(requestParameters: GetUserByNameRequest, requestCon
let queryParameters = null;
const headerParameters = {};
@ -241,6 +262,10 @@ function getUserByNameRaw<T>(requestParameters: GetUserByNameRequest, requestCon
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -279,11 +304,11 @@ function loginUserRaw<T>(requestParameters: LoginUserRequest, requestConfig: run
queryParameters = {};
if (requestParameters.username !== undefined) {
queryParameters['username'] = requestParameters.username;
}
queryParameters = {};
if (requestParameters.password !== undefined) {
queryParameters['password'] = requestParameters.password;
@ -298,6 +323,10 @@ function loginUserRaw<T>(requestParameters: LoginUserRequest, requestConfig: run
url: `/user/login`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -326,6 +355,7 @@ export function loginUser<T>(requestParameters: LoginUserRequest, requestConfig?
function logoutUserRaw<T>( requestConfig: runtime.TypedQueryConfig<T, void> = {}): QueryConfig<T> {
let queryParameters = null;
const headerParameters = {};
@ -335,6 +365,10 @@ function logoutUserRaw<T>( requestConfig: runtime.TypedQueryConfig<T, void> = {}
url: `/user/logout`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -371,6 +405,7 @@ function updateUserRaw<T>(requestParameters: UpdateUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -382,6 +417,10 @@ function updateUserRaw<T>(requestParameters: UpdateUserRequest, requestConfig: r
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'PUT',
headers: headerParameters,

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Category
*/
export interface Category {
export interface Category {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface ModelApiResponse
*/
export interface ModelApiResponse {
export interface ModelApiResponse {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Order
*/
export interface Order {
export interface Order {
/**
*
* @type {number}

View File

@ -26,7 +26,7 @@ import {
* @export
* @interface Pet
*/
export interface Pet {
export interface Pet {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Tag
*/
export interface Tag {
export interface Tag {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface User
*/
export interface User {
export interface User {
/**
*
* @type {number}

View File

@ -72,6 +72,7 @@ function addPetRaw<T>(requestParameters: AddPetRequest, requestConfig: runtime.T
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -84,6 +85,10 @@ function addPetRaw<T>(requestParameters: AddPetRequest, requestConfig: runtime.T
url: `/pet`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -115,6 +120,7 @@ function deletePetRaw<T>(requestParameters: DeletePetRequest, requestConfig: run
let queryParameters = null;
const headerParameters = {};
if (requestParameters.apiKey !== undefined && requestParameters.apiKey !== null) {
@ -129,6 +135,10 @@ function deletePetRaw<T>(requestParameters: DeletePetRequest, requestConfig: run
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -163,6 +173,7 @@ function findPetsByStatusRaw<T>(requestParameters: FindPetsByStatusRequest, requ
queryParameters = {};
if (requestParameters.status) {
queryParameters['status'] = requestParameters.status.join(runtime.COLLECTION_FORMATS["csv"]);
}
@ -177,6 +188,10 @@ function findPetsByStatusRaw<T>(requestParameters: FindPetsByStatusRequest, requ
url: `/pet/findByStatus`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -213,6 +228,7 @@ function findPetsByTagsRaw<T>(requestParameters: FindPetsByTagsRequest, requestC
queryParameters = {};
if (requestParameters.tags) {
queryParameters['tags'] = requestParameters.tags.join(runtime.COLLECTION_FORMATS["csv"]);
}
@ -227,6 +243,10 @@ function findPetsByTagsRaw<T>(requestParameters: FindPetsByTagsRequest, requestC
url: `/pet/findByTags`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -261,6 +281,7 @@ function getPetByIdRaw<T>(requestParameters: GetPetByIdRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -271,6 +292,10 @@ function getPetByIdRaw<T>(requestParameters: GetPetByIdRequest, requestConfig: r
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -304,6 +329,7 @@ function updatePetRaw<T>(requestParameters: UpdatePetRequest, requestConfig: run
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -316,6 +342,10 @@ function updatePetRaw<T>(requestParameters: UpdatePetRequest, requestConfig: run
url: `/pet`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'PUT',
headers: headerParameters,
@ -347,6 +377,7 @@ function updatePetWithFormRaw<T>(requestParameters: UpdatePetWithFormRequest, re
let queryParameters = null;
const headerParameters = {};
@ -366,11 +397,15 @@ function updatePetWithFormRaw<T>(requestParameters: UpdatePetWithFormRequest, re
url: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
},
body: queryParameters,
body: formData,
};
const { transform: requestTransform } = requestConfig;
@ -397,6 +432,7 @@ function uploadFileRaw<T>(requestParameters: UploadFileRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -416,11 +452,15 @@ function uploadFileRaw<T>(requestParameters: UploadFileRequest, requestConfig: r
url: `/pet/{petId}/uploadImage`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters.petId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
},
body: queryParameters,
body: formData,
};
const { transform: requestTransform } = requestConfig;

View File

@ -45,6 +45,7 @@ function deleteOrderRaw<T>(requestParameters: DeleteOrderRequest, requestConfig:
let queryParameters = null;
const headerParameters = {};
@ -54,6 +55,10 @@ function deleteOrderRaw<T>(requestParameters: DeleteOrderRequest, requestConfig:
url: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -83,6 +88,7 @@ export function deleteOrder<T>(requestParameters: DeleteOrderRequest, requestCon
function getInventoryRaw<T>( requestConfig: runtime.TypedQueryConfig<T, { [key: string]: number; }> = {}): QueryConfig<T> {
let queryParameters = null;
const headerParameters = {};
@ -93,6 +99,10 @@ function getInventoryRaw<T>( requestConfig: runtime.TypedQueryConfig<T, { [key:
url: `/store/inventory`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -126,6 +136,7 @@ function getOrderByIdRaw<T>(requestParameters: GetOrderByIdRequest, requestConfi
let queryParameters = null;
const headerParameters = {};
@ -135,6 +146,10 @@ function getOrderByIdRaw<T>(requestParameters: GetOrderByIdRequest, requestConfi
url: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters.orderId))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -168,6 +183,7 @@ function placeOrderRaw<T>(requestParameters: PlaceOrderRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -179,6 +195,10 @@ function placeOrderRaw<T>(requestParameters: PlaceOrderRequest, requestConfig: r
url: `/store/order`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,

View File

@ -63,6 +63,7 @@ function createUserRaw<T>(requestParameters: CreateUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -74,6 +75,10 @@ function createUserRaw<T>(requestParameters: CreateUserRequest, requestConfig: r
url: `/user`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -106,6 +111,7 @@ function createUsersWithArrayInputRaw<T>(requestParameters: CreateUsersWithArray
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -117,6 +123,10 @@ function createUsersWithArrayInputRaw<T>(requestParameters: CreateUsersWithArray
url: `/user/createWithArray`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -148,6 +158,7 @@ function createUsersWithListInputRaw<T>(requestParameters: CreateUsersWithListIn
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -159,6 +170,10 @@ function createUsersWithListInputRaw<T>(requestParameters: CreateUsersWithListIn
url: `/user/createWithList`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'POST',
headers: headerParameters,
@ -191,6 +206,7 @@ function deleteUserRaw<T>(requestParameters: DeleteUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
@ -200,6 +216,10 @@ function deleteUserRaw<T>(requestParameters: DeleteUserRequest, requestConfig: r
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'DELETE',
headers: headerParameters,
@ -232,6 +252,7 @@ function getUserByNameRaw<T>(requestParameters: GetUserByNameRequest, requestCon
let queryParameters = null;
const headerParameters = {};
@ -241,6 +262,10 @@ function getUserByNameRaw<T>(requestParameters: GetUserByNameRequest, requestCon
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -279,11 +304,11 @@ function loginUserRaw<T>(requestParameters: LoginUserRequest, requestConfig: run
queryParameters = {};
if (requestParameters.username !== undefined) {
queryParameters['username'] = requestParameters.username;
}
queryParameters = {};
if (requestParameters.password !== undefined) {
queryParameters['password'] = requestParameters.password;
@ -298,6 +323,10 @@ function loginUserRaw<T>(requestParameters: LoginUserRequest, requestConfig: run
url: `/user/login`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -326,6 +355,7 @@ export function loginUser<T>(requestParameters: LoginUserRequest, requestConfig?
function logoutUserRaw<T>( requestConfig: runtime.TypedQueryConfig<T, void> = {}): QueryConfig<T> {
let queryParameters = null;
const headerParameters = {};
@ -335,6 +365,10 @@ function logoutUserRaw<T>( requestConfig: runtime.TypedQueryConfig<T, void> = {}
url: `/user/logout`,
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'GET',
headers: headerParameters,
@ -371,6 +405,7 @@ function updateUserRaw<T>(requestParameters: UpdateUserRequest, requestConfig: r
let queryParameters = null;
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
@ -382,6 +417,10 @@ function updateUserRaw<T>(requestParameters: UpdateUserRequest, requestConfig: r
url: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
meta,
update: requestConfig.update,
queryKey: requestConfig.queryKey,
optimisticUpdate: requestConfig.optimisticUpdate,
force: requestConfig.force,
rollback: requestConfig.rollback,
options: {
method: 'PUT',
headers: headerParameters,

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Category
*/
export interface Category {
export interface Category {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface ModelApiResponse
*/
export interface ModelApiResponse {
export interface ModelApiResponse {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Order
*/
export interface Order {
export interface Order {
/**
*
* @type {number}

View File

@ -26,7 +26,7 @@ import {
* @export
* @interface Pet
*/
export interface Pet {
export interface Pet {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface Tag
*/
export interface Tag {
export interface Tag {
/**
*
* @type {number}

View File

@ -17,7 +17,7 @@ import { exists, mapValues } from '../runtime';
* @export
* @interface User
*/
export interface User {
export interface User {
/**
*
* @type {number}