@voyantjs/products 0.20.0 → 0.21.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/booking-engine/handler.d.ts +203 -0
- package/dist/booking-engine/handler.d.ts.map +1 -0
- package/dist/booking-engine/handler.js +330 -0
- package/dist/booking-engine/index.d.ts +8 -0
- package/dist/booking-engine/index.d.ts.map +1 -0
- package/dist/booking-engine/index.js +7 -0
- package/dist/catalog-policy.d.ts.map +1 -1
- package/dist/catalog-policy.js +15 -1
- package/dist/content-shape.d.ts +217 -0
- package/dist/content-shape.d.ts.map +1 -0
- package/dist/content-shape.js +159 -0
- package/dist/draft-shape.d.ts +43 -0
- package/dist/draft-shape.d.ts.map +1 -0
- package/dist/draft-shape.js +46 -0
- package/dist/events.d.ts +37 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +32 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes-content.d.ts +74 -0
- package/dist/routes-content.d.ts.map +1 -0
- package/dist/routes-content.js +117 -0
- package/dist/routes.d.ts +40 -20
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +83 -13
- package/dist/schema-core.d.ts +240 -1
- package/dist/schema-core.d.ts.map +1 -1
- package/dist/schema-core.js +49 -0
- package/dist/schema-itinerary.d.ts +18 -1
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +1 -0
- package/dist/schema-settings.d.ts +1 -1
- package/dist/schema-sourced-content.d.ts +262 -0
- package/dist/schema-sourced-content.d.ts.map +1 -0
- package/dist/schema-sourced-content.js +69 -0
- package/dist/schema-taxonomy.d.ts +17 -0
- package/dist/schema-taxonomy.d.ts.map +1 -1
- package/dist/schema-taxonomy.js +13 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -0
- package/dist/service-catalog-plane.d.ts.map +1 -1
- package/dist/service-catalog-plane.js +1 -0
- package/dist/service-content-owned.d.ts +68 -0
- package/dist/service-content-owned.d.ts.map +1 -0
- package/dist/service-content-owned.js +224 -0
- package/dist/service-content-synthesizer.d.ts +90 -0
- package/dist/service-content-synthesizer.d.ts.map +1 -0
- package/dist/service-content-synthesizer.js +171 -0
- package/dist/service-content.d.ts +106 -0
- package/dist/service-content.d.ts.map +1 -0
- package/dist/service-content.js +365 -0
- package/dist/service.d.ts +76 -22
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +4 -0
- package/dist/tasks/brochures.d.ts +1 -0
- package/dist/tasks/brochures.d.ts.map +1 -1
- package/dist/tasks/brochures.js +3 -0
- package/dist/validation-catalog.d.ts +4 -4
- package/dist/validation-config.d.ts +3 -3
- package/dist/validation-content.d.ts +34 -4
- package/dist/validation-content.d.ts.map +1 -1
- package/dist/validation-content.js +13 -0
- package/dist/validation-core.d.ts +53 -3
- package/dist/validation-core.d.ts.map +1 -1
- package/dist/validation-core.js +16 -0
- package/dist/validation-public.d.ts +9 -9
- package/dist/validation-shared.d.ts +4 -4
- package/package.json +12 -7
|
@@ -74,10 +74,10 @@ export declare const publicCatalogDestinationListQuerySchema: z.ZodObject<{
|
|
|
74
74
|
}>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
|
|
75
75
|
languageTag: z.ZodOptional<z.ZodString>;
|
|
76
76
|
destinationType: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
country: "country";
|
|
77
78
|
city: "city";
|
|
78
79
|
destination: "destination";
|
|
79
80
|
region: "region";
|
|
80
|
-
country: "country";
|
|
81
81
|
}>>;
|
|
82
82
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
83
83
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -167,10 +167,10 @@ export declare const publicCatalogDestinationSchema: z.ZodObject<{
|
|
|
167
167
|
seoTitle: z.ZodNullable<z.ZodString>;
|
|
168
168
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
169
169
|
destinationType: z.ZodEnum<{
|
|
170
|
+
country: "country";
|
|
170
171
|
city: "city";
|
|
171
172
|
destination: "destination";
|
|
172
173
|
region: "region";
|
|
173
|
-
country: "country";
|
|
174
174
|
}>;
|
|
175
175
|
sortOrder: z.ZodNumber;
|
|
176
176
|
}, z.core.$strip>;
|
|
@@ -226,6 +226,7 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
226
226
|
name: z.ZodString;
|
|
227
227
|
}, z.core.$strip>>;
|
|
228
228
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
229
|
+
accommodation: "accommodation";
|
|
229
230
|
on_request: "on_request";
|
|
230
231
|
private: "private";
|
|
231
232
|
instant_confirmation: "instant_confirmation";
|
|
@@ -237,7 +238,6 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
237
238
|
voucher_required: "voucher_required";
|
|
238
239
|
external_inventory: "external_inventory";
|
|
239
240
|
multi_day: "multi_day";
|
|
240
|
-
accommodation: "accommodation";
|
|
241
241
|
transport: "transport";
|
|
242
242
|
}>>;
|
|
243
243
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -249,10 +249,10 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
249
249
|
seoTitle: z.ZodNullable<z.ZodString>;
|
|
250
250
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
251
251
|
destinationType: z.ZodEnum<{
|
|
252
|
+
country: "country";
|
|
252
253
|
city: "city";
|
|
253
254
|
destination: "destination";
|
|
254
255
|
region: "region";
|
|
255
|
-
country: "country";
|
|
256
256
|
}>;
|
|
257
257
|
sortOrder: z.ZodNumber;
|
|
258
258
|
}, z.core.$strip>>;
|
|
@@ -346,6 +346,7 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
346
346
|
name: z.ZodString;
|
|
347
347
|
}, z.core.$strip>>;
|
|
348
348
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
349
|
+
accommodation: "accommodation";
|
|
349
350
|
on_request: "on_request";
|
|
350
351
|
private: "private";
|
|
351
352
|
instant_confirmation: "instant_confirmation";
|
|
@@ -357,7 +358,6 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
357
358
|
voucher_required: "voucher_required";
|
|
358
359
|
external_inventory: "external_inventory";
|
|
359
360
|
multi_day: "multi_day";
|
|
360
|
-
accommodation: "accommodation";
|
|
361
361
|
transport: "transport";
|
|
362
362
|
}>>;
|
|
363
363
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -369,10 +369,10 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
369
369
|
seoTitle: z.ZodNullable<z.ZodString>;
|
|
370
370
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
371
371
|
destinationType: z.ZodEnum<{
|
|
372
|
+
country: "country";
|
|
372
373
|
city: "city";
|
|
373
374
|
destination: "destination";
|
|
374
375
|
region: "region";
|
|
375
|
-
country: "country";
|
|
376
376
|
}>;
|
|
377
377
|
sortOrder: z.ZodNumber;
|
|
378
378
|
}, z.core.$strip>>;
|
|
@@ -520,6 +520,7 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
520
520
|
name: z.ZodString;
|
|
521
521
|
}, z.core.$strip>>;
|
|
522
522
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
523
|
+
accommodation: "accommodation";
|
|
523
524
|
on_request: "on_request";
|
|
524
525
|
private: "private";
|
|
525
526
|
instant_confirmation: "instant_confirmation";
|
|
@@ -531,7 +532,6 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
531
532
|
voucher_required: "voucher_required";
|
|
532
533
|
external_inventory: "external_inventory";
|
|
533
534
|
multi_day: "multi_day";
|
|
534
|
-
accommodation: "accommodation";
|
|
535
535
|
transport: "transport";
|
|
536
536
|
}>>;
|
|
537
537
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -543,10 +543,10 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
543
543
|
seoTitle: z.ZodNullable<z.ZodString>;
|
|
544
544
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
545
545
|
destinationType: z.ZodEnum<{
|
|
546
|
+
country: "country";
|
|
546
547
|
city: "city";
|
|
547
548
|
destination: "destination";
|
|
548
549
|
region: "region";
|
|
549
|
-
country: "country";
|
|
550
550
|
}>;
|
|
551
551
|
sortOrder: z.ZodNumber;
|
|
552
552
|
}, z.core.$strip>>;
|
|
@@ -624,10 +624,10 @@ export declare const publicCatalogDestinationListResponseSchema: z.ZodObject<{
|
|
|
624
624
|
seoTitle: z.ZodNullable<z.ZodString>;
|
|
625
625
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
626
626
|
destinationType: z.ZodEnum<{
|
|
627
|
+
country: "country";
|
|
627
628
|
city: "city";
|
|
628
629
|
destination: "destination";
|
|
629
630
|
region: "region";
|
|
630
|
-
country: "country";
|
|
631
631
|
}>;
|
|
632
632
|
sortOrder: z.ZodNumber;
|
|
633
633
|
}, z.core.$strip>>;
|
|
@@ -15,8 +15,8 @@ export declare const productOptionStatusSchema: z.ZodEnum<{
|
|
|
15
15
|
export declare const optionUnitTypeSchema: z.ZodEnum<{
|
|
16
16
|
service: "service";
|
|
17
17
|
other: "other";
|
|
18
|
-
person: "person";
|
|
19
18
|
group: "group";
|
|
19
|
+
person: "person";
|
|
20
20
|
room: "room";
|
|
21
21
|
vehicle: "vehicle";
|
|
22
22
|
}>;
|
|
@@ -61,6 +61,7 @@ export declare const productDeliveryFormatSchema: z.ZodEnum<{
|
|
|
61
61
|
mobile: "mobile";
|
|
62
62
|
}>;
|
|
63
63
|
export declare const productCapabilitySchema: z.ZodEnum<{
|
|
64
|
+
accommodation: "accommodation";
|
|
64
65
|
on_request: "on_request";
|
|
65
66
|
private: "private";
|
|
66
67
|
instant_confirmation: "instant_confirmation";
|
|
@@ -72,7 +73,6 @@ export declare const productCapabilitySchema: z.ZodEnum<{
|
|
|
72
73
|
voucher_required: "voucher_required";
|
|
73
74
|
external_inventory: "external_inventory";
|
|
74
75
|
multi_day: "multi_day";
|
|
75
|
-
accommodation: "accommodation";
|
|
76
76
|
transport: "transport";
|
|
77
77
|
}>;
|
|
78
78
|
export declare const productFeatureTypeSchema: z.ZodEnum<{
|
|
@@ -92,10 +92,10 @@ export declare const productLocationTypeSchema: z.ZodEnum<{
|
|
|
92
92
|
point_of_interest: "point_of_interest";
|
|
93
93
|
}>;
|
|
94
94
|
export declare const destinationTypeSchema: z.ZodEnum<{
|
|
95
|
+
country: "country";
|
|
95
96
|
city: "city";
|
|
96
97
|
destination: "destination";
|
|
97
98
|
region: "region";
|
|
98
|
-
country: "country";
|
|
99
99
|
}>;
|
|
100
100
|
export declare const productMediaTypeSchema: z.ZodEnum<{
|
|
101
101
|
image: "image";
|
|
@@ -105,8 +105,8 @@ export declare const productMediaTypeSchema: z.ZodEnum<{
|
|
|
105
105
|
export declare const languageTagSchema: z.ZodString;
|
|
106
106
|
export declare const serviceTypeSchema: z.ZodEnum<{
|
|
107
107
|
other: "other";
|
|
108
|
-
transfer: "transfer";
|
|
109
108
|
accommodation: "accommodation";
|
|
109
|
+
transfer: "transfer";
|
|
110
110
|
experience: "experience";
|
|
111
111
|
guide: "guide";
|
|
112
112
|
meal: "meal";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/products",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
"types": "./dist/booking-extension.d.ts",
|
|
44
44
|
"import": "./dist/booking-extension.js",
|
|
45
45
|
"default": "./dist/booking-extension.js"
|
|
46
|
+
},
|
|
47
|
+
"./booking-engine": {
|
|
48
|
+
"types": "./dist/booking-engine/index.d.ts",
|
|
49
|
+
"import": "./dist/booking-engine/index.js",
|
|
50
|
+
"default": "./dist/booking-engine/index.js"
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
53
|
"dependencies": {
|
|
@@ -50,12 +55,12 @@
|
|
|
50
55
|
"hono": "^4.12.10",
|
|
51
56
|
"pdf-lib": "^1.17.1",
|
|
52
57
|
"zod": "^4.3.6",
|
|
53
|
-
"@voyantjs/core": "0.
|
|
54
|
-
"@voyantjs/db": "0.
|
|
55
|
-
"@voyantjs/hono": "0.
|
|
56
|
-
"@voyantjs/utils": "0.
|
|
57
|
-
"@voyantjs/catalog": "0.
|
|
58
|
-
"@voyantjs/storage": "0.
|
|
58
|
+
"@voyantjs/core": "0.21.0",
|
|
59
|
+
"@voyantjs/db": "0.21.0",
|
|
60
|
+
"@voyantjs/hono": "0.21.0",
|
|
61
|
+
"@voyantjs/utils": "0.21.0",
|
|
62
|
+
"@voyantjs/catalog": "0.21.0",
|
|
63
|
+
"@voyantjs/storage": "0.21.0"
|
|
59
64
|
},
|
|
60
65
|
"devDependencies": {
|
|
61
66
|
"typescript": "^6.0.2",
|