@segha/catalog 2.2.0 → 4.0.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 (245) hide show
  1. package/CHANGELOG.md +187 -0
  2. package/es/Article/index.ts +17 -26
  3. package/es/Article/types.ts +1 -4
  4. package/es/Book/index.ts +21 -28
  5. package/es/Book/types.ts +1 -4
  6. package/es/Clothing/Cares.ts +1 -5
  7. package/es/Clothing/Colors.ts +2 -2
  8. package/es/Clothing/Fit.ts +1 -1
  9. package/es/Clothing/Formality.ts +12 -6
  10. package/es/Clothing/Layer.ts +7 -3
  11. package/es/Clothing/Materials.ts +1 -5
  12. package/es/Clothing/Measurements.ts +1 -3
  13. package/es/Clothing/Season.ts +10 -5
  14. package/es/Clothing/Status.ts +12 -6
  15. package/es/Clothing/UseCases.ts +1 -5
  16. package/es/Clothing/Variants.ts +2 -5
  17. package/es/Clothing/index.ts +30 -35
  18. package/es/Clothing/types.ts +1 -3
  19. package/es/Core/Area.ts +66 -0
  20. package/es/Core/Common.ts +43 -0
  21. package/es/Core/Format.ts +28 -0
  22. package/es/Core/Rating.ts +33 -0
  23. package/es/Core/Resource.ts +18 -0
  24. package/es/Core/Source.ts +37 -0
  25. package/es/Core/Subtype.ts +8 -0
  26. package/es/Core/Type.ts +36 -0
  27. package/es/Core/index.ts +9 -0
  28. package/es/DataTypes/Color.ts +22 -0
  29. package/es/DataTypes/Date.ts +45 -0
  30. package/es/DataTypes/Icon.ts +7 -0
  31. package/es/DataTypes/Image.ts +9 -0
  32. package/es/DataTypes/Language.ts +11 -0
  33. package/es/DataTypes/Status.ts +8 -0
  34. package/es/DataTypes/Wikilink.ts +16 -0
  35. package/es/DataTypes/index.ts +7 -0
  36. package/es/EncyclopediaEntry/index.ts +30 -0
  37. package/es/EncyclopediaEntry/types.ts +8 -0
  38. package/es/Movie/MovieExternalId.ts +7 -0
  39. package/es/Movie/index.ts +22 -27
  40. package/es/Movie/types.ts +1 -4
  41. package/es/Note.ts +4 -4
  42. package/es/Painting/index.ts +16 -23
  43. package/es/Painting/types.ts +1 -4
  44. package/es/Video/index.ts +35 -0
  45. package/es/Video/types.ts +9 -0
  46. package/es/index.ts +2 -2
  47. package/es/types.ts +2 -2
  48. package/json-schemas/common/Palette.json +14 -0
  49. package/json-schemas/common/Scheme.json +11 -0
  50. package/json-schemas/common/index.json +32 -0
  51. package/json-schemas/es/Article/ArticleSchema.json +184 -78
  52. package/json-schemas/es/Article/index.json +143 -193
  53. package/json-schemas/es/ArticleSchema.json +184 -78
  54. package/json-schemas/es/Book/BookSchema.json +227 -84
  55. package/json-schemas/es/Book/index.json +197 -213
  56. package/json-schemas/es/BookSchema.json +227 -84
  57. package/json-schemas/es/Clothing/AllYear.json +6 -0
  58. package/json-schemas/es/Clothing/Autumn.json +6 -0
  59. package/json-schemas/es/Clothing/Base.json +6 -0
  60. package/json-schemas/es/Clothing/BlackTie.json +6 -0
  61. package/json-schemas/es/Clothing/Care.json +2 -1
  62. package/json-schemas/es/Clothing/Casual.json +6 -0
  63. package/json-schemas/es/Clothing/ClothingSchema.json +195 -81
  64. package/json-schemas/es/Clothing/Damaged.json +6 -0
  65. package/json-schemas/es/Clothing/Exterior.json +6 -0
  66. package/json-schemas/es/Clothing/Fit.json +2 -2
  67. package/json-schemas/es/Clothing/Formal.json +6 -0
  68. package/json-schemas/es/Clothing/Formality.json +2 -2
  69. package/json-schemas/es/Clothing/Good.json +6 -0
  70. package/json-schemas/es/Clothing/Intermediate.json +6 -0
  71. package/json-schemas/es/Clothing/Material.json +2 -1
  72. package/json-schemas/es/Clothing/Measurements.json +2 -2
  73. package/json-schemas/es/Clothing/New.json +6 -0
  74. package/json-schemas/es/Clothing/Pattern.json +2 -2
  75. package/json-schemas/es/Clothing/Retire.json +6 -0
  76. package/json-schemas/es/Clothing/Season.json +2 -2
  77. package/json-schemas/es/Clothing/SecondaryColor.json +2 -2
  78. package/json-schemas/es/Clothing/SmartCasual.json +6 -0
  79. package/json-schemas/es/Clothing/Status.json +2 -3
  80. package/json-schemas/es/Clothing/Summer.json +6 -0
  81. package/json-schemas/es/Clothing/UseCase.json +2 -1
  82. package/json-schemas/es/Clothing/Variant.json +2 -1
  83. package/json-schemas/es/Clothing/VeryCasual.json +6 -0
  84. package/json-schemas/es/Clothing/Winter.json +6 -0
  85. package/json-schemas/es/Clothing/Worn.json +6 -0
  86. package/json-schemas/es/Clothing/index.json +367 -685
  87. package/json-schemas/es/ClothingSchema.json +195 -81
  88. package/json-schemas/es/Core/Articles.json +6 -0
  89. package/json-schemas/es/Core/Atrocious.json +6 -0
  90. package/json-schemas/es/Core/Bad.json +6 -0
  91. package/json-schemas/es/Core/Books.json +6 -0
  92. package/json-schemas/es/Core/Capabilities.json +6 -0
  93. package/json-schemas/es/Core/Chronicles.json +6 -0
  94. package/json-schemas/es/Core/Clothes.json +6 -0
  95. package/json-schemas/es/Core/CommonSchema.json +165 -0
  96. package/json-schemas/es/Core/Creativity.json +6 -0
  97. package/json-schemas/es/Core/EncyclopediaEntries.json +6 -0
  98. package/json-schemas/es/Core/Energy.json +6 -0
  99. package/json-schemas/es/Core/Entities.json +6 -0
  100. package/json-schemas/es/Core/Evil.json +6 -0
  101. package/json-schemas/es/Core/Excellent.json +6 -0
  102. package/json-schemas/es/Core/Exercise.json +6 -0
  103. package/json-schemas/es/Core/Exploration.json +6 -0
  104. package/json-schemas/es/Core/Extracts.json +6 -0
  105. package/json-schemas/es/Core/Finances.json +6 -0
  106. package/json-schemas/es/Core/Food.json +6 -0
  107. package/json-schemas/es/Core/Format.json +13 -0
  108. package/json-schemas/es/Core/Good.json +6 -0
  109. package/json-schemas/es/Core/Health.json +6 -0
  110. package/json-schemas/es/Core/Home.json +6 -0
  111. package/json-schemas/es/Core/Knowledge.json +6 -0
  112. package/json-schemas/es/Core/Links.json +6 -0
  113. package/json-schemas/es/Core/MentalHealth.json +6 -0
  114. package/json-schemas/es/Core/Movies.json +6 -0
  115. package/json-schemas/es/Core/Paintings.json +6 -0
  116. package/json-schemas/es/Core/Passable.json +6 -0
  117. package/json-schemas/es/Core/Perfect.json +6 -0
  118. package/json-schemas/es/Core/Productivity.json +6 -0
  119. package/json-schemas/es/Core/Publications.json +6 -0
  120. package/json-schemas/es/Core/Rating.json +41 -0
  121. package/json-schemas/es/Core/ResourceSchema.json +171 -0
  122. package/json-schemas/es/Core/Resources.json +6 -0
  123. package/json-schemas/es/Core/ResourcesSubtype.json +11 -0
  124. package/json-schemas/es/Core/Scenarios.json +6 -0
  125. package/json-schemas/es/Core/SourceSchema.json +209 -0
  126. package/json-schemas/es/Core/Sources.json +6 -0
  127. package/json-schemas/es/Core/SourcesFormat.json +16 -0
  128. package/json-schemas/es/Core/StructuredThinking.json +6 -0
  129. package/json-schemas/es/Core/Subtype.json +8 -0
  130. package/json-schemas/es/Core/Type.json +15 -0
  131. package/json-schemas/es/Core/Videos.json +6 -0
  132. package/json-schemas/es/Core/Work.json +6 -0
  133. package/json-schemas/es/Core/index.json +939 -0
  134. package/json-schemas/es/DataTypes/Blue.json +6 -0
  135. package/json-schemas/es/DataTypes/Color.json +6 -0
  136. package/json-schemas/es/DataTypes/Consolidated.json +5 -0
  137. package/json-schemas/es/DataTypes/Date.json +21 -0
  138. package/json-schemas/es/DataTypes/DateTime.json +6 -0
  139. package/json-schemas/es/DataTypes/DateTimeOffset.json +6 -0
  140. package/json-schemas/es/DataTypes/Embedding.json +6 -0
  141. package/json-schemas/es/DataTypes/FullDate.json +6 -0
  142. package/json-schemas/es/DataTypes/Hex.json +6 -0
  143. package/json-schemas/es/DataTypes/Icon.json +6 -0
  144. package/json-schemas/es/DataTypes/Image.json +15 -0
  145. package/json-schemas/es/DataTypes/InProgress.json +5 -0
  146. package/json-schemas/es/DataTypes/Language.json +6 -0
  147. package/json-schemas/es/DataTypes/LanguageTag.json +6 -0
  148. package/json-schemas/es/DataTypes/Month.json +6 -0
  149. package/json-schemas/es/DataTypes/Orange.json +6 -0
  150. package/json-schemas/es/DataTypes/OrdinalDate.json +6 -0
  151. package/json-schemas/es/DataTypes/Pending.json +5 -0
  152. package/json-schemas/es/DataTypes/Read.json +5 -0
  153. package/json-schemas/es/DataTypes/Seen.json +5 -0
  154. package/json-schemas/es/DataTypes/Time.json +6 -0
  155. package/json-schemas/es/DataTypes/Watched.json +5 -0
  156. package/json-schemas/es/DataTypes/Week.json +6 -0
  157. package/json-schemas/es/DataTypes/WeekWithWeekDay.json +6 -0
  158. package/json-schemas/es/DataTypes/Wikilink.json +6 -0
  159. package/json-schemas/es/DataTypes/WikilinkOrEmbedding.json +6 -0
  160. package/json-schemas/es/DataTypes/Year.json +6 -0
  161. package/json-schemas/es/DataTypes/Yellow.json +6 -0
  162. package/json-schemas/es/DataTypes/index.json +193 -0
  163. package/json-schemas/es/EncyclopediaEntry/EncyclopediaEntrySchema.json +252 -0
  164. package/json-schemas/es/EncyclopediaEntry/WikipediaEntrySchema.json +257 -0
  165. package/json-schemas/es/EncyclopediaEntry/index.json +516 -0
  166. package/json-schemas/es/EncyclopediaEntrySchema.json +252 -0
  167. package/json-schemas/es/Movie/MovieExternalId.json +5 -0
  168. package/json-schemas/es/Movie/MovieSchema.json +224 -93
  169. package/json-schemas/es/Movie/index.json +193 -225
  170. package/json-schemas/es/MovieSchema.json +224 -93
  171. package/json-schemas/es/NoteSchema.json +1323 -506
  172. package/json-schemas/es/Painting/PaintingSchema.json +182 -56
  173. package/json-schemas/es/Painting/index.json +160 -154
  174. package/json-schemas/es/PaintingSchema.json +182 -56
  175. package/json-schemas/es/Video/VideoSchema.json +230 -0
  176. package/json-schemas/es/Video/VimeoSchema.json +221 -0
  177. package/json-schemas/es/Video/YoutubeSchema.json +221 -0
  178. package/json-schemas/es/Video/index.json +679 -0
  179. package/json-schemas/es/VideoSchema.json +230 -0
  180. package/json-schemas/es/VimeoSchema.json +221 -0
  181. package/json-schemas/es/WikipediaEntrySchema.json +257 -0
  182. package/json-schemas/es/YoutubeSchema.json +158 -79
  183. package/json-schemas/es/index.json +3138 -3896
  184. package/package.json +8 -2
  185. package/es/Areas.ts +0 -24
  186. package/es/Icon.ts +0 -1673
  187. package/es/Wikipedia/index.ts +0 -18
  188. package/es/Wikipedia/types.ts +0 -10
  189. package/es/Youtube/index.ts +0 -19
  190. package/es/Youtube/types.ts +0 -10
  191. package/json-schemas/es/Article/CatalogArticleSchema.json +0 -47
  192. package/json-schemas/es/Article/DetailedArticleSchema.json +0 -38
  193. package/json-schemas/es/Article/MetaArticleSchema.json +0 -71
  194. package/json-schemas/es/Book/CatalogBookSchema.json +0 -48
  195. package/json-schemas/es/Book/DetailedBookSchema.json +0 -43
  196. package/json-schemas/es/Book/MetaBookSchema.json +0 -68
  197. package/json-schemas/es/CatalogArticleSchema.json +0 -47
  198. package/json-schemas/es/CatalogBookSchema.json +0 -48
  199. package/json-schemas/es/CatalogClothingSchema.json +0 -292
  200. package/json-schemas/es/CatalogMovieSchema.json +0 -50
  201. package/json-schemas/es/CatalogPaintingSchema.json +0 -26
  202. package/json-schemas/es/CatalogWikipediaSchema.json +0 -47
  203. package/json-schemas/es/CatalogYoutubeSchema.json +0 -47
  204. package/json-schemas/es/Clothing/Cares.json +0 -17
  205. package/json-schemas/es/Clothing/CatalogClothingSchema.json +0 -292
  206. package/json-schemas/es/Clothing/DetailedClothingSchema.json +0 -73
  207. package/json-schemas/es/Clothing/Materials.json +0 -32
  208. package/json-schemas/es/Clothing/MetaClothingSchema.json +0 -60
  209. package/json-schemas/es/Clothing/UseCases.json +0 -22
  210. package/json-schemas/es/Clothing/Variants.json +0 -41
  211. package/json-schemas/es/DetailedArticleSchema.json +0 -38
  212. package/json-schemas/es/DetailedBookSchema.json +0 -43
  213. package/json-schemas/es/DetailedClothingSchema.json +0 -73
  214. package/json-schemas/es/DetailedMovieSchema.json +0 -49
  215. package/json-schemas/es/DetailedPaintingSchema.json +0 -33
  216. package/json-schemas/es/DetailedWikipediaSchema.json +0 -38
  217. package/json-schemas/es/DetailedYoutubeSchema.json +0 -37
  218. package/json-schemas/es/Icon.json +0 -1675
  219. package/json-schemas/es/MetaArticleSchema.json +0 -71
  220. package/json-schemas/es/MetaBookSchema.json +0 -68
  221. package/json-schemas/es/MetaClothingSchema.json +0 -60
  222. package/json-schemas/es/MetaMovieSchema.json +0 -69
  223. package/json-schemas/es/MetaPaintingSchema.json +0 -61
  224. package/json-schemas/es/MetaWikipediaSchema.json +0 -76
  225. package/json-schemas/es/MetaYoutubeSchema.json +0 -76
  226. package/json-schemas/es/Movie/CatalogMovieSchema.json +0 -50
  227. package/json-schemas/es/Movie/DetailedMovieSchema.json +0 -49
  228. package/json-schemas/es/Movie/MetaMovieSchema.json +0 -69
  229. package/json-schemas/es/Painting/CatalogPaintingSchema.json +0 -26
  230. package/json-schemas/es/Painting/DetailedPaintingSchema.json +0 -33
  231. package/json-schemas/es/Painting/MetaPaintingSchema.json +0 -61
  232. package/json-schemas/es/Wikipedia/CatalogWikipediaSchema.json +0 -47
  233. package/json-schemas/es/Wikipedia/DetailedWikipediaSchema.json +0 -38
  234. package/json-schemas/es/Wikipedia/MetaWikipediaSchema.json +0 -76
  235. package/json-schemas/es/Wikipedia/WikipediaSchema.json +0 -143
  236. package/json-schemas/es/Wikipedia/index.json +0 -311
  237. package/json-schemas/es/WikipediaSchema.json +0 -143
  238. package/json-schemas/es/Youtube/CatalogYoutubeSchema.json +0 -47
  239. package/json-schemas/es/Youtube/DetailedYoutubeSchema.json +0 -37
  240. package/json-schemas/es/Youtube/MetaYoutubeSchema.json +0 -76
  241. package/json-schemas/es/Youtube/YoutubeSchema.json +0 -142
  242. package/json-schemas/es/Youtube/index.json +0 -309
  243. /package/json-schemas/es/{Area.json → Core/Area.json} +0 -0
  244. /package/json-schemas/es/{Areas.json → Core/Areas.json} +0 -0
  245. /package/json-schemas/es/{FirstLevelArea.json → Core/FirstLevelArea.json} +0 -0
