@smartlyqofficial/node 0.1.16 → 0.1.18
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 +29 -0
- package/dist/index.cjs +104 -0
- package/dist/index.d.cts +1734 -202
- package/dist/index.d.ts +1734 -202
- package/dist/index.js +103 -0
- package/package.json +1 -1
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;
|
|
@@ -936,6 +969,10 @@ var SocialResource = class {
|
|
|
936
969
|
pinterestBoards(accountId, options) {
|
|
937
970
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/pinterest/boards`, { options });
|
|
938
971
|
}
|
|
972
|
+
/** Create a Pinterest board `POST /social/accounts/{account_id}/pinterest/boards` */
|
|
973
|
+
createPinterestBoard(accountId, body, options) {
|
|
974
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/pinterest/boards`, { body, options });
|
|
975
|
+
}
|
|
939
976
|
/** YouTube playlists `GET /social/accounts/{account_id}/youtube/playlists` */
|
|
940
977
|
youtubePlaylists(accountId, options) {
|
|
941
978
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/youtube/playlists`, { options });
|
|
@@ -1128,6 +1165,30 @@ var SocialResource = class {
|
|
|
1128
1165
|
connectSelect(accountId, body, options) {
|
|
1129
1166
|
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/connect-select`, { body, options });
|
|
1130
1167
|
}
|
|
1168
|
+
/** Get Facebook page details `GET /social/accounts/{account_id}/facebook/page` */
|
|
1169
|
+
getFacebookPage(accountId, options) {
|
|
1170
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page`, { options });
|
|
1171
|
+
}
|
|
1172
|
+
/** Update Facebook page details `PATCH /social/accounts/{account_id}/facebook/page` */
|
|
1173
|
+
updateFacebookPage(accountId, body, options) {
|
|
1174
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page`, { body, options });
|
|
1175
|
+
}
|
|
1176
|
+
/** Update a YouTube playlist `PATCH /social/accounts/{account_id}/youtube/playlists/{playlist_id}` */
|
|
1177
|
+
updateYoutubePlaylist(accountId, playlistId, body, options) {
|
|
1178
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/youtube/playlists/${encodeURIComponent(playlistId)}`, { body, options });
|
|
1179
|
+
}
|
|
1180
|
+
/** List mentions `GET /social/accounts/{account_id}/mentions` */
|
|
1181
|
+
listMentions(accountId, query, options) {
|
|
1182
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/mentions`, { query, options });
|
|
1183
|
+
}
|
|
1184
|
+
/** Reply to a mention `POST /social/accounts/{account_id}/mentions/{mention_id}/reply` */
|
|
1185
|
+
replyToMention(accountId, mentionId, body, options) {
|
|
1186
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/mentions/${encodeURIComponent(mentionId)}/reply`, { body, options });
|
|
1187
|
+
}
|
|
1188
|
+
/** List subreddit post flairs `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}/flairs` */
|
|
1189
|
+
listRedditFlairs(accountId, subreddit, options) {
|
|
1190
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/reddit/subreddits/${encodeURIComponent(subreddit)}/flairs`, { options });
|
|
1191
|
+
}
|
|
1131
1192
|
};
|
|
1132
1193
|
var UrlsResource = class {
|
|
1133
1194
|
constructor(_client) {
|
|
@@ -1153,6 +1214,10 @@ var UrlsResource = class {
|
|
|
1153
1214
|
getStats(urlId, options) {
|
|
1154
1215
|
return this._client.request("GET", `/urls/${encodeURIComponent(urlId)}/stats`, { options });
|
|
1155
1216
|
}
|
|
1217
|
+
/** Update a short URL `PATCH /urls/{id}` */
|
|
1218
|
+
updateShort(id, body, options) {
|
|
1219
|
+
return this._client.request("PATCH", `/urls/${encodeURIComponent(id)}`, { body, options });
|
|
1220
|
+
}
|
|
1156
1221
|
};
|
|
1157
1222
|
var VideosResource = class {
|
|
1158
1223
|
constructor(_client) {
|
|
@@ -1223,6 +1288,10 @@ var WebhooksResource = class {
|
|
|
1223
1288
|
test(id, options) {
|
|
1224
1289
|
return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
|
|
1225
1290
|
}
|
|
1291
|
+
/** Replay a webhook delivery `POST /webhooks/deliveries/{id}/replay` */
|
|
1292
|
+
replayDelivery(id, options) {
|
|
1293
|
+
return this._client.request("POST", `/webhooks/deliveries/${encodeURIComponent(id)}/replay`, { options });
|
|
1294
|
+
}
|
|
1226
1295
|
};
|
|
1227
1296
|
var WhatsAppResource = class {
|
|
1228
1297
|
constructor(_client) {
|
|
@@ -1252,6 +1321,38 @@ var WhatsAppResource = class {
|
|
|
1252
1321
|
listWhatsAppPhoneNumbers(query, options) {
|
|
1253
1322
|
return this._client.request("GET", "/whatsapp/phone-numbers", { query, options });
|
|
1254
1323
|
}
|
|
1324
|
+
/** Get a WhatsApp template `GET /whatsapp/templates/{name}` */
|
|
1325
|
+
getTemplate(name, query, options) {
|
|
1326
|
+
return this._client.request("GET", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
|
|
1327
|
+
}
|
|
1328
|
+
/** Update a WhatsApp template `PATCH /whatsapp/templates/{name}` */
|
|
1329
|
+
updateTemplate(name, body, options) {
|
|
1330
|
+
return this._client.request("PATCH", `/whatsapp/templates/${encodeURIComponent(name)}`, { body, options });
|
|
1331
|
+
}
|
|
1332
|
+
/** Delete a WhatsApp template `DELETE /whatsapp/templates/{name}` */
|
|
1333
|
+
deleteTemplate(name, query, options) {
|
|
1334
|
+
return this._client.request("DELETE", `/whatsapp/templates/${encodeURIComponent(name)}`, { query, options });
|
|
1335
|
+
}
|
|
1336
|
+
/** Set the WhatsApp profile photo `POST /whatsapp/business-profile/photo` */
|
|
1337
|
+
updateProfilePhoto(body, options) {
|
|
1338
|
+
return this._client.request("POST", "/whatsapp/business-profile/photo", { body, options });
|
|
1339
|
+
}
|
|
1340
|
+
/** Get the WhatsApp display name `GET /whatsapp/business-profile/display-name` */
|
|
1341
|
+
getDisplayName(query, options) {
|
|
1342
|
+
return this._client.request("GET", "/whatsapp/business-profile/display-name", { query, options });
|
|
1343
|
+
}
|
|
1344
|
+
/** Request a WhatsApp display-name change `POST /whatsapp/business-profile/display-name` */
|
|
1345
|
+
updateDisplayName(body, options) {
|
|
1346
|
+
return this._client.request("POST", "/whatsapp/business-profile/display-name", { body, options });
|
|
1347
|
+
}
|
|
1348
|
+
/** Browse the shared template library `GET /whatsapp/template-library` */
|
|
1349
|
+
listTemplateLibrary(query, options) {
|
|
1350
|
+
return this._client.request("GET", "/whatsapp/template-library", { query, options });
|
|
1351
|
+
}
|
|
1352
|
+
/** Adopt a library template `POST /whatsapp/templates/from-library` */
|
|
1353
|
+
createTemplateFromLibrary(body, options) {
|
|
1354
|
+
return this._client.request("POST", "/whatsapp/templates/from-library", { body, options });
|
|
1355
|
+
}
|
|
1255
1356
|
};
|
|
1256
1357
|
var WorkspacesResource = class {
|
|
1257
1358
|
constructor(_client) {
|
|
@@ -1324,6 +1425,7 @@ function createResources(client) {
|
|
|
1324
1425
|
messages: new MessagesResource(client),
|
|
1325
1426
|
images: new ImagesResource(client),
|
|
1326
1427
|
jobs: new JobsResource(client),
|
|
1428
|
+
logs: new LogsResource(client),
|
|
1327
1429
|
media: new MediaResource(client),
|
|
1328
1430
|
presentations: new PresentationsResource(client),
|
|
1329
1431
|
profiles: new ProfilesResource(client),
|
|
@@ -1364,6 +1466,7 @@ export {
|
|
|
1364
1466
|
CustomFieldsResource,
|
|
1365
1467
|
ImagesResource,
|
|
1366
1468
|
JobsResource,
|
|
1469
|
+
LogsResource,
|
|
1367
1470
|
MediaResource,
|
|
1368
1471
|
MessagesResource,
|
|
1369
1472
|
OpportunitiesResource,
|