@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/routes.d.ts
CHANGED
|
@@ -46,16 +46,16 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
46
46
|
input: {};
|
|
47
47
|
output: {
|
|
48
48
|
data: {
|
|
49
|
+
metadata: {
|
|
50
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
51
|
+
} | null;
|
|
49
52
|
id: string;
|
|
50
53
|
name: string;
|
|
51
54
|
createdAt: string;
|
|
52
55
|
updatedAt: string;
|
|
53
|
-
metadata: {
|
|
54
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
55
|
-
} | null;
|
|
56
56
|
description: string | null;
|
|
57
|
-
active: boolean;
|
|
58
57
|
code: string | null;
|
|
58
|
+
active: boolean;
|
|
59
59
|
sortOrder: number;
|
|
60
60
|
propertyId: string;
|
|
61
61
|
inventoryMode: "virtual" | "pooled" | "serialized";
|
|
@@ -242,8 +242,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
isPrimary: boolean;
|
|
246
245
|
notes: string | null;
|
|
246
|
+
isPrimary: boolean;
|
|
247
247
|
quantity: number;
|
|
248
248
|
roomTypeId: string;
|
|
249
249
|
bedType: string;
|
|
@@ -387,14 +387,14 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
387
387
|
input: {};
|
|
388
388
|
output: {
|
|
389
389
|
data: {
|
|
390
|
+
metadata: {
|
|
391
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
392
|
+
} | null;
|
|
390
393
|
id: string;
|
|
391
|
-
status: "active" | "inactive" | "archived" | "out_of_order";
|
|
392
394
|
createdAt: string;
|
|
393
395
|
updatedAt: string;
|
|
396
|
+
status: "active" | "inactive" | "archived" | "out_of_order";
|
|
394
397
|
notes: string | null;
|
|
395
|
-
metadata: {
|
|
396
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
397
|
-
} | null;
|
|
398
398
|
code: string | null;
|
|
399
399
|
propertyId: string;
|
|
400
400
|
roomTypeId: string;
|
|
@@ -561,16 +561,16 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
561
561
|
input: {};
|
|
562
562
|
output: {
|
|
563
563
|
data: {
|
|
564
|
+
metadata: {
|
|
565
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
566
|
+
} | null;
|
|
564
567
|
id: string;
|
|
565
568
|
name: string;
|
|
566
569
|
createdAt: string;
|
|
567
570
|
updatedAt: string;
|
|
568
|
-
metadata: {
|
|
569
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
570
|
-
} | null;
|
|
571
571
|
description: string | null;
|
|
572
|
-
active: boolean;
|
|
573
572
|
code: string;
|
|
573
|
+
active: boolean;
|
|
574
574
|
sortOrder: number;
|
|
575
575
|
propertyId: string;
|
|
576
576
|
includesBreakfast: boolean;
|
|
@@ -737,16 +737,16 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
737
737
|
input: {};
|
|
738
738
|
output: {
|
|
739
739
|
data: {
|
|
740
|
+
metadata: {
|
|
741
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
742
|
+
} | null;
|
|
740
743
|
id: string;
|
|
741
744
|
name: string;
|
|
742
745
|
createdAt: string;
|
|
743
746
|
updatedAt: string;
|
|
744
|
-
metadata: {
|
|
745
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
746
|
-
} | null;
|
|
747
747
|
description: string | null;
|
|
748
|
-
active: boolean;
|
|
749
748
|
code: string;
|
|
749
|
+
active: boolean;
|
|
750
750
|
sortOrder: number;
|
|
751
751
|
propertyId: string;
|
|
752
752
|
mealPlanId: string | null;
|
|
@@ -1227,8 +1227,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
1227
1227
|
input: {};
|
|
1228
1228
|
output: {
|
|
1229
1229
|
data: {
|
|
1230
|
-
id: string;
|
|
1231
1230
|
date: string;
|
|
1231
|
+
id: string;
|
|
1232
1232
|
createdAt: string;
|
|
1233
1233
|
updatedAt: string;
|
|
1234
1234
|
notes: string | null;
|
|
@@ -1388,8 +1388,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
1388
1388
|
input: {};
|
|
1389
1389
|
output: {
|
|
1390
1390
|
data: {
|
|
1391
|
-
id: string;
|
|
1392
1391
|
date: string;
|
|
1392
|
+
id: string;
|
|
1393
1393
|
createdAt: string;
|
|
1394
1394
|
updatedAt: string;
|
|
1395
1395
|
notes: string | null;
|
|
@@ -1547,14 +1547,14 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
1547
1547
|
input: {};
|
|
1548
1548
|
output: {
|
|
1549
1549
|
data: {
|
|
1550
|
+
metadata: {
|
|
1551
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1552
|
+
} | null;
|
|
1550
1553
|
id: string;
|
|
1551
|
-
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1552
1554
|
createdAt: string;
|
|
1553
1555
|
updatedAt: string;
|
|
1556
|
+
status: "draft" | "confirmed" | "cancelled" | "held" | "released";
|
|
1554
1557
|
notes: string | null;
|
|
1555
|
-
metadata: {
|
|
1556
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1557
|
-
} | null;
|
|
1558
1558
|
quantity: number;
|
|
1559
1559
|
propertyId: string;
|
|
1560
1560
|
roomTypeId: string | null;
|
|
@@ -1713,12 +1713,12 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
1713
1713
|
input: {};
|
|
1714
1714
|
output: {
|
|
1715
1715
|
data: {
|
|
1716
|
-
id: string;
|
|
1717
|
-
createdAt: string;
|
|
1718
|
-
notes: string | null;
|
|
1719
1716
|
metadata: {
|
|
1720
1717
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1721
1718
|
} | null;
|
|
1719
|
+
id: string;
|
|
1720
|
+
createdAt: string;
|
|
1721
|
+
notes: string | null;
|
|
1722
1722
|
roomUnitId: string;
|
|
1723
1723
|
statusCode: string;
|
|
1724
1724
|
housekeepingStatus: string | null;
|
|
@@ -1867,15 +1867,15 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
1867
1867
|
input: {};
|
|
1868
1868
|
output: {
|
|
1869
1869
|
data: {
|
|
1870
|
+
metadata: {
|
|
1871
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
1872
|
+
} | null;
|
|
1870
1873
|
id: string;
|
|
1871
|
-
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1872
1874
|
createdAt: string;
|
|
1873
1875
|
updatedAt: string;
|
|
1876
|
+
status: "in_progress" | "cancelled" | "open" | "resolved";
|
|
1874
1877
|
notes: string | null;
|
|
1875
1878
|
reason: string | null;
|
|
1876
|
-
metadata: {
|
|
1877
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
1878
|
-
} | null;
|
|
1879
1879
|
propertyId: string;
|
|
1880
1880
|
roomTypeId: string | null;
|
|
1881
1881
|
roomUnitId: string | null;
|
|
@@ -2033,15 +2033,15 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2033
2033
|
input: {};
|
|
2034
2034
|
output: {
|
|
2035
2035
|
data: {
|
|
2036
|
+
metadata: {
|
|
2037
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2038
|
+
} | null;
|
|
2036
2039
|
id: string;
|
|
2037
|
-
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
2038
|
-
completedAt: string | null;
|
|
2039
2040
|
createdAt: string;
|
|
2040
2041
|
updatedAt: string;
|
|
2042
|
+
status: "in_progress" | "completed" | "cancelled" | "open";
|
|
2041
2043
|
notes: string | null;
|
|
2042
|
-
|
|
2043
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2044
|
-
} | null;
|
|
2044
|
+
completedAt: string | null;
|
|
2045
2045
|
propertyId: string;
|
|
2046
2046
|
roomUnitId: string;
|
|
2047
2047
|
stayBookingItemId: string | null;
|
|
@@ -2214,13 +2214,13 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2214
2214
|
input: {};
|
|
2215
2215
|
output: {
|
|
2216
2216
|
data: {
|
|
2217
|
+
metadata: {
|
|
2218
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2219
|
+
} | null;
|
|
2217
2220
|
id: string;
|
|
2218
2221
|
createdAt: string;
|
|
2219
2222
|
updatedAt: string;
|
|
2220
2223
|
notes: string | null;
|
|
2221
|
-
metadata: {
|
|
2222
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2223
|
-
} | null;
|
|
2224
2224
|
active: boolean;
|
|
2225
2225
|
validFrom: string | null;
|
|
2226
2226
|
validTo: string | null;
|
|
@@ -2413,14 +2413,14 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2413
2413
|
input: {};
|
|
2414
2414
|
output: {
|
|
2415
2415
|
data: {
|
|
2416
|
+
metadata: {
|
|
2417
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2418
|
+
} | null;
|
|
2416
2419
|
id: string;
|
|
2417
|
-
status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
|
|
2418
2420
|
createdAt: string;
|
|
2419
2421
|
updatedAt: string;
|
|
2422
|
+
status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
|
|
2420
2423
|
notes: string | null;
|
|
2421
|
-
metadata: {
|
|
2422
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2423
|
-
} | null;
|
|
2424
2424
|
bookingItemId: string;
|
|
2425
2425
|
propertyId: string;
|
|
2426
2426
|
roomTypeId: string;
|
|
@@ -2601,13 +2601,13 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2601
2601
|
input: {};
|
|
2602
2602
|
output: {
|
|
2603
2603
|
data: {
|
|
2604
|
-
id: string;
|
|
2605
2604
|
date: string;
|
|
2605
|
+
id: string;
|
|
2606
|
+
createdAt: string;
|
|
2607
|
+
updatedAt: string;
|
|
2606
2608
|
sellCurrency: string;
|
|
2607
2609
|
sellAmountCents: number | null;
|
|
2608
2610
|
costAmountCents: number | null;
|
|
2609
|
-
createdAt: string;
|
|
2610
|
-
updatedAt: string;
|
|
2611
2611
|
costCurrency: string | null;
|
|
2612
2612
|
stayBookingItemId: string;
|
|
2613
2613
|
taxAmountCents: number | null;
|
|
@@ -2760,13 +2760,13 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2760
2760
|
input: {};
|
|
2761
2761
|
output: {
|
|
2762
2762
|
data: {
|
|
2763
|
+
metadata: {
|
|
2764
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
2765
|
+
} | null;
|
|
2763
2766
|
id: string;
|
|
2764
2767
|
createdAt: string;
|
|
2765
2768
|
updatedAt: string;
|
|
2766
2769
|
notes: string | null;
|
|
2767
|
-
metadata: {
|
|
2768
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
2769
|
-
} | null;
|
|
2770
2770
|
propertyId: string;
|
|
2771
2771
|
roomUnitId: string | null;
|
|
2772
2772
|
stayBookingItemId: string;
|
|
@@ -2925,12 +2925,12 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
2925
2925
|
input: {};
|
|
2926
2926
|
output: {
|
|
2927
2927
|
data: {
|
|
2928
|
-
id: string;
|
|
2929
|
-
createdAt: string;
|
|
2930
|
-
notes: string | null;
|
|
2931
2928
|
metadata: {
|
|
2932
2929
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
2933
2930
|
} | null;
|
|
2931
|
+
id: string;
|
|
2932
|
+
createdAt: string;
|
|
2933
|
+
notes: string | null;
|
|
2934
2934
|
roomUnitId: string | null;
|
|
2935
2935
|
stayOperationId: string;
|
|
2936
2936
|
checkpointType: "no_show" | "arrival" | "room_assigned" | "check_in" | "room_move" | "charge_posted" | "check_out" | "note";
|
|
@@ -3078,17 +3078,17 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3078
3078
|
input: {};
|
|
3079
3079
|
output: {
|
|
3080
3080
|
data: {
|
|
3081
|
+
metadata: {
|
|
3082
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
3083
|
+
} | null;
|
|
3081
3084
|
id: string;
|
|
3082
|
-
sellAmountCents: number;
|
|
3083
|
-
costAmountCents: number | null;
|
|
3084
3085
|
createdAt: string;
|
|
3085
3086
|
updatedAt: string;
|
|
3086
3087
|
notes: string | null;
|
|
3087
|
-
metadata: {
|
|
3088
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
3089
|
-
} | null;
|
|
3090
|
-
kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
|
|
3091
3088
|
description: string;
|
|
3089
|
+
sellAmountCents: number;
|
|
3090
|
+
costAmountCents: number | null;
|
|
3091
|
+
kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
|
|
3092
3092
|
serviceDate: string;
|
|
3093
3093
|
quantity: number;
|
|
3094
3094
|
bookingItemId: string | null;
|
|
@@ -3221,7 +3221,7 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3221
3221
|
id: string;
|
|
3222
3222
|
stayOperationId: string;
|
|
3223
3223
|
currencyCode: string;
|
|
3224
|
-
status: "
|
|
3224
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
3225
3225
|
openedAt: string;
|
|
3226
3226
|
closedAt: string | null;
|
|
3227
3227
|
notes: string | null;
|
|
@@ -3245,14 +3245,14 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3245
3245
|
input: {};
|
|
3246
3246
|
output: {
|
|
3247
3247
|
data: {
|
|
3248
|
+
metadata: {
|
|
3249
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
3250
|
+
} | null;
|
|
3248
3251
|
id: string;
|
|
3249
|
-
status: "open" | "closed" | "transferred" | "void";
|
|
3250
3252
|
createdAt: string;
|
|
3251
3253
|
updatedAt: string;
|
|
3254
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
3252
3255
|
notes: string | null;
|
|
3253
|
-
metadata: {
|
|
3254
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
3255
|
-
} | null;
|
|
3256
3256
|
currencyCode: string;
|
|
3257
3257
|
stayOperationId: string;
|
|
3258
3258
|
openedAt: string;
|
|
@@ -3287,7 +3287,7 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3287
3287
|
id: string;
|
|
3288
3288
|
stayOperationId: string;
|
|
3289
3289
|
currencyCode: string;
|
|
3290
|
-
status: "
|
|
3290
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
3291
3291
|
openedAt: string;
|
|
3292
3292
|
closedAt: string | null;
|
|
3293
3293
|
notes: string | null;
|
|
@@ -3326,7 +3326,7 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3326
3326
|
id: string;
|
|
3327
3327
|
stayOperationId: string;
|
|
3328
3328
|
currencyCode: string;
|
|
3329
|
-
status: "
|
|
3329
|
+
status: "void" | "open" | "closed" | "transferred";
|
|
3330
3330
|
openedAt: string;
|
|
3331
3331
|
closedAt: string | null;
|
|
3332
3332
|
notes: string | null;
|
|
@@ -3404,13 +3404,13 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
|
|
|
3404
3404
|
input: {};
|
|
3405
3405
|
output: {
|
|
3406
3406
|
data: {
|
|
3407
|
+
metadata: {
|
|
3408
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
3409
|
+
} | null;
|
|
3407
3410
|
id: string;
|
|
3408
3411
|
createdAt: string;
|
|
3409
3412
|
updatedAt: string;
|
|
3410
3413
|
notes: string | null;
|
|
3411
|
-
metadata: {
|
|
3412
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
3413
|
-
} | null;
|
|
3414
3414
|
description: string;
|
|
3415
3415
|
quantity: number;
|
|
3416
3416
|
taxAmountCents: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-bookings.d.ts","sourceRoot":"","sources":["../src/schema-bookings.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCrB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B7B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACvD,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAA;AACtE,MAAM,MAAM,oBAAoB,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),
|
|
@@ -697,7 +697,7 @@ export declare const stayFolios: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
697
697
|
tableName: "stay_folios";
|
|
698
698
|
dataType: "string";
|
|
699
699
|
columnType: "PgEnumColumn";
|
|
700
|
-
data: "
|
|
700
|
+
data: "void" | "open" | "closed" | "transferred";
|
|
701
701
|
driverParam: string;
|
|
702
702
|
notNull: true;
|
|
703
703
|
hasDefault: true;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-operations.d.ts","sourceRoot":"","sources":["../src/schema-operations.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AACjE,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA;AAChE,MAAM,MAAM,iBAAiB,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA;AACnE,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AAClE,MAAM,MAAM,kBAAkB,GAAG,OAAO,gBAAgB,CAAC,YAAY,CAAA;AACrE,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACtD,MAAM,MAAM,YAAY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAA;AACzD,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAA"}
|
|
@@ -26,7 +26,7 @@ export const stayOperations = pgTable("stay_operations", {
|
|
|
26
26
|
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCrB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;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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),
|