@voyantjs/products 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/action-ledger-drift.d.ts +29 -0
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/action-ledger-drift.js +335 -0
- package/dist/action-ledger.d.ts +104 -0
- package/dist/action-ledger.d.ts.map +1 -0
- package/dist/action-ledger.js +100 -0
- package/dist/booking-extension.d.ts +3 -3
- package/dist/catalog-policy.d.ts.map +1 -1
- package/dist/catalog-policy.js +18 -0
- package/dist/content-shape.d.ts +2 -0
- package/dist/content-shape.d.ts.map +1 -1
- package/dist/content-shape.js +2 -0
- package/dist/events.d.ts +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/route-env.d.ts +22 -0
- package/dist/route-env.d.ts.map +1 -0
- package/dist/route-env.js +1 -0
- package/dist/routes-associations.d.ts +164 -0
- package/dist/routes-associations.d.ts.map +1 -0
- package/dist/routes-associations.js +100 -0
- package/dist/routes-catalog.d.ts +436 -0
- package/dist/routes-catalog.d.ts.map +1 -0
- package/dist/routes-catalog.js +104 -0
- package/dist/routes-configuration.d.ts +773 -0
- package/dist/routes-configuration.d.ts.map +1 -0
- package/dist/routes-configuration.js +364 -0
- package/dist/routes-core.d.ts +302 -0
- package/dist/routes-core.d.ts.map +1 -0
- package/dist/routes-core.js +79 -0
- package/dist/routes-itinerary.d.ts +614 -0
- package/dist/routes-itinerary.d.ts.map +1 -0
- package/dist/routes-itinerary.js +309 -0
- package/dist/routes-maintenance.d.ts +32 -0
- package/dist/routes-maintenance.d.ts.map +1 -0
- package/dist/routes-maintenance.js +14 -0
- package/dist/routes-media.d.ts +634 -0
- package/dist/routes-media.d.ts.map +1 -0
- package/dist/routes-media.js +245 -0
- package/dist/routes-merchandising.d.ts +1108 -0
- package/dist/routes-merchandising.d.ts.map +1 -0
- package/dist/routes-merchandising.js +376 -0
- package/dist/routes-options.d.ts +363 -0
- package/dist/routes-options.d.ts.map +1 -0
- package/dist/routes-options.js +173 -0
- package/dist/routes-public.d.ts +4 -4
- package/dist/routes-translations.d.ts +477 -0
- package/dist/routes-translations.d.ts.map +1 -0
- package/dist/routes-translations.js +258 -0
- package/dist/routes.d.ts +417 -355
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +21 -1133
- package/dist/schema-core.d.ts +3 -3
- package/dist/schema-itinerary.d.ts +1 -1
- package/dist/schema-settings.d.ts +4 -4
- package/dist/service-catalog-plane.d.ts.map +1 -1
- package/dist/service-catalog-plane.js +48 -1
- package/dist/service-catalog.d.ts +2 -2
- package/dist/service-content-owned.d.ts.map +1 -1
- package/dist/service-content-owned.js +98 -4
- package/dist/service-public.d.ts +4 -4
- package/dist/service.d.ts +225 -97
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +91 -0
- package/dist/tasks/brochures.d.ts +1 -1
- package/dist/validation-catalog.d.ts +10 -10
- package/dist/validation-config.d.ts +17 -17
- package/dist/validation-content.d.ts +26 -26
- package/dist/validation-core.d.ts +46 -46
- package/dist/validation-core.d.ts.map +1 -1
- package/dist/validation-core.js +17 -1
- package/dist/validation-public.d.ts +25 -25
- package/dist/validation-shared.d.ts +11 -11
- package/package.json +13 -7
|
@@ -2,8 +2,8 @@ import { z } from "./validation-shared.js";
|
|
|
2
2
|
export declare const insertProductSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
status: z.ZodDefault<z.ZodEnum<{
|
|
5
|
-
active: "active";
|
|
6
5
|
draft: "draft";
|
|
6
|
+
active: "active";
|
|
7
7
|
archived: "archived";
|
|
8
8
|
}>>;
|
|
9
9
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -58,33 +58,8 @@ export declare const insertProductSchema: z.ZodObject<{
|
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export declare const updateProductSchema: z.ZodObject<{
|
|
60
60
|
name: z.ZodOptional<z.ZodString>;
|
|
61
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
62
|
-
active: "active";
|
|
63
|
-
draft: "draft";
|
|
64
|
-
archived: "archived";
|
|
65
|
-
}>>>;
|
|
66
61
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
67
|
-
bookingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
68
|
-
date: "date";
|
|
69
|
-
other: "other";
|
|
70
|
-
date_time: "date_time";
|
|
71
|
-
open: "open";
|
|
72
|
-
stay: "stay";
|
|
73
|
-
transfer: "transfer";
|
|
74
|
-
itinerary: "itinerary";
|
|
75
|
-
}>>>;
|
|
76
|
-
capacityMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
77
|
-
free_sale: "free_sale";
|
|
78
|
-
limited: "limited";
|
|
79
|
-
on_request: "on_request";
|
|
80
|
-
}>>>;
|
|
81
62
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
82
|
-
visibility: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
83
|
-
public: "public";
|
|
84
|
-
private: "private";
|
|
85
|
-
hidden: "hidden";
|
|
86
|
-
}>>>;
|
|
87
|
-
activated: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
88
63
|
reservationTimeoutMinutes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
89
64
|
sellCurrency: z.ZodOptional<z.ZodString>;
|
|
90
65
|
facilityId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -108,7 +83,32 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
108
83
|
balanceDueDaysBeforeDeparture: z.ZodNumber;
|
|
109
84
|
balanceDueMinDaysFromNow: z.ZodNumber;
|
|
110
85
|
}, z.core.$strip>>>>;
|
|
111
|
-
|
|
86
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
draft: "draft";
|
|
88
|
+
active: "active";
|
|
89
|
+
archived: "archived";
|
|
90
|
+
}>>;
|
|
91
|
+
bookingMode: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
date: "date";
|
|
93
|
+
other: "other";
|
|
94
|
+
date_time: "date_time";
|
|
95
|
+
open: "open";
|
|
96
|
+
stay: "stay";
|
|
97
|
+
transfer: "transfer";
|
|
98
|
+
itinerary: "itinerary";
|
|
99
|
+
}>>;
|
|
100
|
+
capacityMode: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
free_sale: "free_sale";
|
|
102
|
+
limited: "limited";
|
|
103
|
+
on_request: "on_request";
|
|
104
|
+
}>>;
|
|
105
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
public: "public";
|
|
107
|
+
private: "private";
|
|
108
|
+
hidden: "hidden";
|
|
109
|
+
}>>;
|
|
110
|
+
activated: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
112
|
sellAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
113
113
|
costAmountCents: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
114
114
|
marginPercent: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -116,8 +116,8 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
116
116
|
export declare const selectProductSchema: z.ZodObject<{
|
|
117
117
|
name: z.ZodString;
|
|
118
118
|
status: z.ZodDefault<z.ZodEnum<{
|
|
119
|
-
active: "active";
|
|
120
119
|
draft: "draft";
|
|
120
|
+
active: "active";
|
|
121
121
|
archived: "archived";
|
|
122
122
|
}>>;
|
|
123
123
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -175,8 +175,8 @@ export declare const selectProductSchema: z.ZodObject<{
|
|
|
175
175
|
}, z.core.$strip>;
|
|
176
176
|
export declare const productListSortFieldSchema: z.ZodEnum<{
|
|
177
177
|
name: "name";
|
|
178
|
-
createdAt: "createdAt";
|
|
179
178
|
status: "status";
|
|
179
|
+
createdAt: "createdAt";
|
|
180
180
|
startDate: "startDate";
|
|
181
181
|
endDate: "endDate";
|
|
182
182
|
pax: "pax";
|
|
@@ -188,8 +188,8 @@ export declare const productListSortDirSchema: z.ZodEnum<{
|
|
|
188
188
|
}>;
|
|
189
189
|
export declare const productListQuerySchema: z.ZodObject<{
|
|
190
190
|
status: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
active: "active";
|
|
192
191
|
draft: "draft";
|
|
192
|
+
active: "active";
|
|
193
193
|
archived: "archived";
|
|
194
194
|
}>>;
|
|
195
195
|
bookingMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -207,11 +207,11 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
207
207
|
hidden: "hidden";
|
|
208
208
|
}>>;
|
|
209
209
|
activated: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
210
|
-
0: "0";
|
|
211
|
-
1: "1";
|
|
212
210
|
true: "true";
|
|
211
|
+
0: "0";
|
|
213
212
|
false: "false";
|
|
214
|
-
|
|
213
|
+
1: "1";
|
|
214
|
+
}>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
|
|
215
215
|
facilityId: z.ZodOptional<z.ZodString>;
|
|
216
216
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
217
217
|
productTypeId: z.ZodOptional<z.ZodString>;
|
|
@@ -227,8 +227,8 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
227
227
|
sellAmountMax: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
228
228
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
229
229
|
name: "name";
|
|
230
|
-
createdAt: "createdAt";
|
|
231
230
|
status: "status";
|
|
231
|
+
createdAt: "createdAt";
|
|
232
232
|
startDate: "startDate";
|
|
233
233
|
endDate: "endDate";
|
|
234
234
|
pax: "pax";
|
|
@@ -253,8 +253,8 @@ export declare const insertProductOptionSchema: z.ZodObject<{
|
|
|
253
253
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
254
254
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
255
255
|
status: z.ZodDefault<z.ZodEnum<{
|
|
256
|
-
active: "active";
|
|
257
256
|
draft: "draft";
|
|
257
|
+
active: "active";
|
|
258
258
|
archived: "archived";
|
|
259
259
|
}>>;
|
|
260
260
|
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -267,8 +267,8 @@ export declare const updateProductOptionSchema: z.ZodObject<{
|
|
|
267
267
|
code: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
268
268
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
269
269
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
270
|
-
active: "active";
|
|
271
270
|
draft: "draft";
|
|
271
|
+
active: "active";
|
|
272
272
|
archived: "archived";
|
|
273
273
|
}>>>;
|
|
274
274
|
isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -279,8 +279,8 @@ export declare const updateProductOptionSchema: z.ZodObject<{
|
|
|
279
279
|
export declare const productOptionListQuerySchema: z.ZodObject<{
|
|
280
280
|
productId: z.ZodOptional<z.ZodString>;
|
|
281
281
|
status: z.ZodOptional<z.ZodEnum<{
|
|
282
|
-
active: "active";
|
|
283
282
|
draft: "draft";
|
|
283
|
+
active: "active";
|
|
284
284
|
archived: "archived";
|
|
285
285
|
}>>;
|
|
286
286
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -302,12 +302,12 @@ export declare const insertOptionUnitSchema: z.ZodObject<{
|
|
|
302
302
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
303
303
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
304
304
|
unitType: z.ZodDefault<z.ZodEnum<{
|
|
305
|
-
service: "service";
|
|
306
|
-
other: "other";
|
|
307
|
-
group: "group";
|
|
308
305
|
person: "person";
|
|
306
|
+
group: "group";
|
|
309
307
|
room: "room";
|
|
310
308
|
vehicle: "vehicle";
|
|
309
|
+
service: "service";
|
|
310
|
+
other: "other";
|
|
311
311
|
}>>;
|
|
312
312
|
minQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
313
313
|
maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -324,12 +324,12 @@ export declare const updateOptionUnitSchema: z.ZodObject<{
|
|
|
324
324
|
code: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
325
325
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
326
326
|
unitType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
327
|
-
service: "service";
|
|
328
|
-
other: "other";
|
|
329
|
-
group: "group";
|
|
330
327
|
person: "person";
|
|
328
|
+
group: "group";
|
|
331
329
|
room: "room";
|
|
332
330
|
vehicle: "vehicle";
|
|
331
|
+
service: "service";
|
|
332
|
+
other: "other";
|
|
333
333
|
}>>>;
|
|
334
334
|
minQuantity: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
335
335
|
maxQuantity: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
@@ -358,12 +358,12 @@ export declare function validateMergedOptionUnit(merged: OccupancyShape): {
|
|
|
358
358
|
export declare const optionUnitListQuerySchema: z.ZodObject<{
|
|
359
359
|
optionId: z.ZodOptional<z.ZodString>;
|
|
360
360
|
unitType: z.ZodOptional<z.ZodEnum<{
|
|
361
|
-
service: "service";
|
|
362
|
-
other: "other";
|
|
363
|
-
group: "group";
|
|
364
361
|
person: "person";
|
|
362
|
+
group: "group";
|
|
365
363
|
room: "room";
|
|
366
364
|
vehicle: "vehicle";
|
|
365
|
+
service: "service";
|
|
366
|
+
other: "other";
|
|
367
367
|
}>>;
|
|
368
368
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
369
369
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-core.d.ts","sourceRoot":"","sources":["../src/validation-core.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,CAAC,EACF,MAAM,wBAAwB,CAAA;AA2C/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiD,CAAA;
|
|
1
|
+
{"version":3,"file":"validation-core.d.ts","sourceRoot":"","sources":["../src/validation-core.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,CAAC,EACF,MAAM,wBAAwB,CAAA;AA2C/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiD,CAAA;AAOjF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUD,CAAA;AAC/B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO9B,CAAA;AACF,eAAO,MAAM,0BAA0B;;;;;;;;EAQrC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;EAA0B,CAAA;AAE/D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsBjC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAY/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAA0B,CAAA;AAChE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAAoC,CAAA;AAC1E,eAAO,MAAM,4BAA4B;;;;;;;;;iBAKvC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAC3E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAwB3E,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACpC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CACzC,CAAA;AAED,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AA2BzD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAA;AAMF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;iBAYjC,CAAA;AAEF;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,cAAc,GACrB;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,cAAc,EAAE,CAAA;CAAE,CAGxD;AACD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,mBAAmB;;iBAE9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,uBAAuB;;iBAElC,CAAA"}
|
package/dist/validation-core.js
CHANGED
|
@@ -37,7 +37,23 @@ const productPricingFields = {
|
|
|
37
37
|
marginPercent: z.number().int().optional().nullable(),
|
|
38
38
|
};
|
|
39
39
|
export const insertProductSchema = productCoreSchema.extend(productPricingFields);
|
|
40
|
-
|
|
40
|
+
// `productCoreSchema` carries `.default(...)` on enum-ish fields so
|
|
41
|
+
// insert can omit them. zod's `.partial()` does NOT strip those
|
|
42
|
+
// defaults — every PATCH would synthesize `status: "draft"`,
|
|
43
|
+
// `visibility: "private"`, etc., and overwrite the row. Re-declare the
|
|
44
|
+
// defaulted fields without defaults before partial-ising so PATCH only
|
|
45
|
+
// touches the keys the client actually sent.
|
|
46
|
+
export const updateProductSchema = productCoreSchema
|
|
47
|
+
.extend({
|
|
48
|
+
status: productStatusSchema,
|
|
49
|
+
bookingMode: productBookingModeSchema,
|
|
50
|
+
capacityMode: productCapacityModeSchema,
|
|
51
|
+
visibility: productVisibilitySchema,
|
|
52
|
+
activated: z.boolean(),
|
|
53
|
+
tags: z.array(z.string()),
|
|
54
|
+
})
|
|
55
|
+
.partial()
|
|
56
|
+
.extend(productPricingFields);
|
|
41
57
|
export const selectProductSchema = productCoreSchema.extend({
|
|
42
58
|
id: typeIdSchema("products"),
|
|
43
59
|
sellAmountCents: z.number().int().nullable(),
|
|
@@ -25,20 +25,20 @@ export declare const publicCatalogProductListQuerySchema: z.ZodObject<{
|
|
|
25
25
|
locationCity: z.ZodOptional<z.ZodString>;
|
|
26
26
|
locationCountryCode: z.ZodOptional<z.ZodString>;
|
|
27
27
|
locationType: z.ZodOptional<z.ZodEnum<{
|
|
28
|
-
start: "start";
|
|
29
|
-
other: "other";
|
|
30
28
|
end: "end";
|
|
29
|
+
other: "other";
|
|
30
|
+
start: "start";
|
|
31
31
|
meeting_point: "meeting_point";
|
|
32
32
|
pickup: "pickup";
|
|
33
33
|
dropoff: "dropoff";
|
|
34
34
|
point_of_interest: "point_of_interest";
|
|
35
35
|
}>>;
|
|
36
36
|
featured: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
37
|
-
0: "0";
|
|
38
|
-
1: "1";
|
|
39
37
|
true: "true";
|
|
38
|
+
0: "0";
|
|
40
39
|
false: "false";
|
|
41
|
-
|
|
40
|
+
1: "1";
|
|
41
|
+
}>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
|
|
42
42
|
sort: z.ZodDefault<z.ZodEnum<{
|
|
43
43
|
name: "name";
|
|
44
44
|
createdAt: "createdAt";
|
|
@@ -67,17 +67,17 @@ export declare const publicCatalogDestinationListQuerySchema: z.ZodObject<{
|
|
|
67
67
|
search: z.ZodOptional<z.ZodString>;
|
|
68
68
|
parentId: z.ZodOptional<z.ZodString>;
|
|
69
69
|
active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
70
|
-
0: "0";
|
|
71
|
-
1: "1";
|
|
72
70
|
true: "true";
|
|
71
|
+
0: "0";
|
|
73
72
|
false: "false";
|
|
74
|
-
|
|
73
|
+
1: "1";
|
|
74
|
+
}>, z.ZodTransform<boolean, "true" | "0" | "false" | "1">>>;
|
|
75
75
|
languageTag: z.ZodOptional<z.ZodString>;
|
|
76
76
|
destinationType: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
country: "country";
|
|
78
77
|
city: "city";
|
|
79
78
|
destination: "destination";
|
|
80
79
|
region: "region";
|
|
80
|
+
country: "country";
|
|
81
81
|
}>>;
|
|
82
82
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
83
83
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -142,9 +142,9 @@ export declare const publicCatalogProductFaqSchema: z.ZodObject<{
|
|
|
142
142
|
export declare const publicCatalogProductLocationSchema: z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
144
144
|
locationType: z.ZodEnum<{
|
|
145
|
-
start: "start";
|
|
146
|
-
other: "other";
|
|
147
145
|
end: "end";
|
|
146
|
+
other: "other";
|
|
147
|
+
start: "start";
|
|
148
148
|
meeting_point: "meeting_point";
|
|
149
149
|
pickup: "pickup";
|
|
150
150
|
dropoff: "dropoff";
|
|
@@ -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";
|
|
171
170
|
city: "city";
|
|
172
171
|
destination: "destination";
|
|
173
172
|
region: "region";
|
|
173
|
+
country: "country";
|
|
174
174
|
}>;
|
|
175
175
|
sortOrder: z.ZodNumber;
|
|
176
176
|
}, z.core.$strip>;
|
|
@@ -226,7 +226,6 @@ 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";
|
|
230
229
|
on_request: "on_request";
|
|
231
230
|
private: "private";
|
|
232
231
|
instant_confirmation: "instant_confirmation";
|
|
@@ -238,6 +237,7 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
238
237
|
voucher_required: "voucher_required";
|
|
239
238
|
external_inventory: "external_inventory";
|
|
240
239
|
multi_day: "multi_day";
|
|
240
|
+
accommodation: "accommodation";
|
|
241
241
|
transport: "transport";
|
|
242
242
|
}>>;
|
|
243
243
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -249,19 +249,19 @@ 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";
|
|
253
252
|
city: "city";
|
|
254
253
|
destination: "destination";
|
|
255
254
|
region: "region";
|
|
255
|
+
country: "country";
|
|
256
256
|
}>;
|
|
257
257
|
sortOrder: z.ZodNumber;
|
|
258
258
|
}, z.core.$strip>>;
|
|
259
259
|
locations: z.ZodArray<z.ZodObject<{
|
|
260
260
|
id: z.ZodString;
|
|
261
261
|
locationType: z.ZodEnum<{
|
|
262
|
-
start: "start";
|
|
263
|
-
other: "other";
|
|
264
262
|
end: "end";
|
|
263
|
+
other: "other";
|
|
264
|
+
start: "start";
|
|
265
265
|
meeting_point: "meeting_point";
|
|
266
266
|
pickup: "pickup";
|
|
267
267
|
dropoff: "dropoff";
|
|
@@ -346,7 +346,6 @@ 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";
|
|
350
349
|
on_request: "on_request";
|
|
351
350
|
private: "private";
|
|
352
351
|
instant_confirmation: "instant_confirmation";
|
|
@@ -358,6 +357,7 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
358
357
|
voucher_required: "voucher_required";
|
|
359
358
|
external_inventory: "external_inventory";
|
|
360
359
|
multi_day: "multi_day";
|
|
360
|
+
accommodation: "accommodation";
|
|
361
361
|
transport: "transport";
|
|
362
362
|
}>>;
|
|
363
363
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -369,19 +369,19 @@ 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";
|
|
373
372
|
city: "city";
|
|
374
373
|
destination: "destination";
|
|
375
374
|
region: "region";
|
|
375
|
+
country: "country";
|
|
376
376
|
}>;
|
|
377
377
|
sortOrder: z.ZodNumber;
|
|
378
378
|
}, z.core.$strip>>;
|
|
379
379
|
locations: z.ZodArray<z.ZodObject<{
|
|
380
380
|
id: z.ZodString;
|
|
381
381
|
locationType: z.ZodEnum<{
|
|
382
|
-
start: "start";
|
|
383
|
-
other: "other";
|
|
384
382
|
end: "end";
|
|
383
|
+
other: "other";
|
|
384
|
+
start: "start";
|
|
385
385
|
meeting_point: "meeting_point";
|
|
386
386
|
pickup: "pickup";
|
|
387
387
|
dropoff: "dropoff";
|
|
@@ -520,7 +520,6 @@ 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";
|
|
524
523
|
on_request: "on_request";
|
|
525
524
|
private: "private";
|
|
526
525
|
instant_confirmation: "instant_confirmation";
|
|
@@ -532,6 +531,7 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
532
531
|
voucher_required: "voucher_required";
|
|
533
532
|
external_inventory: "external_inventory";
|
|
534
533
|
multi_day: "multi_day";
|
|
534
|
+
accommodation: "accommodation";
|
|
535
535
|
transport: "transport";
|
|
536
536
|
}>>;
|
|
537
537
|
destinations: z.ZodArray<z.ZodObject<{
|
|
@@ -543,19 +543,19 @@ 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";
|
|
547
546
|
city: "city";
|
|
548
547
|
destination: "destination";
|
|
549
548
|
region: "region";
|
|
549
|
+
country: "country";
|
|
550
550
|
}>;
|
|
551
551
|
sortOrder: z.ZodNumber;
|
|
552
552
|
}, z.core.$strip>>;
|
|
553
553
|
locations: z.ZodArray<z.ZodObject<{
|
|
554
554
|
id: z.ZodString;
|
|
555
555
|
locationType: z.ZodEnum<{
|
|
556
|
-
start: "start";
|
|
557
|
-
other: "other";
|
|
558
556
|
end: "end";
|
|
557
|
+
other: "other";
|
|
558
|
+
start: "start";
|
|
559
559
|
meeting_point: "meeting_point";
|
|
560
560
|
pickup: "pickup";
|
|
561
561
|
dropoff: "dropoff";
|
|
@@ -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";
|
|
628
627
|
city: "city";
|
|
629
628
|
destination: "destination";
|
|
630
629
|
region: "region";
|
|
630
|
+
country: "country";
|
|
631
631
|
}>;
|
|
632
632
|
sortOrder: z.ZodNumber;
|
|
633
633
|
}, z.core.$strip>>;
|
|
@@ -3,22 +3,22 @@ import { typeIdSchema } from "@voyantjs/db/lib/typeid";
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export { booleanQueryParam, typeIdSchema, z };
|
|
5
5
|
export declare const productStatusSchema: z.ZodEnum<{
|
|
6
|
-
active: "active";
|
|
7
6
|
draft: "draft";
|
|
7
|
+
active: "active";
|
|
8
8
|
archived: "archived";
|
|
9
9
|
}>;
|
|
10
10
|
export declare const productOptionStatusSchema: z.ZodEnum<{
|
|
11
|
-
active: "active";
|
|
12
11
|
draft: "draft";
|
|
12
|
+
active: "active";
|
|
13
13
|
archived: "archived";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const optionUnitTypeSchema: z.ZodEnum<{
|
|
16
|
-
service: "service";
|
|
17
|
-
other: "other";
|
|
18
|
-
group: "group";
|
|
19
16
|
person: "person";
|
|
17
|
+
group: "group";
|
|
20
18
|
room: "room";
|
|
21
19
|
vehicle: "vehicle";
|
|
20
|
+
service: "service";
|
|
21
|
+
other: "other";
|
|
22
22
|
}>;
|
|
23
23
|
export declare const productBookingModeSchema: z.ZodEnum<{
|
|
24
24
|
date: "date";
|
|
@@ -51,17 +51,16 @@ export declare const productTicketFulfillmentSchema: z.ZodEnum<{
|
|
|
51
51
|
per_item: "per_item";
|
|
52
52
|
}>;
|
|
53
53
|
export declare const productDeliveryFormatSchema: z.ZodEnum<{
|
|
54
|
-
email: "email";
|
|
55
54
|
none: "none";
|
|
56
55
|
voucher: "voucher";
|
|
57
56
|
ticket: "ticket";
|
|
58
57
|
pdf: "pdf";
|
|
59
58
|
qr_code: "qr_code";
|
|
60
59
|
barcode: "barcode";
|
|
60
|
+
email: "email";
|
|
61
61
|
mobile: "mobile";
|
|
62
62
|
}>;
|
|
63
63
|
export declare const productCapabilitySchema: z.ZodEnum<{
|
|
64
|
-
accommodation: "accommodation";
|
|
65
64
|
on_request: "on_request";
|
|
66
65
|
private: "private";
|
|
67
66
|
instant_confirmation: "instant_confirmation";
|
|
@@ -73,6 +72,7 @@ export declare const productCapabilitySchema: z.ZodEnum<{
|
|
|
73
72
|
voucher_required: "voucher_required";
|
|
74
73
|
external_inventory: "external_inventory";
|
|
75
74
|
multi_day: "multi_day";
|
|
75
|
+
accommodation: "accommodation";
|
|
76
76
|
transport: "transport";
|
|
77
77
|
}>;
|
|
78
78
|
export declare const productFeatureTypeSchema: z.ZodEnum<{
|
|
@@ -83,19 +83,19 @@ export declare const productFeatureTypeSchema: z.ZodEnum<{
|
|
|
83
83
|
important_information: "important_information";
|
|
84
84
|
}>;
|
|
85
85
|
export declare const productLocationTypeSchema: z.ZodEnum<{
|
|
86
|
-
start: "start";
|
|
87
|
-
other: "other";
|
|
88
86
|
end: "end";
|
|
87
|
+
other: "other";
|
|
88
|
+
start: "start";
|
|
89
89
|
meeting_point: "meeting_point";
|
|
90
90
|
pickup: "pickup";
|
|
91
91
|
dropoff: "dropoff";
|
|
92
92
|
point_of_interest: "point_of_interest";
|
|
93
93
|
}>;
|
|
94
94
|
export declare const destinationTypeSchema: z.ZodEnum<{
|
|
95
|
-
country: "country";
|
|
96
95
|
city: "city";
|
|
97
96
|
destination: "destination";
|
|
98
97
|
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
|
-
accommodation: "accommodation";
|
|
109
108
|
transfer: "transfer";
|
|
109
|
+
accommodation: "accommodation";
|
|
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.52.
|
|
3
|
+
"version": "0.52.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"import": "./dist/routes.js",
|
|
25
25
|
"default": "./dist/routes.js"
|
|
26
26
|
},
|
|
27
|
+
"./action-ledger-drift": {
|
|
28
|
+
"types": "./dist/action-ledger-drift.d.ts",
|
|
29
|
+
"import": "./dist/action-ledger-drift.js",
|
|
30
|
+
"default": "./dist/action-ledger-drift.js"
|
|
31
|
+
},
|
|
27
32
|
"./public-routes": {
|
|
28
33
|
"types": "./dist/routes-public.d.ts",
|
|
29
34
|
"import": "./dist/routes-public.js",
|
|
@@ -125,12 +130,13 @@
|
|
|
125
130
|
"hono": "^4.12.10",
|
|
126
131
|
"pdf-lib": "^1.17.1",
|
|
127
132
|
"zod": "^4.3.6",
|
|
128
|
-
"@voyantjs/
|
|
129
|
-
"@voyantjs/
|
|
130
|
-
"@voyantjs/
|
|
131
|
-
"@voyantjs/
|
|
132
|
-
"@voyantjs/
|
|
133
|
-
"@voyantjs/
|
|
133
|
+
"@voyantjs/action-ledger": "0.52.3",
|
|
134
|
+
"@voyantjs/core": "0.52.3",
|
|
135
|
+
"@voyantjs/db": "0.52.3",
|
|
136
|
+
"@voyantjs/hono": "0.52.3",
|
|
137
|
+
"@voyantjs/utils": "0.52.3",
|
|
138
|
+
"@voyantjs/catalog": "0.52.3",
|
|
139
|
+
"@voyantjs/storage": "0.52.3"
|
|
134
140
|
},
|
|
135
141
|
"devDependencies": {
|
|
136
142
|
"typescript": "^6.0.2",
|