interface.d.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. import { ActionMenuItemType } from "~/types/enum/layout";
  2. import { COOKIE_CONSENT_CHOICE } from '~/types/enum/enums'
  3. interface ActionMenuItem {
  4. type: ActionMenuItemType
  5. color: 'primary' | 'secondary'
  6. icon: string
  7. text: string
  8. url?: string | object,
  9. target?: string
  10. }
  11. interface MainMenuItem {
  12. label: string
  13. to?: string
  14. children?: Array<MainMenuItem>
  15. }
  16. interface CarouselItem {
  17. logo: string
  18. logoAlt: string
  19. description: string
  20. descriptionSm: string
  21. buttonClass: string
  22. image: string
  23. imageAlt: string
  24. color: string
  25. link: string
  26. name: string
  27. school: string
  28. status: string
  29. avatar: string
  30. avatarAlt: string
  31. }
  32. interface SolutionItem {
  33. name: string
  34. description: string
  35. image: string
  36. alt: string
  37. link: string
  38. class: string
  39. solutions: string[]
  40. }
  41. interface Review {
  42. name: string,
  43. review: string,
  44. status: string,
  45. structure: string,
  46. }
  47. interface MenuScroll {
  48. label: string,
  49. anchor: string
  50. }
  51. interface FeaturePicto {
  52. src: string,
  53. text: string
  54. }
  55. // TODO: vérifier l'utilité des props list et isMemberCmf
  56. interface Benefit {
  57. title: string
  58. number: string
  59. description: string
  60. image: string
  61. alt: string
  62. isMemberCMF?: boolean
  63. }
  64. interface Functionality {
  65. logo: string
  66. logoAlt: string
  67. title: string
  68. list: Array<string>
  69. options?: Array<string>
  70. }
  71. interface ComparisonItem {
  72. label: string
  73. includedInStandard: boolean | string
  74. includedInPremium: boolean | string
  75. }
  76. interface Formation {
  77. image: string
  78. alt: string
  79. overlayClass: string
  80. sessions: string
  81. title: string
  82. description: string
  83. buttonText: string
  84. link: string
  85. }
  86. interface Program {
  87. id: number
  88. objectives: string[]
  89. }
  90. interface Training {
  91. number?: string
  92. title: string
  93. description: string
  94. objectives: string[]
  95. duration: string
  96. program?: Program[]
  97. price: string
  98. downloadLink: string
  99. imageUrl?: string
  100. imageAlt?: string
  101. additionalObjectives?: Program[]
  102. }
  103. interface FaqEntry {
  104. question: string
  105. answer: string
  106. }
  107. interface SocietyValue {
  108. img: string
  109. alt: string
  110. title: string
  111. description: string
  112. }
  113. interface Event {
  114. rdv: string
  115. title: string
  116. localisation: string
  117. date: string
  118. img: string
  119. tags: string[]
  120. }
  121. interface ChronologyItem {
  122. year: string
  123. title: string
  124. description: string
  125. imageUrl: string
  126. }
  127. interface SocietyMember {
  128. name: string
  129. position: string
  130. photo: string
  131. alt: string
  132. }
  133. interface SocialNetworkShareBtn {
  134. name: string
  135. icon: string
  136. colorOnHover?: string
  137. url: string
  138. }
  139. interface ContactFormData {
  140. gender: string | null
  141. postalCode: string | null
  142. city: string | null
  143. phone: string | null
  144. requestType: string | null
  145. concernedProduct: string | null
  146. newsletterSubscription: boolean
  147. }
  148. interface CookiesPreferences {
  149. consent: COOKIE_CONSENT_CHOICE,
  150. analyticsConsent: boolean,
  151. advertisingConsent: boolean,
  152. adUserDataConsent: boolean,
  153. adPersonalizationConsent: boolean,
  154. }
  155. interface Article {
  156. title: string
  157. text: string
  158. image: string
  159. imageAlt: string
  160. btnTitle?: string
  161. btnHref?: string
  162. }