@smartlyqofficial/node 0.1.1 → 0.1.2

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
@@ -309,6 +309,16 @@ All methods below are available on the client. Full request/response documentati
309
309
  | `sq.social.retryPost(postId, body)` | `POST /social/posts/{post_id}/retry` | Retry publishing a post |
310
310
  | `sq.social.connectAccountStatus(platform)` | `GET /social/connect/{platform}` | Poll headless connection status |
311
311
  | `sq.social.connectAccount(platform, body?)` | `POST /social/connect/{platform}` | Start headless account connection |
312
+ | `sq.social.listQueues()` | `GET /social/queues` | List queues |
313
+ | `sq.social.createQueue(body)` | `POST /social/queues` | Create queue |
314
+ | `sq.social.getQueue(queueId)` | `GET /social/queues/{queue_id}` | Get queue |
315
+ | `sq.social.updateQueue(queueId, body)` | `PUT /social/queues/{queue_id}` | Update queue |
316
+ | `sq.social.deleteQueue(queueId)` | `DELETE /social/queues/{queue_id}` | Delete queue |
317
+ | `sq.social.getQueueNextSlot(queueId)` | `GET /social/queues/{queue_id}/next-slot` | Get next open slot |
318
+ | `sq.social.previewQueueSlots(queueId, query?)` | `GET /social/queues/{queue_id}/preview` | Preview upcoming slots |
319
+ | `sq.social.unpublishPost(postId, body?)` | `POST /social/posts/{post_id}/unpublish` | Unpublish post |
320
+ | `sq.social.validatePost(body)` | `POST /social/validate/post` | Validate post content |
321
+ | `sq.social.validateMedia(body)` | `POST /social/validate/media` | Validate media URL |
312
322
 
313
323
  ### URLs
314
324
 
@@ -340,7 +350,10 @@ All methods below are available on the client. Full request/response documentati
340
350
  | --- | --- | --- |
341
351
  | `sq.webhooks.list()` | `GET /webhooks` | List webhooks |
342
352
  | `sq.webhooks.create(body)` | `POST /webhooks` | Create webhook |
353
+ | `sq.webhooks.update(id, body)` | `PUT /webhooks/{id}` | Update webhook |
343
354
  | `sq.webhooks.delete(id)` | `DELETE /webhooks/{id}` | Delete webhook |
355
+ | `sq.webhooks.listLogs(query?)` | `GET /webhooks/logs` | List webhook delivery logs |
356
+ | `sq.webhooks.test(id)` | `POST /webhooks/{id}/test` | Send test webhook |
344
357
 
345
358
  ### Workspaces
346
359
 
package/dist/index.cjs CHANGED
@@ -736,6 +736,46 @@ var SocialResource = class {
736
736
  connectAccount(platform, body, options) {
737
737
  return this._client.request("POST", `/social/connect/${encodeURIComponent(platform)}`, { body, options });
738
738
  }
739
+ /** List queues `GET /social/queues` */
740
+ listQueues(options) {
741
+ return this._client.request("GET", "/social/queues", { options });
742
+ }
743
+ /** Create queue `POST /social/queues` */
744
+ createQueue(body, options) {
745
+ return this._client.request("POST", "/social/queues", { body, options });
746
+ }
747
+ /** Get queue `GET /social/queues/{queue_id}` */
748
+ getQueue(queueId, options) {
749
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}`, { options });
750
+ }
751
+ /** Update queue `PUT /social/queues/{queue_id}` */
752
+ updateQueue(queueId, body, options) {
753
+ return this._client.request("PUT", `/social/queues/${encodeURIComponent(queueId)}`, { body, options });
754
+ }
755
+ /** Delete queue `DELETE /social/queues/{queue_id}` */
756
+ deleteQueue(queueId, options) {
757
+ return this._client.request("DELETE", `/social/queues/${encodeURIComponent(queueId)}`, { options });
758
+ }
759
+ /** Get next open slot `GET /social/queues/{queue_id}/next-slot` */
760
+ getQueueNextSlot(queueId, options) {
761
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/next-slot`, { options });
762
+ }
763
+ /** Preview upcoming slots `GET /social/queues/{queue_id}/preview` */
764
+ previewQueueSlots(queueId, query, options) {
765
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/preview`, { query, options });
766
+ }
767
+ /** Unpublish post `POST /social/posts/{post_id}/unpublish` */
768
+ unpublishPost(postId, body, options) {
769
+ return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/unpublish`, { body, options });
770
+ }
771
+ /** Validate post content `POST /social/validate/post` */
772
+ validatePost(body, options) {
773
+ return this._client.request("POST", "/social/validate/post", { body, options });
774
+ }
775
+ /** Validate media URL `POST /social/validate/media` */
776
+ validateMedia(body, options) {
777
+ return this._client.request("POST", "/social/validate/media", { body, options });
778
+ }
739
779
  };
740
780
  var UrlsResource = class {
741
781
  constructor(_client) {
@@ -815,10 +855,22 @@ var WebhooksResource = class {
815
855
  create(body, options) {
816
856
  return this._client.request("POST", "/webhooks", { body, options });
817
857
  }
858
+ /** Update webhook `PUT /webhooks/{id}` */
859
+ update(id, body, options) {
860
+ return this._client.request("PUT", `/webhooks/${encodeURIComponent(id)}`, { body, options });
861
+ }
818
862
  /** Delete webhook `DELETE /webhooks/{id}` */
819
863
  delete(id, options) {
820
864
  return this._client.request("DELETE", `/webhooks/${encodeURIComponent(id)}`, { options });
821
865
  }
866
+ /** List webhook delivery logs `GET /webhooks/logs` */
867
+ listLogs(query, options) {
868
+ return this._client.request("GET", "/webhooks/logs", { query, options });
869
+ }
870
+ /** Send test webhook `POST /webhooks/{id}/test` */
871
+ test(id, options) {
872
+ return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
873
+ }
822
874
  };
823
875
  var WorkspacesResource = class {
824
876
  constructor(_client) {