From 3adbd867609f2f7ff0656c83af8519089c642ff6 Mon Sep 17 00:00:00 2001 From: wing328 Date: Thu, 1 Feb 2018 19:18:14 +0800 Subject: [PATCH] remove corrupted ts files --- .../typescript-angular/model/ModelReturn.ts | 26 ------------- .../typescript-angular/model/modelReturn.ts | 22 ----------- .../default/model/ApiResponse.ts | 21 ----------- .../default/model/apiResponse.ts | 21 ----------- .../npm/model/ApiResponse.ts | 21 ----------- .../npm/model/apiResponse.ts | 21 ----------- .../with-interfaces/model/Category.ts | 20 ---------- .../with-interfaces/model/Order.ts | 35 ------------------ .../with-interfaces/model/Pet.ts | 37 ------------------- .../with-interfaces/model/Tag.ts | 20 ---------- .../with-interfaces/model/User.ts | 29 --------------- .../with-interfaces/model/category.ts | 20 ---------- .../with-interfaces/model/order.ts | 35 ------------------ .../with-interfaces/model/pet.ts | 37 ------------------- .../with-interfaces/model/tag.ts | 20 ---------- .../with-interfaces/model/user.ts | 29 --------------- 16 files changed, 414 deletions(-) delete mode 100644 samples/client/petstore-security-test/typescript-angular/model/ModelReturn.ts delete mode 100644 samples/client/petstore-security-test/typescript-angular/model/modelReturn.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/default/model/ApiResponse.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/default/model/apiResponse.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/npm/model/ApiResponse.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/npm/model/apiResponse.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/Category.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/Order.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/Pet.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/Tag.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/User.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/category.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/order.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/pet.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/tag.ts delete mode 100644 samples/client/petstore/typescript-angular-v2/with-interfaces/model/user.ts diff --git a/samples/client/petstore-security-test/typescript-angular/model/ModelReturn.ts b/samples/client/petstore-security-test/typescript-angular/model/ModelReturn.ts deleted file mode 100644 index e2360156a9d..00000000000 --- a/samples/client/petstore-security-test/typescript-angular/model/ModelReturn.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end -- - * - * OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r - * Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r - * - * 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. - */ - - - -/** - * Model for testing reserved words *_/ ' \" =end -- \\r\\n \\n \\r - */ -export interface ModelReturn { - /** - * property description *_/ ' \" =end -- \\r\\n \\n \\r - */ - return?: number; - -} - - diff --git a/samples/client/petstore-security-test/typescript-angular/model/modelReturn.ts b/samples/client/petstore-security-test/typescript-angular/model/modelReturn.ts deleted file mode 100644 index 515aa6eff6a..00000000000 --- a/samples/client/petstore-security-test/typescript-angular/model/modelReturn.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r - * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end -- - * - * OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r - * Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r - * - * 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. - */ - - -/** - * Model for testing reserved words *_/ ' \" =end -- \\r\\n \\n \\r - */ -export interface ModelReturn { - /** - * property description *_/ ' \" =end -- \\r\\n \\n \\r - */ - _return?: number; -} diff --git a/samples/client/petstore/typescript-angular-v2/default/model/ApiResponse.ts b/samples/client/petstore/typescript-angular-v2/default/model/ApiResponse.ts deleted file mode 100644 index eac4208f022..00000000000 --- a/samples/client/petstore/typescript-angular-v2/default/model/ApiResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * Describes the result of uploading an image resource - */ -export interface ApiResponse { - code?: number; - type?: string; - message?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/default/model/apiResponse.ts b/samples/client/petstore/typescript-angular-v2/default/model/apiResponse.ts deleted file mode 100644 index af5590c3d85..00000000000 --- a/samples/client/petstore/typescript-angular-v2/default/model/apiResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * Describes the result of uploading an image resource - */ -export interface ApiResponse { - code?: number; - type?: string; - message?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/npm/model/ApiResponse.ts b/samples/client/petstore/typescript-angular-v2/npm/model/ApiResponse.ts deleted file mode 100644 index eac4208f022..00000000000 --- a/samples/client/petstore/typescript-angular-v2/npm/model/ApiResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * Describes the result of uploading an image resource - */ -export interface ApiResponse { - code?: number; - type?: string; - message?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/npm/model/apiResponse.ts b/samples/client/petstore/typescript-angular-v2/npm/model/apiResponse.ts deleted file mode 100644 index af5590c3d85..00000000000 --- a/samples/client/petstore/typescript-angular-v2/npm/model/apiResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * Describes the result of uploading an image resource - */ -export interface ApiResponse { - code?: number; - type?: string; - message?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Category.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Category.ts deleted file mode 100644 index 5040d1db915..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Category.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A category for a pet - */ -export interface Category { - id?: number; - name?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Order.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Order.ts deleted file mode 100644 index 33b60bb6e16..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Order.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * An order for a pets from the pet store - */ -export interface Order { - id?: number; - petId?: number; - quantity?: number; - shipDate?: Date; - /** - * Order Status - */ - status?: Order.StatusEnum; - complete?: boolean; -} -export namespace Order { - export type StatusEnum = 'placed' | 'approved' | 'delivered'; - export const StatusEnum = { - Placed: 'placed' as StatusEnum, - Approved: 'approved' as StatusEnum, - Delivered: 'delivered' as StatusEnum - } -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Pet.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Pet.ts deleted file mode 100644 index 342ab5f8e75..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Pet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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 { Category } from './category'; -import { Tag } from './tag'; - - -/** - * A pet for sale in the pet store - */ -export interface Pet { - id?: number; - category?: Category; - name: string; - photoUrls: Array; - tags?: Array; - /** - * pet status in the store - */ - status?: Pet.StatusEnum; -} -export namespace Pet { - export type StatusEnum = 'available' | 'pending' | 'sold'; - export const StatusEnum = { - Available: 'available' as StatusEnum, - Pending: 'pending' as StatusEnum, - Sold: 'sold' as StatusEnum - } -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Tag.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Tag.ts deleted file mode 100644 index c7524000357..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/Tag.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A tag for a pet - */ -export interface Tag { - id?: number; - name?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/User.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/User.ts deleted file mode 100644 index a0261a6f37d..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/User.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A User who is purchasing from the pet store - */ -export interface User { - id?: number; - username?: string; - firstName?: string; - lastName?: string; - email?: string; - password?: string; - phone?: string; - /** - * User Status - */ - userStatus?: number; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/category.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/category.ts deleted file mode 100644 index 093bd438a38..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/category.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A category for a pet - */ -export interface Category { - id?: number; - name?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/order.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/order.ts deleted file mode 100644 index 6a1e1fd6bcf..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/order.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * An order for a pets from the pet store - */ -export interface Order { - id?: number; - petId?: number; - quantity?: number; - shipDate?: Date; - /** - * Order Status - */ - status?: Order.StatusEnum; - complete?: boolean; -} -export namespace Order { - export type StatusEnum = 'placed' | 'approved' | 'delivered'; - export const StatusEnum = { - Placed: 'placed' as StatusEnum, - Approved: 'approved' as StatusEnum, - Delivered: 'delivered' as StatusEnum - } -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/pet.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/pet.ts deleted file mode 100644 index b8b659008af..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/pet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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 { Category } from './category'; -import { Tag } from './tag'; - - -/** - * A pet for sale in the pet store - */ -export interface Pet { - id?: number; - category?: Category; - name: string; - photoUrls: Array; - tags?: Array; - /** - * pet status in the store - */ - status?: Pet.StatusEnum; -} -export namespace Pet { - export type StatusEnum = 'available' | 'pending' | 'sold'; - export const StatusEnum = { - Available: 'available' as StatusEnum, - Pending: 'pending' as StatusEnum, - Sold: 'sold' as StatusEnum - } -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/tag.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/tag.ts deleted file mode 100644 index e35232df691..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/tag.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A tag for a pet - */ -export interface Tag { - id?: number; - name?: string; -} diff --git a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/user.ts b/samples/client/petstore/typescript-angular-v2/with-interfaces/model/user.ts deleted file mode 100644 index e8788de129c..00000000000 --- a/samples/client/petstore/typescript-angular-v2/with-interfaces/model/user.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Swagger Petstore - * 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. - * - * OpenAPI spec version: 1.0.0 - * Contact: apiteam@swagger.io - * - * 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. - */ - - -/** - * A User who is purchasing from the pet store - */ -export interface User { - id?: number; - username?: string; - firstName?: string; - lastName?: string; - email?: string; - password?: string; - phone?: string; - /** - * User Status - */ - userStatus?: number; -}