@turndown/library 0.1.16 → 0.1.20
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/helpers/date/index.d.ts +113 -0
- package/dist/helpers/date/index.js +171 -0
- package/dist/helpers/index.d.ts +3 -1
- package/dist/helpers/index.js +2 -1
- package/dist/helpers/object/index.d.ts +160 -75
- package/dist/helpers/object/index.js +355 -168
- package/dist/helpers/string/index.d.ts +227 -74
- package/dist/helpers/string/index.js +448 -114
- package/dist/types/api/index.d.ts +22 -11
- package/dist/types/api/index.js +9 -2
- package/dist/types/auth/index.d.ts +56 -18
- package/dist/types/auth/index.js +7 -0
- package/dist/types/auth/routes.d.ts +52 -43
- package/dist/types/auth/routes.js +0 -1
- package/dist/types/base/index.d.ts +188 -69
- package/dist/types/base/index.js +116 -0
- package/dist/types/base/paging.types.d.ts +11 -11
- package/dist/types/checklist-template/index.d.ts +8 -8
- package/dist/types/checklist-template/routes.d.ts +28 -28
- package/dist/types/company/index.d.ts +5 -5
- package/dist/types/company/routes.d.ts +23 -23
- package/dist/types/damage-report/index.d.ts +9 -9
- package/dist/types/damage-report/routes.d.ts +38 -38
- package/dist/types/errors/index.d.ts +15 -16
- package/dist/types/errors/index.js +17 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/inventory/index.d.ts +19 -19
- package/dist/types/inventory/routes.d.ts +36 -36
- package/dist/types/job/index.d.ts +7 -0
- package/dist/types/job/index.js +1 -0
- package/dist/types/property/index.d.ts +88 -29
- package/dist/types/property/index.js +23 -23
- package/dist/types/property/routes.d.ts +41 -14
- package/dist/types/property/routes.js +0 -1
- package/dist/types/room/index.d.ts +4 -4
- package/dist/types/room/routes.d.ts +8 -8
- package/dist/types/room-checklist/index.d.ts +9 -9
- package/dist/types/room-checklist/routes.d.ts +28 -28
- package/dist/types/user/index.d.ts +12 -12
- package/dist/types/user/routes.d.ts +15 -15
- package/dist/types/work-session/index.d.ts +12 -12
- package/dist/types/work-session/routes.d.ts +34 -34
- package/package.json +13 -4
package/dist/types/api/index.js
CHANGED
|
@@ -2,11 +2,18 @@
|
|
|
2
2
|
* API Response Types
|
|
3
3
|
* Standard response structure for all API endpoints
|
|
4
4
|
*/
|
|
5
|
+
export const HTTP_METHOD = {
|
|
6
|
+
Get: "GET",
|
|
7
|
+
Post: "POST",
|
|
8
|
+
Put: "PUT",
|
|
9
|
+
Patch: "PATCH",
|
|
10
|
+
Delete: "DELETE",
|
|
11
|
+
};
|
|
5
12
|
/**
|
|
6
13
|
* Error Codes
|
|
7
14
|
* Standardized error codes used across the platform
|
|
8
15
|
*/
|
|
9
|
-
export const
|
|
16
|
+
export const ERROR_CODES = {
|
|
10
17
|
// 400 - Bad Request
|
|
11
18
|
BAD_REQUEST: "BAD_REQUEST",
|
|
12
19
|
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
@@ -32,7 +39,7 @@ export const ErrorCodes = {
|
|
|
32
39
|
* HTTP Status Codes
|
|
33
40
|
* Common status codes used in responses
|
|
34
41
|
*/
|
|
35
|
-
export const
|
|
42
|
+
export const HTTP_STATUS = {
|
|
36
43
|
OK: 200,
|
|
37
44
|
CREATED: 201,
|
|
38
45
|
NO_CONTENT: 204,
|
|
@@ -1,40 +1,78 @@
|
|
|
1
1
|
export * from "./routes";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import type { TServiceType } from "../base";
|
|
3
|
+
import type { IUserSafe } from "../user";
|
|
4
|
+
export declare const AUTH_STATUS: {
|
|
5
|
+
readonly Initializing: "Initializing";
|
|
6
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
7
|
+
readonly Authenticated: "Authenticated";
|
|
8
|
+
readonly Refreshing: "Refreshing";
|
|
9
|
+
readonly SessionExpired: "SessionExpired";
|
|
10
|
+
};
|
|
11
|
+
export type TAuthStatus = (typeof AUTH_STATUS)[keyof typeof AUTH_STATUS];
|
|
7
12
|
/**
|
|
8
13
|
* Token Payload
|
|
9
14
|
* JWT token payload structure
|
|
10
15
|
*/
|
|
11
|
-
export interface
|
|
16
|
+
export interface ITokenPayload {
|
|
12
17
|
userId: string;
|
|
13
18
|
email: string;
|
|
14
19
|
name: string;
|
|
15
20
|
}
|
|
16
|
-
export interface
|
|
21
|
+
export interface IRefreshTokenData {
|
|
17
22
|
token: string;
|
|
18
23
|
tokenHash: string;
|
|
19
24
|
tokenFamily: string;
|
|
20
25
|
expiresAt: string;
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* Standard structure for authentication responses with tokens
|
|
25
|
-
*/
|
|
26
|
-
export interface AuthTokenResponse {
|
|
27
|
-
user: UserSafe;
|
|
27
|
+
export interface IAuthTokenResponse {
|
|
28
|
+
user: IUserSafe;
|
|
28
29
|
accessToken: string;
|
|
29
30
|
refreshToken: string;
|
|
30
|
-
expiresAt
|
|
31
|
+
expiresAt?: string | null;
|
|
31
32
|
companyId?: string;
|
|
32
33
|
}
|
|
34
|
+
export interface IStoredAuthSession {
|
|
35
|
+
accessToken: string | null;
|
|
36
|
+
refreshToken: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface IAuthTokens {
|
|
40
|
+
accessToken: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* For browser apps, prefer storing the refresh token in an HTTP-only cookie.
|
|
43
|
+
* Keep this optional so the same shape can support mobile or non-cookie flows.
|
|
44
|
+
*/
|
|
45
|
+
refreshToken?: string | null;
|
|
46
|
+
expiresAt?: string | null;
|
|
47
|
+
}
|
|
48
|
+
export interface IAuthSession {
|
|
49
|
+
authenticatedUser: IUserSafe | null;
|
|
50
|
+
accessToken: string | null;
|
|
51
|
+
expiresAt?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export interface ISetAuthSessionParams {
|
|
54
|
+
user: IUserSafe | null;
|
|
55
|
+
accessToken: string;
|
|
56
|
+
refreshToken: string;
|
|
57
|
+
expiresAt?: string | null;
|
|
58
|
+
}
|
|
59
|
+
export interface ILoginCredentials {
|
|
60
|
+
email: string;
|
|
61
|
+
password: string;
|
|
62
|
+
rememberMe: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface IRegisterCredentials {
|
|
65
|
+
businessType: TServiceType[];
|
|
66
|
+
firstName: string;
|
|
67
|
+
lastName: string;
|
|
68
|
+
email: string;
|
|
69
|
+
password: string;
|
|
70
|
+
}
|
|
33
71
|
/**
|
|
34
72
|
* Password Validation Rules
|
|
35
73
|
* Rules for password validation
|
|
36
74
|
*/
|
|
37
|
-
export interface
|
|
75
|
+
export interface IPasswordValidationRules {
|
|
38
76
|
minLength: number;
|
|
39
77
|
requireUppercase: boolean;
|
|
40
78
|
requireLowercase: boolean;
|
|
@@ -45,7 +83,7 @@ export interface PasswordValidationRules {
|
|
|
45
83
|
* Password Validation Result
|
|
46
84
|
* Result of password validation
|
|
47
85
|
*/
|
|
48
|
-
export interface
|
|
86
|
+
export interface IPasswordValidationResult {
|
|
49
87
|
valid: boolean;
|
|
50
88
|
errors: string[];
|
|
51
89
|
}
|
|
@@ -53,7 +91,7 @@ export interface PasswordValidationResult {
|
|
|
53
91
|
* Email Validation Result
|
|
54
92
|
* Result of email validation
|
|
55
93
|
*/
|
|
56
|
-
export interface
|
|
94
|
+
export interface IEmailValidationResult {
|
|
57
95
|
valid: boolean;
|
|
58
96
|
error?: string;
|
|
59
97
|
}
|
|
@@ -61,7 +99,7 @@ export interface EmailValidationResult {
|
|
|
61
99
|
* Rate Limit Status
|
|
62
100
|
* Information about rate limiting status
|
|
63
101
|
*/
|
|
64
|
-
export interface
|
|
102
|
+
export interface IRateLimitStatus {
|
|
65
103
|
isLimited: boolean;
|
|
66
104
|
attempts: number;
|
|
67
105
|
maxAttempts: number;
|
package/dist/types/auth/index.js
CHANGED
|
@@ -1,75 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
1
|
+
import type { IAuthTokenResponse } from "..";
|
|
2
|
+
import type { TAccountType, IDeviceInfo, IUserSafe } from "../user";
|
|
3
|
+
import type { IGetUserResponse } from "../user/routes";
|
|
4
|
+
export interface IRegisterRequest {
|
|
5
5
|
email: string;
|
|
6
6
|
password: string;
|
|
7
7
|
firstName: string;
|
|
8
8
|
lastName?: string;
|
|
9
|
-
accountType:
|
|
10
|
-
deviceInfo?:
|
|
9
|
+
accountType: TAccountType;
|
|
10
|
+
deviceInfo?: IDeviceInfo;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IRegisterResponse extends IAuthTokenResponse {
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface ILoginRequest {
|
|
15
15
|
email: string;
|
|
16
16
|
password: string;
|
|
17
|
-
deviceInfo?:
|
|
17
|
+
deviceInfo?: IDeviceInfo;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface ILoginResponse extends IAuthTokenResponse {
|
|
20
20
|
passwordResetRequired?: boolean;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface IRefreshSessionRequest {
|
|
23
23
|
refreshToken: string;
|
|
24
|
-
deviceInfo?:
|
|
24
|
+
deviceInfo?: IDeviceInfo;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface IRefreshSessionResponse {
|
|
27
|
+
user?: IUserSafe;
|
|
28
|
+
accessToken: string;
|
|
29
|
+
refreshToken: string;
|
|
30
|
+
expiresAt?: string | null;
|
|
31
|
+
companyId?: string;
|
|
27
32
|
}
|
|
28
|
-
export interface
|
|
33
|
+
export interface ILogoutRequest {
|
|
29
34
|
refreshToken: string;
|
|
30
35
|
}
|
|
31
|
-
export interface
|
|
36
|
+
export interface ILogoutResponse {
|
|
32
37
|
message: string;
|
|
33
38
|
}
|
|
34
|
-
export interface
|
|
39
|
+
export interface ILogoutAllRequest {
|
|
35
40
|
userId: string;
|
|
36
41
|
}
|
|
37
|
-
export interface
|
|
42
|
+
export interface ILogoutAllResponse {
|
|
38
43
|
message: string;
|
|
39
44
|
}
|
|
40
|
-
export interface
|
|
45
|
+
export interface IGetMeRequest {
|
|
41
46
|
userId: string;
|
|
42
47
|
}
|
|
43
|
-
export interface
|
|
48
|
+
export interface IGetMeResponse extends IGetUserResponse {
|
|
44
49
|
}
|
|
45
|
-
export interface
|
|
50
|
+
export interface IGetSessionsRequest {
|
|
46
51
|
}
|
|
47
|
-
export interface
|
|
52
|
+
export interface IGetSessionsResponse {
|
|
48
53
|
id: string;
|
|
49
54
|
deviceInfo: string;
|
|
50
55
|
createdAt: string;
|
|
51
56
|
lastUsedAt: string;
|
|
52
57
|
}
|
|
53
|
-
export interface
|
|
58
|
+
export interface IRevokeSessionRequest {
|
|
54
59
|
}
|
|
55
|
-
export interface
|
|
60
|
+
export interface IRevokeSessionResponse {
|
|
56
61
|
message: string;
|
|
57
62
|
}
|
|
58
|
-
export interface
|
|
63
|
+
export interface IChangePasswordRequest {
|
|
59
64
|
currentPassword: string;
|
|
60
65
|
newPassword: string;
|
|
61
66
|
}
|
|
62
|
-
export interface
|
|
67
|
+
export interface IChangePasswordResponse extends IGetUserResponse {
|
|
63
68
|
}
|
|
64
|
-
export interface
|
|
69
|
+
export interface IForgotPasswordRequest {
|
|
65
70
|
email: string;
|
|
66
71
|
}
|
|
67
|
-
export interface
|
|
72
|
+
export interface IForgotPasswordResponse {
|
|
68
73
|
message: string;
|
|
69
74
|
}
|
|
70
|
-
export interface
|
|
75
|
+
export interface IGetLoginHistoryRequest {
|
|
71
76
|
}
|
|
72
|
-
export interface
|
|
77
|
+
export interface IGetLoginHistoryResponse {
|
|
73
78
|
id: string;
|
|
74
79
|
email: string;
|
|
75
80
|
ipAddress: string;
|
|
@@ -78,54 +83,58 @@ export interface GetLoginHistoryResponse {
|
|
|
78
83
|
failureReason?: string;
|
|
79
84
|
createdAt: Date;
|
|
80
85
|
}
|
|
81
|
-
export interface
|
|
86
|
+
export interface IValidateInvitationRequest {
|
|
82
87
|
}
|
|
83
|
-
export interface
|
|
88
|
+
export interface IValidateInvitationResponse {
|
|
84
89
|
id: string;
|
|
85
90
|
companyId: string;
|
|
86
91
|
companyName: string;
|
|
87
92
|
email: string;
|
|
88
|
-
role:
|
|
93
|
+
role: TAccountType;
|
|
89
94
|
invitedBy: string;
|
|
90
95
|
invitedByName: string;
|
|
91
96
|
expiresAt: string;
|
|
92
97
|
userExists: boolean;
|
|
93
98
|
}
|
|
94
|
-
export interface
|
|
99
|
+
export interface IRegisterWithInvitationRequest {
|
|
95
100
|
token: string;
|
|
96
101
|
password: string;
|
|
97
102
|
firstName: string;
|
|
98
103
|
lastName?: string;
|
|
99
|
-
deviceInfo?:
|
|
104
|
+
deviceInfo?: IDeviceInfo;
|
|
100
105
|
}
|
|
101
|
-
export interface
|
|
106
|
+
export interface IRegisterWithInvitationResponse extends IAuthTokenResponse {
|
|
102
107
|
}
|
|
103
|
-
export interface
|
|
108
|
+
export interface IAcceptInvitationRequest {
|
|
104
109
|
userId: string;
|
|
105
110
|
token: string;
|
|
106
111
|
}
|
|
107
|
-
export interface
|
|
112
|
+
export interface IAcceptInvitationResponse {
|
|
108
113
|
companyId: string;
|
|
109
114
|
companyName: string;
|
|
110
|
-
role:
|
|
115
|
+
role: TAccountType;
|
|
111
116
|
}
|
|
112
|
-
export interface
|
|
117
|
+
export interface IGetPendingInvitationsRequest {
|
|
113
118
|
}
|
|
114
|
-
export interface
|
|
119
|
+
export interface IGetPendingInvitationsResponse {
|
|
115
120
|
id: string;
|
|
116
121
|
token: string;
|
|
117
122
|
companyId: string;
|
|
118
123
|
companyName: string;
|
|
119
|
-
role:
|
|
124
|
+
role: TAccountType;
|
|
120
125
|
invitedBy: string;
|
|
121
126
|
invitedByName: string;
|
|
122
127
|
expiresAt: string;
|
|
123
128
|
createdAt: string;
|
|
124
129
|
}
|
|
125
|
-
export interface
|
|
130
|
+
export interface IRevokeInvitationRequest {
|
|
126
131
|
invitationId: string;
|
|
127
132
|
revokedBy: string;
|
|
128
133
|
}
|
|
129
|
-
export interface
|
|
134
|
+
export interface IRevokeInvitationResponse {
|
|
130
135
|
message: string;
|
|
131
136
|
}
|
|
137
|
+
export interface IRefreshRequest extends IRefreshSessionRequest {
|
|
138
|
+
}
|
|
139
|
+
export interface IRefreshResponse extends IRefreshSessionResponse {
|
|
140
|
+
}
|
|
@@ -1,78 +1,197 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
|
|
1
|
+
export type TJsonPrimitive = string | number | boolean | null;
|
|
2
|
+
export type TJsonValue = TJsonPrimitive | TJsonValue[] | {
|
|
3
|
+
[key: string]: TJsonValue;
|
|
4
|
+
};
|
|
5
|
+
export type TUnknownRecord = Record<string, unknown>;
|
|
6
|
+
export type TurndownObject<TObject extends object = TUnknownRecord> = {
|
|
7
|
+
[TKey in keyof TObject]: TObject[TKey];
|
|
8
|
+
};
|
|
9
|
+
export interface IMetaData {
|
|
4
10
|
createdAt: Date;
|
|
5
11
|
updatedAt: Date;
|
|
6
12
|
deletedAt?: Date;
|
|
7
13
|
}
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export
|
|
14
|
+
export type TRecordValue<T> = T[keyof T];
|
|
15
|
+
export type TRecordKeys<T> = [keyof T];
|
|
16
|
+
export interface IVersion {
|
|
17
|
+
major: number;
|
|
18
|
+
minor: number;
|
|
19
|
+
patch: number;
|
|
20
|
+
}
|
|
21
|
+
export type TVersionInput = string | IVersion;
|
|
22
|
+
export interface ISelectOption<TValue extends string = string> {
|
|
23
|
+
label: string;
|
|
24
|
+
value: TValue;
|
|
25
|
+
}
|
|
26
|
+
export type TMode = "CREATE" | "EDIT" | "DELETE" | "DETAILS" | null;
|
|
11
27
|
export declare const IMAGE_ENTITY: {
|
|
12
|
-
USER_PROFILE:
|
|
13
|
-
PROPERTY:
|
|
14
|
-
PROPERTY_ROOM:
|
|
15
|
-
MAINTENANCE_TICKET:
|
|
16
|
-
WORK_REPORT:
|
|
28
|
+
readonly USER_PROFILE: "user_profile";
|
|
29
|
+
readonly PROPERTY: "property";
|
|
30
|
+
readonly PROPERTY_ROOM: "property_room";
|
|
31
|
+
readonly MAINTENANCE_TICKET: "maintenance_ticket";
|
|
32
|
+
readonly WORK_REPORT: "work_report";
|
|
17
33
|
};
|
|
18
|
-
export type
|
|
34
|
+
export type TImageEntityType = TRecordValue<typeof IMAGE_ENTITY>;
|
|
19
35
|
export declare const US_STATES_CODE: {
|
|
20
|
-
AL:
|
|
21
|
-
AK:
|
|
22
|
-
AZ:
|
|
23
|
-
AR:
|
|
24
|
-
CA:
|
|
25
|
-
CO:
|
|
26
|
-
CT:
|
|
27
|
-
DE:
|
|
28
|
-
FL:
|
|
29
|
-
GA:
|
|
30
|
-
HI:
|
|
31
|
-
ID:
|
|
32
|
-
IL:
|
|
33
|
-
IN:
|
|
34
|
-
IA:
|
|
35
|
-
KS:
|
|
36
|
-
KY:
|
|
37
|
-
LA:
|
|
38
|
-
ME:
|
|
39
|
-
MD:
|
|
40
|
-
MA:
|
|
41
|
-
MI:
|
|
42
|
-
MN:
|
|
43
|
-
MS:
|
|
44
|
-
MO:
|
|
45
|
-
MT:
|
|
46
|
-
NE:
|
|
47
|
-
NV:
|
|
48
|
-
NH:
|
|
49
|
-
NJ:
|
|
50
|
-
NM:
|
|
51
|
-
NY:
|
|
52
|
-
NC:
|
|
53
|
-
ND:
|
|
54
|
-
OH:
|
|
55
|
-
OK:
|
|
56
|
-
OR:
|
|
57
|
-
PA:
|
|
58
|
-
RI:
|
|
59
|
-
SC:
|
|
60
|
-
SD:
|
|
61
|
-
TN:
|
|
62
|
-
TX:
|
|
63
|
-
UT:
|
|
64
|
-
VT:
|
|
65
|
-
VA:
|
|
66
|
-
WA:
|
|
67
|
-
WV:
|
|
68
|
-
WI:
|
|
69
|
-
WY:
|
|
70
|
-
DC:
|
|
71
|
-
PR:
|
|
72
|
-
GU:
|
|
73
|
-
VI:
|
|
74
|
-
AS:
|
|
75
|
-
MP:
|
|
36
|
+
readonly AL: "AL";
|
|
37
|
+
readonly AK: "AK";
|
|
38
|
+
readonly AZ: "AZ";
|
|
39
|
+
readonly AR: "AR";
|
|
40
|
+
readonly CA: "CA";
|
|
41
|
+
readonly CO: "CO";
|
|
42
|
+
readonly CT: "CT";
|
|
43
|
+
readonly DE: "DE";
|
|
44
|
+
readonly FL: "FL";
|
|
45
|
+
readonly GA: "GA";
|
|
46
|
+
readonly HI: "HI";
|
|
47
|
+
readonly ID: "ID";
|
|
48
|
+
readonly IL: "IL";
|
|
49
|
+
readonly IN: "IN";
|
|
50
|
+
readonly IA: "IA";
|
|
51
|
+
readonly KS: "KS";
|
|
52
|
+
readonly KY: "KY";
|
|
53
|
+
readonly LA: "LA";
|
|
54
|
+
readonly ME: "ME";
|
|
55
|
+
readonly MD: "MD";
|
|
56
|
+
readonly MA: "MA";
|
|
57
|
+
readonly MI: "MI";
|
|
58
|
+
readonly MN: "MN";
|
|
59
|
+
readonly MS: "MS";
|
|
60
|
+
readonly MO: "MO";
|
|
61
|
+
readonly MT: "MT";
|
|
62
|
+
readonly NE: "NE";
|
|
63
|
+
readonly NV: "NV";
|
|
64
|
+
readonly NH: "NH";
|
|
65
|
+
readonly NJ: "NJ";
|
|
66
|
+
readonly NM: "NM";
|
|
67
|
+
readonly NY: "NY";
|
|
68
|
+
readonly NC: "NC";
|
|
69
|
+
readonly ND: "ND";
|
|
70
|
+
readonly OH: "OH";
|
|
71
|
+
readonly OK: "OK";
|
|
72
|
+
readonly OR: "OR";
|
|
73
|
+
readonly PA: "PA";
|
|
74
|
+
readonly RI: "RI";
|
|
75
|
+
readonly SC: "SC";
|
|
76
|
+
readonly SD: "SD";
|
|
77
|
+
readonly TN: "TN";
|
|
78
|
+
readonly TX: "TX";
|
|
79
|
+
readonly UT: "UT";
|
|
80
|
+
readonly VT: "VT";
|
|
81
|
+
readonly VA: "VA";
|
|
82
|
+
readonly WA: "WA";
|
|
83
|
+
readonly WV: "WV";
|
|
84
|
+
readonly WI: "WI";
|
|
85
|
+
readonly WY: "WY";
|
|
86
|
+
readonly DC: "DC";
|
|
87
|
+
readonly PR: "PR";
|
|
88
|
+
readonly GU: "GU";
|
|
89
|
+
readonly VI: "VI";
|
|
90
|
+
readonly AS: "AS";
|
|
91
|
+
readonly MP: "MP";
|
|
92
|
+
};
|
|
93
|
+
export type TUnitedStatesStateCode = TRecordValue<typeof US_STATES_CODE>;
|
|
94
|
+
export declare const UNITED_STATES_JURISDICTIONS: {
|
|
95
|
+
readonly Alabama: "Alabama";
|
|
96
|
+
readonly Alaska: "Alaska";
|
|
97
|
+
readonly AmericanSamoa: "American Samoa";
|
|
98
|
+
readonly Arizona: "Arizona";
|
|
99
|
+
readonly Arkansas: "Arkansas";
|
|
100
|
+
readonly BakerIsland: "Baker Island";
|
|
101
|
+
readonly California: "California";
|
|
102
|
+
readonly Colorado: "Colorado";
|
|
103
|
+
readonly Connecticut: "Connecticut";
|
|
104
|
+
readonly Delaware: "Delaware";
|
|
105
|
+
readonly DistrictOfColumbia: "District of Columbia";
|
|
106
|
+
readonly Florida: "Florida";
|
|
107
|
+
readonly Georgia: "Georgia";
|
|
108
|
+
readonly Guam: "Guam";
|
|
109
|
+
readonly Hawaii: "Hawaii";
|
|
110
|
+
readonly HowlandIsland: "Howland Island";
|
|
111
|
+
readonly Idaho: "Idaho";
|
|
112
|
+
readonly Illinois: "Illinois";
|
|
113
|
+
readonly Indiana: "Indiana";
|
|
114
|
+
readonly Iowa: "Iowa";
|
|
115
|
+
readonly JarvisIsland: "Jarvis Island";
|
|
116
|
+
readonly JohnstonAtoll: "Johnston Atoll";
|
|
117
|
+
readonly Kansas: "Kansas";
|
|
118
|
+
readonly Kentucky: "Kentucky";
|
|
119
|
+
readonly KingmanReef: "Kingman Reef";
|
|
120
|
+
readonly Louisiana: "Louisiana";
|
|
121
|
+
readonly Maine: "Maine";
|
|
122
|
+
readonly Maryland: "Maryland";
|
|
123
|
+
readonly Massachusetts: "Massachusetts";
|
|
124
|
+
readonly Michigan: "Michigan";
|
|
125
|
+
readonly MidwayAtoll: "Midway Atoll";
|
|
126
|
+
readonly Minnesota: "Minnesota";
|
|
127
|
+
readonly Mississippi: "Mississippi";
|
|
128
|
+
readonly Missouri: "Missouri";
|
|
129
|
+
readonly Montana: "Montana";
|
|
130
|
+
readonly NavassaIsland: "Navassa Island";
|
|
131
|
+
readonly Nebraska: "Nebraska";
|
|
132
|
+
readonly Nevada: "Nevada";
|
|
133
|
+
readonly NewHampshire: "New Hampshire";
|
|
134
|
+
readonly NewJersey: "New Jersey";
|
|
135
|
+
readonly NewMexico: "New Mexico";
|
|
136
|
+
readonly NewYork: "New York";
|
|
137
|
+
readonly NorthCarolina: "North Carolina";
|
|
138
|
+
readonly NorthDakota: "North Dakota";
|
|
139
|
+
readonly NorthernMarianaIslands: "Northern Mariana Islands";
|
|
140
|
+
readonly Ohio: "Ohio";
|
|
141
|
+
readonly Oklahoma: "Oklahoma";
|
|
142
|
+
readonly Oregon: "Oregon";
|
|
143
|
+
readonly PalmyraAtoll: "Palmyra Atoll";
|
|
144
|
+
readonly Pennsylvania: "Pennsylvania";
|
|
145
|
+
readonly PuertoRico: "Puerto Rico";
|
|
146
|
+
readonly RhodeIsland: "Rhode Island";
|
|
147
|
+
readonly SouthCarolina: "South Carolina";
|
|
148
|
+
readonly SouthDakota: "South Dakota";
|
|
149
|
+
readonly Tennessee: "Tennessee";
|
|
150
|
+
readonly Texas: "Texas";
|
|
151
|
+
readonly UnitedStatesVirginIslands: "United States Virgin Islands";
|
|
152
|
+
readonly Utah: "Utah";
|
|
153
|
+
readonly Vermont: "Vermont";
|
|
154
|
+
readonly Virginia: "Virginia";
|
|
155
|
+
readonly WakeIsland: "Wake Island";
|
|
156
|
+
readonly Washington: "Washington";
|
|
157
|
+
readonly WestVirginia: "West Virginia";
|
|
158
|
+
readonly Wisconsin: "Wisconsin";
|
|
159
|
+
readonly Wyoming: "Wyoming";
|
|
76
160
|
};
|
|
77
|
-
export type
|
|
161
|
+
export type TUnitedStatesJurisdiction = TRecordValue<typeof UNITED_STATES_JURISDICTIONS>;
|
|
162
|
+
export declare const UnitedStatesJurisdictionOptions: ISelectOption<TUnitedStatesJurisdiction>[];
|
|
163
|
+
export declare const STATUS: {
|
|
164
|
+
readonly Pending: "Pending";
|
|
165
|
+
readonly InProgress: "InProgress";
|
|
166
|
+
readonly Completed: "Completed";
|
|
167
|
+
readonly Overdue: "Overdue";
|
|
168
|
+
readonly Active: "Active";
|
|
169
|
+
readonly Inactive: "Inactive";
|
|
170
|
+
};
|
|
171
|
+
export type TStatus = TRecordValue<typeof STATUS>;
|
|
172
|
+
export declare const StatusOptions: ISelectOption<TStatus>[];
|
|
173
|
+
export declare const SEVERITY: {
|
|
174
|
+
readonly Low: "Low";
|
|
175
|
+
readonly Medium: "Medium";
|
|
176
|
+
readonly High: "High";
|
|
177
|
+
};
|
|
178
|
+
export type TSeverity = TRecordValue<typeof SEVERITY>;
|
|
179
|
+
export declare const SeverityOptions: ISelectOption<TSeverity>[];
|
|
180
|
+
export declare const SERVICE_TYPES: {
|
|
181
|
+
readonly Cleaning: "Cleaning";
|
|
182
|
+
readonly Maintenance: "Maintenance";
|
|
183
|
+
readonly Inspection: "Inspections";
|
|
184
|
+
readonly Other: "Other";
|
|
185
|
+
};
|
|
186
|
+
export type TServiceType = TRecordValue<typeof SERVICE_TYPES>;
|
|
187
|
+
export declare const ServiceTypeOptions: ISelectOption<TServiceType>[];
|
|
188
|
+
export declare const MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
189
|
+
export type TMonth = (typeof MONTHS)[number];
|
|
190
|
+
export interface IWeekDay {
|
|
191
|
+
date: Date;
|
|
192
|
+
dayOfMonth: number;
|
|
193
|
+
shortLabel: string;
|
|
194
|
+
letter: string;
|
|
195
|
+
isToday: boolean;
|
|
196
|
+
}
|
|
78
197
|
export * from "./paging.types";
|