@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/README.md CHANGED
@@ -116,6 +116,11 @@ All methods below are available on the client. Full request/response documentati
116
116
  | `sq.analytics.getOverview(query?)` | `GET /analytics/overview` | Get analytics overview |
117
117
  | `sq.analytics.getPosts(query?)` | `GET /analytics/posts` | Get post analytics |
118
118
  | `sq.analytics.getAccount(accountId, query?)` | `GET /analytics/accounts/{account_id}` | Get account analytics |
119
+ | `sq.analytics.dailyMetrics(query?)` | `GET /analytics/daily-metrics` | Daily metrics |
120
+ | `sq.analytics.bestTime(query?)` | `GET /analytics/best-time` | Best time to post |
121
+ | `sq.analytics.contentDecay(query?)` | `GET /analytics/content-decay` | Content decay |
122
+ | `sq.analytics.postingFrequency(query?)` | `GET /analytics/posting-frequency` | Posting frequency vs engagement |
123
+ | `sq.analytics.postTimeline(postId)` | `GET /analytics/posts/{post_id}/timeline` | Post metric timeline |
119
124
 
120
125
  ### Articles
121
126
 
@@ -301,7 +306,7 @@ All methods below are available on the client. Full request/response documentati
301
306
  | `sq.social.getPost(postId)` | `GET /social/posts/{post_id}` | Get social post |
302
307
  | `sq.social.updatePost(postId, body)` | `PATCH /social/posts/{post_id}` | Update social post |
303
308
  | `sq.social.deletePost(postId)` | `DELETE /social/posts/{post_id}` | Delete social post |
304
- | `sq.social.disconnectAccount(accountId)` | `DELETE /social/accounts/{account_id}` | Disconnect a social account |
309
+ | `sq.social.updateAccount(accountId, body)` | `PATCH /social/accounts/{account_id}` | Rename account |
305
310
  | `sq.social.getAccountHealth(accountId)` | `GET /social/accounts/{account_id}/health` | Account health |
306
311
  | `sq.social.getAccountReconnectUrl(accountId)` | `GET /social/accounts/{account_id}/reconnect-url` | Account reconnect URL |
307
312
  | `sq.social.pauseAccount(accountId)` | `POST /social/accounts/{account_id}/pause` | Pause posting to an account |
@@ -319,6 +324,18 @@ All methods below are available on the client. Full request/response documentati
319
324
  | `sq.social.unpublishPost(postId, body?)` | `POST /social/posts/{post_id}/unpublish` | Unpublish post |
320
325
  | `sq.social.validatePost(body)` | `POST /social/validate/post` | Validate post content |
321
326
  | `sq.social.validateMedia(body)` | `POST /social/validate/media` | Validate media URL |
327
+ | `sq.social.stopPostRecycle(postId)` | `DELETE /social/posts/{post_id}/recycle` | Stop recycling |
328
+ | `sq.social.bulkSchedulePosts(body)` | `POST /social/posts/bulk` | Bulk schedule posts |
329
+ | `sq.social.validateBulkBatch(body)` | `POST /social/posts/bulk/validate` | Validate a bulk batch |
330
+ | `sq.social.bulkAccountHealth()` | `GET /social/accounts/health` | Bulk account health |
331
+ | `sq.social.accountFollowerStats(query?)` | `GET /social/accounts/follower-stats` | Follower stats |
332
+ | `sq.social.tiktokCreatorInfo(accountId)` | `GET /social/accounts/{account_id}/tiktok/creator-info` | TikTok creator info |
333
+ | `sq.social.moveAccount(accountId, body)` | `POST /social/accounts/{account_id}/move` | Move account to profile |
334
+ | `sq.social.listAccountGroups()` | `GET /social/account-groups` | List account groups |
335
+ | `sq.social.createAccountGroup(body)` | `POST /social/account-groups` | Create account group |
336
+ | `sq.social.getAccountGroup(groupId)` | `GET /social/account-groups/{group_id}` | Get account group |
337
+ | `sq.social.updateAccountGroup(groupId, body)` | `PUT /social/account-groups/{group_id}` | Update account group |
338
+ | `sq.social.deleteAccountGroup(groupId)` | `DELETE /social/account-groups/{group_id}` | Delete account group |
322
339
 
323
340
  ### URLs
324
341
 
package/dist/index.cjs CHANGED
@@ -219,6 +219,26 @@ var AnalyticsResource = class {
219
219
  getAccount(accountId, query, options) {
220
220
  return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { query, options });
221
221
  }
