UNPKG

amazon-pa-api5-node-ts

Version:

ProductAdvertisingAPI 5.0 NodeJS SDK rewritten in TypeScript.

623 lines (617 loc) 19.9 kB
/** * Adapted to TypeScript by David A. Ball. (c) 2024. * * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /** * ProductAdvertisingAPI * https://webservices.amazon.com/paapi5/documentation/index.html * */ import { ApiClient } from "./ApiClient.mjs"; import { DefaultApi } from "./api/DefaultApi.mjs"; import { Availability, AvailabilityValues } from "./model/Availability.mjs"; import { BrowseNode } from "./model/BrowseNode.mjs"; import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor.mjs"; import { BrowseNodeChild } from "./model/BrowseNodeChild.mjs"; import { BrowseNodeInfo } from "./model/BrowseNodeInfo.mjs"; import { BrowseNodesResult } from "./model/BrowseNodesResult.mjs"; import { ByLineInfo } from "./model/ByLineInfo.mjs"; import { Classifications } from "./model/Classifications.mjs"; import { Condition } from "./model/Condition.mjs"; import { ContentInfo } from "./model/ContentInfo.mjs"; import { ContentRating } from "./model/ContentRating.mjs"; import { Contributor } from "./model/Contributor.mjs"; import { CustomerReviews } from "./model/CustomerReviews.mjs"; import { DeliveryFlag, DeliveryFlagValues } from "./model/DeliveryFlag.mjs"; import { DimensionBasedAttribute } from "./model/DimensionBasedAttribute.mjs"; import { DurationPrice } from "./model/DurationPrice.mjs"; import { ErrorData } from "./model/ErrorData.mjs"; import { ExternalIds } from "./model/ExternalIds.mjs"; import { GetBrowseNodesRequest } from "./model/GetBrowseNodesRequest.mjs"; import { GetBrowseNodesResource, GetBrowseNodesResourceValues } from "./model/GetBrowseNodesResource.mjs"; import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse.mjs"; import { GetItemsRequest } from "./model/GetItemsRequest.mjs"; import { GetItemsResource, GetItemsResourceValues } from "./model/GetItemsResource.mjs"; import { GetItemsResponse } from "./model/GetItemsResponse.mjs"; import { GetVariationsRequest } from "./model/GetVariationsRequest.mjs"; import { GetVariationsResource, GetVariationsResourceValues } from "./model/GetVariationsResource.mjs"; import { GetVariationsResponse } from "./model/GetVariationsResponse.mjs"; import { ImageSize } from "./model/ImageSize.mjs"; import { ImageType } from "./model/ImageType.mjs"; import { Images } from "./model/Images.mjs"; import { Item } from "./model/Item.mjs"; import { ItemIdType, ItemIdTypeValues } from "./model/ItemIdType.mjs"; import { ItemInfo } from "./model/ItemInfo.mjs"; import { ItemsResult } from "./model/ItemsResult.mjs"; import { Languages } from "./model/Languages.mjs"; import { LanguageType } from "./model/LanguageType.mjs"; import { ManufactureInfo } from "./model/ManufactureInfo.mjs"; import { Marketplace, MarketplaceValues } from "./model/Marketplace.mjs"; import { MaxPrice } from "./model/MaxPrice.mjs"; import { Merchant, MerchantValues } from "./model/Merchant.mjs"; import { MinPrice } from "./model/MinPrice.mjs"; import { MinReviewsRating } from "./model/MinReviewsRating.mjs"; import { MinSavingPercent } from "./model/MinSavingPercent.mjs"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute.mjs"; import { OfferAvailability } from "./model/OfferAvailability.mjs"; import { OfferCondition } from "./model/OfferCondition.mjs"; import { OfferConditionNote } from "./model/OfferConditionNote.mjs"; import { OfferDeliveryInfo } from "./model/OfferDeliveryInfo.mjs"; import { OfferCount } from "./model/OfferCount.mjs"; import { OfferListing } from "./model/OfferListing.mjs"; import { OfferMerchantInfo } from "./model/OfferMerchantInfo.mjs"; import { OfferLoyaltyPoints } from "./model/OfferLoyaltyPoints.mjs"; import { OfferPrice } from "./model/OfferPrice.mjs"; import { OfferProgramEligibility } from "./model/OfferProgramEligibility.mjs"; import { OfferPromotion } from "./model/OfferPromotion.mjs"; import { OfferSavings } from "./model/OfferSavings.mjs"; import { OfferShippingCharge } from "./model/OfferShippingCharge.mjs"; import { OfferSubCondition } from "./model/OfferSubCondition.mjs"; import { OfferSummary } from "./model/OfferSummary.mjs"; import { Offers } from "./model/Offers.mjs"; import { PartnerType, PartnerTypeValues } from "./model/PartnerType.mjs"; import { Price } from "./model/Price.mjs"; import { PriceType } from "./model/PriceType.mjs"; import { ProductAdvertisingAPIClientException } from "./model/ProductAdvertisingAPIClientException.mjs"; import { ProductAdvertisingAPIServiceException } from "./model/ProductAdvertisingAPIServiceException.mjs"; import { ProductInfo } from "./model/ProductInfo.mjs"; import { Properties } from "./model/Properties.mjs"; import { Rating } from "./model/Rating.mjs"; import { Refinement } from "./model/Refinement.mjs"; import { RefinementBin } from "./model/RefinementBin.mjs"; import { RentalOfferListing } from "./model/RentalOfferListing.mjs"; import { RentalOffers } from "./model/RentalOffers.mjs"; import { SearchItemsRequest } from "./model/SearchItemsRequest.mjs"; import { SearchItemsResource, SearchItemsResourceValues } from "./model/SearchItemsResource.mjs"; import { SearchItemsResponse } from "./model/SearchItemsResponse.mjs"; import { SearchRefinements } from "./model/SearchRefinements.mjs"; import { SearchResult } from "./model/SearchResult.mjs"; import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute.mjs"; import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute.mjs"; import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute.mjs"; import { SortBy, SortByValues } from "./model/SortBy.mjs"; import { TechnicalInfo } from "./model/TechnicalInfo.mjs"; import { TradeInInfo } from "./model/TradeInInfo.mjs"; import { TradeInPrice } from "./model/TradeInPrice.mjs"; import { UnitBasedAttribute } from "./model/UnitBasedAttribute.mjs"; import { VariationAttribute } from "./model/VariationAttribute.mjs"; import { VariationDimension } from "./model/VariationDimension.mjs"; import { VariationSummary } from "./model/VariationSummary.mjs"; import { VariationsResult } from "./model/VariationsResult.mjs"; import { WebsiteSalesRank } from "./model/WebsiteSalesRank.mjs"; /** * ProductAdvertisingAPI 5.0 NodeJS SDK.<br> * The <code>index</code> module provides access to constructors for all the classes which comprise the public API. * <p> * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: * <pre> * var ProductAdvertisingAPIv1 = require('index'); // See note below*. * var xxxSvc = new ProductAdvertisingAPIv1.XxxApi(); // Allocate the API class we're going to use. * var yyyModel = new ProductAdvertisingAPIv1.Yyy(); // Construct a model instance. * yyyModel.someProperty = 'someValue'; * ... * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * ... * </pre> * <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...}) * and put the application logic within the callback function.</em> * </p> * <p> * A non-AMD browser application (discouraged) might do something like this: * <pre> * var xxxSvc = new ProductAdvertisingAPIv1.XxxApi(); // Allocate the API class we're going to use. * var yyy = new ProductAdvertisingAPIv1.Yyy(); // Construct a model instance. * yyyModel.someProperty = 'someValue'; * ... * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * ... * </pre> * </p> * @module index * @version 2.1.0 */ export { /** * The ApiClient constructor. * @property {module:ApiClient} */ ApiClient, /** * The Availability model constructor. * @property {module:model/Availability} */ Availability, /** * The Availability model constructor. * @property {module:model/Availability} */ AvailabilityValues, /** * The BrowseNode model constructor. * @property {module:model/BrowseNode} */ BrowseNode, /** * The BrowseNodeAncestor model constructor. * @property {module:model/BrowseNodeAncestor} */ BrowseNodeAncestor, /** * The BrowseNodeChild model constructor. * @property {module:model/BrowseNodeChild} */ BrowseNodeChild, /** * The BrowseNodeInfo model constructor. * @property {module:model/BrowseNodeInfo} */ BrowseNodeInfo, /** * The BrowseNodesResult model constructor. * @property {module:model/BrowseNodesResult} */ BrowseNodesResult, /** * The ByLineInfo model constructor. * @property {module:model/ByLineInfo} */ ByLineInfo, /** * The Classifications model constructor. * @property {module:model/Classifications} */ Classifications, /** * The Condition model constructor. * @property {module:model/Condition} */ Condition, /** * The ContentInfo model constructor. * @property {module:model/ContentInfo} */ ContentInfo, /** * The ContentRating model constructor. * @property {module:model/ContentRating} */ ContentRating, /** * The Contributor model constructor. * @property {module:model/Contributor} */ Contributor, /** * The CustomerReviews model constructor. * @property {module:model/CustomerReviews} */ CustomerReviews, /** * The DeliveryFlag model constructor. * @property {module:model/DeliveryFlag} */ DeliveryFlag, DeliveryFlagValues, /** * The DimensionBasedAttribute model constructor. * @property {module:model/DimensionBasedAttribute} */ DimensionBasedAttribute, /** * The DurationPrice model constructor. * @property {module:model/DurationPrice} */ DurationPrice, /** * The ErrorData model constructor. * @property {module:model/ErrorData} */ ErrorData, /** * The ExternalIds model constructor. * @property {module:model/ExternalIds} */ ExternalIds, /** * The GetBrowseNodesRequest model constructor. * @property {module:model/GetBrowseNodesRequest} */ GetBrowseNodesRequest, /** * The GetBrowseNodesResource model constructor. * @property {module:model/GetBrowseNodesResource} */ GetBrowseNodesResource, GetBrowseNodesResourceValues, /** * The GetBrowseNodesResponse model constructor. * @property {module:model/GetBrowseNodesResponse} */ GetBrowseNodesResponse, /** * The GetItemsRequest model constructor. * @property {module:model/GetItemsRequest} */ GetItemsRequest, /** * The GetItemsResource model constructor. * @property {module:model/GetItemsResource} */ GetItemsResource, GetItemsResourceValues, /** * The GetItemsResponse model constructor. * @property {module:model/GetItemsResponse} */ GetItemsResponse, /** * The GetVariationsRequest model constructor. * @property {module:model/GetVariationsRequest} */ GetVariationsRequest, /** * The GetVariationsResource model constructor. * @property {module:model/GetVariationsResource} */ GetVariationsResource, GetVariationsResourceValues, /** * The GetVariationsResponse model constructor. * @property {module:model/GetVariationsResponse} */ GetVariationsResponse, /** * The ImageSize model constructor. * @property {module:model/ImageSize} */ ImageSize, /** * The ImageType model constructor. * @property {module:model/ImageType} */ ImageType, /** * The Images model constructor. * @property {module:model/Images} */ Images, /** * The Item model constructor. * @property {module:model/Item} */ Item, /** * The ItemIdType model constructor. * @property {module:model/ItemIdType} */ ItemIdType, ItemIdTypeValues, /** * The ItemInfo model constructor. * @property {module:model/ItemInfo} */ ItemInfo, /** * The ItemsResult model constructor. * @property {module:model/ItemsResult} */ ItemsResult, /** * The LanguageType model constructor. * @property {module:model/LanguageType} */ LanguageType, /** * The Languages model constructor. * @property {module:model/Languages} */ Languages, /** * The ManufactureInfo model constructor. * @property {module:model/ManufactureInfo} */ ManufactureInfo, Marketplace, MarketplaceValues, /** * The MaxPrice model constructor. * @property {module:model/MaxPrice} */ MaxPrice, /** * The Merchant model constructor. * @property {module:model/Merchant} */ Merchant, MerchantValues, /** * The MinPrice model constructor. * @property {module:model/MinPrice} */ MinPrice, /** * The MinReviewsRating model constructor. * @property {module:model/MinReviewsRating} */ MinReviewsRating, /** * The MinSavingPercent model constructor. * @property {module:model/MinSavingPercent} */ MinSavingPercent, /** * The MultiValuedAttribute model constructor. * @property {module:model/MultiValuedAttribute} */ MultiValuedAttribute, /** * The OfferAvailability model constructor. * @property {module:model/OfferAvailability} */ OfferAvailability, /** * The OfferCondition model constructor. * @property {module:model/OfferCondition} */ OfferCondition, /** * The OfferConditionNote model constructor. * @property {module:model/OfferConditionNote} */ OfferConditionNote, /** * The OfferCount model constructor. * @property {module:model/OfferCount} */ OfferCount, /** * The OfferDeliveryInfo model constructor. * @property {module:model/OfferDeliveryInfo} */ OfferDeliveryInfo, /** * The OfferListing model constructor. * @property {module:model/OfferListing} */ OfferListing, /** * The OfferLoyaltyPoints model constructor. * @property {module:model/OfferLoyaltyPoints} */ OfferLoyaltyPoints, /** * The OfferMerchantInfo model constructor. * @property {module:model/OfferMerchantInfo} */ OfferMerchantInfo, /** * The OfferPrice model constructor. * @property {module:model/OfferPrice} */ OfferPrice, /** * The OfferProgramEligibility model constructor. * @property {module:model/OfferProgramEligibility} */ OfferProgramEligibility, /** * The OfferPromotion model constructor. * @property {module:model/OfferPromotion} */ OfferPromotion, /** * The OfferSavings model constructor. * @property {module:model/OfferSavings} */ OfferSavings, /** * The OfferShippingCharge model constructor. * @property {module:model/OfferShippingCharge} */ OfferShippingCharge, /** * The OfferSubCondition model constructor. * @property {module:model/OfferSubCondition} */ OfferSubCondition, /** * The OfferSummary model constructor. * @property {module:model/OfferSummary} */ OfferSummary, /** * The Offers model constructor. * @property {module:model/Offers} */ Offers, /** * The PartnerType model constructor. * @property {module:model/PartnerType} */ PartnerType, PartnerTypeValues, /** * The Price model constructor. * @property {module:model/Price} */ Price, /** * The PriceType model constructor. * @property {module:model/PriceType} */ PriceType, /** * The ProductAdvertisingAPIClientException model constructor. * @property {module:model/ProductAdvertisingAPIClientException} */ ProductAdvertisingAPIClientException, /** * The ProductAdvertisingAPIServiceException model constructor. * @property {module:model/ProductAdvertisingAPIServiceException} */ ProductAdvertisingAPIServiceException, /** * The ProductInfo model constructor. * @property {module:model/ProductInfo} */ ProductInfo, /** * The Properties model constructor. * @property {module:model/Properties} */ Properties, /** * The Rating model constructor. * @property {module:model/Rating} */ Rating, /** * The Refinement model constructor. * @property {module:model/Refinement} */ Refinement, /** * The RefinementBin model constructor. * @property {module:model/RefinementBin} */ RefinementBin, /** * The RentalOfferListing model constructor. * @property {module:model/RentalOfferListing} */ RentalOfferListing, /** * The RentalOffers model constructor. * @property {module:model/RentalOffers} */ RentalOffers, /** * The SearchItemsRequest model constructor. * @property {module:model/SearchItemsRequest} */ SearchItemsRequest, /** * The SearchItemsResource model constructor. * @property {module:model/SearchItemsResource} */ SearchItemsResource, SearchItemsResourceValues, /** * The SearchItemsResponse model constructor. * @property {module:model/SearchItemsResponse} */ SearchItemsResponse, /** * The SearchRefinements model constructor. * @property {module:model/SearchRefinements} */ SearchRefinements, /** * The SearchResult model constructor. * @property {module:model/SearchResult} */ SearchResult, /** * The SingleBooleanValuedAttribute model constructor. * @property {module:model/SingleBooleanValuedAttribute} */ SingleBooleanValuedAttribute, /** * The SingleIntegerValuedAttribute model constructor. * @property {module:model/SingleIntegerValuedAttribute} */ SingleIntegerValuedAttribute, /** * The SingleStringValuedAttribute model constructor. * @property {module:model/SingleStringValuedAttribute} */ SingleStringValuedAttribute, /** * The SortBy model constructor. * @property {module:model/SortBy} */ SortBy, SortByValues, /** * The TechnicalInfo model constructor. * @property {module:model/TechnicalInfo} */ TechnicalInfo, /** * The TradeInInfo model constructor. * @property {module:model/TradeInInfo} */ TradeInInfo, /** * The TradeInPrice model constructor. * @property {module:model/TradeInPrice} */ TradeInPrice, /** * The UnitBasedAttribute model constructor. * @property {module:model/UnitBasedAttribute} */ UnitBasedAttribute, /** * The VariationAttribute model constructor. * @property {module:model/VariationAttribute} */ VariationAttribute, /** * The VariationDimension model constructor. * @property {module:model/VariationDimension} */ VariationDimension, /** * The VariationSummary model constructor. * @property {module:model/VariationSummary} */ VariationSummary, /** * The VariationsResult model constructor. * @property {module:model/VariationsResult} */ VariationsResult, /** * The WebsiteSalesRank model constructor. * @property {module:model/WebsiteSalesRank} */ WebsiteSalesRank, /** * The DefaultApi service constructor. * @property {module:api/DefaultApi} */ DefaultApi };