@smartlyqofficial/node 0.1.69 → 0.1.71

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
@@ -111,23 +111,23 @@ All methods below are available on the client. Full request/response documentati
111
111
  | `sq.ads.getCampaign(id)` | `GET /ads/campaigns/{id}` | Get a campaign |
112
112
  | `sq.ads.updateCampaign(id, body)` | `PATCH /ads/campaigns/{id}` | Update a campaign |
113
113
  | `sq.ads.deleteCampaign(id)` | `DELETE /ads/campaigns/{id}` | Delete a campaign |
114
- | `sq.ads.pauseCampaign(id)` | `POST /ads/campaigns/{id}/pause` | Pause a campaign |
115
- | `sq.ads.resumeCampaign(id)` | `POST /ads/campaigns/{id}/resume` | Resume a campaign |
114
+ | `sq.ads.pauseCampaign(id, body?)` | `POST /ads/campaigns/{id}/pause` | Pause a campaign |
115
+ | `sq.ads.resumeCampaign(id, body?)` | `POST /ads/campaigns/{id}/resume` | Resume a campaign |
116
116
  | `sq.ads.duplicateCampaign(id)` | `POST /ads/campaigns/{id}/duplicate` | Duplicate a campaign |
117
117
  | `sq.ads.archiveCampaign(id)` | `POST /ads/campaigns/{id}/archive` | Archive a campaign |
118
118
  | `sq.ads.bulkCampaignStatus(body)` | `POST /ads/campaigns/bulk-status` | Bulk pause/resume campaigns |
119
119
  | `sq.ads.listSets(query?)` | `GET /ads/ad-sets` | List ad sets |
120
120
  | `sq.ads.getSet(id)` | `GET /ads/ad-sets/{id}` | Get an ad set |
121
121
  | `sq.ads.deleteSet(id)` | `DELETE /ads/ad-sets/{id}` | Delete an ad set |
122
- | `sq.ads.pauseSet(id)` | `POST /ads/ad-sets/{id}/pause` | Pause an ad set |
123
- | `sq.ads.resumeSet(id)` | `POST /ads/ad-sets/{id}/resume` | Resume an ad set |
122
+ | `sq.ads.pauseSet(id, body?)` | `POST /ads/ad-sets/{id}/pause` | Pause an ad set |
123
+ | `sq.ads.resumeSet(id, body?)` | `POST /ads/ad-sets/{id}/resume` | Resume an ad set |
124
124
  | `sq.ads.duplicateSet(id)` | `POST /ads/ad-sets/{id}/duplicate` | Duplicate an ad set |
125
125
  | `sq.ads.archiveSet(id)` | `POST /ads/ad-sets/{id}/archive` | Archive an ad set |
126
126
  | `sq.ads.list(query?)` | `GET /ads/ads` | List ads |
127
127
  | `sq.ads.get(id)` | `GET /ads/ads/{id}` | Get an ad |
128
128
  | `sq.ads.delete(id)` | `DELETE /ads/ads/{id}` | Delete an ad |
129
- | `sq.ads.pause(id)` | `POST /ads/ads/{id}/pause` | Pause an ad |
130
- | `sq.ads.resume(id)` | `POST /ads/ads/{id}/resume` | Resume an ad |
129
+ | `sq.ads.pause(id, body?)` | `POST /ads/ads/{id}/pause` | Pause an ad |
130
+ | `sq.ads.resume(id, body?)` | `POST /ads/ads/{id}/resume` | Resume an ad |
131
131
  | `sq.ads.duplicate(id)` | `POST /ads/ads/{id}/duplicate` | Duplicate an ad |
132
132
  | `sq.ads.archive(id)` | `POST /ads/ads/{id}/archive` | Archive an ad |
133
133
  | `sq.ads.listAudiences(query?)` | `GET /ads/audiences` | List audiences |
@@ -162,7 +162,7 @@ All methods below are available on the client. Full request/response documentati
162
162
  | --- | --- | --- |
163
163
  | `sq.analytics.getOverview(query?)` | `GET /analytics/overview` | Get analytics overview |
164
164
  | `sq.analytics.getPosts(query?)` | `GET /analytics/posts` | Get post analytics |
165
- | `sq.analytics.getAccount(accountId, query?)` | `GET /analytics/accounts/{account_id}` | Get account analytics |
165
+ | `sq.analytics.getAccount(accountId)` | `GET /analytics/accounts/{account_id}` | Get account analytics |
166
166
  | `sq.analytics.dailyMetrics(query?)` | `GET /analytics/daily-metrics` | Daily metrics |
167
167
  | `sq.analytics.bestTime(query?)` | `GET /analytics/best-time` | Best time to post |
168
168
  | `sq.analytics.contentDecay(query?)` | `GET /analytics/content-decay` | Content decay |
@@ -219,8 +219,23 @@ All methods below are available on the client. Full request/response documentati
219
219
  | --- | --- | --- |
