forked from MadKudu/node-hubspot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also fixes a few typos and formatting issues. Co-Authored-By: Edward Loveall <[email protected]>
- Loading branch information
1 parent
5af0790
commit af4ec40
Showing
3 changed files
with
113 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
// Type definitions for hubspot 1.3.0 | ||
// Project: https://github.com/brainflake/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'; | ||
// 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; | ||
baseUrl?: string | ||
} | ||
|
||
export interface ApiOptions extends BaseOptions { | ||
apiKey: string; | ||
apiKey: string | ||
} | ||
|
||
export interface AccessTokenOptions extends BaseOptions { | ||
accessToken: string; | ||
accessToken: string | ||
} | ||
|
||
export interface HubspotError { | ||
status: string; | ||
message: string; | ||
correlationId: string; | ||
requestId: string; | ||
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; | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters