@voyantjs/hospitality-react 0.28.3 → 0.29.0
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/hooks/use-housekeeping-task-mutation.d.ts +3 -3
- package/dist/hooks/use-housekeeping-tasks.d.ts +1 -1
- package/dist/hooks/use-maintenance-block-mutation.d.ts +3 -3
- package/dist/hooks/use-maintenance-blocks.d.ts +1 -1
- package/dist/hooks/use-room-block-mutation.d.ts +3 -3
- package/dist/hooks/use-room-blocks.d.ts +1 -1
- package/dist/query-options.d.ts +12 -12
- package/dist/schemas.d.ts +9 -9
- package/package.json +5 -5
|
@@ -9,7 +9,7 @@ export declare function useHousekeepingTaskMutation(): {
|
|
|
9
9
|
roomUnitId: string;
|
|
10
10
|
stayBookingItemId: string | null;
|
|
11
11
|
taskType: string;
|
|
12
|
-
status: "
|
|
12
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
13
13
|
priority: number;
|
|
14
14
|
dueAt: string | null;
|
|
15
15
|
startedAt: string | null;
|
|
@@ -21,7 +21,7 @@ export declare function useHousekeepingTaskMutation(): {
|
|
|
21
21
|
roomUnitId: string;
|
|
22
22
|
taskType: string;
|
|
23
23
|
stayBookingItemId?: string | null | undefined;
|
|
24
|
-
status?: "
|
|
24
|
+
status?: "completed" | "cancelled" | "in_progress" | "open" | undefined;
|
|
25
25
|
priority?: number | undefined;
|
|
26
26
|
dueAt?: string | null | undefined;
|
|
27
27
|
startedAt?: string | null | undefined;
|
|
@@ -36,7 +36,7 @@ export declare function useHousekeepingTaskMutation(): {
|
|
|
36
36
|
roomUnitId: string;
|
|
37
37
|
stayBookingItemId: string | null;
|
|
38
38
|
taskType: string;
|
|
39
|
-
status: "
|
|
39
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
40
40
|
priority: number;
|
|
41
41
|
dueAt: string | null;
|
|
42
42
|
startedAt: string | null;
|
|
@@ -15,7 +15,7 @@ export declare function useHousekeepingTasks(options: UseHousekeepingTasksOption
|
|
|
15
15
|
roomUnitId: string;
|
|
16
16
|
stayBookingItemId: string | null;
|
|
17
17
|
taskType: string;
|
|
18
|
-
status: "
|
|
18
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
19
19
|
priority: number;
|
|
20
20
|
dueAt: string | null;
|
|
21
21
|
startedAt: string | null;
|
|
@@ -10,7 +10,7 @@ export declare function useMaintenanceBlockMutation(): {
|
|
|
10
10
|
id: string;
|
|
11
11
|
roomTypeId: string | null;
|
|
12
12
|
roomUnitId: string | null;
|
|
13
|
-
status: "
|
|
13
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
14
14
|
reason: string | null;
|
|
15
15
|
notes: string | null;
|
|
16
16
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -20,7 +20,7 @@ export declare function useMaintenanceBlockMutation(): {
|
|
|
20
20
|
endsOn: string;
|
|
21
21
|
roomTypeId?: string | null | undefined;
|
|
22
22
|
roomUnitId?: string | null | undefined;
|
|
23
|
-
status?: "
|
|
23
|
+
status?: "cancelled" | "in_progress" | "open" | "resolved" | undefined;
|
|
24
24
|
reason?: string | null | undefined;
|
|
25
25
|
notes?: string | null | undefined;
|
|
26
26
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -32,7 +32,7 @@ export declare function useMaintenanceBlockMutation(): {
|
|
|
32
32
|
id: string;
|
|
33
33
|
roomTypeId: string | null;
|
|
34
34
|
roomUnitId: string | null;
|
|
35
|
-
status: "
|
|
35
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
36
36
|
reason: string | null;
|
|
37
37
|
notes: string | null;
|
|
38
38
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -12,7 +12,7 @@ export declare function useMaintenanceBlocks(options: UseMaintenanceBlocksOption
|
|
|
12
12
|
id: string;
|
|
13
13
|
roomTypeId: string | null;
|
|
14
14
|
roomUnitId: string | null;
|
|
15
|
-
status: "
|
|
15
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
16
16
|
reason: string | null;
|
|
17
17
|
notes: string | null;
|
|
18
18
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -10,7 +10,7 @@ export declare function useRoomBlockMutation(): {
|
|
|
10
10
|
roomUnitId: string | null;
|
|
11
11
|
startsOn: string;
|
|
12
12
|
endsOn: string;
|
|
13
|
-
status: "
|
|
13
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
14
14
|
blockReason: string | null;
|
|
15
15
|
quantity: number;
|
|
16
16
|
releaseAt: string | null;
|
|
@@ -21,7 +21,7 @@ export declare function useRoomBlockMutation(): {
|
|
|
21
21
|
endsOn: string;
|
|
22
22
|
roomTypeId?: string | null | undefined;
|
|
23
23
|
roomUnitId?: string | null | undefined;
|
|
24
|
-
status?: "
|
|
24
|
+
status?: "cancelled" | "draft" | "confirmed" | "held" | "released" | undefined;
|
|
25
25
|
blockReason?: string | null | undefined;
|
|
26
26
|
quantity?: number | undefined;
|
|
27
27
|
releaseAt?: string | null | undefined;
|
|
@@ -35,7 +35,7 @@ export declare function useRoomBlockMutation(): {
|
|
|
35
35
|
roomUnitId: string | null;
|
|
36
36
|
startsOn: string;
|
|
37
37
|
endsOn: string;
|
|
38
|
-
status: "
|
|
38
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
39
39
|
blockReason: string | null;
|
|
40
40
|
quantity: number;
|
|
41
41
|
releaseAt: string | null;
|
|
@@ -12,7 +12,7 @@ export declare function useRoomBlocks(options: UseRoomBlocksOptions): import("@t
|
|
|
12
12
|
roomUnitId: string | null;
|
|
13
13
|
startsOn: string;
|
|
14
14
|
endsOn: string;
|
|
15
|
-
status: "
|
|
15
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
16
16
|
blockReason: string | null;
|
|
17
17
|
quantity: number;
|
|
18
18
|
releaseAt: string | null;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -538,7 +538,7 @@ export declare function getMaintenanceBlocksQueryOptions(client: FetchWithValida
|
|
|
538
538
|
id: string;
|
|
539
539
|
roomTypeId: string | null;
|
|
540
540
|
roomUnitId: string | null;
|
|
541
|
-
status: "
|
|
541
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
542
542
|
reason: string | null;
|
|
543
543
|
notes: string | null;
|
|
544
544
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -554,7 +554,7 @@ export declare function getMaintenanceBlocksQueryOptions(client: FetchWithValida
|
|
|
554
554
|
id: string;
|
|
555
555
|
roomTypeId: string | null;
|
|
556
556
|
roomUnitId: string | null;
|
|
557
|
-
status: "
|
|
557
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
558
558
|
reason: string | null;
|
|
559
559
|
notes: string | null;
|
|
560
560
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -571,7 +571,7 @@ export declare function getMaintenanceBlocksQueryOptions(client: FetchWithValida
|
|
|
571
571
|
id: string;
|
|
572
572
|
roomTypeId: string | null;
|
|
573
573
|
roomUnitId: string | null;
|
|
574
|
-
status: "
|
|
574
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
575
575
|
reason: string | null;
|
|
576
576
|
notes: string | null;
|
|
577
577
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -590,7 +590,7 @@ export declare function getMaintenanceBlocksQueryOptions(client: FetchWithValida
|
|
|
590
590
|
id: string;
|
|
591
591
|
roomTypeId: string | null;
|
|
592
592
|
roomUnitId: string | null;
|
|
593
|
-
status: "
|
|
593
|
+
status: "cancelled" | "in_progress" | "open" | "resolved";
|
|
594
594
|
reason: string | null;
|
|
595
595
|
notes: string | null;
|
|
596
596
|
metadata?: Record<string, unknown> | null | undefined;
|
|
@@ -610,7 +610,7 @@ export declare function getRoomBlocksQueryOptions(client: FetchWithValidationOpt
|
|
|
610
610
|
roomUnitId: string | null;
|
|
611
611
|
startsOn: string;
|
|
612
612
|
endsOn: string;
|
|
613
|
-
status: "
|
|
613
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
614
614
|
blockReason: string | null;
|
|
615
615
|
quantity: number;
|
|
616
616
|
releaseAt: string | null;
|
|
@@ -627,7 +627,7 @@ export declare function getRoomBlocksQueryOptions(client: FetchWithValidationOpt
|
|
|
627
627
|
roomUnitId: string | null;
|
|
628
628
|
startsOn: string;
|
|
629
629
|
endsOn: string;
|
|
630
|
-
status: "
|
|
630
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
631
631
|
blockReason: string | null;
|
|
632
632
|
quantity: number;
|
|
633
633
|
releaseAt: string | null;
|
|
@@ -645,7 +645,7 @@ export declare function getRoomBlocksQueryOptions(client: FetchWithValidationOpt
|
|
|
645
645
|
roomUnitId: string | null;
|
|
646
646
|
startsOn: string;
|
|
647
647
|
endsOn: string;
|
|
648
|
-
status: "
|
|
648
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
649
649
|
blockReason: string | null;
|
|
650
650
|
quantity: number;
|
|
651
651
|
releaseAt: string | null;
|
|
@@ -665,7 +665,7 @@ export declare function getRoomBlocksQueryOptions(client: FetchWithValidationOpt
|
|
|
665
665
|
roomUnitId: string | null;
|
|
666
666
|
startsOn: string;
|
|
667
667
|
endsOn: string;
|
|
668
|
-
status: "
|
|
668
|
+
status: "cancelled" | "draft" | "confirmed" | "held" | "released";
|
|
669
669
|
blockReason: string | null;
|
|
670
670
|
quantity: number;
|
|
671
671
|
releaseAt: string | null;
|
|
@@ -1595,7 +1595,7 @@ export declare function getHousekeepingTasksQueryOptions(client: FetchWithValida
|
|
|
1595
1595
|
roomUnitId: string;
|
|
1596
1596
|
stayBookingItemId: string | null;
|
|
1597
1597
|
taskType: string;
|
|
1598
|
-
status: "
|
|
1598
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
1599
1599
|
priority: number;
|
|
1600
1600
|
dueAt: string | null;
|
|
1601
1601
|
startedAt: string | null;
|
|
@@ -1613,7 +1613,7 @@ export declare function getHousekeepingTasksQueryOptions(client: FetchWithValida
|
|
|
1613
1613
|
roomUnitId: string;
|
|
1614
1614
|
stayBookingItemId: string | null;
|
|
1615
1615
|
taskType: string;
|
|
1616
|
-
status: "
|
|
1616
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
1617
1617
|
priority: number;
|
|
1618
1618
|
dueAt: string | null;
|
|
1619
1619
|
startedAt: string | null;
|
|
@@ -1637,7 +1637,7 @@ export declare function getHousekeepingTasksQueryOptions(client: FetchWithValida
|
|
|
1637
1637
|
roomUnitId: string;
|
|
1638
1638
|
stayBookingItemId: string | null;
|
|
1639
1639
|
taskType: string;
|
|
1640
|
-
status: "
|
|
1640
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
1641
1641
|
priority: number;
|
|
1642
1642
|
dueAt: string | null;
|
|
1643
1643
|
startedAt: string | null;
|
|
@@ -1668,7 +1668,7 @@ export declare function getHousekeepingTasksQueryOptions(client: FetchWithValida
|
|
|
1668
1668
|
roomUnitId: string;
|
|
1669
1669
|
stayBookingItemId: string | null;
|
|
1670
1670
|
taskType: string;
|
|
1671
|
-
status: "
|
|
1671
|
+
status: "completed" | "cancelled" | "in_progress" | "open";
|
|
1672
1672
|
priority: number;
|
|
1673
1673
|
dueAt: string | null;
|
|
1674
1674
|
startedAt: string | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -86,8 +86,8 @@ export declare const maintenanceBlockRecordSchema: z.ZodObject<{
|
|
|
86
86
|
roomTypeId: z.ZodNullable<z.ZodString>;
|
|
87
87
|
roomUnitId: z.ZodNullable<z.ZodString>;
|
|
88
88
|
status: z.ZodEnum<{
|
|
89
|
-
in_progress: "in_progress";
|
|
90
89
|
cancelled: "cancelled";
|
|
90
|
+
in_progress: "in_progress";
|
|
91
91
|
open: "open";
|
|
92
92
|
resolved: "resolved";
|
|
93
93
|
}>;
|
|
@@ -103,9 +103,9 @@ export declare const roomBlockRecordSchema: z.ZodObject<{
|
|
|
103
103
|
startsOn: z.ZodString;
|
|
104
104
|
endsOn: z.ZodString;
|
|
105
105
|
status: z.ZodEnum<{
|
|
106
|
+
cancelled: "cancelled";
|
|
106
107
|
draft: "draft";
|
|
107
108
|
confirmed: "confirmed";
|
|
108
|
-
cancelled: "cancelled";
|
|
109
109
|
held: "held";
|
|
110
110
|
released: "released";
|
|
111
111
|
}>;
|
|
@@ -291,9 +291,9 @@ export declare const housekeepingTaskRecordSchema: z.ZodObject<{
|
|
|
291
291
|
stayBookingItemId: z.ZodNullable<z.ZodString>;
|
|
292
292
|
taskType: z.ZodString;
|
|
293
293
|
status: z.ZodEnum<{
|
|
294
|
-
in_progress: "in_progress";
|
|
295
294
|
completed: "completed";
|
|
296
295
|
cancelled: "cancelled";
|
|
296
|
+
in_progress: "in_progress";
|
|
297
297
|
open: "open";
|
|
298
298
|
}>;
|
|
299
299
|
priority: z.ZodNumber;
|
|
@@ -461,8 +461,8 @@ export declare const maintenanceBlockListResponse: z.ZodObject<{
|
|
|
461
461
|
roomTypeId: z.ZodNullable<z.ZodString>;
|
|
462
462
|
roomUnitId: z.ZodNullable<z.ZodString>;
|
|
463
463
|
status: z.ZodEnum<{
|
|
464
|
-
in_progress: "in_progress";
|
|
465
464
|
cancelled: "cancelled";
|
|
465
|
+
in_progress: "in_progress";
|
|
466
466
|
open: "open";
|
|
467
467
|
resolved: "resolved";
|
|
468
468
|
}>;
|
|
@@ -483,8 +483,8 @@ export declare const maintenanceBlockSingleResponse: z.ZodObject<{
|
|
|
483
483
|
roomTypeId: z.ZodNullable<z.ZodString>;
|
|
484
484
|
roomUnitId: z.ZodNullable<z.ZodString>;
|
|
485
485
|
status: z.ZodEnum<{
|
|
486
|
-
in_progress: "in_progress";
|
|
487
486
|
cancelled: "cancelled";
|
|
487
|
+
in_progress: "in_progress";
|
|
488
488
|
open: "open";
|
|
489
489
|
resolved: "resolved";
|
|
490
490
|
}>;
|
|
@@ -501,9 +501,9 @@ export declare const roomBlockListResponse: z.ZodObject<{
|
|
|
501
501
|
startsOn: z.ZodString;
|
|
502
502
|
endsOn: z.ZodString;
|
|
503
503
|
status: z.ZodEnum<{
|
|
504
|
+
cancelled: "cancelled";
|
|
504
505
|
draft: "draft";
|
|
505
506
|
confirmed: "confirmed";
|
|
506
|
-
cancelled: "cancelled";
|
|
507
507
|
held: "held";
|
|
508
508
|
released: "released";
|
|
509
509
|
}>;
|
|
@@ -525,9 +525,9 @@ export declare const roomBlockSingleResponse: z.ZodObject<{
|
|
|
525
525
|
startsOn: z.ZodString;
|
|
526
526
|
endsOn: z.ZodString;
|
|
527
527
|
status: z.ZodEnum<{
|
|
528
|
+
cancelled: "cancelled";
|
|
528
529
|
draft: "draft";
|
|
529
530
|
confirmed: "confirmed";
|
|
530
|
-
cancelled: "cancelled";
|
|
531
531
|
held: "held";
|
|
532
532
|
released: "released";
|
|
533
533
|
}>;
|
|
@@ -928,9 +928,9 @@ export declare const housekeepingTaskListResponse: z.ZodObject<{
|
|
|
928
928
|
stayBookingItemId: z.ZodNullable<z.ZodString>;
|
|
929
929
|
taskType: z.ZodString;
|
|
930
930
|
status: z.ZodEnum<{
|
|
931
|
-
in_progress: "in_progress";
|
|
932
931
|
completed: "completed";
|
|
933
932
|
cancelled: "cancelled";
|
|
933
|
+
in_progress: "in_progress";
|
|
934
934
|
open: "open";
|
|
935
935
|
}>;
|
|
936
936
|
priority: z.ZodNumber;
|
|
@@ -952,9 +952,9 @@ export declare const housekeepingTaskSingleResponse: z.ZodObject<{
|
|
|
952
952
|
stayBookingItemId: z.ZodNullable<z.ZodString>;
|
|
953
953
|
taskType: z.ZodString;
|
|
954
954
|
status: z.ZodEnum<{
|
|
955
|
-
in_progress: "in_progress";
|
|
956
955
|
completed: "completed";
|
|
957
956
|
cancelled: "cancelled";
|
|
957
|
+
in_progress: "in_progress";
|
|
958
958
|
open: "open";
|
|
959
959
|
}>;
|
|
960
960
|
priority: z.ZodNumber;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/hospitality-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"react-dom": "^19.0.0",
|
|
43
43
|
"zod": "^4.0.0",
|
|
44
|
-
"@voyantjs/hospitality": "0.
|
|
44
|
+
"@voyantjs/hospitality": "0.29.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "^6.0.2",
|
|
53
53
|
"vitest": "^4.1.2",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/hospitality": "0.
|
|
56
|
-
"@voyantjs/react": "0.
|
|
55
|
+
"@voyantjs/hospitality": "0.29.0",
|
|
56
|
+
"@voyantjs/react": "0.29.0",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.29.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|