@voyantjs/hospitality 0.5.0 → 0.6.2
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/routes-accommodation.d.ts +17 -17
- package/dist/routes-accommodation.d.ts.map +1 -1
- package/dist/routes-accommodation.js +22 -21
- package/dist/routes-inventory.d.ts +18 -18
- package/dist/routes-inventory.d.ts.map +1 -1
- package/dist/routes-inventory.js +19 -18
- package/dist/routes-operations.d.ts +50 -50
- package/dist/routes-stays.d.ts +32 -32
- package/dist/routes-stays.d.ts.map +1 -1
- package/dist/routes-stays.js +25 -24
- package/dist/routes.d.ts +67 -67
- package/dist/schema-bookings.d.ts.map +1 -1
- package/dist/schema-bookings.js +5 -5
- package/dist/schema-inventory.d.ts.map +1 -1
- package/dist/schema-inventory.js +6 -6
- package/dist/schema-operations.d.ts +1 -1
- package/dist/schema-operations.d.ts.map +1 -1
- package/dist/schema-operations.js +5 -5
- package/dist/schema-pricing.d.ts.map +1 -1
- package/dist/schema-pricing.js +4 -4
- package/dist/service.d.ts +37 -37
- package/dist/validation-operations.d.ts +4 -4
- package/dist/validation-shared.d.ts +1 -1
- package/package.json +6 -6
package/dist/service.d.ts
CHANGED
|
@@ -123,14 +123,14 @@ export declare const hospitalityService: {
|
|
|
123
123
|
updatedAt: Date;
|
|
124
124
|
} | null>;
|
|
125
125
|
createRoomType(db: PostgresJsDatabase, data: CreateRoomTypeInput): Promise<{
|
|
126
|
+
metadata: Record<string, unknown> | null;
|
|
126
127
|
id: string;
|
|
127
128
|
name: string;
|
|
128
129
|
createdAt: Date;
|
|
129
130
|
updatedAt: Date;
|
|
130
|
-
metadata: Record<string, unknown> | null;
|
|
131
131
|
description: string | null;
|
|
132
|
-
active: boolean;
|
|
133
132
|
code: string | null;
|
|
133
|
+
active: boolean;
|
|
134
134
|
sortOrder: number;
|
|
135
135
|
propertyId: string;
|
|
136
136
|
inventoryMode: "virtual" | "pooled" | "serialized";
|
|
@@ -206,8 +206,8 @@ export declare const hospitalityService: {
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: Date;
|
|
208
208
|
updatedAt: Date;
|
|
209
|
-
isPrimary: boolean;
|
|
210
209
|
notes: string | null;
|
|
210
|
+
isPrimary: boolean;
|
|
211
211
|
quantity: number;
|
|
212
212
|
roomTypeId: string;
|
|
213
213
|
bedType: string;
|
|
@@ -265,12 +265,12 @@ export declare const hospitalityService: {
|
|
|
265
265
|
updatedAt: Date;
|
|
266
266
|
} | null>;
|
|
267
267
|
createRoomUnit(db: PostgresJsDatabase, data: CreateRoomUnitInput): Promise<{
|
|
268
|
+
metadata: Record<string, unknown> | null;
|
|
268
269
|
id: string;
|
|
269
|
-
status: "active" | "inactive" | "archived" | "out_of_order";
|
|
270
270
|
createdAt: Date;
|
|
271
271
|
updatedAt: Date;
|
|
272
|
+
status: "active" | "inactive" | "archived" | "out_of_order";
|
|
272
273
|
notes: string | null;
|
|
273
|
-
metadata: Record<string, unknown> | null;
|
|
274
274
|
code: string | null;
|
|
275
275
|
propertyId: string;
|
|
276
276
|
roomTypeId: string;
|
|
@@ -339,14 +339,14 @@ export declare const hospitalityService: {
|
|
|
339
339
|
updatedAt: Date;
|
|
340
340
|
} | null>;
|
|
341
341
|
createMealPlan(db: PostgresJsDatabase, data: CreateMealPlanInput): Promise<{
|
|
342
|
+
metadata: Record<string, unknown> | null;
|
|
342
343
|
id: string;
|
|
343
344
|
name: string;
|
|
344
345
|
createdAt: Date;
|
|
345
346
|
updatedAt: Date;
|
|
346
|
-
metadata: Record<string, unknown> | null;
|
|
347
347
|
description: string | null;
|
|
348
|
-
active: boolean;
|
|
349
348
|
code: string;
|
|
349
|
+
active: boolean;
|
|
350
350
|
sortOrder: number;
|
|
351
351
|
propertyId: string;
|
|
352
352
|
includesBreakfast: boolean;
|
|
@@ -421,14 +421,14 @@ export declare const hospitalityService: {
|
|
|
421
421
|
updatedAt: Date;
|
|
422
422
|
} | null>;
|
|
423
423
|
createRatePlan(db: PostgresJsDatabase, data: CreateRatePlanInput): Promise<{
|
|
424
|
+
metadata: Record<string, unknown> | null;
|
|
424
425
|
id: string;
|
|
425
426
|
name: string;
|
|
426
427
|
createdAt: Date;
|
|
427
428
|
updatedAt: Date;
|
|
428
|
-
metadata: Record<string, unknown> | null;
|
|
429
429
|
description: string | null;
|
|
430
|
-
active: boolean;
|
|
431
430
|
code: string;
|
|
431
|
+
active: boolean;
|
|
432
432
|
sortOrder: number;
|
|
433
433
|
propertyId: string;
|
|
434
434
|
mealPlanId: string | null;
|
|
@@ -573,11 +573,11 @@ export declare const hospitalityService: {
|
|
|
573
573
|
updatedAt: Date;
|
|
574
574
|
} | null>;
|
|
575
575
|
createStayRule(db: PostgresJsDatabase, data: CreateStayRuleInput): Promise<{
|
|
576
|
+
metadata: Record<string, unknown> | null;
|
|
576
577
|
id: string;
|
|
577
578
|
createdAt: Date;
|
|
578
579
|
updatedAt: Date;
|
|
579
580
|
notes: string | null;
|
|
580
|
-
metadata: Record<string, unknown> | null;
|
|
581
581
|
active: boolean;
|
|
582
582
|
validFrom: string | null;
|
|
583
583
|
validTo: string | null;
|
|
@@ -659,8 +659,8 @@ export declare const hospitalityService: {
|
|
|
659
659
|
updatedAt: Date;
|
|
660
660
|
} | null>;
|
|
661
661
|
createRoomInventory(db: PostgresJsDatabase, data: CreateRoomInventoryInput): Promise<{
|
|
662
|
-
id: string;
|
|
663
662
|
date: string;
|
|
663
|
+
id: string;
|
|
664
664
|
createdAt: Date;
|
|
665
665
|
updatedAt: Date;
|
|
666
666
|
notes: string | null;
|
|
@@ -727,8 +727,8 @@ export declare const hospitalityService: {
|
|
|
727
727
|
updatedAt: Date;
|
|
728
728
|
} | null>;
|
|
729
729
|
createRatePlanInventoryOverride(db: PostgresJsDatabase, data: CreateRatePlanInventoryOverrideInput): Promise<{
|
|
730
|
-
id: string;
|
|
731
730
|
date: string;
|
|
731
|
+
id: string;
|
|
732
732
|
createdAt: Date;
|
|
733
733
|
updatedAt: Date;
|
|
734
734
|
notes: string | null;
|
|
@@ -877,12 +877,12 @@ export declare const hospitalityService: {
|
|
|
877
877
|
updatedAt: Date;
|
|
878
878
|
} | null>;
|
|
879
879
|
createStayBookingItem(db: PostgresJsDatabase, data: CreateStayBookingItemInput): Promise<{
|
|
880
|
+
metadata: Record<string, unknown> | null;
|
|
880
881
|
id: string;
|
|
881
|
-
status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
|
|
882
882
|
createdAt: Date;
|
|
883
883
|
updatedAt: Date;
|
|
884
|
+
status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
|
|
884
885
|
notes: string | null;
|
|
885
|
-
metadata: Record<string, unknown> | null;
|
|
886
886
|
bookingItemId: string;
|
|
887
887
|
propertyId: string;
|
|
888
888
|
roomTypeId: string;
|
|
@@ -959,13 +959,13 @@ export declare const hospitalityService: {
|
|
|
959
959
|
updatedAt: Date;
|
|
960
960
|
} | null>;
|
|
961
961
|
createStayDailyRate(db: PostgresJsDatabase, data: CreateStayDailyRateInput): Promise<{
|
|
962
|
-
id: string;
|
|
963
962
|
date: string;
|
|
963
|
+
id: string;
|
|
964
|
+
createdAt: Date;
|
|
965
|
+
updatedAt: Date;
|
|
964
966
|
sellCurrency: string;
|
|
965
967
|
sellAmountCents: number | null;
|
|
966
968
|
costAmountCents: number | null;
|
|
967
|
-
createdAt: Date;
|
|
968
|
-
updatedAt: Date;
|
|
969
969
|
costCurrency: string | null;
|
|
970
970
|
stayBookingItemId: string;
|
|
971
971
|
taxAmountCents: number | null;
|
|
@@ -1027,12 +1027,12 @@ export declare const hospitalityService: {
|
|
|
1027
1027
|
updatedAt: Date;
|
|
1028
1028
|
} | null>;
|
|
1029
1029
|
createRoomBlock(db: PostgresJsDatabase, data: CreateRoomBlockInput): Promise<{
|
|
1030
|
+
metadata: Record<string, unknown> | null;
|
|
1030
1031
|
id: string;
|
|
1031
|
-
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1032
1032
|
createdAt: Date;
|
|
1033
1033
|
updatedAt: Date;
|
|
1034
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1034
1035
|
notes: string | null;
|
|
1035
|
-
metadata: Record<string, unknown> | null;
|
|
1036
1036
|
quantity: number;
|
|
1037
1037
|
propertyId: string;
|
|
1038
1038
|
roomTypeId: string | null;
|
|
@@ -1089,10 +1089,10 @@ export declare const hospitalityService: {
|
|
|
1089
1089
|
createdAt: Date;
|
|
1090
1090
|
} | null>;
|
|
1091
1091
|
createRoomUnitStatusEvent(db: PostgresJsDatabase, data: CreateRoomUnitStatusEventInput): Promise<{
|
|
1092
|
+
metadata: Record<string, unknown> | null;
|
|
1092
1093
|
id: string;
|
|
1093
1094
|
createdAt: Date;
|
|
1094
1095
|
notes: string | null;
|
|
1095
|
-
metadata: Record<string, unknown> | null;
|
|
1096
1096
|
roomUnitId: string;
|
|
1097
1097
|
statusCode: string;
|
|
1098
1098
|
housekeepingStatus: string | null;
|
|
@@ -1147,13 +1147,13 @@ export declare const hospitalityService: {
|
|
|
1147
1147
|
updatedAt: Date;
|
|
1148
1148
|
} | null>;
|
|
1149
1149
|
createMaintenanceBlock(db: PostgresJsDatabase, data: CreateMaintenanceBlockInput): Promise<{
|
|
1150
|
+
metadata: Record<string, unknown> | null;
|
|
1150
1151
|
id: string;
|
|
1151
|
-
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1152
1152
|
createdAt: Date;
|
|
1153
1153
|
updatedAt: Date;
|
|
1154
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1154
1155
|
notes: string | null;
|
|
1155
1156
|
reason: string | null;
|
|
1156
|
-
metadata: Record<string, unknown> | null;
|
|
1157
1157
|
propertyId: string;
|
|
1158
1158
|
roomTypeId: string | null;
|
|
1159
1159
|
roomUnitId: string | null;
|
|
@@ -1217,13 +1217,13 @@ export declare const hospitalityService: {
|
|
|
1217
1217
|
updatedAt: Date;
|
|
1218
1218
|
} | null>;
|
|
1219
1219
|
createHousekeepingTask(db: PostgresJsDatabase, data: CreateHousekeepingTaskInput): Promise<{
|
|
1220
|
+
metadata: Record<string, unknown> | null;
|
|
1220
1221
|
id: string;
|
|
1221
|
-
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1222
|
-
completedAt: Date | null;
|
|
1223
1222
|
createdAt: Date;
|
|
1224
1223
|
updatedAt: Date;
|
|
1224
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1225
1225
|
notes: string | null;
|
|
1226
|
-
|
|
1226
|
+
completedAt: Date | null;
|
|
1227
1227
|
propertyId: string;
|
|
1228
1228
|
roomUnitId: string;
|
|
1229
1229
|
stayBookingItemId: string | null;
|
|
@@ -1291,11 +1291,11 @@ export declare const hospitalityService: {
|
|
|
1291
1291
|
updatedAt: Date;
|
|
1292
1292
|
} | null>;
|
|
1293
1293
|
createStayOperation(db: PostgresJsDatabase, data: CreateStayOperationInput): Promise<{
|
|
1294
|
+
metadata: Record<string, unknown> | null;
|
|
1294
1295
|
id: string;
|
|
1295
1296
|
createdAt: Date;
|
|
1296
1297
|
updatedAt: Date;
|
|
1297
1298
|
notes: string | null;
|
|
1298
|
-
metadata: Record<string, unknown> | null;
|
|
1299
1299
|
propertyId: string;
|
|
1300
1300
|
roomUnitId: string | null;
|
|
1301
1301
|
stayBookingItemId: string;
|
|
@@ -1351,10 +1351,10 @@ export declare const hospitalityService: {
|
|
|
1351
1351
|
createdAt: Date;
|
|
1352
1352
|
} | null>;
|
|
1353
1353
|
createStayCheckpoint(db: PostgresJsDatabase, data: CreateStayCheckpointInput): Promise<{
|
|
1354
|
+
metadata: Record<string, unknown> | null;
|
|
1354
1355
|
id: string;
|
|
1355
1356
|
createdAt: Date;
|
|
1356
1357
|
notes: string | null;
|
|
1357
|
-
metadata: Record<string, unknown> | null;
|
|
1358
1358
|
roomUnitId: string | null;
|
|
1359
1359
|
stayOperationId: string;
|
|
1360
1360
|
checkpointType: "no_show" | "arrival" | "room_assigned" | "check_in" | "room_move" | "charge_posted" | "check_out" | "note";
|
|
@@ -1411,15 +1411,15 @@ export declare const hospitalityService: {
|
|
|
1411
1411
|
updatedAt: Date;
|
|
1412
1412
|
} | null>;
|
|
1413
1413
|
createStayServicePost(db: PostgresJsDatabase, data: CreateStayServicePostInput): Promise<{
|
|
1414
|
+
metadata: Record<string, unknown> | null;
|
|
1414
1415
|
id: string;
|
|
1415
|
-
sellAmountCents: number;
|
|
1416
|
-
costAmountCents: number | null;
|
|
1417
1416
|
createdAt: Date;
|
|
1418
1417
|
updatedAt: Date;
|
|
1419
1418
|
notes: string | null;
|
|
1420
|
-
metadata: Record<string, unknown> | null;
|
|
1421
|
-
kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
|
|
1422
1419
|
description: string;
|
|
1420
|
+
sellAmountCents: number;
|
|
1421
|
+
costAmountCents: number | null;
|
|
1422
|
+
kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
|
|
1423
1423
|
serviceDate: string;
|
|
1424
1424
|
quantity: number;
|
|
1425
1425
|
bookingItemId: string | null;
|
|
@@ -1450,7 +1450,7 @@ export declare const hospitalityService: {
|
|
|
1450
1450
|
id: string;
|
|
1451
1451
|
stayOperationId: string;
|
|
1452
1452
|
currencyCode: string;
|
|
1453
|
-
status: "
|
|
1453
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
1454
1454
|
openedAt: Date;
|
|
1455
1455
|
closedAt: Date | null;
|
|
1456
1456
|
notes: string | null;
|
|
@@ -1466,7 +1466,7 @@ export declare const hospitalityService: {
|
|
|
1466
1466
|
id: string;
|
|
1467
1467
|
stayOperationId: string;
|
|
1468
1468
|
currencyCode: string;
|
|
1469
|
-
status: "
|
|
1469
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
1470
1470
|
openedAt: Date;
|
|
1471
1471
|
closedAt: Date | null;
|
|
1472
1472
|
notes: string | null;
|
|
@@ -1475,12 +1475,12 @@ export declare const hospitalityService: {
|
|
|
1475
1475
|
updatedAt: Date;
|
|
1476
1476
|
} | null>;
|
|
1477
1477
|
createStayFolio(db: PostgresJsDatabase, data: CreateStayFolioInput): Promise<{
|
|
1478
|
+
metadata: Record<string, unknown> | null;
|
|
1478
1479
|
id: string;
|
|
1479
|
-
status: "open" | "closed" | "transferred" | "void";
|
|
1480
1480
|
createdAt: Date;
|
|
1481
1481
|
updatedAt: Date;
|
|
1482
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
1482
1483
|
notes: string | null;
|
|
1483
|
-
metadata: Record<string, unknown> | null;
|
|
1484
1484
|
currencyCode: string;
|
|
1485
1485
|
stayOperationId: string;
|
|
1486
1486
|
openedAt: Date;
|
|
@@ -1490,7 +1490,7 @@ export declare const hospitalityService: {
|
|
|
1490
1490
|
id: string;
|
|
1491
1491
|
stayOperationId: string;
|
|
1492
1492
|
currencyCode: string;
|
|
1493
|
-
status: "
|
|
1493
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
1494
1494
|
openedAt: Date;
|
|
1495
1495
|
closedAt: Date | null;
|
|
1496
1496
|
notes: string | null;
|
|
@@ -1539,11 +1539,11 @@ export declare const hospitalityService: {
|
|
|
1539
1539
|
updatedAt: Date;
|
|
1540
1540
|
} | null>;
|
|
1541
1541
|
createStayFolioLine(db: PostgresJsDatabase, data: CreateStayFolioLineInput): Promise<{
|
|
1542
|
+
metadata: Record<string, unknown> | null;
|
|
1542
1543
|
id: string;
|
|
1543
1544
|
createdAt: Date;
|
|
1544
1545
|
updatedAt: Date;
|
|
1545
1546
|
notes: string | null;
|
|
1546
|
-
metadata: Record<string, unknown> | null;
|
|
1547
1547
|
description: string;
|
|
1548
1548
|
quantity: number;
|
|
1549
1549
|
taxAmountCents: number | null;
|
|
@@ -763,10 +763,10 @@ export declare const stayFolioCoreSchema: z.ZodObject<{
|
|
|
763
763
|
stayOperationId: z.ZodString;
|
|
764
764
|
currencyCode: z.ZodString;
|
|
765
765
|
status: z.ZodDefault<z.ZodEnum<{
|
|
766
|
+
void: "void";
|
|
766
767
|
open: "open";
|
|
767
768
|
closed: "closed";
|
|
768
769
|
transferred: "transferred";
|
|
769
|
-
void: "void";
|
|
770
770
|
}>>;
|
|
771
771
|
openedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
772
|
closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -777,10 +777,10 @@ export declare const insertStayFolioSchema: z.ZodObject<{
|
|
|
777
777
|
stayOperationId: z.ZodString;
|
|
778
778
|
currencyCode: z.ZodString;
|
|
779
779
|
status: z.ZodDefault<z.ZodEnum<{
|
|
780
|
+
void: "void";
|
|
780
781
|
open: "open";
|
|
781
782
|
closed: "closed";
|
|
782
783
|
transferred: "transferred";
|
|
783
|
-
void: "void";
|
|
784
784
|
}>>;
|
|
785
785
|
openedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
786
|
closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -791,10 +791,10 @@ export declare const updateStayFolioSchema: z.ZodObject<{
|
|
|
791
791
|
stayOperationId: z.ZodOptional<z.ZodString>;
|
|
792
792
|
currencyCode: z.ZodOptional<z.ZodString>;
|
|
793
793
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
794
|
+
void: "void";
|
|
794
795
|
open: "open";
|
|
795
796
|
closed: "closed";
|
|
796
797
|
transferred: "transferred";
|
|
797
|
-
void: "void";
|
|
798
798
|
}>>>;
|
|
799
799
|
openedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
800
800
|
closedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -806,10 +806,10 @@ export declare const stayFolioListQuerySchema: z.ZodObject<{
|
|
|
806
806
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
807
807
|
stayOperationId: z.ZodOptional<z.ZodString>;
|
|
808
808
|
status: z.ZodOptional<z.ZodEnum<{
|
|
809
|
+
void: "void";
|
|
809
810
|
open: "open";
|
|
810
811
|
closed: "closed";
|
|
811
812
|
transferred: "transferred";
|
|
812
|
-
void: "void";
|
|
813
813
|
}>>;
|
|
814
814
|
}, z.core.$strip>;
|
|
815
815
|
export declare const stayFolioLineCoreSchema: z.ZodObject<{
|
|
@@ -86,9 +86,9 @@ export declare const stayServicePostKindSchema: z.ZodEnum<{
|
|
|
86
86
|
minibar: "minibar";
|
|
87
87
|
}>;
|
|
88
88
|
export declare const stayFolioStatusSchema: z.ZodEnum<{
|
|
89
|
+
void: "void";
|
|
89
90
|
open: "open";
|
|
90
91
|
closed: "closed";
|
|
91
92
|
transferred: "transferred";
|
|
92
|
-
void: "void";
|
|
93
93
|
}>;
|
|
94
94
|
//# sourceMappingURL=validation-shared.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/hospitality",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"hono": "^4.12.10",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@voyantjs/bookings": "0.
|
|
29
|
-
"@voyantjs/core": "0.
|
|
30
|
-
"@voyantjs/db": "0.
|
|
31
|
-
"@voyantjs/facilities": "0.
|
|
32
|
-
"@voyantjs/hono": "0.
|
|
28
|
+
"@voyantjs/bookings": "0.6.2",
|
|
29
|
+
"@voyantjs/core": "0.6.2",
|
|
30
|
+
"@voyantjs/db": "0.6.2",
|
|
31
|
+
"@voyantjs/facilities": "0.6.2",
|
|
32
|
+
"@voyantjs/hono": "0.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^6.0.2",
|