@@ -7,78 +7,11 @@
7
7
  "$schema": "https://json-schema.org/draft/2020-12/schema",
8
8
  "type": "object",
9
9
  "properties": {
10
- "title": {
11
- "type": "string",
12
- "description": "Título del artículo"
13
- },
14
- "description": {
15
- "description": "Descripción",
16
- "anyOf": [
17
- {
18
- "type": "string"
19
- },
20
- {
21
- "type": "null"
22
- }
23
- ]
24
- },
25
- "excerpt": {
26
- "description": "Extracto del artículo",
27
- "type": "string"
28
- },
29
- "author": {
30
- "description": "Autores",
31
- "type": "array",
32
- "items": {
33
- "type": "string"
34
- }
35
- },
36
- "published": {
37
- "description": "Año de publicación",
38
- "anyOf": [
39
- {
40
- "type": "string"
41
- },
42
- {
43
- "type": "number"
44
- }
45
- ]
46
- },
47
- "status": {
48
- "type": "string",
49
- "enum": [
50
- "Pendiente",
51
- "En Proceso",
52
- "Leído",
53
- "Consolidado"
54
- ],
55
- "description": "Estado de lectura"
56
- },
57
- "projects": {
58
- "description": "Proyectos",
59
- "type": "array",
60
- "items": {
61
- "type": "string"
62
- }
63
- },
64
- "topics": {
65
- "description": "Temas",
66
- "type": "array",
67
- "items": {
68
- "type": "string"
69
- }
70
- },
71
- "rating": {
72
- "description": "Puntuación del artículo",
73
- "type": "number"
74
- },
75
10
  "type": {
11
+ "default": "[[Fuentes]]",
76
12
  "type": "string",
77
- "const": "[[Fuentes]]"
78
- },
79
- "format": {
80
- "type": "string",
81
- "const": "[[Artículos]]"
13
+ "const": "[[Fuentes]]",
14
+ "description": "Bibliografías, recursos validados sobre los que acumular información."
82
15
  },
83
16
  "areas": {
84
17
  "default": [
@@ -110,173 +43,189 @@
110
43
  "color": {
111
44
  "default": "#3171B2",
112
45
  "description": "Color de la nota.",
113
- "type": "string"
46
+ "type": "string",
47
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
114
48
  },
115
49
  "icon": {
116
50
  "default": "newspaper",
117
51
  "description": "Icono de Lucide.",
118
- "type": "string"
52
+ "type": "string",
53
+ "pattern": "^[a-z-]+$"
119
54
  },
120
55
  "banner": {
121
56
  "description": "Banner de la nota.",
122
57
  "anyOf": [
123
58
  {
124
- "type": "string"
59
+ "anyOf": [
60
+ {
61
+ "type": "string",
62
+ "format": "uri"
63
+ },
64
+ {
65
+ "type": "string",
66
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
67
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
68
+ }
69
+ ],
70
+ "description": "Imagen: URL o Wikilink de una imagen."
125
71
  },
126
72
  {
127
73
  "type": "null"
128
74
  }
129
75
  ]
130
76
  },
131
- "url": {
132
- "description": "URL del artículo",
133
- "type": "string"
134
- }
135
- },
136
- "required": [
137
- "title",
138
- "status",
139
- "type",
140
- "format"
141
- ],
142
- "description": "Artículo"
143
- },
144
- "CatalogArticleSchema": {
145
- "$schema": "https://json-schema.org/draft/2020-12/schema",
146
- "type": "object",
147
- "properties": {
148
- "title": {
149
- "type": "string",
150
- "description": "Título del artículo"
151
- },
152
- "description": {
153
- "description": "Descripción",
77
+ "cover": {
78
+ "description": "Cubierta",
154
79
  "anyOf": [
155
80
  {
156
- "type": "string"
81
+ "type": "string",
82
+ "format": "uri"
157
83
  },
158
84
  {
159
- "type": "null"
85
+ "type": "string",
86
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
87
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
160
88
  }
161
89
  ]
162
90
  },
163
- "excerpt": {
164
- "description": "Extracto del artículo",
165
- "type": "string"
91
+ "projects": {
92
+ "description": "Proyectos asociados.",
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string",
96
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
97
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
98
+ }
166
99
  },
167
- "author": {
168
- "description": "Autores",
100
+ "topics": {
169
101
  "type": "array",
170
102
  "items": {
171
- "type": "string"
103
+ "description": "Temas: Wikilink o texto libre",
104
+ "anyOf": [
105
+ {
106
+ "type": "string",
107
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
108
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
109
+ },
110
+ {
111
+ "type": "string"
112
+ }
113
+ ]
172
114
  }
173
115
  },
174
- "published": {
175
- "description": "Año de publicación",
116
+ "status": {
117
+ "default": "Pendiente",
176
118
  "anyOf": [
177
119
  {
178
- "type": "string"
120
+ "type": "string",
121
+ "const": "Pendiente"
122
+ },
123
+ {
124
+ "type": "string",
125
+ "const": "En Proceso"
126
+ },
127
+ {
128
+ "type": "string",
129
+ "const": "Leído"
179
130
  },
180
131
  {
181
- "type": "number"
132
+ "type": "string",
133
+ "const": "Consolidado"
182
134
  }
183
- ]
184
- }
185
- },
186
- "required": [
187
- "title"
188
- ],
189
- "description": "Artículo: Datos obtenibles de catalogación"
190
- },
191
- "DetailedArticleSchema": {
192
- "$schema": "https://json-schema.org/draft/2020-12/schema",
193
- "type": "object",
194
- "properties": {
195
- "status": {
196
- "type": "string",
197
- "enum": [
198
- "Pendiente",
199
- "En Proceso",
200
- "Leído",
201
- "Consolidado"
202
135
  ],
203
- "description": "Estado de lectura"
136
+ "description": "Estado de procesamiento del artículo"
204
137
  },
205
- "projects": {
206
- "description": "Proyectos",
207
- "type": "array",
208
- "items": {
209
- "type": "string"
210
- }
138
+ "rating": {
139
+ "description": "Valoración personal de la fuente.",
140
+ "anyOf": [
141
+ {
142
+ "type": "number",
143
+ "const": 7,
144
+ "description": "Perfecto, hay que probarlo, te cambia la vida, haz un esfuerzo por buscarlo."
145
+ },
146
+ {
147
+ "type": "number",
148
+ "const": 6,
149
+ "description": "Excelente, vale la pena repetirlo"
150
+ },
151
+ {
152
+ "type": "number",
153
+ "const": 5,
154
+ "description": "Bueno, no hagas un esfuerzo especial, pero es agradable."
155
+ },
156
+ {
157
+ "type": "number",
158
+ "const": 4,
159
+ "description": "Aceptable, sirve en caso de apuro."
160
+ },
161
+ {
162
+ "type": "number",
163
+ "const": 3,
164
+ "description": "Malo, no lo hagas si puedes evitarlo."
165
+ },
166
+ {
167
+ "type": "number",
168
+ "const": 2,
169
+ "description": "Atroz, evítalo activamente, repulsivo"
170
+ },
171
+ {
172
+ "type": "number",
173
+ "const": 1,
174
+ "description": "Malvado, te cambia la vida para mal."
175
+ }
176
+ ]
211
177
  },
212
- "topics": {
213
- "description": "Temas",
178
+ "aliases": {
179
+ "description": "Alias de la nota.",
214
180
  "type": "array",
215
181
  "items": {
216
182
  "type": "string"
217
183
  }
218
184
  },
219
- "rating": {
220
- "description": "Puntuación del artículo",
221
- "type": "number"
222
- }
223
- },
224
- "required": [
225
- "status"
226
- ],
227
- "description": "Artículo: Datos adicionales"
228
- },
229
- "MetaArticleSchema": {
230
- "$schema": "https://json-schema.org/draft/2020-12/schema",
231
- "type": "object",
232
- "properties": {
233
- "type": {
185
+ "format": {
186
+ "default": "[[Artículos]]",
234
187
  "type": "string",
235
- "const": "[[Fuentes]]"
188
+ "const": "[[Artículos]]",
189
+ "description": "Artículos"
236
190
  },
237
- "format": {
191
+ "url": {
238
192
  "type": "string",
239
- "const": "[[Artículos]]"
193
+ "format": "uri",
194
+ "description": "URL del artículo"
240
195
  },
241
- "areas": {
242
- "default": [
243
- "[[Conocimiento]]"
244
- ],
196
+ "author": {
197
+ "description": "Autores de la fuente.",
245
198
  "type": "array",
246
199
  "items": {
247
- "type": "string",
248
- "enum": [
249
- "[[Alimentación]]",
250
- "[[Salud]]",
251
- "[[Conocimiento]]",
252
- "[[Pensamiento Estructurado]]",
253
- "[[Hogar]]",
254
- "[[Productividad]]",
255
- "[[Exploración]]",
256
- "[[Vínculos]]",
257
- "[[Ejercicio]]",
258
- "[[Energía Vital]]",
259
- "[[Trabajo]]",
260
- "[[Finanzas]]",
261
- "[[Salud Mental]]",
262
- "[[Creatividad]]"
263
- ],
264
- "description": "Área"
265
- },
266
- "description": "Áreas"
200
+ "type": "string"
201
+ }
267
202
  },
268
- "color": {
269
- "default": "#3171B2",
270
- "description": "Color de la nota.",
271
- "type": "string"
203
+ "published": {
204
+ "description": "Fecha de publicación de la fuente.",
205
+ "anyOf": [
206
+ {
207
+ "type": "string",
208
+ "pattern": "^[0-9]{4}$",
209
+ "description": "Año: YYYY"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "pattern": "^[0-9]{4}-[0-9]{2}$",
214
+ "description": "Mes: YYYY-MM"
215
+ },
216
+ {
217
+ "type": "string",
218
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
219
+ "description": "Fecha: YYYY-MM-DD"
220
+ }
221
+ ]
272
222
  },
273
- "icon": {
274
- "default": "newspaper",
275
- "description": "Icono de Lucide.",
276
- "type": "string"
223
+ "title": {
224
+ "type": "string",
225
+ "description": "Título del artículo"
277
226
  },
278
- "banner": {
279
- "description": "Banner de la nota.",
227
+ "description": {
228
+ "description": "Descripción",
280
229
  "anyOf": [
281
230
  {
282
231
  "type": "string"
@@ -286,16 +235,17 @@
286
235
  }
287
236
  ]
288
237
  },
289
- "url": {
290
- "description": "URL del artículo",
238
+ "excerpt": {
239
+ "description": "Extracto del artículo",
291
240
  "type": "string"
292
241
  }
293
242
  },
294
243
  "required": [
295
- "type",
296
- "format"
244
+ "topics",
245
+ "url",
246
+ "title"
297
247
  ],
298
- "description": "Artículo: Metadatos de Nota"
248
+ "description": "Artículo"
299
249
  }
300
250
  }
301
251
  }