@voyantjs/hospitality 0.2.0 → 0.3.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/routes-accommodation.d.ts +1196 -0
- package/dist/routes-accommodation.d.ts.map +1 -0
- package/dist/routes-accommodation.js +194 -0
- package/dist/routes-inventory.d.ts +981 -0
- package/dist/routes-inventory.d.ts.map +1 -0
- package/dist/routes-inventory.js +159 -0
- package/dist/routes-operations.d.ts +2349 -0
- package/dist/routes-operations.d.ts.map +1 -0
- package/dist/routes-operations.js +6 -0
- package/dist/routes-shared.d.ts +11 -0
- package/dist/routes-shared.d.ts.map +1 -0
- package/dist/routes-shared.js +3 -0
- package/dist/routes-stays.d.ts +1371 -0
- package/dist/routes-stays.d.ts.map +1 -0
- package/dist/routes-stays.js +211 -0
- package/dist/routes.d.ts +520 -527
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +4 -551
- package/dist/schema-bookings.d.ts +1476 -0
- package/dist/schema-bookings.d.ts.map +1 -0
- package/dist/schema-bookings.js +156 -0
- package/dist/schema-inventory.d.ts +1593 -0
- package/dist/schema-inventory.d.ts.map +1 -0
- package/dist/schema-inventory.js +154 -0
- package/dist/schema-operations.d.ts +1076 -0
- package/dist/schema-operations.d.ts.map +1 -0
- package/dist/schema-operations.js +114 -0
- package/dist/schema-pricing.d.ts +1065 -0
- package/dist/schema-pricing.d.ts.map +1 -0
- package/dist/schema-pricing.js +107 -0
- package/dist/schema-relations.d.ts +118 -0
- package/dist/schema-relations.d.ts.map +1 -0
- package/dist/schema-relations.js +199 -0
- package/dist/schema-shared.d.ts +13 -0
- package/dist/schema-shared.d.ts.map +1 -0
- package/dist/schema-shared.js +73 -0
- package/dist/schema.d.ts +6 -5335
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +6 -779
- package/dist/service.d.ts +37 -37
- package/dist/validation-accommodation.d.ts +438 -0
- package/dist/validation-accommodation.d.ts.map +1 -0
- package/dist/validation-accommodation.js +151 -0
- package/dist/validation-operations.d.ts +860 -0
- package/dist/validation-operations.d.ts.map +1 -0
- package/dist/validation-operations.js +293 -0
- package/dist/validation-shared.d.ts +94 -0
- package/dist/validation-shared.d.ts.map +1 -0
- package/dist/validation-shared.js +79 -0
- package/dist/validation.d.ts +3 -1377
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +3 -520
- package/package.json +6 -6
package/dist/service.d.ts
CHANGED
|
@@ -204,10 +204,10 @@ export declare const hospitalityService: {
|
|
|
204
204
|
} | null>;
|
|
205
205
|
createRoomTypeBedConfig(db: PostgresJsDatabase, data: CreateRoomTypeBedConfigInput): Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
notes: string | null;
|
|
208
207
|
createdAt: Date;
|
|
209
208
|
updatedAt: Date;
|
|
210
209
|
isPrimary: boolean;
|
|
210
|
+
notes: string | null;
|
|
211
211
|
quantity: number;
|
|
212
212
|
roomTypeId: string;
|
|
213
213
|
bedType: string;
|
|
@@ -267,9 +267,9 @@ export declare const hospitalityService: {
|
|
|
267
267
|
createRoomUnit(db: PostgresJsDatabase, data: CreateRoomUnitInput): Promise<{
|
|
268
268
|
id: string;
|
|
269
269
|
status: "active" | "inactive" | "archived" | "out_of_order";
|
|
270
|
-
notes: string | null;
|
|
271
270
|
createdAt: Date;
|
|
272
271
|
updatedAt: Date;
|
|
272
|
+
notes: string | null;
|
|
273
273
|
metadata: Record<string, unknown> | null;
|
|
274
274
|
code: string | null;
|
|
275
275
|
propertyId: string;
|
|
@@ -496,10 +496,10 @@ export declare const hospitalityService: {
|
|
|
496
496
|
} | null>;
|
|
497
497
|
createRatePlanRoomType(db: PostgresJsDatabase, data: CreateRatePlanRoomTypeInput): Promise<{
|
|
498
498
|
id: string;
|
|
499
|
-
productId: string | null;
|
|
500
|
-
optionId: string | null;
|
|
501
499
|
createdAt: Date;
|
|
502
500
|
updatedAt: Date;
|
|
501
|
+
productId: string | null;
|
|
502
|
+
optionId: string | null;
|
|
503
503
|
active: boolean;
|
|
504
504
|
sortOrder: number;
|
|
505
505
|
roomTypeId: string;
|
|
@@ -574,9 +574,9 @@ export declare const hospitalityService: {
|
|
|
574
574
|
} | null>;
|
|
575
575
|
createStayRule(db: PostgresJsDatabase, data: CreateStayRuleInput): Promise<{
|
|
576
576
|
id: string;
|
|
577
|
-
notes: string | null;
|
|
578
577
|
createdAt: Date;
|
|
579
578
|
updatedAt: Date;
|
|
579
|
+
notes: string | null;
|
|
580
580
|
metadata: Record<string, unknown> | null;
|
|
581
581
|
active: boolean;
|
|
582
582
|
validFrom: string | null;
|
|
@@ -584,6 +584,7 @@ export declare const hospitalityService: {
|
|
|
584
584
|
propertyId: string;
|
|
585
585
|
roomTypeId: string | null;
|
|
586
586
|
ratePlanId: string | null;
|
|
587
|
+
priority: number;
|
|
587
588
|
minNights: number | null;
|
|
588
589
|
maxNights: number | null;
|
|
589
590
|
minAdvanceDays: number | null;
|
|
@@ -593,7 +594,6 @@ export declare const hospitalityService: {
|
|
|
593
594
|
arrivalWeekdays: string[] | null;
|
|
594
595
|
departureWeekdays: string[] | null;
|
|
595
596
|
releaseDays: number | null;
|
|
596
|
-
priority: number;
|
|
597
597
|
} | null>;
|
|
598
598
|
updateStayRule(db: PostgresJsDatabase, id: string, data: UpdateStayRuleInput): Promise<{
|
|
599
599
|
id: string;
|
|
@@ -661,9 +661,9 @@ export declare const hospitalityService: {
|
|
|
661
661
|
createRoomInventory(db: PostgresJsDatabase, data: CreateRoomInventoryInput): Promise<{
|
|
662
662
|
id: string;
|
|
663
663
|
date: string;
|
|
664
|
-
notes: string | null;
|
|
665
664
|
createdAt: Date;
|
|
666
665
|
updatedAt: Date;
|
|
666
|
+
notes: string | null;
|
|
667
667
|
propertyId: string;
|
|
668
668
|
roomTypeId: string;
|
|
669
669
|
totalUnits: number;
|
|
@@ -729,9 +729,9 @@ export declare const hospitalityService: {
|
|
|
729
729
|
createRatePlanInventoryOverride(db: PostgresJsDatabase, data: CreateRatePlanInventoryOverrideInput): Promise<{
|
|
730
730
|
id: string;
|
|
731
731
|
date: string;
|
|
732
|
-
notes: string | null;
|
|
733
732
|
createdAt: Date;
|
|
734
733
|
updatedAt: Date;
|
|
734
|
+
notes: string | null;
|
|
735
735
|
roomTypeId: string;
|
|
736
736
|
ratePlanId: string;
|
|
737
737
|
closedToArrival: boolean;
|
|
@@ -794,9 +794,9 @@ export declare const hospitalityService: {
|
|
|
794
794
|
} | null>;
|
|
795
795
|
createRoomTypeRate(db: PostgresJsDatabase, data: CreateRoomTypeRateInput): Promise<{
|
|
796
796
|
id: string;
|
|
797
|
-
notes: string | null;
|
|
798
797
|
createdAt: Date;
|
|
799
798
|
updatedAt: Date;
|
|
799
|
+
notes: string | null;
|
|
800
800
|
active: boolean;
|
|
801
801
|
roomTypeId: string;
|
|
802
802
|
currencyCode: string;
|
|
@@ -879,9 +879,9 @@ export declare const hospitalityService: {
|
|
|
879
879
|
createStayBookingItem(db: PostgresJsDatabase, data: CreateStayBookingItemInput): Promise<{
|
|
880
880
|
id: string;
|
|
881
881
|
status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
|
|
882
|
-
notes: string | null;
|
|
883
882
|
createdAt: Date;
|
|
884
883
|
updatedAt: Date;
|
|
884
|
+
notes: string | null;
|
|
885
885
|
metadata: Record<string, unknown> | null;
|
|
886
886
|
bookingItemId: string;
|
|
887
887
|
propertyId: string;
|
|
@@ -961,11 +961,11 @@ export declare const hospitalityService: {
|
|
|
961
961
|
createStayDailyRate(db: PostgresJsDatabase, data: CreateStayDailyRateInput): Promise<{
|
|
962
962
|
id: string;
|
|
963
963
|
date: string;
|
|
964
|
-
createdAt: Date;
|
|
965
|
-
updatedAt: Date;
|
|
966
964
|
sellCurrency: string;
|
|
967
965
|
sellAmountCents: number | null;
|
|
968
966
|
costAmountCents: number | null;
|
|
967
|
+
createdAt: Date;
|
|
968
|
+
updatedAt: Date;
|
|
969
969
|
costCurrency: string | null;
|
|
970
970
|
stayBookingItemId: string;
|
|
971
971
|
taxAmountCents: number | null;
|
|
@@ -997,7 +997,7 @@ export declare const hospitalityService: {
|
|
|
997
997
|
roomUnitId: string | null;
|
|
998
998
|
startsOn: string;
|
|
999
999
|
endsOn: string;
|
|
1000
|
-
status: "
|
|
1000
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1001
1001
|
blockReason: string | null;
|
|
1002
1002
|
quantity: number;
|
|
1003
1003
|
releaseAt: Date | null;
|
|
@@ -1017,7 +1017,7 @@ export declare const hospitalityService: {
|
|
|
1017
1017
|
roomUnitId: string | null;
|
|
1018
1018
|
startsOn: string;
|
|
1019
1019
|
endsOn: string;
|
|
1020
|
-
status: "
|
|
1020
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1021
1021
|
blockReason: string | null;
|
|
1022
1022
|
quantity: number;
|
|
1023
1023
|
releaseAt: Date | null;
|
|
@@ -1028,10 +1028,10 @@ export declare const hospitalityService: {
|
|
|
1028
1028
|
} | null>;
|
|
1029
1029
|
createRoomBlock(db: PostgresJsDatabase, data: CreateRoomBlockInput): Promise<{
|
|
1030
1030
|
id: string;
|
|
1031
|
-
status: "
|
|
1032
|
-
notes: string | null;
|
|
1031
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1033
1032
|
createdAt: Date;
|
|
1034
1033
|
updatedAt: Date;
|
|
1034
|
+
notes: string | null;
|
|
1035
1035
|
metadata: Record<string, unknown> | null;
|
|
1036
1036
|
quantity: number;
|
|
1037
1037
|
propertyId: string;
|
|
@@ -1049,7 +1049,7 @@ export declare const hospitalityService: {
|
|
|
1049
1049
|
roomUnitId: string | null;
|
|
1050
1050
|
startsOn: string;
|
|
1051
1051
|
endsOn: string;
|
|
1052
|
-
status: "
|
|
1052
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1053
1053
|
blockReason: string | null;
|
|
1054
1054
|
quantity: number;
|
|
1055
1055
|
releaseAt: Date | null;
|
|
@@ -1090,8 +1090,8 @@ export declare const hospitalityService: {
|
|
|
1090
1090
|
} | null>;
|
|
1091
1091
|
createRoomUnitStatusEvent(db: PostgresJsDatabase, data: CreateRoomUnitStatusEventInput): Promise<{
|
|
1092
1092
|
id: string;
|
|
1093
|
-
notes: string | null;
|
|
1094
1093
|
createdAt: Date;
|
|
1094
|
+
notes: string | null;
|
|
1095
1095
|
metadata: Record<string, unknown> | null;
|
|
1096
1096
|
roomUnitId: string;
|
|
1097
1097
|
statusCode: string;
|
|
@@ -1121,7 +1121,7 @@ export declare const hospitalityService: {
|
|
|
1121
1121
|
roomUnitId: string | null;
|
|
1122
1122
|
startsOn: string;
|
|
1123
1123
|
endsOn: string;
|
|
1124
|
-
status: "
|
|
1124
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1125
1125
|
reason: string | null;
|
|
1126
1126
|
notes: string | null;
|
|
1127
1127
|
metadata: Record<string, unknown> | null;
|
|
@@ -1139,7 +1139,7 @@ export declare const hospitalityService: {
|
|
|
1139
1139
|
roomUnitId: string | null;
|
|
1140
1140
|
startsOn: string;
|
|
1141
1141
|
endsOn: string;
|
|
1142
|
-
status: "
|
|
1142
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1143
1143
|
reason: string | null;
|
|
1144
1144
|
notes: string | null;
|
|
1145
1145
|
metadata: Record<string, unknown> | null;
|
|
@@ -1148,10 +1148,10 @@ export declare const hospitalityService: {
|
|
|
1148
1148
|
} | null>;
|
|
1149
1149
|
createMaintenanceBlock(db: PostgresJsDatabase, data: CreateMaintenanceBlockInput): Promise<{
|
|
1150
1150
|
id: string;
|
|
1151
|
-
status: "
|
|
1152
|
-
notes: string | null;
|
|
1151
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1153
1152
|
createdAt: Date;
|
|
1154
1153
|
updatedAt: Date;
|
|
1154
|
+
notes: string | null;
|
|
1155
1155
|
reason: string | null;
|
|
1156
1156
|
metadata: Record<string, unknown> | null;
|
|
1157
1157
|
propertyId: string;
|
|
@@ -1167,7 +1167,7 @@ export declare const hospitalityService: {
|
|
|
1167
1167
|
roomUnitId: string | null;
|
|
1168
1168
|
startsOn: string;
|
|
1169
1169
|
endsOn: string;
|
|
1170
|
-
status: "
|
|
1170
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1171
1171
|
reason: string | null;
|
|
1172
1172
|
notes: string | null;
|
|
1173
1173
|
metadata: Record<string, unknown> | null;
|
|
@@ -1184,7 +1184,7 @@ export declare const hospitalityService: {
|
|
|
1184
1184
|
roomUnitId: string;
|
|
1185
1185
|
stayBookingItemId: string | null;
|
|
1186
1186
|
taskType: string;
|
|
1187
|
-
status: "
|
|
1187
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1188
1188
|
priority: number;
|
|
1189
1189
|
dueAt: Date | null;
|
|
1190
1190
|
startedAt: Date | null;
|
|
@@ -1205,7 +1205,7 @@ export declare const hospitalityService: {
|
|
|
1205
1205
|
roomUnitId: string;
|
|
1206
1206
|
stayBookingItemId: string | null;
|
|
1207
1207
|
taskType: string;
|
|
1208
|
-
status: "
|
|
1208
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1209
1209
|
priority: number;
|
|
1210
1210
|
dueAt: Date | null;
|
|
1211
1211
|
startedAt: Date | null;
|
|
@@ -1218,17 +1218,17 @@ export declare const hospitalityService: {
|
|
|
1218
1218
|
} | null>;
|
|
1219
1219
|
createHousekeepingTask(db: PostgresJsDatabase, data: CreateHousekeepingTaskInput): Promise<{
|
|
1220
1220
|
id: string;
|
|
1221
|
-
status: "
|
|
1222
|
-
|
|
1221
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1222
|
+
completedAt: Date | null;
|
|
1223
1223
|
createdAt: Date;
|
|
1224
1224
|
updatedAt: Date;
|
|
1225
|
-
|
|
1225
|
+
notes: string | null;
|
|
1226
1226
|
metadata: Record<string, unknown> | null;
|
|
1227
1227
|
propertyId: string;
|
|
1228
|
-
priority: number;
|
|
1229
1228
|
roomUnitId: string;
|
|
1230
1229
|
stayBookingItemId: string | null;
|
|
1231
1230
|
taskType: string;
|
|
1231
|
+
priority: number;
|
|
1232
1232
|
dueAt: Date | null;
|
|
1233
1233
|
startedAt: Date | null;
|
|
1234
1234
|
assignedTo: string | null;
|
|
@@ -1239,7 +1239,7 @@ export declare const hospitalityService: {
|
|
|
1239
1239
|
roomUnitId: string;
|
|
1240
1240
|
stayBookingItemId: string | null;
|
|
1241
1241
|
taskType: string;
|
|
1242
|
-
status: "
|
|
1242
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
1243
1243
|
priority: number;
|
|
1244
1244
|
dueAt: Date | null;
|
|
1245
1245
|
startedAt: Date | null;
|
|
@@ -1292,9 +1292,9 @@ export declare const hospitalityService: {
|
|
|
1292
1292
|
} | null>;
|
|
1293
1293
|
createStayOperation(db: PostgresJsDatabase, data: CreateStayOperationInput): Promise<{
|
|
1294
1294
|
id: string;
|
|
1295
|
-
notes: string | null;
|
|
1296
1295
|
createdAt: Date;
|
|
1297
1296
|
updatedAt: Date;
|
|
1297
|
+
notes: string | null;
|
|
1298
1298
|
metadata: Record<string, unknown> | null;
|
|
1299
1299
|
propertyId: string;
|
|
1300
1300
|
roomUnitId: string | null;
|
|
@@ -1352,8 +1352,8 @@ export declare const hospitalityService: {
|
|
|
1352
1352
|
} | null>;
|
|
1353
1353
|
createStayCheckpoint(db: PostgresJsDatabase, data: CreateStayCheckpointInput): Promise<{
|
|
1354
1354
|
id: string;
|
|
1355
|
-
notes: string | null;
|
|
1356
1355
|
createdAt: Date;
|
|
1356
|
+
notes: string | null;
|
|
1357
1357
|
metadata: Record<string, unknown> | null;
|
|
1358
1358
|
roomUnitId: string | null;
|
|
1359
1359
|
stayOperationId: string;
|
|
@@ -1412,11 +1412,11 @@ export declare const hospitalityService: {
|
|
|
1412
1412
|
} | null>;
|
|
1413
1413
|
createStayServicePost(db: PostgresJsDatabase, data: CreateStayServicePostInput): Promise<{
|
|
1414
1414
|
id: string;
|
|
1415
|
-
notes: string | null;
|
|
1416
|
-
createdAt: Date;
|
|
1417
|
-
updatedAt: Date;
|
|
1418
1415
|
sellAmountCents: number;
|
|
1419
1416
|
costAmountCents: number | null;
|
|
1417
|
+
createdAt: Date;
|
|
1418
|
+
updatedAt: Date;
|
|
1419
|
+
notes: string | null;
|
|
1420
1420
|
metadata: Record<string, unknown> | null;
|
|
1421
1421
|
description: string;
|
|
1422
1422
|
serviceDate: string;
|
|
@@ -1477,9 +1477,9 @@ export declare const hospitalityService: {
|
|
|
1477
1477
|
createStayFolio(db: PostgresJsDatabase, data: CreateStayFolioInput): Promise<{
|
|
1478
1478
|
id: string;
|
|
1479
1479
|
status: "open" | "closed" | "transferred" | "void";
|
|
1480
|
-
notes: string | null;
|
|
1481
1480
|
createdAt: Date;
|
|
1482
1481
|
updatedAt: Date;
|
|
1482
|
+
notes: string | null;
|
|
1483
1483
|
metadata: Record<string, unknown> | null;
|
|
1484
1484
|
currencyCode: string;
|
|
1485
1485
|
stayOperationId: string;
|
|
@@ -1540,9 +1540,9 @@ export declare const hospitalityService: {
|
|
|
1540
1540
|
} | null>;
|
|
1541
1541
|
createStayFolioLine(db: PostgresJsDatabase, data: CreateStayFolioLineInput): Promise<{
|
|
1542
1542
|
id: string;
|
|
1543
|
-
notes: string | null;
|
|
1544
1543
|
createdAt: Date;
|
|
1545
1544
|
updatedAt: Date;
|
|
1545
|
+
notes: string | null;
|
|
1546
1546
|
metadata: Record<string, unknown> | null;
|
|
1547
1547
|
description: string;
|
|
1548
1548
|
quantity: number;
|