[JavaScript] fix index.js, ApiClient.js and test files generated to incorrect location (#2511)

remove outdated samples files
update test dependencies
This commit is contained in:
Vincent Devos
2019-03-30 03:04:44 +01:00
committed by William Cheng
parent c4d982f775
commit 8977d7b366
294 changed files with 3031 additions and 7681 deletions

View File

@@ -1,70 +0,0 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Animal from './Animal';
/**
* The AnimalFarm model module.
* @module model/AnimalFarm
* @version 1.0.0
*/
class AnimalFarm extends Array {
/**
* Constructs a new <code>AnimalFarm</code>.
* @alias module:model/AnimalFarm
* @extends Array
*/
constructor() {
super();
AnimalFarm.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/AnimalFarm} obj Optional instance to populate.
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new AnimalFarm();
ApiClient.constructFromObject(data, obj, 'Animal');
}
return obj;
}
}
export default AnimalFarm;

View File

@@ -1,67 +0,0 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The StringBooleanMap model module.
* @module model/StringBooleanMap
* @version 1.0.0
*/
class StringBooleanMap {
/**
* Constructs a new <code>StringBooleanMap</code>.
* @alias module:model/StringBooleanMap
* @extends Object
*/
constructor() {
StringBooleanMap.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>StringBooleanMap</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/StringBooleanMap} obj Optional instance to populate.
* @return {module:model/StringBooleanMap} The populated <code>StringBooleanMap</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new StringBooleanMap();
ApiClient.constructFromObject(data, obj, 'Boolean');
}
return obj;
}
}
export default StringBooleanMap;