Skip to content

Commit b4760aa

Browse files
ralphdoefrantuma
authored andcommitted
samples updates - samples/client/petstore/typescript-jquery/npm
1 parent cd6a262 commit b4760aa

File tree

5 files changed

+94
-1
lines changed

5 files changed

+94
-1
lines changed

samples/client/petstore/typescript-jquery/npm/api/UserApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export class UserApi {
286286
/**
287287
*
288288
* @summary Get user by user name
289-
* @param username The name that needs to be fetched. Use user1 for testing.
289+
* @param username The name that needs to be fetched. Use user1 for testing.
290290
*/
291291
public getUserByName(username: string, extraJQueryAjaxSettings?: JQueryAjaxSettings): JQueryPromise<{ response: JQueryXHR; body: models.User; }> {
292292
let localVarPath = this.basePath + '/user/{username}'.replace('{' + 'username' + '}', encodeURIComponent(String(username)));
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Swagger Petstore
3+
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
4+
*
5+
* OpenAPI spec version: 1.0.0
6+
* Contact: [email protected]
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
import * as models from './models';
14+
15+
/**
16+
* some description
17+
*/
18+
export interface Amount {
19+
/**
20+
* some description
21+
*/
22+
value: number;
23+
24+
currency: models.Currency;
25+
26+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Swagger Petstore
3+
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
4+
*
5+
* OpenAPI spec version: 1.0.0
6+
* Contact: [email protected]
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
import * as models from './models';
14+
15+
/**
16+
* some description
17+
*/
18+
export interface Currency {
19+
}

samples/client/petstore/typescript-jquery/npm/model/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
export * from './Amount';
12
export * from './ApiResponse';
23
export * from './Category';
4+
export * from './Currency';
35
export * from './Order';
46
export * from './Pet';
57
export * from './Tag';

samples/client/petstore/typescript-node/default/api.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,35 @@ class ObjectSerializer {
136136
}
137137
}
138138

139+
/**
140+
* some description
141+
*/
142+
export class Amount {
143+
/**
144+
* some description
145+
*/
146+
'value': number;
147+
'currency': Currency;
148+
149+
static discriminator: string | undefined = undefined;
150+
151+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
152+
{
153+
"name": "value",
154+
"baseName": "value",
155+
"type": "number"
156+
},
157+
{
158+
"name": "currency",
159+
"baseName": "currency",
160+
"type": "Currency"
161+
} ];
162+
163+
static getAttributeTypeMap() {
164+
return Amount.attributeTypeMap;
165+
}
166+
}
167+
139168
/**
140169
* Describes the result of uploading an image resource
141170
*/
@@ -194,6 +223,21 @@ export class Category {
194223
}
195224
}
196225

226+
/**
227+
* some description
228+
*/
229+
export class Currency {
230+
231+
static discriminator: string | undefined = undefined;
232+
233+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
234+
];
235+
236+
static getAttributeTypeMap() {
237+
return Currency.attributeTypeMap;
238+
}
239+
}
240+
197241
/**
198242
* An order for a pets from the pet store
199243
*/
@@ -412,8 +456,10 @@ let enumsMap: {[index: string]: any} = {
412456
}
413457

414458
let typeMap: {[index: string]: any} = {
459+
"Amount": Amount,
415460
"ApiResponse": ApiResponse,
416461
"Category": Category,
462+
"Currency": Currency,
417463
"Order": Order,
418464
"Pet": Pet,
419465
"Tag": Tag,

0 commit comments

Comments
 (0)