deskbookers
Advanced tools
Comparing version 5.3.0 to 5.4.1
@@ -47,2 +47,4 @@ (function (global, factory) { | ||
var API_PAYMENTS_PATH = ''; | ||
var API_REPORTS_HOST = 'api-reports.deskbookers.com'; | ||
var API_REPORTS_PATH = ''; | ||
@@ -77,2 +79,6 @@ var Deskbookers = function Deskbookers(_ref) { | ||
path: API_PAYMENTS_PATH | ||
}, | ||
reports: { | ||
host: API_REPORTS_HOST, | ||
path: API_REPORTS_PATH | ||
} | ||
@@ -79,0 +85,0 @@ } : _ref$sources; |
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['module', 'exports', './account', './Actions', './Availability', './Cart', './Events', './Features', './Spaces', './Notifications', './Bookings', './Venues', './payments'], factory); | ||
define(['module', 'exports', './account', './Actions', './Availability', './Cart', './Events', './Features', './Spaces', './Notifications', './Bookings', './Venues', './payments', './reports'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(module, exports, require('./account'), require('./Actions'), require('./Availability'), require('./Cart'), require('./Events'), require('./Features'), require('./Spaces'), require('./Notifications'), require('./Bookings'), require('./Venues'), require('./payments')); | ||
factory(module, exports, require('./account'), require('./Actions'), require('./Availability'), require('./Cart'), require('./Events'), require('./Features'), require('./Spaces'), require('./Notifications'), require('./Bookings'), require('./Venues'), require('./payments'), require('./reports')); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod, mod.exports, global.account, global.Actions, global.Availability, global.Cart, global.Events, global.Features, global.Spaces, global.Notifications, global.Bookings, global.Venues, global.payments); | ||
factory(mod, mod.exports, global.account, global.Actions, global.Availability, global.Cart, global.Events, global.Features, global.Spaces, global.Notifications, global.Bookings, global.Venues, global.payments, global.reports); | ||
global.index = mod.exports; | ||
} | ||
})(this, function (module, exports, _account, _Actions, _Availability, _Cart, _Events, _Features, _Spaces, _Notifications, _Bookings, _Venues, _payments) { | ||
})(this, function (module, exports, _account, _Actions, _Availability, _Cart, _Events, _Features, _Spaces, _Notifications, _Bookings, _Venues, _payments, _reports) { | ||
'use strict'; | ||
@@ -43,2 +43,4 @@ | ||
var _reports2 = _interopRequireDefault(_reports); | ||
function _interopRequireDefault(obj) { | ||
@@ -61,5 +63,6 @@ return obj && obj.__esModule ? obj : { | ||
venues: _Venues2.default, | ||
payments: _payments2.default | ||
payments: _payments2.default, | ||
reports: _reports2.default | ||
}; | ||
module.exports = exports['default']; | ||
}); |
@@ -68,2 +68,4 @@ (function (global, factory) { | ||
_this.source = 'payments'; | ||
// Create sub-resources | ||
@@ -70,0 +72,0 @@ _this.users = new _Users2.default(api); |
{ | ||
"name": "deskbookers", | ||
"version": "5.3.0", | ||
"version": "5.4.1", | ||
"description": "Deskbookers API JavaScript SDK", | ||
@@ -26,2 +26,3 @@ "main": "dist/index.js", | ||
"bcryptjs": "^2.4.0", | ||
"deskbookers-phpurlencode": "1.0.0", | ||
"dotenv": "^2.0.0", | ||
@@ -33,3 +34,2 @@ "hash.js": "^1.0.3", | ||
"moment": "^2.17.1", | ||
"deskbookers-phpurlencode": "1.0.0", | ||
"platform": "^1.3.4", | ||
@@ -36,0 +36,0 @@ "qs": "^6.3.0", |
@@ -96,1 +96,4 @@ # Deskbookers JavaScript SDK | ||
* [`users.setDefaultSource({userId, sourceId})`](docs/payments.md#users.setdefaultsourceuserid-sourceid) | ||
* reports | ||
* [`reports.bookings.enquire({venueId, type, start, end, task})`](docs/reports.md#bookingsenquirevenueid-type-start-end-task) | ||
* [`reports.bookings.retrieve({venueId, type, jobId})`](docs/reports.md#bookingsretrievevenueid-type-jobid) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
357795
53
5629
99
42