@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/README.md
CHANGED
|
@@ -297,6 +297,7 @@ All methods below are available on the client. Full request/response documentati
|
|
|
297
297
|
| --- | --- | --- |
|
|
298
298
|
| `sq.reviews.list(query?)` | `GET /reviews` | List reviews |
|
|
299
299
|
| `sq.reviews.replyTo(reviewId, body)` | `POST /reviews/{review_id}/reply` | Reply to review |
|
|
300
|
+
| `sq.reviews.deleteReply(reviewId)` | `DELETE /reviews/{review_id}/reply` | Delete review reply |
|
|
300
301
|
| `sq.reviews.sync(body?)` | `POST /reviews/sync` | Sync reviews |
|
|
301
302
|
|
|
302
303
|
### SEO
|
|
@@ -385,6 +386,29 @@ All methods below are available on the client. Full request/response documentati
|
|
|
385
386
|
| `sq.social.redditSubredditRules(accountId, subreddit)` | `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}/rules` | Subreddit rules |
|
|
386
387
|
| `sq.social.instagramStories(accountId)` | `GET /social/accounts/{account_id}/instagram/stories` | Instagram stories |
|
|
387
388
|
| `sq.social.facebookPostReactions(accountId, query?)` | `GET /social/accounts/{account_id}/facebook/post-reactions` | Facebook post reactions |
|
|
389
|
+
| `sq.social.instagramStoryInsights(accountId, storyId, query?)` | `GET /social/accounts/{account_id}/instagram/stories/{story_id}/insights` | Instagram story insights |
|
|
390
|
+
| `sq.social.xRetweet(accountId, body)` | `POST /social/accounts/{account_id}/x/retweets` | Retweet on X |
|
|
391
|
+
| `sq.social.xUnretweet(accountId, tweetId)` | `DELETE /social/accounts/{account_id}/x/retweets/{tweet_id}` | Undo retweet |
|
|
392
|
+
| `sq.social.editPublishedPost(postId, body)` | `POST /social/posts/{post_id}/edit` | Edit published post |
|
|
393
|
+
| `sq.social.updatePostMetadata(postId, body)` | `POST /social/posts/{post_id}/update-metadata` | Update YouTube metadata |
|
|
394
|
+
| `sq.social.syncExternalPosts(body)` | `POST /social/posts/sync-external` | Sync external posts |
|
|
395
|
+
| `sq.social.accountInsights(accountId)` | `GET /social/accounts/{account_id}/insights` | Live account insights |
|
|
396
|
+
| `sq.social.gmbLocations(accountId, query?)` | `GET /social/accounts/{account_id}/gmb/locations` | List Google locations |
|
|
397
|
+
| `sq.social.gmbLocation(accountId, query?)` | `GET /social/accounts/{account_id}/gmb/location` | Get business info |
|
|
398
|
+
| `sq.social.gmbUpdateLocation(accountId, body)` | `PATCH /social/accounts/{account_id}/gmb/location` | Update business info |
|
|
399
|
+
| `sq.social.gmbAttributes(accountId)` | `GET /social/accounts/{account_id}/gmb/attributes` | Get attributes |
|
|
400
|
+
| `sq.social.gmbUpdateAttributes(accountId, body)` | `PUT /social/accounts/{account_id}/gmb/attributes` | Update attributes |
|
|
401
|
+
| `sq.social.gmbAttributeMetadata(accountId)` | `GET /social/accounts/{account_id}/gmb/attributes/metadata` | Available attributes |
|
|
402
|
+
| `sq.social.gmbMedia(accountId)` | `GET /social/accounts/{account_id}/gmb/media` | List media |
|
|
403
|
+
| `sq.social.gmbCreateMedia(accountId, body)` | `POST /social/accounts/{account_id}/gmb/media` | Add photo |
|
|
404
|
+
| `sq.social.gmbDeleteMedia(accountId, body)` | `DELETE /social/accounts/{account_id}/gmb/media` | Delete media |
|
|
405
|
+
| `sq.social.gmbFoodMenus(accountId)` | `GET /social/accounts/{account_id}/gmb/food-menus` | Get food menus |
|
|
406
|
+
| `sq.social.gmbUpdateFoodMenus(accountId, body)` | `PUT /social/accounts/{account_id}/gmb/food-menus` | Update food menus |
|
|
407
|
+
| `sq.social.gmbPlaceActions(accountId)` | `GET /social/accounts/{account_id}/gmb/place-actions` | List place-action links |
|
|
408
|
+
| `sq.social.gmbCreatePlaceAction(accountId, body)` | `POST /social/accounts/{account_id}/gmb/place-actions` | Create place-action link |
|
|
409
|
+
| `sq.social.gmbDeletePlaceAction(accountId, body)` | `DELETE /social/accounts/{account_id}/gmb/place-actions` | Delete place-action link |
|
|
410
|
+
| `sq.social.gmbVerifications(accountId)` | `GET /social/accounts/{account_id}/gmb/verifications` | List verifications |
|
|
411
|
+
| `sq.social.gmbVerificationOptions(accountId, body?)` | `POST /social/accounts/{account_id}/gmb/verifications/options` | Verification options |
|
|
388
412
|
|
|
389
413
|
### URLs
|
|
390
414
|
|
package/dist/index.cjs
CHANGED
|
@@ -691,6 +691,10 @@ var ReviewsResource = class {
|
|
|
691
691
|
replyTo(reviewId, body, options) {
|
|
692
692
|
return this._client.request("POST", `/reviews/${encodeURIComponent(reviewId)}/reply`, { body, options });
|
|
693
693
|
}
|
|
694
|
+
/** Delete review reply `DELETE /reviews/{review_id}/reply` */
|
|
695
|
+
deleteReply(reviewId, options) {
|
|
696
|
+
return this._client.request("DELETE", `/reviews/${encodeURIComponent(reviewId)}/reply`, { options });
|
|
697
|
+
}
|
|
694
698
|
/** Sync reviews `POST /reviews/sync` */
|
|
695
699
|
sync(body, options) {
|
|
696
700
|
return this._client.request("POST", "/reviews/sync", { body, options });
|
|
@@ -998,6 +1002,98 @@ var SocialResource = class {
|
|
|
998
1002
|
facebookPostReactions(accountId, query, options) {
|
|
999
1003
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/post-reactions`, { query, options });
|
|
1000
1004
|
}
|
|
1005
|
+
/** Instagram story insights `GET /social/accounts/{account_id}/instagram/stories/{story_id}/insights` */
|
|
1006
|
+
instagramStoryInsights(accountId, storyId, query, options) {
|
|
1007
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/stories/${encodeURIComponent(storyId)}/insights`, { query, options });
|
|
1008
|
+
}
|
|
1009
|
+
/** Retweet on X `POST /social/accounts/{account_id}/x/retweets` */
|
|
1010
|
+
xRetweet(accountId, body, options) {
|
|
1011
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets`, { body, options });
|
|
1012
|
+
}
|
|
1013
|
+
/** Undo retweet `DELETE /social/accounts/{account_id}/x/retweets/{tweet_id}` */
|
|
1014
|
+
xUnretweet(accountId, tweetId, options) {
|
|
1015
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets/${encodeURIComponent(tweetId)}`, { options });
|
|
1016
|
+
}
|
|
1017
|
+
/** Edit published post `POST /social/posts/{post_id}/edit` */
|
|
1018
|
+
editPublishedPost(postId, body, options) {
|
|
1019
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/edit`, { body, options });
|
|
1020
|
+
}
|
|
1021
|
+
/** Update YouTube metadata `POST /social/posts/{post_id}/update-metadata` */
|
|
1022
|
+
updatePostMetadata(postId, body, options) {
|
|
1023
|
+
return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/update-metadata`, { body, options });
|
|
1024
|
+
}
|
|
1025
|
+
/** Sync external posts `POST /social/posts/sync-external` */
|
|
1026
|
+
syncExternalPosts(body, options) {
|
|
1027
|
+
return this._client.request("POST", "/social/posts/sync-external", { body, options });
|
|
1028
|
+
}
|
|
1029
|
+
/** Live account insights `GET /social/accounts/{account_id}/insights` */
|
|
1030
|
+
accountInsights(accountId, options) {
|
|
1031
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/insights`, { options });
|
|
1032
|
+
}
|
|
1033
|
+
/** List Google locations `GET /social/accounts/{account_id}/gmb/locations` */
|
|
1034
|
+
gmbLocations(accountId, query, options) {
|
|
1035
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/locations`, { query, options });
|
|
1036
|
+
}
|
|
1037
|
+
/** Get business info `GET /social/accounts/{account_id}/gmb/location` */
|
|
1038
|
+
gmbLocation(accountId, query, options) {
|
|
1039
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { query, options });
|
|
1040
|
+
}
|
|
1041
|
+
/** Update business info `PATCH /social/accounts/{account_id}/gmb/location` */
|
|
1042
|
+
gmbUpdateLocation(accountId, body, options) {
|
|
1043
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { body, options });
|
|
1044
|
+
}
|
|
1045
|
+
/** Get attributes `GET /social/accounts/{account_id}/gmb/attributes` */
|
|
1046
|
+
gmbAttributes(accountId, options) {
|
|
1047
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { options });
|
|
1048
|
+
}
|
|
1049
|
+
/** Update attributes `PUT /social/accounts/{account_id}/gmb/attributes` */
|
|
1050
|
+
gmbUpdateAttributes(accountId, body, options) {
|
|
1051
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { body, options });
|
|
1052
|
+
}
|
|
1053
|
+
/** Available attributes `GET /social/accounts/{account_id}/gmb/attributes/metadata` */
|
|
1054
|
+
gmbAttributeMetadata(accountId, options) {
|
|
1055
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes/metadata`, { options });
|
|
1056
|
+
}
|
|
1057
|
+
/** List media `GET /social/accounts/{account_id}/gmb/media` */
|
|
1058
|
+
gmbMedia(accountId, options) {
|
|
1059
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { options });
|
|
1060
|
+
}
|
|
1061
|
+
/** Add photo `POST /social/accounts/{account_id}/gmb/media` */
|
|
1062
|
+
gmbCreateMedia(accountId, body, options) {
|
|
1063
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1064
|
+
}
|
|
1065
|
+
/** Delete media `DELETE /social/accounts/{account_id}/gmb/media` */
|
|
1066
|
+
gmbDeleteMedia(accountId, body, options) {
|
|
1067
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
|
|
1068
|
+
}
|
|
1069
|
+
/** Get food menus `GET /social/accounts/{account_id}/gmb/food-menus` */
|
|
1070
|
+
gmbFoodMenus(accountId, options) {
|
|
1071
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { options });
|
|
1072
|
+
}
|
|
1073
|
+
/** Update food menus `PUT /social/accounts/{account_id}/gmb/food-menus` */
|
|
1074
|
+
gmbUpdateFoodMenus(accountId, body, options) {
|
|
1075
|
+
return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { body, options });
|
|
1076
|
+
}
|
|
1077
|
+
/** List place-action links `GET /social/accounts/{account_id}/gmb/place-actions` */
|
|
1078
|
+
gmbPlaceActions(accountId, options) {
|
|
1079
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { options });
|
|
1080
|
+
}
|
|
1081
|
+
/** Create place-action link `POST /social/accounts/{account_id}/gmb/place-actions` */
|
|
1082
|
+
gmbCreatePlaceAction(accountId, body, options) {
|
|
1083
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1084
|
+
}
|
|
1085
|
+
/** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
|
|
1086
|
+
gmbDeletePlaceAction(accountId, body, options) {
|
|
1087
|
+
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
|
|
1088
|
+
}
|
|
1089
|
+
/** List verifications `GET /social/accounts/{account_id}/gmb/verifications` */
|
|
1090
|
+
gmbVerifications(accountId, options) {
|
|
1091
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications`, { options });
|
|
1092
|
+
}
|
|
1093
|
+
/** Verification options `POST /social/accounts/{account_id}/gmb/verifications/options` */
|
|
1094
|
+
gmbVerificationOptions(accountId, body, options) {
|
|
1095
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
|
|
1096
|
+
}
|
|
1001
1097
|
};
|
|
1002
1098
|
var UrlsResource = class {
|
|
1003
1099
|
constructor(_client) {
|