@turndown/library 0.0.46 → 0.0.48
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/base/index.d.ts +1 -1
- package/dist/types/base/index.js +1 -1
- package/dist/types/checklist-template/index.d.ts +21 -0
- package/dist/types/checklist-template/index.js +1 -0
- package/dist/types/cleaning-session/index.d.ts +38 -0
- package/dist/types/cleaning-session/index.js +1 -0
- package/dist/types/damage-report/index.d.ts +40 -0
- package/dist/types/damage-report/index.js +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/inventory/index.d.ts +37 -0
- package/dist/types/inventory/index.js +1 -0
- package/dist/types/room-checklist/index.d.ts +14 -0
- package/dist/types/room-checklist/index.js +1 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export declare const IMAGE_ENTITY: {
|
|
|
7
7
|
PROPERTY: string;
|
|
8
8
|
PROPERTY_ROOM: string;
|
|
9
9
|
MAINTENANCE_TICKET: string;
|
|
10
|
-
|
|
10
|
+
WORK_REPORT: string;
|
|
11
11
|
};
|
|
12
12
|
export type ImageEntityType = ObjectValues<typeof IMAGE_ENTITY>;
|
|
13
13
|
export declare const US_STATES_CODE: {
|
package/dist/types/base/index.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ChecklistTemplate {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
companyId: string;
|
|
6
|
+
createdBy: string;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
items: ChecklistTemplateItem[];
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
12
|
+
export interface ChecklistTemplateItem {
|
|
13
|
+
id: string;
|
|
14
|
+
templateId: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
displayOrder: number;
|
|
18
|
+
requiresPhoto: boolean;
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
estimatedTimeMinutes?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type CleaningStatus = "IN_PROGRESS" | "COMPLETED" | "CANCELLED";
|
|
2
|
+
export type ChecklistExecutionStatus = "PENDING" | "IN_PROGRESS" | "COMPLETED" | "SKIPPED";
|
|
3
|
+
export interface CleaningSession {
|
|
4
|
+
id: string;
|
|
5
|
+
propertyId: string;
|
|
6
|
+
cleanerId: string;
|
|
7
|
+
status: CleaningStatus;
|
|
8
|
+
scheduledDate?: Date;
|
|
9
|
+
startedAt: Date;
|
|
10
|
+
completedAt?: Date;
|
|
11
|
+
totalTimeMinutes?: number;
|
|
12
|
+
notes?: string;
|
|
13
|
+
executions: ChecklistExecution[];
|
|
14
|
+
}
|
|
15
|
+
export interface ChecklistExecution {
|
|
16
|
+
id: string;
|
|
17
|
+
cleaningSessionId: string;
|
|
18
|
+
roomChecklistId: string;
|
|
19
|
+
roomId: string;
|
|
20
|
+
cleanerId: string;
|
|
21
|
+
status: ChecklistExecutionStatus;
|
|
22
|
+
startedAt?: Date;
|
|
23
|
+
completedAt?: Date;
|
|
24
|
+
timeSpentMinutes?: number;
|
|
25
|
+
completions: ItemCompletion[];
|
|
26
|
+
}
|
|
27
|
+
export interface ItemCompletion {
|
|
28
|
+
id: string;
|
|
29
|
+
checklistExecutionId: string;
|
|
30
|
+
roomChecklistItemId: string;
|
|
31
|
+
completedBy: string;
|
|
32
|
+
completedAt: Date;
|
|
33
|
+
photoId?: string;
|
|
34
|
+
photoUrl?: string;
|
|
35
|
+
notes?: string;
|
|
36
|
+
skipped: boolean;
|
|
37
|
+
skipReason?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type DamageSeverity = "MINOR" | "MODERATE" | "SEVERE" | "CRITICAL";
|
|
2
|
+
export type DamageStatus = "OPEN" | "IN_REVIEW" | "RESOLVED" | "ESCALATED";
|
|
3
|
+
export interface DamageReport {
|
|
4
|
+
id: string;
|
|
5
|
+
propertyId: string;
|
|
6
|
+
roomId: string;
|
|
7
|
+
cleaningSessionId?: string;
|
|
8
|
+
reportedBy: string;
|
|
9
|
+
severity: DamageSeverity;
|
|
10
|
+
status: DamageStatus;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
locationDetails?: string;
|
|
14
|
+
estimatedCost?: number;
|
|
15
|
+
actualCost?: number;
|
|
16
|
+
assignedTo?: string;
|
|
17
|
+
resolvedAt?: Date;
|
|
18
|
+
resolvedBy?: string;
|
|
19
|
+
resolutionNotes?: string;
|
|
20
|
+
requiresProfessional: boolean;
|
|
21
|
+
photos: DamagePhoto[];
|
|
22
|
+
comments: DamageComment[];
|
|
23
|
+
}
|
|
24
|
+
export interface DamagePhoto {
|
|
25
|
+
id: string;
|
|
26
|
+
damageReportId: string;
|
|
27
|
+
photoId: string;
|
|
28
|
+
photoUrl: string;
|
|
29
|
+
caption?: string;
|
|
30
|
+
isBeforePhoto: boolean;
|
|
31
|
+
displayOrder: number;
|
|
32
|
+
}
|
|
33
|
+
export interface DamageComment {
|
|
34
|
+
id: string;
|
|
35
|
+
damageReportId: string;
|
|
36
|
+
userId: string;
|
|
37
|
+
userName?: string;
|
|
38
|
+
comment: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
export * from "./api";
|
|
7
7
|
export * from "./auth";
|
|
8
8
|
export * from "./base";
|
|
9
|
+
export * from "./checklist-template";
|
|
10
|
+
export * from "./cleaning-session";
|
|
9
11
|
export * from "./company";
|
|
12
|
+
export * from "./damage-report";
|
|
10
13
|
export * from "./errors";
|
|
14
|
+
export * from "./inventory";
|
|
11
15
|
export * from "./property";
|
|
12
16
|
export * from "./room";
|
|
17
|
+
export * from "./room-checklist";
|
|
13
18
|
export * from "./user";
|
package/dist/types/index.js
CHANGED
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
export * from "./api";
|
|
7
7
|
export * from "./auth";
|
|
8
8
|
export * from "./base";
|
|
9
|
+
export * from "./checklist-template";
|
|
10
|
+
export * from "./cleaning-session";
|
|
9
11
|
export * from "./company";
|
|
12
|
+
export * from "./damage-report";
|
|
10
13
|
export * from "./errors";
|
|
14
|
+
export * from "./inventory";
|
|
11
15
|
export * from "./property";
|
|
12
16
|
export * from "./room";
|
|
17
|
+
export * from "./room-checklist";
|
|
13
18
|
export * from "./user";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type InventoryUnit = "COUNT" | "ROLLS" | "PODS" | "BOXES" | "BOTTLES" | "PACKS" | "BAGS" | "OTHER";
|
|
2
|
+
export interface InventoryItem {
|
|
3
|
+
id: string;
|
|
4
|
+
companyId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
unit: InventoryUnit;
|
|
8
|
+
unitCustom?: string;
|
|
9
|
+
minimumLevel: number;
|
|
10
|
+
reorderLevel: number;
|
|
11
|
+
maximumLevel?: number;
|
|
12
|
+
costPerUnit?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface RoomInventory {
|
|
15
|
+
id: string;
|
|
16
|
+
roomId: string;
|
|
17
|
+
inventoryItemId: string;
|
|
18
|
+
currentLevel: number;
|
|
19
|
+
minimumLevel: number;
|
|
20
|
+
maximumLevel?: number;
|
|
21
|
+
lastCheckedAt?: Date;
|
|
22
|
+
lastCheckedBy?: string;
|
|
23
|
+
autoReorder: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface InventoryCount {
|
|
26
|
+
id: string;
|
|
27
|
+
checklistExecutionId: string;
|
|
28
|
+
roomInventoryId: string;
|
|
29
|
+
previousLevel: number;
|
|
30
|
+
countedLevel: number;
|
|
31
|
+
consumedAmount: number;
|
|
32
|
+
restockedAmount: number;
|
|
33
|
+
countedBy: string;
|
|
34
|
+
countedAt: Date;
|
|
35
|
+
needsRestock: boolean;
|
|
36
|
+
notes?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChecklistTemplateItem } from "../checklist-template";
|
|
2
|
+
export interface RoomChecklist {
|
|
3
|
+
id: string;
|
|
4
|
+
roomId: string;
|
|
5
|
+
templateId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
items: RoomChecklistItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface RoomChecklistItem extends ChecklistTemplateItem {
|
|
11
|
+
roomChecklistId: string;
|
|
12
|
+
templateItemId?: string;
|
|
13
|
+
isCustom: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|