@segha/catalog 4.1.1 → 5.0.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/common/Colors.ts +47 -0
  3. package/common/Countries.ts +22 -0
  4. package/common/DateAndTime.ts +46 -0
  5. package/common/ExternalIds.ts +6 -0
  6. package/common/Icons.ts +7 -0
  7. package/common/Languages.ts +21 -0
  8. package/common/Wiki.ts +17 -0
  9. package/es/Core/Format.ts +4 -0
  10. package/es/Core/Source.ts +1 -0
  11. package/es/DataTypes/ExternalId.ts +7 -0
  12. package/es/DataTypes/StreamUrls.ts +12 -0
  13. package/es/DataTypes/index.ts +2 -0
  14. package/es/DataTypes/types.ts +4 -0
  15. package/es/Movie/index.ts +25 -20
  16. package/es/Note.ts +2 -0
  17. package/es/TVSeries/index.ts +36 -0
  18. package/es/TVSeries/types.ts +6 -0
  19. package/es/index.ts +1 -0
  20. package/es/types.ts +2 -0
  21. package/json-schemas/es/Book/BookSchema.json +9 -9
  22. package/json-schemas/es/Book/index.json +9 -9
  23. package/json-schemas/es/BookSchema.json +9 -9
  24. package/json-schemas/es/Core/Format.json +1 -0
  25. package/json-schemas/es/Core/SourceSchema.json +4 -0
  26. package/json-schemas/es/Core/TVSeries.json +6 -0
  27. package/json-schemas/es/Core/index.json +11 -0
  28. package/json-schemas/es/DataTypes/StreamUrlsSchema.json +47 -0
  29. package/json-schemas/es/DataTypes/index.json +52 -0
  30. package/json-schemas/es/Movie/MovieSchema.json +286 -230
  31. package/json-schemas/es/Movie/index.json +286 -235
  32. package/json-schemas/es/MovieSchema.json +286 -230
  33. package/json-schemas/es/NoteSchema.json +638 -239
  34. package/json-schemas/es/Painting/PaintingSchema.json +4 -0
  35. package/json-schemas/es/Painting/index.json +4 -0
  36. package/json-schemas/es/PaintingSchema.json +4 -0
  37. package/json-schemas/es/TVSeries/TVSeriesSchema.json +336 -0
  38. package/json-schemas/es/TVSeries/index.json +343 -0
  39. package/json-schemas/es/TVSeriesSchema.json +336 -0
  40. package/json-schemas/es/Video/VideoSchema.json +4 -0
  41. package/json-schemas/es/Video/VimeoSchema.json +4 -0
  42. package/json-schemas/es/Video/YoutubeSchema.json +4 -0
  43. package/json-schemas/es/Video/index.json +12 -0
  44. package/json-schemas/es/VideoSchema.json +4 -0
  45. package/json-schemas/es/VimeoSchema.json +4 -0
  46. package/json-schemas/es/YoutubeSchema.json +4 -0
  47. package/json-schemas/es/index.json +1466 -659
  48. package/package.json +3 -4
  49. package/es/Movie/MovieExternalId.ts +0 -7
  50. /package/json-schemas/es/{Movie/MovieExternalId.json → DataTypes/TVExternalId.json} +0 -0
