File tree Expand file tree Collapse file tree 6 files changed +0
-248
lines changed
Expand file tree Collapse file tree 6 files changed +0
-248
lines changed Original file line number Diff line number Diff line change @@ -1067,54 +1067,6 @@ const response = await client.teams.find({
10671067const response = await client .teams .list ();
10681068```
10691069
1070- ### Visitors
1071-
1072- #### [ Retrieve a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/view-a-visitor )
1073-
1074- ``` typescript
1075- const response = await client .visitors .find ({ id: ' 123' });
1076- ```
1077-
1078- OR
1079-
1080- ``` typescript
1081- const response = await client .visitors .find ({ userId: ' 123' });
1082- ```
1083-
1084- #### [ Update a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/update-a-visitor )
1085-
1086- ``` typescript
1087- const response = await client .visitors .update ({
1088- userId: ' 123' ,
1089- name: ' anonymous bruh' ,
1090- customAttributes: {
1091- paid_subscriber: true ,
1092- },
1093- });
1094- ```
1095-
1096- #### [ Delete a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/delete-a-visitor )
1097-
1098- ``` typescript
1099- const response = await client .visitors .delete ({
1100- id ,
1101- });
1102- ```
1103-
1104- #### [ Convert a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/convert-a-visitor-to-a-user )
1105-
1106- ``` typescript
1107- const response = await client .visitors .mergeToContact ({
1108- visitor: {
1109- id: ' 123' ,
1110- },
1111- user: {
1112- userId: ' 123' ,
1113- },
1114- type: Role .USER ,
1115- });
1116- ```
1117-
11181070### Identity verification
11191071
11201072` intercom-node ` provides a helper for using [ identity verification] ( https://docs.intercom.com/configure-intercom-for-your-product-or-site/staying-secure/enable-identity-verification-on-your-web-product ) :
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import Segment from './segment';
1414import Message from './message' ;
1515import Team from './team' ;
1616import Tag from './tag' ;
17- import Visitor from './visitor' ;
1817
1918import * as packageJson from '../package.json' ;
2019
@@ -67,7 +66,6 @@ export default class Client {
6766 teams : Team ;
6867 usebaseURL : ( baseURL : string ) => this;
6968 usernamePart ?: string ;
70- visitors : Visitor ;
7169
7270 constructor ( args : Constructor ) {
7371 const [ usernamePart , passwordPart ] = Client . getAuthDetails ( args ) ;
@@ -93,7 +91,6 @@ export default class Client {
9391 this . segments = new Segment ( this ) ;
9492 this . tags = new Tag ( this ) ;
9593 this . teams = new Team ( this ) ;
96- this . visitors = new Visitor ( this ) ;
9794 this . requestOpts = {
9895 baseURL : 'https://api.intercom.io' ,
9996 } ;
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ export * from './segment/segment.types';
3838export * from './subscription/subscription.types' ;
3939export * from './tag/tag.types' ;
4040export * from './team/team.types' ;
41- export * from './visitor/visitor.types' ;
4241
4342// Export enums needed for requests
4443export { SearchContactOrderBy } from './contact' ;
@@ -56,9 +55,3 @@ export {
5655 RedactConversationPartType ,
5756} from './conversation' ;
5857export { RecepientType } from './message' ;
59- export {
60- ContactObjectForMerge ,
61- MergeVisitorToContactData ,
62- VisitorObjectForMerge ,
63- IdentificationForVisitor ,
64- } from './visitor' ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments