@smartlyqofficial/node 0.1.17 → 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 +9 -0
- package/dist/index.cjs +36 -0
- package/dist/index.d.cts +540 -1
- package/dist/index.d.ts +540 -1
- package/dist/index.js +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -396,6 +396,7 @@ All methods below are available on the client. Full request/response documentati
|
|
|
396
396
|
| `sq.social.updateConversation(conversationId, body)` | `PATCH /social/conversations/{conversation_id}` | Archive / reopen conversation |
|
|
397
397
|
| `sq.social.searchConversations(query?)` | `GET /social/conversations/search` | Search conversations |
|
|
398
398
|
| `sq.social.pinterestBoards(accountId)` | `GET /social/accounts/{account_id}/pinterest/boards` | Pinterest boards |
|
|
399
|
+
| `sq.social.createPinterestBoard(accountId, body)` | `POST /social/accounts/{account_id}/pinterest/boards` | Create a Pinterest board |
|
|
399
400
|
| `sq.social.youtubePlaylists(accountId)` | `GET /social/accounts/{account_id}/youtube/playlists` | YouTube playlists |
|
|
400
401
|
| `sq.social.instagramPublishingLimit(accountId)` | `GET /social/accounts/{account_id}/instagram/publishing-limit` | Instagram publishing limit |
|
|
401
402
|
| `sq.social.gmbPerformance(accountId, query?)` | `GET /social/accounts/{account_id}/gmb/performance` | Google Business performance |
|
|
@@ -444,6 +445,12 @@ All methods below are available on the client. Full request/response documentati
|
|
|
444
445
|
| `sq.social.instagramAudience(accountId, query?)` | `GET /social/accounts/{account_id}/instagram/audience` | Instagram audience demographics |
|
|
445
446
|
| `sq.social.connectOptions(accountId)` | `GET /social/accounts/{account_id}/connect-options` | Connection target options |
|
|
446
447
|
| `sq.social.connectSelect(accountId, body)` | `POST /social/accounts/{account_id}/connect-select` | Select connection target |
|
|
448
|
+
| `sq.social.getFacebookPage(accountId)` | `GET /social/accounts/{account_id}/facebook/page` | Get Facebook page details |
|
|
449
|
+
| `sq.social.updateFacebookPage(accountId, body)` | `PATCH /social/accounts/{account_id}/facebook/page` | Update Facebook page details |
|
|
450
|
+
| `sq.social.updateYoutubePlaylist(accountId, playlistId, body)` | `PATCH /social/accounts/{account_id}/youtube/playlists/{playlist_id}` | Update a YouTube playlist |
|
|
451
|
+
| `sq.social.listMentions(accountId, query?)` | `GET /social/accounts/{account_id}/mentions` | List mentions |
|
|
452
|
+
| `sq.social.replyToMention(accountId, mentionId, body)` | `POST /social/accounts/{account_id}/mentions/{mention_id}/reply` | Reply to a mention |
|
|
453
|
+
| `sq.social.listRedditFlairs(accountId, subreddit)` | `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}/flairs` | List subreddit post flairs |
|
|
447
454
|
|
|
448
455
|
### URLs
|
|
449
456
|
|
|
@@ -498,6 +505,8 @@ All methods below are available on the client. Full request/response documentati
|
|
|
498
505
|
| `sq.whatsApp.updateProfilePhoto(body)` | `POST /whatsapp/business-profile/photo` | Set the WhatsApp profile photo |
|
|
499
506
|
| `sq.whatsApp.getDisplayName(query?)` | `GET /whatsapp/business-profile/display-name` | Get the WhatsApp display name |
|
|
500
507
|
| `sq.whatsApp.updateDisplayName(body)` | `POST /whatsapp/business-profile/display-name` | Request a WhatsApp display-name change |
|
|
508
|
+
| `sq.whatsApp.listTemplateLibrary(query?)` | `GET /whatsapp/template-library` | Browse the shared template library |
|
|
509
|
+
| `sq.whatsApp.createTemplateFromLibrary(body)` | `POST /whatsapp/templates/from-library` | Adopt a library template |
|
|
501
510
|
|
|
502
511
|
### Workspaces
|
|
503
512
|
|
package/dist/index.cjs
CHANGED
|
@@ -1029,6 +1029,10 @@ var SocialResource = class {
|
|
|
1029
1029
|
pinterestBoards(accountId, options) {
|
|
1030
1030
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/pinterest/boards`, { options });
|
|
1031
1031
|
}
|
|
1032
|
+
/** Create a Pinterest board `POST /social/accounts/{account_id}/pinterest/boards` */
|
|
1033
|
+
createPinterestBoard(accountId, body, options) {
|
|
1034
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/pinterest/boards`, { body, options });
|
|
1035
|
+
}
|
|
1032
1036
|
/** YouTube playlists `GET /social/accounts/{account_id}/youtube/playlists` */
|
|
1033
1037
|
youtubePlaylists(accountId, options) {
|
|
1034
1038
|
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/youtube/playlists`, { options });
|
|
@@ -1221,6 +1225,30 @@ var SocialResource = class {
|
|
|
1221
1225
|
connectSelect(accountId, body, options) {
|
|
1222
1226
|
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/connect-select`, { body, options });
|
|
1223
1227
|
}
|
|
1228
|
+
/** Get Facebook page details `GET /social/accounts/{account_id}/facebook/page` */
|
|
1229
|
+
getFacebookPage(accountId, options) {
|
|
1230
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page`, { options });
|
|
1231
|
+
}
|
|
1232
|
+
/** Update Facebook page details `PATCH /social/accounts/{account_id}/facebook/page` */
|
|
1233
|
+
updateFacebookPage(accountId, body, options) {
|
|
1234
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page`, { body, options });
|
|
1235
|
+
}
|
|
1236
|
+
/** Update a YouTube playlist `PATCH /social/accounts/{account_id}/youtube/playlists/{playlist_id}` */
|
|
1237
|
+
updateYoutubePlaylist(accountId, playlistId, body, options) {
|
|
1238
|
+
return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/youtube/playlists/${encodeURIComponent(playlistId)}`, { body, options });
|
|
1239
|
+
}
|
|
1240
|
+
/** List mentions `GET /social/accounts/{account_id}/mentions` */
|
|
1241
|
+
listMentions(accountId, query, options) {
|
|
1242
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/mentions`, { query, options });
|
|
1243
|
+
}
|
|
1244
|
+
/** Reply to a mention `POST /social/accounts/{account_id}/mentions/{mention_id}/reply` */
|
|
1245
|
+
replyToMention(accountId, mentionId, body, options) {
|
|
1246
|
+
return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/mentions/${encodeURIComponent(mentionId)}/reply`, { body, options });
|
|
1247
|
+
}
|
|
1248
|
+
/** List subreddit post flairs `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}/flairs` */
|
|
1249
|
+
listRedditFlairs(accountId, subreddit, options) {
|
|
1250
|
+
return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/reddit/subreddits/${encodeURIComponent(subreddit)}/flairs`, { options });
|
|
1251
|
+
}
|
|
1224
1252
|
};
|
|
1225
1253
|
var UrlsResource = class {
|
|
1226
1254
|
constructor(_client) {
|
|
@@ -1377,6 +1405,14 @@ var WhatsAppResource = class {
|
|
|
1377
1405
|
updateDisplayName(body, options) {
|
|
1378
1406
|
return this._client.request("POST", "/whatsapp/business-profile/display-name", { body, options });
|
|
1379
1407
|
}
|
|
1408
|
+
/** Browse the shared template library `GET /whatsapp/template-library` */
|
|
1409
|
+
listTemplateLibrary(query, options) {
|
|
1410
|
+
return this._client.request("GET", "/whatsapp/template-library", { query, options });
|
|
1411
|
+
}
|
|
1412
|
+
/** Adopt a library template `POST /whatsapp/templates/from-library` */
|
|
1413
|
+
createTemplateFromLibrary(body, options) {
|
|
1414
|
+
return this._client.request("POST", "/whatsapp/templates/from-library", { body, options });
|
|
1415
|
+
}
|
|
1380
1416
|
};
|
|
1381
1417
|
var WorkspacesResource = class {
|
|
1382
1418
|
constructor(_client) {
|