@smartlyqofficial/node 0.1.5 → 0.1.7
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 +24 -0
- package/dist/index.cjs +96 -0
- package/dist/index.d.cts +2053 -47
- package/dist/index.d.ts +2053 -47
- package/dist/index.js +96 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -633,6 +633,10 @@ var ReviewsResource = class {
|
|
|
633
633
|
replyTo(reviewId, body, options) {
|
|
634
634
|
return this._client.request("POST", `/reviews/${encodeURIComponent(reviewId)}/reply`, { body, options });
|
|
635
635
|
}
|
|
636
|
+
/** Delete review reply `DELETE /reviews/{review_id}/reply` */
|
|
637
|
+
deleteReply(reviewId, options) {
|
|
638
|
+
return this._client.request("DELETE", `/reviews/${encodeURIComponent(reviewId)}/reply`, { options });
|
|
639
|
+
}
|
|
636
640
|
/** Sync reviews `POST /reviews/sync` */
|
|
637
641
|
sync(body, options) {
|
|
638
642
|
return this._client.request("POST", "/reviews/sync", { body, options });
|
|
@@ -940,6 +944,98 @@ var SocialResource = class {
|
|
|
940
944
|
facebookPostReactions(accountId, query, options) {
|
|
941
945
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/post-reactions`, { query, options });
|
|
942
946
|
}
|
|
947
|
+
/** Instagram story insights `GET /social/accounts/{account_id}/instagram/stories/{story_id}/insights` */
|
|
948
|
+
instagramStoryInsights(accountId, storyId, query, options) {
|
|
949
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/stories/${encodeURIComponent(storyId)}/insights`, { query, options });
|
|
950
|
+
}
|
|
951
|
+
/** Retweet on X `POST /social/accounts/{account_id}/x/retweets` */
|
|
952
|
+
xRetweet(accountId, body, options) {
|
|
953
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets`, { body, options });
|
|
954
|
+
}
|
|
955
|
+
/** Undo retweet `DELETE /social/accounts/{account_id}/x/retweets/{tweet_id}` */
|
|
956
|
+
xUnretweet(accountId, tweetId, options) {
|
|
957
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets/${encodeURIComponent(tweetId)}`, { options });
|
|
958
|
+
}
|
|
959
|
+
/** Edit published post `POST /social/posts/{post_id}/edit` */
|
|
960
|
+
editPublishedPost(postId, body, options) {
|
|
961
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/edit`, { body, options });
|
|
962
|
+
}
|
|
963
|
+
/** Update YouTube metadata `POST /social/posts/{post_id}/update-metadata` */
|
|
964
|
+
updatePostMetadata(postId, body, options) {
|
|
965
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/update-metadata`, { body, options });
|
|
966
|
+
}
|
|
967
|
+
/** Sync external posts `POST /social/posts/sync-external` */
|
|
968
|
+
syncExternalPosts(body, options) {
|
|
969
|
+
return this._client.request("POST", "/social/posts/sync-external", { body, options });
|
|
970
|
+
}
|
|
971
|
+
/** Live account insights `GET /social/accounts/{account_id}/insights` */
|
|
972
|
+
accountInsights(accountId, options) {
|
|
973
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/insights`, { options });
|
|
974
|
+
}
|
|
975
|
+
/** List Google locations `GET /social/accounts/{account_id}/gmb/locations` */
|
|
976
|
+
gmbLocations(accountId, query, options) {
|
|
977
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/locations`, { query, options });
|
|
978
|
+
}
|
|
979
|
+
/** Get business info `GET /social/accounts/{account_id}/gmb/location` */
|
|
980
|
+
gmbLocation(accountId, query, options) {
|
|
981
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { query, options });
|
|
982
|
+
}
|
|
983
|
+
/** Update business info `PATCH /social/accounts/{account_id}/gmb/location` */
|
|
984
|
+
gmbUpdateLocation(accountId, body, options) {
|
|
985
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { body, options });
|
|
986
|
+
}
|
|
987
|
+
/** Get attributes `GET /social/accounts/{account_id}/gmb/attributes` */
|
|
988
|
+
gmbAttributes(accountId, options) {
|
|
989
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { options });
|
|
990
|
+
}
|
|
991
|
+
/** Update attributes `PUT /social/accounts/{account_id}/gmb/attributes` */
|
|
992
|
+
gmbUpdateAttributes(accountId, body, options) {
|
|
993
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { body, options });
|
|
994
|
+
}
|
|
995
|
+
/** Available attributes `GET /social/accounts/{account_id}/gmb/attributes/metadata` */
|
|
996
|
+
gmbAttributeMetadata(accountId, options) {
|
|
997
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes/metadata`, { options });
|
|
998
|
+
}
|
|
999
|
+
/** List media `GET /social/accounts/{account_id}/gmb/media` */
|
|
1000
|
+
gmbMedia(accountId, options) {
|
|
1001
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { options });
|
|
1002
|
+
}
|
|
1003
|
+
/** Add photo `POST /social/accounts/{account_id}/gmb/media` */
|
|
1004
|
+
gmbCreateMedia(accountId, body, options) {
|
|
1005
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1006
|
+
}
|
|
1007
|
+
/** Delete media `DELETE /social/accounts/{account_id}/gmb/media` */
|
|
1008
|
+
gmbDeleteMedia(accountId, body, options) {
|
|
1009
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1010
|
+
}
|
|
1011
|
+
/** Get food menus `GET /social/accounts/{account_id}/gmb/food-menus` */
|
|
1012
|
+
gmbFoodMenus(accountId, options) {
|
|
1013
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { options });
|
|
1014
|
+
}
|
|
1015
|
+
/** Update food menus `PUT /social/accounts/{account_id}/gmb/food-menus` */
|
|
1016
|
+
gmbUpdateFoodMenus(accountId, body, options) {
|
|
1017
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { body, options });
|
|
1018
|
+
}
|
|
1019
|
+
/** List place-action links `GET /social/accounts/{account_id}/gmb/place-actions` */
|
|
1020
|
+
gmbPlaceActions(accountId, options) {
|
|
1021
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { options });
|
|
1022
|
+
}
|
|
1023
|
+
/** Create place-action link `POST /social/accounts/{account_id}/gmb/place-actions` */
|
|
1024
|
+
gmbCreatePlaceAction(accountId, body, options) {
|
|
1025
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1026
|
+
}
|
|
1027
|
+
/** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
|
|
1028
|
+
gmbDeletePlaceAction(accountId, body, options) {
|
|
1029
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1030
|
+
}
|
|
1031
|
+
/** List verifications `GET /social/accounts/{account_id}/gmb/verifications` */
|
|
1032
|
+
gmbVerifications(accountId, options) {
|
|
1033
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications`, { options });
|
|
1034
|
+
}
|
|
1035
|
+
/** Verification options `POST /social/accounts/{account_id}/gmb/verifications/options` */
|
|
1036
|
+
gmbVerificationOptions(accountId, body, options) {
|
|
1037
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
|
|
1038
|
+
}
|
|
943
1039
|
};
|
|
944
1040
|
var UrlsResource = class {
|
|
945
1041
|
constructor(_client) {
|