@smartlyqofficial/node 0.1.15 → 0.1.17

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
@@ -216,6 +216,22 @@ var AnalyticsResource = class {
216
216
  inboxConversationDetail(conversationId, options) {
217
217
  return this._client.request("GET", `/analytics/inbox/conversations/${encodeURIComponent(conversationId)}`, { options });
218
218
  }
219
+ /** YouTube channel insights `GET /analytics/youtube/channel-insights` */
220
+ getYoutubeChannelInsights(query, options) {
221
+ return this._client.request("GET", "/analytics/youtube/channel-insights", { query, options });
222
+ }
223
+ /** YouTube daily views `GET /analytics/youtube/daily-views` */
224
+ getYoutubeDailyViews(query, options) {
225
+ return this._client.request("GET", "/analytics/youtube/daily-views", { query, options });
226
+ }
227
+ /** YouTube audience retention `GET /analytics/youtube/video-retention` */
228
+ getYoutubeVideoRetention(query, options) {
229
+ return this._client.request("GET", "/analytics/youtube/video-retention", { query, options });
230
+ }
231
+ /** YouTube viewer demographics `GET /analytics/youtube/demographics` */
232
+ getYoutubeDemographics(query, options) {
233
+ return this._client.request("GET", "/analytics/youtube/demographics", { query, options });
234
+ }
219
235
  };
220
236
  var ArticlesResource = class {
221
237
  constructor(_client) {
@@ -519,6 +535,14 @@ var MessagesResource = class {
519
535
  markConversationRead(conversationId, options) {
520
536
  return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/read`, { options });
521
537
  }
538
+ /** React to a message `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` */
539
+ reactTo(conversationId, messageId, body, options) {
540
+ return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { body, options });
541
+ }
542
+ /** Remove a message reaction `DELETE /social/conversations/{conversation_id}/messages/{message_id}/reactions` */
543
+ removeReaction(conversationId, messageId, options) {
544
+ return this._client.request("DELETE", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { options });
545
+ }
522
546
  };
523
547
  var ImagesResource = class {
524
548
  constructor(_client) {
@@ -558,6 +582,15 @@ var JobsResource = class {
558
582
  return this._client.request("POST", `/jobs/${encodeURIComponent(jobId)}/cancel`, { body, options });
559
583
  }
560
584
  };
585
+ var LogsResource = class {
586
+ constructor(_client) {
587
+ this._client = _client;
588
+ }
589
+ /** List developer logs `GET /logs` */
590
+ list(query, options) {
591
+ return this._client.request("GET", "/logs", { query, options });
592
+ }
593
+ };
561
594
  var MediaResource = class {
562
595
  constructor(_client) {
563
596
  this._client = _client;
@@ -1153,6 +1186,10 @@ var UrlsResource = class {
1153
1186
  getStats(urlId, options) {
1154
1187
  return this._client.request("GET", `/urls/${encodeURIComponent(urlId)}/stats`, { options });
1155
1188
  }
1189
+ /** Update a short URL `PATCH /urls/{id}` */
1190
+ updateShort(id, body, options) {
1191
+ return this._client.request("PATCH", `/urls/${encodeURIComponent(id)}`, { body, options });
1192
+ }
1156
1193
  };
1157
1194
  var VideosResource = class {
1158
1195
  constructor(_client) {
@@ -1223,6 +1260,10 @@ var WebhooksResource = class {
1223
1260
  test(id, options) {
1224
1261
  return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
1225
1262
  }
1263
+ /** Replay a webhook delivery `POST /webhooks/deliveries/{id}/replay` */
1264
+ replayDelivery(id, options) {
1265
+ return this._client.request("POST", `/webhooks/deliveries/${encodeURIComponent(id)}/replay`, { options });
1266
+ }
1226
1267
  };
1227
1268
  var WhatsAppResource = class {
1228
1269
  constructor(_client) {
@@ -1252,6 +1293,30 @@ var WhatsAppResource = class {
1252
1293
  listWhatsAppPhoneNumbers(query, options) {
1253
1294
  return this._client.request("GET", "/whatsapp/phone-numbers", { query, options });
1254
1295
  }
1296
+ /** Get a WhatsApp template `GET /whatsapp/templates/{name}` */
1297
+ getTemplate(name, query, options) {
1298
+ return this._client.request("GET", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
1299
+ }
1300
+ /** Update a WhatsApp template `PATCH /whatsapp/templates/{name}` */
1301
+ updateTemplate(name, body, options) {
1302
+ return this._client.request("PATCH", `/whatsapp/templates/${encodeURIComponent(name)}`, { body, options });
1303
+ }
1304
+ /** Delete a WhatsApp template `DELETE /whatsapp/templates/{name}` */
1305
+ deleteTemplate(name, query, options) {
1306
+ return this._client.request("DELETE", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
1307
+ }
1308
+ /** Set the WhatsApp profile photo `POST /whatsapp/business-profile/photo` */
1309
+ updateProfilePhoto(body, options) {
1310
+ return this._client.request("POST", "/whatsapp/business-profile/photo", { body, options });
1311
+ }
1312
+ /** Get the WhatsApp display name `GET /whatsapp/business-profile/display-name` */
1313
+ getDisplayName(query, options) {
1314
+ return this._client.request("GET", "/whatsapp/business-profile/display-name", { query, options });
1315
+ }
1316
+ /** Request a WhatsApp display-name change `POST /whatsapp/business-profile/display-name` */
1317
+ updateDisplayName(body, options) {
1318
+ return this._client.request("POST", "/whatsapp/business-profile/display-name", { body, options });
1319
+ }
1255
1320
  };
1256
1321
  var WorkspacesResource = class {
1257
1322
  constructor(_client) {
@@ -1324,6 +1389,7 @@ function createResources(client) {
1324
1389
  messages: new MessagesResource(client),
1325
1390
  images: new ImagesResource(client),
1326
1391
  jobs: new JobsResource(client),
1392
+ logs: new LogsResource(client),
1327
1393
  media: new MediaResource(client),
1328
1394
  presentations: new PresentationsResource(client),
1329
1395
  profiles: new ProfilesResource(client),
@@ -1364,6 +1430,7 @@ export {
1364
1430
  CustomFieldsResource,
1365
1431
  ImagesResource,
1366
1432
  JobsResource,
1433
+ LogsResource,
1367
1434
  MediaResource,
1368
1435
  MessagesResource,
1369
1436
  OpportunitiesResource,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
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",