222
+ /** Daily metrics `GET /analytics/daily-metrics` */
223
+ dailyMetrics(query, options) {
224
+ return this._client.request("GET", "/analytics/daily-metrics", { query, options });
225
+ }
226
+ /** Best time to post `GET /analytics/best-time` */
227
+ bestTime(query, options) {
228
+ return this._client.request("GET", "/analytics/best-time", { query, options });
229
+ }
230
+ /** Content decay `GET /analytics/content-decay` */
231
+ contentDecay(query, options) {
232
+ return this._client.request("GET", "/analytics/content-decay", { query, options });
233
+ }
234
+ /** Posting frequency vs engagement `GET /analytics/posting-frequency` */
235
+ postingFrequency(query, options) {
236
+ return this._client.request("GET", "/analytics/posting-frequency", { query, options });
237
+ }
238
+ /** Post metric timeline `GET /analytics/posts/{post_id}/timeline` */
239
+ postTimeline(postId, options) {
240
+ return this._client.request("GET", `/analytics/posts/${encodeURIComponent(postId)}/timeline`, { options });
241
+ }
222
242
  };
223
243
  var ArticlesResource = class {
224
244
  constructor(_client) {
@@ -704,9 +724,9 @@ var SocialResource = class {
704
724
  deletePost(postId, options) {
705
725
  return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}`, { options });
706
726
  }
707
- /** Disconnect a social account `DELETE /social/accounts/{account_id}` */
708
- disconnectAccount(accountId, options) {
709
- return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}`, { options });
727
+ /** Rename account `PATCH /social/accounts/{account_id}` */
728
+ updateAccount(accountId, body, options) {
729
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}`, { body, options });
710
730
  }
711
731
  /** Account health `GET /social/accounts/{account_id}/health` */
712
732
  getAccountHealth(accountId, options) {
@@ -776,6 +796,54 @@ var SocialResource = class {
776
796
  validateMedia(body, options) {
777
797
  return this._client.request("POST", "/social/validate/media", { body, options });
778
798
  }
799
+ /** Stop recycling `DELETE /social/posts/{post_id}/recycle` */
800
+ stopPostRecycle(postId, options) {
801
+ return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}/recycle`, { options });
802
+ }
803
+ /** Bulk schedule posts `POST /social/posts/bulk` */
804
+ bulkSchedulePosts(body, options) {
805
+ return this._client.request("POST", "/social/posts/bulk", { body, options });
806
+ }
807
+ /** Validate a bulk batch `POST /social/posts/bulk/validate` */
808
+ validateBulkBatch(body, options) {
809
+ return this._client.request("POST", "/social/posts/bulk/validate", { body, options });
810
+ }
811
+ /** Bulk account health `GET /social/accounts/health` */
812
+ bulkAccountHealth(options) {
813
+ return this._client.request("GET", "/social/accounts/health", { options });
814
+ }
815
+ /** Follower stats `GET /social/accounts/follower-stats` */
816
+ accountFollowerStats(query, options) {
817
+ return this._client.request("GET", "/social/accounts/follower-stats", { query, options });
818
+ }
819
+ /** TikTok creator info `GET /social/accounts/{account_id}/tiktok/creator-info` */
820
+ tiktokCreatorInfo(accountId, options) {
821
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/tiktok/creator-info`, { options });
822
+ }
823
+ /** Move account to profile `POST /social/accounts/{account_id}/move` */
824
+ moveAccount(accountId, body, options) {
825
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/move`, { body, options });
826
+ }
827
+ /** List account groups `GET /social/account-groups` */
828
+ listAccountGroups(options) {
829
+ return this._client.request("GET", "/social/account-groups", { options });
830
+ }
831
+ /** Create account group `POST /social/account-groups` */
832
+ createAccountGroup(body, options) {
833
+ return this._client.request("POST", "/social/account-groups", { body, options });
834
+ }
835
+ /** Get account group `GET /social/account-groups/{group_id}` */
836
+ getAccountGroup(groupId, options) {
837
+ return this._client.request("GET", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
838
+ }
839
+ /** Update account group `PUT /social/account-groups/{group_id}` */
840
+ updateAccountGroup(groupId, body, options) {
841
+ return this._client.request("PUT", `/social/account-groups/${encodeURIComponent(groupId)}`, { body, options });
842
+ }
843
+ /** Delete account group `DELETE /social/account-groups/{group_id}` */
844
+ deleteAccountGroup(groupId, options) {
845
+ return this._client.request("DELETE", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
846
+ }
779
847
  };
780
848
  var UrlsResource = class {
781
849
  constructor(_client) {