@turndown/library 0.1.5 → 0.1.6

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.
@@ -1,10 +1,10 @@
1
- import { UserSafe } from "..";
1
+ import { Language, UserSafe } from "..";
2
2
  export interface GetUserResponse {
3
3
  user: UserSafe | null;
4
4
  }
5
5
  export interface GetCurrentUserRequest {
6
6
  }
7
- export interface GetCurrentUserResponse {
7
+ export interface GetCurrentUserResponse extends GetUserResponse {
8
8
  }
9
9
  export interface GetUserByIdRequest {
10
10
  userId: string;
@@ -17,10 +17,20 @@ export interface GetUserByEmailRequest {
17
17
  export interface GetUserByEmailResponse extends GetUserResponse {
18
18
  }
19
19
  export interface UpdateUserRequest {
20
+ firstName?: string;
21
+ lastName?: string;
22
+ mi?: string;
23
+ username?: string;
24
+ email?: string;
25
+ phoneNumber?: string;
26
+ phoneFormat?: string;
27
+ preferredLanguage?: Language;
20
28
  }
21
29
  export interface UpdateUserResponse {
30
+ user: UserSafe;
22
31
  }
23
32
  export interface DeleteUserRequest {
24
33
  }
25
34
  export interface DeleteUserResponse {
35
+ message: string;
26
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",