@voyantjs/bookings 0.7.0 → 0.9.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-public.d.ts +5 -5
- package/dist/routes.d.ts +5 -5
- package/dist/schema-items.d.ts +2 -2
- package/dist/service-public.d.ts +14 -14
- package/dist/service.d.ts +8 -8
- package/dist/validation-public.d.ts +11 -11
- package/dist/validation-shared.d.ts +2 -2
- package/dist/validation.d.ts +8 -8
- package/package.json +6 -6
package/dist/routes-public.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
78
78
|
id: string;
|
|
79
79
|
title: string;
|
|
80
80
|
description: string | null;
|
|
81
|
-
itemType: "service" | "
|
|
81
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
82
82
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
83
83
|
serviceDate: string | null;
|
|
84
84
|
startsAt: string | null;
|
|
@@ -111,7 +111,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
111
111
|
pricingCategoryId: string | null;
|
|
112
112
|
availabilitySlotId: string | null;
|
|
113
113
|
quantity: number;
|
|
114
|
-
allocationType: "
|
|
114
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
115
115
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
116
116
|
holdExpiresAt: string | null;
|
|
117
117
|
confirmedAt: string | null;
|
|
@@ -353,7 +353,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
353
353
|
id: string;
|
|
354
354
|
title: string;
|
|
355
355
|
description: string | null;
|
|
356
|
-
itemType: "service" | "
|
|
356
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
357
357
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
358
358
|
serviceDate: string | null;
|
|
359
359
|
startsAt: string | null;
|
|
@@ -386,7 +386,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
386
386
|
pricingCategoryId: string | null;
|
|
387
387
|
availabilitySlotId: string | null;
|
|
388
388
|
quantity: number;
|
|
389
|
-
allocationType: "
|
|
389
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
390
390
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
391
391
|
holdExpiresAt: string | null;
|
|
392
392
|
confirmedAt: string | null;
|
|
@@ -527,7 +527,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
527
527
|
id: string;
|
|
528
528
|
title: string;
|
|
529
529
|
description: string | null;
|
|
530
|
-
itemType: "service" | "
|
|
530
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
531
531
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
532
532
|
serviceDate: string | null;
|
|
533
533
|
startsAt: string | null;
|
package/dist/routes.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
169
169
|
id: string;
|
|
170
170
|
title: string;
|
|
171
171
|
description: string | null;
|
|
172
|
-
itemType: "service" | "
|
|
172
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
173
173
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
174
174
|
serviceDate: string | null;
|
|
175
175
|
startsAt: string | null;
|
|
@@ -1072,7 +1072,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
1072
1072
|
pricingCategoryId: string | null;
|
|
1073
1073
|
availabilitySlotId: string | null;
|
|
1074
1074
|
quantity: number;
|
|
1075
|
-
allocationType: "
|
|
1075
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
1076
1076
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
1077
1077
|
holdExpiresAt: string | null;
|
|
1078
1078
|
confirmedAt: string | null;
|
|
@@ -1296,7 +1296,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
1296
1296
|
bookingId: string;
|
|
1297
1297
|
title: string;
|
|
1298
1298
|
description: string | null;
|
|
1299
|
-
itemType: "service" | "
|
|
1299
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1300
1300
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
1301
1301
|
serviceDate: string | null;
|
|
1302
1302
|
startsAt: string | null;
|
|
@@ -1364,7 +1364,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
1364
1364
|
bookingId: string;
|
|
1365
1365
|
optionUnitId: string | null;
|
|
1366
1366
|
title: string;
|
|
1367
|
-
itemType: "service" | "
|
|
1367
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1368
1368
|
serviceDate: string | null;
|
|
1369
1369
|
quantity: number;
|
|
1370
1370
|
unitSellAmountCents: number | null;
|
|
@@ -1410,7 +1410,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
1410
1410
|
bookingId: string;
|
|
1411
1411
|
title: string;
|
|
1412
1412
|
description: string | null;
|
|
1413
|
-
itemType: "service" | "
|
|
1413
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1414
1414
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
1415
1415
|
serviceDate: string | null;
|
|
1416
1416
|
startsAt: string | null;
|
package/dist/schema-items.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const bookingItems: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
75
75
|
tableName: "booking_items";
|
|
76
76
|
dataType: "string";
|
|
77
77
|
columnType: "PgEnumColumn";
|
|
78
|
-
data: "service" | "
|
|
78
|
+
data: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
79
79
|
driverParam: string;
|
|
80
80
|
notNull: true;
|
|
81
81
|
hasDefault: true;
|
|
@@ -611,7 +611,7 @@ export declare const bookingAllocations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
611
611
|
tableName: "booking_allocations";
|
|
612
612
|
dataType: "string";
|
|
613
613
|
columnType: "PgEnumColumn";
|
|
614
|
-
data: "
|
|
614
|
+
data: "unit" | "resource" | "pickup";
|
|
615
615
|
driverParam: string;
|
|
616
616
|
notNull: true;
|
|
617
617
|
hasDefault: true;
|
package/dist/service-public.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export declare const publicBookingsService: {
|
|
|
92
92
|
id: string;
|
|
93
93
|
title: string;
|
|
94
94
|
description: string | null;
|
|
95
|
-
itemType: "service" | "
|
|
95
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
96
96
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
97
97
|
serviceDate: string | null;
|
|
98
98
|
startsAt: string | null;
|
|
@@ -125,7 +125,7 @@ export declare const publicBookingsService: {
|
|
|
125
125
|
pricingCategoryId: string | null;
|
|
126
126
|
availabilitySlotId: string | null;
|
|
127
127
|
quantity: number;
|
|
128
|
-
allocationType: "
|
|
128
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
129
129
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
130
130
|
holdExpiresAt: string | null;
|
|
131
131
|
confirmedAt: string | null;
|
|
@@ -184,7 +184,7 @@ export declare const publicBookingsService: {
|
|
|
184
184
|
id: string;
|
|
185
185
|
title: string;
|
|
186
186
|
description: string | null;
|
|
187
|
-
itemType: "service" | "
|
|
187
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
188
188
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
189
189
|
serviceDate: string | null;
|
|
190
190
|
startsAt: string | null;
|
|
@@ -217,7 +217,7 @@ export declare const publicBookingsService: {
|
|
|
217
217
|
pricingCategoryId: string | null;
|
|
218
218
|
availabilitySlotId: string | null;
|
|
219
219
|
quantity: number;
|
|
220
|
-
allocationType: "
|
|
220
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
221
221
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
222
222
|
holdExpiresAt: string | null;
|
|
223
223
|
confirmedAt: string | null;
|
|
@@ -305,7 +305,7 @@ export declare const publicBookingsService: {
|
|
|
305
305
|
id: string;
|
|
306
306
|
title: string;
|
|
307
307
|
description: string | null;
|
|
308
|
-
itemType: "service" | "
|
|
308
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
309
309
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
310
310
|
serviceDate: string | null;
|
|
311
311
|
startsAt: string | null;
|
|
@@ -338,7 +338,7 @@ export declare const publicBookingsService: {
|
|
|
338
338
|
pricingCategoryId: string | null;
|
|
339
339
|
availabilitySlotId: string | null;
|
|
340
340
|
quantity: number;
|
|
341
|
-
allocationType: "
|
|
341
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
342
342
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
343
343
|
holdExpiresAt: string | null;
|
|
344
344
|
confirmedAt: string | null;
|
|
@@ -438,7 +438,7 @@ export declare const publicBookingsService: {
|
|
|
438
438
|
id: string;
|
|
439
439
|
title: string;
|
|
440
440
|
description: string | null;
|
|
441
|
-
itemType: "service" | "
|
|
441
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
442
442
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
443
443
|
serviceDate: string | null;
|
|
444
444
|
startsAt: string | null;
|
|
@@ -471,7 +471,7 @@ export declare const publicBookingsService: {
|
|
|
471
471
|
pricingCategoryId: string | null;
|
|
472
472
|
availabilitySlotId: string | null;
|
|
473
473
|
quantity: number;
|
|
474
|
-
allocationType: "
|
|
474
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
475
475
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
476
476
|
holdExpiresAt: string | null;
|
|
477
477
|
confirmedAt: string | null;
|
|
@@ -534,7 +534,7 @@ export declare const publicBookingsService: {
|
|
|
534
534
|
id: string;
|
|
535
535
|
title: string;
|
|
536
536
|
description: string | null;
|
|
537
|
-
itemType: "service" | "
|
|
537
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
538
538
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
539
539
|
serviceDate: string | null;
|
|
540
540
|
startsAt: string | null;
|
|
@@ -567,7 +567,7 @@ export declare const publicBookingsService: {
|
|
|
567
567
|
pricingCategoryId: string | null;
|
|
568
568
|
availabilitySlotId: string | null;
|
|
569
569
|
quantity: number;
|
|
570
|
-
allocationType: "
|
|
570
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
571
571
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
572
572
|
holdExpiresAt: string | null;
|
|
573
573
|
confirmedAt: string | null;
|
|
@@ -630,7 +630,7 @@ export declare const publicBookingsService: {
|
|
|
630
630
|
id: string;
|
|
631
631
|
title: string;
|
|
632
632
|
description: string | null;
|
|
633
|
-
itemType: "service" | "
|
|
633
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
634
634
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
635
635
|
serviceDate: string | null;
|
|
636
636
|
startsAt: string | null;
|
|
@@ -663,7 +663,7 @@ export declare const publicBookingsService: {
|
|
|
663
663
|
pricingCategoryId: string | null;
|
|
664
664
|
availabilitySlotId: string | null;
|
|
665
665
|
quantity: number;
|
|
666
|
-
allocationType: "
|
|
666
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
667
667
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
668
668
|
holdExpiresAt: string | null;
|
|
669
669
|
confirmedAt: string | null;
|
|
@@ -711,7 +711,7 @@ export declare const publicBookingsService: {
|
|
|
711
711
|
id: string;
|
|
712
712
|
title: string;
|
|
713
713
|
description: string | null;
|
|
714
|
-
itemType: "service" | "
|
|
714
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
715
715
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
716
716
|
serviceDate: string | null;
|
|
717
717
|
startsAt: string | null;
|
|
@@ -775,7 +775,7 @@ export declare const publicBookingsService: {
|
|
|
775
775
|
id: string;
|
|
776
776
|
title: string;
|
|
777
777
|
description: string | null;
|
|
778
|
-
itemType: "service" | "
|
|
778
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
779
779
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
780
780
|
serviceDate: string | null;
|
|
781
781
|
startsAt: string | null;
|
package/dist/service.d.ts
CHANGED
|
@@ -472,7 +472,7 @@ export declare const bookingsService: {
|
|
|
472
472
|
tableName: "booking_allocations";
|
|
473
473
|
dataType: "string";
|
|
474
474
|
columnType: "PgEnumColumn";
|
|
475
|
-
data: "
|
|
475
|
+
data: "unit" | "resource" | "pickup";
|
|
476
476
|
driverParam: string;
|
|
477
477
|
notNull: true;
|
|
478
478
|
hasDefault: true;
|
|
@@ -615,7 +615,7 @@ export declare const bookingsService: {
|
|
|
615
615
|
pricingCategoryId: string | null;
|
|
616
616
|
availabilitySlotId: string | null;
|
|
617
617
|
quantity: number;
|
|
618
|
-
allocationType: "
|
|
618
|
+
allocationType: "unit" | "resource" | "pickup";
|
|
619
619
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
620
620
|
holdExpiresAt: Date | null;
|
|
621
621
|
confirmedAt: Date | null;
|
|
@@ -782,7 +782,7 @@ export declare const bookingsService: {
|
|
|
782
782
|
tableName: "booking_allocations";
|
|
783
783
|
dataType: "string";
|
|
784
784
|
columnType: "PgEnumColumn";
|
|
785
|
-
data: "
|
|
785
|
+
data: "unit" | "resource" | "pickup";
|
|
786
786
|
driverParam: string;
|
|
787
787
|
notNull: true;
|
|
788
788
|
hasDefault: true;
|
|
@@ -1983,7 +1983,7 @@ export declare const bookingsService: {
|
|
|
1983
1983
|
tableName: "booking_items";
|
|
1984
1984
|
dataType: "string";
|
|
1985
1985
|
columnType: "PgEnumColumn";
|
|
1986
|
-
data: "service" | "
|
|
1986
|
+
data: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
1987
1987
|
driverParam: string;
|
|
1988
1988
|
notNull: true;
|
|
1989
1989
|
hasDefault: true;
|
|
@@ -2359,7 +2359,7 @@ export declare const bookingsService: {
|
|
|
2359
2359
|
bookingId: string;
|
|
2360
2360
|
title: string;
|
|
2361
2361
|
description: string | null;
|
|
2362
|
-
itemType: "service" | "
|
|
2362
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
2363
2363
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
2364
2364
|
serviceDate: string | null;
|
|
2365
2365
|
startsAt: Date | null;
|
|
@@ -2455,7 +2455,7 @@ export declare const bookingsService: {
|
|
|
2455
2455
|
tableName: "booking_items";
|
|
2456
2456
|
dataType: "string";
|
|
2457
2457
|
columnType: "PgEnumColumn";
|
|
2458
|
-
data: "service" | "
|
|
2458
|
+
data: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
2459
2459
|
driverParam: string;
|
|
2460
2460
|
notNull: true;
|
|
2461
2461
|
hasDefault: true;
|
|
@@ -2843,7 +2843,7 @@ export declare const bookingsService: {
|
|
|
2843
2843
|
bookingId: string;
|
|
2844
2844
|
optionUnitId: string | null;
|
|
2845
2845
|
title: string;
|
|
2846
|
-
itemType: "service" | "
|
|
2846
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
2847
2847
|
serviceDate: string | null;
|
|
2848
2848
|
quantity: number;
|
|
2849
2849
|
unitSellAmountCents: number | null;
|
|
@@ -2860,7 +2860,7 @@ export declare const bookingsService: {
|
|
|
2860
2860
|
bookingId: string;
|
|
2861
2861
|
title: string;
|
|
2862
2862
|
description: string | null;
|
|
2863
|
-
itemType: "service" | "
|
|
2863
|
+
itemType: "service" | "unit" | "other" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
2864
2864
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
2865
2865
|
serviceDate: string | null;
|
|
2866
2866
|
startsAt: Date | null;
|
|
@@ -27,8 +27,8 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
|
|
|
27
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
itemType: z.ZodDefault<z.ZodEnum<{
|
|
29
29
|
service: "service";
|
|
30
|
-
other: "other";
|
|
31
30
|
unit: "unit";
|
|
31
|
+
other: "other";
|
|
32
32
|
extra: "extra";
|
|
33
33
|
fee: "fee";
|
|
34
34
|
tax: "tax";
|
|
@@ -53,8 +53,8 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
|
|
|
53
53
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
54
|
availabilitySlotId: z.ZodString;
|
|
55
55
|
allocationType: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
resource: "resource";
|
|
57
56
|
unit: "unit";
|
|
57
|
+
resource: "resource";
|
|
58
58
|
pickup: "pickup";
|
|
59
59
|
}>>;
|
|
60
60
|
}, z.core.$strip>;
|
|
@@ -78,8 +78,8 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
|
|
|
78
78
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
79
|
itemType: z.ZodDefault<z.ZodEnum<{
|
|
80
80
|
service: "service";
|
|
81
|
-
other: "other";
|
|
82
81
|
unit: "unit";
|
|
82
|
+
other: "other";
|
|
83
83
|
extra: "extra";
|
|
84
84
|
fee: "fee";
|
|
85
85
|
tax: "tax";
|
|
@@ -104,8 +104,8 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
|
|
|
104
104
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
105
105
|
availabilitySlotId: z.ZodString;
|
|
106
106
|
allocationType: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
resource: "resource";
|
|
108
107
|
unit: "unit";
|
|
108
|
+
resource: "resource";
|
|
109
109
|
pickup: "pickup";
|
|
110
110
|
}>>;
|
|
111
111
|
}, z.core.$strip>>;
|
|
@@ -252,8 +252,8 @@ export declare const publicBookingSessionItemSchema: z.ZodObject<{
|
|
|
252
252
|
description: z.ZodNullable<z.ZodString>;
|
|
253
253
|
itemType: z.ZodEnum<{
|
|
254
254
|
service: "service";
|
|
255
|
-
other: "other";
|
|
256
255
|
unit: "unit";
|
|
256
|
+
other: "other";
|
|
257
257
|
extra: "extra";
|
|
258
258
|
fee: "fee";
|
|
259
259
|
tax: "tax";
|
|
@@ -307,8 +307,8 @@ export declare const publicBookingSessionAllocationSchema: z.ZodObject<{
|
|
|
307
307
|
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
308
308
|
quantity: z.ZodNumber;
|
|
309
309
|
allocationType: z.ZodEnum<{
|
|
310
|
-
resource: "resource";
|
|
311
310
|
unit: "unit";
|
|
311
|
+
resource: "resource";
|
|
312
312
|
pickup: "pickup";
|
|
313
313
|
}>;
|
|
314
314
|
status: z.ZodEnum<{
|
|
@@ -384,8 +384,8 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
|
|
|
384
384
|
description: z.ZodNullable<z.ZodString>;
|
|
385
385
|
itemType: z.ZodEnum<{
|
|
386
386
|
service: "service";
|
|
387
|
-
other: "other";
|
|
388
387
|
unit: "unit";
|
|
388
|
+
other: "other";
|
|
389
389
|
extra: "extra";
|
|
390
390
|
fee: "fee";
|
|
391
391
|
tax: "tax";
|
|
@@ -439,8 +439,8 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
|
|
|
439
439
|
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
440
440
|
quantity: z.ZodNumber;
|
|
441
441
|
allocationType: z.ZodEnum<{
|
|
442
|
-
resource: "resource";
|
|
443
442
|
unit: "unit";
|
|
443
|
+
resource: "resource";
|
|
444
444
|
pickup: "pickup";
|
|
445
445
|
}>;
|
|
446
446
|
status: z.ZodEnum<{
|
|
@@ -589,8 +589,8 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
|
|
|
589
589
|
description: z.ZodNullable<z.ZodString>;
|
|
590
590
|
itemType: z.ZodEnum<{
|
|
591
591
|
service: "service";
|
|
592
|
-
other: "other";
|
|
593
592
|
unit: "unit";
|
|
593
|
+
other: "other";
|
|
594
594
|
extra: "extra";
|
|
595
595
|
fee: "fee";
|
|
596
596
|
tax: "tax";
|
|
@@ -644,8 +644,8 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
|
|
|
644
644
|
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
645
645
|
quantity: z.ZodNumber;
|
|
646
646
|
allocationType: z.ZodEnum<{
|
|
647
|
-
resource: "resource";
|
|
648
647
|
unit: "unit";
|
|
648
|
+
resource: "resource";
|
|
649
649
|
pickup: "pickup";
|
|
650
650
|
}>;
|
|
651
651
|
status: z.ZodEnum<{
|
|
@@ -769,8 +769,8 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
|
|
|
769
769
|
description: z.ZodNullable<z.ZodString>;
|
|
770
770
|
itemType: z.ZodEnum<{
|
|
771
771
|
service: "service";
|
|
772
|
-
other: "other";
|
|
773
772
|
unit: "unit";
|
|
773
|
+
other: "other";
|
|
774
774
|
extra: "extra";
|
|
775
775
|
fee: "fee";
|
|
776
776
|
tax: "tax";
|
|
@@ -37,8 +37,8 @@ export declare const bookingTravelerCategorySchema: z.ZodEnum<{
|
|
|
37
37
|
}>;
|
|
38
38
|
export declare const bookingItemTypeSchema: z.ZodEnum<{
|
|
39
39
|
service: "service";
|
|
40
|
-
other: "other";
|
|
41
40
|
unit: "unit";
|
|
41
|
+
other: "other";
|
|
42
42
|
extra: "extra";
|
|
43
43
|
fee: "fee";
|
|
44
44
|
tax: "tax";
|
|
@@ -66,8 +66,8 @@ export declare const bookingStaffAssignmentRoleSchema: z.ZodEnum<{
|
|
|
66
66
|
service_assignee: "service_assignee";
|
|
67
67
|
}>;
|
|
68
68
|
export declare const bookingAllocationTypeSchema: z.ZodEnum<{
|
|
69
|
-
resource: "resource";
|
|
70
69
|
unit: "unit";
|
|
70
|
+
resource: "resource";
|
|
71
71
|
pickup: "pickup";
|
|
72
72
|
}>;
|
|
73
73
|
export declare const bookingAllocationStatusSchema: z.ZodEnum<{
|
package/dist/validation.d.ts
CHANGED
|
@@ -208,8 +208,8 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
|
|
|
208
208
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
209
209
|
itemType: z.ZodDefault<z.ZodEnum<{
|
|
210
210
|
service: "service";
|
|
211
|
-
other: "other";
|
|
212
211
|
unit: "unit";
|
|
212
|
+
other: "other";
|
|
213
213
|
extra: "extra";
|
|
214
214
|
fee: "fee";
|
|
215
215
|
tax: "tax";
|
|
@@ -234,8 +234,8 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
|
|
|
234
234
|
sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
235
|
availabilitySlotId: z.ZodString;
|
|
236
236
|
allocationType: z.ZodDefault<z.ZodEnum<{
|
|
237
|
-
resource: "resource";
|
|
238
237
|
unit: "unit";
|
|
238
|
+
resource: "resource";
|
|
239
239
|
pickup: "pickup";
|
|
240
240
|
}>>;
|
|
241
241
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -283,8 +283,8 @@ export declare const reserveBookingSchema: z.ZodObject<{
|
|
|
283
283
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
284
284
|
itemType: z.ZodDefault<z.ZodEnum<{
|
|
285
285
|
service: "service";
|
|
286
|
-
other: "other";
|
|
287
286
|
unit: "unit";
|
|
287
|
+
other: "other";
|
|
288
288
|
extra: "extra";
|
|
289
289
|
fee: "fee";
|
|
290
290
|
tax: "tax";
|
|
@@ -309,8 +309,8 @@ export declare const reserveBookingSchema: z.ZodObject<{
|
|
|
309
309
|
sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
310
310
|
availabilitySlotId: z.ZodString;
|
|
311
311
|
allocationType: z.ZodDefault<z.ZodEnum<{
|
|
312
|
-
resource: "resource";
|
|
313
312
|
unit: "unit";
|
|
313
|
+
resource: "resource";
|
|
314
314
|
pickup: "pickup";
|
|
315
315
|
}>>;
|
|
316
316
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -457,8 +457,8 @@ export declare const insertBookingItemSchema: z.ZodObject<{
|
|
|
457
457
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
458
458
|
itemType: z.ZodDefault<z.ZodEnum<{
|
|
459
459
|
service: "service";
|
|
460
|
-
other: "other";
|
|
461
460
|
unit: "unit";
|
|
461
|
+
other: "other";
|
|
462
462
|
extra: "extra";
|
|
463
463
|
fee: "fee";
|
|
464
464
|
tax: "tax";
|
|
@@ -499,8 +499,8 @@ export declare const updateBookingItemSchema: z.ZodObject<{
|
|
|
499
499
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
500
500
|
itemType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
501
501
|
service: "service";
|
|
502
|
-
other: "other";
|
|
503
502
|
unit: "unit";
|
|
503
|
+
other: "other";
|
|
504
504
|
extra: "extra";
|
|
505
505
|
fee: "fee";
|
|
506
506
|
tax: "tax";
|
|
@@ -545,8 +545,8 @@ export declare const insertBookingAllocationSchema: z.ZodObject<{
|
|
|
545
545
|
availabilitySlotId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
546
546
|
quantity: z.ZodDefault<z.ZodNumber>;
|
|
547
547
|
allocationType: z.ZodDefault<z.ZodEnum<{
|
|
548
|
-
resource: "resource";
|
|
549
548
|
unit: "unit";
|
|
549
|
+
resource: "resource";
|
|
550
550
|
pickup: "pickup";
|
|
551
551
|
}>>;
|
|
552
552
|
status: z.ZodDefault<z.ZodEnum<{
|
|
@@ -571,8 +571,8 @@ export declare const updateBookingAllocationSchema: z.ZodObject<{
|
|
|
571
571
|
availabilitySlotId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
572
572
|
quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
573
573
|
allocationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
574
|
-
resource: "resource";
|
|
575
574
|
unit: "unit";
|
|
575
|
+
resource: "resource";
|
|
576
576
|
pickup: "pickup";
|
|
577
577
|
}>>>;
|
|
578
578
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"drizzle-orm": "^0.45.2",
|
|
50
50
|
"hono": "^4.12.10",
|
|
51
51
|
"zod": "^4.3.6",
|
|
52
|
-
"@voyantjs/core": "0.
|
|
53
|
-
"@voyantjs/db": "0.
|
|
54
|
-
"@voyantjs/hono": "0.
|
|
55
|
-
"@voyantjs/utils": "0.
|
|
52
|
+
"@voyantjs/core": "0.9.0",
|
|
53
|
+
"@voyantjs/db": "0.9.0",
|
|
54
|
+
"@voyantjs/hono": "0.9.0",
|
|
55
|
+
"@voyantjs/utils": "0.9.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^6.0.2",
|
|
59
|
-
"@voyantjs/products": "0.
|
|
59
|
+
"@voyantjs/products": "0.9.0",
|
|
60
60
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|