mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
This commit is contained in:
parent
39901c824f
commit
6d8791c3da
@ -60,7 +60,7 @@ export interface {{classname}}Interface {
|
||||
{{/summary}}
|
||||
*/
|
||||
{{^useSingleRequestParameter}}
|
||||
{{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^-last}}, {{/-last}}, {{/allParams}}initOverrides?: RequestInit): Promise<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}>;
|
||||
{{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit): Promise<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}>;
|
||||
{{/useSingleRequestParameter}}
|
||||
{{#useSingleRequestParameter}}
|
||||
{{nickname}}({{#allParams.0}}requestParameters: {{#prefixParameterInterfaces}}{{classname}}{{/prefixParameterInterfaces}}{{operationIdCamelCase}}Request, {{/allParams.0}}initOverrides?: RequestInit): Promise<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}>;
|
||||
@ -331,7 +331,7 @@ export class {{classname}} extends runtime.BaseAPI {
|
||||
{{/summary}}
|
||||
*/
|
||||
{{^useSingleRequestParameter}}
|
||||
async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}{{^-last}}, {{/-last}}, {{/allParams}}initOverrides?: RequestInit): Promise<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}> {
|
||||
async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}} | null{{/isNullable}}{{/isEnum}}, {{/allParams}}initOverrides?: RequestInit): Promise<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}> {
|
||||
{{#returnType}}
|
||||
const response = await this.{{nickname}}Raw({{#allParams.0}}{ {{#allParams}}{{paramName}}: {{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }, {{/allParams.0}}initOverrides);
|
||||
return await response.value();
|
||||
|
@ -136,7 +136,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*/
|
||||
async deletePet(petId: number, , apiKey?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
async deletePet(petId: number, apiKey?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
await this.deletePetRaw({ petId: petId, apiKey: apiKey }, initOverrides);
|
||||
}
|
||||
|
||||
@ -348,7 +348,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*/
|
||||
async updatePetWithForm(petId: number, , name?: string, , status?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
async updatePetWithForm(petId: number, name?: string, status?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
await this.updatePetWithFormRaw({ petId: petId, name: name, status: status }, initOverrides);
|
||||
}
|
||||
|
||||
@ -407,7 +407,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* uploads an image
|
||||
*/
|
||||
async uploadFile(petId: number, , additionalMetadata?: string, , file?: Blob, initOverrides?: RequestInit): Promise<ModelApiResponse> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: Blob, initOverrides?: RequestInit): Promise<ModelApiResponse> {
|
||||
const response = await this.uploadFileRaw({ petId: petId, additionalMetadata: additionalMetadata, file: file }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ export class UserApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Logs user into the system
|
||||
*/
|
||||
async loginUser(username: string, , password: string, initOverrides?: RequestInit): Promise<string> {
|
||||
async loginUser(username: string, password: string, initOverrides?: RequestInit): Promise<string> {
|
||||
const response = await this.loginUserRaw({ username: username, password: password }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@ -315,7 +315,7 @@ export class UserApi extends runtime.BaseAPI {
|
||||
* This can only be done by the logged in user.
|
||||
* Updated user
|
||||
*/
|
||||
async updateUser(username: string, , body: User, initOverrides?: RequestInit): Promise<void> {
|
||||
async updateUser(username: string, body: User, initOverrides?: RequestInit): Promise<void> {
|
||||
await this.updateUserRaw({ username: username, body: body }, initOverrides);
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*/
|
||||
async deletePet(petId: number, , apiKey?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
async deletePet(petId: number, apiKey?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
await this.deletePetRaw({ petId: petId, apiKey: apiKey }, initOverrides);
|
||||
}
|
||||
|
||||
@ -447,7 +447,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*/
|
||||
async updatePetWithForm(petId: number, , name?: string, , status?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
async updatePetWithForm(petId: number, name?: string, status?: string, initOverrides?: RequestInit): Promise<void> {
|
||||
await this.updatePetWithFormRaw({ petId: petId, name: name, status: status }, initOverrides);
|
||||
}
|
||||
|
||||
@ -506,7 +506,7 @@ export class PetApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* uploads an image
|
||||
*/
|
||||
async uploadFile(petId: number, , additionalMetadata?: string, , file?: Blob, initOverrides?: RequestInit): Promise<ModelApiResponse> {
|
||||
async uploadFile(petId: number, additionalMetadata?: string, file?: Blob, initOverrides?: RequestInit): Promise<ModelApiResponse> {
|
||||
const response = await this.uploadFileRaw({ petId: petId, additionalMetadata: additionalMetadata, file: file }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ export class PetPartApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Get the matching parts for the given pet part.
|
||||
*/
|
||||
async getMatchingParts(fakePetPartId: number, , _long: boolean, , smooth: boolean, , _short: boolean, , name?: string, , connectedPart?: string, initOverrides?: RequestInit): Promise<GetMatchingPartsResponse> {
|
||||
async getMatchingParts(fakePetPartId: number, _long: boolean, smooth: boolean, _short: boolean, name?: string, connectedPart?: string, initOverrides?: RequestInit): Promise<GetMatchingPartsResponse> {
|
||||
const response = await this.getMatchingPartsRaw({ fakePetPartId: fakePetPartId, _long: _long, smooth: smooth, _short: _short, name: name, connectedPart: connectedPart }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ export class UserApi extends runtime.BaseAPI {
|
||||
/**
|
||||
* Logs user into the system
|
||||
*/
|
||||
async loginUser(username: string, , password: string, initOverrides?: RequestInit): Promise<string> {
|
||||
async loginUser(username: string, password: string, initOverrides?: RequestInit): Promise<string> {
|
||||
const response = await this.loginUserRaw({ username: username, password: password }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@ -318,7 +318,7 @@ export class UserApi extends runtime.BaseAPI {
|
||||
* This can only be done by the logged in user.
|
||||
* Updated user
|
||||
*/
|
||||
async updateUser(username: string, , body: User, initOverrides?: RequestInit): Promise<DefaultMetaOnlyResponse> {
|
||||
async updateUser(username: string, body: User, initOverrides?: RequestInit): Promise<DefaultMetaOnlyResponse> {
|
||||
const response = await this.updateUserRaw({ username: username, body: body }, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './SagaApiManager'
|
||||
export * from './allSagas'
|
||||
export * from './BehaviorApi';
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './runtime';
|
||||
export * from './runtimeSagasAndRecords';
|
||||
export * from './ApiEntitiesRecord';
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from './BehaviorType';
|
||||
export * from './Category';
|
||||
export * from './CategoryRecord';
|
||||
|
14
samples/client/petstore/typescript-fetch/builds/with-npm-version/package-lock.json
generated
Normal file
14
samples/client/petstore/typescript-fetch/builds/with-npm-version/package-lock.json
generated
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "@openapitools/typescript-fetch-petstore",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"typescript": {
|
||||
"version": "2.9.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz",
|
||||
"integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user