@eventconnectors/ndtrc_model 1.4.0 → 1.5.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/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(),
@@ -507,15 +509,26 @@ var RouteInfoSchema = z13.object({
507
509
  // src/seo-metadata.ts
508
510
  import { z as z14 } from "zod";
509
511
  var OGTypeSchema = z14.enum(["event", "place", "article", "organization"]);
510
- var TwitterCardTypeSchema = z14.enum(["summary", "summary_large_image"]);
512
+ var TwitterCardTypeSchema = z14.enum([
513
+ "summary",
514
+ "summary_large_image",
515
+ "app",
516
+ "player"
517
+ ]);
511
518
  var SeoDetailSchema = z14.object({
512
519
  lang: LangCodeSchema.optional(),
513
520
  metaTitle: z14.string().optional(),
514
521
  metaDescription: z14.string().optional(),
515
522
  ogImageUrl: z14.string().optional(),
516
523
  ogImageAlt: z14.string().optional(),
517
- ogType: OGTypeSchema.optional(),
518
- twitterCardType: TwitterCardTypeSchema.optional()
524
+ /**
525
+ * Free-form on purpose: widened from {@link OGTypeSchema} so ff-gui can curate its own
526
+ * option list independently of this model's release cycle.
527
+ */
528
+ ogType: z14.string().optional(),
529
+ twitterCardType: TwitterCardTypeSchema.optional(),
530
+ twitterImageUrl: z14.string().optional(),
531
+ twitterImageAlt: z14.string().optional()
519
532
  }).passthrough();
520
533
  var CanonicalConfigSchema = z14.object({
521
534
  canonicalUrl: z14.string().optional()
@@ -523,6 +536,7 @@ var CanonicalConfigSchema = z14.object({
523
536
  var SeoMetadataSchema = z14.object({
524
537
  seoDetails: z14.array(SeoDetailSchema).optional(),
525
538
  canonical: CanonicalConfigSchema.optional(),
539
+ overwriteDefaults: z14.boolean().optional(),
526
540
  schemaOrgJsonLd: z14.string().optional()
527
541
  }).passthrough();
528
542
 
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.0",
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",