@turndown/library 0.0.36 → 0.0.39
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/types/auth/index.d.ts +7 -0
- package/dist/types/base/index.d.ts +67 -0
- package/dist/types/base/index.js +67 -0
- package/dist/types/company/index.d.ts +16 -0
- package/dist/types/company/index.js +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.js +2 -1
- package/package.json +1 -1
|
@@ -12,6 +12,12 @@ export interface TokenPayload {
|
|
|
12
12
|
email: string;
|
|
13
13
|
name: string;
|
|
14
14
|
}
|
|
15
|
+
export interface RefreshTokenData {
|
|
16
|
+
token: string;
|
|
17
|
+
tokenHash: string;
|
|
18
|
+
tokenFamily: string;
|
|
19
|
+
expiresAt: string;
|
|
20
|
+
}
|
|
15
21
|
/**
|
|
16
22
|
* Auth Token Response
|
|
17
23
|
* Standard structure for authentication responses with tokens
|
|
@@ -55,6 +61,7 @@ export interface SigninRequest {
|
|
|
55
61
|
* Response from signin endpoint
|
|
56
62
|
*/
|
|
57
63
|
export interface SigninResponse extends AuthTokenResponse {
|
|
64
|
+
passwordResetRequired?: boolean;
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
67
|
* Refresh Token Request
|
|
@@ -2,4 +2,71 @@ export type GenericTurndownObject = Record<string, any> | any | undefined;
|
|
|
2
2
|
export type TurndownObject<T = GenericTurndownObject> = Record<string, T> | T | undefined;
|
|
3
3
|
export type ObjectValues<T> = T[keyof T];
|
|
4
4
|
export type ObjectKeys<T> = [keyof T];
|
|
5
|
+
export declare const IMAGE_ENTITY: {
|
|
6
|
+
USER_PROFILE: string;
|
|
7
|
+
PROPERTY: string;
|
|
8
|
+
PROPERTY_ROOM: string;
|
|
9
|
+
MAINTENANCE_TICKET: string;
|
|
10
|
+
CLEANING_REPORT: string;
|
|
11
|
+
};
|
|
12
|
+
export type ImageEntityType = ObjectValues<typeof IMAGE_ENTITY>;
|
|
13
|
+
export declare const US_STATES_CODE: {
|
|
14
|
+
AL: string;
|
|
15
|
+
AK: string;
|
|
16
|
+
AZ: string;
|
|
17
|
+
AR: string;
|
|
18
|
+
CA: string;
|
|
19
|
+
CO: string;
|
|
20
|
+
CT: string;
|
|
21
|
+
DE: string;
|
|
22
|
+
FL: string;
|
|
23
|
+
GA: string;
|
|
24
|
+
HI: string;
|
|
25
|
+
ID: string;
|
|
26
|
+
IL: string;
|
|
27
|
+
IN: string;
|
|
28
|
+
IA: string;
|
|
29
|
+
KS: string;
|
|
30
|
+
KY: string;
|
|
31
|
+
LA: string;
|
|
32
|
+
ME: string;
|
|
33
|
+
MD: string;
|
|
34
|
+
MA: string;
|
|
35
|
+
MI: string;
|
|
36
|
+
MN: string;
|
|
37
|
+
MS: string;
|
|
38
|
+
MO: string;
|
|
39
|
+
MT: string;
|
|
40
|
+
NE: string;
|
|
41
|
+
NV: string;
|
|
42
|
+
NH: string;
|
|
43
|
+
NJ: string;
|
|
44
|
+
NM: string;
|
|
45
|
+
NY: string;
|
|
46
|
+
NC: string;
|
|
47
|
+
ND: string;
|
|
48
|
+
OH: string;
|
|
49
|
+
OK: string;
|
|
50
|
+
OR: string;
|
|
51
|
+
PA: string;
|
|
52
|
+
RI: string;
|
|
53
|
+
SC: string;
|
|
54
|
+
SD: string;
|
|
55
|
+
TN: string;
|
|
56
|
+
TX: string;
|
|
57
|
+
UT: string;
|
|
58
|
+
VT: string;
|
|
59
|
+
VA: string;
|
|
60
|
+
WA: string;
|
|
61
|
+
WV: string;
|
|
62
|
+
WI: string;
|
|
63
|
+
WY: string;
|
|
64
|
+
DC: string;
|
|
65
|
+
PR: string;
|
|
66
|
+
GU: string;
|
|
67
|
+
VI: string;
|
|
68
|
+
AS: string;
|
|
69
|
+
MP: string;
|
|
70
|
+
};
|
|
71
|
+
export type USStateCodeType = ObjectValues<typeof US_STATES_CODE>;
|
|
5
72
|
export * from "./paging.types";
|
package/dist/types/base/index.js
CHANGED
|
@@ -1 +1,68 @@
|
|
|
1
|
+
export const IMAGE_ENTITY = {
|
|
2
|
+
USER_PROFILE: "user_profile",
|
|
3
|
+
PROPERTY: "property",
|
|
4
|
+
PROPERTY_ROOM: "property_room",
|
|
5
|
+
MAINTENANCE_TICKET: "maintenance_ticket",
|
|
6
|
+
CLEANING_REPORT: "cleaning_report",
|
|
7
|
+
};
|
|
8
|
+
export const US_STATES_CODE = {
|
|
9
|
+
// 50 States
|
|
10
|
+
AL: "AL",
|
|
11
|
+
AK: "AK",
|
|
12
|
+
AZ: "AZ",
|
|
13
|
+
AR: "AR",
|
|
14
|
+
CA: "CA",
|
|
15
|
+
CO: "CO",
|
|
16
|
+
CT: "CT",
|
|
17
|
+
DE: "DE",
|
|
18
|
+
FL: "FL",
|
|
19
|
+
GA: "GA",
|
|
20
|
+
HI: "HI",
|
|
21
|
+
ID: "ID",
|
|
22
|
+
IL: "IL",
|
|
23
|
+
IN: "IN",
|
|
24
|
+
IA: "IA",
|
|
25
|
+
KS: "KS",
|
|
26
|
+
KY: "KY",
|
|
27
|
+
LA: "LA",
|
|
28
|
+
ME: "ME",
|
|
29
|
+
MD: "MD",
|
|
30
|
+
MA: "MA",
|
|
31
|
+
MI: "MI",
|
|
32
|
+
MN: "MN",
|
|
33
|
+
MS: "MS",
|
|
34
|
+
MO: "MO",
|
|
35
|
+
MT: "MT",
|
|
36
|
+
NE: "NE",
|
|
37
|
+
NV: "NV",
|
|
38
|
+
NH: "NH",
|
|
39
|
+
NJ: "NJ",
|
|
40
|
+
NM: "NM",
|
|
41
|
+
NY: "NY",
|
|
42
|
+
NC: "NC",
|
|
43
|
+
ND: "ND",
|
|
44
|
+
OH: "OH",
|
|
45
|
+
OK: "OK",
|
|
46
|
+
OR: "OR",
|
|
47
|
+
PA: "PA",
|
|
48
|
+
RI: "RI",
|
|
49
|
+
SC: "SC",
|
|
50
|
+
SD: "SD",
|
|
51
|
+
TN: "TN",
|
|
52
|
+
TX: "TX",
|
|
53
|
+
UT: "UT",
|
|
54
|
+
VT: "VT",
|
|
55
|
+
VA: "VA",
|
|
56
|
+
WA: "WA",
|
|
57
|
+
WV: "WV",
|
|
58
|
+
WI: "WI",
|
|
59
|
+
WY: "WY",
|
|
60
|
+
// Territories
|
|
61
|
+
DC: "DC",
|
|
62
|
+
PR: "PR",
|
|
63
|
+
GU: "GU",
|
|
64
|
+
VI: "VI",
|
|
65
|
+
AS: "AS",
|
|
66
|
+
MP: "MP",
|
|
67
|
+
};
|
|
1
68
|
export * from "./paging.types";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { USStateCodeType } from "../base";
|
|
2
|
+
export interface Company {
|
|
3
|
+
id: string;
|
|
4
|
+
display_name: string;
|
|
5
|
+
address_line1?: string | null;
|
|
6
|
+
address_line2?: string | null;
|
|
7
|
+
city?: string | null;
|
|
8
|
+
state_code?: USStateCodeType | null;
|
|
9
|
+
postal_code?: string | null;
|
|
10
|
+
country?: string | null;
|
|
11
|
+
timezone?: string | null;
|
|
12
|
+
photo_url?: string | null;
|
|
13
|
+
deleted_at?: Date | null;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED