@turndown/library 0.1.7 → 0.1.9

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.
@@ -38,6 +38,7 @@ export interface SignoutAllResponse {
38
38
  message: string;
39
39
  }
40
40
  export interface GetMeRequest {
41
+ userId: string;
41
42
  }
42
43
  export interface GetMeResponse extends GetUserResponse {
43
44
  }
@@ -1,24 +1,52 @@
1
+ import { Company, CompanyType } from ".";
2
+ import { AccountType } from "../user";
1
3
  export interface CreateCompanyRequest {
4
+ displayName: string;
5
+ addressLine1?: string;
6
+ addressLine2?: string;
7
+ city?: string;
8
+ stateCode?: string;
9
+ postalCode?: string;
10
+ companyType: CompanyType;
2
11
  }
3
12
  export interface CreateCompanyResponse {
13
+ company: Company;
4
14
  }
5
15
  export interface GetCompanyByIdRequest {
6
16
  }
7
17
  export interface GetCompanyByIdResponse {
18
+ company: Company;
8
19
  }
9
20
  export interface UpdateCompanyRequest {
21
+ companyId: string;
22
+ company: Partial<Company>;
10
23
  }
11
24
  export interface UpdateCompanyResponse {
25
+ company: Company;
12
26
  }
13
27
  export interface InviteUserToCompanyRequest {
28
+ companyId: string;
29
+ email: string;
30
+ role: AccountType;
31
+ userId: string;
14
32
  }
15
33
  export interface InviteUserToCompanyResponse {
34
+ message: string;
16
35
  }
17
36
  export interface GetCompanyUsersRequest {
18
37
  }
19
38
  export interface GetCompanyUsersResponse {
39
+ company: Partial<Company>;
40
+ users: {
41
+ id: string;
42
+ email: string;
43
+ firstName: string;
44
+ lastName: string;
45
+ role: AccountType;
46
+ }[];
20
47
  }
21
48
  export interface GetUserCompaniesRequest {
22
49
  }
23
50
  export interface GetUserCompaniesResponse {
51
+ companies: Company[];
24
52
  }
@@ -1,9 +1,27 @@
1
- import { MetaData } from "../index";
1
+ import { MetaData, ObjectValues } from "../index";
2
2
  export * from "./routes";
3
+ declare const ROOM_TYPE: {
4
+ BEDROOM: string;
5
+ BATHROOM: string;
6
+ KITCHEN: string;
7
+ LIVING_ROOM: string;
8
+ DINING_ROOM: string;
9
+ OFFICE: string;
10
+ GARAGE: string;
11
+ LAUNDRY_ROOM: string;
12
+ BASEMENT: string;
13
+ ATTIC: string;
14
+ BALCONY: string;
15
+ PORCH: string;
16
+ GARDEN: string;
17
+ OTHER: string;
18
+ };
19
+ export type RoomType = ObjectValues<typeof ROOM_TYPE>;
3
20
  export interface Room extends MetaData {
4
21
  id: string;
5
22
  displayName: string;
6
23
  checklistTemplateId?: string;
24
+ roomType?: RoomType;
7
25
  heroPhoto?: string;
8
26
  propertyId: string;
9
27
  description?: string;
@@ -1 +1,17 @@
1
1
  export * from "./routes";
2
+ const ROOM_TYPE = {
3
+ BEDROOM: "BEDROOM",
4
+ BATHROOM: "BATHROOM",
5
+ KITCHEN: "KITCHEN",
6
+ LIVING_ROOM: "LIVING_ROOM",
7
+ DINING_ROOM: "DINING_ROOM",
8
+ OFFICE: "OFFICE",
9
+ GARAGE: "GARAGE",
10
+ LAUNDRY_ROOM: "LAUNDRY_ROOM",
11
+ BASEMENT: "BASEMENT",
12
+ ATTIC: "ATTIC",
13
+ BALCONY: "BALCONY",
14
+ PORCH: "PORCH",
15
+ GARDEN: "GARDEN",
16
+ OTHER: "OTHER",
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",