@sprucelabs/sprucebot-node
Advanced tools
Comparing version 7.4.3 to 7.4.4
@@ -6,10 +6,13 @@ # Change Log | ||
## [7.4.3](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v7.4.2...v7.4.3) (2018-10-07) | ||
## [7.4.4](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v7.4.3...v7.4.4) (2018-10-08) | ||
**Note:** Version bump only for package @sprucelabs/sprucebot-node | ||
### Bug Fixes | ||
* emit event as enterprise skill ([da4dd2d](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/commit/da4dd2d)) | ||
<a name="6.70.10"></a> | ||
@@ -16,0 +19,0 @@ ## [6.70.10](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.70.9...v6.70.10) (2018-09-16) |
18
index.js
@@ -548,3 +548,2 @@ const Https = require('./https') | ||
async eCreateLocations({ organizationId, locations }) { | ||
const data = locations | ||
const result = await this.https.post( | ||
@@ -568,2 +567,19 @@ `/e/organizations/${organizationId}/locations`, | ||
/** | ||
* Emit any event as an Enterprise skill. | ||
* | ||
* @param {Object} response | ||
*/ | ||
async eEmitEvent({ userId, locationId, eventName, payload }) { | ||
const result = await this.https.post( | ||
`/e/locations/${locationId}/users/${userId}/emit`, | ||
{ | ||
eventName, | ||
payload | ||
} | ||
) | ||
return result | ||
} | ||
/** | ||
* To stop race conditions, you can have requests wait before starting the next. | ||
@@ -570,0 +586,0 @@ * |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "7.4.3", | ||
"version": "7.4.4", | ||
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1bd36631afb729bc24df434616139163653e8cf5" | ||
"gitHead": "fb513a098966d100c0e3b72d1715346b37baacfe" | ||
} |
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
387481
8387