sprucebot-node
Advanced tools
Comparing version 6.22.0-beta.687bfc1 to 6.23.0-beta.2c47903
@@ -6,11 +6,14 @@ # Change Log | ||
<a name="6.22.0-beta.687bfc1"></a> | ||
# [6.22.0-beta.687bfc1](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.21.0...v6.22.0-beta.687bfc1) (2018-07-20) | ||
<a name="6.23.0-beta.2c47903"></a> | ||
# [6.23.0-beta.2c47903](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.22.0...v6.23.0-beta.2c47903) (2018-07-24) | ||
**Note:** Version bump only for package sprucebot-node | ||
### Features | ||
* Add methods for creating locations ([81b8fbd](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/commit/81b8fbd)) | ||
<a name="6.21.0"></a> | ||
@@ -17,0 +20,0 @@ # [6.21.0](https://github.com/sprucelabsai/workspace.sprucebot-skills-kit/compare/v6.20.0...v6.21.0) (2018-07-20) |
25
index.js
@@ -528,2 +528,27 @@ const Https = require('./https') | ||
/** | ||
* Create location (Enterprise Skills only) | ||
* | ||
* @param {String} organizationId | ||
* @param {Array} locations | ||
*/ | ||
async eCreateLocations({ organizationId, locations }) { | ||
const data = locations | ||
const result = await this.https.post( | ||
`/e/organizations/${organizationId}/locations`, | ||
{ locations } | ||
) | ||
return result | ||
} | ||
/** | ||
* Create location (Global Skills only) | ||
* | ||
* @param {Array} locations | ||
*/ | ||
async gCreateLocations({ locations }) { | ||
const result = await this.https.post('/g/locations', { locations }) | ||
return result | ||
} | ||
/** | ||
* To stop race conditions, you can have requests wait before starting the next. | ||
@@ -530,0 +555,0 @@ * |
{ | ||
"name": "sprucebot-node", | ||
"version": "6.22.0-beta.687bfc1", | ||
"version": "6.23.0-beta.2c47903", | ||
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "687bfc1c7b0d556102efbf3d0e0cadf942ba2903" | ||
"gitHead": "2c47903640bb30c15ecdc42c4df05bfb3ecce896" | ||
} |
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
378901
8346