Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amadeus

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amadeus - npm Package Compare versions

Comparing version 5.7.1 to 6.0.0

lib/amadeus/namespaces/airport/direct-destinations.js

20

CHANGELOG.md
# Changelog
## 6.0.0 - 2022-05-20
Decommission AI-Generated Photos API
Fix the initialization of client without parameters
Add X-HTTP-Method-Override in HTTP headers for 6 endpoints
Add support for the [Airport Routes API](https://developers.amadeus.com/self-service/category/air/api-doc/airport-routes/api-reference)
Add support for the [Travel Restrictions API](https://developers.amadeus.com/self-service/category/covid-19-and-travel-safety/api-doc/travel-restrictions/api-reference)
Add support for the [Hotel Search API V3](https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-search/api-reference)
Add support for the [Hotel List API](https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-list/api-reference)
## 5.7.1 - 2021-11-30
Migrate to Github actions
Migrate to Github Actions

@@ -72,3 +88,3 @@ ## 5.7.0 - 2021-05-19

Add support for the A[I-Generated Photos](https://developers.amadeus.com/self-service/category/trip/api-doc/ai-generated-photos)
Add support for the AI-Generated Photos

@@ -75,0 +91,0 @@ > The AI-Generated Photos API returns a link to download a rendered image of a landscape. The image size is 512x512 pixels and the currently available image categories are BEACH and MOUNTAIN. The link to download the AI-generated picture is valid for 24 hours. This API is an experimental project created by the Amadeus AI Lab using the Nvidia StyleGAN framework. This API is free to use and we welcome any feedback you may have about improvements.

5

lib/amadeus.js

@@ -34,2 +34,4 @@ "use strict";

var _duty_of_care = _interopRequireDefault(require("./amadeus/namespaces/duty_of_care"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -110,2 +112,3 @@

this.location = new _location["default"](this.client);
this.dutyOfCare = new _duty_of_care["default"](this.client);
}

@@ -259,2 +262,2 @@ /**

module.exports = exports["default"];
//# s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iAqIGBgYGpzXG4gKiBhbWFkZXVzLnJlZmVyZW5jZURhdGEubG9jYXRpb24uZ2V0KHtcbiAqICAga2V5d29yZDogJ2xvbicsXG4gKiAgIHN1YlR5cGU6IEFtYWRldXMubG9jYXRpb24uYW55XG4gKiB9KTtcbiAqIGBgYFxuICpcbiAqIEN1cnJlbnRseSBhdmFpbGFibGUgYXJlIHRoZSB0eXBlcyBgLmFpcnBvcnRgLCBgLmNpdHlgLCBhbmQgYC5hbnlgXG4gKi9cbkFtYWRldXMubG9jYXRpb24gPSB7XG4gIGFpcnBvcnQ6ICdBSVJQT1JUJyxcbiAgY2l0eTogJ0NJVFknLFxuICBhbnk6ICdBSVJQT1JULENJVFknXG59O1xuXG4vKipcbiAqIEEgaGFuZHkgbGlzdCBvZiBkaXJlY3Rpb24gdHlwZXMsIHRvIGJlIHVzZWQgaW4gdGhlIEZsaWdodCBCdXNpZXN0IFBlcmlvZCBBUEk6XG4gKlxuICogYGBganNcbiAqIGFtYWRldXMudHJhdmVsLmFuYWx5dGljcy5haXJUcmFmZmljLmJ1c2llc3RQZXJpb2QuZ2V0KHtcbiAqICAgY2l0eUNvZGU6ICdwYXInLFxuICogICBwZXJkaW9kOiAyMDE1LFxuICogICBkaXJlY3Rpb246IEFtYWRldXMuZGlyZWN0aW9uLmFycml2aW5nXG4gKiB9KTtcbiAqIGBgYFxuICpcbiAqIEN1cnJlbnRseSBhdmFpbGFibGUgYXJlIHRoZSB0eXBlcyBgLmFycml2aW5nYCBhbmQgYC5kZXBhcnRpbmdgXG4gKi9cblxuQW1hZGV1cy5kaXJlY3Rpb24gPSB7XG4gIGFycml2aW5nOiAnQVJSSVZJTkcnLFxuICBkZXBhcnRpbmc6ICdERVBBUlRJTkcnXG59O1xuXG5leHBvcnQgZGVmYXVsdCBBbWFkZXVzO1xuIl19

@@ -62,4 +62,6 @@ "use strict";

};
this.ListHTTPOverride = ['/v2/shopping/flight-offers', '/v1/shopping/seatmaps', '/v1/shopping/availability/flight-availabilities', '/v2/shopping/flight-offers/prediction', '/v1/shopping/flight-offers/pricing', '/v1/shopping/flight-offers/upselling'];
this.addAuthorizationHeader();
this.addContentTypeHeader();
this.addHTTPOverrideHeader();
} // PROTECTED

@@ -179,2 +181,17 @@

}
/**
* Adds HTTPOverride method if it is required
*
* @private
*/
}, {
key: "addHTTPOverrideHeader",
value: function addHTTPOverrideHeader() {
if (this.verb === 'POST' && this.ListHTTPOverride.includes(this.path)) {
this.headers['X-HTTP-Method-Override'] = 'GET';
}
return;
}
}]);

@@ -188,2 +205,2 @@

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL2NsaWVudC9yZXF1ZXN0LmpzIl0sIm5hbWVzIjpbIlJlcXVlc3QiLCJvcHRpb25zIiwiaG9zdCIsInBvcnQiLCJzc2wiLCJzY2hlbWUiLCJ2ZXJiIiwicGF0aCIsInBhcmFtcyIsInF1ZXJ5UGF0aCIsImZ1bGxRdWVyeVBhdGgiLCJiZWFyZXJUb2tlbiIsImNsaWVudFZlcnNpb24iLCJsYW5ndWFnZVZlcnNpb24iLCJyZXBsYWNlIiwiYXBwSWQiLCJhcHBWZXJzaW9uIiwiaGVhZGVycyIsInVzZXJBZ2VudCIsImFkZEF1dGhvcml6YXRpb25IZWFkZXIiLCJhZGRDb250ZW50VHlwZUhlYWRlciIsInFzIiwic3RyaW5naWZ5Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBcUJNQSxPOzs7QUFDSixtQkFBWUMsT0FBWixFQUFxQjtBQUFBOztBQUNuQixTQUFLQyxJQUFMLEdBQXVCRCxPQUFPLENBQUNDLElBQS9CO0FBQ0EsU0FBS0MsSUFBTCxHQUF1QkYsT0FBTyxDQUFDRSxJQUEvQjtBQUNBLFNBQ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c1snWC1IVFRQLU1ldGhvZC1PdmVycmlkZSddID0gJ0dFVCc7XG4gICAgfVxuICAgIHJldHVybjtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBSZXF1ZXN0O1xuIl19

@@ -120,5 +120,8 @@ "use strict";

var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
var value = options[key];
var envKey = "AMADEUS_".concat(key.toUpperCase());
var value = options[key]; //Env variables names expected to be in SNAKE_CASE and uppercase
var envKey = "AMADEUS_".concat(key.replace(/[A-Z]/g, function (c) {
return "_".concat(c.toLowerCase());
}).toUpperCase());
if (value == undefined) {

@@ -175,2 +178,2 @@ value = options[key];

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL2NsaWVudC92YWxpZGF0b3IuanMiXSwibmFtZXMiOlsiSE9TVFMiLCJSRUNPR05JWkVEX09QVElPTlMiLCJWYWxpZGF0b3IiLCJjbGllbnQiLCJvcHRpb25zIiwiaW5pdGlhbGl6ZUNsaWVudENyZWRlbnRpYWxzIiwiaW5pdGlhbGl6ZUxvZ2dlciIsImluaXRpYWxpemVIb3N0IiwiaW5pdGlhbGl6ZUN1c3RvbUFwcCIsImluaXRpYWxpemVIdHRwIiwid2Fybk9uVW5yZWNvZ25pemVkT3B0aW9ucyIsImNsaWVudElkIiwiaW5pdFJlcXVpcmVkIiwiY2xpZW50U2VjcmV0IiwibG9nZ2VyIiwiaW5pdE9wdGlvbmFsIiwiY29uc29sZSIsImxvZ0xldmVsIiwiaG9zdG5hbWUiLCJob3N0IiwicG9ydCIsInNzbCIsImN1c3RvbUFwcElkIiwiY3VzdG9tQXBwVmVyc2lvbiIsIm5ldHdvcmsiLCJodHRwcyIsImh0dHAiLCJrZXkiLCJyZXN1bHQiLCJBcmd1bWVudEVycm9yIiwiZmFsbGJhY2siLCJ2YWx1ZSIsImVudktleSI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gICB9XG4gICAgfSk7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cbn1cblxuLy8gUFJJVkFURVxuXG5jbGFzcyBBcmd1bWVudEVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICBjb25zdHJ1Y3RvcihtZXNzYWdlKSB7XG4gICAgc3VwZXIobWVzc2FnZSk7XG4gICAgdGhpcy5uYW1lID0gJ0FyZ3VtZW50RXJyb3InO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFZhbGlkYXRvcjtcbiJdfQ==

@@ -8,2 +8,4 @@ "use strict";

var _directDestinations = _interopRequireDefault(require("./airport/direct-destinations"));
var _predictions = _interopRequireDefault(require("./airport/predictions"));

@@ -33,2 +35,3 @@

this.client = client;
this.directDestinations = new _directDestinations["default"](client);
this.predictions = new _predictions["default"](client);

@@ -40,2 +43,2 @@ };

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvYWlycG9ydC5qcyJdLCJuYW1lcyI6WyJBaXJwb3J0IiwiY2xpZW50IiwicHJlZGljdGlvbnMiLCJQcmVkaWN0aW9ucyJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOzs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7SUFjTUEsTyxHQUNKLGlCQUFZQyxNQUFaLEVBQW9CO0FBQUE7O0FBQ2xCLE9BQUtBLE1BQUwsR0FBMEJBLE1BQTFCO0FBQ0EsT0FBS0MsV0FBTCxHQUFtQixJQUFJQyx1QkFBSixDQUFnQkYsTUFBaEIsQ0FBbkI7QUFDRCxDOztlQUdZRCxPIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByZWRpY3Rpb25zICAgIGZyb20gJy4vYWlycG9ydC9wcmVkaWN0aW9ucyc7XG5cbi8qKlxuICogQSBuYW1lc3BhY2VkIGNsaWVudCBmb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QUFnQkosTUFBaEIsQ0FBbkI7QUFDRCxDOztlQUdZRCxPIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpcmVjdERlc3RpbmF0aW9ucyBmcm9tICcuL2FpcnBvcnQvZGlyZWN0LWRlc3RpbmF0aW9ucyc7XG5pbXBvcnQgUHJlZGljdGlvbnMgICAgZnJvbSAnLi9haXJwb3J0L3ByZWRpY3Rpb25zJztcblxuLyoqXG4gKiBBIG5hbWVzcGFjZWQgY2xpZW50IGZvciB0aGVcbiAqIGAvdjEvYWlycG9ydGAgZW5kcG9pbnRzXG4gKlxuICogQWNjZXNzIHZpYSB0aGUge0BsaW5rIEFtYWRldXN9IG9iamVjdFxuICpcbiAqIGBgYGpzXG4gKiBsZXQgYW1hZGV1cyA9IG5ldyBBbWFkZXVzKCk7XG4gKiBhbWFkZXVzLmFpcnBvcnQ7XG4gKiBgYGBcbiAqXG4gKiBAcGFyYW0ge0NsaWVudH0gY2xpZW50XG4gKiBAcHJvcGVydHkge3ByZWRpY3Rpb25zfSBwcmVkaWN0aW9uc1xuICovXG5jbGFzcyBBaXJwb3J0IHtcbiAgY29uc3RydWN0b3IoY2xpZW50KSB7XG4gICAgdGhpcy5jbGllbnQgICAgICAgICAgICAgPSBjbGllbnQ7XG4gICAgdGhpcy5kaXJlY3REZXN0aW5hdGlvbnMgPSBuZXcgRGlyZWN0RGVzdGluYXRpb25zKGNsaWVudCk7XG4gICAgdGhpcy5wcmVkaWN0aW9ucyA9IG5ldyBQcmVkaWN0aW9ucyhjbGllbnQpO1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEFpcnBvcnQ7Il19

@@ -8,6 +8,2 @@ "use strict";

var _generated_photos = _interopRequireDefault(require("./files/generated_photos"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -27,3 +23,2 @@

* @param {Client} client
* @property {GeneratedPhotos} generatedPhotos
*/

@@ -34,3 +29,2 @@ var Files = function Files(client) {

this.client = client;
this.generatedPhotos = new _generated_photos["default"](client);
};

@@ -41,2 +35,2 @@

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvbWVkaWEvZmlsZXMuanMiXSwibmFtZXMiOlsiRmlsZXMiLCJjbGllbnQiLCJnZW5lcmF0ZWRQaG90b3MiLCJHZW5lcmF0ZWRQaG90b3MiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O0lBY01BLEssR0FDSixlQUFZQyxNQUFaLEVBQW9CO0FBQUE7O0FBQ2xCLE9BQUtBLE1BQUwsR0FBY0EsTUFBZDtBQUNBLE9BQUtDLGVBQUwsR0FBdUIsSUFBSUMsNEJBQUosQ0FBb0JGLE1BQXBCLENBQXZCO0FBQ0QsQzs7ZUFHWUQsSyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBHZW5lcmF0ZWRQaG90b3MgZnJvbSAnLi9maWxlcy9nZW5lcmF0ZWRfcGhvdG9zJztcblxuLyoqXG4gKiBBIG5hbWVzcGFjZWQgY2xpZW50IGZvciB0aGVcbiAqIGAvdjIvbWVkaWEvZmlsZXNgIGVuZHBvaW50c1xuICpcbiAqIEFjY2VzcyB2aWEgdGhlIHtAbGluayBBbWFkZXVzfSBvYmplY3RcbiAqXG4gKiBgYGBqc1xuICogbGV0IGFtYWRldXMgPSBuZXcgQW1hZGV1cygpO1xuICogYW1hZGV1cy5tZWRpYS5maWxlcztcbiAqIGBgYFxuICpcbiAqIEBwYXJhbSB7Q2xpZW50fSBjbGllbnRcbiAqIEBwcm9wZXJ0eSB7R2VuZXJhdGVkUGhvdG9zfSBnZW5lcmF0ZWRQaG90b3NcbiAqL1xuY2xhc3MgRmlsZXMge1xuICBjb25zdHJ1Y3RvcihjbGllbnQpIHtcbiAgICB0aGlzLmNsaWVudCA9IGNsaWVudDtcbiAgICB0aGlzLmdlbmVyYXRlZFBob3RvcyA9IG5ldyBHZW5lcmF0ZWRQaG90b3MoY2xpZW50KTtcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBGaWxlcztcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvbWVkaWEvZmlsZXMuanMiXSwibmFtZXMiOlsiRmlsZXMiLCJjbGllbnQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7O0lBYU1BLEssR0FDSixlQUFZQyxNQUFaLEVBQW9CO0FBQUE7O0FBQ2xCLE9BQUtBLE1BQUwsR0FBY0EsTUFBZDtBQUNELEM7O2VBR1lELEsiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgbmFtZXNwYWNlZCBjbGllbnQgZm9yIHRoZVxuICogYC92Mi9tZWRpYS9maWxlc2AgZW5kcG9pbnRzXG4gKlxuICogQWNjZXNzIHZpYSB0aGUge0BsaW5rIEFtYWRldXN9IG9iamVjdFxuICpcbiAqIGBgYGpzXG4gKiBsZXQgYW1hZGV1cyA9IG5ldyBBbWFkZXVzKCk7XG4gKiBhbWFkZXVzLm1lZGlhLmZpbGVzO1xuICogYGBgXG4gKlxuICogQHBhcmFtIHtDbGllbnR9IGNsaWVudFxuICovXG5jbGFzcyBGaWxlcyB7XG4gIGNvbnN0cnVjdG9yKGNsaWVudCkge1xuICAgIHRoaXMuY2xpZW50ID0gY2xpZW50O1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEZpbGVzO1xuIl19

@@ -10,2 +10,4 @@ "use strict";

var _hotels = _interopRequireDefault(require("./locations/hotels"));
var _poi = _interopRequireDefault(require("./locations/poi"));

@@ -45,2 +47,3 @@

this.airports = new _airports["default"](client);
this.hotels = new _hotels["default"](client);
this.pointsOfInterest = new _pois["default"](client);

@@ -60,3 +63,3 @@ }

* ```js
* amadeus.referenceData.location.get({
* amadeus.referenceData.locations.get({
* keyword: 'lon',

@@ -88,2 +91,2 @@ * subType: Amadeus.location.any

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvcmVmZXJlbmNlX2RhdGEvbG9jYXRpb25zLmpzIl0sIm5hbWVzIjpbIkxvY2F0aW9ucyIsImNsaWVudCIsImFpcnBvcnRzIiwiQWlycG9ydHMiLCJwb2ludHNPZkludGVyZXN0IiwiUG9pbnRzT2ZJbnRlcmVzdCIsInBhcmFtcyIsImdldCIsInBvaUlkIiwiUG9pbnRPZkludGVyZXN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7SUFjTUEsUzs7O0FBQ0oscUJBQVlDLE1BQVosRUFBb0I7QUFBQTs7QUFDbEIsU0FBS0EsTUFBTCxHQUFjQSxNQUFkO0FBQ0EsU0FBS0MsUUFBTCxHQUFnQixJQUFJQyxvQkFBSixDQUFhRixNQUFiLENBQWhCO0FBQ0EsU0FBS0csZ0JBQUwsR0FBd0IsSUFBSUMsZ0JBQUosQ0FBcUJKLE1BQXJCLENBQXhCO0FBQ0Q7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzswQkFrQmlCO0FBQUEsVUFBYkssTUFBYSx1RUFBSixFQUFJO0FBQ2YsYUFBTyxLQUFLTCxNQUFMLENBQVlNLEdBQVosQ0FBZ0IsOEJBQWhCLEVBQWdERCxNQUFoRCxDQUFQO0FBQ0Q7OztvQ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BpbiBhIGNpdHkgb3IgYWlycG9ydCBuYW1lIG9yIGNvZGVcbiAgICogQHBhcmFtIHtzdHJpbmd9IHBhcmFtcy5zdWJUeXBlIHRoZSB0eXBlIG9mIGxvY2F0aW9uIHRvIHNlYXJjaCBmb3JcbiAgICogQHJldHVybiB7UHJvbWlzZS48UmVzcG9uc2UsUmVzcG9uc2VFcnJvcj59IGEgUHJvbWlzZVxuICAgKlxuICAgKiBGaW5kIGFueSBsb2NhdGlvbiBzdGFydGluZyB3aXRoICdsb24nXG4gICAqXG4gICAqIGBgYGpzXG4gICAqIGFtYWRldXMucmVmZXJlbmNlRGF0YS5sb2NhdGlvbnMuZ2V0KHtcbiAgICogICBrZXl3b3JkOiAnbG9uJyxcbiAgICogICBzdWJUeXBlOiBBbWFkZXVzLmxvY2F0aW9uLmFueVxuICAgKiB9KTtcbiAgICogYGBgXG4gICAqL1xuICBnZXQocGFyYW1zID0ge30pIHtcbiAgICByZXR1cm4gdGhpcy5jbGllbnQuZ2V0KCcvdjEvcmVmZXJlbmNlLWRhdGEvbG9jYXRpb25zJywgcGFyYW1zKTtcbiAgfVxuXG4gIHBvaW50T2ZJbnRlcmVzdChwb2lJZCkge1xuICAgIHJldHVybiBuZXcgUG9pbnRPZkludGVyZXN0KHRoaXMuY2xpZW50LCBwb2lJZCk7XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBMb2NhdGlvbnM7XG4iXX0=

@@ -48,3 +48,3 @@ "use strict";

* ```js
* amadeus.referenceData.urls.locations.airports.get({
* amadeus.referenceData.locations.airports.get({
* longitude: 49.0000,

@@ -71,2 +71,2 @@ * latitude: 2.55

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvcmVmZXJlbmNlX2RhdGEvbG9jYXRpb25zL2FpcnBvcnRzLmpzIl0sIm5h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2F0aW9uIHRvIGJlIGF0IHRoZSBjZW50ZXIgb2ZcbiAgICogICB0aGUgc2VhcmNoIGNpcmNsZSAtIHJlcXVpcmVkXG4gICAqIEBwYXJhbSB7RG91YmxlfSBwYXJhbXMubG9uZ2l0dWRlIGxvbmdpdHVkZSBsb2NhdGlvbiB0byBiZSBhdCB0aGUgY2VudGVyIG9mXG4gICAqICAgdGhlIHNlYXJjaCBjaXJjbGUgLSByZXF1aXJlZFxuICAgKiBAcmV0dXJuIHtQcm9taXNlLjxSZXNwb25zZSxSZXNwb25zZUVycm9yPn0gYSBQcm9taXNlXG4gICAqXG4gICAqIEZpbmQgdGhlIG5lYXJlc3QgYWlycG9ydCB0byB0aGUgNDkuMDAwMCwyLjU1IGxhdC9sb25nXG4gICAqXG4gICAqIGBgYGpzXG4gICAqIGFtYWRldXMucmVmZXJlbmNlRGF0YS5sb2NhdGlvbnMuYWlycG9ydHMuZ2V0KHtcbiAgICogICBsb25naXR1ZGU6IDQ5LjAwMDAsXG4gICAqICAgbGF0aXR1ZGU6IDIuNTVcbiAgICogfSk7XG4gICAqIGBgYFxuICAgKi9cbiAgZ2V0KHBhcmFtcyA9IHt9KSB7XG4gICAgcmV0dXJuIHRoaXMuY2xpZW50LmdldCgnL3YxL3JlZmVyZW5jZS1kYXRhL2xvY2F0aW9ucy9haXJwb3J0cycsIHBhcmFtcyk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQWlycG9ydHM7XG4iXX0=

@@ -24,2 +24,6 @@ "use strict";

var _hotel_offer_search = _interopRequireDefault(require("./shopping/hotel_offer_search"));
var _hotel_offers_search = _interopRequireDefault(require("./shopping/hotel_offers_search"));
var _activities = _interopRequireDefault(require("./shopping/activities"));

@@ -41,3 +45,3 @@

* A namespaced client for the
* `/v1/shopping` and `/v2/shopping` endpoints
* `/v1/shopping`, `/v2/shopping` and `/v3/shopping` endpoints
*

@@ -60,2 +64,4 @@ * Access via the {@link Amadeus} object

* @property {HotelOffersByHotel} hotelOffersByHotel
* @property {HotelOfferSearch} hotelOffers
* @property {HotelOffersSearch} hotelOffers
* @property {Availability} availability

@@ -77,2 +83,3 @@ */

this.hotelOffersByHotel = new _hotel_offers_by_hotel["default"](client);
this.hotelOffersSearch = new _hotel_offers_search["default"](client);
this.activities = new _activities["default"](client);

@@ -82,3 +89,3 @@ this.availability = new _availability["default"](client);

/**
* Loads a namespaced path for a specific offer ID
* Loads a namespaced path for a specific offer ID for Hotel Search V2
*

@@ -96,2 +103,14 @@ * @param {string} [offerId] The ID of the offer for a dedicated hotel

/**
* Loads a namespaced path for a specific offer ID for Hotel Search V3
*
* @param {string} [offerId] The ID of the offer for a dedicated hotel
* @return {HotelOfferSearch}
**/
}, {
key: "hotelOfferSearch",
value: function hotelOfferSearch(offerId) {
return new _hotel_offer_search["default"](this.client, offerId);
}
/**
* Loads a namespaced path for a specific activity ID

@@ -116,2 +135,2 @@ *

module.exports = exports["default"];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbWFkZXVzL25hbWVzcGFjZXMvc2hvcHBpbmcuanMiXSwibmFtZXMiOlsiU2hvcHBpbmciLCJjbGllbnQiLCJmbGlnaHREZXN0aW5hdGlvbnMiLCJGbGlnaHREZXN0aW5hdGlvbnMiLCJmbGlnaHRPZmZlcnMiLCJGbGlnaHRPZmZlcnMiLCJmbGlnaHRPZmZlcnNTZWFyY2giLCJGbGlnaHRPZmZlcnNTZWFyY2giLCJmbGlnaHREYXRlcyIsIkZsaWdodERhdGVzIiwic2VhdG1hcHMiLCJTZWF0bWFwcyIsImhvdGVsT2ZmZXJzIiwiSG90ZWxPZmZlcnMiLCJob3RlbE9mZmVyc0J5SG90ZWwiLCJIb3RlbE9mZmVyc0J5SG90ZWwiLCJhY3Rpdml0aWVzIiwiQWN0aXZpdGllcyIsImF2YWlsYWJpbGl0eSIsIkF2YWlsYWJpbGl0eSIsIm9mZmVySW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gKiBAcmV0dXJuIHtBY3Rpdml0eX1cbiAgICoqL1xuICBhY3Rpdml0eShhY3Rpdml0eUlkKSB7XG4gICAgcmV0dXJuIG5ldyBBY3Rpdml0eSh0aGlzLmNsaWVudCwgYWN0aXZpdHlJZCk7XG4gIH1cblxufVxuXG5leHBvcnQgZGVmYXVsdCBTaG9wcGluZztcbiJdfQ==
{
"name": "amadeus",
"version": "5.7.1",
"version": "6.0.0",
"description": "Node library for the Amadeus travel APIs",

@@ -49,3 +49,6 @@ "main": "lib/amadeus.js",

"Alvaro Navarro",
"Akshit Singla"
"Akshit Singla",
"Anna Tsolakou",
"Minji Kim",
"Gustavo Giunco Bertoldi"
],

@@ -52,0 +55,0 @@ "devDependencies": {

# Amadeus Node SDK
[![Module Version](https://badge.fury.io/js/amadeus.svg)](npmjs)
[![Build Status](https://img.shields.io/travis/amadeus4dev/amadeus-node/master.svg)][travis]
[![Build and Deploy](https://github.com/amadeus4dev/amadeus-node/actions/workflows/build.yml/badge.svg)](https://github.com/amadeus4dev/amadeus-node/actions/workflows/build.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/5accb4b8a41e4e3fd1da/maintainability)](https://codeclimate.com/github/amadeus4dev/amadeus-node/maintainability)
[![Dependencies](.github/images/dependencies.svg)](npmjs)
[![Contact Support](https://img.shields.io/badge/contact-support-blue.svg)][support]
[![Discord](https://img.shields.io/discord/696822960023011329?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/cVrFBqx)

@@ -35,3 +34,3 @@

destinationLocationCode: 'BKK',
departureDate: '2021-08-01',
departureDate: '2022-06-01',
adults: '2'

@@ -177,2 +176,7 @@ }).then(function(response){

```js
//Airport Routes
amadeus.airport.directDestinations.get({
departureAirportCode: 'CDG',
})
// Flight Inspiration Search

@@ -189,10 +193,14 @@ amadeus.shopping.flightDestinations.get({

// Flight Offers Search
// Flight Offers Search GET
amadeus.shopping.flightOffersSearch.get({
originLocationCode: 'SYD',
destinationLocationCode: 'BKK',
departureDate: '2021-08-01',
departureDate: '2022-11-01',
adults: '2'
})
// Flight Offers Search POST
A full example can be found at https://github.com/amadeus4dev/amadeus-code-examples
amadeus.shopping.flightOffersSearch.post(body)
// Flight Offers Price

@@ -202,3 +210,3 @@ amadeus.shopping.flightOffersSearch.get({

destinationLocationCode: 'BKK',
departureDate: '2021-08-01',
departureDate: '2022-11-01',
adults: '1'

@@ -246,3 +254,3 @@ }).then(function(response){

destinationLocationCode: 'BKK',
departureDate: '2021-08-01',
departureDate: '2022-11-01',
adults: '1'

@@ -275,3 +283,3 @@ }).then(function(response){

destinationLocationCode: 'BKK',
departureDate: '2021-04-01',
departureDate: '2022-11-01',
adults: '2'

@@ -346,3 +354,20 @@ }).then(function(response){

// Hotel Search API
//Hotel List API
//Get list of hotels by city code
amadeus.referenceData.locations.hotels.byCity.get({
cityCode: 'PAR'
})
//Get List of hotels by Geocode
amadeus.referenceData.locations.hotels.byGeocode.get({
latitude: 48.83152,
longitude: 2.24691
})
//Get List of hotels by hotelIds
amadeus.referenceData.locations.hotels.byHotels.get({
hotelIds: 'ACPAR245'
})
// Hotel Search API V2
// Get list of hotels by city code

@@ -359,2 +384,11 @@ amadeus.shopping.hotelOffers.get({

// Hotel Search API V3
// Get list of available offers in specific hotels by hotel ids
amadeus.shopping.hotelOffersSearch.get({
hotelIds: 'RTPAR001',
adults: '2'
})
// Check offer conditions of a specific offer id
amadeus.shopping.hotelOfferSearch('XXX').get()
// Hotel Booking API

@@ -454,8 +488,2 @@ amadeus.booking.hotelBookings.post(

// AI-Generated Photos
// Get a link to download a rendered image of a landscape.
amadeus.media.files.generatedPhotos.get({
category: 'BEACH'
})
// Flight Delay Prediction

@@ -481,3 +509,3 @@ // This machine learning API is based on a prediction model that takes the input of the user - time, carrier, airport and aircraft information;

airportCode: 'JFK',
date: '2021-08-01'
date: '2022-18-01'
})

@@ -491,8 +519,16 @@

// Price Flight Analysis
// Flight Price Analysis
amadeus.analytics.itineraryPriceMetrics.get({
originIataCode: 'MAD',
destinationIataCode: 'CDG',
departureDate: '2021-03-13',
departureDate: '2022-03-13',
})
// Travel Restrictions
// The Travel Restrictions API provides up-to-date data on COVID-19 caseloads and travel restrictions for over 200 countries and territories,
// as well as hundreds of cities and regions worldwide.
amadeus.dutyOfCare.diseases.covid19AreaReport.get({
countryCode: 'US',
cityCode: 'NYC'
});

@@ -511,9 +547,5 @@ ```

Our [developer support team](https://developers.amadeus.com/support) is here to
help you. You can find us on
[StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) and
[email](mailto:developers@amadeus.com).
You can find us on [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) or join our developer community on
[Discord](https://discord.gg/cVrFBqx).
[npmjs]: https://www.npmjs.com/package/amadeus
[travis]: http://travis-ci.org/amadeus4dev/amadeus-node
[support]: http://developers.amadeus.com/support
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc