intercom-client
Advanced tools
Comparing version 3.1.5 to 3.2.0
{ | ||
"name": "intercom-client", | ||
"version": "3.1.5", | ||
"version": "3.2.0", | ||
"description": "Official Node bindings to the Intercom API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/intercom/intercom-node", |
{ | ||
"name": "intercom-client", | ||
"version": "3.1.5", | ||
"version": "3.2.0", | ||
"description": "Official Node bindings to the Intercom API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/intercom/intercom-node", |
@@ -5,3 +5,3 @@ # intercom-node | ||
[![npm](https://img.shields.io/npm/v/intercom-client)](https://www.npmjs.com/package/intercom-client) | ||
![Intercom API Version](https://img.shields.io/badge/Intercom%20API%20Version-2.4-blue) | ||
![Intercom API Version](https://img.shields.io/badge/Intercom%20API%20Version-2.5-blue) | ||
![Typescript Supported](https://img.shields.io/badge/Typescript-Supported-lightgrey) | ||
@@ -15,3 +15,3 @@ | ||
The Node SDK has been updated to support latest API version (2.4). The update also contains requested features, such like Typescript support. You can find more information on how-to migrate and what has changed in the [migration guide](https://github.com/intercom/intercom-node/wiki/Migration-guide). | ||
The Node SDK has been updated to support latest API version (2.5). The update also contains requested features, such like Typescript support. You can find more information on how-to migrate and what has changed in the [migration guide](https://github.com/intercom/intercom-node/wiki/Migration-guide). | ||
@@ -87,4 +87,4 @@ ## Installation | ||
client.useRequestOpts({ | ||
baseUrl: 'https://api.eu.intercom.io' | ||
}) | ||
baseUrl: 'https://api.eu.intercom.io', | ||
}); | ||
``` | ||
@@ -851,2 +851,25 @@ | ||
### Data Exports | ||
#### [Create a export job](https://developers.intercom.com/intercom-api-reference/reference/creating-an-export-job) | ||
```typescript | ||
const response = await client.dataExport.create({ | ||
createdAtAfter: 1527811200, | ||
createdAtBefore: 1530316800, | ||
}); | ||
``` | ||
#### [Retrieve a job status](https://developers.intercom.com/intercom-api-reference/reference/retrieve-a-job-status) | ||
```typescript | ||
const response = await client.dataExport.find({id: export.id}) | ||
``` | ||
#### [Cancel a job](https://developers.intercom.com/intercom-api-reference/reference/the-export-job-model) | ||
```typescript | ||
const response = await client.dataExport.cancel({id: export.id}) | ||
``` | ||
### Events | ||
@@ -1085,2 +1108,20 @@ | ||
### Subscriptions | ||
#### [List all subscription types](https://developers.intercom.com/intercom-api-reference/reference/list-all-subscription-types) | ||
```typescript | ||
const response = await client.subscriptions.listTypes(); | ||
``` | ||
### PhoneCallRedirects | ||
#### [Create a phone call redirect](https://developers.intercom.com/intercom-api-reference/reference/create-a-phone-switch) | ||
```typescript | ||
const response = await client.phoneCallRedirect.create({ | ||
phone: '+353871234567', | ||
}); | ||
``` | ||
### Tags | ||
@@ -1087,0 +1128,0 @@ |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
1302
38699
4
0
2