@eventconnectors/ndtrc_model 1.4.0 → 1.5.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.js CHANGED
@@ -24,6 +24,8 @@ var AddressSchema = z2.object({
24
24
  city: z2.string().optional(),
25
25
  citytrcid: z2.string().optional(),
26
26
  country: z2.string().optional(),
27
+ /** Two-letter continent code: AF, AS, EU, NA, OC or SA. */
28
+ continent: z2.string().optional(),
27
29
  housenr: z2.string().optional(),
28
30
  street: z2.string().optional(),
29
31
  streettrcid: z2.string().optional(),
@@ -64,7 +66,9 @@ var URLServiceTypeSchema = z4.enum([
64
66
  "sustainability",
65
67
  "venuefinder",
66
68
  "travelbase",
67
- "homepage"
69
+ "homepage",
70
+ "ticket",
71
+ "reservation"
68
72
  ]);
69
73
  var DescriptionTranslationSchema = z4.object({
70
74
  lang: LangCodeSchema.optional(),
@@ -398,7 +402,8 @@ var RouteTypeSchema = z13.enum([
398
402
  "driving_traffic",
399
403
  "driving",
400
404
  "walking",
401
- "cycling"
405
+ "cycling",
406
+ "boating"
402
407
  ]);
403
408
  var RouteInfoTypeSchema = z13.enum([
404
409
  "eventConnectors",
@@ -499,7 +504,6 @@ var RouteInfoSchema = z13.object({
499
504
  pois: z13.array(PoiSchema).optional(),
500
505
  routeCoordinates: z13.array(LatLngSchema).optional(),
501
506
  calculatedCoordinates: z13.array(LatLngSchema).optional(),
502
- waterPoints: z13.array(LatLngSchema).optional(),
503
507
  difficulty: RouteDifficultySchema.optional(),
504
508
  primarySurface: SurfaceTypeSchema.optional()
505
509
  }).passthrough();
@@ -507,15 +511,26 @@ var RouteInfoSchema = z13.object({
507
511
  // src/seo-metadata.ts
508
512
  import { z as z14 } from "zod";
509
513
  var OGTypeSchema = z14.enum(["event", "place", "article", "organization"]);
510
- var TwitterCardTypeSchema = z14.enum(["summary", "summary_large_image"]);
514
+ var TwitterCardTypeSchema = z14.enum([
515
+ "summary",
516
+ "summary_large_image",
517
+ "app",
518
+ "player"
519
+ ]);
511
520
  var SeoDetailSchema = z14.object({
512
521
  lang: LangCodeSchema.optional(),
513
522
  metaTitle: z14.string().optional(),
514
523
  metaDescription: z14.string().optional(),
515
524
  ogImageUrl: z14.string().optional(),
516
525
  ogImageAlt: z14.string().optional(),
517
- ogType: OGTypeSchema.optional(),
518
- twitterCardType: TwitterCardTypeSchema.optional()
526
+ /**
527
+ * Free-form on purpose: widened from {@link OGTypeSchema} so ff-gui can curate its own
528
+ * option list independently of this model's release cycle.
529
+ */
530
+ ogType: z14.string().optional(),
531
+ twitterCardType: TwitterCardTypeSchema.optional(),
532
+ twitterImageUrl: z14.string().optional(),
533
+ twitterImageAlt: z14.string().optional()
519
534
  }).passthrough();
520
535
  var CanonicalConfigSchema = z14.object({
521
536
  canonicalUrl: z14.string().optional()
@@ -523,6 +538,7 @@ var CanonicalConfigSchema = z14.object({
523
538
  var SeoMetadataSchema = z14.object({
524
539
  seoDetails: z14.array(SeoDetailSchema).optional(),
525
540
  canonical: CanonicalConfigSchema.optional(),
541
+ overwriteDefaults: z14.boolean().optional(),
526
542
  schemaOrgJsonLd: z14.string().optional()
527
543
  }).passthrough();
528
544
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventconnectors/ndtrc_model",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "Zod schemas for the NDTRC tourism data model — TypeScript port of the Groovy ndtrc_model library",
5
5
  "keywords": [
6
6
  "ndtrc",