@voyantjs/products 0.3.1 → 0.4.1
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/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/routes-public.d.ts +167 -12
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +13 -1
- package/dist/routes.d.ts +669 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +117 -1
- package/dist/schema-itinerary.d.ts +51 -0
- package/dist/schema-itinerary.d.ts.map +1 -1
- package/dist/schema-itinerary.js +3 -0
- package/dist/schema-relations.d.ts +14 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +28 -1
- package/dist/schema-taxonomy.d.ts +435 -0
- package/dist/schema-taxonomy.d.ts.map +1 -1
- package/dist/schema-taxonomy.js +47 -0
- package/dist/service-catalog.d.ts +237 -0
- package/dist/service-catalog.d.ts.map +1 -0
- package/dist/service-catalog.js +478 -0
- package/dist/service-public.d.ts +136 -12
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +146 -260
- package/dist/service.d.ts +292 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +388 -2
- package/dist/tasks/brochure-printers.d.ts +29 -0
- package/dist/tasks/brochure-printers.d.ts.map +1 -0
- package/dist/tasks/brochure-printers.js +94 -0
- package/dist/tasks/brochure-templates.d.ts +36 -0
- package/dist/tasks/brochure-templates.d.ts.map +1 -0
- package/dist/tasks/brochure-templates.js +98 -0
- package/dist/tasks/brochures.d.ts +42 -0
- package/dist/tasks/brochures.d.ts.map +1 -0
- package/dist/tasks/brochures.js +69 -0
- package/dist/tasks/index.d.ts +3 -0
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/index.js +3 -0
- package/dist/validation-catalog.d.ts +388 -0
- package/dist/validation-catalog.d.ts.map +1 -0
- package/dist/validation-catalog.js +54 -0
- package/dist/validation-content.d.ts +109 -0
- package/dist/validation-content.d.ts.map +1 -1
- package/dist/validation-content.js +63 -1
- package/dist/validation-public.d.ts +208 -19
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +39 -2
- package/dist/validation-shared.d.ts +6 -0
- package/dist/validation-shared.d.ts.map +1 -1
- package/dist/validation-shared.js +1 -0
- package/package.json +6 -4
|
@@ -106,12 +106,93 @@ export declare const productLocationListQuerySchema: z.ZodObject<{
|
|
|
106
106
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
107
107
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
108
108
|
}, z.core.$strip>;
|
|
109
|
+
export declare const insertDestinationSchema: z.ZodObject<{
|
|
110
|
+
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
111
|
+
slug: z.ZodString;
|
|
112
|
+
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
113
|
+
destinationType: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
city: "city";
|
|
115
|
+
destination: "destination";
|
|
116
|
+
region: "region";
|
|
117
|
+
country: "country";
|
|
118
|
+
}>>;
|
|
119
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
120
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
121
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export declare const updateDestinationSchema: z.ZodObject<{
|
|
124
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
125
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
126
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
127
|
+
destinationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
128
|
+
city: "city";
|
|
129
|
+
destination: "destination";
|
|
130
|
+
region: "region";
|
|
131
|
+
country: "country";
|
|
132
|
+
}>>>;
|
|
133
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
134
|
+
active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
135
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export declare const destinationListQuerySchema: z.ZodObject<{
|
|
138
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
140
|
+
0: "0";
|
|
141
|
+
1: "1";
|
|
142
|
+
true: "true";
|
|
143
|
+
false: "false";
|
|
144
|
+
}>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
|
|
145
|
+
search: z.ZodOptional<z.ZodString>;
|
|
146
|
+
languageTag: z.ZodOptional<z.ZodString>;
|
|
147
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
148
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export declare const insertDestinationTranslationSchema: z.ZodObject<{
|
|
151
|
+
languageTag: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
154
|
+
seoTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
155
|
+
seoDescription: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export declare const updateDestinationTranslationSchema: z.ZodObject<{
|
|
158
|
+
languageTag: z.ZodOptional<z.ZodString>;
|
|
159
|
+
name: z.ZodOptional<z.ZodString>;
|
|
160
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
161
|
+
seoTitle: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
162
|
+
seoDescription: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export declare const destinationTranslationListQuerySchema: z.ZodObject<{
|
|
165
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
languageTag: z.ZodOptional<z.ZodString>;
|
|
167
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
168
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export declare const insertProductDestinationSchema: z.ZodObject<{
|
|
171
|
+
destinationId: z.ZodString;
|
|
172
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export declare const updateProductDestinationSchema: z.ZodObject<{
|
|
175
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
176
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const productDestinationListQuerySchema: z.ZodObject<{
|
|
179
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
180
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
181
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
182
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
109
184
|
export type InsertProductFeature = z.infer<typeof insertProductFeatureSchema>;
|
|
110
185
|
export type UpdateProductFeature = z.infer<typeof updateProductFeatureSchema>;
|
|
111
186
|
export type InsertProductFaq = z.infer<typeof insertProductFaqSchema>;
|
|
112
187
|
export type UpdateProductFaq = z.infer<typeof updateProductFaqSchema>;
|
|
113
188
|
export type InsertProductLocation = z.infer<typeof insertProductLocationSchema>;
|
|
114
189
|
export type UpdateProductLocation = z.infer<typeof updateProductLocationSchema>;
|
|
190
|
+
export type InsertDestination = z.infer<typeof insertDestinationSchema>;
|
|
191
|
+
export type UpdateDestination = z.infer<typeof updateDestinationSchema>;
|
|
192
|
+
export type InsertDestinationTranslation = z.infer<typeof insertDestinationTranslationSchema>;
|
|
193
|
+
export type UpdateDestinationTranslation = z.infer<typeof updateDestinationTranslationSchema>;
|
|
194
|
+
export type InsertProductDestination = z.infer<typeof insertProductDestinationSchema>;
|
|
195
|
+
export type UpdateProductDestination = z.infer<typeof updateProductDestinationSchema>;
|
|
115
196
|
export declare const insertProductTranslationSchema: z.ZodObject<{
|
|
116
197
|
languageTag: z.ZodString;
|
|
117
198
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -244,6 +325,9 @@ export declare const insertProductMediaSchema: z.ZodObject<{
|
|
|
244
325
|
altText: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
326
|
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
246
327
|
isCover: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
+
isBrochure: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
isBrochureCurrent: z.ZodDefault<z.ZodBoolean>;
|
|
330
|
+
brochureVersion: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
247
331
|
dayId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
248
332
|
}, z.core.$strip>;
|
|
249
333
|
export declare const updateProductMediaSchema: z.ZodObject<{
|
|
@@ -260,6 +344,18 @@ export declare const updateProductMediaSchema: z.ZodObject<{
|
|
|
260
344
|
altText: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
261
345
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
262
346
|
isCover: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
347
|
+
isBrochure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
348
|
+
isBrochureCurrent: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
349
|
+
brochureVersion: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export declare const upsertProductBrochureSchema: z.ZodObject<{
|
|
352
|
+
name: z.ZodString;
|
|
353
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
354
|
+
url: z.ZodString;
|
|
355
|
+
storageKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
356
|
+
fileSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
357
|
+
altText: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
358
|
+
mimeType: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
263
359
|
}, z.core.$strip>;
|
|
264
360
|
export declare const productMediaListQuerySchema: z.ZodObject<{
|
|
265
361
|
dayId: z.ZodOptional<z.ZodString>;
|
|
@@ -268,6 +364,18 @@ export declare const productMediaListQuerySchema: z.ZodObject<{
|
|
|
268
364
|
video: "video";
|
|
269
365
|
document: "document";
|
|
270
366
|
}>>;
|
|
367
|
+
isBrochure: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
368
|
+
0: "0";
|
|
369
|
+
1: "1";
|
|
370
|
+
true: "true";
|
|
371
|
+
false: "false";
|
|
372
|
+
}>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
|
|
373
|
+
isBrochureCurrent: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
374
|
+
0: "0";
|
|
375
|
+
1: "1";
|
|
376
|
+
true: "true";
|
|
377
|
+
false: "false";
|
|
378
|
+
}>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
|
|
271
379
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
272
380
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
273
381
|
}, z.core.$strip>;
|
|
@@ -279,6 +387,7 @@ export declare const reorderProductMediaSchema: z.ZodObject<{
|
|
|
279
387
|
}, z.core.$strip>;
|
|
280
388
|
export type InsertProductMedia = z.infer<typeof insertProductMediaSchema>;
|
|
281
389
|
export type UpdateProductMedia = z.infer<typeof updateProductMediaSchema>;
|
|
390
|
+
export type UpsertProductBrochure = z.infer<typeof upsertProductBrochureSchema>;
|
|
282
391
|
export type ProductMediaListQuery = z.infer<typeof productMediaListQuerySchema>;
|
|
283
392
|
export type ReorderProductMedia = z.infer<typeof reorderProductMediaSchema>;
|
|
284
393
|
export declare const insertProductTypeSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-content.d.ts","sourceRoot":"","sources":["../src/validation-content.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"validation-content.d.ts","sourceRoot":"","sources":["../src/validation-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,CAAC,EACF,MAAM,wBAAwB,CAAA;AA+C/B,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAA2B,CAAA;AAClE,eAAO,MAAM,0BAA0B;;;;;;;;;;;iBAAqC,CAAA;AAC5E,eAAO,MAAM,6BAA6B;;;;;;;;;;;iBAKxC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;iBAAuB,CAAA;AAC1D,eAAO,MAAM,sBAAsB;;;;iBAAiC,CAAA;AACpE,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAA;AACF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAA;AACpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAAsC,CAAA;AAC9E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;iBAKzC,CAAA;AACF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAAwB,CAAA;AAC5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAAkC,CAAA;AACtE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAOrC,CAAA;AACF,eAAO,MAAM,kCAAkC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AO,uBAAuB,CAAC,CAAA;AAWvE,eAAO,MAAM,2BAA2B;;;;;;;;iBAA4B,CAAA;AACpE,eAAO,MAAM,2BAA2B;;;;;;;;iBAAsC,CAAA;AAC9E,eAAO,MAAM,8BAA8B;;;;;;;;;;;iBAMzC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAK/E,eAAO,MAAM,sBAAsB;;iBAAuB,CAAA;AAC1D,eAAO,MAAM,sBAAsB;;iBAAiC,CAAA;AACpE,eAAO,MAAM,yBAAyB;;;;iBAIpC,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { booleanQueryParam, languageTagSchema, productFeatureTypeSchema, productLocationTypeSchema, serviceTypeSchema, z, } from "./validation-shared.js";
|
|
1
|
+
import { booleanQueryParam, destinationTypeSchema, languageTagSchema, productFeatureTypeSchema, productLocationTypeSchema, serviceTypeSchema, z, } from "./validation-shared.js";
|
|
2
2
|
const productFeatureCoreSchema = z.object({
|
|
3
3
|
featureType: productFeatureTypeSchema.default("highlight"),
|
|
4
4
|
title: z.string().min(1).max(255),
|
|
@@ -23,6 +23,26 @@ const productLocationCoreSchema = z.object({
|
|
|
23
23
|
tripadvisorLocationId: z.string().max(255).optional().nullable(),
|
|
24
24
|
sortOrder: z.number().int().default(0),
|
|
25
25
|
});
|
|
26
|
+
const destinationCoreSchema = z.object({
|
|
27
|
+
parentId: z.string().optional().nullable(),
|
|
28
|
+
slug: z.string().min(1).max(255),
|
|
29
|
+
code: z.string().max(100).optional().nullable(),
|
|
30
|
+
destinationType: destinationTypeSchema.default("destination"),
|
|
31
|
+
sortOrder: z.number().int().default(0),
|
|
32
|
+
active: z.boolean().default(true),
|
|
33
|
+
metadata: z.record(z.string(), z.unknown()).optional().nullable(),
|
|
34
|
+
});
|
|
35
|
+
const destinationTranslationCoreSchema = z.object({
|
|
36
|
+
languageTag: languageTagSchema,
|
|
37
|
+
name: z.string().min(1).max(255),
|
|
38
|
+
description: z.string().optional().nullable(),
|
|
39
|
+
seoTitle: z.string().max(255).optional().nullable(),
|
|
40
|
+
seoDescription: z.string().optional().nullable(),
|
|
41
|
+
});
|
|
42
|
+
const productDestinationCoreSchema = z.object({
|
|
43
|
+
destinationId: z.string(),
|
|
44
|
+
sortOrder: z.number().int().default(0),
|
|
45
|
+
});
|
|
26
46
|
export const insertProductFeatureSchema = productFeatureCoreSchema;
|
|
27
47
|
export const updateProductFeatureSchema = productFeatureCoreSchema.partial();
|
|
28
48
|
export const productFeatureListQuerySchema = z.object({
|
|
@@ -46,6 +66,32 @@ export const productLocationListQuerySchema = z.object({
|
|
|
46
66
|
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
47
67
|
offset: z.coerce.number().int().min(0).default(0),
|
|
48
68
|
});
|
|
69
|
+
export const insertDestinationSchema = destinationCoreSchema;
|
|
70
|
+
export const updateDestinationSchema = destinationCoreSchema.partial();
|
|
71
|
+
export const destinationListQuerySchema = z.object({
|
|
72
|
+
parentId: z.string().optional(),
|
|
73
|
+
active: booleanQueryParam.optional(),
|
|
74
|
+
search: z.string().optional(),
|
|
75
|
+
languageTag: languageTagSchema.optional(),
|
|
76
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
77
|
+
offset: z.coerce.number().int().min(0).default(0),
|
|
78
|
+
});
|
|
79
|
+
export const insertDestinationTranslationSchema = destinationTranslationCoreSchema;
|
|
80
|
+
export const updateDestinationTranslationSchema = destinationTranslationCoreSchema.partial();
|
|
81
|
+
export const destinationTranslationListQuerySchema = z.object({
|
|
82
|
+
destinationId: z.string().optional(),
|
|
83
|
+
languageTag: languageTagSchema.optional(),
|
|
84
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
85
|
+
offset: z.coerce.number().int().min(0).default(0),
|
|
86
|
+
});
|
|
87
|
+
export const insertProductDestinationSchema = productDestinationCoreSchema;
|
|
88
|
+
export const updateProductDestinationSchema = productDestinationCoreSchema.partial();
|
|
89
|
+
export const productDestinationListQuerySchema = z.object({
|
|
90
|
+
productId: z.string().optional(),
|
|
91
|
+
destinationId: z.string().optional(),
|
|
92
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
93
|
+
offset: z.coerce.number().int().min(0).default(0),
|
|
94
|
+
});
|
|
49
95
|
const productTranslationCoreSchema = z.object({
|
|
50
96
|
languageTag: languageTagSchema,
|
|
51
97
|
slug: z.string().max(255).optional().nullable(),
|
|
@@ -117,14 +163,30 @@ const productMediaCoreSchema = z.object({
|
|
|
117
163
|
altText: z.string().max(1000).optional().nullable(),
|
|
118
164
|
sortOrder: z.number().int().default(0),
|
|
119
165
|
isCover: z.boolean().default(false),
|
|
166
|
+
isBrochure: z.boolean().default(false),
|
|
167
|
+
isBrochureCurrent: z.boolean().default(false),
|
|
168
|
+
brochureVersion: z.number().int().min(1).optional().nullable(),
|
|
120
169
|
});
|
|
121
170
|
export const insertProductMediaSchema = productMediaCoreSchema.extend({
|
|
122
171
|
dayId: z.string().optional().nullable(),
|
|
123
172
|
});
|
|
124
173
|
export const updateProductMediaSchema = productMediaCoreSchema.partial();
|
|
174
|
+
export const upsertProductBrochureSchema = productMediaCoreSchema
|
|
175
|
+
.omit({
|
|
176
|
+
mediaType: true,
|
|
177
|
+
isCover: true,
|
|
178
|
+
isBrochure: true,
|
|
179
|
+
isBrochureCurrent: true,
|
|
180
|
+
brochureVersion: true,
|
|
181
|
+
})
|
|
182
|
+
.extend({
|
|
183
|
+
mimeType: z.string().max(255).optional().nullable().default("application/pdf"),
|
|
184
|
+
});
|
|
125
185
|
export const productMediaListQuerySchema = z.object({
|
|
126
186
|
dayId: z.string().optional(),
|
|
127
187
|
mediaType: productMediaTypeSchema.optional(),
|
|
188
|
+
isBrochure: booleanQueryParam.optional(),
|
|
189
|
+
isBrochureCurrent: booleanQueryParam.optional(),
|
|
128
190
|
limit: z.coerce.number().int().min(1).max(200).default(50),
|
|
129
191
|
offset: z.coerce.number().int().min(0).default(0),
|
|
130
192
|
});
|
|
@@ -19,6 +19,20 @@ export declare const publicCatalogProductListQuerySchema: z.ZodObject<{
|
|
|
19
19
|
productTypeId: z.ZodOptional<z.ZodString>;
|
|
20
20
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
21
21
|
tagId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
destinationId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
destinationSlug: z.ZodOptional<z.ZodString>;
|
|
24
|
+
locationTitle: z.ZodOptional<z.ZodString>;
|
|
25
|
+
locationCity: z.ZodOptional<z.ZodString>;
|
|
26
|
+
locationCountryCode: z.ZodOptional<z.ZodString>;
|
|
27
|
+
locationType: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
other: "other";
|
|
29
|
+
start: "start";
|
|
30
|
+
end: "end";
|
|
31
|
+
meeting_point: "meeting_point";
|
|
32
|
+
pickup: "pickup";
|
|
33
|
+
dropoff: "dropoff";
|
|
34
|
+
point_of_interest: "point_of_interest";
|
|
35
|
+
}>>;
|
|
22
36
|
featured: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
23
37
|
0: "0";
|
|
24
38
|
1: "1";
|
|
@@ -49,6 +63,25 @@ export declare const publicCatalogTagListQuerySchema: z.ZodObject<{
|
|
|
49
63
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
50
64
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
51
65
|
}, z.core.$strip>;
|
|
66
|
+
export declare const publicCatalogDestinationListQuerySchema: z.ZodObject<{
|
|
67
|
+
search: z.ZodOptional<z.ZodString>;
|
|
68
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
active: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
|
|
70
|
+
0: "0";
|
|
71
|
+
1: "1";
|
|
72
|
+
true: "true";
|
|
73
|
+
false: "false";
|
|
74
|
+
}>, z.ZodTransform<boolean, "0" | "1" | "true" | "false">>>;
|
|
75
|
+
languageTag: z.ZodOptional<z.ZodString>;
|
|
76
|
+
destinationType: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
city: "city";
|
|
78
|
+
destination: "destination";
|
|
79
|
+
region: "region";
|
|
80
|
+
country: "country";
|
|
81
|
+
}>>;
|
|
82
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
83
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
52
85
|
export declare const publicCatalogProductLookupBySlugQuerySchema: z.ZodObject<{
|
|
53
86
|
languageTag: z.ZodOptional<z.ZodString>;
|
|
54
87
|
}, z.core.$strip>;
|
|
@@ -83,6 +116,9 @@ export declare const publicCatalogProductMediaSchema: z.ZodObject<{
|
|
|
83
116
|
altText: z.ZodNullable<z.ZodString>;
|
|
84
117
|
sortOrder: z.ZodNumber;
|
|
85
118
|
isCover: z.ZodBoolean;
|
|
119
|
+
isBrochure: z.ZodBoolean;
|
|
120
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
121
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
86
122
|
}, z.core.$strip>;
|
|
87
123
|
export declare const publicCatalogProductFeatureSchema: z.ZodObject<{
|
|
88
124
|
id: z.ZodString;
|
|
@@ -122,6 +158,22 @@ export declare const publicCatalogProductLocationSchema: z.ZodObject<{
|
|
|
122
158
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
123
159
|
sortOrder: z.ZodNumber;
|
|
124
160
|
}, z.core.$strip>;
|
|
161
|
+
export declare const publicCatalogDestinationSchema: z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
164
|
+
slug: z.ZodString;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
description: z.ZodNullable<z.ZodString>;
|
|
167
|
+
seoTitle: z.ZodNullable<z.ZodString>;
|
|
168
|
+
seoDescription: z.ZodNullable<z.ZodString>;
|
|
169
|
+
destinationType: z.ZodEnum<{
|
|
170
|
+
city: "city";
|
|
171
|
+
destination: "destination";
|
|
172
|
+
region: "region";
|
|
173
|
+
country: "country";
|
|
174
|
+
}>;
|
|
175
|
+
sortOrder: z.ZodNumber;
|
|
176
|
+
}, z.core.$strip>;
|
|
125
177
|
export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
126
178
|
id: z.ZodString;
|
|
127
179
|
name: z.ZodString;
|
|
@@ -188,6 +240,41 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
188
240
|
accommodation: "accommodation";
|
|
189
241
|
transport: "transport";
|
|
190
242
|
}>>;
|
|
243
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
244
|
+
id: z.ZodString;
|
|
245
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
246
|
+
slug: z.ZodString;
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
description: z.ZodNullable<z.ZodString>;
|
|
249
|
+
seoTitle: z.ZodNullable<z.ZodString>;
|
|
250
|
+
seoDescription: z.ZodNullable<z.ZodString>;
|
|
251
|
+
destinationType: z.ZodEnum<{
|
|
252
|
+
city: "city";
|
|
253
|
+
destination: "destination";
|
|
254
|
+
region: "region";
|
|
255
|
+
country: "country";
|
|
256
|
+
}>;
|
|
257
|
+
sortOrder: z.ZodNumber;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
locationType: z.ZodEnum<{
|
|
262
|
+
other: "other";
|
|
263
|
+
start: "start";
|
|
264
|
+
end: "end";
|
|
265
|
+
meeting_point: "meeting_point";
|
|
266
|
+
pickup: "pickup";
|
|
267
|
+
dropoff: "dropoff";
|
|
268
|
+
point_of_interest: "point_of_interest";
|
|
269
|
+
}>;
|
|
270
|
+
title: z.ZodString;
|
|
271
|
+
address: z.ZodNullable<z.ZodString>;
|
|
272
|
+
city: z.ZodNullable<z.ZodString>;
|
|
273
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
274
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
275
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
276
|
+
sortOrder: z.ZodNumber;
|
|
277
|
+
}, z.core.$strip>>;
|
|
191
278
|
coverMedia: z.ZodNullable<z.ZodObject<{
|
|
192
279
|
id: z.ZodString;
|
|
193
280
|
mediaType: z.ZodEnum<{
|
|
@@ -201,6 +288,9 @@ export declare const publicCatalogProductSummarySchema: z.ZodObject<{
|
|
|
201
288
|
altText: z.ZodNullable<z.ZodString>;
|
|
202
289
|
sortOrder: z.ZodNumber;
|
|
203
290
|
isCover: z.ZodBoolean;
|
|
291
|
+
isBrochure: z.ZodBoolean;
|
|
292
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
293
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
204
294
|
}, z.core.$strip>>;
|
|
205
295
|
isFeatured: z.ZodBoolean;
|
|
206
296
|
}, z.core.$strip>;
|
|
@@ -270,6 +360,41 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
270
360
|
accommodation: "accommodation";
|
|
271
361
|
transport: "transport";
|
|
272
362
|
}>>;
|
|
363
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
364
|
+
id: z.ZodString;
|
|
365
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
366
|
+
slug: z.ZodString;
|
|
367
|
+
name: z.ZodString;
|
|
368
|
+
description: z.ZodNullable<z.ZodString>;
|
|
369
|
+
seoTitle: z.ZodNullable<z.ZodString>;
|
|
370
|
+
seoDescription: z.ZodNullable<z.ZodString>;
|
|
371
|
+
destinationType: z.ZodEnum<{
|
|
372
|
+
city: "city";
|
|
373
|
+
destination: "destination";
|
|
374
|
+
region: "region";
|
|
375
|
+
country: "country";
|
|
376
|
+
}>;
|
|
377
|
+
sortOrder: z.ZodNumber;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
locationType: z.ZodEnum<{
|
|
382
|
+
other: "other";
|
|
383
|
+
start: "start";
|
|
384
|
+
end: "end";
|
|
385
|
+
meeting_point: "meeting_point";
|
|
386
|
+
pickup: "pickup";
|
|
387
|
+
dropoff: "dropoff";
|
|
388
|
+
point_of_interest: "point_of_interest";
|
|
389
|
+
}>;
|
|
390
|
+
title: z.ZodString;
|
|
391
|
+
address: z.ZodNullable<z.ZodString>;
|
|
392
|
+
city: z.ZodNullable<z.ZodString>;
|
|
393
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
394
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
395
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
396
|
+
sortOrder: z.ZodNumber;
|
|
397
|
+
}, z.core.$strip>>;
|
|
273
398
|
coverMedia: z.ZodNullable<z.ZodObject<{
|
|
274
399
|
id: z.ZodString;
|
|
275
400
|
mediaType: z.ZodEnum<{
|
|
@@ -283,8 +408,28 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
283
408
|
altText: z.ZodNullable<z.ZodString>;
|
|
284
409
|
sortOrder: z.ZodNumber;
|
|
285
410
|
isCover: z.ZodBoolean;
|
|
411
|
+
isBrochure: z.ZodBoolean;
|
|
412
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
413
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
286
414
|
}, z.core.$strip>>;
|
|
287
415
|
isFeatured: z.ZodBoolean;
|
|
416
|
+
brochure: z.ZodNullable<z.ZodObject<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
mediaType: z.ZodEnum<{
|
|
419
|
+
image: "image";
|
|
420
|
+
video: "video";
|
|
421
|
+
document: "document";
|
|
422
|
+
}>;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
url: z.ZodString;
|
|
425
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
426
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
427
|
+
sortOrder: z.ZodNumber;
|
|
428
|
+
isCover: z.ZodBoolean;
|
|
429
|
+
isBrochure: z.ZodBoolean;
|
|
430
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
431
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
432
|
+
}, z.core.$strip>>;
|
|
288
433
|
media: z.ZodArray<z.ZodObject<{
|
|
289
434
|
id: z.ZodString;
|
|
290
435
|
mediaType: z.ZodEnum<{
|
|
@@ -298,6 +443,9 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
298
443
|
altText: z.ZodNullable<z.ZodString>;
|
|
299
444
|
sortOrder: z.ZodNumber;
|
|
300
445
|
isCover: z.ZodBoolean;
|
|
446
|
+
isBrochure: z.ZodBoolean;
|
|
447
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
448
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
301
449
|
}, z.core.$strip>>;
|
|
302
450
|
features: z.ZodArray<z.ZodObject<{
|
|
303
451
|
id: z.ZodString;
|
|
@@ -318,25 +466,6 @@ export declare const publicCatalogProductDetailSchema: z.ZodObject<{
|
|
|
318
466
|
answer: z.ZodString;
|
|
319
467
|
sortOrder: z.ZodNumber;
|
|
320
468
|
}, z.core.$strip>>;
|
|
321
|
-
locations: z.ZodArray<z.ZodObject<{
|
|
322
|
-
id: z.ZodString;
|
|
323
|
-
locationType: z.ZodEnum<{
|
|
324
|
-
other: "other";
|
|
325
|
-
start: "start";
|
|
326
|
-
end: "end";
|
|
327
|
-
meeting_point: "meeting_point";
|
|
328
|
-
pickup: "pickup";
|
|
329
|
-
dropoff: "dropoff";
|
|
330
|
-
point_of_interest: "point_of_interest";
|
|
331
|
-
}>;
|
|
332
|
-
title: z.ZodString;
|
|
333
|
-
address: z.ZodNullable<z.ZodString>;
|
|
334
|
-
city: z.ZodNullable<z.ZodString>;
|
|
335
|
-
countryCode: z.ZodNullable<z.ZodString>;
|
|
336
|
-
latitude: z.ZodNullable<z.ZodNumber>;
|
|
337
|
-
longitude: z.ZodNullable<z.ZodNumber>;
|
|
338
|
-
sortOrder: z.ZodNumber;
|
|
339
|
-
}, z.core.$strip>>;
|
|
340
469
|
}, z.core.$strip>;
|
|
341
470
|
export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
342
471
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -405,6 +534,41 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
405
534
|
accommodation: "accommodation";
|
|
406
535
|
transport: "transport";
|
|
407
536
|
}>>;
|
|
537
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
538
|
+
id: z.ZodString;
|
|
539
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
540
|
+
slug: z.ZodString;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
description: z.ZodNullable<z.ZodString>;
|
|
543
|
+
seoTitle: z.ZodNullable<z.ZodString>;
|
|
544
|
+
seoDescription: z.ZodNullable<z.ZodString>;
|
|
545
|
+
destinationType: z.ZodEnum<{
|
|
546
|
+
city: "city";
|
|
547
|
+
destination: "destination";
|
|
548
|
+
region: "region";
|
|
549
|
+
country: "country";
|
|
550
|
+
}>;
|
|
551
|
+
sortOrder: z.ZodNumber;
|
|
552
|
+
}, z.core.$strip>>;
|
|
553
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
locationType: z.ZodEnum<{
|
|
556
|
+
other: "other";
|
|
557
|
+
start: "start";
|
|
558
|
+
end: "end";
|
|
559
|
+
meeting_point: "meeting_point";
|
|
560
|
+
pickup: "pickup";
|
|
561
|
+
dropoff: "dropoff";
|
|
562
|
+
point_of_interest: "point_of_interest";
|
|
563
|
+
}>;
|
|
564
|
+
title: z.ZodString;
|
|
565
|
+
address: z.ZodNullable<z.ZodString>;
|
|
566
|
+
city: z.ZodNullable<z.ZodString>;
|
|
567
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
568
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
569
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
570
|
+
sortOrder: z.ZodNumber;
|
|
571
|
+
}, z.core.$strip>>;
|
|
408
572
|
coverMedia: z.ZodNullable<z.ZodObject<{
|
|
409
573
|
id: z.ZodString;
|
|
410
574
|
mediaType: z.ZodEnum<{
|
|
@@ -418,6 +582,9 @@ export declare const publicCatalogProductListResponseSchema: z.ZodObject<{
|
|
|
418
582
|
altText: z.ZodNullable<z.ZodString>;
|
|
419
583
|
sortOrder: z.ZodNumber;
|
|
420
584
|
isCover: z.ZodBoolean;
|
|
585
|
+
isBrochure: z.ZodBoolean;
|
|
586
|
+
isBrochureCurrent: z.ZodBoolean;
|
|
587
|
+
brochureVersion: z.ZodNullable<z.ZodNumber>;
|
|
421
588
|
}, z.core.$strip>>;
|
|
422
589
|
isFeatured: z.ZodBoolean;
|
|
423
590
|
}, z.core.$strip>>;
|
|
@@ -447,8 +614,30 @@ export declare const publicCatalogTagListResponseSchema: z.ZodObject<{
|
|
|
447
614
|
limit: z.ZodNumber;
|
|
448
615
|
offset: z.ZodNumber;
|
|
449
616
|
}, z.core.$strip>;
|
|
617
|
+
export declare const publicCatalogDestinationListResponseSchema: z.ZodObject<{
|
|
618
|
+
data: z.ZodArray<z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
621
|
+
slug: z.ZodString;
|
|
622
|
+
name: z.ZodString;
|
|
623
|
+
description: z.ZodNullable<z.ZodString>;
|
|
624
|
+
seoTitle: z.ZodNullable<z.ZodString>;
|
|
625
|
+
seoDescription: z.ZodNullable<z.ZodString>;
|
|
626
|
+
destinationType: z.ZodEnum<{
|
|
627
|
+
city: "city";
|
|
628
|
+
destination: "destination";
|
|
629
|
+
region: "region";
|
|
630
|
+
country: "country";
|
|
631
|
+
}>;
|
|
632
|
+
sortOrder: z.ZodNumber;
|
|
633
|
+
}, z.core.$strip>>;
|
|
634
|
+
total: z.ZodNumber;
|
|
635
|
+
limit: z.ZodNumber;
|
|
636
|
+
offset: z.ZodNumber;
|
|
637
|
+
}, z.core.$strip>;
|
|
450
638
|
export type PublicCatalogProductListQuery = z.infer<typeof publicCatalogProductListQuerySchema>;
|
|
451
639
|
export type PublicCatalogCategoryListQuery = z.infer<typeof publicCatalogCategoryListQuerySchema>;
|
|
452
640
|
export type PublicCatalogTagListQuery = z.infer<typeof publicCatalogTagListQuerySchema>;
|
|
641
|
+
export type PublicCatalogDestinationListQuery = z.infer<typeof publicCatalogDestinationListQuerySchema>;
|
|
453
642
|
export type PublicCatalogProductLookupBySlugQuery = z.infer<typeof publicCatalogProductLookupBySlugQuerySchema>;
|
|
454
643
|
//# sourceMappingURL=validation-public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAevB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB9C,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;iBAK/C,CAAA;AAEF,eAAO,MAAM,+BAA+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