220
220
  | `sq.calendar.listEventTypes()` | `GET /calendar/event-types` | List booking pages |
221
221
  | `sq.calendar.listSlots(query?)` | `GET /calendar/slots` | List open slots |
222
+ | `sq.calendar.listBookings(query?)` | `GET /calendar/bookings` | List bookings |
222
223
  | `sq.calendar.createBooking(body)` | `POST /calendar/bookings` | Take a booking |
223
224
  | `sq.calendar.cancelBooking(id, body?)` | `POST /calendar/bookings/{id}/cancel` | Cancel a booking |
225
+ | `sq.calendar.getBooking(id)` | `GET /calendar/bookings/{id}` | Get a booking |
226
+ | `sq.calendar.setBookingStatus(id, body)` | `POST /calendar/bookings/{id}/status` | Set a booking's status |
227
+ | `sq.calendar.rescheduleBooking(id, body)` | `POST /calendar/bookings/{id}/reschedule` | Reschedule a booking |
228
+ | `sq.calendar.listBookingNotes(id)` | `GET /calendar/bookings/{id}/notes` | List booking notes |
229
+ | `sq.calendar.addBookingNote(id, body)` | `POST /calendar/bookings/{id}/notes` | Add a booking note |
230
+ | `sq.calendar.deleteBookingNote(id, noteId)` | `DELETE /calendar/bookings/{id}/notes/{note_id}` | Delete a booking note |
231
+ | `sq.calendar.listBlockedTimes(query?)` | `GET /calendar/blocked-times` | List blocked time |
232
+ | `sq.calendar.createBlockedTime(body)` | `POST /calendar/blocked-times` | Block off time |
233
+ | `sq.calendar.deleteBlockedTime(id)` | `DELETE /calendar/blocked-times/{id}` | Free blocked time |
234
+ | `sq.calendar.listAvailabilitySchedules()` | `GET /calendar/availability` | List availability schedules |
235
+ | `sq.calendar.createAvailabilitySchedule(body)` | `POST /calendar/availability` | Create an availability schedule |
236
+ | `sq.calendar.updateAvailabilitySchedule(id, body?)` | `PATCH /calendar/availability/{id}` | Update an availability schedule |
237
+ | `sq.calendar.deleteAvailabilitySchedule(id)` | `DELETE /calendar/availability/{id}` | Delete an availability schedule |
238
+ | `sq.calendar.listBusyTimes(query?)` | `GET /calendar/busy-times` | List busy times |
224
239
 
225
240
  ### Chatbot
226
241
 
package/dist/index.cjs CHANGED
@@ -226,12 +226,12 @@ var AdsResource = class {
226
226
  return this._client.request("DELETE", `/ads/campaigns/${encodeURIComponent(id)}`, { options });
227
227
  }
228
228
  /** Pause a campaign `POST /ads/campaigns/{id}/pause` */
229
- pauseCampaign(id, options) {
230
- return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { options });
229
+ pauseCampaign(id, body, options) {
230
+ return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/pause`, { body, options });
231
231
  }
232
232
  /** Resume a campaign `POST /ads/campaigns/{id}/resume` */
233
- resumeCampaign(id, options) {
234
- return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { options });
233
+ resumeCampaign(id, body, options) {
234
+ return this._client.request("POST", `/ads/campaigns/${encodeURIComponent(id)}/resume`, { body, options });
235
235
  }
236
236
  /** Duplicate a campaign `POST /ads/campaigns/{id}/duplicate` */
237
237
  duplicateCampaign(id, options) {
@@ -258,12 +258,12 @@ var AdsResource = class {
258
258
  return this._client.request("DELETE", `/ads/ad-sets/${encodeURIComponent(id)}`, { options });
259
259
  }
260
260
  /** Pause an ad set `POST /ads/ad-sets/{id}/pause` */
261
- pauseSet(id, options) {
262
- return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { options });
261
+ pauseSet(id, body, options) {
262
+ return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/pause`, { body, options });
263
263
  }
264
264
  /** Resume an ad set `POST /ads/ad-sets/{id}/resume` */
265
- resumeSet(id, options) {
266
- return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { options });
265
+ resumeSet(id, body, options) {
266
+ return this._client.request("POST", `/ads/ad-sets/${encodeURIComponent(id)}/resume`, { body, options });
267
267
  }
268
268
  /** Duplicate an ad set `POST /ads/ad-sets/{id}/duplicate` */
