deskbookers
Advanced tools
Comparing version 3.2.5 to 3.3.5
@@ -7,2 +7,6 @@ # Change Log | ||
## 3.2.5 - 2017-06-30 | ||
### Changes | ||
- Added `Notifications` resource | ||
## 3.1.0 - 2017-06-22 | ||
@@ -9,0 +13,0 @@ ### Changes |
@@ -61,5 +61,9 @@ (function (global, factory) { | ||
}, | ||
feature: { | ||
features: { | ||
host: API_FEATURE_HOST, | ||
path: API_FEATURE_PATH | ||
}, | ||
notifications: { | ||
host: API_FEATURE_HOST, | ||
path: API_FEATURE_PATH | ||
} | ||
@@ -66,0 +70,0 @@ } : _ref$sources; |
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['module', 'exports', './account', './Actions', './Availability', './Cart', './Events', './Features', './Spaces', './Bookings'], factory); | ||
define(['module', 'exports', './account', './Actions', './Availability', './Cart', './Events', './Features', './Spaces', './Notifications', './Bookings'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(module, exports, require('./account'), require('./Actions'), require('./Availability'), require('./Cart'), require('./Events'), require('./Features'), require('./Spaces'), require('./Bookings')); | ||
factory(module, exports, require('./account'), require('./Actions'), require('./Availability'), require('./Cart'), require('./Events'), require('./Features'), require('./Spaces'), require('./Notifications'), require('./Bookings')); | ||
} 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.Bookings); | ||
factory(mod, mod.exports, global.account, global.Actions, global.Availability, global.Cart, global.Events, global.Features, global.Spaces, global.Notifications, global.Bookings); | ||
global.index = mod.exports; | ||
} | ||
})(this, function (module, exports, _account, _Actions, _Availability, _Cart, _Events, _Features, _Spaces, _Bookings) { | ||
})(this, function (module, exports, _account, _Actions, _Availability, _Cart, _Events, _Features, _Spaces, _Notifications, _Bookings) { | ||
'use strict'; | ||
@@ -35,2 +35,4 @@ | ||
var _Notifications2 = _interopRequireDefault(_Notifications); | ||
var _Bookings2 = _interopRequireDefault(_Bookings); | ||
@@ -52,2 +54,3 @@ | ||
spaces: _Spaces2.default, | ||
notifications: _Notifications2.default, | ||
bookings: _Bookings2.default | ||
@@ -54,0 +57,0 @@ }; |
{ | ||
"name": "deskbookers", | ||
"version": "3.2.5", | ||
"version": "3.3.5", | ||
"description": "Deskbookers API JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -72,3 +72,9 @@ # Deskbookers JavaScript SDK | ||
* [`updateFeatureByVenue(venueId, featureName, feature)`](docs/features.md#updatefeaturebyvenuevenueid-featurename-feature) | ||
* notifications | ||
* [`list(userId, start, limit, type, unread, noCache)`](docs/notifications.md#listuserid-start-limit-type-unread-nocache) | ||
* [`count(userId, start, limit, type, unread, noCache)`](docs/notifications.md#countuserid-start-limit-type-unread-nocache) | ||
* [`create(notification)`](docs/notifications.md#createnotification) | ||
* [`update(userId, body)`](docs/notifications.md#updateuserid-body) | ||
* [`delete()`](docs/notifications.md#delete) | ||
* bookings | ||
* [`month(date, venueId)`](docs/bookings.md#monthdate-venueid) |
@@ -34,3 +34,2 @@ import dotenv from 'dotenv' | ||
test('list features', async t => { | ||
@@ -71,3 +70,2 @@ // Prepare API | ||
) | ||
console.log(data) | ||
t.truthy(data) | ||
@@ -114,7 +112,13 @@ }) | ||
let start = new Date().setDate(new Date().getDate()-20) | ||
let end = new Date().setDate(new Date().getDate()+5) | ||
let end = null | ||
const data = await deskbookers.features.updateFeatureByVenue( | ||
2, 'bookingTool', {enabled: true, start} | ||
2, | ||
'bookingTool', | ||
{ | ||
enabled: true, | ||
start, | ||
end | ||
} | ||
) | ||
t.truthy(data) | ||
}) |
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
298909
42
4207
79
32