@turndown/library 0.1.8 → 0.1.16
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,7 +1,7 @@
|
|
|
1
1
|
import { AuthTokenResponse } from "..";
|
|
2
2
|
import { AccountType, DeviceInfo } from "../user";
|
|
3
3
|
import { GetUserResponse } from "../user/routes";
|
|
4
|
-
export interface
|
|
4
|
+
export interface RegisterRequest {
|
|
5
5
|
email: string;
|
|
6
6
|
password: string;
|
|
7
7
|
firstName: string;
|
|
@@ -9,14 +9,14 @@ export interface SignupRequest {
|
|
|
9
9
|
accountType: AccountType;
|
|
10
10
|
deviceInfo?: DeviceInfo;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface RegisterResponse extends AuthTokenResponse {
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface LoginRequest {
|
|
15
15
|
email: string;
|
|
16
16
|
password: string;
|
|
17
17
|
deviceInfo?: DeviceInfo;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface LoginResponse extends AuthTokenResponse {
|
|
20
20
|
passwordResetRequired?: boolean;
|
|
21
21
|
}
|
|
22
22
|
export interface RefreshRequest {
|
|
@@ -25,16 +25,16 @@ export interface RefreshRequest {
|
|
|
25
25
|
}
|
|
26
26
|
export interface RefreshResponse extends AuthTokenResponse {
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface LogoutRequest {
|
|
29
29
|
refreshToken: string;
|
|
30
30
|
}
|
|
31
|
-
export interface
|
|
31
|
+
export interface LogoutResponse {
|
|
32
32
|
message: string;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface LogoutAllRequest {
|
|
35
35
|
userId: string;
|
|
36
36
|
}
|
|
37
|
-
export interface
|
|
37
|
+
export interface LogoutAllResponse {
|
|
38
38
|
message: string;
|
|
39
39
|
}
|
|
40
40
|
export interface GetMeRequest {
|
|
@@ -67,9 +67,9 @@ export interface ForgotPasswordRequest {
|
|
|
67
67
|
export interface ForgotPasswordResponse {
|
|
68
68
|
message: string;
|
|
69
69
|
}
|
|
70
|
-
export interface
|
|
70
|
+
export interface GetLoginHistoryRequest {
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface GetLoginHistoryResponse {
|
|
73
73
|
id: string;
|
|
74
74
|
email: string;
|
|
75
75
|
ipAddress: string;
|
|
@@ -91,14 +91,14 @@ export interface ValidateInvitationResponse {
|
|
|
91
91
|
expiresAt: string;
|
|
92
92
|
userExists: boolean;
|
|
93
93
|
}
|
|
94
|
-
export interface
|
|
94
|
+
export interface RegisterWithInvitationRequest {
|
|
95
95
|
token: string;
|
|
96
96
|
password: string;
|
|
97
97
|
firstName: string;
|
|
98
98
|
lastName?: string;
|
|
99
99
|
deviceInfo?: DeviceInfo;
|
|
100
100
|
}
|
|
101
|
-
export interface
|
|
101
|
+
export interface RegisterWithInvitationResponse extends AuthTokenResponse {
|
|
102
102
|
}
|
|
103
103
|
export interface AcceptInvitationRequest {
|
|
104
104
|
userId: string;
|
|
@@ -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;
|
package/dist/types/room/index.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -9,11 +9,11 @@ export interface User extends MetaData {
|
|
|
9
9
|
email: string;
|
|
10
10
|
profilePhoto?: string;
|
|
11
11
|
passwordHash?: string;
|
|
12
|
-
|
|
12
|
+
loginAttempts?: number;
|
|
13
13
|
locked?: boolean;
|
|
14
14
|
passwordLastReset?: string;
|
|
15
15
|
passwordResetRequired?: boolean;
|
|
16
|
-
|
|
16
|
+
lastLogin?: string;
|
|
17
17
|
accountType: AccountType;
|
|
18
18
|
status: AccountStatus;
|
|
19
19
|
phoneNumber?: string;
|
|
@@ -22,7 +22,7 @@ export interface User extends MetaData {
|
|
|
22
22
|
companyId?: string;
|
|
23
23
|
biometrics?: string;
|
|
24
24
|
}
|
|
25
|
-
export interface UserSafe extends Omit<User, "passwordHash" | "
|
|
25
|
+
export interface UserSafe extends Omit<User, "passwordHash" | "loginAttempts" | "biometrics"> {
|
|
26
26
|
}
|
|
27
27
|
export declare const ACCOUNT_TYPE: {
|
|
28
28
|
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|