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