sprucebot-node
Advanced tools
Comparing version 3.0.0 to 6.6.0-beta.34deaa7
55
index.js
@@ -35,2 +35,3 @@ const Https = require('./https') | ||
this.iframeUrl = interfaceUrl || required('interfaceUrl') | ||
this.publicUrl = (interfaceUrl || required('interfaceUrl')) + '/public' | ||
this.marketingUrl = | ||
@@ -54,4 +55,5 @@ (interfaceUrl || required('interfaceUrl')) + '/marketing' | ||
console.log( | ||
`🌲 Sprucebot🌲 Skills Kit API ${this | ||
.version}\n\nhost : ${cleanedHost} \nid : ${id} \napiKey : ${apiKey.replace( | ||
`🌲 Sprucebot🌲 Skills Kit API ${ | ||
this.version | ||
}\n\nhost : ${cleanedHost} \nid : ${id} \napiKey : ${apiKey.replace( | ||
/./g, | ||
@@ -73,3 +75,4 @@ '*' | ||
iframeUrl: this.iframeUrl, | ||
marketingUrl: this.marketingUrl | ||
marketingUrl: this.marketingUrl, | ||
publicUrl: this.publicUrl | ||
} | ||
@@ -103,4 +106,4 @@ const results = await this.https.patch('/', data) | ||
* Get a user without a location. GLOBAL SKILLS ONLY | ||
* | ||
* @param {String} userId | ||
* | ||
* @param {String} userId | ||
* @param {Object} Optional query string to be added to the request | ||
@@ -114,3 +117,3 @@ */ | ||
* Get all locations. GLOBAL SKILLS ONLY | ||
* | ||
* | ||
* @param {Object} Optional query string to be added to the request | ||
@@ -123,7 +126,7 @@ */ | ||
/** | ||
* Create a user | ||
* | ||
* @param {Object} values | ||
* @returns {Promise} | ||
*/ | ||
* Create a user | ||
* | ||
* @param {Object} values | ||
* @returns {Promise} | ||
*/ | ||
async createUser(values) { | ||
@@ -134,9 +137,9 @@ return this.https.post('/ge/users', values) | ||
/** | ||
* Update a users role | ||
* | ||
* @param {String} locationId | ||
* @param {String} userId | ||
* @param {String} role | ||
* @returns {Promise} | ||
*/ | ||
* Update a users role | ||
* | ||
* @param {String} locationId | ||
* @param {String} userId | ||
* @param {String} role | ||
* @returns {Promise} | ||
*/ | ||
async updateRole(locationId, userId, role) { | ||
@@ -218,8 +221,8 @@ return this.https.patch( | ||
/** | ||
* ONLY APPLIES TO SKILLS THAT ARE GLOBAL (are not attached to a location). | ||
* This allows Sprucebot to communicate to business owners without them | ||
* actually needing any skills enabled. Core usage only. | ||
* | ||
* @param {String} userId | ||
* @param {String} message | ||
* ONLY APPLIES TO SKILLS THAT ARE GLOBAL (are not attached to a location). | ||
* This allows Sprucebot to communicate to business owners without them | ||
* actually needing any skills enabled. Core usage only. | ||
* | ||
* @param {String} userId | ||
* @param {String} message | ||
*/ | ||
@@ -292,4 +295,4 @@ async globalMessage(userId, message) { | ||
* Get skill meta data by id | ||
* | ||
* @param {String} id | ||
* | ||
* @param {String} id | ||
*/ | ||
@@ -296,0 +299,0 @@ async metaById(id, { locationId, userId } = {}) { |
{ | ||
"name": "sprucebot-node", | ||
"version": "3.0.0", | ||
"version": "6.6.0-beta.34deaa7", | ||
"description": "Jam with the Sprucebot API in your favorite scripting language. 🤓", | ||
"keywords": [ | ||
"node", | ||
"components", | ||
"sprucebot", | ||
"sprucelabs" | ||
], | ||
"homepage": "https://github.com/sprucelabsai/sprucebot-skills-kit", | ||
"bugs": { | ||
"url": "https://github.com/sprucelabsai/sprucebot-skills-kit/issues" | ||
}, | ||
"scripts": { | ||
@@ -27,3 +37,4 @@ "lint": "eslint '**/**/*{.js}'", | ||
"collectCoverage": true | ||
} | ||
}, | ||
"gitHead": "34deaa729a1c5cd18b804e306feeddd634cd9bc2" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
373850
8219
2
0
33