@smartlyqofficial/node 0.1.2 → 0.1.4

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
@@ -164,6 +164,26 @@ var AnalyticsResource = class {
164
164
  getAccount(accountId, query, options) {
165
165
  return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { query, options });
166
166
  }
167
+ /** Daily metrics `GET /analytics/daily-metrics` */
168
+ dailyMetrics(query, options) {
169
+ return this._client.request("GET", "/analytics/daily-metrics", { query, options });
170
+ }
171
+ /** Best time to post `GET /analytics/best-time` */
172
+ bestTime(query, options) {
173
+ return this._client.request("GET", "/analytics/best-time", { query, options });
174
+ }
175
+ /** Content decay `GET /analytics/content-decay` */
176
+ contentDecay(query, options) {
177
+ return this._client.request("GET", "/analytics/content-decay", { query, options });
178
+ }
179
+ /** Posting frequency vs engagement `GET /analytics/posting-frequency` */
180
+ postingFrequency(query, options) {
181
+ return this._client.request("GET", "/analytics/posting-frequency", { query, options });
182
+ }
183
+ /** Post metric timeline `GET /analytics/posts/{post_id}/timeline` */
184
+ postTimeline(postId, options) {
185
+ return this._client.request("GET", `/analytics/posts/${encodeURIComponent(postId)}/timeline`, { options });
186
+ }
167
187
  };
168
188
  var ArticlesResource = class {
169
189
  constructor(_client) {
@@ -649,9 +669,9 @@ var SocialResource = class {
649
669
  deletePost(postId, options) {
650
670
  return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}`, { options });
651
671
  }
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 });
672
+ /** Rename account `PATCH /social/accounts/{account_id}` */
673
+ updateAccount(accountId, body, options) {
674
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}`, { body, options });
655
675
  }
656
676
  /** Account health `GET /social/accounts/{account_id}/health` */
657
677
  getAccountHealth(accountId, options) {
@@ -721,6 +741,54 @@ var SocialResource = class {
721
741
  validateMedia(body, options) {
722
742
  return this._client.request("POST", "/social/validate/media", { body, options });
723
743
  }
744
+ /** Stop recycling `DELETE /social/posts/{post_id}/recycle` */
745
+ stopPostRecycle(postId, options) {
746
+ return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}/recycle`, { options });
747
+ }
748
+ /** Bulk schedule posts `POST /social/posts/bulk` */
749
+ bulkSchedulePosts(body, options) {
750
+ return this._client.request("POST", "/social/posts/bulk", { body, options });
751
+ }
752
+ /** Validate a bulk batch `POST /social/posts/bulk/validate` */
753
+ validateBulkBatch(body, options) {
754
+ return this._client.request("POST", "/social/posts/bulk/validate", { body, options });
755
+ }
756
+ /** Bulk account health `GET /social/accounts/health` */
757
+ bulkAccountHealth(options) {
758
+ return this._client.request("GET", "/social/accounts/health", { options });
759
+ }
760
+ /** Follower stats `GET /social/accounts/follower-stats` */
761
+ accountFollowerStats(query, options) {
762
+ return this._client.request("GET", "/social/accounts/follower-stats", { query, options });
763
+ }
764
+ /** TikTok creator info `GET /social/accounts/{account_id}/tiktok/creator-info` */
765
+ tiktokCreatorInfo(accountId, options) {
766
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/tiktok/creator-info`, { options });
767
+ }
768
+ /** Move account to profile `POST /social/accounts/{account_id}/move` */
769
+ moveAccount(accountId, body, options) {
770
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/move`, { body, options });
771
+ }
772
+ /** List account groups `GET /social/account-groups` */
773
+ listAccountGroups(options) {
774
+ return this._client.request("GET", "/social/account-groups", { options });
775
+ }
776
+ /** Create account group `POST /social/account-groups` */
777
+ createAccountGroup(body, options) {
778
+ return this._client.request("POST", "/social/account-groups", { body, options });
779
+ }
780
+ /** Get account group `GET /social/account-groups/{group_id}` */
781
+ getAccountGroup(groupId, options) {
782
+ return this._client.request("GET", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
783
+ }
784
+ /** Update account group `PUT /social/account-groups/{group_id}` */
785
+ updateAccountGroup(groupId, body, options) {
786
+ return this._client.request("PUT", `/social/account-groups/${encodeURIComponent(groupId)}`, { body, options });
787
+ }
788
+ /** Delete account group `DELETE /social/account-groups/{group_id}` */
789
+ deleteAccountGroup(groupId, options) {
790
+ return this._client.request("DELETE", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
791
+ }
724
792
  };
725
793
  var UrlsResource = class {
726
794
  constructor(_client) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
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",