@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 +13 -0
- package/dist/index.cjs +52 -0
- package/dist/index.d.cts +701 -1
- package/dist/index.d.ts +701 -1
- package/dist/index.js +52 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -681,6 +681,46 @@ 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
|
+
}
|
|
684
724
|
};
|
|
685
725
|
var UrlsResource = class {
|
|
686
726
|
constructor(_client) {
|
|
@@ -760,10 +800,22 @@ var WebhooksResource = class {
|
|
|
760
800
|
create(body, options) {
|
|
761
801
|
return this._client.request("POST", "/webhooks", { body, options });
|
|
762
802
|
}
|
|
803
|
+
/** Update webhook `PUT /webhooks/{id}` */
|
|
804
|
+
update(id, body, options) {
|
|
805
|
+
return this._client.request("PUT", `/webhooks/${encodeURIComponent(id)}`, { body, options });
|
|
806
|
+
}
|
|
763
807
|
/** Delete webhook `DELETE /webhooks/{id}` */
|
|
764
808
|
delete(id, options) {
|
|
765
809
|
return this._client.request("DELETE", `/webhooks/${encodeURIComponent(id)}`, { options });
|
|
766
810
|
}
|
|
811
|
+
/** List webhook delivery logs `GET /webhooks/logs` */
|
|
812
|
+
listLogs(query, options) {
|
|
813
|
+
return this._client.request("GET", "/webhooks/logs", { query, options });
|
|
814
|
+
}
|
|
815
|
+
/** Send test webhook `POST /webhooks/{id}/test` */
|
|
816
|
+
test(id, options) {
|
|
817
|
+
return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
|
|
818
|
+
}
|
|
767
819
|
};
|
|
768
820
|
var WorkspacesResource = class {
|
|
769
821
|
constructor(_client) {
|