@smartlyqofficial/node 0.1.6 → 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 +20 -0
- package/dist/index.cjs +80 -0
- package/dist/index.d.cts +1208 -1
- package/dist/index.d.ts +1208 -1
- package/dist/index.js +80 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -389,6 +389,26 @@ All methods below are available on the client. Full request/response documentati
|
|
|
389
389
|
| `sq.social.instagramStoryInsights(accountId, storyId, query?)` | `GET /social/accounts/{account_id}/instagram/stories/{story_id}/insights` | Instagram story insights |
|
|
390
390
|
| `sq.social.xRetweet(accountId, body)` | `POST /social/accounts/{account_id}/x/retweets` | Retweet on X |
|
|
391
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 |
|
|
392
412
|
|
|
393
413
|
### URLs
|
|
394
414
|
|
package/dist/index.cjs
CHANGED
|
@@ -1014,6 +1014,86 @@ var SocialResource = class {
|
|
|
1014
1014
|
xUnretweet(accountId, tweetId, options) {
|
|
1015
1015
|
return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets/${encodeURIComponent(tweetId)}`, { options });
|
|
1016
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
|
+
}
|
|
1017
1097
|
};
|
|
1018
1098
|
var UrlsResource = class {
|
|
1019
1099
|
constructor(_client) {
|