@voyantjs/hospitality 0.6.7 → 0.6.8
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 +18 -15
- package/dist/schema-inventory.d.ts.map +1 -1
- package/dist/schema-inventory.js +12 -11
- package/dist/schema-operations.d.ts.map +1 -1
- package/dist/schema-operations.js +7 -10
- package/dist/schema-pricing.d.ts.map +1 -1
- package/dist/schema-pricing.js +9 -10
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-bookings.d.ts","sourceRoot":"","sources":["../src/schema-bookings.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAmB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAA"}
|
package/dist/schema-bookings.js
CHANGED
|
@@ -36,10 +36,12 @@ 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("idx_stay_booking_items_check_in").on(table.checkInDate),
|
|
39
40
|
index("idx_stay_booking_items_property_check_in").on(table.propertyId, table.checkInDate),
|
|
40
|
-
index("
|
|
41
|
-
index("
|
|
42
|
-
index("
|
|
41
|
+
index("idx_stay_booking_items_room_type_check_in").on(table.roomTypeId, table.checkInDate),
|
|
42
|
+
index("idx_stay_booking_items_room_unit_check_in").on(table.roomUnitId, table.checkInDate),
|
|
43
|
+
index("idx_stay_booking_items_rate_plan_check_in").on(table.ratePlanId, table.checkInDate),
|
|
44
|
+
index("idx_stay_booking_items_status_check_in").on(table.status, table.checkInDate),
|
|
43
45
|
uniqueIndex("uidx_stay_booking_items_booking_item").on(table.bookingItemId),
|
|
44
46
|
]);
|
|
45
47
|
export const stayDailyRates = pgTable("stay_daily_rates", {
|
|
@@ -81,9 +83,9 @@ export const roomBlocks = pgTable("room_blocks", {
|
|
|
81
83
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
82
84
|
}, (table) => [
|
|
83
85
|
index("idx_room_blocks_property_starts_on").on(table.propertyId, table.startsOn),
|
|
84
|
-
index("
|
|
85
|
-
index("
|
|
86
|
-
index("
|
|
86
|
+
index("idx_room_blocks_room_type_starts_on").on(table.roomTypeId, table.startsOn),
|
|
87
|
+
index("idx_room_blocks_room_unit_starts_on").on(table.roomUnitId, table.startsOn),
|
|
88
|
+
index("idx_room_blocks_status_starts_on").on(table.status, table.startsOn),
|
|
87
89
|
index("idx_room_blocks_dates").on(table.startsOn, table.endsOn),
|
|
88
90
|
]);
|
|
89
91
|
export const roomUnitStatusEvents = pgTable("room_unit_status_events", {
|
|
@@ -99,9 +101,9 @@ export const roomUnitStatusEvents = pgTable("room_unit_status_events", {
|
|
|
99
101
|
metadata: jsonb("metadata").$type(),
|
|
100
102
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
103
|
}, (table) => [
|
|
102
|
-
index("idx_room_unit_status_events_room_unit_effective_from").on(table.roomUnitId, table.effectiveFrom),
|
|
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
|
+
index("idx_room_unit_status_events_room_unit_effective_from").on(table.roomUnitId, table.effectiveFrom),
|
|
106
|
+
index("idx_room_unit_status_events_status_effective_from").on(table.statusCode, table.effectiveFrom),
|
|
105
107
|
]);
|
|
106
108
|
export const maintenanceBlocks = pgTable("maintenance_blocks", {
|
|
107
109
|
id: typeId("maintenance_blocks"),
|
|
@@ -120,9 +122,9 @@ export const maintenanceBlocks = pgTable("maintenance_blocks", {
|
|
|
120
122
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
121
123
|
}, (table) => [
|
|
122
124
|
index("idx_maintenance_blocks_property_starts_on").on(table.propertyId, table.startsOn),
|
|
123
|
-
index("
|
|
124
|
-
index("
|
|
125
|
-
index("
|
|
125
|
+
index("idx_maintenance_blocks_room_type_starts_on").on(table.roomTypeId, table.startsOn),
|
|
126
|
+
index("idx_maintenance_blocks_room_unit_starts_on").on(table.roomUnitId, table.startsOn),
|
|
127
|
+
index("idx_maintenance_blocks_status_starts_on").on(table.status, table.startsOn),
|
|
126
128
|
index("idx_maintenance_blocks_dates").on(table.startsOn, table.endsOn),
|
|
127
129
|
]);
|
|
128
130
|
export const housekeepingTasks = pgTable("housekeeping_tasks", {
|
|
@@ -148,9 +150,10 @@ export const housekeepingTasks = pgTable("housekeeping_tasks", {
|
|
|
148
150
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
149
151
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
150
152
|
}, (table) => [
|
|
153
|
+
index("idx_housekeeping_tasks_priority_due_at").on(table.priority, table.dueAt),
|
|
151
154
|
index("idx_housekeeping_tasks_property_priority_due_at").on(table.propertyId, table.priority, table.dueAt),
|
|
152
|
-
index("
|
|
153
|
-
index("
|
|
154
|
-
index("
|
|
155
|
-
index("
|
|
155
|
+
index("idx_housekeeping_tasks_room_unit_priority_due_at").on(table.roomUnitId, table.priority, table.dueAt),
|
|
156
|
+
index("idx_housekeeping_tasks_stay_booking_item_priority_due_at").on(table.stayBookingItemId, table.priority, table.dueAt),
|
|
157
|
+
index("idx_housekeeping_tasks_status_priority_due_at").on(table.status, table.priority, table.dueAt),
|
|
158
|
+
index("idx_housekeeping_tasks_task_type_priority_due_at").on(table.taskType, table.priority, table.dueAt),
|
|
156
159
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-inventory.d.ts","sourceRoot":"","sources":["../src/schema-inventory.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|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AQ,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
|
@@ -31,8 +31,8 @@ export const roomTypes = pgTable("room_types", {
|
|
|
31
31
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
32
32
|
}, (table) => [
|
|
33
33
|
index("idx_room_types_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
34
|
-
index("
|
|
35
|
-
index("
|
|
34
|
+
index("idx_room_types_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
35
|
+
index("idx_room_types_inventory_mode_sort_name").on(table.inventoryMode, table.sortOrder, table.name),
|
|
36
36
|
uniqueIndex("uidx_room_types_property_code").on(table.propertyId, table.code),
|
|
37
37
|
]);
|
|
38
38
|
export const roomTypeBedConfigs = pgTable("room_type_bed_configs", {
|
|
@@ -48,7 +48,7 @@ export const roomTypeBedConfigs = pgTable("room_type_bed_configs", {
|
|
|
48
48
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
49
49
|
}, (table) => [
|
|
50
50
|
index("idx_room_type_bed_configs_room_type_primary_created").on(table.roomTypeId, table.isPrimary, table.createdAt),
|
|
51
|
-
index("
|
|
51
|
+
index("idx_room_type_bed_configs_bed_type_primary_created").on(table.bedType, table.isPrimary, table.createdAt),
|
|
52
52
|
]);
|
|
53
53
|
export const roomUnits = pgTable("room_units", {
|
|
54
54
|
id: typeId("room_units"),
|
|
@@ -72,8 +72,8 @@ export const roomUnits = pgTable("room_units", {
|
|
|
72
72
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
73
73
|
}, (table) => [
|
|
74
74
|
index("idx_room_units_property_room_number_code").on(table.propertyId, table.roomNumber, table.code),
|
|
75
|
-
index("
|
|
76
|
-
index("
|
|
75
|
+
index("idx_room_units_room_type_room_number_code").on(table.roomTypeId, table.roomNumber, table.code),
|
|
76
|
+
index("idx_room_units_status_room_number_code").on(table.status, table.roomNumber, table.code),
|
|
77
77
|
uniqueIndex("uidx_room_units_property_code").on(table.propertyId, table.code),
|
|
78
78
|
]);
|
|
79
79
|
export const mealPlans = pgTable("meal_plans", {
|
|
@@ -95,7 +95,7 @@ export const mealPlans = pgTable("meal_plans", {
|
|
|
95
95
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
96
96
|
}, (table) => [
|
|
97
97
|
index("idx_meal_plans_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
98
|
-
index("
|
|
98
|
+
index("idx_meal_plans_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
99
99
|
uniqueIndex("uidx_meal_plans_property_code").on(table.propertyId, table.code),
|
|
100
100
|
]);
|
|
101
101
|
export const ratePlans = pgTable("rate_plans", {
|
|
@@ -122,11 +122,11 @@ export const ratePlans = pgTable("rate_plans", {
|
|
|
122
122
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
123
123
|
}, (table) => [
|
|
124
124
|
index("idx_rate_plans_property_sort_name").on(table.propertyId, table.sortOrder, table.name),
|
|
125
|
-
index("
|
|
125
|
+
index("idx_rate_plans_meal_plan_sort_name").on(table.mealPlanId, table.sortOrder, table.name),
|
|
126
126
|
index("idx_rate_plans_catalog").on(table.priceCatalogId),
|
|
127
127
|
index("idx_rate_plans_policy").on(table.cancellationPolicyId),
|
|
128
|
-
index("
|
|
129
|
-
index("
|
|
128
|
+
index("idx_rate_plans_market_sort_name").on(table.marketId, table.sortOrder, table.name),
|
|
129
|
+
index("idx_rate_plans_active_sort_name").on(table.active, table.sortOrder, table.name),
|
|
130
130
|
uniqueIndex("uidx_rate_plans_property_code").on(table.propertyId, table.code),
|
|
131
131
|
]);
|
|
132
132
|
export const ratePlanRoomTypes = pgTable("rate_plan_room_types", {
|
|
@@ -146,9 +146,10 @@ export const ratePlanRoomTypes = pgTable("rate_plan_room_types", {
|
|
|
146
146
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
147
147
|
}, (table) => [
|
|
148
148
|
index("idx_rate_plan_room_types_rate_plan_sort_created").on(table.ratePlanId, table.sortOrder, table.createdAt),
|
|
149
|
-
index("
|
|
150
|
-
index("
|
|
149
|
+
index("idx_rate_plan_room_types_room_type_sort_created").on(table.roomTypeId, table.sortOrder, table.createdAt),
|
|
150
|
+
index("idx_rate_plan_room_types_product_sort_created").on(table.productId, table.sortOrder, table.createdAt),
|
|
151
151
|
index("idx_rate_plan_room_types_option").on(table.optionId),
|
|
152
152
|
index("idx_rate_plan_room_types_unit").on(table.unitId),
|
|
153
|
+
index("idx_rate_plan_room_types_active_sort_created").on(table.active, table.sortOrder, table.createdAt),
|
|
153
154
|
uniqueIndex("uidx_rate_plan_room_types_pair").on(table.ratePlanId, table.roomTypeId),
|
|
154
155
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-operations.d.ts","sourceRoot":"","sources":["../src/schema-operations.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA"}
|
|
@@ -27,8 +27,8 @@ export const stayOperations = pgTable("stay_operations", {
|
|
|
27
27
|
}, (table) => [
|
|
28
28
|
uniqueIndex("uidx_stay_operations_stay_booking_item").on(table.stayBookingItemId),
|
|
29
29
|
index("idx_stay_operations_property_created").on(table.propertyId, table.createdAt),
|
|
30
|
-
index("
|
|
31
|
-
index("
|
|
30
|
+
index("idx_stay_operations_room_unit_created").on(table.roomUnitId, table.createdAt),
|
|
31
|
+
index("idx_stay_operations_status_created").on(table.operationStatus, table.createdAt),
|
|
32
32
|
]);
|
|
33
33
|
export const stayCheckpoints = pgTable("stay_checkpoints", {
|
|
34
34
|
id: typeId("stay_checkpoints"),
|
|
@@ -43,8 +43,7 @@ export const stayCheckpoints = pgTable("stay_checkpoints", {
|
|
|
43
43
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
44
44
|
}, (table) => [
|
|
45
45
|
index("idx_stay_checkpoints_operation_occurred_at").on(table.stayOperationId, table.occurredAt),
|
|
46
|
-
index("
|
|
47
|
-
index("idx_stay_checkpoints_occurred_at").on(table.occurredAt),
|
|
46
|
+
index("idx_stay_checkpoints_type_occurred_at").on(table.checkpointType, table.occurredAt),
|
|
48
47
|
]);
|
|
49
48
|
export const stayServicePosts = pgTable("stay_service_posts", {
|
|
50
49
|
id: typeId("stay_service_posts"),
|
|
@@ -67,9 +66,8 @@ export const stayServicePosts = pgTable("stay_service_posts", {
|
|
|
67
66
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
68
67
|
}, (table) => [
|
|
69
68
|
index("idx_stay_service_posts_operation_service_date").on(table.stayOperationId, table.serviceDate),
|
|
70
|
-
index("
|
|
71
|
-
index("
|
|
72
|
-
index("idx_stay_service_posts_kind").on(table.kind),
|
|
69
|
+
index("idx_stay_service_posts_booking_item_service_date").on(table.bookingItemId, table.serviceDate),
|
|
70
|
+
index("idx_stay_service_posts_kind_service_date").on(table.kind, table.serviceDate),
|
|
73
71
|
]);
|
|
74
72
|
export const stayFolios = pgTable("stay_folios", {
|
|
75
73
|
id: typeId("stay_folios"),
|
|
@@ -86,7 +84,7 @@ export const stayFolios = pgTable("stay_folios", {
|
|
|
86
84
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
87
85
|
}, (table) => [
|
|
88
86
|
index("idx_stay_folios_operation_opened_at").on(table.stayOperationId, table.openedAt),
|
|
89
|
-
index("
|
|
87
|
+
index("idx_stay_folios_status_opened_at").on(table.status, table.openedAt),
|
|
90
88
|
]);
|
|
91
89
|
export const stayFolioLines = pgTable("stay_folio_lines", {
|
|
92
90
|
id: typeId("stay_folio_lines"),
|
|
@@ -109,6 +107,5 @@ export const stayFolioLines = pgTable("stay_folio_lines", {
|
|
|
109
107
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
110
108
|
}, (table) => [
|
|
111
109
|
index("idx_stay_folio_lines_folio_posted_at").on(table.stayFolioId, table.postedAt),
|
|
112
|
-
index("
|
|
113
|
-
index("idx_stay_folio_lines_posted_at").on(table.postedAt),
|
|
110
|
+
index("idx_stay_folio_lines_service_post_posted_at").on(table.servicePostId, table.postedAt),
|
|
114
111
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-pricing.d.ts","sourceRoot":"","sources":["../src/schema-pricing.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BtC,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -28,9 +28,9 @@ export const stayRules = pgTable("stay_rules", {
|
|
|
28
28
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
29
29
|
}, (table) => [
|
|
30
30
|
index("idx_stay_rules_property_priority_created").on(table.propertyId, table.priority, table.createdAt),
|
|
31
|
-
index("
|
|
32
|
-
index("
|
|
33
|
-
index("
|
|
31
|
+
index("idx_stay_rules_rate_plan_priority_created").on(table.ratePlanId, table.priority, table.createdAt),
|
|
32
|
+
index("idx_stay_rules_room_type_priority_created").on(table.roomTypeId, table.priority, table.createdAt),
|
|
33
|
+
index("idx_stay_rules_active_priority_created").on(table.active, table.priority, table.createdAt),
|
|
34
34
|
]);
|
|
35
35
|
export const roomInventory = pgTable("room_inventory", {
|
|
36
36
|
id: typeId("room_inventory"),
|
|
@@ -53,8 +53,8 @@ export const roomInventory = pgTable("room_inventory", {
|
|
|
53
53
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
54
54
|
}, (table) => [
|
|
55
55
|
index("idx_room_inventory_property_date").on(table.propertyId, table.date),
|
|
56
|
-
index("
|
|
57
|
-
index("
|
|
56
|
+
index("idx_room_inventory_room_type_date").on(table.roomTypeId, table.date),
|
|
57
|
+
index("idx_room_inventory_stop_sell_date").on(table.stopSell, table.date),
|
|
58
58
|
uniqueIndex("uidx_room_inventory_room_type_date").on(table.roomTypeId, table.date),
|
|
59
59
|
]);
|
|
60
60
|
export const ratePlanInventoryOverrides = pgTable("rate_plan_inventory_overrides", {
|
|
@@ -76,8 +76,7 @@ export const ratePlanInventoryOverrides = pgTable("rate_plan_inventory_overrides
|
|
|
76
76
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
77
77
|
}, (table) => [
|
|
78
78
|
index("idx_rate_plan_inventory_overrides_rate_plan_date").on(table.ratePlanId, table.date),
|
|
79
|
-
index("
|
|
80
|
-
index("idx_rate_plan_inventory_overrides_date").on(table.date),
|
|
79
|
+
index("idx_rate_plan_inventory_overrides_room_type_date").on(table.roomTypeId, table.date),
|
|
81
80
|
uniqueIndex("uidx_rate_plan_inventory_overrides_unique").on(table.ratePlanId, table.roomTypeId, table.date),
|
|
82
81
|
]);
|
|
83
82
|
export const roomTypeRates = pgTable("room_type_rates", {
|
|
@@ -100,8 +99,8 @@ export const roomTypeRates = pgTable("room_type_rates", {
|
|
|
100
99
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
101
100
|
}, (table) => [
|
|
102
101
|
index("idx_room_type_rates_rate_plan_created").on(table.ratePlanId, table.createdAt),
|
|
103
|
-
index("
|
|
104
|
-
index("
|
|
105
|
-
index("
|
|
102
|
+
index("idx_room_type_rates_room_type_created").on(table.roomTypeId, table.createdAt),
|
|
103
|
+
index("idx_room_type_rates_price_schedule_created").on(table.priceScheduleId, table.createdAt),
|
|
104
|
+
index("idx_room_type_rates_active_created").on(table.active, table.createdAt),
|
|
106
105
|
uniqueIndex("uidx_room_type_rates_plan_room_schedule").on(table.ratePlanId, table.roomTypeId, table.priceScheduleId),
|
|
107
106
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/hospitality",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
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/
|
|
29
|
-
"@voyantjs/
|
|
30
|
-
"@voyantjs/db": "0.6.
|
|
31
|
-
"@voyantjs/facilities": "0.6.
|
|
32
|
-
"@voyantjs/hono": "0.6.
|
|
28
|
+
"@voyantjs/bookings": "0.6.8",
|
|
29
|
+
"@voyantjs/core": "0.6.8",
|
|
30
|
+
"@voyantjs/db": "0.6.8",
|
|
31
|
+
"@voyantjs/facilities": "0.6.8",
|
|
32
|
+
"@voyantjs/hono": "0.6.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^6.0.2",
|