@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/README.md +20 -0
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +1268 -215
- package/dist/index.d.ts +1268 -215
- package/dist/index.js +67 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -129,6 +129,10 @@ All methods below are available on the client. Full request/response documentati
|
|
|
129
129
|
| `sq.analytics.inboxTopAccounts(query?)` | `GET /analytics/inbox/top-accounts` | Inbox top accounts |
|
|
130
130
|
| `sq.analytics.inboxConversations(query?)` | `GET /analytics/inbox/conversations` | Inbox conversation stats |
|
|
131
131
|
| `sq.analytics.inboxConversationDetail(conversationId)` | `GET /analytics/inbox/conversations/{conversation_id}` | Conversation analytics |
|
|
132
|
+
| `sq.analytics.getYoutubeChannelInsights(query?)` | `GET /analytics/youtube/channel-insights` | YouTube channel insights |
|
|
133
|
+
| `sq.analytics.getYoutubeDailyViews(query?)` | `GET /analytics/youtube/daily-views` | YouTube daily views |
|
|
134
|
+
| `sq.analytics.getYoutubeVideoRetention(query?)` | `GET /analytics/youtube/video-retention` | YouTube audience retention |
|
|
135
|
+
| `sq.analytics.getYoutubeDemographics(query?)` | `GET /analytics/youtube/demographics` | YouTube viewer demographics |
|
|
132
136
|
|
|
133
137
|
### Articles
|
|
134
138
|
|
|
@@ -246,6 +250,8 @@ All methods below are available on the client. Full request/response documentati
|
|
|
246
250
|
| `sq.messages.list(conversationId, query?)` | `GET /social/conversations/{conversation_id}/messages` | List messages in a conversation |
|
|
247
251
|
| `sq.messages.send(conversationId, body)` | `POST /social/conversations/{conversation_id}/messages` | Send a direct message |
|
|
248
252
|
| `sq.messages.markConversationRead(conversationId)` | `POST /social/conversations/{conversation_id}/read` | Mark a conversation read |
|
|
253
|
+
| `sq.messages.reactTo(conversationId, messageId, body)` | `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` | React to a message |
|
|
254
|
+
| `sq.messages.removeReaction(conversationId, messageId)` | `DELETE /social/conversations/{conversation_id}/messages/{message_id}/reactions` | Remove a message reaction |
|
|
249
255
|
|
|
250
256
|
### Images
|
|
251
257
|
|
|
@@ -264,6 +270,12 @@ All methods below are available on the client. Full request/response documentati
|
|
|
264
270
|
| `sq.jobs.get(jobId)` | `GET /jobs/{job_id}` | Get job |
|
|
265
271
|
| `sq.jobs.cancel(jobId, body?)` | `POST /jobs/{job_id}/cancel` | Cancel job |
|
|
266
272
|
|
|
273
|
+
### Logs
|
|
274
|
+
|
|
275
|
+
| Method | Endpoint | Description |
|
|
276
|
+
| --- | --- | --- |
|
|
277
|
+
| `sq.logs.list(query?)` | `GET /logs` | List developer logs |
|
|
278
|
+
|
|
267
279
|
### Media
|
|
268
280
|
|
|
269
281
|
| Method | Endpoint | Description |
|
|
@@ -442,6 +454,7 @@ All methods below are available on the client. Full request/response documentati
|
|
|
442
454
|
| `sq.urls.get(urlId)` | `GET /urls/{url_id}` | Get short URL |
|
|
443
455
|
| `sq.urls.delete(urlId)` | `DELETE /urls/{url_id}` | Delete short URL |
|
|
444
456
|
| `sq.urls.getStats(urlId)` | `GET /urls/{url_id}/stats` | Get short URL stats |
|
|
457
|
+
| `sq.urls.updateShort(id, body)` | `PATCH /urls/{id}` | Update a short URL |
|
|
445
458
|
|
|
446
459
|
### Videos
|
|
447
460
|
|
|
@@ -467,6 +480,7 @@ All methods below are available on the client. Full request/response documentati
|
|
|
467
480
|
| `sq.webhooks.delete(id)` | `DELETE /webhooks/{id}` | Delete webhook |
|
|
468
481
|
| `sq.webhooks.listLogs(query?)` | `GET /webhooks/logs` | List webhook delivery logs |
|
|
469
482
|
| `sq.webhooks.test(id)` | `POST /webhooks/{id}/test` | Send test webhook |
|
|
483
|
+
| `sq.webhooks.replayDelivery(id)` | `POST /webhooks/deliveries/{id}/replay` | Replay a webhook delivery |
|
|
470
484
|
|
|
471
485
|
### WhatsApp
|
|
472
486
|
|
|
@@ -478,6 +492,12 @@ All methods below are available on the client. Full request/response documentati
|
|
|
478
492
|
| `sq.whatsApp.getWhatsAppBusinessProfile(query?)` | `GET /whatsapp/business-profile` | Get business profile |
|
|
479
493
|
| `sq.whatsApp.updateWhatsAppBusinessProfile(body)` | `PATCH /whatsapp/business-profile` | Update business profile |
|
|
480
494
|
| `sq.whatsApp.listWhatsAppPhoneNumbers(query?)` | `GET /whatsapp/phone-numbers` | List phone numbers |
|
|
495
|
+
| `sq.whatsApp.getTemplate(name, query?)` | `GET /whatsapp/templates/{name}` | Get a WhatsApp template |
|
|
496
|
+
| `sq.whatsApp.updateTemplate(name, body)` | `PATCH /whatsapp/templates/{name}` | Update a WhatsApp template |
|
|
497
|
+
| `sq.whatsApp.deleteTemplate(name, query?)` | `DELETE /whatsapp/templates/{name}` | Delete a WhatsApp template |
|
|
498
|
+
| `sq.whatsApp.updateProfilePhoto(body)` | `POST /whatsapp/business-profile/photo` | Set the WhatsApp profile photo |
|
|
499
|
+
| `sq.whatsApp.getDisplayName(query?)` | `GET /whatsapp/business-profile/display-name` | Get the WhatsApp display name |
|
|
500
|
+
| `sq.whatsApp.updateDisplayName(body)` | `POST /whatsapp/business-profile/display-name` | Request a WhatsApp display-name change |
|
|
481
501
|
|
|
482
502
|
### Workspaces
|
|
483
503
|
|
package/dist/index.cjs
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
CustomFieldsResource: () => CustomFieldsResource,
|
|
36
36
|
ImagesResource: () => ImagesResource,
|
|
37
37
|
JobsResource: () => JobsResource,
|
|
38
|
+
LogsResource: () => LogsResource,
|
|
38
39
|
MediaResource: () => MediaResource,
|
|
39
40
|
MessagesResource: () => MessagesResource,
|
|
40
41
|
OpportunitiesResource: () => OpportunitiesResource,
|
|
@@ -275,6 +276,22 @@ var AnalyticsResource = class {
|
|
|
275
276
|
inboxConversationDetail(conversationId, options) {
|
|
276
277
|
return this._client.request("GET", `/analytics/inbox/conversations/${encodeURIComponent(conversationId)}`, { options });
|
|
277
278
|
}
|
|
279
|
+
/** YouTube channel insights `GET /analytics/youtube/channel-insights` */
|
|
280
|
+
getYoutubeChannelInsights(query, options) {
|
|
281
|
+
return this._client.request("GET", "/analytics/youtube/channel-insights", { query, options });
|
|
282
|
+
}
|
|
283
|
+
/** YouTube daily views `GET /analytics/youtube/daily-views` */
|
|
284
|
+
getYoutubeDailyViews(query, options) {
|
|
285
|
+
return this._client.request("GET", "/analytics/youtube/daily-views", { query, options });
|
|
286
|
+
}
|
|
287
|
+
/** YouTube audience retention `GET /analytics/youtube/video-retention` */
|
|
288
|
+
getYoutubeVideoRetention(query, options) {
|
|
289
|
+
return this._client.request("GET", "/analytics/youtube/video-retention", { query, options });
|
|
290
|
+
}
|
|
291
|
+
/** YouTube viewer demographics `GET /analytics/youtube/demographics` */
|
|
292
|
+
getYoutubeDemographics(query, options) {
|
|
293
|
+
return this._client.request("GET", "/analytics/youtube/demographics", { query, options });
|
|
294
|
+
}
|
|
278
295
|
};
|
|
279
296
|
var ArticlesResource = class {
|
|
280
297
|
constructor(_client) {
|
|
@@ -578,6 +595,14 @@ var MessagesResource = class {
|
|
|
578
595
|
markConversationRead(conversationId, options) {
|
|
579
596
|
return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/read`, { options });
|
|
580
597
|
}
|
|
598
|
+
/** React to a message `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` */
|
|
599
|
+
reactTo(conversationId, messageId, body, options) {
|
|
600
|
+
return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { body, options });
|
|
601
|
+
}
|
|
602
|
+
/** Remove a message reaction `DELETE /social/conversations/{conversation_id}/messages/{message_id}/reactions` */
|
|
603
|
+
removeReaction(conversationId, messageId, options) {
|
|
604
|
+
return this._client.request("DELETE", `/social/conversations/${encodeURIComponent(conversationId)}/messages/${encodeURIComponent(messageId)}/reactions`, { options });
|
|
605
|
+
}
|
|
581
606
|
};
|
|
582
607
|
var ImagesResource = class {
|
|
583
608
|
constructor(_client) {
|
|
@@ -617,6 +642,15 @@ var JobsResource = class {
|
|
|
617
642
|
return this._client.request("POST", `/jobs/${encodeURIComponent(jobId)}/cancel`, { body, options });
|
|
618
643
|
}
|
|
619
644
|
};
|
|
645
|
+
var LogsResource = class {
|
|
646
|
+
constructor(_client) {
|
|
647
|
+
this._client = _client;
|
|
648
|
+
}
|
|
649
|
+
/** List developer logs `GET /logs` */
|
|
650
|
+
list(query, options) {
|
|
651
|
+
return this._client.request("GET", "/logs", { query, options });
|
|
652
|
+
}
|
|
653
|
+
};
|
|
620
654
|
var MediaResource = class {
|
|
621
655
|
constructor(_client) {
|
|
622
656
|
this._client = _client;
|
|
@@ -1212,6 +1246,10 @@ var UrlsResource = class {
|
|
|
1212
1246
|
getStats(urlId, options) {
|
|
1213
1247
|
return this._client.request("GET", `/urls/${encodeURIComponent(urlId)}/stats`, { options });
|
|
1214
1248
|
}
|
|
1249
|
+
/** Update a short URL `PATCH /urls/{id}` */
|
|
1250
|
+
updateShort(id, body, options) {
|
|
1251
|
+
return this._client.request("PATCH", `/urls/${encodeURIComponent(id)}`, { body, options });
|
|
1252
|
+
}
|
|
1215
1253
|
};
|
|
1216
1254
|
var VideosResource = class {
|
|
1217
1255
|
constructor(_client) {
|
|
@@ -1282,6 +1320,10 @@ var WebhooksResource = class {
|
|
|
1282
1320
|
test(id, options) {
|
|
1283
1321
|
return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
|
|
1284
1322
|
}
|
|
1323
|
+
/** Replay a webhook delivery `POST /webhooks/deliveries/{id}/replay` */
|
|
1324
|
+
replayDelivery(id, options) {
|
|
1325
|
+
return this._client.request("POST", `/webhooks/deliveries/${encodeURIComponent(id)}/replay`, { options });
|
|
1326
|
+
}
|
|
1285
1327
|
};
|
|
1286
1328
|
var WhatsAppResource = class {
|
|
1287
1329
|
constructor(_client) {
|
|
@@ -1311,6 +1353,30 @@ var WhatsAppResource = class {
|
|
|
1311
1353
|
listWhatsAppPhoneNumbers(query, options) {
|
|
1312
1354
|
return this._client.request("GET", "/whatsapp/phone-numbers", { query, options });
|
|
1313
1355
|
}
|
|
1356
|
+
/** Get a WhatsApp template `GET /whatsapp/templates/{name}` */
|
|
1357
|
+
getTemplate(name, query, options) {
|
|
1358
|
+
return this._client.request("GET", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
|
|
1359
|
+
}
|
|
1360
|
+
/** Update a WhatsApp template `PATCH /whatsapp/templates/{name}` */
|
|
1361
|
+
updateTemplate(name, body, options) {
|
|
1362
|
+
return this._client.request("PATCH", `/whatsapp/templates/${encodeURIComponent(name)}`, { body, options });
|
|
1363
|
+
}
|
|
1364
|
+
/** Delete a WhatsApp template `DELETE /whatsapp/templates/{name}` */
|
|
1365
|
+
deleteTemplate(name, query, options) {
|
|
1366
|
+
return this._client.request("DELETE", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
|
|
1367
|
+
}
|
|
1368
|
+
/** Set the WhatsApp profile photo `POST /whatsapp/business-profile/photo` */
|
|
1369
|
+
updateProfilePhoto(body, options) {
|
|
1370
|
+
return this._client.request("POST", "/whatsapp/business-profile/photo", { body, options });
|
|
1371
|
+
}
|
|
1372
|
+
/** Get the WhatsApp display name `GET /whatsapp/business-profile/display-name` */
|
|
1373
|
+
getDisplayName(query, options) {
|
|
1374
|
+
return this._client.request("GET", "/whatsapp/business-profile/display-name", { query, options });
|
|
1375
|
+
}
|
|
1376
|
+
/** Request a WhatsApp display-name change `POST /whatsapp/business-profile/display-name` */
|
|
1377
|
+
updateDisplayName(body, options) {
|
|
1378
|
+
return this._client.request("POST", "/whatsapp/business-profile/display-name", { body, options });
|
|
1379
|
+
}
|
|
1314
1380
|
};
|
|
1315
1381
|
var WorkspacesResource = class {
|
|
1316
1382
|
constructor(_client) {
|
|
@@ -1383,6 +1449,7 @@ function createResources(client) {
|
|
|
1383
1449
|
messages: new MessagesResource(client),
|
|
1384
1450
|
images: new ImagesResource(client),
|
|
1385
1451
|
jobs: new JobsResource(client),
|
|
1452
|
+
logs: new LogsResource(client),
|
|
1386
1453
|
media: new MediaResource(client),
|
|
1387
1454
|
presentations: new PresentationsResource(client),
|
|
1388
1455
|
profiles: new ProfilesResource(client),
|
|
@@ -1424,6 +1491,7 @@ var index_default = SmartlyQ;
|
|
|
1424
1491
|
CustomFieldsResource,
|
|
1425
1492
|
ImagesResource,
|
|
1426
1493
|
JobsResource,
|
|
1494
|
+
LogsResource,
|
|
1427
1495
|
MediaResource,
|
|
1428
1496
|
MessagesResource,
|
|
1429
1497
|
OpportunitiesResource,
|