@@ -128,7 +128,7 @@ const article = await client.articles.create({
128128 title: ' Allez les verts' ,
129129 description: ' French description' ,
130130 body: ' <p>French body in html</p>' ,
131- author_id : 1 ,
131+ authorId : 1 ,
132132 state: ' published' ,
133133 },
134134 },
@@ -158,7 +158,7 @@ const article = await client.articles.update({
158158 title: ' Allez les verts' ,
159159 description: ' French description' ,
160160 body: ' <p>French body in html</p>' ,
161- author_id : 1 ,
161+ authorId : 1 ,
162162 state: ' published' ,
163163 },
164164 },
@@ -901,7 +901,7 @@ const article = await client.helpCenter.collections.update({
901901 id: ' 123' ,
902902 name: ' Thanks for everything' ,
903903 description: ' English description' ,
904- translated_content : {
904+ translatedContent : {
905905 fr: {
906906 name: ' Allez les verts' ,
907907 description: ' French description' ,
@@ -934,7 +934,7 @@ const response = client.helpCenter.collections.list({
934934``` typescript
935935const collection = await client .helpCenter .sections .create ({
936936 name: ' Thanks for everything' ,
937- parent_id : ' 1234' ,
937+ parentId : ' 1234' ,
938938 translatedContent: {
939939 fr: {
940940 name: ' Allez les verts' ,
@@ -956,8 +956,8 @@ const response = await client.helpCenter.sections.find({ id: '123' });
956956const article = await client .helpCenter .sections .update ({
957957 id: ' 123' ,
958958 name: ' Thanks for everything' ,
959- parent_id : ' 456' ,
960- translated_content : {
959+ parentId : ' 456' ,
960+ translatedContent : {
961961 fr: {
962962 name: ' Allez les verts' ,
963963 description: ' French description' ,
@@ -1151,54 +1151,6 @@ const response = await client.teams.find({
11511151const response = await client .teams .list ();
11521152```
11531153
1154- ### Visitors
1155-
1156- #### [ Retrieve a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/view-a-visitor )
1157-
1158- ``` typescript
1159- const response = await client .visitors .find ({ id: ' 123' });
1160- ```
1161-
1162- OR
1163-
1164- ``` typescript
1165- const response = await client .visitors .find ({ userId: ' 123' });
1166- ```
1167-
1168- #### [ Update a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/update-a-visitor )
1169-
1170- ``` typescript
1171- const response = await client .visitors .update ({
1172- userId: ' 123' ,
1173- name: ' anonymous bruh' ,
1174- customAttributes: {
1175- paid_subscriber: true ,
1176- },
1177- });
1178- ```
1179-
1180- #### [ Delete a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/delete-a-visitor )
1181-
1182- ``` typescript
1183- const response = await client .visitors .delete ({
1184- id ,
1185- });
1186- ```
1187-
1188- #### [ Convert a Visitor] ( https://developers.intercom.com/intercom-api-reference/reference/convert-a-visitor-to-a-user )
1189-
1190- ``` typescript
1191- const response = await client .visitors .mergeToContact ({
1192- visitor: {
1193- id: ' 123' ,
1194- },
1195- user: {
1196- userId: ' 123' ,
1197- },
1198- type: Role .USER ,
1199- });
1200- ```
1201-
12021154### Identity verification
12031155
12041156` 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 ) :
0 commit comments