@smartlyqofficial/node 0.1.18 → 0.1.20

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
@@ -295,6 +295,22 @@ var AutomationsResource = class {
295
295
  trigger(automationId, body, options) {
296
296
  return this._client.request("POST", `/automations/${encodeURIComponent(automationId)}/trigger`, { body, options });
297
297
  }
298
+ /** Duplicate an automation `POST /automations/{automation_id}/duplicate` */
299
+ duplicate(automationId, options) {
300
+ return this._client.request("POST", `/automations/${encodeURIComponent(automationId)}/duplicate`, { options });
301
+ }
302
+ /** List automation versions `GET /automations/{automation_id}/versions` */
303
+ listVersions(automationId, options) {
304
+ return this._client.request("GET", `/automations/${encodeURIComponent(automationId)}/versions`, { options });
305
+ }
306
+ /** Get one automation version `GET /automations/{automation_id}/versions/{version}` */
307
+ getVersion(automationId, version, options) {
308
+ return this._client.request("GET", `/automations/${encodeURIComponent(automationId)}/versions/${encodeURIComponent(version)}`, { options });
309
+ }
310
+ /** Restore an automation version `POST /automations/{automation_id}/versions/{version}/restore` */
311
+ restoreVersion(automationId, version, options) {
312
+ return this._client.request("POST", `/automations/${encodeURIComponent(automationId)}/versions/${encodeURIComponent(version)}/restore`, { options });
313
+ }
298
314
  /** List runs `GET /automations/{automation_id}/runs` */
299
315
  listRuns(automationId, query, options) {
300
316
  return this._client.request("GET", `/automations/${encodeURIComponent(automationId)}/runs`, { query, options });
@@ -365,6 +381,18 @@ var CommentsResource = class {
365
381
  hide(commentId, options) {
366
382
  return this._client.request("POST", `/social/comments/${encodeURIComponent(commentId)}/hide`, { options });
367
383
  }
384
+ /** Approve or reject a comment `POST /social/comments/{comment_id}/moderate` */
385
+ moderate(commentId, body, options) {
386
+ return this._client.request("POST", `/social/comments/${encodeURIComponent(commentId)}/moderate`, { body, options });
387
+ }
388
+ /** Like a comment `POST /social/comments/{comment_id}/like` */
389
+ like(commentId, options) {
390
+ return this._client.request("POST", `/social/comments/${encodeURIComponent(commentId)}/like`, { options });
391
+ }
392
+ /** Unlike a comment `DELETE /social/comments/{comment_id}/like` */
393
+ unlike(commentId, options) {
394
+ return this._client.request("DELETE", `/social/comments/${encodeURIComponent(commentId)}/like`, { options });
395
+ }
368
396
  /** Delete a comment `DELETE /social/comments/{comment_id}` */
369
397
  delete(commentId, options) {
370
398
  return this._client.request("DELETE", `/social/comments/${encodeURIComponent(commentId)}`, { options });
@@ -535,6 +563,10 @@ var MessagesResource = class {
535
563
  markConversationRead(conversationId, options) {
536
564
  return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/read`, { options });
537
565
  }
566
+ /** Delete a sent message `DELETE /social/conversations/{conversation_id}/messages/{message_id}` */
567
+ delete(conversationId, messageId, options) {
568
+ return this._client.request("DELETE", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}`, { options });
569
+ }
538
570
  /** React to a message `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` */
539
571
  reactTo(conversationId, messageId, body, options) {
540
572
  return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { body, options });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
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",