@smartlyqofficial/node 0.1.69 → 0.1.70

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
@@ -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
@@ -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) {