@smartlyqofficial/node 0.1.1 → 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/dist/index.js CHANGED
@@ -649,9 +649,9 @@ var SocialResource = class {
649
649
  deletePost(postId, options) {
650
650
  return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}`, { options });
651
651
  }
652
- /** Disconnect a social account `DELETE /social/accounts/{account_id}` */
653
- disconnectAccount(accountId, options) {
654
- return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}`, { options });
652
+ /** Rename account `PATCH /social/accounts/{account_id}` */
653
+ updateAccount(accountId, body, options) {
654
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}`, { body, options });
655
655
  }
656
656
  /** Account health `GET /social/accounts/{account_id}/health` */
657
657
  getAccountHealth(accountId, options) {
@@ -681,6 +681,94 @@ var SocialResource = class {
681
681
  connectAccount(platform, body, options) {
682
682
  return this._client.request("POST", `/social/connect/${encodeURIComponent(platform)}`, { body, options });
683
683
  }
684
+ /** List queues `GET /social/queues` */
685
+ listQueues(options) {
686
+ return this._client.request("GET", "/social/queues", { options });
687
+ }
688
+ /** Create queue `POST /social/queues` */
689
+ createQueue(body, options) {
690
+ return this._client.request("POST", "/social/queues", { body, options });
691
+ }
692
+ /** Get queue `GET /social/queues/{queue_id}` */
693
+ getQueue(queueId, options) {
694
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}`, { options });
695
+ }
696
+ /** Update queue `PUT /social/queues/{queue_id}` */
697
+ updateQueue(queueId, body, options) {
698
+ return this._client.request("PUT", `/social/queues/${encodeURIComponent(queueId)}`, { body, options });
699
+ }
700
+ /** Delete queue `DELETE /social/queues/{queue_id}` */
701
+ deleteQueue(queueId, options) {
702
+ return this._client.request("DELETE", `/social/queues/${encodeURIComponent(queueId)}`, { options });
703
+ }
704
+ /** Get next open slot `GET /social/queues/{queue_id}/next-slot` */
705
+ getQueueNextSlot(queueId, options) {
706
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/next-slot`, { options });
707
+ }
708
+ /** Preview upcoming slots `GET /social/queues/{queue_id}/preview` */
709
+ previewQueueSlots(queueId, query, options) {
710
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/preview`, { query, options });
711
+ }
712
+ /** Unpublish post `POST /social/posts/{post_id}/unpublish` */
713
+ unpublishPost(postId, body, options) {
714
+ return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/unpublish`, { body, options });
715
+ }
716
+ /** Validate post content `POST /social/validate/post` */
717
+ validatePost(body, options) {
718
+ return this._client.request("POST", "/social/validate/post", { body, options });
719
+ }
720
+ /** Validate media URL `POST /social/validate/media` */
721
+ validateMedia(body, options) {
722
+ return this._client.request("POST", "/social/validate/media", { body, options });
723
+ }
724
+ /** Stop recycling `DELETE /social/posts/{post_id}/recycle` */
725
+ stopPostRecycle(postId, options) {
726
+ return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}/recycle`, { options });
727
+ }
728
+ /** Bulk schedule posts `POST /social/posts/bulk` */
729
+ bulkSchedulePosts(body, options) {
730
+ return this._client.request("POST", "/social/posts/bulk", { body, options });
731
+ }
732
+ /** Validate a bulk batch `POST /social/posts/bulk/validate` */
733
+ validateBulkBatch(body, options) {
734
+ return this._client.request("POST", "/social/posts/bulk/validate", { body, options });
735
+ }
736
+ /** Bulk account health `GET /social/accounts/health` */
737
+ bulkAccountHealth(options) {
738
+ return this._client.request("GET", "/social/accounts/health", { options });
739
+ }
740
+ /** Follower stats `GET /social/accounts/follower-stats` */
741
+ accountFollowerStats(query, options) {
742
+ return this._client.request("GET", "/social/accounts/follower-stats", { query, options });
743
+ }
744
+ /** TikTok creator info `GET /social/accounts/{account_id}/tiktok/creator-info` */
745
+ tiktokCreatorInfo(accountId, options) {
746
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/tiktok/creator-info`, { options });
747
+ }
748
+ /** Move account to profile `POST /social/accounts/{account_id}/move` */
749
+ moveAccount(accountId, body, options) {
750
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/move`, { body, options });
751
+ }
752
+ /** List account groups `GET /social/account-groups` */
753
+ listAccountGroups(options) {
754
+ return this._client.request("GET", "/social/account-groups", { options });
755
+ }
756
+ /** Create account group `POST /social/account-groups` */
757
+ createAccountGroup(body, options) {
758
+ return this._client.request("POST", "/social/account-groups", { body, options });
759
+ }
760
+ /** Get account group `GET /social/account-groups/{group_id}` */
761
+ getAccountGroup(groupId, options) {
762
+ return this._client.request("GET", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
763
+ }
764
+ /** Update account group `PUT /social/account-groups/{group_id}` */
765
+ updateAccountGroup(groupId, body, options) {
766
+ return this._client.request("PUT", `/social/account-groups/${encodeURIComponent(groupId)}`, { body, options });
767
+ }
768
+ /** Delete account group `DELETE /social/account-groups/{group_id}` */
769
+ deleteAccountGroup(groupId, options) {
770
+ return this._client.request("DELETE", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
771
+ }
684
772
  };
685
773
  var UrlsResource = class {
686
774
  constructor(_client) {
@@ -760,10 +848,22 @@ var WebhooksResource = class {
760
848
  create(body, options) {
761
849
  return this._client.request("POST", "/webhooks", { body, options });
762
850
  }
851
+ /** Update webhook `PUT /webhooks/{id}` */
852
+ update(id, body, options) {
853
+ return this._client.request("PUT", `/webhooks/${encodeURIComponent(id)}`, { body, options });
854
+ }
763
855
  /** Delete webhook `DELETE /webhooks/{id}` */
764
856
  delete(id, options) {
765
857
  return this._client.request("DELETE", `/webhooks/${encodeURIComponent(id)}`, { options });
766
858
  }
859
+ /** List webhook delivery logs `GET /webhooks/logs` */
860
+ listLogs(query, options) {
861
+ return this._client.request("GET", "/webhooks/logs", { query, options });
862
+ }
863
+ /** Send test webhook `POST /webhooks/{id}/test` */
864
+ test(id, options) {
865
+ return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
866
+ }
767
867
  };
768
868
  var WorkspacesResource = class {
769
869
  constructor(_client) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",