Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/intercom-client

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/intercom-client - npm Package Compare versions

Comparing version 2.9.5 to 2.11.0

intercom-client/Visitor.d.ts

77

intercom-client/index.d.ts

@@ -1,4 +0,4 @@

// Type definitions for intercom-client 2.9
// Type definitions for intercom-client 2.11
// Project: https://github.com/intercom/intercom-node
// Definitions by: Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping>
// Definitions by: Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping>, Mikhail Monchak <https://github.com/mikhail-monchak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -10,2 +10,3 @@ // TypeScript Version: 2.2

import { List as LeadList, Lead, LeadIdentifier } from './Lead';
import { Visitor, VisitorIdentifier } from './Visitor';
import { CompanyIdentifier, List as CompanyList, Company } from './Company';

@@ -31,3 +32,3 @@ import { TagIdentifier, List as TagList, Tag, TagOper } from './Tag';

export class Client {
constructor(auth: { token: string } | { appId: string, appApiKey: string });
constructor(auth: { token: string } | { appId: string; appApiKey: string });
constructor(username: string, password: string);

@@ -41,6 +42,7 @@

leads: Leads;
visitors: Visitors;
}
export class ApiResponse<T> extends IncomingMessage {
body: T;
body: T;
}

@@ -63,4 +65,4 @@

listBy(params: {tag_id?: string, segment_id?: string}): Promise<ApiResponse<UserList>>;
listBy(params: {tag_id?: string, segment_id?: string}, cb: callback<ApiResponse<UserList>>): void;
listBy(params: { tag_id?: string; segment_id?: string }): Promise<ApiResponse<UserList>>;
listBy(params: { tag_id?: string; segment_id?: string }, cb: callback<ApiResponse<UserList>>): void;

@@ -89,6 +91,6 @@ scroll: Scroll<User>;

listBy(params: { email?: string, tag_id?: string, segment_id?: string }): Promise<ApiResponse<LeadList>>;
listBy(params: { email?: string, tag_id?: string, segment_id?: string }, cb: callback<ApiResponse<LeadList>>): void;
listBy(params: { email?: string; tag_id?: string; segment_id?: string }): Promise<ApiResponse<LeadList>>;
listBy(params: { email?: string; tag_id?: string; segment_id?: string }, cb: callback<ApiResponse<LeadList>>): void;
find(identifier: LeadIdentifier): Promise<ApiResponse<Lead>>
find(identifier: LeadIdentifier): Promise<ApiResponse<Lead>>;
find(identifier: LeadIdentifier, cb: callback<ApiResponse<Lead>>): void;

@@ -99,5 +101,34 @@

convert(params: { contact: LeadIdentifier, user: UserIdentifier }): Promise<ApiResponse<Lead>>;
convert(params: { contact: LeadIdentifier, user: UserIdentifier }, cb: callback<ApiResponse<Lead>>): void;
convert(params: { contact: LeadIdentifier; user: UserIdentifier }): Promise<ApiResponse<Lead>>;
convert(params: { contact: LeadIdentifier; user: UserIdentifier }, cb: callback<ApiResponse<Lead>>): void;
}
export class Visitors {
update(visitor: VisitorIdentifier & Partial<Visitor>): Promise<ApiResponse<Visitor>>;
update(visitor: VisitorIdentifier & Partial<Visitor>, cb: callback<ApiResponse<Visitor>>): void;
find(identifier: VisitorIdentifier): Promise<ApiResponse<Visitor>>;
find(identifier: VisitorIdentifier, cb: callback<ApiResponse<Visitor>>): void;
delete(id: string): Promise<ApiResponse<Visitor>>;
delete(id: string, cb: callback<ApiResponse<Visitor>>): void;
convert(params: { identifier: VisitorIdentifier; type: 'lead' }): Promise<ApiResponse<Lead>>;
convert(params: { identifier: VisitorIdentifier; type: 'user'; user: UserIdentifier }): Promise<ApiResponse<User>>;
convert(
params: {
identifier: VisitorIdentifier;
type: 'lead';
},
cb: callback<ApiResponse<Lead>>,
): void;
convert(
params: {
identifier: VisitorIdentifier;
type: 'user';
user: UserIdentifier;
},
cb: callback<ApiResponse<User>>,
): void;
}

@@ -118,4 +149,4 @@

listBy(params: {tag_id?: string, segment_id?: string}): Promise<ApiResponse<CompanyList>>;
listBy(params: {tag_id?: string, segment_id?: string}, cb: callback<ApiResponse<CompanyList>>): void;
listBy(params: { tag_id?: string; segment_id?: string }): Promise<ApiResponse<CompanyList>>;
listBy(params: { tag_id?: string; segment_id?: string }, cb: callback<ApiResponse<CompanyList>>): void;

@@ -128,16 +159,16 @@ scroll: Scroll<Company>;

export class Tags {
create(tag: Partial<Tag>): Promise<ApiResponse<Tag>>;
create(tag: Partial<Tag>, cb: callback<ApiResponse<Tag>>): void;
create(tag: Partial<Tag>): Promise<ApiResponse<Tag>>;
create(tag: Partial<Tag>, cb: callback<ApiResponse<Tag>>): void;
tag(tagOper: TagOper): Promise<ApiResponse<Tag>>;
tag(tagOper: TagOper, cb: callback<ApiResponse<Tag>>): void;
tag(tagOper: TagOper): Promise<ApiResponse<Tag>>;
tag(tagOper: TagOper, cb: callback<ApiResponse<Tag>>): void;
untag(tagOper: TagOper): Promise<ApiResponse<Tag>>;
untag(tagOper: TagOper, cb: callback<ApiResponse<Tag>>): void;
untag(tagOper: TagOper): Promise<ApiResponse<Tag>>;
untag(tagOper: TagOper, cb: callback<ApiResponse<Tag>>): void;
delete(tag: TagIdentifier): Promise<IncomingMessage>;
delete(tag: TagIdentifier, cb: callback<IncomingMessage>): void;
delete(tag: TagIdentifier): Promise<IncomingMessage>;
delete(tag: TagIdentifier, cb: callback<IncomingMessage>): void;
list(): Promise<ApiResponse<TagList>>;
list(cb: callback<ApiResponse<TagList>>): void;
list(): Promise<ApiResponse<TagList>>;
list(cb: callback<ApiResponse<TagList>>): void;
}

@@ -144,0 +175,0 @@

{
"name": "@types/intercom-client",
"version": "2.9.5",
"version": "2.11.0",
"description": "TypeScript definitions for intercom-client",

@@ -16,2 +16,7 @@ "license": "MIT",

"githubUsername": "peping"
},
{
"name": "Mikhail Monchak",
"url": "https://github.com/mikhail-monchak",
"githubUsername": "mikhail-monchak"
}

@@ -23,3 +28,4 @@ ],

"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/intercom-client"
},

@@ -30,4 +36,4 @@ "scripts": {},

},
"typesPublisherContentHash": "62630d38d232c696aa3593d13fc90021893654fc3df13232666012df2f4129ac",
"typesPublisherContentHash": "f9dd4986d829f0a403edd94f64262ad848fafc81fe892c1fd8761fa255b69628",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 06 Dec 2018 00:19:55 GMT
* Last updated: Thu, 22 Aug 2019 15:30:44 GMT
* Dependencies: @types/node

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping>.
These definitions were written by Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping>, and Mikhail Monchak <https://github.com/mikhail-monchak>.
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