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