@smartlyqofficial/node 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +896 -1
- package/dist/index.d.ts +896 -1
- package/dist/index.js +68 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -371,10 +371,18 @@ var CrmResource = class {
|
|
|
371
371
|
deleteContact(id, options) {
|
|
372
372
|
return this._client.request("DELETE", `/contacts/${encodeURIComponent(id)}`, { options });
|
|
373
373
|
}
|
|
374
|
+
/** Update custom field `PATCH /custom-fields/{id}` */
|
|
375
|
+
updateCustomField(id, body, options) {
|
|
376
|
+
return this._client.request("PATCH", `/custom-fields/${encodeURIComponent(id)}`, { body, options });
|
|
377
|
+
}
|
|
374
378
|
/** Bulk import contacts `POST /contacts/bulk` */
|
|
375
379
|
bulkImportContacts(body, options) {
|
|
376
380
|
return this._client.request("POST", "/contacts/bulk", { body, options });
|
|
377
381
|
}
|
|
382
|
+
/** Contact channels `GET /contacts/{id}/channels` */
|
|
383
|
+
contactChannels(id, options) {
|
|
384
|
+
return this._client.request("GET", `/contacts/${encodeURIComponent(id)}/channels`, { options });
|
|
385
|
+
}
|
|
378
386
|
};
|
|
379
387
|
var ContactsResource = class {
|
|
380
388
|
constructor(_client) {
|
|
@@ -1024,6 +1032,10 @@ var SocialResource = class {
|
|
|
1024
1032
|
gmbCreatePlaceAction(accountId, body, options) {
|
|
1025
1033
|
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1026
1034
|
}
|
|
1035
|
+
/** Update place-action link `PATCH /social/accounts/{account_id}/gmb/place-actions` */
|
|
1036
|
+
gmbUpdatePlaceAction(accountId, body, options) {
|
|
1037
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1038
|
+
}
|
|
1027
1039
|
/** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
|
|
1028
1040
|
gmbDeletePlaceAction(accountId, body, options) {
|
|
1029
1041
|
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
@@ -1036,6 +1048,62 @@ var SocialResource = class {
|
|
|
1036
1048
|
gmbVerificationOptions(accountId, body, options) {
|
|
1037
1049
|
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
|
|
1038
1050
|
}
|
|
1051
|
+
/** Subreddit info + eligibility `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}` */
|
|
1052
|
+
redditSubredditInfo(accountId, subreddit, options) {
|
|
1053
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/reddit/subreddits/${encodeURIComponent(subreddit)}`, { options });
|
|
1054
|
+
}
|
|
1055
|
+
/** X mentions `GET /social/accounts/{account_id}/x/mentions` */
|
|
1056
|
+
xMentions(accountId, query, options) {
|
|
1057
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/x/mentions`, { query, options });
|
|
1058
|
+
}
|
|
1059
|
+
/** Typing indicator `POST /social/conversations/{conversation_id}/typing` */
|
|
1060
|
+
sendTypingIndicator(conversationId, options) {
|
|
1061
|
+
return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/typing`, { options });
|
|
1062
|
+
}
|
|
1063
|
+
/** Private reply (comment-to-DM) `POST /social/comments/{comment_id}/private-reply` */
|
|
1064
|
+
commentPrivateReply(commentId, body, options) {
|
|
1065
|
+
return this._client.request("POST", `/social/comments/${encodeURIComponent(commentId)}/private-reply`, { body, options });
|
|
1066
|
+
}
|
|
1067
|
+
/** Get Messenger menu `GET /social/accounts/{account_id}/messenger/menu` */
|
|
1068
|
+
getMessengerMenu(accountId, options) {
|
|
1069
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { options });
|
|
1070
|
+
}
|
|
1071
|
+
/** Set Messenger menu `PUT /social/accounts/{account_id}/messenger/menu` */
|
|
1072
|
+
setMessengerMenu(accountId, body, options) {
|
|
1073
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { body, options });
|
|
1074
|
+
}
|
|
1075
|
+
/** Delete Messenger menu `DELETE /social/accounts/{account_id}/messenger/menu` */
|
|
1076
|
+
deleteMessengerMenu(accountId, options) {
|
|
1077
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { options });
|
|
1078
|
+
}
|
|
1079
|
+
/** Get ice breakers `GET /social/accounts/{account_id}/instagram/ice-breakers` */
|
|
1080
|
+
getIceBreakers(accountId, options) {
|
|
1081
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { options });
|
|
1082
|
+
}
|
|
1083
|
+
/** Set ice breakers `PUT /social/accounts/{account_id}/instagram/ice-breakers` */
|
|
1084
|
+
setIceBreakers(accountId, body, options) {
|
|
1085
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { body, options });
|
|
1086
|
+
}
|
|
1087
|
+
/** Delete ice breakers `DELETE /social/accounts/{account_id}/instagram/ice-breakers` */
|
|
1088
|
+
deleteIceBreakers(accountId, options) {
|
|
1089
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { options });
|
|
1090
|
+
}
|
|
1091
|
+
/** Facebook page insights `GET /social/accounts/{account_id}/facebook/page-insights` */
|
|
1092
|
+
facebookPageInsights(accountId, query, options) {
|
|
1093
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page-insights`, { query, options });
|
|
1094
|
+
}
|
|
1095
|
+
/** Instagram audience demographics `GET /social/accounts/{account_id}/instagram/audience` */
|
|
1096
|
+
instagramAudience(accountId, query, options) {
|
|
1097
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/audience`, { query, options });
|
|
1098
|
+
}
|
|
1099
|
+
/** Connection target options `GET /social/accounts/{account_id}/connect-options` */
|
|
1100
|
+
connectOptions(accountId, options) {
|
|
1101
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/connect-options`, { options });
|
|
1102
|
+
}
|
|
1103
|
+
/** Select connection target `POST /social/accounts/{account_id}/connect-select` */
|
|
1104
|
+
connectSelect(accountId, body, options) {
|
|
1105
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/connect-select`, { body, options });
|
|
1106
|
+
}
|
|
1039
1107
|
};
|
|
1040
1108
|
var UrlsResource = class {
|
|
1041
1109
|
constructor(_client) {
|