@gethydra/sdk 0.1.52 → 0.1.53
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.d.ts +5 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21998,6 +21998,11 @@ declare class BookingsResource {
|
|
|
21998
21998
|
}): Promise<DataResponse<Appointment>>;
|
|
21999
21999
|
getAppointment(id: string): Promise<DataResponse<Appointment>>;
|
|
22000
22000
|
updateAppointment(id: string, body: UpdateAppointmentBody): Promise<DataResponse<Appointment>>;
|
|
22001
|
+
/** Reschedule an appointment to a new date/time. Requires a secret key. */
|
|
22002
|
+
rescheduleAppointment(id: string, body: {
|
|
22003
|
+
scheduled_date: string;
|
|
22004
|
+
start_time: string;
|
|
22005
|
+
}): Promise<DataResponse<Appointment>>;
|
|
22001
22006
|
createOverride(body: CreateOverrideBody, options?: ResourceRequestOptions): Promise<DataResponse<AvailabilityOverride>>;
|
|
22002
22007
|
listOverrides(params: ListOverridesParams): Promise<ListResponse<AvailabilityOverride>>;
|
|
22003
22008
|
deleteOverride(id: string): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1708,6 +1708,10 @@ var BookingsResource = class {
|
|
|
1708
1708
|
body
|
|
1709
1709
|
});
|
|
1710
1710
|
}
|
|
1711
|
+
/** Reschedule an appointment to a new date/time. Requires a secret key. */
|
|
1712
|
+
async rescheduleAppointment(id, body) {
|
|
1713
|
+
return this.client.request("POST", `/v1/bookings/appointments/${id}/reschedule`, { body });
|
|
1714
|
+
}
|
|
1711
1715
|
// ── Availability overrides ──
|
|
1712
1716
|
async createOverride(body, options) {
|
|
1713
1717
|
return this.client.request("POST", "/v1/bookings/overrides", {
|