@smartlyqofficial/node 0.1.19 → 0.1.21
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 +21 -0
- package/dist/index.cjs +84 -0
- package/dist/index.d.cts +852 -3
- package/dist/index.d.ts +852 -3
- package/dist/index.js +84 -0
- package/package.json +1 -1
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 });
|
|
@@ -1321,6 +1353,58 @@ var WhatsAppResource = class {
|
|
|
1321
1353
|
listWhatsAppPhoneNumbers(query, options) {
|
|
1322
1354
|
return this._client.request("GET", "/whatsapp/phone-numbers", { query, options });
|
|
1323
1355
|
}
|
|
1356
|
+
/** List flows `GET /whatsapp/flows` */
|
|
1357
|
+
listWhatsAppFlows(query, options) {
|
|
1358
|
+
return this._client.request("GET", "/whatsapp/flows", { query, options });
|
|
1359
|
+
}
|
|
1360
|
+
/** Create a flow `POST /whatsapp/flows` */
|
|
1361
|
+
createWhatsAppFlow(body, options) {
|
|
1362
|
+
return this._client.request("POST", "/whatsapp/flows", { body, options });
|
|
1363
|
+
}
|
|
1364
|
+
/** Get flow `GET /whatsapp/flows/{flow_id}` */
|
|
1365
|
+
getWhatsAppFlow(flowId, query, options) {
|
|
1366
|
+
return this._client.request("GET", `/whatsapp/flows/${encodeURIComponent(flowId)}`, { query, options });
|
|
1367
|
+
}
|
|
1368
|
+
/** Update flow `PATCH /whatsapp/flows/{flow_id}` */
|
|
1369
|
+
updateWhatsAppFlow(flowId, body, options) {
|
|
1370
|
+
return this._client.request("PATCH", `/whatsapp/flows/${encodeURIComponent(flowId)}`, { body, options });
|
|
1371
|
+
}
|
|
1372
|
+
/** Delete flow `DELETE /whatsapp/flows/{flow_id}` */
|
|
1373
|
+
deleteWhatsAppFlow(flowId, query, options) {
|
|
1374
|
+
return this._client.request("DELETE", `/whatsapp/flows/${encodeURIComponent(flowId)}`, { query, options });
|
|
1375
|
+
}
|
|
1376
|
+
/** Get flow JSON asset `GET /whatsapp/flows/{flow_id}/json` */
|
|
1377
|
+
getWhatsAppFlowJson(flowId, query, options) {
|
|
1378
|
+
return this._client.request("GET", `/whatsapp/flows/${encodeURIComponent(flowId)}/json`, { query, options });
|
|
1379
|
+
}
|
|
1380
|
+
/** Upload flow JSON `PUT /whatsapp/flows/{flow_id}/json` */
|
|
1381
|
+
uploadWhatsAppFlowJson(flowId, body, options) {
|
|
1382
|
+
return this._client.request("PUT", `/whatsapp/flows/${encodeURIComponent(flowId)}/json`, { body, options });
|
|
1383
|
+
}
|
|
1384
|
+
/** Get flow preview URL `GET /whatsapp/flows/{flow_id}/preview` */
|
|
1385
|
+
getWhatsAppFlowPreview(flowId, query, options) {
|
|
1386
|
+
return this._client.request("GET", `/whatsapp/flows/${encodeURIComponent(flowId)}/preview`, { query, options });
|
|
1387
|
+
}
|
|
1388
|
+
/** Publish flow `POST /whatsapp/flows/{flow_id}/publish` */
|
|
1389
|
+
publishWhatsAppFlow(flowId, body, options) {
|
|
1390
|
+
return this._client.request("POST", `/whatsapp/flows/${encodeURIComponent(flowId)}/publish`, { body, options });
|
|
1391
|
+
}
|
|
1392
|
+
/** Deprecate flow `POST /whatsapp/flows/{flow_id}/deprecate` */
|
|
1393
|
+
deprecateWhatsAppFlow(flowId, body, options) {
|
|
1394
|
+
return this._client.request("POST", `/whatsapp/flows/${encodeURIComponent(flowId)}/deprecate`, { body, options });
|
|
1395
|
+
}
|
|
1396
|
+
/** List blocked users `GET /whatsapp/block-users` */
|
|
1397
|
+
getWhatsAppBlockedUsers(query, options) {
|
|
1398
|
+
return this._client.request("GET", "/whatsapp/block-users", { query, options });
|
|
1399
|
+
}
|
|
1400
|
+
/** Block users `POST /whatsapp/block-users` */
|
|
1401
|
+
blockWhatsAppUsers(body, options) {
|
|
1402
|
+
return this._client.request("POST", "/whatsapp/block-users", { body, options });
|
|
1403
|
+
}
|
|
1404
|
+
/** Unblock users `DELETE /whatsapp/block-users` */
|
|
1405
|
+
unblockWhatsAppUsers(body, options) {
|
|
1406
|
+
return this._client.request("DELETE", "/whatsapp/block-users", { body, options });
|
|
1407
|
+
}
|
|
1324
1408
|
/** Get a WhatsApp template `GET /whatsapp/templates/{name}` */
|
|
1325
1409
|
getTemplate(name, query, options) {
|
|
1326
1410
|
return this._client.request("GET", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
|