⚠️ Changed theverify
argument of theCrispClient.website.inviteWebsiteOperator
method (to be a verification challenge).⚠️ Changed theverify
argument of theCrispClient.website.deleteHelpdesk
method (to be a verification challenge).⚠️ Changed theverify
argument of theCrispClient.website.deleteWebsite
method (to be a verification challenge).
⚠️ Restored the argument of theCrispClient.website.inviteWebsiteOperator
method to its specification from pre-v9.3.0
.
⚠️ Changed the argument of theCrispClient.website.inviteWebsiteOperator
method.
- Added support for the
spam:message
RTM API event. - Added support for the
spam:decision
RTM API event.
- Added the new
CrispClient.website.listSpamConversation
method. - Added the new
CrispClient.website.resolveSpamConversationContent
method. - Added the new
CrispClient.website.submitSpamConversationDecision
method.
⚠️ Removed theCrispClient.website.acquireAnalyticsPoints
method (API route has been removed).⚠️ Removed theCrispClient.website.listAnalyticsFilters
method (API route has been removed).⚠️ Removed theCrispClient.website.listAnalyticsClassifiers
method (API route has been removed).
- Added the new
CrispClient.website.generateAnalytics
method.
⚠️ Changed the argument of theCrispClient.website.batchResolveConversations
method.⚠️ Changed the argument of theCrispClient.website.batchReadConversations
method.⚠️ Changed the argument of theCrispClient.website.batchRemoveConversations
method.
- Added the new
CrispClient.website.updateConversationInbox
method.
- Added the new
CrispClient.website.abortWebsiteDeletion
method.
- Added the new
CrispClient.website.resolveHelpdeskLocaleArticlePage
method.
- Added the new
CrispClient.plugin.getPluginUsageBills
method.
- Added the new
CrispClient.plugin.reportPluginUsageToBill
method.
- Use a
github:
prefix on dependencyfbemitter
to fix Yarn 3 (closes #59).
- Added an options parameter on
CrispClient.website.listHelpdeskLocales(websiteID, pageNumber, options)
.
- Added provenance information upon building NPM package over GitHub Actions.
- Added support for the
session:sync:topic
RTM API event.
- Fixed an issue where
CrispClient.rebindSocket
andCrispClient._connectLoopback
base methods would not work due to undefinedthis
references.
- Updated
socket.io-client
dependency to latest.
- Updated TypeScript definitions.
- Updated TypeScript definitions.
- Added support for all Helpdesk REST API routes, which have been opened to integrations.
- Minor
README.md
title fixes.
- Changed type of exported services in JSDoc to
any
so that TypeScript projects can use resource methods withouttsc
throwing errors.
- Generated up-to-date TypeScript definitions.
- Fixed the automatic generation of TypeScript definitions.
- Added the new
CrispClient.website.listConversationFiles
method.
- Automated the package release process via GitHub Actions (ie.
npm publish
).
- Added
CrispClient.verifyWidget
to verify Widget Events.
⚠️ Renamed theCrispClient.rebind
method intoCrispClient.rebindSocket
(update your code if you use it).
- Added support for receiving Web Hooks through the RTM events pipeline (via
CrispClient.setRtmMode(Crisp.RTM_MODES.WebHooks)
).
- Return more informative error reasons for non
2xx / 3xx
response codes onHEAD
requests.
- Added the new
CrispClient.website.requestUserFeedbackForConversation
method.
- Prevent Got from throwing errors for non
2xx / 3xx
response codes. - Fixed body payload type.
⚠️ Support for NodeJS 8 has been removed. The minimum version is now NodeJS 10.
- Upgraded dependencies (closes #30).
- Added the new
CrispClient.rebind
method, which requests the RTM API to rebind to newly installed/subscribed websites (depending on the authentication tier).
- Added the new
CrispClient.website.getVerifyStatusForConversation
method. - Added the new
CrispClient.website.updateVerifyStatusForConversation
method.
- Added the new
CrispClient.website.removeMessageInConversation
method. - Added support for the
message:removed
RTM API event.
⚠️ Support for NodeJS 6 has been removed. The minimum version is now NodeJS 8.⚠️ TheCrispClient.on
method now returns aPromise
. Please update your code accordingly. We do recommend that you add error catchers.
- The RTM API URL is now dynamically pulled from the REST API, based on the authentication tier. This allows for (much) more efficient message routing at Crisp scale, and offers performance and stability benefits to your integration.
- Fixed an issue where the library would not reconnect to the RTM API when it lost connection with the server.
- Added the new
CrispClient.plugin.getConnectEndpoints
method.
- Upgraded Socket.IO from v2 to v4, meaning that
node-crisp-api
is now connecting to the RTM API over EIO protocol version 4 (versus EIO 3 before).
- Added support for the
session:set_subject
RTM API event.
- Added a new parameter
mode
to theCrispClient.website.initiateNewCallSessionForConversation
method.
- Improved
README.md
references to REST API and RTM API resources.
- Added a new parameter
data
to theCrispClient.website.deliverWidgetDataFetchActionForConversation
method.
- Minor
README.md
title change.
⚠️ The package has been renamed fromnode-crisp-api
tocrisp-api
. Since it is typical of NPM packages to skip thenode-
prefix in their name, we chose to normalize the package name to this community standard. The programmatic API did not change, so you can simply update the package name to the new name in yourpackage.json
and all imports.
- Added the new
CrispClient.website.updatePeopleData
method.
- Fixed TypeScript types not being picked up correctly.
- Added TypeScript definitions.
- Fixed a typo in the
BucketURL
resource include from itsBucket
service.
- The
CrispClient.website.debugExistingBrowsingSession
method has been removed, following the sunset of the LiveDebug feature across our products.
🆘 Major changes follow, that will likely require that you update your integration code. If you want to wait to apply those changes, we recommend that you pin node-crisp-api
to 3.0.0
or lower in your package.json
.
⚠️ All resource methods have been nested into their parent category, eg.website
. So all calls to eg.CrispClient.websiteConversation
orCrispClient.websitePeople
becomeCrispClient.website
. This makes API calls more readable throughout your code.
🆘 Major changes follow, that will likely require that you update your integration code. If you want to wait to apply those changes, we recommend that you pin node-crisp-api
to 2.0.0
or lower in your package.json
.
⚠️ The programmatic interface tonode-crisp-api
has been completely revamped, so that all REST API methods specified in REST API Reference (V1) are also available in this wrapper. Most method names have been changed as to match their name in the reference. Please check the README for a full list of available methods.