@smartlyqofficial/node 0.1.2 → 0.1.3
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 +13 -1
- package/dist/index.cjs +51 -3
- package/dist/index.d.cts +685 -26
- package/dist/index.d.ts +685 -26
- package/dist/index.js +51 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -301,7 +301,7 @@ All methods below are available on the client. Full request/response documentati
|
|
|
301
301
|
| `sq.social.getPost(postId)` | `GET /social/posts/{post_id}` | Get social post |
|
|
302
302
|
| `sq.social.updatePost(postId, body)` | `PATCH /social/posts/{post_id}` | Update social post |
|
|
303
303
|
| `sq.social.deletePost(postId)` | `DELETE /social/posts/{post_id}` | Delete social post |
|
|
304
|
-
| `sq.social.
|
|
304
|
+
| `sq.social.updateAccount(accountId, body)` | `PATCH /social/accounts/{account_id}` | Rename account |
|
|
305
305
|
| `sq.social.getAccountHealth(accountId)` | `GET /social/accounts/{account_id}/health` | Account health |
|
|
306
306
|
| `sq.social.getAccountReconnectUrl(accountId)` | `GET /social/accounts/{account_id}/reconnect-url` | Account reconnect URL |
|
|
307
307
|
| `sq.social.pauseAccount(accountId)` | `POST /social/accounts/{account_id}/pause` | Pause posting to an account |
|
|
@@ -319,6 +319,18 @@ All methods below are available on the client. Full request/response documentati
|
|
|
319
319
|
| `sq.social.unpublishPost(postId, body?)` | `POST /social/posts/{post_id}/unpublish` | Unpublish post |
|
|
320
320
|
| `sq.social.validatePost(body)` | `POST /social/validate/post` | Validate post content |
|
|
321
321
|
| `sq.social.validateMedia(body)` | `POST /social/validate/media` | Validate media URL |
|
|
322
|
+
| `sq.social.stopPostRecycle(postId)` | `DELETE /social/posts/{post_id}/recycle` | Stop recycling |
|
|
323
|
+
| `sq.social.bulkSchedulePosts(body)` | `POST /social/posts/bulk` | Bulk schedule posts |
|
|
324
|
+
| `sq.social.validateBulkBatch(body)` | `POST /social/posts/bulk/validate` | Validate a bulk batch |
|
|
325
|
+
| `sq.social.bulkAccountHealth()` | `GET /social/accounts/health` | Bulk account health |
|
|
326
|
+
| `sq.social.accountFollowerStats(query?)` | `GET /social/accounts/follower-stats` | Follower stats |
|
|
327
|
+
| `sq.social.tiktokCreatorInfo(accountId)` | `GET /social/accounts/{account_id}/tiktok/creator-info` | TikTok creator info |
|
|
328
|
+
| `sq.social.moveAccount(accountId, body)` | `POST /social/accounts/{account_id}/move` | Move account to profile |
|
|
329
|
+
| `sq.social.listAccountGroups()` | `GET /social/account-groups` | List account groups |
|
|
330
|
+
| `sq.social.createAccountGroup(body)` | `POST /social/account-groups` | Create account group |
|
|
331
|
+
| `sq.social.getAccountGroup(groupId)` | `GET /social/account-groups/{group_id}` | Get account group |
|
|
332
|
+
| `sq.social.updateAccountGroup(groupId, body)` | `PUT /social/account-groups/{group_id}` | Update account group |
|
|
333
|
+
| `sq.social.deleteAccountGroup(groupId)` | `DELETE /social/account-groups/{group_id}` | Delete account group |
|
|
322
334
|
|
|
323
335
|
### URLs
|
|
324
336
|
|
package/dist/index.cjs
CHANGED
|
@@ -704,9 +704,9 @@ var SocialResource = class {
|
|
|
704
704
|
deletePost(postId, options) {
|
|
705
705
|
return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}`, { options });
|
|
706
706
|
}
|
|
707
|
-
/**
|
|
708
|
-
|
|
709
|
-
return this._client.request("
|
|
707
|
+
/** Rename account `PATCH /social/accounts/{account_id}` */
|
|
708
|
+
updateAccount(accountId, body, options) {
|
|
709
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}`, { body, options });
|
|
710
710
|
}
|
|
711
711
|
/** Account health `GET /social/accounts/{account_id}/health` */
|
|
712
712
|
getAccountHealth(accountId, options) {
|
|
@@ -776,6 +776,54 @@ var SocialResource = class {
|
|
|
776
776
|
validateMedia(body, options) {
|
|
777
777
|
return this._client.request("POST", "/social/validate/media", { body, options });
|
|
778
778
|
}
|
|
779
|
+
/** Stop recycling `DELETE /social/posts/{post_id}/recycle` */
|
|
780
|
+
stopPostRecycle(postId, options) {
|
|
781
|
+
return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}/recycle`, { options });
|
|
782
|
+
}
|
|
783
|
+
/** Bulk schedule posts `POST /social/posts/bulk` */
|
|
784
|
+
bulkSchedulePosts(body, options) {
|
|
785
|
+
return this._client.request("POST", "/social/posts/bulk", { body, options });
|
|
786
|
+
}
|
|
787
|
+
/** Validate a bulk batch `POST /social/posts/bulk/validate` */
|
|
788
|
+
validateBulkBatch(body, options) {
|
|
789
|
+
return this._client.request("POST", "/social/posts/bulk/validate", { body, options });
|
|
790
|
+
}
|
|
791
|
+
/** Bulk account health `GET /social/accounts/health` */
|
|
792
|
+
bulkAccountHealth(options) {
|
|
793
|
+
return this._client.request("GET", "/social/accounts/health", { options });
|
|
794
|
+
}
|
|
795
|
+
/** Follower stats `GET /social/accounts/follower-stats` */
|
|
796
|
+
accountFollowerStats(query, options) {
|
|
797
|
+
return this._client.request("GET", "/social/accounts/follower-stats", { query, options });
|
|
798
|
+
}
|
|
799
|
+
/** TikTok creator info `GET /social/accounts/{account_id}/tiktok/creator-info` */
|
|
800
|
+
tiktokCreatorInfo(accountId, options) {
|
|
801
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/tiktok/creator-info`, { options });
|
|
802
|
+
}
|
|
803
|
+
/** Move account to profile `POST /social/accounts/{account_id}/move` */
|
|
804
|
+
moveAccount(accountId, body, options) {
|
|
805
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/move`, { body, options });
|
|
806
|
+
}
|
|
807
|
+
/** List account groups `GET /social/account-groups` */
|
|
808
|
+
listAccountGroups(options) {
|
|
809
|
+
return this._client.request("GET", "/social/account-groups", { options });
|
|
810
|
+
}
|
|
811
|
+
/** Create account group `POST /social/account-groups` */
|
|
812
|
+
createAccountGroup(body, options) {
|
|
813
|
+
return this._client.request("POST", "/social/account-groups", { body, options });
|
|
814
|
+
}
|
|
815
|
+
/** Get account group `GET /social/account-groups/{group_id}` */
|
|
816
|
+
getAccountGroup(groupId, options) {
|
|
817
|
+
return this._client.request("GET", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
|
|
818
|
+
}
|
|
819
|
+
/** Update account group `PUT /social/account-groups/{group_id}` */
|
|
820
|
+
updateAccountGroup(groupId, body, options) {
|
|
821
|
+
return this._client.request("PUT", `/social/account-groups/${encodeURIComponent(groupId)}`, { body, options });
|
|
822
|
+
}
|
|
823
|
+
/** Delete account group `DELETE /social/account-groups/{group_id}` */
|
|
824
|
+
deleteAccountGroup(groupId, options) {
|
|
825
|
+
return this._client.request("DELETE", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
|
|
826
|
+
}
|
|
779
827
|
};
|
|
780
828
|
var UrlsResource = class {
|
|
781
829
|
constructor(_client) {
|