@voyantjs/hospitality 0.24.1 → 0.24.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.
@@ -85,8 +85,8 @@ export declare const hospitalityAmenitySchema: z.ZodObject<{
85
85
  export declare const hospitalityPolicySchema: z.ZodObject<{
86
86
  kind: z.ZodEnum<{
87
87
  supplier_notes: "supplier_notes";
88
- cancellation: "cancellation";
89
88
  payment: "payment";
89
+ cancellation: "cancellation";
90
90
  requirements: "requirements";
91
91
  check_in: "check_in";
92
92
  }>;
@@ -158,8 +158,8 @@ export declare const hospitalityContentSchema: z.ZodObject<{
158
158
  policies: z.ZodDefault<z.ZodArray<z.ZodObject<{
159
159
  kind: z.ZodEnum<{
160
160
  supplier_notes: "supplier_notes";
161
- cancellation: "cancellation";
162
161
  payment: "payment";
162
+ cancellation: "cancellation";
163
163
  requirements: "requirements";
164
164
  check_in: "check_in";
165
165
  }>;
@@ -246,9 +246,9 @@ export declare const hospitalityAccommodationRoutes: import("hono/hono-base").Ho
246
246
  id: string;
247
247
  createdAt: string;
248
248
  updatedAt: string;
249
+ notes: string | null;
249
250
  isPrimary: boolean;
250
251
  quantity: number;
251
- notes: string | null;
252
252
  roomTypeId: string;
253
253
  bedType: string;
254
254
  } | null;
@@ -1079,8 +1079,8 @@ export declare const hospitalityAccommodationRoutes: import("hono/hono-base").Ho
1079
1079
  createdAt: string;
1080
1080
  updatedAt: string;
1081
1081
  active: boolean;
1082
- ratePlanId: string;
1083
1082
  notes: string | null;
1083
+ ratePlanId: string;
1084
1084
  roomTypeId: string;
1085
1085
  currencyCode: string;
1086
1086
  priceScheduleId: string | null;
@@ -199,8 +199,8 @@ export declare const hospitalityInventoryRoutes: import("hono/hono-base").HonoBa
199
199
  createdAt: string;
200
200
  updatedAt: string;
201
201
  date: string;
202
- ratePlanId: string;
203
202
  notes: string | null;
203
+ ratePlanId: string;
204
204
  roomTypeId: string;
205
205
  closedToArrival: boolean;
206
206
  closedToDeparture: boolean;
@@ -362,8 +362,8 @@ export declare const hospitalityInventoryRoutes: import("hono/hono-base").HonoBa
362
362
  metadata: {
363
363
  [x: string]: import("hono/utils/types").JSONValue;
364
364
  } | null;
365
- quantity: number;
366
365
  notes: string | null;
366
+ quantity: number;
367
367
  roomTypeId: string | null;
368
368
  roomUnitId: string | null;
369
369
  startsOn: string;
@@ -682,8 +682,8 @@ export declare const hospitalityInventoryRoutes: import("hono/hono-base").HonoBa
682
682
  metadata: {
683
683
  [x: string]: import("hono/utils/types").JSONValue;
684
684
  } | null;
685
- reason: string | null;
686
685
  notes: string | null;
686
+ reason: string | null;
687
687
  roomTypeId: string | null;
688
688
  roomUnitId: string | null;
689
689
  startsOn: string;
@@ -199,8 +199,8 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
199
199
  createdAt: string;
200
200
  updatedAt: string;
201
201
  date: string;
202
- ratePlanId: string;
203
202
  notes: string | null;
203
+ ratePlanId: string;
204
204
  roomTypeId: string;
205
205
  closedToArrival: boolean;
206
206
  closedToDeparture: boolean;
@@ -362,8 +362,8 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
362
362
  metadata: {
363
363
  [x: string]: import("hono/utils/types").JSONValue;
364
364
  } | null;
365
- quantity: number;
366
365
  notes: string | null;
366
+ quantity: number;
367
367
  roomTypeId: string | null;
368
368
  roomUnitId: string | null;
369
369
  startsOn: string;
@@ -682,8 +682,8 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
682
682
  metadata: {
683
683
  [x: string]: import("hono/utils/types").JSONValue;
684
684
  } | null;
685
- reason: string | null;
686
685
  notes: string | null;
686
+ reason: string | null;
687
687
  roomTypeId: string | null;
688
688
  roomUnitId: string | null;
689
689
  startsOn: string;
@@ -1029,10 +1029,10 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
1029
1029
  metadata: {
1030
1030
  [x: string]: import("hono/utils/types").JSONValue;
1031
1031
  } | null;
1032
+ notes: string | null;
1032
1033
  minNights: number | null;
1033
1034
  maxNights: number | null;
1034
1035
  ratePlanId: string | null;
1035
- notes: string | null;
1036
1036
  validFrom: string | null;
1037
1037
  validTo: string | null;
1038
1038
  priority: number;
@@ -1228,8 +1228,8 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
1228
1228
  metadata: {
1229
1229
  [x: string]: import("hono/utils/types").JSONValue;
1230
1230
  } | null;
1231
- ratePlanId: string;
1232
1231
  notes: string | null;
1232
+ ratePlanId: string;
1233
1233
  bookingItemId: string;
1234
1234
  roomTypeId: string;
1235
1235
  mealPlanId: string | null;
@@ -1892,9 +1892,9 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
1892
1892
  metadata: {
1893
1893
  [x: string]: import("hono/utils/types").JSONValue;
1894
1894
  } | null;
1895
+ notes: string | null;
1895
1896
  kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
1896
1897
  quantity: number;
1897
- notes: string | null;
1898
1898
  sellAmountCents: number;
1899
1899
  costAmountCents: number | null;
1900
1900
  serviceDate: string;
@@ -2218,8 +2218,8 @@ export declare const hospitalityOperationsRoutes: import("hono/hono-base").HonoB
2218
2218
  metadata: {
2219
2219
  [x: string]: import("hono/utils/types").JSONValue;
2220
2220
  } | null;
2221
- quantity: number;
2222
2221
  notes: string | null;
2222
+ quantity: number;
2223
2223
  taxAmountCents: number | null;
2224
2224
  feeAmountCents: number | null;
2225
2225
  stayFolioId: string;
@@ -51,10 +51,10 @@ export declare const hospitalityStayRoutes: import("hono/hono-base").HonoBase<En
51
51
  metadata: {
52
52
  [x: string]: import("hono/utils/types").JSONValue;
53
53
  } | null;
54
+ notes: string | null;
54
55
  minNights: number | null;
55
56
  maxNights: number | null;
56
57
  ratePlanId: string | null;
57
- notes: string | null;
58
58
  validFrom: string | null;
59
59
  validTo: string | null;
60
60
  priority: number;
@@ -250,8 +250,8 @@ export declare const hospitalityStayRoutes: import("hono/hono-base").HonoBase<En
250
250
  metadata: {
251
251
  [x: string]: import("hono/utils/types").JSONValue;
252
252
  } | null;
253
- ratePlanId: string;
254
253
  notes: string | null;
254
+ ratePlanId: string;
255
255
  bookingItemId: string;
256
256
  roomTypeId: string;
257
257
  mealPlanId: string | null;
@@ -914,9 +914,9 @@ export declare const hospitalityStayRoutes: import("hono/hono-base").HonoBase<En
914
914
  metadata: {
915
915
  [x: string]: import("hono/utils/types").JSONValue;
916
916
  } | null;
917
+ notes: string | null;
917
918
  kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
918
919
  quantity: number;
919
- notes: string | null;
920
920
  sellAmountCents: number;
921
921
  costAmountCents: number | null;
922
922
  serviceDate: string;
@@ -1240,8 +1240,8 @@ export declare const hospitalityStayRoutes: import("hono/hono-base").HonoBase<En
1240
1240
  metadata: {
1241
1241
  [x: string]: import("hono/utils/types").JSONValue;
1242
1242
  } | null;
1243
- quantity: number;
1244
1243
  notes: string | null;
1244
+ quantity: number;
1245
1245
  taxAmountCents: number | null;
1246
1246
  feeAmountCents: number | null;
1247
1247
  stayFolioId: string;
package/dist/routes.d.ts CHANGED
@@ -246,9 +246,9 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
246
246
  id: string;
247
247
  createdAt: string;
248
248
  updatedAt: string;
249
+ notes: string | null;
249
250
  isPrimary: boolean;
250
251
  quantity: number;
251
- notes: string | null;
252
252
  roomTypeId: string;
253
253
  bedType: string;
254
254
  } | null;
@@ -1079,8 +1079,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
1079
1079
  createdAt: string;
1080
1080
  updatedAt: string;
1081
1081
  active: boolean;
1082
- ratePlanId: string;
1083
1082
  notes: string | null;
1083
+ ratePlanId: string;
1084
1084
  roomTypeId: string;
1085
1085
  currencyCode: string;
1086
1086
  priceScheduleId: string | null;
@@ -1400,8 +1400,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
1400
1400
  createdAt: string;
1401
1401
  updatedAt: string;
1402
1402
  date: string;
1403
- ratePlanId: string;
1404
1403
  notes: string | null;
1404
+ ratePlanId: string;
1405
1405
  roomTypeId: string;
1406
1406
  closedToArrival: boolean;
1407
1407
  closedToDeparture: boolean;
@@ -1563,8 +1563,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
1563
1563
  metadata: {
1564
1564
  [x: string]: import("hono/utils/types").JSONValue;
1565
1565
  } | null;
1566
- quantity: number;
1567
1566
  notes: string | null;
1567
+ quantity: number;
1568
1568
  roomTypeId: string | null;
1569
1569
  roomUnitId: string | null;
1570
1570
  startsOn: string;
@@ -1883,8 +1883,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
1883
1883
  metadata: {
1884
1884
  [x: string]: import("hono/utils/types").JSONValue;
1885
1885
  } | null;
1886
- reason: string | null;
1887
1886
  notes: string | null;
1887
+ reason: string | null;
1888
1888
  roomTypeId: string | null;
1889
1889
  roomUnitId: string | null;
1890
1890
  startsOn: string;
@@ -2230,10 +2230,10 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
2230
2230
  metadata: {
2231
2231
  [x: string]: import("hono/utils/types").JSONValue;
2232
2232
  } | null;
2233
+ notes: string | null;
2233
2234
  minNights: number | null;
2234
2235
  maxNights: number | null;
2235
2236
  ratePlanId: string | null;
2236
- notes: string | null;
2237
2237
  validFrom: string | null;
2238
2238
  validTo: string | null;
2239
2239
  priority: number;
@@ -2429,8 +2429,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
2429
2429
  metadata: {
2430
2430
  [x: string]: import("hono/utils/types").JSONValue;
2431
2431
  } | null;
2432
- ratePlanId: string;
2433
2432
  notes: string | null;
2433
+ ratePlanId: string;
2434
2434
  bookingItemId: string;
2435
2435
  roomTypeId: string;
2436
2436
  mealPlanId: string | null;
@@ -3093,9 +3093,9 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
3093
3093
  metadata: {
3094
3094
  [x: string]: import("hono/utils/types").JSONValue;
3095
3095
  } | null;
3096
+ notes: string | null;
3096
3097
  kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
3097
3098
  quantity: number;
3098
- notes: string | null;
3099
3099
  sellAmountCents: number;
3100
3100
  costAmountCents: number | null;
3101
3101
  serviceDate: string;
@@ -3419,8 +3419,8 @@ export declare const hospitalityRoutes: import("hono/hono-base").HonoBase<Env, i
3419
3419
  metadata: {
3420
3420
  [x: string]: import("hono/utils/types").JSONValue;
3421
3421
  } | null;
3422
- quantity: number;
3423
3422
  notes: string | null;
3423
+ quantity: number;
3424
3424
  taxAmountCents: number | null;
3425
3425
  feeAmountCents: number | null;
3426
3426
  stayFolioId: string;
package/dist/service.d.ts CHANGED
@@ -383,9 +383,9 @@ export declare const hospitalityService: {
383
383
  id: string;
384
384
  createdAt: Date;
385
385
  updatedAt: Date;
386
+ notes: string | null;
386
387
  isPrimary: boolean;
387
388
  quantity: number;
388
- notes: string | null;
389
389
  roomTypeId: string;
390
390
  bedType: string;
391
391
  } | null>;
@@ -760,10 +760,10 @@ export declare const hospitalityService: {
760
760
  propertyId: string;
761
761
  active: boolean;
762
762
  metadata: Record<string, unknown> | null;
763
+ notes: string | null;
763
764
  minNights: number | null;
764
765
  maxNights: number | null;
765
766
  ratePlanId: string | null;
766
- notes: string | null;
767
767
  validFrom: string | null;
768
768
  validTo: string | null;
769
769
  priority: number;
@@ -912,8 +912,8 @@ export declare const hospitalityService: {
912
912
  createdAt: Date;
913
913
  updatedAt: Date;
914
914
  date: string;
915
- ratePlanId: string;
916
915
  notes: string | null;
916
+ ratePlanId: string;
917
917
  roomTypeId: string;
918
918
  closedToArrival: boolean;
919
919
  closedToDeparture: boolean;
@@ -978,8 +978,8 @@ export declare const hospitalityService: {
978
978
  createdAt: Date;
979
979
  updatedAt: Date;
980
980
  active: boolean;
981
- ratePlanId: string;
982
981
  notes: string | null;
982
+ ratePlanId: string;
983
983
  roomTypeId: string;
984
984
  currencyCode: string;
985
985
  priceScheduleId: string | null;
@@ -1064,8 +1064,8 @@ export declare const hospitalityService: {
1064
1064
  propertyId: string;
1065
1065
  status: "cancelled" | "reserved" | "checked_in" | "checked_out" | "no_show";
1066
1066
  metadata: Record<string, unknown> | null;
1067
- ratePlanId: string;
1068
1067
  notes: string | null;
1068
+ ratePlanId: string;
1069
1069
  bookingItemId: string;
1070
1070
  roomTypeId: string;
1071
1071
  mealPlanId: string | null;
@@ -1214,8 +1214,8 @@ export declare const hospitalityService: {
1214
1214
  propertyId: string;
1215
1215
  status: "held" | "confirmed" | "cancelled" | "draft" | "released";
1216
1216
  metadata: Record<string, unknown> | null;
1217
- quantity: number;
1218
1217
  notes: string | null;
1218
+ quantity: number;
1219
1219
  roomTypeId: string | null;
1220
1220
  roomUnitId: string | null;
1221
1221
  startsOn: string;
@@ -1334,8 +1334,8 @@ export declare const hospitalityService: {
1334
1334
  propertyId: string;
1335
1335
  status: "cancelled" | "in_progress" | "open" | "resolved";
1336
1336
  metadata: Record<string, unknown> | null;
1337
- reason: string | null;
1338
1337
  notes: string | null;
1338
+ reason: string | null;
1339
1339
  roomTypeId: string | null;
1340
1340
  roomUnitId: string | null;
1341
1341
  startsOn: string;
@@ -1597,9 +1597,9 @@ export declare const hospitalityService: {
1597
1597
  updatedAt: Date;
1598
1598
  description: string;
1599
1599
  metadata: Record<string, unknown> | null;
1600
+ notes: string | null;
1600
1601
  kind: "other" | "fee" | "adjustment" | "lodging" | "meal" | "minibar";
1601
1602
  quantity: number;
1602
- notes: string | null;
1603
1603
  sellAmountCents: number;
1604
1604
  costAmountCents: number | null;
1605
1605
  serviceDate: string;
@@ -1725,8 +1725,8 @@ export declare const hospitalityService: {
1725
1725
  updatedAt: Date;
1726
1726
  description: string;
1727
1727
  metadata: Record<string, unknown> | null;
1728
- quantity: number;
1729
1728
  notes: string | null;
1729
+ quantity: number;
1730
1730
  taxAmountCents: number | null;
1731
1731
  feeAmountCents: number | null;
1732
1732
  stayFolioId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/hospitality",
3
- "version": "0.24.1",
3
+ "version": "0.24.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,16 +39,16 @@
39
39
  "drizzle-orm": "^0.45.2",
40
40
  "hono": "^4.12.10",
41
41
  "zod": "^4.3.6",
42
- "@voyantjs/bookings": "0.24.1",
43
- "@voyantjs/core": "0.24.1",
44
- "@voyantjs/db": "0.24.1",
45
- "@voyantjs/facilities": "0.24.1",
46
- "@voyantjs/hono": "0.24.1",
47
- "@voyantjs/catalog": "0.24.1"
42
+ "@voyantjs/bookings": "0.24.3",
43
+ "@voyantjs/core": "0.24.3",
44
+ "@voyantjs/db": "0.24.3",
45
+ "@voyantjs/facilities": "0.24.3",
46
+ "@voyantjs/hono": "0.24.3",
47
+ "@voyantjs/catalog": "0.24.3"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "^6.0.2",
51
- "@voyantjs/pricing": "0.24.1",
51
+ "@voyantjs/pricing": "0.24.3",
52
52
  "@voyantjs/voyant-typescript-config": "0.1.0"
53
53
  },
54
54
  "files": [
@@ -75,7 +75,7 @@
75
75
  "lint": "biome check src/",
76
76
  "test": "vitest run",
77
77
  "build": "tsc -p tsconfig.json",
78
- "clean": "rm -rf dist"
78
+ "clean": "rm -rf dist tsconfig.tsbuildinfo"
79
79
  },
80
80
  "main": "./dist/index.js",
81
81
  "types": "./dist/index.d.ts"