@types/intercom-client
Advanced tools
Comparing version 2.9.1 to 2.9.2
@@ -6,5 +6,13 @@ // Type definitions for intercom-client 2.9 | ||
// TypeScript Version: 2.1 | ||
/// <reference types="node" /> | ||
import { List as UserList, User, UserIdentifier } from './User'; | ||
import { CompanyIdentifier, List as CompanyList, Company } from './Company'; | ||
import { Scroll } from './Scroll'; | ||
import { IntercomError } from './IntercomError'; | ||
import { IncomingMessage } from 'http'; | ||
export { IntercomError }; | ||
export interface IdentityVerificationOptions { | ||
@@ -24,18 +32,26 @@ secretKey: string; | ||
users: Users; | ||
companies: Companies; | ||
} | ||
export interface Company { | ||
readonly "id": string; | ||
export class ApiResponse<T> extends IncomingMessage { | ||
body: T; | ||
} | ||
export type callback<T> = ((d: T) => void) | ((err: IntercomError, d: T) => void); | ||
export class Users { | ||
create(user: Partial<User>): Promise<User>; | ||
create(user: Partial<User>): Promise<ApiResponse<User>>; | ||
create(user: Partial<User>, cb: callback<ApiResponse<User>>): void; | ||
update(user: UserIdentifier & Partial<User>): Promise<User>; | ||
update(user: UserIdentifier & Partial<User>): Promise<ApiResponse<User>>; | ||
update(user: UserIdentifier & Partial<User>, cb: callback<ApiResponse<User>>): void; | ||
find(identifier: UserIdentifier): Promise<User>; | ||
find(identifier: UserIdentifier): Promise<ApiResponse<User>>; | ||
find(identifier: UserIdentifier, cb: callback<ApiResponse<User>>): void; | ||
list(): Promise<UserList>; | ||
list(): Promise<ApiResponse<User>>; | ||
list(cb: callback<ApiResponse<User>>): void; | ||
listBy(params: {tag_id: string, segment_id: string}): Promise<UserList>; | ||
listBy(params: {tag_id?: string, segment_id?: string}): Promise<ApiResponse<UserList>>; | ||
listBy(params: {tag_id?: string, segment_id?: string}, cb: callback<ApiResponse<UserList>>): void; | ||
@@ -48,1 +64,22 @@ scroll: Scroll<User>; | ||
} | ||
export class Companies { | ||
create(company: CompanyIdentifier & Partial<Company>): Promise<ApiResponse<Company>>; | ||
create(company: CompanyIdentifier & Partial<Company>, cb: callback<ApiResponse<Company>>): void; | ||
update(company: CompanyIdentifier & Partial<Company>): Promise<ApiResponse<Company>>; | ||
update(company: CompanyIdentifier & Partial<Company>, cb: callback<ApiResponse<Company>>): void; | ||
find(identifier: CompanyIdentifier): Promise<ApiResponse<Company>>; | ||
find(identifier: CompanyIdentifier, cb: callback<ApiResponse<Company>>): void; | ||
list(): Promise<ApiResponse<CompanyList>>; | ||
list(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; | ||
scroll: Scroll<Company>; | ||
archive(): Promise<Company>; | ||
} |
{ | ||
"name": "@types/intercom-client", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "TypeScript definitions for intercom-client", | ||
@@ -24,5 +24,7 @@ "license": "MIT", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "014df41686ccd866b805749155ddfcf2cf790d90bedd17e4caf1d69ceea14f1c", | ||
"dependencies": { | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "b4f31afd23db6584bbfc882ba225371e712e566b8d00e09f644c2ba477fe4a8e", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 18 Jun 2018 22:47:04 GMT | ||
* Dependencies: none | ||
* Last updated: Fri, 22 Jun 2018 00:08:12 GMT | ||
* Dependencies: http, node | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
@@ -1,2 +0,2 @@ | ||
import {Company} from "intercom-client"; | ||
import { Company } from "./Company"; | ||
@@ -3,0 +3,0 @@ export type UserIdentifier = { "id": string } | { "user_id": string } | { "email": string } |
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
8727
8
174
1
+ Added@types/node@*
+ Added@types/node@22.10.2(transitive)
+ Addedundici-types@6.20.0(transitive)