Compare commits

..

No commits in common. "d3b3625f416115a6d578baa49eb232fc7bdecdd3" and "8b79333b1e1dcce8e78dda61933e873a89bb3197" have entirely different histories.

4 changed files with 405 additions and 357 deletions

View File

@ -47,8 +47,6 @@ import { GetBrowseNodesRequest } from "./model/GetBrowseNodesRequest";
import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
import { GetItemsRequest } from "./model/GetItemsRequest";
import { GetItemsResource } from "./model/GetItemsResource";
import { ItemIdType } from "./model/ItemIdType";
import { Languages } from "./model/Languages";
import { LanguageType } from "./model/LanguageType";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute";

View File

@ -21,12 +21,30 @@
*
*/
/**
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.GetItemsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* Enum class GetItemsResource.
* @enum {}
* @readonly
*/
export const GetItemsResourceValues = {
var exports = {
/**
* value: "BrowseNodeInfo.BrowseNodes"
* @const
@ -321,26 +339,18 @@ export const GetItemsResourceValues = {
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
};
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo" };
/**
* Enum class GetItemsResource.
* @enum {}
* @readonly
*/
export class GetItemsResource {
[key: string]: any;
public constructor() {
const self = this;
Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]);
}
/**
* Returns a <code>GetItemsResource</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/GetItemsResource} The enum <code>GetItemsResource</code> value.
*/
public static constructFromObject(object: string) { return object; }
};
exports.constructFromObject = function(object) {
return object;
}
return exports;
}));

View File

@ -21,35 +21,46 @@
*
*/
/**
* Enum class ItemIdType.
* @enum {}
* @readonly
*/
export const ItemIdTypeValues = {
/**
* value: "ASIN"
* @const
*/
"ASIN": "ASIN",
};
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.ItemIdType = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
/**
* Enum class ItemIdType.
* @enum {}
* @readonly
*/
export class ItemIdType {
var exports = {
/**
* value: "ASIN"
* @const
*/
public static get ASIN() { return ItemIdTypeValues.ASIN; }
"ASIN": "ASIN" };
/**
* Returns a <code>ItemIdType</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/ItemIdType} The enum <code>ItemIdType</code> value.
*/
public static constructFromObject(object: any) { return object;}
};
exports.constructFromObject = function(object) {
return object;
}
return exports;
}));

View File

@ -21,20 +21,42 @@
*
*/
/**
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.OfferCount = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The OfferCount model module.
* @module model/OfferCount
* @version 1.0.0
*/
// I'm not really even sure why this is a whole code module.
/**
/**
* Constructs a new <code>OfferCount</code>.
* @alias module:model/OfferCount
* @class
*/
export class OfferCount {
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>OfferCount</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.
@ -42,7 +64,14 @@ export class OfferCount {
* @param {module:model/OfferCount} obj Optional instance to populate.
* @return {module:model/OfferCount} The populated <code>OfferCount</code> instance.
*/
public static constructFromObject(data: any, _obj?: string) {
exports.constructFromObject = function(data, obj) {
return data;
}
};
return exports;
}));