@smartlyqofficial/node 0.1.6 → 0.1.8

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 CHANGED
@@ -194,7 +194,9 @@ All methods below are available on the client. Full request/response documentati
194
194
  | Method | Endpoint | Description |
195
195
  | --- | --- | --- |
196
196
  | `sq.crm.deleteContact(id)` | `DELETE /contacts/{id}` | Delete contact |
197
+ | `sq.crm.updateCustomField(id, body)` | `PATCH /custom-fields/{id}` | Update custom field |
197
198
  | `sq.crm.bulkImportContacts(body)` | `POST /contacts/bulk` | Bulk import contacts |
199
+ | `sq.crm.contactChannels(id)` | `GET /contacts/{id}/channels` | Contact channels |
198
200
 
199
201
  ### CRM Contacts
200
202
 
@@ -389,6 +391,29 @@ All methods below are available on the client. Full request/response documentati
389
391
  | `sq.social.instagramStoryInsights(accountId, storyId, query?)` | `GET /social/accounts/{account_id}/instagram/stories/{story_id}/insights` | Instagram story insights |
390
392
  | `sq.social.xRetweet(accountId, body)` | `POST /social/accounts/{account_id}/x/retweets` | Retweet on X |
391
393
  | `sq.social.xUnretweet(accountId, tweetId)` | `DELETE /social/accounts/{account_id}/x/retweets/{tweet_id}` | Undo retweet |
394
+ | `sq.social.editPublishedPost(postId, body)` | `POST /social/posts/{post_id}/edit` | Edit published post |
395
+ | `sq.social.updatePostMetadata(postId, body)` | `POST /social/posts/{post_id}/update-metadata` | Update YouTube metadata |
396
+ | `sq.social.syncExternalPosts(body)` | `POST /social/posts/sync-external` | Sync external posts |
397
+ | `sq.social.accountInsights(accountId)` | `GET /social/accounts/{account_id}/insights` | Live account insights |
398
+ | `sq.social.gmbLocations(accountId, query?)` | `GET /social/accounts/{account_id}/gmb/locations` | List Google locations |
399
+ | `sq.social.gmbLocation(accountId, query?)` | `GET /social/accounts/{account_id}/gmb/location` | Get business info |
400
+ | `sq.social.gmbUpdateLocation(accountId, body)` | `PATCH /social/accounts/{account_id}/gmb/location` | Update business info |
401
+ | `sq.social.gmbAttributes(accountId)` | `GET /social/accounts/{account_id}/gmb/attributes` | Get attributes |
402
+ | `sq.social.gmbUpdateAttributes(accountId, body)` | `PUT /social/accounts/{account_id}/gmb/attributes` | Update attributes |
403
+ | `sq.social.gmbAttributeMetadata(accountId)` | `GET /social/accounts/{account_id}/gmb/attributes/metadata` | Available attributes |
404
+ | `sq.social.gmbMedia(accountId)` | `GET /social/accounts/{account_id}/gmb/media` | List media |
405
+ | `sq.social.gmbCreateMedia(accountId, body)` | `POST /social/accounts/{account_id}/gmb/media` | Add photo |
406
+ | `sq.social.gmbDeleteMedia(accountId, body)` | `DELETE /social/accounts/{account_id}/gmb/media` | Delete media |
407
+ | `sq.social.gmbFoodMenus(accountId)` | `GET /social/accounts/{account_id}/gmb/food-menus` | Get food menus |
408
+ | `sq.social.gmbUpdateFoodMenus(accountId, body)` | `PUT /social/accounts/{account_id}/gmb/food-menus` | Update food menus |
409
+ | `sq.social.gmbPlaceActions(accountId)` | `GET /social/accounts/{account_id}/gmb/place-actions` | List place-action links |
410
+ | `sq.social.gmbCreatePlaceAction(accountId, body)` | `POST /social/accounts/{account_id}/gmb/place-actions` | Create place-action link |
411
+ | `sq.social.gmbUpdatePlaceAction(accountId, body)` | `PATCH /social/accounts/{account_id}/gmb/place-actions` | Update place-action link |
412
+ | `sq.social.gmbDeletePlaceAction(accountId, body)` | `DELETE /social/accounts/{account_id}/gmb/place-actions` | Delete place-action link |
413
+ | `sq.social.gmbVerifications(accountId)` | `GET /social/accounts/{account_id}/gmb/verifications` | List verifications |
414
+ | `sq.social.gmbVerificationOptions(accountId, body?)` | `POST /social/accounts/{account_id}/gmb/verifications/options` | Verification options |
415
+ | `sq.social.redditSubredditInfo(accountId, subreddit)` | `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}` | Subreddit info + eligibility |
416
+ | `sq.social.xMentions(accountId, query?)` | `GET /social/accounts/{account_id}/x/mentions` | X mentions |
392
417
 
393
418
  ### URLs
394
419
 
package/dist/index.cjs CHANGED
@@ -429,10 +429,18 @@ var CrmResource = class {
429
429
  deleteContact(id, options) {
430
430
  return this._client.request("DELETE", `/contacts/${encodeURIComponent(id)}`, { options });
431
431
  }
432
+ /** Update custom field `PATCH /custom-fields/{id}` */
433
+ updateCustomField(id, body, options) {
434
+ return this._client.request("PATCH", `/custom-fields/${encodeURIComponent(id)}`, { body, options });
435
+ }
432
436
  /** Bulk import contacts `POST /contacts/bulk` */
433
437
  bulkImportContacts(body, options) {
434
438
  return this._client.request("POST", "/contacts/bulk", { body, options });
435
439
  }
440
+ /** Contact channels `GET /contacts/{id}/channels` */
441
+ contactChannels(id, options) {
442
+ return this._client.request("GET", `/contacts/${encodeURIComponent(id)}/channels`, { options });
443
+ }
436
444
  };
