New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intercom-client

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intercom-client - npm Package Compare versions

Comparing version 2.11.0 to 2.11.2

9

dist/admin.js

@@ -14,5 +14,3 @@ "use strict";

var Admin =
/*#__PURE__*/
function () {
var Admin = /*#__PURE__*/function () {
function Admin(client) {

@@ -39,2 +37,7 @@ _classCallCheck(this, Admin);

}
}, {
key: "away",
value: function away(id, params, f) {
return this.client.put("/admins/".concat(id, "/away"), params, f);
}
}]);

@@ -41,0 +44,0 @@

@@ -14,5 +14,3 @@ "use strict";

var Bulk =
/*#__PURE__*/
function () {
var Bulk = /*#__PURE__*/function () {
function Bulk(client, dataType) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Bulk);

@@ -50,5 +50,3 @@ "use strict";

var Client =
/*#__PURE__*/
function () {
var Client = /*#__PURE__*/function () {
function Client() {

@@ -55,0 +53,0 @@ var _this = this;

@@ -18,5 +18,3 @@ "use strict";

var Company =
/*#__PURE__*/
function () {
var Company = /*#__PURE__*/function () {
function Company(client) {

@@ -23,0 +21,0 @@ _classCallCheck(this, Company);

@@ -18,5 +18,3 @@ "use strict";

var Contact =
/*#__PURE__*/
function () {
var Contact = /*#__PURE__*/function () {
function Contact(client) {

@@ -23,0 +21,0 @@ _classCallCheck(this, Contact);

@@ -14,5 +14,3 @@ "use strict";

var Conversation =
/*#__PURE__*/
function () {
var Conversation = /*#__PURE__*/function () {
function Conversation(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Conversation);

@@ -14,5 +14,3 @@ "use strict";

var Counts =
/*#__PURE__*/
function () {
var Counts = /*#__PURE__*/function () {
function Counts(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Counts);

@@ -14,5 +14,3 @@ "use strict";

var Customer =
/*#__PURE__*/
function () {
var Customer = /*#__PURE__*/function () {
function Customer(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Customer);

@@ -18,5 +18,3 @@ "use strict";

var Event =
/*#__PURE__*/
function () {
var Event = /*#__PURE__*/function () {
function Event(client) {

@@ -23,0 +21,0 @@ _classCallCheck(this, Event);

@@ -50,5 +50,3 @@ "use strict";

var IdentityVerification =
/*#__PURE__*/
function () {
var IdentityVerification = /*#__PURE__*/function () {
function IdentityVerification() {

@@ -55,0 +53,0 @@ _classCallCheck(this, IdentityVerification);

@@ -14,5 +14,3 @@ "use strict";

var Message =
/*#__PURE__*/
function () {
var Message = /*#__PURE__*/function () {
function Message(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Message);

@@ -14,5 +14,3 @@ "use strict";

var Note =
/*#__PURE__*/
function () {
var Note = /*#__PURE__*/function () {
function Note(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Note);

@@ -18,5 +18,3 @@ "use strict";

var Scroll =
/*#__PURE__*/
function () {
var Scroll = /*#__PURE__*/function () {
function Scroll(client, dataType) {

@@ -23,0 +21,0 @@ _classCallCheck(this, Scroll);

@@ -14,5 +14,3 @@ "use strict";

var Segment =
/*#__PURE__*/
function () {
var Segment = /*#__PURE__*/function () {
function Segment(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Segment);

@@ -14,3 +14,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -23,5 +23,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Snippet =
/*#__PURE__*/
function () {
var Snippet = /*#__PURE__*/function () {
function Snippet(settings) {

@@ -28,0 +26,0 @@ _classCallCheck(this, Snippet);

@@ -14,5 +14,3 @@ "use strict";

var Tag =
/*#__PURE__*/
function () {
var Tag = /*#__PURE__*/function () {
function Tag(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Tag);

@@ -14,3 +14,3 @@ "use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -23,5 +23,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var UserData =
/*#__PURE__*/
function () {
var UserData = /*#__PURE__*/function () {
function UserData(settings) {

@@ -28,0 +26,0 @@ _classCallCheck(this, UserData);

@@ -22,5 +22,3 @@ "use strict";

var User =
/*#__PURE__*/
function () {
var User = /*#__PURE__*/function () {
function User(client) {

@@ -27,0 +25,0 @@ _classCallCheck(this, User);

@@ -14,5 +14,3 @@ "use strict";

var Visitor =
/*#__PURE__*/
function () {
var Visitor = /*#__PURE__*/function () {
function Visitor(client) {

@@ -19,0 +17,0 @@ _classCallCheck(this, Visitor);

{
"name": "intercom-client",
"version": "2.11.0",
"version": "2.11.2",
"description": "Official Node bindings to the Intercom API",

@@ -21,16 +21,17 @@ "homepage": "https://github.com/intercom/intercom-node",

"dependencies": {
"bluebird": "^3.3.4",
"bluebird": "^3.7.2",
"htmlencode": "^0.0.4",
"lodash": "^4.17.15",
"lodash": "^4.17.19",
"request": "^2.88.0"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/register": "^7.4.4",
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"@babel/register": "^7.13.16",
"babel-eslint": "^10.0.2",
"eslint": "^6.0.1",
"eslint": "^6.8.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-eslint": "^4.0.2",
"gulp-cli": "^2.2.0",
"gulp-eslint": "4.0.2",
"gulp-exclude-gitignore": "^1.0.0",

@@ -40,3 +41,3 @@ "gulp-istanbul": "^1.1.3",

"gulp-plumber": "^1.2.1",
"nock": "7.5.0",
"nock": "^13.0.11",
"sinon": "^7.3.2"

@@ -43,0 +44,0 @@ },

# intercom-node
> Official Node bindings to the Intercom API
[![Circle CI](https://circleci.com/gh/intercom/intercom-node.png?style=badge)](https://circleci.com/gh/intercom/intercom-node)
[![Circle CI](https://circleci.com/gh/intercom/intercom-node.png?style=shield)](https://circleci.com/gh/intercom/intercom-node)
[![npm](https://img.shields.io/npm/v/intercom-client)](https://www.npmjs.com/package/intercom-client)
![Intercom API Version](https://img.shields.io/badge/Intercom%20API%20Version-1.3-blue)
[![npm version](https://badge.fury.io/js/intercom-client.svg)](http://badge.fury.io/js/intercom-client)
> Official Node bindings to the [Intercom API](https://api.intercom.io/docs)
## Project Updates
### Maintenance
We're currently building a new team to provide in-depth and dedicated SDK support.
In the meantime, we'll be operating on limited capacity, meaning all pull requests will be evaluated on a best effort basis and will be limited to critical issues.
We'll communicate all relevant updates as we build this new team and support strategy in the coming months.
## Installation
[![docker_image 1](https://cloud.githubusercontent.com/assets/15954251/17524401/5743439e-5e56-11e6-8567-d3d9da1727da.png)](https://hub.docker.com/r/intercom/sdk-images/) <br>
Try out our [Docker Image (Beta)](https://hub.docker.com/r/intercom/sdk-images/) to help you get started more quickly. <br>
It should make it easier to get setup with the SDK and start interacting with the API. <br>
(Note, this is in Beta and is for testing purposes only, it should not be used in production)
```bash
npm install intercom-client
yarn add intercom-client
```

@@ -24,3 +30,3 @@

```bash
npm test
yarn test
```

@@ -33,3 +39,3 @@

```bash
gulp babel
yarn gulp babel
```

@@ -51,4 +57,3 @@

Create a client:
#### Using Access Tokens
Create a client using access tokens:

@@ -67,5 +72,7 @@ ```node

});
```
// Or
Or
```node
client.users.list(function (err, d) {

@@ -102,3 +109,15 @@ // err is an error response object, or null

### Setting the API version
We version our API (see the "Choose Version" section of the [API & Webhooks Reference](https://developers.intercom.com/intercom-api-reference/reference) for details). You can specify which version of the API to use when performing API requests using request options:
```node
var client = new Intercom.Client({ token: 'my_token' });
client.useRequestOpts({
headers: {
'Intercom-Version': 1.2
}
});
```
## Users

@@ -232,3 +251,2 @@

```node

@@ -301,3 +319,2 @@ // Find contact by id

## Companies

@@ -337,3 +354,2 @@

```node

@@ -350,3 +366,2 @@ // Find company by id

## Events

@@ -408,3 +423,3 @@

```
```node
// Find admin by ID

@@ -414,2 +429,7 @@ client.admins.find('123456789', callback);

```node
// Update admin away mode and reassign settings
client.admins.away('123456789', {'away_mode_enabled': true, 'away_mode_reassign': false}, callback);
```
## Tags

@@ -503,3 +523,2 @@

```node

@@ -621,3 +640,2 @@ // Fetch a conversation

## Pull Requests

@@ -624,0 +642,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc