@smartlyqofficial/node 0.1.6 → 0.1.8
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 +25 -0
- package/dist/index.cjs +100 -0
- package/dist/index.d.cts +1459 -1
- package/dist/index.d.ts +1459 -1
- package/dist/index.js +100 -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) {
|
|
@@ -956,6 +964,98 @@ var SocialResource = class {
|
|
|
956
964
|
xUnretweet(accountId, tweetId, options) {
|
|
957
965
|
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets/${encodeURIComponent(tweetId)}`, { options });
|
|
958
966
|
}
|
|
967
|
+
/** Edit published post `POST /social/posts/{post_id}/edit` */
|
|
968
|
+
editPublishedPost(postId, body, options) {
|
|
969
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/edit`, { body, options });
|
|
970
|
+
}
|
|
971
|
+
/** Update YouTube metadata `POST /social/posts/{post_id}/update-metadata` */
|
|
972
|
+
updatePostMetadata(postId, body, options) {
|
|
973
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/update-metadata`, { body, options });
|
|
974
|
+
}
|
|
975
|
+
/** Sync external posts `POST /social/posts/sync-external` */
|
|
976
|
+
syncExternalPosts(body, options) {
|
|
977
|
+
return this._client.request("POST", "/social/posts/sync-external", { body, options });
|
|
978
|
+
}
|
|
979
|
+
/** Live account insights `GET /social/accounts/{account_id}/insights` */
|
|
980
|
+
accountInsights(accountId, options) {
|
|
981
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/insights`, { options });
|
|
982
|
+
}
|
|
983
|
+
/** List Google locations `GET /social/accounts/{account_id}/gmb/locations` */
|
|
984
|
+
gmbLocations(accountId, query, options) {
|
|
985
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/locations`, { query, options });
|
|
986
|
+
}
|
|
987
|
+
/** Get business info `GET /social/accounts/{account_id}/gmb/location` */
|
|
988
|
+
gmbLocation(accountId, query, options) {
|
|
989
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { query, options });
|
|
990
|
+
}
|
|
991
|
+
/** Update business info `PATCH /social/accounts/{account_id}/gmb/location` */
|
|
992
|
+
gmbUpdateLocation(accountId, body, options) {
|
|
993
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { body, options });
|
|
994
|
+
}
|
|
995
|
+
/** Get attributes `GET /social/accounts/{account_id}/gmb/attributes` */
|
|
996
|
+
gmbAttributes(accountId, options) {
|
|
997
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { options });
|
|
998
|
+
}
|
|
999
|
+
/** Update attributes `PUT /social/accounts/{account_id}/gmb/attributes` */
|
|
1000
|
+
gmbUpdateAttributes(accountId, body, options) {
|
|
1001
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { body, options });
|
|
1002
|
+
}
|
|
1003
|
+
/** Available attributes `GET /social/accounts/{account_id}/gmb/attributes/metadata` */
|
|
1004
|
+
gmbAttributeMetadata(accountId, options) {
|
|
1005
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes/metadata`, { options });
|
|
1006
|
+
}
|
|
1007
|
+
/** List media `GET /social/accounts/{account_id}/gmb/media` */
|
|
1008
|
+
gmbMedia(accountId, options) {
|
|
1009
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { options });
|
|
1010
|
+
}
|
|
1011
|
+
/** Add photo `POST /social/accounts/{account_id}/gmb/media` */
|
|
1012
|
+
gmbCreateMedia(accountId, body, options) {
|
|
1013
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1014
|
+
}
|
|
1015
|
+
/** Delete media `DELETE /social/accounts/{account_id}/gmb/media` */
|
|
1016
|
+
gmbDeleteMedia(accountId, body, options) {
|
|
1017
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1018
|
+
}
|
|
1019
|
+
/** Get food menus `GET /social/accounts/{account_id}/gmb/food-menus` */
|
|
1020
|
+
gmbFoodMenus(accountId, options) {
|
|
1021
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { options });
|
|
1022
|
+
}
|
|
1023
|
+
/** Update food menus `PUT /social/accounts/{account_id}/gmb/food-menus` */
|
|
1024
|
+
gmbUpdateFoodMenus(accountId, body, options) {
|
|
1025
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { body, options });
|
|
1026
|
+
}
|
|
1027
|
+
/** List place-action links `GET /social/accounts/{account_id}/gmb/place-actions` */
|
|
1028
|
+
gmbPlaceActions(accountId, options) {
|
|
1029
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { options });
|
|
1030
|
+
}
|
|
1031
|
+
/** Create place-action link `POST /social/accounts/{account_id}/gmb/place-actions` */
|
|
1032
|
+
gmbCreatePlaceAction(accountId, body, options) {
|
|
1033
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
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
|
+
}
|
|
1039
|
+
/** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
|
|
1040
|
+
gmbDeletePlaceAction(accountId, body, options) {
|
|
1041
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1042
|
+
}
|
|
1043
|
+
/** List verifications `GET /social/accounts/{account_id}/gmb/verifications` */
|
|
1044
|
+
gmbVerifications(accountId, options) {
|
|
1045
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications`, { options });
|
|
1046
|
+
}
|
|
1047
|
+
/** Verification options `POST /social/accounts/{account_id}/gmb/verifications/options` */
|
|
1048
|
+
gmbVerificationOptions(accountId, body, options) {
|
|
1049
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
|
|
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
|
+
}
|
|
959
1059
|
};
|
|
960
1060
|
var UrlsResource = class {
|
|
961
1061
|
constructor(_client) {
|