@gethydra/sdk 0.1.49 → 0.1.50
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 +6 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21948,6 +21948,12 @@ declare class BookingsResource {
|
|
|
21948
21948
|
toArrayAppointments(params?: Omit<ListAppointmentsParams, 'cursor'>, options?: PaginateOptions & {
|
|
21949
21949
|
limit?: number;
|
|
21950
21950
|
}): Promise<Appointment[]>;
|
|
21951
|
+
/** List the authenticated customer's own appointments. Requires customer JWT. */
|
|
21952
|
+
myAppointments(params?: {
|
|
21953
|
+
status?: string;
|
|
21954
|
+
date_from?: string;
|
|
21955
|
+
date_to?: string;
|
|
21956
|
+
}): Promise<DataResponse<Appointment[]>>;
|
|
21951
21957
|
getAppointment(id: string): Promise<DataResponse<Appointment>>;
|
|
21952
21958
|
updateAppointment(id: string, body: UpdateAppointmentBody): Promise<DataResponse<Appointment>>;
|
|
21953
21959
|
createOverride(body: CreateOverrideBody, options?: ResourceRequestOptions): Promise<DataResponse<AvailabilityOverride>>;
|
package/dist/index.js
CHANGED
|
@@ -1688,6 +1688,10 @@ var BookingsResource = class {
|
|
|
1688
1688
|
async toArrayAppointments(params, options) {
|
|
1689
1689
|
return toArray(this.iterateAppointments(params, options), options);
|
|
1690
1690
|
}
|
|
1691
|
+
/** List the authenticated customer's own appointments. Requires customer JWT. */
|
|
1692
|
+
async myAppointments(params) {
|
|
1693
|
+
return this.client.request("GET", "/v1/bookings/my-appointments", { params });
|
|
1694
|
+
}
|
|
1691
1695
|
async getAppointment(id) {
|
|
1692
1696
|
return this.client.request("GET", `/v1/bookings/appointments/${id}`);
|
|
1693
1697
|
}
|