437
445
  var ContactsResource = class {
438
446
  constructor(_client) {
@@ -1014,6 +1022,98 @@ var SocialResource = class {
1014
1022
  xUnretweet(accountId, tweetId, options) {
1015
1023
  return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/x/retweets/${encodeURIComponent(tweetId)}`, { options });
1016
1024
  }
1025
+ /** Edit published post `POST /social/posts/{post_id}/edit` */
1026
+ editPublishedPost(postId, body, options) {
1027
+ return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/edit`, { body, options });
1028
+ }
1029
+ /** Update YouTube metadata `POST /social/posts/{post_id}/update-metadata` */
1030
+ updatePostMetadata(postId, body, options) {
1031
+ return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/update-metadata`, { body, options });
1032
+ }
1033
+ /** Sync external posts `POST /social/posts/sync-external` */
1034
+ syncExternalPosts(body, options) {
1035
+ return this._client.request("POST", "/social/posts/sync-external", { body, options });
1036
+ }
1037
+ /** Live account insights `GET /social/accounts/{account_id}/insights` */
1038
+ accountInsights(accountId, options) {
1039
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/insights`, { options });
1040
+ }
1041
+ /** List Google locations `GET /social/accounts/{account_id}/gmb/locations` */
1042
+ gmbLocations(accountId, query, options) {
1043
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/locations`, { query, options });
1044
+ }
1045
+ /** Get business info `GET /social/accounts/{account_id}/gmb/location` */
1046
+ gmbLocation(accountId, query, options) {
1047
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { query, options });
1048
+ }
1049
+ /** Update business info `PATCH /social/accounts/{account_id}/gmb/location` */
1050
+ gmbUpdateLocation(accountId, body, options) {
1051
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/location`, { body, options });
1052
+ }
1053
+ /** Get attributes `GET /social/accounts/{account_id}/gmb/attributes` */
1054
+ gmbAttributes(accountId, options) {
1055
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { options });
1056
+ }
1057
+ /** Update attributes `PUT /social/accounts/{account_id}/gmb/attributes` */
1058
+ gmbUpdateAttributes(accountId, body, options) {
1059
+ return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes`, { body, options });
1060
+ }
1061
+ /** Available attributes `GET /social/accounts/{account_id}/gmb/attributes/metadata` */
1062
+ gmbAttributeMetadata(accountId, options) {
1063
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/attributes/metadata`, { options });
1064
+ }
1065
+ /** List media `GET /social/accounts/{account_id}/gmb/media` */
1066
+ gmbMedia(accountId, options) {
1067
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { options });
1068
+ }
1069
+ /** Add photo `POST /social/accounts/{account_id}/gmb/media` */
1070
+ gmbCreateMedia(accountId, body, options) {
1071
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
1072
+ }
1073
+ /** Delete media `DELETE /social/accounts/{account_id}/gmb/media` */
1074
+ gmbDeleteMedia(accountId, body, options) {
1075
+ return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/media`, { body, options });
1076
+ }
1077
+ /** Get food menus `GET /social/accounts/{account_id}/gmb/food-menus` */
1078
+ gmbFoodMenus(accountId, options) {
1079
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { options });
1080
+ }
1081
+ /** Update food menus `PUT /social/accounts/{account_id}/gmb/food-menus` */
1082
+ gmbUpdateFoodMenus(accountId, body, options) {
1083
+ return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/gmb/food-menus`, { body, options });
1084
+ }
1085
+ /** List place-action links `GET /social/accounts/{account_id}/gmb/place-actions` */
1086
+ gmbPlaceActions(accountId, options) {
1087
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { options });
1088
+ }
1089
+ /** Create place-action link `POST /social/accounts/{account_id}/gmb/place-actions` */
1090
+ gmbCreatePlaceAction(accountId, body, options) {
1091
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
1092
+ }
1093
+ /** Update place-action link `PATCH /social/accounts/{account_id}/gmb/place-actions` */
1094
+ gmbUpdatePlaceAction(accountId, body, options) {
1095
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
1096
+ }
1097
+ /** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
1098
+ gmbDeletePlaceAction(accountId, body, options) {
1099
+ return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
1100
+ }
1101
+ /** List verifications `GET /social/accounts/{account_id}/gmb/verifications` */
1102
+ gmbVerifications(accountId, options) {
1103
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications`, { options });
1104
+ }
1105
+ /** Verification options `POST /social/accounts/{account_id}/gmb/verifications/options` */
1106
+ gmbVerificationOptions(accountId, body, options) {
1107
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
1108
+ }
1109
+ /** Subreddit info + eligibility `GET /social/accounts/{account_id}/reddit/subreddits/{subreddit}` */
1110
+ redditSubredditInfo(accountId, subreddit, options) {
1111
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/reddit/subreddits/${encodeURIComponent(subreddit)}`, { options });
1112
+ }
1113
+ /** X mentions `GET /social/accounts/{account_id}/x/mentions` */
1114
+ xMentions(accountId, query, options) {
1115
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/x/mentions`, { query, options });
1116
+ }
1017
1117
  };
1018
1118
  var UrlsResource = class {
1019
1119
  constructor(_client) {