@smartlyqofficial/node 0.1.68 → 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 +15 -0
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +477 -3
- package/dist/index.d.ts +477 -3
- package/dist/index.js +60 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -501,6 +501,10 @@ var CalendarResource = class {
|
|
|
501
501
|
listSlots(query, options) {
|
|
502
502
|
return this._client.request("GET", "/calendar/slots", { query, options });
|
|
503
503
|
}
|
|
504
|
+
/** List bookings `GET /calendar/bookings` */
|
|
505
|
+
listBookings(query, options) {
|
|
506
|
+
return this._client.request("GET", "/calendar/bookings", { query, options });
|
|
507
|
+
}
|
|
504
508
|
/** Take a booking `POST /calendar/bookings` */
|
|
505
509
|
createBooking(body, options) {
|
|
506
510
|
return this._client.request("POST", "/calendar/bookings", { body, options });
|
|
@@ -509,6 +513,62 @@ var CalendarResource = class {
|
|
|
509
513
|
cancelBooking(id, body, options) {
|
|
510
514
|
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/cancel`, { body, options });
|
|
511
515
|
}
|
|
516
|
+
/** Get a booking `GET /calendar/bookings/{id}` */
|
|
517
|
+
getBooking(id, options) {
|
|
518
|
+
return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}`, { options });
|
|
519
|
+
}
|
|
520
|
+
/** Set a booking's status `POST /calendar/bookings/{id}/status` */
|
|
521
|
+
setBookingStatus(id, body, options) {
|
|
522
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/status`, { body, options });
|
|
523
|
+
}
|
|
524
|
+
/** Reschedule a booking `POST /calendar/bookings/{id}/reschedule` */
|
|
525
|
+
rescheduleBooking(id, body, options) {
|
|
526
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/reschedule`, { body, options });
|
|
527
|
+
}
|
|
528
|
+
/** List booking notes `GET /calendar/bookings/{id}/notes` */
|
|
529
|
+
listBookingNotes(id, options) {
|
|
530
|
+
return this._client.request("GET", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { options });
|
|
531
|
+
}
|
|
532
|
+
/** Add a booking note `POST /calendar/bookings/{id}/notes` */
|
|
533
|
+
addBookingNote(id, body, options) {
|
|
534
|
+
return this._client.request("POST", `/calendar/bookings/${encodeURIComponent(id)}/notes`, { body, options });
|
|
535
|
+
}
|
|
536
|
+
/** Delete a booking note `DELETE /calendar/bookings/{id}/notes/{note_id}` */
|
|
537
|
+
deleteBookingNote(id, noteId, options) {
|
|
538
|
+
return this._client.request("DELETE", `/calendar/bookings/${encodeURIComponent(id)}/notes/${encodeURIComponent(noteId)}`, { options });
|
|
539
|
+
}
|
|
540
|
+
/** List blocked time `GET /calendar/blocked-times` */
|
|
541
|
+
listBlockedTimes(query, options) {
|
|
542
|
+
return this._client.request("GET", "/calendar/blocked-times", { query, options });
|
|
543
|
+
}
|
|
544
|
+
/** Block off time `POST /calendar/blocked-times` */
|
|
545
|
+
createBlockedTime(body, options) {
|
|
546
|
+
return this._client.request("POST", "/calendar/blocked-times", { body, options });
|
|
547
|
+
}
|
|
548
|
+
/** Free blocked time `DELETE /calendar/blocked-times/{id}` */
|
|
549
|
+
deleteBlockedTime(id, options) {
|
|
550
|
+
return this._client.request("DELETE", `/calendar/blocked-times/${encodeURIComponent(id)}`, { options });
|
|
551
|
+
}
|
|
552
|
+
/** List availability schedules `GET /calendar/availability` */
|
|
553
|
+
listAvailabilitySchedules(options) {
|
|
554
|
+
return this._client.request("GET", "/calendar/availability", { options });
|
|
555
|
+
}
|
|
556
|
+
/** Create an availability schedule `POST /calendar/availability` */
|
|
557
|
+
createAvailabilitySchedule(body, options) {
|
|
558
|
+
return this._client.request("POST", "/calendar/availability", { body, options });
|
|
559
|
+
}
|
|
560
|
+
/** Update an availability schedule `PATCH /calendar/availability/{id}` */
|
|
561
|
+
updateAvailabilitySchedule(id, body, options) {
|
|
562
|
+
return this._client.request("PATCH", `/calendar/availability/${encodeURIComponent(id)}`, { body, options });
|
|
563
|
+
}
|
|
564
|
+
/** Delete an availability schedule `DELETE /calendar/availability/{id}` */
|
|
565
|
+
deleteAvailabilitySchedule(id, options) {
|
|
566
|
+
return this._client.request("DELETE", `/calendar/availability/${encodeURIComponent(id)}`, { options });
|
|
567
|
+
}
|
|
568
|
+
/** List busy times `GET /calendar/busy-times` */
|
|
569
|
+
listBusyTimes(query, options) {
|
|
570
|
+
return this._client.request("GET", "/calendar/busy-times", { query, options });
|
|
571
|
+
}
|
|
512
572
|
};
|
|
513
573
|
var ChatbotsResource = class {
|
|
514
574
|
constructor(_client) {
|