Skip to content

Commit

Permalink
samples updates - samples/client/petstore/typescript-node/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 b4760aa commit 8ee614b
Showing 1 changed file with 52 additions and 6 deletions.
58 changes: 52 additions & 6 deletions samples/client/petstore/typescript-node/npm/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 All @@ -144,7 +173,7 @@ export class ApiResponse {
'type'?: string;
'message'?: string;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
Expand Down Expand Up @@ -175,7 +204,7 @@ export class Category {
'id'?: number;
'name'?: string;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
Expand All @@ -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 All @@ -208,7 +252,7 @@ export class Order {
'status'?: Order.StatusEnum;
'complete'?: boolean;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
Expand Down Expand Up @@ -268,7 +312,7 @@ export class Pet {
*/
'status'?: Pet.StatusEnum;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
Expand Down Expand Up @@ -321,7 +365,7 @@ export class Tag {
'id'?: number;
'name'?: string;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
Expand Down Expand Up @@ -356,7 +400,7 @@ export class User {
*/
'userStatus'?: number;

static discriminator = undefined;
static discriminator: string | undefined = undefined;

static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
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 8ee614b

Please sign in to comment.