forked from MadKudu/node-hubspot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
57 lines (49 loc) · 1.48 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Type definitions for hubspot 1.3.0
// Project: https://github.com/MadKudu/node-hubspot
import { RequestCallback } from 'request'
import { RequestPromise } from 'request-promise'
import { Company } from './lib/typescript/company'
import { Contact } from './lib/typescript/contact'
import { Page } from './lib/typescript/page'
import { OAuth } from './lib/typescript/oauth'
import { Deal } from './lib/typescript/deal'
import { Engagement } from './lib/typescript/engagement'
import { Owner } from './lib/typescript/owner'
import { Pipeline } from './lib/typescript/pipeline'
import { List } from './lib/typescript/list'
import { File } from './lib/typescript/file'
import { Subscription } from './lib/typescript/subscription'
import { Campaign } from './lib/typescript/campaign'
import { Broadcast } from './lib/typescript/broadcast'
interface BaseOptions {
baseUrl?: string
}
export interface ApiOptions extends BaseOptions {
apiKey: string
}
export interface AccessTokenOptions extends BaseOptions {
accessToken: string
}
export interface HubspotError {
status: string
message: string
correlationId: string
requestId: string
}
declare class Hubspot {
constructor(options?: ApiOptions | AccessTokenOptions)
companies: Company
contacts: Contact
pages: Page
deals: Deal
engagements: Engagement
owners: Owner
oauth: OAuth
pipelines: Pipeline
lists: List
files: File
subscriptions: Subscription
campaigns: Campaign
broadcasts: Broadcast
}
export default Hubspot