Skip to content

Commit 9b0fb52

Browse files
ralphdoefrantuma
authored andcommitted
samples updates - samples/client/petstore/typescript-node/npm/
1 parent 8ee614b commit 9b0fb52

File tree

4 files changed

+218
-155
lines changed

4 files changed

+218
-155
lines changed

samples/client/petstore/typescript-node/npm/api.d.ts

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,26 @@
44
import localVarRequest = require('request');
55
import http = require('http');
66
import Promise = require('bluebird');
7+
export declare class Amount {
8+
'value': number;
9+
'currency': Currency;
10+
static discriminator: string | undefined;
11+
static attributeTypeMap: Array<{
12+
name: string;
13+
baseName: string;
14+
type: string;
15+
}>;
16+
static getAttributeTypeMap(): {
17+
name: string;
18+
baseName: string;
19+
type: string;
20+
}[];
21+
}
722
export declare class ApiResponse {
823
'code'?: number;
924
'type'?: string;
1025
'message'?: string;
11-
static discriminator: undefined;
26+
static discriminator: string | undefined;
1227
static attributeTypeMap: Array<{
1328
name: string;
1429
baseName: string;
@@ -23,7 +38,20 @@ export declare class ApiResponse {
2338
export declare class Category {
2439
'id'?: number;
2540
'name'?: string;
26-
static discriminator: undefined;
41+
static discriminator: string | undefined;
42+
static attributeTypeMap: Array<{
43+
name: string;
44+
baseName: string;
45+
type: string;
46+
}>;
47+
static getAttributeTypeMap(): {
48+
name: string;
49+
baseName: string;
50+
type: string;
51+
}[];
52+
}
53+
export declare class Currency {
54+
static discriminator: string | undefined;
2755
static attributeTypeMap: Array<{
2856
name: string;
2957
baseName: string;
@@ -42,7 +70,7 @@ export declare class Order {
4270
'shipDate'?: Date;
4371
'status'?: Order.StatusEnum;
4472
'complete'?: boolean;
45-
static discriminator: undefined;
73+
static discriminator: string | undefined;
4674
static attributeTypeMap: Array<{
4775
name: string;
4876
baseName: string;
@@ -68,7 +96,7 @@ export declare class Pet {
6896
'photoUrls': Array<string>;
6997
'tags'?: Array<Tag>;
7098
'status'?: Pet.StatusEnum;
71-
static discriminator: undefined;
99+
static discriminator: string | undefined;
72100
static attributeTypeMap: Array<{
73101
name: string;
74102
baseName: string;
@@ -90,7 +118,7 @@ export declare namespace Pet {
90118
export declare class Tag {
91119
'id'?: number;
92120
'name'?: string;
93-
static discriminator: undefined;
121+
static discriminator: string | undefined;
94122
static attributeTypeMap: Array<{
95123
name: string;
96124
baseName: string;
@@ -111,7 +139,7 @@ export declare class User {
111139
'password'?: string;
112140
'phone'?: string;
113141
'userStatus'?: number;
114-
static discriminator: undefined;
142+
static discriminator: string | undefined;
115143
static attributeTypeMap: Array<{
116144
name: string;
117145
baseName: string;

samples/client/petstore/typescript-node/npm/api.js

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/petstore/typescript-node/npm/api.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)