269
269
  duplicateSet(id, options) {
@@ -286,12 +286,12 @@ var AdsResource = class {
286
286
  return this._client.request("DELETE", `/ads/ads/${encodeURIComponent(id)}`, { options });
287
287
  }
288
288
  /** Pause an ad `POST /ads/ads/{id}/pause` */
289
- pause(id, options) {
290
- return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { options });
289
+ pause(id, body, options) {
290
+ return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/pause`, { body, options });
291
291
  }
292
292
  /** Resume an ad `POST /ads/ads/{id}/resume` */
293
- resume(id, options) {
294
- return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { options });
293
+ resume(id, body, options) {
294
+ return this._client.request("POST", `/ads/ads/${encodeURIComponent(id)}/resume`, { body, options });
295
295
  }
296
296
  /** Duplicate an ad `POST /ads/ads/{id}/duplicate` */
297
297
  duplicate(id, options) {
@@ -400,8 +400,8 @@ var AnalyticsResource = class {
400
400
  return this._client.request("GET", "/analytics/posts", { query, options });
401
401
  }
402
402
  /** Get account analytics `GET /analytics/accounts/{account_id}` */
403
- getAccount(accountId, query, options) {
404
- return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { query, options });
403
+ getAccount(accountId, options) {
404
+ return this._client.request("GET", `/analytics/accounts/${encodeURIComponent(accountId)}`, { options });
405
405
  }
406
406
  /** Daily metrics `GET /analytics/daily-metrics` */
407
407
  dailyMetrics(query, options) {
@@ -567,6 +567,10 @@ var CalendarResource = class {
567
567
  listSlots(query, options) {
568
568
  return this._client.request("GET", "/calendar/slots", { query, options });
569
569
  }
570
+ /** List bookings `GET /calendar/bookings` */
571
+ listBookings(query, options) {
572
+ return this._client.request("GET", "/calendar/bookings", { query, options });
573
+ }
570
574
  /** Take a booking `POST /calendar/bookings` */
571
575
  createBooking(body, options) {
572
576
  return this._client.request("POST", "/calendar/bookings", { body, options });
@@ -575,6 +579,62 @@ var CalendarResource = class {
575
579
  cancelBooking(id, body, options) {
576
580
  return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/cancel`, { body, options });
577
581
  }
582
+ /** Get a booking `GET /calendar/bookings/{id}` */
583
+ getBooking(id, options) {
584
+ return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}`, { options });
585
+ }
586
+ /** Set a booking's status `POST /calendar/bookings/{id}/status` */
587
+ setBookingStatus(id, body, options) {
588
+ return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/status`, { body, options });
589
+ }
590
+ /** Reschedule a booking `POST /calendar/bookings/{id}/reschedule` */
591
+ rescheduleBooking(id, body, options) {
592
+ return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/reschedule`, { body, options });
593
+ }
594
+ /** List booking notes `GET /calendar/bookings/{id}/notes` */
595
+ listBookingNotes(id, options) {
596
+ return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { options });
597
+ }
598
+ /** Add a booking note `POST /calendar/bookings/{id}/notes` */
599
+ addBookingNote(id, body, options) {
600
+ return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { body, options });
601
+ }
602
+ /** Delete a booking note `DELETE /calendar/bookings/{id}/notes/{note_id}` */
603
+ deleteBookingNote(id, noteId, options) {
604
+ return this._client.request("DELETE", `/calendar/bookings/${encodeURIComponent(id)}/notes/${encodeURIComponent(noteId)}`, { options });
605
+ }
606
+ /** List blocked time `GET /calendar/blocked-times` */
607
+ listBlockedTimes(query, options) {
608
+ return this._client.request("GET", "/calendar/blocked-times", { query, options });
609
+ }
610
+ /** Block off time `POST /calendar/blocked-times` */
611
+ createBlockedTime(body, options) {
612
+ return this._client.request("POST", "/calendar/blocked-times", { body, options });
613
+ }
614
+ /** Free blocked time `DELETE /calendar/blocked-times/{id}` */
615
+ deleteBlockedTime(id, options) {
616
+ return this._client.request("DELETE", `/calendar/blocked-times/${encodeURIComponent(id)}`, { options });
617
+ }
618
+ /** List availability schedules `GET /calendar/availability` */
619
+ listAvailabilitySchedules(options) {
620
+ return this._client.request("GET", "/calendar/availability", { options });
621
+ }
622
+ /** Create an availability schedule `POST /calendar/availability` */
623
+ createAvailabilitySchedule(body, options) {
624
+ return this._client.request("POST", "/calendar/availability", { body, options });
625
+ }
626
+ /** Update an availability schedule `PATCH /calendar/availability/{id}` */
627
+ updateAvailabilitySchedule(id, body, options) {
628
+ return this._client.request("PATCH", `/calendar/availability/${encodeURIComponent(id)}`, { body, options });
629
+ }
630
+ /** Delete an availability schedule `DELETE /calendar/availability/{id}` */
631
+ deleteAvailabilitySchedule(id, options) {
632
+ return this._client.request("DELETE", `/calendar/availability/${encodeURIComponent(id)}`, { options });
633
+ }
634
+ /** List busy times `GET /calendar/busy-times` */
635
+ listBusyTimes(query, options) {
636
+ return this._client.request("GET", "/calendar/busy-times", { query, options });
637
+ }
578
638
  };
579
639
  var ChatbotsResource = class {
580
640
  constructor(_client) {