@lilaquadrat/interfaces 1.27.0 → 1.28.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.
Files changed (89) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/cjs/BlogIntroModule.d.ts +1 -1
  3. package/lib/cjs/CallToActionModule.d.ts +1 -1
  4. package/lib/cjs/CompareModule.d.ts +1 -1
  5. package/lib/cjs/ContactModule.d.ts +5 -8
  6. package/lib/cjs/CookiesModule.d.ts +1 -1
  7. package/lib/cjs/EmotionModule.d.ts +1 -1
  8. package/lib/cjs/EventModule.d.ts +1 -1
  9. package/lib/cjs/EventsListModule.d.ts +1 -1
  10. package/lib/cjs/FactsModule.d.ts +1 -1
  11. package/lib/cjs/FaqModule.d.ts +1 -1
  12. package/lib/cjs/FooterModule.d.ts +1 -1
  13. package/lib/cjs/GalleryModule.d.ts +1 -1
  14. package/lib/cjs/IndexModule.d.ts +1 -1
  15. package/lib/cjs/LocationModule.d.ts +1 -1
  16. package/lib/cjs/MenuModule.d.ts +1 -1
  17. package/lib/cjs/NavigationModule.d.ts +1 -1
  18. package/lib/cjs/PartialModule.d.ts +3 -2
  19. package/lib/cjs/PictureAndTextModule.d.ts +1 -1
  20. package/lib/cjs/PictureModule.d.ts +1 -1
  21. package/lib/cjs/PicturegroupModule.d.ts +1 -1
  22. package/lib/cjs/PlaeceholderModule.d.ts +1 -1
  23. package/lib/cjs/PricesModule.d.ts +1 -1
  24. package/lib/cjs/QuellcodeModule.d.ts +1 -1
  25. package/lib/cjs/QuoteModule.d.ts +1 -1
  26. package/lib/cjs/ShoppingCartModule.d.ts +1 -1
  27. package/lib/cjs/StoryModule.d.ts +1 -1
  28. package/lib/cjs/TextModule.d.ts +1 -1
  29. package/lib/cjs/TrainingMdule.d.ts +1 -1
  30. package/lib/cjs/VideoModule.d.ts +1 -1
  31. package/lib/esm/BlogIntroModule.d.ts +1 -1
  32. package/lib/esm/CallToActionModule.d.ts +1 -1
  33. package/lib/esm/CompareModule.d.ts +1 -1
  34. package/lib/esm/ContactModule.d.ts +5 -8
  35. package/lib/esm/CookiesModule.d.ts +1 -1
  36. package/lib/esm/EmotionModule.d.ts +1 -1
  37. package/lib/esm/EventModule.d.ts +1 -1
  38. package/lib/esm/EventsListModule.d.ts +1 -1
  39. package/lib/esm/FactsModule.d.ts +1 -1
  40. package/lib/esm/FaqModule.d.ts +1 -1
  41. package/lib/esm/FooterModule.d.ts +1 -1
  42. package/lib/esm/GalleryModule.d.ts +1 -1
  43. package/lib/esm/IndexModule.d.ts +1 -1
  44. package/lib/esm/LocationModule.d.ts +1 -1
  45. package/lib/esm/MenuModule.d.ts +1 -1
  46. package/lib/esm/NavigationModule.d.ts +1 -1
  47. package/lib/esm/PartialModule.d.ts +3 -2
  48. package/lib/esm/PictureAndTextModule.d.ts +1 -1
  49. package/lib/esm/PictureModule.d.ts +1 -1
  50. package/lib/esm/PicturegroupModule.d.ts +1 -1
  51. package/lib/esm/PlaeceholderModule.d.ts +1 -1
  52. package/lib/esm/PricesModule.d.ts +1 -1
  53. package/lib/esm/QuellcodeModule.d.ts +1 -1
  54. package/lib/esm/QuoteModule.d.ts +1 -1
  55. package/lib/esm/ShoppingCartModule.d.ts +1 -1
  56. package/lib/esm/StoryModule.d.ts +1 -1
  57. package/lib/esm/TextModule.d.ts +1 -1
  58. package/lib/esm/TrainingMdule.d.ts +1 -1
  59. package/lib/esm/VideoModule.d.ts +1 -1
  60. package/package.json +1 -1
  61. package/src/BlogIntroModule.ts +1 -1
  62. package/src/CallToActionModule.ts +1 -1
  63. package/src/CompareModule.ts +1 -1
  64. package/src/ContactModule.ts +5 -3
  65. package/src/CookiesModule.ts +1 -1
  66. package/src/EmotionModule.ts +1 -1
  67. package/src/EventModule.ts +1 -1
  68. package/src/EventsListModule.ts +1 -1
  69. package/src/FactsModule.ts +1 -1
  70. package/src/FaqModule.ts +1 -1
  71. package/src/FooterModule.ts +1 -1
  72. package/src/GalleryModule.ts +1 -1
  73. package/src/IndexModule.ts +1 -1
  74. package/src/LocationModule.ts +1 -1
  75. package/src/MenuModule.ts +1 -1
  76. package/src/NavigationModule.ts +1 -1
  77. package/src/PartialModule.ts +3 -2
  78. package/src/PictureAndTextModule.ts +1 -1
  79. package/src/PictureModule.ts +1 -1
  80. package/src/PicturegroupModule.ts +1 -1
  81. package/src/PlaeceholderModule.ts +1 -1
  82. package/src/PricesModule.ts +1 -1
  83. package/src/QuellcodeModule.ts +1 -1
  84. package/src/QuoteModule.ts +1 -1
  85. package/src/ShoppingCartModule.ts +1 -1
  86. package/src/StoryModule.ts +1 -1
  87. package/src/TextModule.ts +1 -1
  88. package/src/TrainingMdule.ts +1 -1
  89. package/src/VideoModule.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.28.0](https://github.com/lilaquadrat/interfaces/compare/v1.27.0...v1.28.0) (2025-04-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * **modules:** enhance module type definitions to support dynamic string types ([036175a](https://github.com/lilaquadrat/interfaces/commit/036175a170e44dee2b862476dafa82d4c7dc284a))
11
+
5
12
  ## [1.27.0](https://github.com/lilaquadrat/interfaces/compare/v1.26.1...v1.27.0) (2025-04-26)
6
13
 
7
14
 
@@ -3,7 +3,7 @@ import { Module } from "./Module";
3
3
  import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface BlogIntroModule extends Module {
6
- type: "blog-intro-module";
6
+ type: "blog-intro-module" | `${string}-blog-intro-module`;
7
7
  author?: string;
8
8
  date?: string;
9
9
  textblock?: Textblock;
@@ -4,7 +4,7 @@ import { ListString } from "./ListString";
4
4
  import { Module } from "./Module";
5
5
  import { Textblock } from "./Textblock";
6
6
  export interface CallToActionModule extends Module {
7
- type: "callToAction-module";
7
+ type: "callToAction-module" | `${string}-callToAction-module`;
8
8
  textblock?: Textblock;
9
9
  list?: ListString;
10
10
  links?: ListLink;
@@ -3,7 +3,7 @@ import { CompareStructureElement } from "./CompareStructureElement";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface CompareModule extends Module {
6
- type: "compare-module";
6
+ type: "compare-module" | `${string}-compare-module`;
7
7
  textblock?: Textblock;
8
8
  elements?: CompareElement[];
9
9
  structure?: CompareStructureElement[];
@@ -1,15 +1,12 @@
1
+ import { CategoryStructure } from "./CategoryStructure";
1
2
  import { GenericData } from "./GenericData";
3
+ import { GenericDataDistributed } from "./GenericDataDistributed";
2
4
  import { Module } from "./Module";
3
5
  import { Textblock } from "./Textblock";
4
6
  export interface ContactModule extends Module {
5
- type: "contact-module";
6
- genericData?: GenericData;
7
+ type: "contact-module" | `${string}-contact-module`;
8
+ genericData?: GenericData | GenericDataDistributed;
7
9
  textblock?: Textblock;
8
10
  categoryTextblock?: Textblock;
9
- categories?: {
10
- type: 'array';
11
- contains: {
12
- model: 'contact-category-element';
13
- };
14
- };
11
+ categories?: CategoryStructure[];
15
12
  }
@@ -3,7 +3,7 @@ import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface CookiesModule extends Module {
6
- type: "cookies-module";
6
+ type: "cookies-module" | `${string}-cookies-module`;
7
7
  textblock?: Textblock;
8
8
  list?: ListString;
9
9
  links?: ListLink;
@@ -4,7 +4,7 @@ import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  import { Video } from "./Video";
6
6
  export interface EmotionModule extends Module {
7
- type: "emotion-module";
7
+ type: "emotion-module" | `${string}-emotion-module`;
8
8
  fontVariant?: string[];
9
9
  background?: Picture;
10
10
  video?: Video;
@@ -6,7 +6,7 @@ import { Media } from "./Media";
6
6
  import { Module } from "./Module";
7
7
  import { Textblock } from "./Textblock";
8
8
  export interface EventModule extends Module {
9
- type: "event-module";
9
+ type: "event-module" | `${string}-event-module`;
10
10
  textblock?: Textblock;
11
11
  artist?: string;
12
12
  name?: string;
@@ -2,7 +2,7 @@ import { EventsListElement } from "./events-list-element";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface EventsListModule extends Module {
5
- type: "events-list-module";
5
+ type: "events-list-module" | `${string}-events-list-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: EventsListElement[];
8
8
  }
@@ -2,7 +2,7 @@ import { FactsElement } from "./FactsElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface FactsModule extends Module {
5
- type: "facts-module";
5
+ type: "facts-module" | `${string}-facts-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: FactsElement[];
8
8
  }
@@ -2,7 +2,7 @@ import { Accordion } from "./Accordion";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface FaqModule extends Module {
5
- type: "faq-module";
5
+ type: "faq-module" | `${string}-faq-module`;
6
6
  textblock?: Textblock;
7
7
  accordion?: Accordion;
8
8
  }
@@ -7,7 +7,7 @@ import { ListString } from "./ListString";
7
7
  import { Picture } from "./Picture";
8
8
  import { Textblock } from "./Textblock";
9
9
  export interface FooterModule extends Module {
10
- type: "footer-module";
10
+ type: "footer-module" | `${string}-footer-module`;
11
11
  legal?: string;
12
12
  contact?: FooterContact;
13
13
  social?: FooterSocial;
@@ -2,7 +2,7 @@ import { GalleryElement } from "./GalleryElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface GalleryModule extends Module {
5
- type: "gallery-module";
5
+ type: "gallery-module" | `${string}-gallery-module`;
6
6
  description?: Textblock;
7
7
  elements?: GalleryElement[];
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { ListLink } from "./ListLink";
2
2
  import { Module } from "./Module";
3
3
  export interface IndexModule extends Module {
4
- type: "index-module";
4
+ type: "index-module" | `${string}-index-module`;
5
5
  links?: ListLink;
6
6
  }
@@ -3,7 +3,7 @@ import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface LocationModule extends Module {
6
- type: 'location-module';
6
+ type: 'location-module' | `${string}-location-module`;
7
7
  textblock?: Textblock;
8
8
  map?: string;
9
9
  list?: ListString;
@@ -2,7 +2,7 @@ import { MenuCategoryElement } from "./MenuCategoryElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface MenuModule extends Module {
5
- type: "menu-module";
5
+ type: "menu-module" | `${string}-menu-module`;
6
6
  name?: string;
7
7
  textblock?: Textblock;
8
8
  intro?: Textblock;
@@ -2,7 +2,7 @@ import { LinkGroupElement } from "./LinkGroupElement";
2
2
  import { Module } from "./Module";
3
3
  import { Picture } from "./Picture";
4
4
  export interface NavigationModule extends Module {
5
- type: "navigation-module";
5
+ type: "navigation-module" | `${string}-navigation-module`;
6
6
  name?: string;
7
7
  picture?: Picture;
8
8
  elements?: LinkGroupElement[];
@@ -1,8 +1,9 @@
1
+ import { CompatibleModule } from "./CompatibleModule";
1
2
  import { Module } from "./Module";
2
3
  export interface PartialModule extends Module {
3
- type: "partial-module";
4
+ type: "partial-module" | `${string}-partial-module`;
4
5
  company?: string;
5
6
  project?: string;
6
7
  partialId?: string;
7
- modules?: string[];
8
+ modules?: string[] | CompatibleModule[];
8
9
  }
@@ -4,7 +4,7 @@ import { Module } from "./Module";
4
4
  import { Picture } from "./Picture";
5
5
  import { Textblock } from "./Textblock";
6
6
  export interface PictureAndTextModule extends Module {
7
- type: "pictureandtext-module";
7
+ type: "pictureandtext-module" | `${string}-pictureandtext-module`;
8
8
  picture?: Picture;
9
9
  textblock?: Textblock;
10
10
  title?: Textblock;
@@ -2,7 +2,7 @@ import { Module } from "./Module";
2
2
  import { Picture } from "./Picture";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface PictureModule extends Module {
5
- type: "picture-module";
5
+ type: "picture-module" | `${string}-picture-module`;
6
6
  picture?: Picture;
7
7
  textblock?: Textblock;
8
8
  }
@@ -3,7 +3,7 @@ import { Module } from "./Module";
3
3
  import { PicturegroupElement } from "./PicturegroupElement";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface PicturegroupModule extends Module {
6
- type: "picturegroup-module";
6
+ type: "picturegroup-module" | `${string}-picturegroup-module`;
7
7
  elements?: PicturegroupElement[];
8
8
  title?: Textblock;
9
9
  list?: ListString;
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  export interface PlaceholderModule extends Module {
3
- type: "placeholder-module";
3
+ type: "placeholder-module" | `${string}-placeholder-module`;
4
4
  hint?: string;
5
5
  additionalData?: string;
6
6
  }
@@ -2,7 +2,7 @@ import { Module } from "./Module";
2
2
  import { PricesElement } from "./PricesElement";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface PricesModule extends Module {
5
- type: "prices-module";
5
+ type: "prices-module" | `${string}-prices-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: PricesElement[];
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  export interface QuellcodeModule extends Module {
3
- type: "quellcode-module";
3
+ type: "quellcode-module" | `${string}-quellcode-module`;
4
4
  headline?: string;
5
5
  subline?: string;
6
6
  intro?: string;
@@ -1,7 +1,7 @@
1
1
  import { Link } from "./Link";
2
2
  import { Module } from "./Module";
3
3
  export interface QuoteModule extends Module {
4
- type: "quote-module";
4
+ type: "quote-module" | `${string}-quote-module`;
5
5
  citation?: string;
6
6
  quote?: string;
7
7
  link?: Link;
@@ -1,6 +1,6 @@
1
1
  import { GenericData } from "./GenericData";
2
2
  import { Module } from "./Module";
3
3
  export interface ShoppingCartModule extends Module {
4
- type: "shopping-cart-module";
4
+ type: "shopping-cart-module" | `${string}-shopping-cart-module`;
5
5
  genericData?: GenericData;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  import { StoryElement } from "./story-element";
3
3
  export interface StoryModule extends Module {
4
- type: "story-module";
4
+ type: "story-module" | `${string}-story-module`;
5
5
  elements?: StoryElement[];
6
6
  }
@@ -2,7 +2,7 @@ import { ListLink } from "./ListLink";
2
2
  import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  export interface TextModule extends Module {
5
- type: "text-module";
5
+ type: "text-module" | `${string}-text-module`;
6
6
  headline?: string;
7
7
  subline?: string;
8
8
  intro?: string;
@@ -2,7 +2,7 @@ import { GenericData } from "./GenericData";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface TrainingModule extends Module {
5
- type: "training-module";
5
+ type: "training-module" | `${string}-training-module`;
6
6
  genericData?: GenericData;
7
7
  textblock?: Textblock;
8
8
  }
@@ -4,7 +4,7 @@ import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  import { Video } from "./Video";
6
6
  export interface VideoModule extends Module {
7
- type: "video-module";
7
+ type: "video-module" | `${string}-video-module`;
8
8
  fontVariant?: string[];
9
9
  video?: Video;
10
10
  poster?: Picture;
@@ -3,7 +3,7 @@ import { Module } from "./Module";
3
3
  import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface BlogIntroModule extends Module {
6
- type: "blog-intro-module";
6
+ type: "blog-intro-module" | `${string}-blog-intro-module`;
7
7
  author?: string;
8
8
  date?: string;
9
9
  textblock?: Textblock;
@@ -4,7 +4,7 @@ import { ListString } from "./ListString";
4
4
  import { Module } from "./Module";
5
5
  import { Textblock } from "./Textblock";
6
6
  export interface CallToActionModule extends Module {
7
- type: "callToAction-module";
7
+ type: "callToAction-module" | `${string}-callToAction-module`;
8
8
  textblock?: Textblock;
9
9
  list?: ListString;
10
10
  links?: ListLink;
@@ -3,7 +3,7 @@ import { CompareStructureElement } from "./CompareStructureElement";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface CompareModule extends Module {
6
- type: "compare-module";
6
+ type: "compare-module" | `${string}-compare-module`;
7
7
  textblock?: Textblock;
8
8
  elements?: CompareElement[];
9
9
  structure?: CompareStructureElement[];
@@ -1,15 +1,12 @@
1
+ import { CategoryStructure } from "./CategoryStructure";
1
2
  import { GenericData } from "./GenericData";
3
+ import { GenericDataDistributed } from "./GenericDataDistributed";
2
4
  import { Module } from "./Module";
3
5
  import { Textblock } from "./Textblock";
4
6
  export interface ContactModule extends Module {
5
- type: "contact-module";
6
- genericData?: GenericData;
7
+ type: "contact-module" | `${string}-contact-module`;
8
+ genericData?: GenericData | GenericDataDistributed;
7
9
  textblock?: Textblock;
8
10
  categoryTextblock?: Textblock;
9
- categories?: {
10
- type: 'array';
11
- contains: {
12
- model: 'contact-category-element';
13
- };
14
- };
11
+ categories?: CategoryStructure[];
15
12
  }
@@ -3,7 +3,7 @@ import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface CookiesModule extends Module {
6
- type: "cookies-module";
6
+ type: "cookies-module" | `${string}-cookies-module`;
7
7
  textblock?: Textblock;
8
8
  list?: ListString;
9
9
  links?: ListLink;
@@ -4,7 +4,7 @@ import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  import { Video } from "./Video";
6
6
  export interface EmotionModule extends Module {
7
- type: "emotion-module";
7
+ type: "emotion-module" | `${string}-emotion-module`;
8
8
  fontVariant?: string[];
9
9
  background?: Picture;
10
10
  video?: Video;
@@ -6,7 +6,7 @@ import { Media } from "./Media";
6
6
  import { Module } from "./Module";
7
7
  import { Textblock } from "./Textblock";
8
8
  export interface EventModule extends Module {
9
- type: "event-module";
9
+ type: "event-module" | `${string}-event-module`;
10
10
  textblock?: Textblock;
11
11
  artist?: string;
12
12
  name?: string;
@@ -2,7 +2,7 @@ import { EventsListElement } from "./events-list-element";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface EventsListModule extends Module {
5
- type: "events-list-module";
5
+ type: "events-list-module" | `${string}-events-list-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: EventsListElement[];
8
8
  }
@@ -2,7 +2,7 @@ import { FactsElement } from "./FactsElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface FactsModule extends Module {
5
- type: "facts-module";
5
+ type: "facts-module" | `${string}-facts-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: FactsElement[];
8
8
  }
@@ -2,7 +2,7 @@ import { Accordion } from "./Accordion";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface FaqModule extends Module {
5
- type: "faq-module";
5
+ type: "faq-module" | `${string}-faq-module`;
6
6
  textblock?: Textblock;
7
7
  accordion?: Accordion;
8
8
  }
@@ -7,7 +7,7 @@ import { ListString } from "./ListString";
7
7
  import { Picture } from "./Picture";
8
8
  import { Textblock } from "./Textblock";
9
9
  export interface FooterModule extends Module {
10
- type: "footer-module";
10
+ type: "footer-module" | `${string}-footer-module`;
11
11
  legal?: string;
12
12
  contact?: FooterContact;
13
13
  social?: FooterSocial;
@@ -2,7 +2,7 @@ import { GalleryElement } from "./GalleryElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface GalleryModule extends Module {
5
- type: "gallery-module";
5
+ type: "gallery-module" | `${string}-gallery-module`;
6
6
  description?: Textblock;
7
7
  elements?: GalleryElement[];
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { ListLink } from "./ListLink";
2
2
  import { Module } from "./Module";
3
3
  export interface IndexModule extends Module {
4
- type: "index-module";
4
+ type: "index-module" | `${string}-index-module`;
5
5
  links?: ListLink;
6
6
  }
@@ -3,7 +3,7 @@ import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface LocationModule extends Module {
6
- type: 'location-module';
6
+ type: 'location-module' | `${string}-location-module`;
7
7
  textblock?: Textblock;
8
8
  map?: string;
9
9
  list?: ListString;
@@ -2,7 +2,7 @@ import { MenuCategoryElement } from "./MenuCategoryElement";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface MenuModule extends Module {
5
- type: "menu-module";
5
+ type: "menu-module" | `${string}-menu-module`;
6
6
  name?: string;
7
7
  textblock?: Textblock;
8
8
  intro?: Textblock;
@@ -2,7 +2,7 @@ import { LinkGroupElement } from "./LinkGroupElement";
2
2
  import { Module } from "./Module";
3
3
  import { Picture } from "./Picture";
4
4
  export interface NavigationModule extends Module {
5
- type: "navigation-module";
5
+ type: "navigation-module" | `${string}-navigation-module`;
6
6
  name?: string;
7
7
  picture?: Picture;
8
8
  elements?: LinkGroupElement[];
@@ -1,8 +1,9 @@
1
+ import { CompatibleModule } from "./CompatibleModule";
1
2
  import { Module } from "./Module";
2
3
  export interface PartialModule extends Module {
3
- type: "partial-module";
4
+ type: "partial-module" | `${string}-partial-module`;
4
5
  company?: string;
5
6
  project?: string;
6
7
  partialId?: string;
7
- modules?: string[];
8
+ modules?: string[] | CompatibleModule[];
8
9
  }
@@ -4,7 +4,7 @@ import { Module } from "./Module";
4
4
  import { Picture } from "./Picture";
5
5
  import { Textblock } from "./Textblock";
6
6
  export interface PictureAndTextModule extends Module {
7
- type: "pictureandtext-module";
7
+ type: "pictureandtext-module" | `${string}-pictureandtext-module`;
8
8
  picture?: Picture;
9
9
  textblock?: Textblock;
10
10
  title?: Textblock;
@@ -2,7 +2,7 @@ import { Module } from "./Module";
2
2
  import { Picture } from "./Picture";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface PictureModule extends Module {
5
- type: "picture-module";
5
+ type: "picture-module" | `${string}-picture-module`;
6
6
  picture?: Picture;
7
7
  textblock?: Textblock;
8
8
  }
@@ -3,7 +3,7 @@ import { Module } from "./Module";
3
3
  import { PicturegroupElement } from "./PicturegroupElement";
4
4
  import { Textblock } from "./Textblock";
5
5
  export interface PicturegroupModule extends Module {
6
- type: "picturegroup-module";
6
+ type: "picturegroup-module" | `${string}-picturegroup-module`;
7
7
  elements?: PicturegroupElement[];
8
8
  title?: Textblock;
9
9
  list?: ListString;
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  export interface PlaceholderModule extends Module {
3
- type: "placeholder-module";
3
+ type: "placeholder-module" | `${string}-placeholder-module`;
4
4
  hint?: string;
5
5
  additionalData?: string;
6
6
  }
@@ -2,7 +2,7 @@ import { Module } from "./Module";
2
2
  import { PricesElement } from "./PricesElement";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface PricesModule extends Module {
5
- type: "prices-module";
5
+ type: "prices-module" | `${string}-prices-module`;
6
6
  textblock?: Textblock;
7
7
  elements?: PricesElement[];
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  export interface QuellcodeModule extends Module {
3
- type: "quellcode-module";
3
+ type: "quellcode-module" | `${string}-quellcode-module`;
4
4
  headline?: string;
5
5
  subline?: string;
6
6
  intro?: string;
@@ -1,7 +1,7 @@
1
1
  import { Link } from "./Link";
2
2
  import { Module } from "./Module";
3
3
  export interface QuoteModule extends Module {
4
- type: "quote-module";
4
+ type: "quote-module" | `${string}-quote-module`;
5
5
  citation?: string;
6
6
  quote?: string;
7
7
  link?: Link;
@@ -1,6 +1,6 @@
1
1
  import { GenericData } from "./GenericData";
2
2
  import { Module } from "./Module";
3
3
  export interface ShoppingCartModule extends Module {
4
- type: "shopping-cart-module";
4
+ type: "shopping-cart-module" | `${string}-shopping-cart-module`;
5
5
  genericData?: GenericData;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Module } from "./Module";
2
2
  import { StoryElement } from "./story-element";
3
3
  export interface StoryModule extends Module {
4
- type: "story-module";
4
+ type: "story-module" | `${string}-story-module`;
5
5
  elements?: StoryElement[];
6
6
  }
@@ -2,7 +2,7 @@ import { ListLink } from "./ListLink";
2
2
  import { ListString } from "./ListString";
3
3
  import { Module } from "./Module";
4
4
  export interface TextModule extends Module {
5
- type: "text-module";
5
+ type: "text-module" | `${string}-text-module`;
6
6
  headline?: string;
7
7
  subline?: string;
8
8
  intro?: string;
@@ -2,7 +2,7 @@ import { GenericData } from "./GenericData";
2
2
  import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
  export interface TrainingModule extends Module {
5
- type: "training-module";
5
+ type: "training-module" | `${string}-training-module`;
6
6
  genericData?: GenericData;
7
7
  textblock?: Textblock;
8
8
  }
@@ -4,7 +4,7 @@ import { Picture } from "./Picture";
4
4
  import { Textblock } from "./Textblock";
5
5
  import { Video } from "./Video";
6
6
  export interface VideoModule extends Module {
7
- type: "video-module";
7
+ type: "video-module" | `${string}-video-module`;
8
8
  fontVariant?: string[];
9
9
  video?: Video;
10
10
  poster?: Picture;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/interfaces",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "interfaces in context of lilaquadrat STUDIO",
5
5
  "author": {
6
6
  "email": "m.schuebel@lila2.de",
@@ -4,7 +4,7 @@ import { Picture } from "./Picture"
4
4
  import { Textblock } from "./Textblock"
5
5
 
6
6
  export interface BlogIntroModule extends Module {
7
- type: "blog-intro-module"
7
+ type: "blog-intro-module" | `${string}-blog-intro-module`
8
8
  author?: string
9
9
  date?: string
10
10
  textblock?: Textblock
@@ -5,7 +5,7 @@ import { Module } from "./Module"
5
5
  import { Textblock } from "./Textblock"
6
6
 
7
7
  export interface CallToActionModule extends Module {
8
- type: "callToAction-module"
8
+ type: "callToAction-module" | `${string}-callToAction-module`
9
9
  textblock?: Textblock
10
10
  list?: ListString
11
11
  links?: ListLink
@@ -4,7 +4,7 @@ import { Module } from "./Module"
4
4
  import { Textblock } from "./Textblock"
5
5
 
6
6
  export interface CompareModule extends Module {
7
- type: "compare-module"
7
+ type: "compare-module" | `${string}-compare-module`
8
8
  textblock?: Textblock
9
9
  elements?: CompareElement[]
10
10
  structure?: CompareStructureElement[]
@@ -1,11 +1,13 @@
1
+ import { CategoryStructure } from "./CategoryStructure"
1
2
  import { GenericData } from "./GenericData"
3
+ import { GenericDataDistributed } from "./GenericDataDistributed"
2
4
  import { Module } from "./Module"
3
5
  import { Textblock } from "./Textblock"
4
6
 
5
7
  export interface ContactModule extends Module {
6
- type: "contact-module"
7
- genericData?: GenericData
8
+ type: "contact-module" | `${string}-contact-module`
9
+ genericData?: GenericData | GenericDataDistributed
8
10
  textblock?: Textblock
9
11
  categoryTextblock?: Textblock
10
- categories?: { type: 'array', contains: { model: 'contact-category-element' } }
12
+ categories?: CategoryStructure[]
11
13
  }
@@ -4,7 +4,7 @@ import { Module } from "./Module"
4
4
  import { Textblock } from "./Textblock"
5
5
 
6
6
  export interface CookiesModule extends Module {
7
- type: "cookies-module"
7
+ type: "cookies-module" | `${string}-cookies-module`
8
8
  textblock?: Textblock
9
9
  list?: ListString
10
10
  links?: ListLink
@@ -5,7 +5,7 @@ import { Textblock } from "./Textblock"
5
5
  import { Video } from "./Video"
6
6
 
7
7
  export interface EmotionModule extends Module {
8
- type: "emotion-module"
8
+ type: "emotion-module" | `${string}-emotion-module`
9
9
  fontVariant?: string[]
10
10
  background?: Picture
11
11
  video?: Video
@@ -7,7 +7,7 @@ import { Module } from "./Module"
7
7
  import { Textblock } from "./Textblock"
8
8
 
9
9
  export interface EventModule extends Module {
10
- type: "event-module"
10
+ type: "event-module" | `${string}-event-module`
11
11
  textblock?: Textblock
12
12
  artist?: string
13
13
  name?: string
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface EventsListModule extends Module {
6
- type: "events-list-module"
6
+ type: "events-list-module" | `${string}-events-list-module`
7
7
  textblock?: Textblock
8
8
  elements?: EventsListElement[]
9
9
  }
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface FactsModule extends Module {
6
- type: "facts-module"
6
+ type: "facts-module" | `${string}-facts-module`
7
7
  textblock?: Textblock
8
8
  elements?: FactsElement[]
9
9
  }
package/src/FaqModule.ts CHANGED
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface FaqModule extends Module {
6
- type: "faq-module"
6
+ type: "faq-module" | `${string}-faq-module`
7
7
  textblock?: Textblock
8
8
  accordion?: Accordion
9
9
  }
@@ -8,7 +8,7 @@ import { Picture } from "./Picture"
8
8
  import { Textblock } from "./Textblock"
9
9
 
10
10
  export interface FooterModule extends Module {
11
- type: "footer-module"
11
+ type: "footer-module" | `${string}-footer-module`
12
12
  legal?: string
13
13
  contact?: FooterContact
14
14
  social?: FooterSocial
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface GalleryModule extends Module {
6
- type: "gallery-module"
6
+ type: "gallery-module" | `${string}-gallery-module`
7
7
  description?: Textblock
8
8
  elements?: GalleryElement[]
9
9
  }
@@ -2,6 +2,6 @@ import { ListLink } from "./ListLink";
2
2
  import { Module } from "./Module";
3
3
 
4
4
  export interface IndexModule extends Module {
5
- type: "index-module"
5
+ type: "index-module" | `${string}-index-module`
6
6
  links?: ListLink
7
7
  }
@@ -4,7 +4,7 @@ import { Module } from "./Module"
4
4
  import { Textblock } from "./Textblock"
5
5
 
6
6
  export interface LocationModule extends Module {
7
- type: 'location-module'
7
+ type: 'location-module' | `${string}-location-module`
8
8
  textblock?: Textblock
9
9
  map?: string
10
10
  list?: ListString
package/src/MenuModule.ts CHANGED
@@ -3,7 +3,7 @@ import { Module } from "./Module";
3
3
  import { Textblock } from "./Textblock";
4
4
 
5
5
  export interface MenuModule extends Module {
6
- type: "menu-module";
6
+ type: "menu-module" | `${string}-menu-module`;
7
7
  name?: string;
8
8
  textblock?: Textblock;
9
9
  intro?: Textblock;
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Picture } from "./Picture"
4
4
 
5
5
  export interface NavigationModule extends Module {
6
- type: "navigation-module"
6
+ type: "navigation-module" | `${string}-navigation-module`
7
7
  name?: string
8
8
  picture?: Picture
9
9
  elements?: LinkGroupElement[]
@@ -1,9 +1,10 @@
1
+ import { CompatibleModule } from "./CompatibleModule";
1
2
  import { Module } from "./Module";
2
3
 
3
4
  export interface PartialModule extends Module {
4
- type: "partial-module";
5
+ type: "partial-module" | `${string}-partial-module`;
5
6
  company?: string;
6
7
  project?: string;
7
8
  partialId?: string;
8
- modules?: string[];
9
+ modules?: string[] | CompatibleModule[];
9
10
  }
@@ -5,7 +5,7 @@ import { Picture } from "./Picture"
5
5
  import { Textblock } from "./Textblock"
6
6
 
7
7
  export interface PictureAndTextModule extends Module {
8
- type: "pictureandtext-module"
8
+ type: "pictureandtext-module" | `${string}-pictureandtext-module`
9
9
  picture?: Picture
10
10
  textblock?: Textblock
11
11
  title?: Textblock
@@ -3,7 +3,7 @@ import { Picture } from "./Picture"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface PictureModule extends Module {
6
- type: "picture-module"
6
+ type: "picture-module" | `${string}-picture-module`
7
7
  picture?: Picture
8
8
  textblock?: Textblock
9
9
  }
@@ -4,7 +4,7 @@ import { PicturegroupElement } from "./PicturegroupElement"
4
4
  import { Textblock } from "./Textblock"
5
5
 
6
6
  export interface PicturegroupModule extends Module {
7
- type: "picturegroup-module"
7
+ type: "picturegroup-module" | `${string}-picturegroup-module`
8
8
  elements?: PicturegroupElement[]
9
9
  title?: Textblock
10
10
  list?: ListString
@@ -1,7 +1,7 @@
1
1
  import { Module } from "./Module"
2
2
 
3
3
  export interface PlaceholderModule extends Module {
4
- type: "placeholder-module"
4
+ type: "placeholder-module" | `${string}-placeholder-module`
5
5
  hint?: string
6
6
  additionalData?: string
7
7
  }
@@ -3,7 +3,7 @@ import { PricesElement } from "./PricesElement"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface PricesModule extends Module {
6
- type: "prices-module"
6
+ type: "prices-module" | `${string}-prices-module`
7
7
  textblock?: Textblock
8
8
  elements?: PricesElement[]
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import { Module } from "./Module"
2
2
 
3
3
  export interface QuellcodeModule extends Module {
4
- type: "quellcode-module"
4
+ type: "quellcode-module" | `${string}-quellcode-module`
5
5
  headline?: string
6
6
  subline?: string
7
7
  intro?: string
@@ -2,7 +2,7 @@ import { Link } from "./Link"
2
2
  import { Module } from "./Module"
3
3
 
4
4
  export interface QuoteModule extends Module {
5
- type: "quote-module"
5
+ type: "quote-module" | `${string}-quote-module`
6
6
  citation?: string
7
7
  quote?: string
8
8
  link?: Link
@@ -2,6 +2,6 @@ import { GenericData } from "./GenericData";
2
2
  import { Module } from "./Module";
3
3
 
4
4
  export interface ShoppingCartModule extends Module {
5
- type: "shopping-cart-module"
5
+ type: "shopping-cart-module" | `${string}-shopping-cart-module`
6
6
  genericData?: GenericData
7
7
  }
@@ -2,6 +2,6 @@ import { Module } from "./Module";
2
2
  import { StoryElement } from "./story-element";
3
3
 
4
4
  export interface StoryModule extends Module {
5
- type: "story-module"
5
+ type: "story-module" | `${string}-story-module`
6
6
  elements?: StoryElement[]
7
7
  }
package/src/TextModule.ts CHANGED
@@ -3,7 +3,7 @@ import { ListString } from "./ListString"
3
3
  import { Module } from "./Module"
4
4
 
5
5
  export interface TextModule extends Module {
6
- type: "text-module"
6
+ type: "text-module" | `${string}-text-module`
7
7
  headline?: string
8
8
  subline?: string
9
9
  intro?: string
@@ -3,7 +3,7 @@ import { Module } from "./Module"
3
3
  import { Textblock } from "./Textblock"
4
4
 
5
5
  export interface TrainingModule extends Module {
6
- type: "training-module"
6
+ type: "training-module" | `${string}-training-module`
7
7
  genericData?: GenericData
8
8
  textblock?: Textblock
9
9
  }
@@ -5,7 +5,7 @@ import { Textblock } from "./Textblock"
5
5
  import { Video } from "./Video"
6
6
 
7
7
  export interface VideoModule extends Module {
8
- type: "video-module"
8
+ type: "video-module" | `${string}-video-module`
9
9
  fontVariant?: string[]
10
10
  video?: Video
11
11
  poster?: Picture