@smartlyqofficial/node 0.1.7 → 0.1.9

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
 
@@ -406,9 +408,24 @@ All methods below are available on the client. Full request/response documentati
406
408
  | `sq.social.gmbUpdateFoodMenus(accountId, body)` | `PUT /social/accounts/{account_id}/gmb/food-menus` | Update food menus |
407
409
  | `sq.social.gmbPlaceActions(accountId)` | `GET /social/accounts/{account_id}/gmb/place-actions` | List place-action links |
408
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 |
409
412
  | `sq.social.gmbDeletePlaceAction(accountId, body)` | `DELETE /social/accounts/{account_id}/gmb/place-actions` | Delete place-action link |
410
413
  | `sq.social.gmbVerifications(accountId)` | `GET /social/accounts/{account_id}/gmb/verifications` | List verifications |
411
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 |
417
+ | `sq.social.sendTypingIndicator(conversationId)` | `POST /social/conversations/{conversation_id}/typing` | Typing indicator |
418
+ | `sq.social.commentPrivateReply(commentId, body)` | `POST /social/comments/{comment_id}/private-reply` | Private reply (comment-to-DM) |
419
+ | `sq.social.getMessengerMenu(accountId)` | `GET /social/accounts/{account_id}/messenger/menu` | Get Messenger menu |
420
+ | `sq.social.setMessengerMenu(accountId, body)` | `PUT /social/accounts/{account_id}/messenger/menu` | Set Messenger menu |
421
+ | `sq.social.deleteMessengerMenu(accountId)` | `DELETE /social/accounts/{account_id}/messenger/menu` | Delete Messenger menu |
422
+ | `sq.social.getIceBreakers(accountId)` | `GET /social/accounts/{account_id}/instagram/ice-breakers` | Get ice breakers |
423
+ | `sq.social.setIceBreakers(accountId, body)` | `PUT /social/accounts/{account_id}/instagram/ice-breakers` | Set ice breakers |
424
+ | `sq.social.deleteIceBreakers(accountId)` | `DELETE /social/accounts/{account_id}/instagram/ice-breakers` | Delete ice breakers |
425
+ | `sq.social.facebookPageInsights(accountId, query?)` | `GET /social/accounts/{account_id}/facebook/page-insights` | Facebook page insights |
426
+ | `sq.social.instagramAudience(accountId, query?)` | `GET /social/accounts/{account_id}/instagram/audience` | Instagram audience demographics |
427
+ | `sq.social.connectOptions(accountId)` | `GET /social/accounts/{account_id}/connect-options` | Connection target options |
428
+ | `sq.social.connectSelect(accountId, body)` | `POST /social/accounts/{account_id}/connect-select` | Select connection target |
412
429
 
413
430
  ### URLs
414
431
 
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) {
@@ -1082,6 +1090,10 @@ var SocialResource = class {
1082
1090
  gmbCreatePlaceAction(accountId, body, options) {
1083
1091
  return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
1084
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
+ }
1085
1097
  /** Delete place-action link `DELETE /social/accounts/{account_id}/gmb/place-actions` */
1086
1098
  gmbDeletePlaceAction(accountId, body, options) {
1087
1099
  return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/gmb/place-actions`, { body, options });
@@ -1094,6 +1106,62 @@ var SocialResource = class {
1094
1106
  gmbVerificationOptions(accountId, body, options) {
1095
1107
  return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/gmb/verifications/options`, { body, options });
1096
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
+ }
1117
+ /** Typing indicator `POST /social/conversations/{conversation_id}/typing` */
1118
+ sendTypingIndicator(conversationId, options) {
1119
+ return this._client.request("POST", `/social/conversations/${encodeURIComponent(conversationId)}/typing`, { options });
1120
+ }
1121
+ /** Private reply (comment-to-DM) `POST /social/comments/{comment_id}/private-reply` */
1122
+ commentPrivateReply(commentId, body, options) {
1123
+ return this._client.request("POST", `/social/comments/${encodeURIComponent(commentId)}/private-reply`, { body, options });
1124
+ }
1125
+ /** Get Messenger menu `GET /social/accounts/{account_id}/messenger/menu` */
1126
+ getMessengerMenu(accountId, options) {
1127
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { options });
1128
+ }
1129
+ /** Set Messenger menu `PUT /social/accounts/{account_id}/messenger/menu` */
1130
+ setMessengerMenu(accountId, body, options) {
1131
+ return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { body, options });
1132
+ }
1133
+ /** Delete Messenger menu `DELETE /social/accounts/{account_id}/messenger/menu` */
1134
+ deleteMessengerMenu(accountId, options) {
1135
+ return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/messenger/menu`, { options });
1136
+ }
1137
+ /** Get ice breakers `GET /social/accounts/{account_id}/instagram/ice-breakers` */
1138
+ getIceBreakers(accountId, options) {
1139
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { options });
1140
+ }
1141
+ /** Set ice breakers `PUT /social/accounts/{account_id}/instagram/ice-breakers` */
1142
+ setIceBreakers(accountId, body, options) {
1143
+ return this._client.request("PUT", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { body, options });
1144
+ }
1145
+ /** Delete ice breakers `DELETE /social/accounts/{account_id}/instagram/ice-breakers` */
1146
+ deleteIceBreakers(accountId, options) {
1147
+ return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}/instagram/ice-breakers`, { options });
1148
+ }
1149
+ /** Facebook page insights `GET /social/accounts/{account_id}/facebook/page-insights` */
1150
+ facebookPageInsights(accountId, query, options) {
1151
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/facebook/page-insights`, { query, options });
1152
+ }
1153
+ /** Instagram audience demographics `GET /social/accounts/{account_id}/instagram/audience` */
1154
+ instagramAudience(accountId, query, options) {
1155
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/instagram/audience`, { query, options });
1156
+ }
1157
+ /** Connection target options `GET /social/accounts/{account_id}/connect-options` */
1158
+ connectOptions(accountId, options) {
1159
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/connect-options`, { options });
1160
+ }
1161
+ /** Select connection target `POST /social/accounts/{account_id}/connect-select` */
1162
+ connectSelect(accountId, body, options) {
1163
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/connect-select`, { body, options });
1164
+ }
1097
1165
  };
1098
1166
  var UrlsResource = class {
1099
1167
  constructor(_client) {