@types/intercom-client
Advanced tools
Comparing version 2.9.0 to 2.9.1
// Type definitions for intercom-client 2.9 | ||
// Project: https://github.com/intercom/intercom-node | ||
// Definitions by: Jinesh Shah <https://github.com/jineshshah36> | ||
// Definitions by: Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
import { List as UserList, User, UserIdentifier } from './User'; | ||
import { Scroll } from './Scroll'; | ||
@@ -14,1 +17,30 @@ export interface IdentityVerificationOptions { | ||
}; | ||
export class Client { | ||
constructor(auth: { token: string } | { appId: string, appApiKey: string }); | ||
constructor(username: string, password: string); | ||
users: Users; | ||
} | ||
export interface Company { | ||
readonly "id": string; | ||
} | ||
export class Users { | ||
create(user: Partial<User>): Promise<User>; | ||
update(user: UserIdentifier & Partial<User>): Promise<User>; | ||
find(identifier: UserIdentifier): Promise<User>; | ||
list(): Promise<UserList>; | ||
listBy(params: {tag_id: string, segment_id: string}): Promise<UserList>; | ||
scroll: Scroll<User>; | ||
archive(): Promise<User>; | ||
requestPermanentDeletion(): Promise<{id: number}>; | ||
} |
{ | ||
"name": "@types/intercom-client", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "TypeScript definitions for intercom-client", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "jineshshah36" | ||
}, | ||
{ | ||
"name": "Josef Hornych", | ||
"url": "https://github.com/peping", | ||
"githubUsername": "peping" | ||
} | ||
@@ -17,8 +22,8 @@ ], | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "c27ac6cbc719f43db3d968722e9976bfc2d2d1380f77dae007bf5d360ed1aa84", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "014df41686ccd866b805749155ddfcf2cf790d90bedd17e4caf1d69ceea14f1c", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercom-client | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intercom-client | ||
Additional Details | ||
* Last updated: Thu, 03 May 2018 15:33:57 GMT | ||
* Last updated: Mon, 18 Jun 2018 22:47:04 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Jinesh Shah <https://github.com/jineshshah36>. | ||
These definitions were written by Jinesh Shah <https://github.com/jineshshah36>, Josef Hornych <https://github.com/peping>. |
Sorry, the diff of this file is not supported yet
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
5874
6
108