@gethydra/sdk 0.1.48 → 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 +8 -1
- package/dist/index.js +5 -1
- 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>>;
|
|
@@ -22218,6 +22224,7 @@ interface UpdateProfileBody {
|
|
|
22218
22224
|
first_name?: string;
|
|
22219
22225
|
last_name?: string;
|
|
22220
22226
|
phone?: string | null;
|
|
22227
|
+
dob?: string | null;
|
|
22221
22228
|
locale?: string | null;
|
|
22222
22229
|
}
|
|
22223
22230
|
interface ChangePasswordBody {
|
|
@@ -22273,7 +22280,7 @@ declare class MeResource {
|
|
|
22273
22280
|
private opts;
|
|
22274
22281
|
/** Get the authenticated customer's profile. */
|
|
22275
22282
|
getProfile(accessToken?: string): Promise<DataResponse<unknown>>;
|
|
22276
|
-
/** Update profile fields (first_name, last_name, phone, locale). */
|
|
22283
|
+
/** Update profile fields (first_name, last_name, phone, dob, locale). */
|
|
22277
22284
|
updateProfile(body: UpdateProfileBody, accessToken?: string): Promise<DataResponse<unknown>>;
|
|
22278
22285
|
/** Change password. Invalidates all sessions and returns new tokens. */
|
|
22279
22286
|
changePassword(body: ChangePasswordBody, accessToken?: string): Promise<TokenResponse>;
|
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
|
}
|
|
@@ -1952,7 +1956,7 @@ var MeResource = class {
|
|
|
1952
1956
|
async getProfile(accessToken) {
|
|
1953
1957
|
return this.client.request("GET", "/v1/me", this.opts(accessToken));
|
|
1954
1958
|
}
|
|
1955
|
-
/** Update profile fields (first_name, last_name, phone, locale). */
|
|
1959
|
+
/** Update profile fields (first_name, last_name, phone, dob, locale). */
|
|
1956
1960
|
async updateProfile(body, accessToken) {
|
|
1957
1961
|
return this.client.request("PATCH", "/v1/me", this.opts(accessToken, { body }));
|
|
1958
1962
|
}
|