Skip to content

Commit

Permalink
samples updates - samples/client/petstore/typescript-jquery/npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphdoe authored and frantuma committed Nov 7, 2018
1 parent cd6a262 commit b4760aa
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class UserApi {
/**
*
* @summary Get user by user name
* @param username The name that needs to be fetched. Use user1 for testing.
* @param username The name that needs to be fetched. Use user1 for testing.
*/
public getUserByName(username: string, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body: models.User; }> {
let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username)));
Expand Down
26 changes: 26 additions & 0 deletions samples/client/petstore/typescript-jquery/npm/model/Amount.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [https://swagger.io](https://swagger.io) or on [irc.freenode.net, #swagger](https://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/

import * as models from './models';

/**
* some description
*/
export interface Amount {
/**
* some description
*/
value: number;

currency: models.Currency;

}
19 changes: 19 additions & 0 deletions samples/client/petstore/typescript-jquery/npm/model/Currency.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [https://swagger.io](https://swagger.io) or on [irc.freenode.net, #swagger](https://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/

import * as models from './models';

/**
* some description
*/
export interface Currency {
}
2 changes: 2 additions & 0 deletions samples/client/petstore/typescript-jquery/npm/model/models.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export * from './Amount';
export * from './ApiResponse';
export * from './Category';
export * from './Currency';
export * from './Order';
export * from './Pet';
export * from './Tag';
Expand Down
46 changes: 46 additions & 0 deletions samples/client/petstore/typescript-node/default/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,35 @@ class ObjectSerializer {
}
}

/**
* some description
*/
export class Amount {
/**
* some description
*/
'value': number;
'currency': Currency;

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "value",
"baseName": "value",
"type": "number"
},
{
"name": "currency",
"baseName": "currency",
"type": "Currency"
} ];

static getAttributeTypeMap() {
return Amount.attributeTypeMap;
}
}

/**
* Describes the result of uploading an image resource
*/
Expand Down Expand Up @@ -194,6 +223,21 @@ export class Category {
}
}

/**
* some description
*/
export class Currency {

static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
];

static getAttributeTypeMap() {
return Currency.attributeTypeMap;
}
}

/**
* An order for a pets from the pet store
*/
Expand Down Expand Up @@ -412,8 +456,10 @@ let enumsMap: {[index: string]: any} = {
}

let typeMap: {[index: string]: any} = {
"Amount": Amount,
"ApiResponse": ApiResponse,
"Category": Category,
"Currency": Currency,
"Order": Order,
"Pet": Pet,
"Tag": Tag,
Expand Down

0 comments on commit b4760aa

Please sign in to comment.