@voyantjs/storefront 0.52.1 → 0.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes-public.d.ts +5 -5
- package/dist/service.d.ts +5 -5
- package/dist/validation.d.ts +12 -12
- package/package.json +12 -12
package/dist/routes-public.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
|
|
|
126
126
|
data: {
|
|
127
127
|
id: string;
|
|
128
128
|
personId: string;
|
|
129
|
-
kind: "
|
|
129
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
130
130
|
source: "admin" | "form" | "phone" | "booking" | "website" | "abandoned_cart";
|
|
131
131
|
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
132
132
|
duplicate: boolean;
|
|
@@ -151,7 +151,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
|
|
|
151
151
|
data: {
|
|
152
152
|
id: string;
|
|
153
153
|
personId: string;
|
|
154
|
-
kind: "
|
|
154
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
155
155
|
source: "admin" | "form" | "phone" | "booking" | "website" | "abandoned_cart";
|
|
156
156
|
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
157
157
|
duplicate: boolean;
|
|
@@ -372,7 +372,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
|
|
|
372
372
|
endAt: string | null;
|
|
373
373
|
timezone: string;
|
|
374
374
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
375
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
375
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
376
376
|
capacity: number | null;
|
|
377
377
|
remaining: number | null;
|
|
378
378
|
pastCutoff: boolean;
|
|
@@ -1106,7 +1106,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
|
|
|
1106
1106
|
output: {
|
|
1107
1107
|
data: {
|
|
1108
1108
|
productId: string;
|
|
1109
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
1109
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
1110
1110
|
counts: {
|
|
1111
1111
|
total: number;
|
|
1112
1112
|
open: number;
|
|
@@ -1127,7 +1127,7 @@ export declare function createStorefrontPublicRoutes(options?: StorefrontService
|
|
|
1127
1127
|
endAt: string | null;
|
|
1128
1128
|
timezone: string;
|
|
1129
1129
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
1130
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
1130
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
1131
1131
|
capacity: number | null;
|
|
1132
1132
|
remaining: number | null;
|
|
1133
1133
|
pastCutoff: boolean;
|
package/dist/service.d.ts
CHANGED
|
@@ -398,7 +398,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
|
|
|
398
398
|
endAt: string | null;
|
|
399
399
|
timezone: string;
|
|
400
400
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
401
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
401
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
402
402
|
capacity: number | null;
|
|
403
403
|
remaining: number | null;
|
|
404
404
|
pastCutoff: boolean;
|
|
@@ -721,7 +721,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
|
|
|
721
721
|
}>;
|
|
722
722
|
getProductAvailabilitySummary(db: PostgresJsDatabase, productId: string, query: StorefrontProductAvailabilitySummaryQuery): Promise<{
|
|
723
723
|
productId: string;
|
|
724
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
724
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
725
725
|
counts: {
|
|
726
726
|
total: number;
|
|
727
727
|
open: number;
|
|
@@ -742,7 +742,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
|
|
|
742
742
|
endAt: string | null;
|
|
743
743
|
timezone: string;
|
|
744
744
|
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
745
|
-
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "
|
|
745
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "available" | "on_request" | "unavailable";
|
|
746
746
|
capacity: number | null;
|
|
747
747
|
remaining: number | null;
|
|
748
748
|
pastCutoff: boolean;
|
|
@@ -1028,7 +1028,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
|
|
|
1028
1028
|
}): Promise<{
|
|
1029
1029
|
id: string;
|
|
1030
1030
|
personId: string;
|
|
1031
|
-
kind: "
|
|
1031
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
1032
1032
|
source: "admin" | "form" | "phone" | "booking" | "website" | "abandoned_cart";
|
|
1033
1033
|
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
1034
1034
|
duplicate: boolean;
|
|
@@ -1039,7 +1039,7 @@ export declare function createStorefrontService(options?: StorefrontServiceOptio
|
|
|
1039
1039
|
}): Promise<{
|
|
1040
1040
|
id: string;
|
|
1041
1041
|
personId: string;
|
|
1042
|
-
kind: "
|
|
1042
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
1043
1043
|
source: "admin" | "form" | "phone" | "booking" | "website" | "abandoned_cart";
|
|
1044
1044
|
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
1045
1045
|
duplicate: boolean;
|
package/dist/validation.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare const storefrontLeadContactSchema: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const storefrontLeadIntakeInputSchema: z.ZodObject<{
|
|
19
19
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
20
|
-
wishlist: "wishlist";
|
|
21
20
|
notify: "notify";
|
|
21
|
+
wishlist: "wishlist";
|
|
22
22
|
inquiry: "inquiry";
|
|
23
23
|
request_offer: "request_offer";
|
|
24
24
|
referral: "referral";
|
|
@@ -84,8 +84,8 @@ export declare const storefrontIntakeResponseSchema: z.ZodObject<{
|
|
|
84
84
|
id: z.ZodString;
|
|
85
85
|
personId: z.ZodString;
|
|
86
86
|
kind: z.ZodEnum<{
|
|
87
|
-
wishlist: "wishlist";
|
|
88
87
|
notify: "notify";
|
|
88
|
+
wishlist: "wishlist";
|
|
89
89
|
inquiry: "inquiry";
|
|
90
90
|
request_offer: "request_offer";
|
|
91
91
|
referral: "referral";
|
|
@@ -112,8 +112,8 @@ export declare const storefrontNewsletterSubscribeResponseSchema: z.ZodObject<{
|
|
|
112
112
|
id: z.ZodString;
|
|
113
113
|
personId: z.ZodString;
|
|
114
114
|
kind: z.ZodEnum<{
|
|
115
|
-
wishlist: "wishlist";
|
|
116
115
|
notify: "notify";
|
|
116
|
+
wishlist: "wishlist";
|
|
117
117
|
inquiry: "inquiry";
|
|
118
118
|
request_offer: "request_offer";
|
|
119
119
|
referral: "referral";
|
|
@@ -326,9 +326,9 @@ export declare const storefrontProductAvailabilityStateSchema: z.ZodEnum<{
|
|
|
326
326
|
sold_out: "sold_out";
|
|
327
327
|
past_cutoff: "past_cutoff";
|
|
328
328
|
too_early: "too_early";
|
|
329
|
+
available: "available";
|
|
329
330
|
on_request: "on_request";
|
|
330
331
|
unavailable: "unavailable";
|
|
331
|
-
available: "available";
|
|
332
332
|
}>;
|
|
333
333
|
export declare const storefrontProductAvailabilitySummaryQuerySchema: z.ZodObject<{
|
|
334
334
|
optionId: z.ZodOptional<z.ZodString>;
|
|
@@ -366,9 +366,9 @@ export declare const storefrontProductAvailabilitySlotSchema: z.ZodObject<{
|
|
|
366
366
|
sold_out: "sold_out";
|
|
367
367
|
past_cutoff: "past_cutoff";
|
|
368
368
|
too_early: "too_early";
|
|
369
|
+
available: "available";
|
|
369
370
|
on_request: "on_request";
|
|
370
371
|
unavailable: "unavailable";
|
|
371
|
-
available: "available";
|
|
372
372
|
}>;
|
|
373
373
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
374
374
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -383,9 +383,9 @@ export declare const storefrontProductAvailabilitySummarySchema: z.ZodObject<{
|
|
|
383
383
|
sold_out: "sold_out";
|
|
384
384
|
past_cutoff: "past_cutoff";
|
|
385
385
|
too_early: "too_early";
|
|
386
|
+
available: "available";
|
|
386
387
|
on_request: "on_request";
|
|
387
388
|
unavailable: "unavailable";
|
|
388
|
-
available: "available";
|
|
389
389
|
}>;
|
|
390
390
|
counts: z.ZodObject<{
|
|
391
391
|
total: z.ZodNumber;
|
|
@@ -419,9 +419,9 @@ export declare const storefrontProductAvailabilitySummarySchema: z.ZodObject<{
|
|
|
419
419
|
sold_out: "sold_out";
|
|
420
420
|
past_cutoff: "past_cutoff";
|
|
421
421
|
too_early: "too_early";
|
|
422
|
+
available: "available";
|
|
422
423
|
on_request: "on_request";
|
|
423
424
|
unavailable: "unavailable";
|
|
424
|
-
available: "available";
|
|
425
425
|
}>;
|
|
426
426
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
427
427
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -441,9 +441,9 @@ export declare const storefrontProductAvailabilitySummaryResponseSchema: z.ZodOb
|
|
|
441
441
|
sold_out: "sold_out";
|
|
442
442
|
past_cutoff: "past_cutoff";
|
|
443
443
|
too_early: "too_early";
|
|
444
|
+
available: "available";
|
|
444
445
|
on_request: "on_request";
|
|
445
446
|
unavailable: "unavailable";
|
|
446
|
-
available: "available";
|
|
447
447
|
}>;
|
|
448
448
|
counts: z.ZodObject<{
|
|
449
449
|
total: z.ZodNumber;
|
|
@@ -477,9 +477,9 @@ export declare const storefrontProductAvailabilitySummaryResponseSchema: z.ZodOb
|
|
|
477
477
|
sold_out: "sold_out";
|
|
478
478
|
past_cutoff: "past_cutoff";
|
|
479
479
|
too_early: "too_early";
|
|
480
|
+
available: "available";
|
|
480
481
|
on_request: "on_request";
|
|
481
482
|
unavailable: "unavailable";
|
|
482
|
-
available: "available";
|
|
483
483
|
}>;
|
|
484
484
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
485
485
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -541,9 +541,9 @@ export declare const storefrontDeparturePriceSlotSchema: z.ZodObject<{
|
|
|
541
541
|
sold_out: "sold_out";
|
|
542
542
|
past_cutoff: "past_cutoff";
|
|
543
543
|
too_early: "too_early";
|
|
544
|
+
available: "available";
|
|
544
545
|
on_request: "on_request";
|
|
545
546
|
unavailable: "unavailable";
|
|
546
|
-
available: "available";
|
|
547
547
|
}>;
|
|
548
548
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
549
549
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -602,9 +602,9 @@ export declare const storefrontDeparturePriceAllocationSchema: z.ZodObject<{
|
|
|
602
602
|
sold_out: "sold_out";
|
|
603
603
|
past_cutoff: "past_cutoff";
|
|
604
604
|
too_early: "too_early";
|
|
605
|
+
available: "available";
|
|
605
606
|
on_request: "on_request";
|
|
606
607
|
unavailable: "unavailable";
|
|
607
|
-
available: "available";
|
|
608
608
|
}>;
|
|
609
609
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
610
610
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -996,9 +996,9 @@ export declare const storefrontDeparturePricePreviewSchema: z.ZodObject<{
|
|
|
996
996
|
sold_out: "sold_out";
|
|
997
997
|
past_cutoff: "past_cutoff";
|
|
998
998
|
too_early: "too_early";
|
|
999
|
+
available: "available";
|
|
999
1000
|
on_request: "on_request";
|
|
1000
1001
|
unavailable: "unavailable";
|
|
1001
|
-
available: "available";
|
|
1002
1002
|
}>;
|
|
1003
1003
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1004
1004
|
remaining: z.ZodNullable<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"drizzle-orm": "^0.45.2",
|
|
40
40
|
"hono": "^4.12.10",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@voyantjs/availability": "0.52.
|
|
43
|
-
"@voyantjs/
|
|
44
|
-
"@voyantjs/
|
|
45
|
-
"@voyantjs/
|
|
46
|
-
"@voyantjs/extras": "0.52.
|
|
47
|
-
"@voyantjs/finance": "0.52.
|
|
48
|
-
"@voyantjs/hono": "0.52.
|
|
49
|
-
"@voyantjs/
|
|
50
|
-
"@voyantjs/
|
|
51
|
-
"@voyantjs/
|
|
42
|
+
"@voyantjs/availability": "0.52.3",
|
|
43
|
+
"@voyantjs/core": "0.52.3",
|
|
44
|
+
"@voyantjs/crm": "0.52.3",
|
|
45
|
+
"@voyantjs/bookings": "0.52.3",
|
|
46
|
+
"@voyantjs/extras": "0.52.3",
|
|
47
|
+
"@voyantjs/finance": "0.52.3",
|
|
48
|
+
"@voyantjs/hono": "0.52.3",
|
|
49
|
+
"@voyantjs/sellability": "0.52.3",
|
|
50
|
+
"@voyantjs/products": "0.52.3",
|
|
51
|
+
"@voyantjs/pricing": "0.52.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "^6.0.2",
|
|
55
55
|
"vitest": "^4.1.2",
|
|
56
|
-
"@voyantjs/db": "0.52.
|
|
56
|
+
"@voyantjs/db": "0.52.3",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"files": [
|