Resolve response type name conflict in angular typescript lib (#9216)

* fix: rename var

* fix: run pr checklist scripts

* fix: correct response type var name for http client

* chore: run build scripts

* test: ci and correct name?
This commit is contained in:
Guy King
2021-04-08 20:57:23 +01:00
committed by GitHub
parent fa4462ef11
commit 23c9627b98
55 changed files with 1083 additions and 1083 deletions

View File

@@ -334,9 +334,9 @@ export class {{classname}} {
{{/hasFormParams}}
{{^isResponseFile}}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
{{/isResponseFile}}
@@ -350,7 +350,7 @@ export class {{classname}} {
responseType: "blob",
{{/isResponseFile}}
{{^isResponseFile}}
responseType: <any>responseType,
responseType: <any>responseType_,
{{/isResponseFile}}
withCredentials: this.configuration.withCredentials,
headers: headers,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -141,15 +141,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -197,14 +197,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -257,15 +257,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,15 +319,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -374,14 +374,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -435,15 +435,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -511,15 +511,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -591,15 +591,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -111,14 +111,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -160,14 +160,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -207,14 +207,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -261,15 +261,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -119,15 +119,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -172,15 +172,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -225,15 +225,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -271,14 +271,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -317,14 +317,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -377,15 +377,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -418,14 +418,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -475,15 +475,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -141,15 +141,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -197,14 +197,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -257,15 +257,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,15 +319,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -374,14 +374,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -435,15 +435,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -511,15 +511,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -591,15 +591,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -111,14 +111,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -160,14 +160,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -207,14 +207,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -261,15 +261,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -119,15 +119,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -172,15 +172,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -225,15 +225,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -271,14 +271,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -317,14 +317,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -377,15 +377,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -418,14 +418,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -475,15 +475,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -141,15 +141,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -197,14 +197,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -257,15 +257,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,15 +319,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -374,14 +374,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -435,15 +435,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -511,15 +511,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -591,15 +591,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -111,14 +111,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -160,14 +160,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -207,14 +207,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -261,15 +261,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -119,15 +119,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -172,15 +172,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -225,15 +225,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -271,14 +271,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -317,14 +317,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -377,15 +377,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -418,14 +418,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -475,15 +475,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -141,15 +141,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -197,14 +197,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -257,15 +257,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,15 +319,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -374,14 +374,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -435,15 +435,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -511,15 +511,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -591,15 +591,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -111,14 +111,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -160,14 +160,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -207,14 +207,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -261,15 +261,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -119,15 +119,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -172,15 +172,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -225,15 +225,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -271,14 +271,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -317,14 +317,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -377,15 +377,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -418,14 +418,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -475,15 +475,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -193,15 +193,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -250,14 +250,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -311,15 +311,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -374,15 +374,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -430,14 +430,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -492,15 +492,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -569,15 +569,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -650,15 +650,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -129,14 +129,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -178,14 +178,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -226,14 +226,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -281,15 +281,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -161,15 +161,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -215,15 +215,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -269,15 +269,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -316,14 +316,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -363,14 +363,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -424,15 +424,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -465,14 +465,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -523,15 +523,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -143,15 +143,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -199,14 +199,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -259,15 +259,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByStatus`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -321,15 +321,15 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Array<Pet>>(`${this.configuration.basePath}/pet/findByTags`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -376,14 +376,14 @@ export class PetService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Pet>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -437,15 +437,15 @@ export class PetService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/pet`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -513,15 +513,15 @@ export class PetService {
formParams = formParams.append('status', <any>status) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -593,15 +593,15 @@ export class PetService {
formParams = formParams.append('file', <any>file) as any || formParams;
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<ApiResponse>(`${this.configuration.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
convertFormParamsToString ? formParams.toString() : formParams,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -113,14 +113,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -162,14 +162,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<{ [key: string]: number; }>(`${this.configuration.basePath}/store/inventory`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -209,14 +209,14 @@ export class StoreService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<Order>(`${this.configuration.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -263,15 +263,15 @@ export class StoreService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<Order>(`${this.configuration.basePath}/store/order`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,

View File

@@ -121,15 +121,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -174,15 +174,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithArray`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -227,15 +227,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.post<any>(`${this.configuration.basePath}/user/createWithList`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -273,14 +273,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.delete<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -319,14 +319,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<User>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -379,15 +379,15 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<string>(`${this.configuration.basePath}/user/login`,
{
params: queryParameters,
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -420,14 +420,14 @@ export class UserService {
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.get<any>(`${this.configuration.basePath}/user/logout`,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -477,15 +477,15 @@ export class UserService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
let responseType: 'text' | 'json' = 'json';
let responseType_: 'text' | 'json' = 'json';
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
responseType = 'text';
responseType_ = 'text';
}
return this.httpClient.put<any>(`${this.configuration.basePath}/user/${encodeURIComponent(String(username))}`,
body,
{
responseType: <any>responseType,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,