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OAAO,EAAO,KAAP,IAAgB,EAC3B,CAEA,mCAAO,IAAgC,GACnC,OAAO,UAAU,gCAAgC,EACrD,CAKA,qBAAA,IAAyB,GACrB,MAAQ,sBAAuB,GAAW,QAAQ,qBAClD,OAAO,EAAO,KAAP,IAAgB,EAC3B,CAEA,4BAAO,IAAyB,GAC5B,OAAO,UAAU,yBAAyB,EAC9C,EAYJ,YAAY,UAAY,UACxB,OAAO,QAAU","file":"/npm/@29aries/mws-advanced@1.0.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@29aries/mws-advanced@1.0.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const fs = require('fs');\r\nconst path = require('path');\r\n\r\nconst MWS = require('@ericblade/mws-simple').default;\r\nconst { Queue, QueueSchedule } = require('./endpoints/Queue');\r\n\r\nconst errors = require('./errors');\r\nconst constants = require('./constants');\r\n\r\nconst { flattenResult } = require('./util/flatten-result');\r\nconst { validateAndTransformParameters } = require('./util/validation');\r\nconst { digResponseResult } = require('./util/dig-response-result.js');\r\n\r\n// esdoc doesn't handle this line when destructuring for some reason.\r\nconst MWS_ENDPOINTS = constants.MWS_ENDPOINTS; // eslint-disable-line prefer-destructuring\r\n\r\n// TODO: add Subscriptions and Recommendations categories\r\nconst {\r\n    feeds, finances, inbound, inventory, outbound,\r\n    merchFulfillment, orders, products, sellers, reports,\r\n    recommendations,\r\n} = require('./endpoints');\r\n\r\n// TODO: THIS MAY BE A BAD IDEA CONSIDERING THAT SOME CATEGORIES SHARE SOME ENDPOINT NAMES\r\n// TODO: WE MAY NEED TO COME UP WITH A WAY TO DEAL WITH THAT.\r\n\r\nconst endpoints = {\r\n    ...feeds,\r\n    ...finances,\r\n    ...inbound,\r\n    ...inventory,\r\n    ...merchFulfillment,\r\n    ...orders,\r\n    ...outbound,\r\n    ...products,\r\n    ...sellers,\r\n    ...reports,\r\n    ...recommendations,\r\n};\r\n\r\n/*\r\n * holds a reference to a MwsAdvanced if you call static init for old-style use,\r\n * to prevent garbage collection\r\n */\r\nlet staticMws = null;\r\n\r\n/**\r\n * This is where all the magic happens.\r\n * If you pass parameters to the constructor, they will be passed to @see {@link MwsAdvanced#init}\r\n * @class MwsAdvanced\r\n * @param {object} config Contains your MWS Access Keys/Tokens and options to configure the API\r\n * @param {string} [config.accessKeyId=process.env.MWS_ACCESS_KEY] Your MWS Access Key\r\n * @param {string} [config.secretAccessKey=process.env.MWS_SECRET_ACCESS_KEY] Your MWS Secret Access Key\r\n * @param {string} [config.merchantId=process.env.MWS_MERCHANT_ID] Your MWS Merchant ID\r\n * @param {string} [config.authToken] If making a call for a third party account, the Auth Token provided\r\n *                           for the third party account\r\n * @param {string} [config.region='NA'] One of the Amazon regions as specified in https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html\r\n * @param {string} [config.host='mws.amazonservices.com'] Set MWS host server name, see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html\r\n * @param {number} [config.port=443] Set MWS host port\r\n */\r\nclass MwsAdvanced {\r\n    constructor(...args) {\r\n        this.init(...args);\r\n        this.callEndpoint = this.callEndpoint.bind(this);\r\n\r\n        // argh, binding of functions.\r\n        this.init = this.init.bind(this);\r\n        this.doRequest = this.doRequest.bind(this);\r\n        this.parseEndpoint = this.parseEndpoint.bind(this);\r\n        this.callEndpoint = this.callEndpoint.bind(this);\r\n\r\n        this.getInboundGuidanceForASIN = this.getInboundGuidanceForASIN.bind(this);\r\n        this.getInboundGuidanceForSKU = this.getInboundGuidanceForSKU.bind(this);\r\n        this.getMarketplaces = this.getMarketplaces.bind(this);\r\n        this.listOrders = this.listOrders.bind(this);\r\n        this.listOrdersByNextToken = this.listOrdersByNextToken.bind(this);\r\n        this.listOrderItems = this.listOrderItems.bind(this);\r\n        this.getOrder = this.getOrder.bind(this);\r\n        this.listFinancialEvents = this.listFinancialEvents.bind(this);\r\n        this.listInventorySupply = this.listInventorySupply.bind(this);\r\n        this.listMatchingProducts = this.listMatchingProducts.bind(this);\r\n        this.getMatchingProductForId = this.getMatchingProductForId.bind(this);\r\n        this.getLowestPricedOffersForAsin = this.getLowestPricedOffersForAsin.bind(this);\r\n        this.getLowestPricedOffersForSku = this.getLowestPricedOffersForSku.bind(this);\r\n        this.getMarketplaces = this.getMarketplaces.bind(this);\r\n        this.getMatchingProductForId = this.getMatchingProductForId.bind(this);\r\n        this.getMyFeesEstimate = this.getMyFeesEstimate.bind(this);\r\n        this.getOrder = this.getOrder.bind(this);\r\n        this.getProductCategoriesForAsins = this.getProductCategoriesForAsins.bind(this);\r\n        this.getProductCategoriesForSkus = this.getProductCategoriesForSkus.bind(this);\r\n        this.getReport = this.getReport.bind(this);\r\n        this.getReportList = this.getReportList.bind(this);\r\n        this.getReportListAll = this.getReportListAll.bind(this);\r\n        this.getReportListByNextToken = this.getReportListByNextToken.bind(this);\r\n        this.getReportRequestList = this.getReportRequestList.bind(this);\r\n        this.getReportScheduleList = this.getReportScheduleList.bind(this);\r\n        this.listFinancialEvents = this.listFinancialEvents.bind(this);\r\n        this.listInventorySupply = this.listInventorySupply.bind(this);\r\n        this.listMatchingProducts = this.listMatchingProducts.bind(this);\r\n        this.listOrderItems = this.listOrderItems.bind(this);\r\n        this.listOrders = this.listOrders.bind(this);\r\n        this.manageReportSchedule = this.manageReportSchedule.bind(this);\r\n        this.requestAndDownloadReport = this.requestAndDownloadReport.bind(this);\r\n        this.requestReport = this.requestReport.bind(this);\r\n        this.updateReportAcknowledgements = this.updateReportAcknowledgements.bind(this);\r\n\r\n        return this;\r\n    }\r\n\r\n    static init(...args) {\r\n        staticMws = new MwsAdvanced(...args);\r\n        return staticMws.init(...args);\r\n    }\r\n\r\n    /**\r\n     * Initialize mws-advanced with your MWS access keys, merchantId, optionally authtoken, host, port\r\n     * If accessKeyId, secretAccessKey, and/or merchantId are not provided, they will be read from\r\n     * the environment variables MWS_ACESS_KEY, MWS_SECRET_ACCESS_KEY, and MWS_MERCHANT_ID respectively\r\n     *\r\n     * @public\r\n     * @example\r\n     * const mws = MWS.init({ region: 'NA', accessKeyId: '1234', secretAccessKey: '2345', merchantId: '1234567890' });\r\n     * const mws = MWS.init({ region: 'EU', accessKeyId, ... });\r\n     * const mws = MWS.init({ authToken: 'qwerty', accessKeyId, ...});\r\n     * const mws = MWS.init({ host: 'alternate-mws-server.com', accessKeyId, ... });\r\n     * @param {object} config Contains your MWS Access Keys/Tokens and options to configure the API\r\n     * @param {string} [config.accessKeyId=process.env.MWS_ACCESS_KEY] Your MWS Access Key\r\n     * @param {string} [config.secretAccessKey=process.env.MWS_SECRET_ACCESS_KEY] Your MWS Secret Access Key\r\n     * @param {string} [config.merchantId=process.env.MWS_MERCHANT_ID] Your MWS Merchant ID\r\n     * @param {string} [config.authToken] If making a call for a third party account, the Auth Token provided\r\n     *                           for the third party account\r\n     * @param {string} [config.region='NA'] One of the Amazon regions as specified in https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html\r\n     * @param {string} [config.host='mws.amazonservices.com'] Set MWS host server name, see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html\r\n     * @param {number} [config.port=443] Set MWS host port\r\n     * @returns {mws-simple} - The mws-simple instance used to communicate with the API\r\n     */\r\n    init({\r\n        region = 'NA',\r\n        accessKeyId = process.env.MWS_ACCESS_KEY,\r\n        secretAccessKey = process.env.MWS_SECRET_ACCESS_KEY,\r\n        merchantId = process.env.MWS_MERCHANT_ID,\r\n        authToken,\r\n        host = MWS_ENDPOINTS[region] || 'mws.amazonservices.com',\r\n        port,\r\n    } = {}) {\r\n        this.mws = new MWS({\r\n            accessKeyId,\r\n            secretAccessKey,\r\n            merchantId,\r\n            authToken,\r\n            host,\r\n            port,\r\n        });\r\n        return this.mws;\r\n    }\r\n\r\n    async doRequest(requestData, options = {}) {\r\n        try {\r\n            const { result, headers } = await this.mws.request(requestData);\r\n            const ret = options.noFlatten ? result : flattenResult(result);\r\n            ret.headers = headers;\r\n            return ret;\r\n        } catch (err) {\r\n            throw err;\r\n        }\r\n    }\r\n\r\n    parseEndpoint(outParser, inParser = (x) => x) {\r\n        return (mwsApiName) => async (callOptions, opt) => outParser(await this.callEndpoint(mwsApiName, inParser(callOptions), opt));\r\n    }\r\n\r\n    static parseEndpoint(...args) {\r\n        return staticMws.parseEndpoint(...args);\r\n    }\r\n\r\n    static async callEndpoint(...args) {\r\n        // TODO: throw error if init() not called yet\r\n        return staticMws.callEndpoint(...args);\r\n    }\r\n\r\n    /**\r\n     * Call a known endpoint at MWS, returning the raw data from the function. Parameters are\r\n     * transformed and validated according to the rules defined in lib/endpoints\r\n     *\r\n     * @async\r\n     * @public\r\n     * @param {string} name - name of MWS API function to call\r\n     * @param {object.<string,any>} [apiParams] - named hash object of the parameters to pass to the API\r\n     * @param {string} [apiParams.feedContent] - if calling a function that submits a feed, supply the feed data here\r\n     * @param {any} [apiParams.AnythingElse] - other parameters will be passed through validation and into the API\r\n     * @param {object} [options] - options for callEndpoint\r\n     * @param {boolean} [options.noFlatten] - do not flatten results\r\n     * @param {boolean} [options.returnRaw] - return only the raw data (may or may not be flattened)\r\n     * @param {string} [options.saveRaw] - filename to save raw data to (may or may not be flattened)\r\n     * @param {string} [options.saveParsed] - filename to save final parsed data to (not compatible with returnRaw, since parsing won't happen)\r\n     * @param {int} [options.maxThrottleRetries=2] - maximum number of retries for throttling\r\n     * @returns {any} - Results of the call to MWS\r\n     */\r\n    async callEndpoint(name, apiParams = {}, options = { maxThrottleRetries: 2 }) {\r\n        const endpoint = endpoints[name];\r\n        if (!endpoint) {\r\n            throw new errors.InvalidUsage(`Unknown endpoint name supplied to callEndpoint, ${name}`);\r\n        }\r\n\r\n        const newOptions = endpoint.params\r\n            ? validateAndTransformParameters(endpoint.params, apiParams)\r\n            : apiParams;\r\n\r\n        const { feedContent, ...newOptionsExclFeed } = newOptions;\r\n\r\n        const queryOptions = {\r\n            ...newOptionsExclFeed,\r\n            Action: endpoint.action,\r\n            Version: endpoint.version,\r\n        };\r\n\r\n        const params = {\r\n            path: `/${endpoint.category}/${endpoint.version}`,\r\n            query: queryOptions,\r\n            feedContent,\r\n        };\r\n\r\n        const queueName = `${this.mws.merchantId}/${endpoint.category}/${endpoint.action}`;\r\n        let q = QueueSchedule.getQueue(queueName);\r\n        if (!q) {\r\n            q = new Queue({\r\n                api: this,\r\n                category: endpoint.category,\r\n                action: endpoint.action,\r\n                maxInFlight: (endpoint.throttle && endpoint.throttle.maxInFlight) || 0,\r\n                restoreRate: (endpoint.throttle && endpoint.throttle.restoreRate) || 0,\r\n            }, () => QueueSchedule.deleteQueue(queueName));\r\n            QueueSchedule.registerQueue(q, queueName);\r\n        }\r\n        // TODO: reduce the size of this try!\r\n        try {\r\n            const result = await q.request(params, { noFlatten: options.noFlatten });\r\n            if (options.saveRaw) {\r\n                fs.writeFileSync(path.join(process.cwd(), options.saveRaw), JSON.stringify(result));\r\n            }\r\n            if (options.returnRaw) {\r\n                return result;\r\n            }\r\n            const digResult = digResponseResult(name, result);\r\n            if (options.saveParsed) {\r\n                fs.writeFileSync(path.join(process.cwd(), options.saveParsed), JSON.stringify(digResult));\r\n            }\r\n            return digResult;\r\n        } catch (error) {\r\n            throw error;\r\n        }\r\n    }\r\n\r\n    /* eslint-disable global-require */\r\n\r\n    // TODO: fill in documentation for getInboundGuidance*\r\n    /**\r\n     * Call MWS GetInboundGuidanceForASIN, return parsed results\r\n     */\r\n    getInboundGuidanceForASIN(...params) {\r\n        const { getInboundGuidanceForASIN } = require('./helpers/getInboundGuidance');\r\n        return getInboundGuidanceForASIN(this)(...params);\r\n    }\r\n\r\n    static getInboundGuidanceForASIN(...params) {\r\n        return staticMws.getInboundGuidanceForASIN(...params);\r\n    }\r\n\r\n    getInboundGuidanceForSKU(...params) {\r\n        const { getInboundGuidanceForSKU } = require('./helpers/getInboundGuidance');\r\n        return getInboundGuidanceForSKU(this)(...params);\r\n    }\r\n\r\n    static getInboundGuidanceForSKU(...params) {\r\n        return staticMws.getInboundGuidanceForSKU(...params);\r\n    }\r\n\r\n    /**\r\n     * Get a list of Marketplaces that the current Seller ID is authorized to operate within.\r\n     * @see {@link https://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipations.html}\r\n     * @example\r\n     * (async function() {\r\n     *    const result = await mws.getMarketplaces();\r\n     *    console.log(result);\r\n     * })();\r\n     * {\r\n     *    A2EUQ1WTGCTBG2:\r\n     *      {\r\n     *         marketplaceId: 'A2EUQ1WTGCTBG2',\r\n     *         defaultCountryCode: 'CA',\r\n     *         domainName: 'www.amazon.ca',\r\n     *          name: 'Amazon.ca',\r\n     *         defaultCurrencyCode: 'CAD',\r\n     *         defaultLanguageCode: 'en_CA',\r\n     *         sellerId: 'A3...',\r\n     *         hasSellerSuspendedListings: 'No',\r\n     *      },\r\n     *  }\r\n     * @return {Object.<marketplaceId,marketDetail>} Object containing {@link marketDetail} indexed by marketplaceId\r\n     */\r\n\r\n    getMarketplaces(...params) {\r\n        const helper = require('./helpers/getMarketplaces');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getMarketplaces(...params) {\r\n        return staticMws.getMarketplaces(...params);\r\n    }\r\n\r\n    /**\r\n     * Return orders created or updated during a specific time frame\r\n     * see https://docs.developer.amazonservices.com/en_UK/orders-2013-09-01/Orders_ListOrders.html\r\n     * At least ONE of the search options (and maybe more depending on which ones you select) must be\r\n     * specified. Error messages may or may not return information on what parameters you are missing.\r\n     * If you are having trouble, see the official parameter documentation above.\r\n     *\r\n     * @param {object} options\r\n     * @param {string[]} options.MarketplaceId Array of Marketplace IDs to search @see {@link constants}\r\n     * @param {Date} [options.CreatedAfter] Select orders created at or after the given Date\r\n     * @param {Date} [options.CreatedBefore] Select orders created at or before the given Date\r\n     * @param {Date} [options.LastUpdatedAfter] Select orders updated at or after the given Date\r\n     * @param {Date} [options.LastUpdatedBefore] Select orders updated at or before the given Date\r\n     * @param {string} [options.OrderStatus] OrderStatus, see MWS doc page\r\n     * @param {string} [options.FulfillmentChannel] AFN for Amazon fulfillment, MFN for merchant\r\n     * @param {string} [options.PaymentMethod] All, COD, CVS, Other\r\n     * @param {string} [options.BuyerEmail] Search for orders with given Email address\r\n     * @param {string} [options.SellerOrderId] Specified seller order ID\r\n     * @param {string} [options.MaxResultsPerPage=100] Max number of results to return, 1 <=> 100\r\n     * @param {string} [options.TFMShipmentStatus] See MWS doc page\r\n     * @returns {Array.<detailedOrderInfo>} Array of detailedOrderInfo for given search parameters\r\n     */\r\n    listOrders(...params) {\r\n        const helper = require('./helpers/listOrders');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listOrders(...params) { return staticMws.listOrders(...params); }\r\n\r\n    /**\r\n     * Returns orders page based on NextToken.\r\n     * \r\n     * If you've pulled a list of orders using @see {@link ListOrders} you will get NextToken in return.\r\n     * see https://docs.developer.amazonservices.com/en_UK/orders-2013-09-01/Orders_ListOrdersByNextToken.html\r\n     * NextToken must be specified. Error messages may or may not return information \r\n     * on what parameters you are missing.\r\n     * If you are having trouble, see the official parameter documentation above.\r\n     *\r\n     * @param {object} options\r\n     * @param {string} [options.NextToken] NextToken, see MWS doc page\r\n     * @returns {Array.<detailedOrderInfo>} Array of detailedOrderInfo for given search parameters\r\n     */\r\n    listOrdersByNextToken(...params) {\r\n        const helper = require('./helpers/listOrdersByNextToken');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listOrdersByNextToken(...params) { return staticMws.listOrdersByNextToken(...params); }\r\n\r\n    /**\r\n     * Returns order items based on the AmazonOrderId that you specify.\r\n     *\r\n     * If you've pulled a list of orders using @see {@link ListOrders}, or have order identifiers\r\n     * stored in some other fashion, then to find out what items are actually on the orders, you will\r\n     * need to call ListOrderItems to obtain details about the items that were ordered.  The ListOrders\r\n     * call does not give you any information about the items, except how many of them have shipped or\r\n     * not shipped.\r\n     *\r\n     * If an Order is in the Pending state, ListOrderItems will not return any pricing or promotion\r\n     * information. Once an order has left the Pending state, the following items will be returned:\r\n     *\r\n     * ItemTax, GiftWrapPrice, ItemPrice, PromotionDiscount, GiftWrapTax, ShippingTax, ShippingPrice,\r\n     * ShippingDiscount\r\n     *\r\n     * @public\r\n     * @param {string} AmazonOrderId - 3-7-7 Amazon Order ID formatted string\r\n     * @returns {orderItemList}\r\n     */\r\n    listOrderItems(...params) {\r\n        const helper = require('./helpers/listOrderItems');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listOrderItems(...params) { return staticMws.listOrderItems(...params); }\r\n\r\n    /**\r\n     * Return orders by ID, i.e. Amazon Order ID.\r\n     * see https://docs.developer.amazonservices.com/en_UK/orders-2013-09-01/Orders_GetOrder.html\r\n     *\r\n     * @param {object} options\r\n     * @param {string[]} options.AmazonOrderId A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format.\r\n     * @returns {detailedOrderInfo|Array.<detailedOrderInfo>} If only one order is returned, the detailed order info is returned bare, otherwise an array of detailedOrderInfos is returned\r\n     */\r\n    getOrder(...params) {\r\n        const helper = require('./helpers/getOrder');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getOrder(...params) { return staticMws.getOrder(...params); }\r\n\r\n    /**\r\n     * https://docs.developer.amazonservices.com/en_UK/finances/Finances_ListFinancialEvents.html\r\n     *\r\n     * @param {object} options\r\n     * @param {number} options.maxResultsPerPage Maximum number of results to return (1 <=> 100)\r\n     * @param {string} options.amazonOrderId An order number to search for\r\n     * @param {string} options.financialEventGroupId Type of Financial Event to search for\r\n     * @param {Date} options.postedAfter When to search for events after\r\n     * @param {Date} options.postedBefore When to search for events prior to\r\n     * @returns {object}\r\n     */\r\n    listFinancialEvents(...params) {\r\n        const helper = require('./helpers/listFinancialEvents');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listFinancialEvents(...params) { return staticMws.listFinancialEvents(...params); }\r\n\r\n    /**\r\n     * Return information about the availability of a seller's FBA inventory\r\n     *\r\n     * @param {object} options\r\n     * @param {String[]} options.sellerSkus A list of SKUs for items to get inventory info for\r\n     * @param {Date} options.queryStartDateTime Date to begin searching at\r\n     * @param {string} options.responseGroup 'Basic' = Do not include SupplyDetail, 'Detailed' = Do\r\n     * @param {string} options.marketplaceId Marketplace ID to search\r\n     *\r\n     * @returns {{ nextToken: string, supplyList: object[] }}\r\n     */\r\n    listInventorySupply(...params) {\r\n        const helper = require('./helpers/listInventorySupply');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listInventorySupply(...params) { return staticMws.listInventorySupply(...params); }\r\n\r\n    /**\r\n     * Return a list of products and their attributes, based on a text query and contextId.\r\n     *\r\n     * @param {object} options\r\n     * @param {string} options.marketplaceId - marketplace identifier to search\r\n     * @param {string} options.query - a search string \"with the same support as that provided on Amazon marketplace websites\"\r\n     * @param {string} [options.queryContextId] - context in which to limit search. Not specified will mean \"search everywhere\". See https://docs.developer.amazonservices.com/en_UK/products/Products_QueryContextIDs.html\r\n     * @returns {Product[]} - Array of product information\r\n     */\r\n    listMatchingProducts(...params) {\r\n        const helper = require('./helpers/listMatchingProducts');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static listMatchingProducts(...params) { return staticMws.listMatchingProducts(...params); }\r\n\r\n    /**\r\n     * Returns a list of products and their attributes, based on a list of ASIN, GCID, SellerSKU, UPC,\r\n     * EAN, ISBN, or JAN values\r\n     *\r\n     * @param {Object} options see https://docs.developer.amazonservices.com/en_UK/products/Products_GetMatchingProductForId.html\r\n     * @param {string} options.marketplaceId Identifier for marketplace (see getMarketplaces)\r\n     * @param {string} options.idType Type of lookup to perform: ASIN, GCID, SellerSKU, UPC, EAN, ISBN, JAN\r\n     * @param {string[]} options.idList List of codes to perform lookup on\r\n     * @public\r\n     * @returns {Product[]}\r\n     */\r\n    getMatchingProductForId(...params) {\r\n        const helper = require('./helpers/getMatchingProduct');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getMatchingProductForId(...params) { return staticMws.getMatchingProductForId(...params); }\r\n\r\n    /**\r\n     * getLowestPricedOffersForAsin\r\n     *\r\n     * Calls GetLowestPricedOffersForASIN, reformats results, and returns the data\r\n     *\r\n     * @param {object} options see https://docs.developer.amazonservices.com/en_UK/products/Products_GetLowestPricedOffersForASIN.html\r\n     * @param {string} options.MarketplaceId Marketplace ID to search\r\n     * @param {string} options.ASIN ASIN to search for\r\n     * @param {string} options.ItemCondition Listing Condition: New, Used, Collectible, Refurbished, Club\r\n     *\r\n     * @return {LowestPricedOffers}\r\n     */\r\n    getLowestPricedOffersForAsin(...params) {\r\n        const { getLowestPricedOffersForASIN } = require('./helpers/getLowestPricedOffers');\r\n        return getLowestPricedOffersForASIN(this)(...params);\r\n    }\r\n\r\n    static getLowestPricedOffersForAsin(...params) {\r\n        return staticMws.getLowestPricedOffersForAsin(...params);\r\n    }\r\n\r\n    /**\r\n     * getLowestPricedOffersForSKU\r\n     *\r\n     * Calls GetLowestPricedOffersForSKU, reformats results, and returns the data\r\n     *\r\n     * @param {object} options see https://docs.developer.amazonservices.com/en_UK/products/Products_GetLowestPricedOffersForASIN.html\r\n     * @param {string} options.MarketplaceId Marketplace ID to search\r\n     * @param {string} options.SellerSKU SKU to search for\r\n     * @param {string} options.ItemCondition Listing Condition: New, Used, Collectible, Refurbished, Club\r\n     *\r\n     * @return {LowestPricedOffers}\r\n     */\r\n    getLowestPricedOffersForSku(...params) {\r\n        const { getLowestPricedOffersForSKU } = require('./helpers/getLowestPricedOffers');\r\n        return getLowestPricedOffersForSKU(this)(...params);\r\n    }\r\n\r\n    static getLowestPricedOffersForSku(...params) {\r\n        return staticMws.getLowestPricedOffersForSKU(...params);\r\n    }\r\n\r\n    /**\r\n     * return product categories for multiple asins\r\n     *\r\n     * @param {object} parameters\r\n     * @param {string} parameters.marketplaceId - marketplace identifier to run query on\r\n     * @param {string[]} parameters.asins - Array of string ASINs to query for\r\n     * @returns {productCategoryByAsin[]} - Array of product category information\r\n     */\r\n    getProductCategoriesForAsins(...params) {\r\n        const { getProductCategoriesForAsins } = require('./helpers/getProductCategories');\r\n        return getProductCategoriesForAsins(this)(...params);\r\n    }\r\n\r\n    static getProductCategoriesForAsins(...params) {\r\n        return staticMws.getProductCategoriesForAsins(...params);\r\n    }\r\n\r\n    /**\r\n     * return product categories for multiple SKUs\r\n     *\r\n     * @param {object} parameters\r\n     * @param {string} parameters.marketplaceId - marketplace identifier to run query on\r\n     * @param {string[]} parameters.skus - Array of string SKUs to query for\r\n     * @returns {productCategoryBySku[]} - Array of product category information\r\n     */\r\n    getProductCategoriesForSkus(...params) {\r\n        const { getProductCategoriesForSkus } = require('./helpers/getProductCategories');\r\n        return getProductCategoriesForSkus(this)(...params);\r\n    }\r\n\r\n    static getProductCategoriesForSkus(...params) {\r\n        return staticMws.getProductCategoriesForSkus(...params);\r\n    }\r\n\r\n    /**\r\n     * Get an estimate of fees for an item, based on listing and shipping prices.\r\n     *\r\n     * @param {EstimateRequest[]} - Array of EstimateRequest items to get fees for\r\n     * @returns {Object} - Object of Estimate items, indexed by EstimateRequest Identifier\r\n     */\r\n    getMyFeesEstimate(...params) {\r\n        const helper = require('./helpers/getMyFeesEstimate');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getMyFeesEstimate(...params) { return staticMws.getMyFeesEstimate(...params); }\r\n\r\n    /**\r\n     * Request a report from MWS\r\n     * Many optional parameters may be required by MWS! Read [ReportType](https://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html) for specifics!\r\n     *\r\n     * @async\r\n     * @param {object} options\r\n     * @param {string} options.ReportType Type of Report to Request @see {@link REQUEST_REPORT_TYPES}\r\n     * @param {Date} [options.StartDate] Date to start report\r\n     * @param {Date} [options.EndDate] Date to end report at\r\n     * @param {object} [options.ReportOptions] Reports may have additional options available. Please see the [ReportType](https://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html) official docs\r\n     * @param {string[]} [MarketplaceId] Array of marketplace IDs to generate reports covering\r\n     * @returns {ReportRequestInfo}\r\n     */\r\n    requestReport(...params) {\r\n        const { requestReport: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static requestReport(...params) { return staticMws.requestReport(...params); }\r\n\r\n    /**\r\n     * Returns a list of report requests that you can use to get the ReportRequestId for a report\r\n     * After calling requestReport, you should call this function occasionally to see if/when the report\r\n     * has been processed.\r\n     *\r\n     * @async\r\n     * @param {object} [options] Options to pass to GetReportRequestList\r\n     * @param {string[]} [ReportRequestIdList] List of report request IDs @see {@link requestReport}\r\n     * @param {string[]} [ReportTypeList] List of Report Types @see {@link REQUEST_REPORT_TYPES}\r\n     * @param {string[]} [ReportProcessingStatusList] List of Report Processing\r\n     * Status @see {@link REPORT_PROCESSING_STATUS_TYPES}\r\n     * @param {number} [MaxCount=10] Maximum number of report requests to return, max is 100\r\n     * @param {Date} [RequestedFromDate=90-days-past] Oldest date to search for\r\n     * @param {Date} [RequestedToDate=Now] Newest date to search for\r\n     * @returns {GetReportRequestListResult[]}\r\n     */\r\n    getReportRequestList(...params) {\r\n        const { getReportRequestList: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getReportRequestList(...params) { return staticMws.getReportRequestList(...params); }\r\n\r\n    /**\r\n     * Download a specific report identified by the ReportId and return it\r\n     *\r\n     * @async\r\n     * @example mws.getReport({ ReportId: '12660293969017879' });\r\n     *\r\n     * @param {object} options - GetReport options, should contain a [ReportId]\r\n     * @param {string} options.ReportId - Report number from [GetReportList] or [GeneratedReportId] from [GetReportRequestListResult]\r\n     * @returns {(Array|object)} - Contents of the report to return (format may vary WIDELY between different reports generated, see [ReportType](https://docs.developer.amazonservices.com/en_US/reports/Reports_ReportType.html))\r\n     */\r\n    getReport(options) {\r\n        const { getReport: helper } = require('./helpers/reports');\r\n        return helper(this)(options);\r\n    }\r\n\r\n    static getReport(...params) { return staticMws.getReport(...params); }\r\n\r\n    /**\r\n     * TODO: write documentation for getReportList\r\n    */\r\n    getReportList(...params) {\r\n        const { getReportList: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getReportList(...params) { return staticMws.getReportList(...params); }\r\n\r\n    /**\r\n     * TODO: write documentation for getReportListByNextToken\r\n     * (or just roll getReportList and getReportListByNextToken into the same wrapper)\r\n     * (that wrapper might be getReportListAll, and just rename it)\r\n     */\r\n    getReportListByNextToken(...params) {\r\n        const { getReportListByNextToken: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getReportListByNextToken(...params) {\r\n        return staticMws.getReportListByNextToken(...params);\r\n    }\r\n\r\n    /**\r\n     * TODO: write documentation for getReportListAll (or see comment on getReportListByNextToken)\r\n    */\r\n    getReportListAll(...params) {\r\n        const { getReportListAll: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getReportListAll(...params) { return staticMws.getReportListAll(...params); }\r\n\r\n    /**\r\n     * TODO: Document requestAndDownloadReport\r\n    */\r\n    requestAndDownloadReport(...params) {\r\n        const { requestAndDownloadReport: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static requestAndDownloadReport(...params) {\r\n        return staticMws.requestAndDownloadReport(...params);\r\n    }\r\n\r\n    /**\r\n     * TO DO: WRITE DOCUMENTATION\r\n     */\r\n    manageReportSchedule(...params) {\r\n        const { manageReportSchedule: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static manageReportSchedule(...params) { return staticMws.manageReportSchedule(...params); }\r\n\r\n    /**\r\n     * TO DO: WRITE DOCUMENTATION\r\n     */\r\n    updateReportAcknowledgements(...params) {\r\n        const { updateReportAcknowledgements: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static updateReportAcknowledgements(...params) {\r\n        return staticMws.updateReportAcknowledgements(...params);\r\n    }\r\n\r\n    /**\r\n     * TO DO: WRITE DOCUMENTATION\r\n     */\r\n    getReportScheduleList(...params) {\r\n        const { getReportScheduleList: helper } = require('./helpers/reports');\r\n        return helper(this)(...params);\r\n    }\r\n\r\n    static getReportScheduleList(...params) {\r\n        return staticMws.getReportScheduleList(...params);\r\n    }\r\n\r\n    /* eslint-enable global-require */\r\n}\r\n\r\n/**\r\n * contains {@link MWS_MARKETPLACES}, {@link MARKET_CURRENCY}, {@link MWS_ENDPOINTS}\r\n * @name constants\r\n * @memberof MwsAdvanced\r\n * @typedef {object}\r\n * @params {object} MWS_MARKETPLACES\r\n */\r\nMwsAdvanced.constants = constants;\r\nmodule.exports = MwsAdvanced;\r\n// module.exports.constants = constants;\r\n"]}