@smartlyqofficial/node 0.1.13 → 0.1.15

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/dist/index.js CHANGED
@@ -130,6 +130,10 @@ var AccountResource = class {
130
130
  getMeBalance(options) {
131
131
  return this._client.request("GET", "/me/balance", { options });
132
132
  }
133
+ /** Billing overview `GET /me/billing` */
134
+ getBilling(options) {
135
+ return this._client.request("GET", "/me/billing", { options });
136
+ }
133
137
  };
134
138
  var CaptainResource = class {
135
139
  constructor(_client) {
@@ -349,6 +353,10 @@ var CommentsResource = class {
349
353
  delete(commentId, options) {
350
354
  return this._client.request("DELETE", `/social/comments/${encodeURIComponent(commentId)}`, { options });
351
355
  }
356
+ /** Get one post's comments (threaded) `GET /social/comments/{post_id}` */
357
+ getPost(postId, options) {
358
+ return this._client.request("GET", `/social/comments/${encodeURIComponent(postId)}`, { options });
359
+ }
352
360
  };
353
361
  var ContentResource = class {
354
362
  constructor(_client) {
@@ -428,6 +436,14 @@ var ContactsResource = class {
428
436
  addMessage(id, body, options) {
429
437
  return this._client.request("POST", `/contacts/${encodeURIComponent(id)}/messages`, { body, options });
430
438
  }
439
+ /** Set one custom field `PUT /contacts/{id}/fields/{slug}` */
440
+ setField(id, slug, body, options) {
441
+ return this._client.request("PUT", `/contacts/${encodeURIComponent(id)}/fields/${encodeURIComponent(slug)}`, { body, options });
442
+ }
443
+ /** Clear one custom field `DELETE /contacts/{id}/fields/{slug}` */
444
+ clearField(id, slug, options) {
445
+ return this._client.request("DELETE", `/contacts/${encodeURIComponent(id)}/fields/${encodeURIComponent(slug)}`, { options });
446
+ }
431
447
  };
432
448
  var CustomFieldsResource = class {
433
449
  constructor(_client) {
@@ -1208,6 +1224,35 @@ var WebhooksResource = class {
1208
1224
  return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
1209
1225
  }
1210
1226
  };
1227
+ var WhatsAppResource = class {
1228
+ constructor(_client) {
1229
+ this._client = _client;
1230
+ }
1231
+ /** Send a WhatsApp message `POST /whatsapp/messages` */
1232
+ sendWhatsAppMessage(body, options) {
1233
+ return this._client.request("POST", "/whatsapp/messages", { body, options });
1234
+ }
1235
+ /** List message templates `GET /whatsapp/templates` */
1236
+ listWhatsAppTemplates(query, options) {
1237
+ return this._client.request("GET", "/whatsapp/templates", { query, options });
1238
+ }
1239
+ /** Create a message template `POST /whatsapp/templates` */
1240
+ createWhatsAppTemplate(body, options) {
1241
+ return this._client.request("POST", "/whatsapp/templates", { body, options });
1242
+ }
1243
+ /** Get business profile `GET /whatsapp/business-profile` */
1244
+ getWhatsAppBusinessProfile(query, options) {
1245
+ return this._client.request("GET", "/whatsapp/business-profile", { query, options });
1246
+ }
1247
+ /** Update business profile `PATCH /whatsapp/business-profile` */
1248
+ updateWhatsAppBusinessProfile(body, options) {
1249
+ return this._client.request("PATCH", "/whatsapp/business-profile", { body, options });
1250
+ }
1251
+ /** List phone numbers `GET /whatsapp/phone-numbers` */
1252
+ listWhatsAppPhoneNumbers(query, options) {
1253
+ return this._client.request("GET", "/whatsapp/phone-numbers", { query, options });
1254
+ }
1255
+ };
1211
1256
  var WorkspacesResource = class {
1212
1257
  constructor(_client) {
1213
1258
  this._client = _client;
@@ -1289,6 +1334,7 @@ function createResources(client) {
1289
1334
  urls: new UrlsResource(client),
1290
1335
  videos: new VideosResource(client),
1291
1336
  webhooks: new WebhooksResource(client),
1337
+ whatsApp: new WhatsAppResource(client),
1292
1338
  workspaces: new WorkspacesResource(client)
1293
1339
  };
1294
1340
  }
@@ -1333,6 +1379,7 @@ export {
1333
1379
  UrlsResource,
1334
1380
  VideosResource,
1335
1381
  WebhooksResource,
1382
+ WhatsAppResource,
1336
1383
  WorkspacesResource,
1337
1384
  createResources,
1338
1385
  index_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",