@@ -1,70 +1,56 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "type": {
6
- "default": "[[Fuentes]]",
7
- "type": "string",
8
- "const": "[[Fuentes]]",
9
- "description": "Bibliografías, recursos validados sobre los que acumular información."
10
- },
11
- "areas": {
12
- "default": [
13
- "[[Creatividad]]"
14
- ],
15
- "type": "array",
16
- "items": {
17
- "type": "string",
18
- "enum": [
19
- "[[Alimentación]]",
20
- "[[Salud]]",
21
- "[[Conocimiento]]",
22
- "[[Pensamiento Estructurado]]",
23
- "[[Hogar]]",
24
- "[[Productividad]]",
25
- "[[Exploración]]",
26
- "[[Vínculos]]",
27
- "[[Ejercicio]]",
28
- "[[Energía Vital]]",
29
- "[[Trabajo]]",
30
- "[[Finanzas]]",
31
- "[[Salud Mental]]",
32
- "[[Creatividad]]"
33
- ],
34
- "description": "Área"
35
- },
36
- "description": "Áreas"
37
- },
38
- "color": {
39
- "default": "#BE9207",
40
- "description": "Color de la nota.",
41
- "type": "string",
42
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
43
- },
44
- "icon": {
45
- "default": "movie",
46
- "description": "Icono de Lucide.",
47
- "type": "string",
48
- "pattern": "^[a-z-]+$"
49
- },
50
- "banner": {
51
- "description": "Imagen",
52
- "anyOf": [
53
- {
3
+ "allOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "default": "[[Fuentes]]",
54
9
  "type": "string",
55
- "format": "uri"
10
+ "const": "[[Fuentes]]",
11
+ "description": "Bibliografías, recursos validados sobre los que acumular información."
12
+ },
13
+ "areas": {
14
+ "default": [
15
+ "[[Creatividad]]"
16
+ ],
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string",
20
+ "enum": [
21
+ "[[Alimentación]]",
22
+ "[[Salud]]",
23
+ "[[Conocimiento]]",
24
+ "[[Pensamiento Estructurado]]",
25
+ "[[Hogar]]",
26
+ "[[Productividad]]",
27
+ "[[Exploración]]",
28
+ "[[Vínculos]]",
29
+ "[[Ejercicio]]",
30
+ "[[Energía Vital]]",
31
+ "[[Trabajo]]",
32
+ "[[Finanzas]]",
33
+ "[[Salud Mental]]",
34
+ "[[Creatividad]]"
35
+ ],
36
+ "description": "Área"
37
+ },
38
+ "description": "Áreas"
56
39
  },
57
- {
40
+ "color": {
41
+ "default": "#BE9207",
42
+ "description": "Color de la nota.",
58
43
  "type": "string",
59
- "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
60
- "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
61
- }
62
- ]
63
- },
64
- "cover": {
65
- "description": "Portada de la película.",
66
- "anyOf": [
67
- {
44
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
45
+ },
46
+ "icon": {
47
+ "default": "movie",
48
+ "description": "Icono de Lucide.",
49
+ "type": "string",
50
+ "pattern": "^[a-z-]+$"
51
+ },
52
+ "banner": {
53
+ "description": "Imagen",
68
54
  "anyOf": [
69
55
  {
70
56
  "type": "string",
@@ -75,206 +61,276 @@
75
61
  "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
76
62
  "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
77
63
  }
78
- ],
79
- "description": "Imagen: URL o Wikilink de una imagen."
64
+ ]
80
65
  },
81
- {
82
- "type": "null"
83
- }
84
- ]
85
- },
86
- "projects": {
87
- "description": "Proyectos asociados.",
88
- "type": "array",
89
- "items": {
90
- "type": "string",
91
- "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
92
- "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
93
- }
94
- },
95
- "topics": {
96
- "description": "Temas: Wikilink o texto libre",
97
- "type": "array",
98
- "items": {
99
- "anyOf": [
100
- {
66
+ "cover": {
67
+ "description": "Portada de la película.",
68
+ "anyOf": [
69
+ {
70
+ "anyOf": [
71
+ {
72
+ "type": "string",
73
+ "format": "uri"
74
+ },
75
+ {
76
+ "type": "string",
77
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
78
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
79
+ }
80
+ ],
81
+ "description": "Imagen: URL o Wikilink de una imagen."
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ]
87
+ },
88
+ "projects": {
89
+ "description": "Proyectos asociados.",
90
+ "type": "array",
91
+ "items": {
101
92
  "type": "string",
102
93
  "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
103
94
  "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
104
- },
105
- {
95
+ }
96
+ },
97
+ "topics": {
98
+ "description": "Temas: Wikilink o texto libre",
99
+ "type": "array",
100
+ "items": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string",
104
+ "pattern": "\\[\\[([^\\]|]+)(?:\\|([^\\]]+))?\\]\\]",
105
+ "description": "Wikilink: [[Wikilink]] o [[Wikilink|Display Text]]"
106
+ },
107
+ {
108
+ "type": "string"
109
+ }
110
+ ]
111
+ }
112
+ },
113
+ "status": {
114
+ "default": "Pendiente",
115
+ "anyOf": [
116
+ {
117
+ "type": "string",
118
+ "const": "Pendiente"
119
+ },
120
+ {
121
+ "type": "string",
122
+ "const": "En Proceso"
123
+ },
124
+ {
125
+ "type": "string",
126
+ "const": "Visto"
127
+ }
128
+ ],
129
+ "description": "Estado de visualización de la película"
130
+ },
131
+ "rating": {
132
+ "description": "Valoración personal de la fuente.",
133
+ "anyOf": [
134
+ {
135
+ "type": "number",
136
+ "const": 7,
137
+ "description": "Perfecto, hay que probarlo, te cambia la vida, haz un esfuerzo por buscarlo."
138
+ },
139
+ {
140
+ "type": "number",
141
+ "const": 6,
142
+ "description": "Excelente, vale la pena repetirlo"
143
+ },
144
+ {
145
+ "type": "number",
146
+ "const": 5,
147
+ "description": "Bueno, no hagas un esfuerzo especial, pero es agradable."
148
+ },
149
+ {
150
+ "type": "number",
151
+ "const": 4,
152
+ "description": "Aceptable, sirve en caso de apuro."
153
+ },
154
+ {
155
+ "type": "number",
156
+ "const": 3,
157
+ "description": "Malo, no lo hagas si puedes evitarlo."
158
+ },
159
+ {
160
+ "type": "number",
161
+ "const": 2,
162
+ "description": "Atroz, evítalo activamente, repulsivo"
163
+ },
164
+ {
165
+ "type": "number",
166
+ "const": 1,
167
+ "description": "Malvado, te cambia la vida para mal."
168
+ }
169
+ ]
170
+ },
171
+ "aliases": {
172
+ "description": "Alias de la nota.",
173
+ "type": "array",
174
+ "items": {
106
175
  "type": "string"
107
176
  }
108
- ]
109
- }
110
- },
111
- "status": {
112
- "default": "Pendiente",
113
- "anyOf": [
114
- {
177
+ },
178
+ "format": {
179
+ "default": "[[Películas]]",
180
+ "type": "string",
181
+ "const": "[[Películas]]",
182
+ "description": "Películas"
183
+ },
184
+ "url": {
115
185
  "type": "string",
116
- "const": "Pendiente"
186
+ "format": "uri",
187
+ "description": "URL de la película en IMDB o similar"
117
188
  },
118
- {
189
+ "author": {
190
+ "description": "Autores de la fuente.",
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "published": {
197
+ "description": "Año de publicación",
198
+ "anyOf": [
199
+ {
200
+ "type": "string",
201
+ "pattern": "^[0-9]{4}$",
202
+ "description": "Año: YYYY"
203
+ },
204
+ {
205
+ "type": "string",
206
+ "pattern": "^[0-9]{4}-[0-9]{2}$",
207
+ "description": "Mes: YYYY-MM"
208
+ },
209
+ {
210
+ "type": "string",
211
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
212
+ "description": "Fecha: YYYY-MM-DD"
213
+ }
214
+ ]
215
+ },
216
+ "title": {
119
217
  "type": "string",
120
- "const": "En Proceso"
218
+ "description": "Título de la película"
121
219
  },
122
- {
220
+ "description": {
221
+ "description": "Descripción de la fuente.",
222
+ "type": "string"
223
+ },
224
+ "watch_url": {
225
+ "description": "URL de la película en streaming",
226
+ "deprecated": true,
227
+ "replacement": "hbo_max_url|netflix_url|apple_tv_url|amazon_prime_url|disney_plus_url|hulu_url|pluto_tv_url|youtube_url",
123
228
  "type": "string",
124
- "const": "Visto"
125
- }
126
- ],
127
- "description": "Estado de visualización de la película"
128
- },
129
- "rating": {
130
- "description": "Valoración personal de la fuente.",
131
- "anyOf": [
132
- {
133
- "type": "number",
134
- "const": 7,
135
- "description": "Perfecto, hay que probarlo, te cambia la vida, haz un esfuerzo por buscarlo."
229
+ "format": "uri"
136
230
  },
137
- {
138
- "type": "number",
139
- "const": 6,
140
- "description": "Excelente, vale la pena repetirlo"
231
+ "external_ids": {
232
+ "description": "IDs externos de la película",
233
+ "type": "array",
234
+ "items": {
235
+ "type": "string",
236
+ "pattern": "^(tmdb|imdb|watchmode|tvmaze|tvdb):.+$"
237
+ }
141
238
  },
142
- {
143
- "type": "number",
144
- "const": 5,
145
- "description": "Bueno, no hagas un esfuerzo especial, pero es agradable."
239
+ "actors": {
240
+ "description": "Actores",
241
+ "type": "array",
242
+ "items": {
243
+ "type": "string"
244
+ }
146
245
  },
147
- {
148
- "type": "number",
149
- "const": 4,
150
- "description": "Aceptable, sirve en caso de apuro."
246
+ "genres": {
247
+ "description": "Géneros",
248
+ "type": "array",
249
+ "items": {
250
+ "type": "string"
251
+ }
151
252
  },
152
- {
153
- "type": "number",
154
- "const": 3,
155
- "description": "Malo, no lo hagas si puedes evitarlo."
253
+ "online_rating": {
254
+ "description": "Puntuación en línea",
255
+ "type": "number"
156
256
  },
157
- {
158
- "type": "number",
159
- "const": 2,
160
- "description": "Atroz, evítalo activamente, repulsivo"
257
+ "last_time_watched": {
258
+ "description": "Última vez vista",
259
+ "anyOf": [
260
+ {
261
+ "type": "string",
262
+ "pattern": "^[0-9]{4}$",
263
+ "description": "Año: YYYY"
264
+ },
265
+ {
266
+ "type": "string",
267
+ "pattern": "^[0-9]{4}-[0-9]{2}$",
268
+ "description": "Mes: YYYY-MM"
269
+ },
270
+ {
271
+ "type": "string",
272
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
273
+ "description": "Fecha: YYYY-MM-DD"
274
+ }
275
+ ]
161
276
  },
162
- {
163
- "type": "number",
164
- "const": 1,
165
- "description": "Malvado, te cambia la vida para mal."
277
+ "times_watched": {
278
+ "description": "Veces vista",
279
+ "default": 0,
280
+ "type": "number"
166
281
  }
282
+ },
283
+ "required": [
284
+ "url",
285
+ "title"
167
286
  ]
168
287
  },
169
- "aliases": {
170
- "description": "Alias de la nota.",
171
- "type": "array",
172
- "items": {
173
- "type": "string"
174
- }
175
- },
176
- "format": {
177
- "default": "[[Películas]]",
178
- "type": "string",
179
- "const": "[[Películas]]",
180
- "description": "Películas"
181
- },
182
- "url": {
183
- "type": "string",
184
- "format": "uri",
185
- "description": "URL de la película en IMDB o similar"
186
- },
187
- "author": {
188
- "description": "Autores de la fuente.",
189
- "type": "array",
190
- "items": {
191
- "type": "string"
192
- }
193
- },
194
- "published": {
195
- "description": "Año de publicación",
196
- "anyOf": [
197
- {
288
+ {
289
+ "type": "object",
290
+ "properties": {
291
+ "hbo_max_url": {
292
+ "description": "URL de HBO Max",
198
293
  "type": "string",
199
- "pattern": "^[0-9]{4}$",
200
- "description": "Año: YYYY"
294
+ "format": "uri"
201
295
  },
202
- {
296
+ "netflix_url": {
297
+ "description": "URL de Netflix",
203
298
  "type": "string",
204
- "pattern": "^[0-9]{4}-[0-9]{2}$",
205
- "description": "Mes: YYYY-MM"
299
+ "format": "uri"
206
300
  },
207
- {
301
+ "apple_tv_url": {
302
+ "description": "URL de Apple TV",
208
303
  "type": "string",
209
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
210
- "description": "Fecha: YYYY-MM-DD"
211
- }
212
- ]
213
- },
214
- "title": {
215
- "type": "string",
216
- "description": "Título de la película"
217
- },
218
- "watch_url": {
219
- "description": "URL de la película en streaming",
220
- "type": "string",
221
- "format": "uri"
222
- },
223
- "external_ids": {
224
- "description": "IDs externos de la película",
225
- "type": "array",
226
- "items": {
227
- "type": "string",
228
- "pattern": "^(tmdb|imdb|watchmode|tvmaze|tvdb):.+$"
229
- }
230
- },
231
- "actors": {
232
- "description": "Actores",
233
- "type": "array",
234
- "items": {
235
- "type": "string"
236
- }
237
- },
238
- "genres": {
239
- "description": "Géneros",
240
- "type": "array",
241
- "items": {
242
- "type": "string"
243
- }
244
- },
245
- "online_rating": {
246
- "description": "Puntuación en línea",
247
- "type": "number"
248
- },
249
- "last_time_watched": {
250
- "description": "Última vez vista",
251
- "anyOf": [
252
- {
304
+ "format": "uri"
305
+ },
306
+ "amazon_prime_url": {
307
+ "description": "URL de Amazon Prime",
308
+ "type": "string",
309
+ "format": "uri"
310
+ },
311
+ "disney_plus_url": {
312
+ "description": "URL de Disney Plus",
313
+ "type": "string",
314
+ "format": "uri"
315
+ },
316
+ "hulu_url": {
317
+ "description": "URL de Hulu",
253
318
  "type": "string",
254
- "pattern": "^[0-9]{4}$",
255
- "description": "Año: YYYY"
319
+ "format": "uri"
256
320
  },
257
- {
321
+ "pluto_tv_url": {
322
+ "description": "URL de Pluto TV",
258
323
  "type": "string",
259
- "pattern": "^[0-9]{4}-[0-9]{2}$",
260
- "description": "Mes: YYYY-MM"
324
+ "format": "uri"
261
325
  },
262
- {
326
+ "youtube_url": {
327
+ "description": "URL de YouTube",
263
328
  "type": "string",
264
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
265
- "description": "Fecha: YYYY-MM-DD"
329
+ "format": "uri"
266
330
  }
267
- ]
268
- },
269
- "times_watched": {
270
- "description": "Veces vista",
271
- "default": 0,
272
- "type": "number"
331
+ },
332
+ "description": "URLs de streaming"
273
333
  }
274
- },
275
- "required": [
276
- "url",
277
- "title"
278
334
  ],
279
335
  "description": "Película"
280
336
  }