@voyantjs/hospitality 0.6.0 → 0.6.3
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/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.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/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-bookings.d.ts","sourceRoot":"","sources":["../src/schema-bookings.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyC5B,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB1B,CAAA;AAED,eAAO,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC7B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AAClE,MAAM,MAAM,kBAAkB,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AACrE,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AACjE,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACzD,MAAM,MAAM,mBAAmB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAA;AAC1E,MAAM,MAAM,sBAAsB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAA;AAC7E,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACpE,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACvE,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACpE,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA"}
|
package/dist/schema-bookings.js
CHANGED
|
@@ -36,7 +36,7 @@ export const stayBookingItems = pgTable("stay_booking_items", {
|
|
|
36
36
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
37
37
|
}, (table) => [
|
|
38
38
|
index("idx_stay_booking_items_booking_item").on(table.bookingItemId),
|
|
39
|
-
index("
|
|
39
|
+
index("idx_stay_booking_items_property_check_in").on(table.propertyId, table.checkInDate),
|
|
40
40
|
index("idx_stay_booking_items_room_type").on(table.roomTypeId),
|
|
41
41
|
index("idx_stay_booking_items_room_unit").on(table.roomUnitId),
|
|
42
42
|
index("idx_stay_booking_items_rate_plan").on(table.ratePlanId),
|
|
@@ -80,7 +80,7 @@ export const roomBlocks = pgTable("room_blocks", {
|
|
|
80
80
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
81
81
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
82
82
|
}, (table) => [
|
|
83
|
-
index("
|
|
83
|
+
index("idx_room_blocks_property_starts_on").on(table.propertyId, table.startsOn),
|
|
84
84
|
index("idx_room_blocks_room_type").on(table.roomTypeId),
|
|
85
85
|
index("idx_room_blocks_room_unit").on(table.roomUnitId),
|
|
86
86
|
index("idx_room_blocks_status").on(table.status),
|
|
@@ -99,7 +99,7 @@ export const roomUnitStatusEvents = pgTable("room_unit_status_events", {
|
|
|
99
99
|
metadata: jsonb("metadata").$type(),
|
|
100
100
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
101
|
}, (table) => [
|
|
102
|
-
index("
|
|
102
|
+
index("idx_room_unit_status_events_room_unit_effective_from").on(table.roomUnitId, table.effectiveFrom),
|
|
103
103
|
index("idx_room_unit_status_events_status").on(table.statusCode),
|
|
104
104
|
index("idx_room_unit_status_events_effective_from").on(table.effectiveFrom),
|
|
105
105
|
]);
|
|
@@ -119,7 +119,7 @@ export const maintenanceBlocks = pgTable("maintenance_blocks", {
|
|
|
119
119
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
120
120
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
121
121
|
}, (table) => [
|
|
122
|
-
index("
|
|
122
|
+
index("idx_maintenance_blocks_property_starts_on").on(table.propertyId, table.startsOn),
|
|
123
123
|
index("idx_maintenance_blocks_room_type").on(table.roomTypeId),
|
|
124
124
|
index("idx_maintenance_blocks_room_unit").on(table.roomUnitId),
|
|
125
125
|
index("idx_maintenance_blocks_status").on(table.status),
|
|
@@ -148,7 +148,7 @@ export const housekeepingTasks = pgTable("housekeeping_tasks", {
|
|
|
148
148
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
149
149
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
150
150
|
}, (table) => [
|
|
151
|
-
index("
|
|
151
|
+
index("idx_housekeeping_tasks_property_priority_due_at").on(table.propertyId, table.priority, table.dueAt),
|
|
152
152
|
index("idx_housekeeping_tasks_room_unit").on(table.roomUnitId),
|
|
153
153
|
index("idx_housekeeping_tasks_stay_booking_item").on(table.stayBookingItemId),
|
|
154
154
|
index("idx_housekeeping_tasks_status").on(table.status),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-inventory.d.ts","sourceRoot":"","sources":["../src/schema-inventory.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCrB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACzE,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACvD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACvD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACvD,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA;AACpE,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA"}
|
package/dist/schema-inventory.js
CHANGED
|
@@ -30,7 +30,7 @@ export const roomTypes = pgTable("room_types", {
|
|
|
30
30
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
31
31
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
32
32
|
}, (table) => [
|
|
33
|
-
index("
|
|
33
|
+
index("idx_room_types_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
34
34
|
index("idx_room_types_active").on(table.active),
|
|
35
35
|
index("idx_room_types_inventory_mode").on(table.inventoryMode),
|
|
36
36
|
uniqueIndex("uidx_room_types_property_code").on(table.propertyId, table.code),
|
|
@@ -47,7 +47,7 @@ export const roomTypeBedConfigs = pgTable("room_type_bed_configs", {
|
|
|
47
47
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
48
48
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
49
49
|
}, (table) => [
|
|
50
|
-
index("
|
|
50
|
+
index("idx_room_type_bed_configs_room_type_primary_created").on(table.roomTypeId, table.isPrimary, table.createdAt),
|
|
51
51
|
index("idx_room_type_bed_configs_primary").on(table.isPrimary),
|
|
52
52
|
]);
|
|
53
53
|
export const roomUnits = pgTable("room_units", {
|
|
@@ -71,7 +71,7 @@ export const roomUnits = pgTable("room_units", {
|
|
|
71
71
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
72
72
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
73
73
|
}, (table) => [
|
|
74
|
-
index("
|
|
74
|
+
index("idx_room_units_property_room_number_code").on(table.propertyId, table.roomNumber, table.code),
|
|
75
75
|
index("idx_room_units_room_type").on(table.roomTypeId),
|
|
76
76
|
index("idx_room_units_status").on(table.status),
|
|
77
77
|
uniqueIndex("uidx_room_units_property_code").on(table.propertyId, table.code),
|
|
@@ -94,7 +94,7 @@ export const mealPlans = pgTable("meal_plans", {
|
|
|
94
94
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
95
95
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
96
96
|
}, (table) => [
|
|
97
|
-
index("
|
|
97
|
+
index("idx_meal_plans_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
98
98
|
index("idx_meal_plans_active").on(table.active),
|
|
99
99
|
uniqueIndex("uidx_meal_plans_property_code").on(table.propertyId, table.code),
|
|
100
100
|
]);
|
|
@@ -121,7 +121,7 @@ export const ratePlans = pgTable("rate_plans", {
|
|
|
121
121
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
122
122
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
123
123
|
}, (table) => [
|
|
124
|
-
index("
|
|
124
|
+
index("idx_rate_plans_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
125
125
|
index("idx_rate_plans_meal_plan").on(table.mealPlanId),
|
|
126
126
|
index("idx_rate_plans_catalog").on(table.priceCatalogId),
|
|
127
127
|
index("idx_rate_plans_policy").on(table.cancellationPolicyId),
|
|
@@ -145,7 +145,7 @@ export const ratePlanRoomTypes = pgTable("rate_plan_room_types", {
|
|
|
145
145
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
146
146
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
147
147
|
}, (table) => [
|
|
148
|
-
index("
|
|
148
|
+
index("idx_rate_plan_room_types_rate_plan_sort_created").on(table.ratePlanId, table.sortOrder, table.createdAt),
|
|
149
149
|
index("idx_rate_plan_room_types_room_type").on(table.roomTypeId),
|
|
150
150
|
index("idx_rate_plan_room_types_product").on(table.productId),
|
|
151
151
|
index("idx_rate_plan_room_types_option").on(table.optionId),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-operations.d.ts","sourceRoot":"","sources":["../src/schema-operations.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B1B,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
27
27
|
}, (table) => [
|
|
28
28
|
uniqueIndex("uidx_stay_operations_stay_booking_item").on(table.stayBookingItemId),
|
|
29
|
-
index("
|
|
29
|
+
index("idx_stay_operations_property_created").on(table.propertyId, table.createdAt),
|
|
30
30
|
index("idx_stay_operations_room_unit").on(table.roomUnitId),
|
|
31
31
|
index("idx_stay_operations_status").on(table.operationStatus),
|
|
32
32
|
]);
|
|
@@ -42,7 +42,7 @@ export const stayCheckpoints = pgTable("stay_checkpoints", {
|
|
|
42
42
|
metadata: jsonb("metadata").$type(),
|
|
43
43
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
44
44
|
}, (table) => [
|
|
45
|
-
index("
|
|
45
|
+
index("idx_stay_checkpoints_operation_occurred_at").on(table.stayOperationId, table.occurredAt),
|
|
46
46
|
index("idx_stay_checkpoints_type").on(table.checkpointType),
|
|
47
47
|
index("idx_stay_checkpoints_occurred_at").on(table.occurredAt),
|
|
48
48
|
]);
|
|
@@ -66,7 +66,7 @@ export const stayServicePosts = pgTable("stay_service_posts", {
|
|
|
66
66
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
67
67
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
68
68
|
}, (table) => [
|
|
69
|
-
index("
|
|
69
|
+
index("idx_stay_service_posts_operation_service_date").on(table.stayOperationId, table.serviceDate),
|
|
70
70
|
index("idx_stay_service_posts_booking_item").on(table.bookingItemId),
|
|
71
71
|
index("idx_stay_service_posts_service_date").on(table.serviceDate),
|
|
72
72
|
index("idx_stay_service_posts_kind").on(table.kind),
|
|
@@ -85,7 +85,7 @@ export const stayFolios = pgTable("stay_folios", {
|
|
|
85
85
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
86
86
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
87
87
|
}, (table) => [
|
|
88
|
-
index("
|
|
88
|
+
index("idx_stay_folios_operation_opened_at").on(table.stayOperationId, table.openedAt),
|
|
89
89
|
index("idx_stay_folios_status").on(table.status),
|
|
90
90
|
]);
|
|
91
91
|
export const stayFolioLines = pgTable("stay_folio_lines", {
|
|
@@ -108,7 +108,7 @@ export const stayFolioLines = pgTable("stay_folio_lines", {
|
|
|
108
108
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
109
109
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
110
110
|
}, (table) => [
|
|
111
|
-
index("
|
|
111
|
+
index("idx_stay_folio_lines_folio_posted_at").on(table.stayFolioId, table.postedAt),
|
|
112
112
|
index("idx_stay_folio_lines_service_post").on(table.servicePostId),
|
|
113
113
|
index("idx_stay_folio_lines_posted_at").on(table.postedAt),
|
|
114
114
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-pricing.d.ts","sourceRoot":"","sources":["../src/schema-pricing.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-pricing.d.ts","sourceRoot":"","sources":["../src/schema-pricing.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCzB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACvD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC7D,MAAM,MAAM,gBAAgB,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAChE,MAAM,MAAM,yBAAyB,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AACtF,MAAM,MAAM,4BAA4B,GAAG,OAAO,0BAA0B,CAAC,YAAY,CAAA;AACzF,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA;AAC5D,MAAM,MAAM,eAAe,GAAG,OAAO,aAAa,CAAC,YAAY,CAAA"}
|
package/dist/schema-pricing.js
CHANGED
|
@@ -27,7 +27,7 @@ export const stayRules = pgTable("stay_rules", {
|
|
|
27
27
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
28
28
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
29
29
|
}, (table) => [
|
|
30
|
-
index("
|
|
30
|
+
index("idx_stay_rules_property_priority_created").on(table.propertyId, table.priority, table.createdAt),
|
|
31
31
|
index("idx_stay_rules_rate_plan").on(table.ratePlanId),
|
|
32
32
|
index("idx_stay_rules_room_type").on(table.roomTypeId),
|
|
33
33
|
index("idx_stay_rules_active").on(table.active),
|
|
@@ -52,7 +52,7 @@ export const roomInventory = pgTable("room_inventory", {
|
|
|
52
52
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
53
53
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
54
54
|
}, (table) => [
|
|
55
|
-
index("
|
|
55
|
+
index("idx_room_inventory_property_date").on(table.propertyId, table.date),
|
|
56
56
|
index("idx_room_inventory_room_type").on(table.roomTypeId),
|
|
57
57
|
index("idx_room_inventory_date").on(table.date),
|
|
58
58
|
uniqueIndex("uidx_room_inventory_room_type_date").on(table.roomTypeId, table.date),
|
|
@@ -75,7 +75,7 @@ export const ratePlanInventoryOverrides = pgTable("rate_plan_inventory_overrides
|
|
|
75
75
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
76
76
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
77
77
|
}, (table) => [
|
|
78
|
-
index("
|
|
78
|
+
index("idx_rate_plan_inventory_overrides_rate_plan_date").on(table.ratePlanId, table.date),
|
|
79
79
|
index("idx_rate_plan_inventory_overrides_room_type").on(table.roomTypeId),
|
|
80
80
|
index("idx_rate_plan_inventory_overrides_date").on(table.date),
|
|
81
81
|
uniqueIndex("uidx_rate_plan_inventory_overrides_unique").on(table.ratePlanId, table.roomTypeId, table.date),
|
|
@@ -99,7 +99,7 @@ export const roomTypeRates = pgTable("room_type_rates", {
|
|
|
99
99
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
100
100
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
101
|
}, (table) => [
|
|
102
|
-
index("
|
|
102
|
+
index("idx_room_type_rates_rate_plan_created").on(table.ratePlanId, table.createdAt),
|
|
103
103
|
index("idx_room_type_rates_room_type").on(table.roomTypeId),
|
|
104
104
|
index("idx_room_type_rates_price_schedule").on(table.priceScheduleId),
|
|
105
105
|
index("idx_room_type_rates_active").on(table.active),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/hospitality",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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.6.
|
|
29
|
-
"@voyantjs/core": "0.6.
|
|
30
|
-
"@voyantjs/db": "0.6.
|
|
31
|
-
"@voyantjs/facilities": "0.6.
|
|
32
|
-
"@voyantjs/hono": "0.6.
|
|
28
|
+
"@voyantjs/bookings": "0.6.3",
|
|
29
|
+
"@voyantjs/core": "0.6.3",
|
|
30
|
+
"@voyantjs/db": "0.6.3",
|
|
31
|
+
"@voyantjs/facilities": "0.6.3",
|
|
32
|
+
"@voyantjs/hono": "0.6.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^6.0.2",
|