@segha/catalog 2.0.0 → 2.2.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.
- package/CHANGELOG.md +29 -0
- package/README.md +355 -4
- package/en/Areas.ts +24 -0
- package/en/Article/index.ts +29 -0
- package/en/Article/types.ts +9 -0
- package/en/Book/index.ts +33 -0
- package/en/Book/types.ts +9 -0
- package/en/Clothing/index.ts +9 -9
- package/en/Movie/index.ts +34 -0
- package/en/Movie/types.ts +9 -0
- package/en/Note.ts +15 -0
- package/en/Wikipedia/index.ts +18 -0
- package/en/Wikipedia/types.ts +10 -0
- package/en/index.ts +5 -1
- package/en/types.ts +7 -0
- package/es/Areas.ts +24 -0
- package/es/Article/index.ts +34 -0
- package/es/Article/types.ts +9 -0
- package/es/Book/index.ts +36 -0
- package/es/Book/types.ts +9 -0
- package/es/Clothing/index.ts +11 -10
- package/es/Icon.ts +1673 -0
- package/es/Movie/index.ts +36 -0
- package/es/Movie/types.ts +9 -0
- package/es/Note.ts +19 -0
- package/es/Painting/index.ts +30 -0
- package/es/Painting/types.ts +9 -0
- package/es/Wikipedia/index.ts +18 -0
- package/es/Wikipedia/types.ts +10 -0
- package/es/Youtube/index.ts +19 -0
- package/es/Youtube/types.ts +10 -0
- package/es/index.ts +7 -0
- package/es/types.ts +10 -0
- package/json-schemas/ArticleSchema.json +102 -0
- package/json-schemas/BookSchema.json +123 -0
- package/json-schemas/CatalogArticleSchema.json +34 -0
- package/json-schemas/CatalogBookSchema.json +43 -0
- package/json-schemas/CatalogClothingSchema.json +0 -1
- package/json-schemas/CatalogMovieSchema.json +48 -0
- package/json-schemas/CatalogWikipediaSchema.json +34 -0
- package/json-schemas/ClothingSchema.json +0 -2
- package/json-schemas/DetailedArticleSchema.json +41 -0
- package/json-schemas/DetailedBookSchema.json +48 -0
- package/json-schemas/DetailedClothingSchema.json +0 -2
- package/json-schemas/DetailedMovieSchema.json +47 -0
- package/json-schemas/DetailedWikipediaSchema.json +41 -0
- package/json-schemas/MetaArticleSchema.json +45 -0
- package/json-schemas/MetaBookSchema.json +50 -0
- package/json-schemas/MetaClothingSchema.json +0 -1
- package/json-schemas/MetaMovieSchema.json +50 -0
- package/json-schemas/MetaWikipediaSchema.json +50 -0
- package/json-schemas/MovieSchema.json +127 -0
- package/json-schemas/NoteSchema.json +846 -0
- package/json-schemas/WikipediaSchema.json +107 -0
- package/json-schemas/en/Area.json +21 -0
- package/json-schemas/en/Areas.json +25 -0
- package/json-schemas/en/Article/ArticleSchema.json +102 -0
- package/json-schemas/en/Article/CatalogArticleSchema.json +34 -0
- package/json-schemas/en/Article/DetailedArticleSchema.json +41 -0
- package/json-schemas/en/Article/MetaArticleSchema.json +45 -0
- package/json-schemas/en/Article/index.json +229 -0
- package/json-schemas/en/ArticleSchema.json +102 -0
- package/json-schemas/en/Book/BookSchema.json +123 -0
- package/json-schemas/en/Book/CatalogBookSchema.json +43 -0
- package/json-schemas/en/Book/DetailedBookSchema.json +48 -0
- package/json-schemas/en/Book/MetaBookSchema.json +50 -0
- package/json-schemas/en/Book/index.json +271 -0
- package/json-schemas/en/BookSchema.json +123 -0
- package/json-schemas/en/CatalogArticleSchema.json +34 -0
- package/json-schemas/en/CatalogBookSchema.json +43 -0
- package/json-schemas/en/CatalogClothingSchema.json +0 -1
- package/json-schemas/en/CatalogMovieSchema.json +48 -0
- package/json-schemas/en/CatalogWikipediaSchema.json +34 -0
- package/json-schemas/en/Clothing/CatalogClothingSchema.json +0 -1
- package/json-schemas/en/Clothing/ClothingSchema.json +0 -2
- package/json-schemas/en/Clothing/DetailedClothingSchema.json +0 -2
- package/json-schemas/en/Clothing/MetaClothingSchema.json +0 -1
- package/json-schemas/en/Clothing/index.json +0 -6
- package/json-schemas/en/ClothingSchema.json +0 -2
- package/json-schemas/en/DetailedArticleSchema.json +41 -0
- package/json-schemas/en/DetailedBookSchema.json +48 -0
- package/json-schemas/en/DetailedClothingSchema.json +0 -2
- package/json-schemas/en/DetailedMovieSchema.json +47 -0
- package/json-schemas/en/DetailedWikipediaSchema.json +41 -0
- package/json-schemas/en/FirstLevelArea.json +21 -0
- package/json-schemas/en/MetaArticleSchema.json +45 -0
- package/json-schemas/en/MetaBookSchema.json +50 -0
- package/json-schemas/en/MetaClothingSchema.json +0 -1
- package/json-schemas/en/MetaMovieSchema.json +50 -0
- package/json-schemas/en/MetaWikipediaSchema.json +50 -0
- package/json-schemas/en/Movie/CatalogMovieSchema.json +48 -0
- package/json-schemas/en/Movie/DetailedMovieSchema.json +47 -0
- package/json-schemas/en/Movie/MetaMovieSchema.json +50 -0
- package/json-schemas/en/Movie/MovieSchema.json +127 -0
- package/json-schemas/en/Movie/index.json +279 -0
- package/json-schemas/en/MovieSchema.json +127 -0
- package/json-schemas/en/NoteSchema.json +846 -0
- package/json-schemas/en/Wikipedia/CatalogWikipediaSchema.json +34 -0
- package/json-schemas/en/Wikipedia/DetailedWikipediaSchema.json +41 -0
- package/json-schemas/en/Wikipedia/MetaWikipediaSchema.json +50 -0
- package/json-schemas/en/Wikipedia/WikipediaSchema.json +107 -0
- package/json-schemas/en/Wikipedia/index.json +239 -0
- package/json-schemas/en/WikipediaSchema.json +107 -0
- package/json-schemas/en/index.json +1923 -26
- package/json-schemas/es/Area.json +21 -0
- package/json-schemas/es/Areas.json +25 -0
- package/json-schemas/es/Article/ArticleSchema.json +138 -0
- package/json-schemas/es/Article/CatalogArticleSchema.json +47 -0
- package/json-schemas/es/Article/DetailedArticleSchema.json +38 -0
- package/json-schemas/es/Article/MetaArticleSchema.json +71 -0
- package/json-schemas/es/Article/index.json +301 -0
- package/json-schemas/es/ArticleSchema.json +138 -0
- package/json-schemas/es/Book/BookSchema.json +141 -0
- package/json-schemas/es/Book/CatalogBookSchema.json +48 -0
- package/json-schemas/es/Book/DetailedBookSchema.json +43 -0
- package/json-schemas/es/Book/MetaBookSchema.json +68 -0
- package/json-schemas/es/Book/index.json +307 -0
- package/json-schemas/es/BookSchema.json +141 -0
- package/json-schemas/es/CatalogArticleSchema.json +47 -0
- package/json-schemas/es/CatalogBookSchema.json +48 -0
- package/json-schemas/es/CatalogClothingSchema.json +0 -1
- package/json-schemas/es/CatalogMovieSchema.json +50 -0
- package/json-schemas/es/CatalogPaintingSchema.json +26 -0
- package/json-schemas/es/CatalogWikipediaSchema.json +47 -0
- package/json-schemas/es/CatalogYoutubeSchema.json +47 -0
- package/json-schemas/es/Clothing/CatalogClothingSchema.json +0 -1
- package/json-schemas/es/Clothing/ClothingSchema.json +30 -12
- package/json-schemas/es/Clothing/DetailedClothingSchema.json +1 -3
- package/json-schemas/es/Clothing/MetaClothingSchema.json +30 -11
- package/json-schemas/es/Clothing/index.json +61 -27
- package/json-schemas/es/ClothingSchema.json +30 -12
- package/json-schemas/es/DetailedArticleSchema.json +38 -0
- package/json-schemas/es/DetailedBookSchema.json +43 -0
- package/json-schemas/es/DetailedClothingSchema.json +1 -3
- package/json-schemas/es/DetailedMovieSchema.json +49 -0
- package/json-schemas/es/DetailedPaintingSchema.json +33 -0
- package/json-schemas/es/DetailedWikipediaSchema.json +38 -0
- package/json-schemas/es/DetailedYoutubeSchema.json +37 -0
- package/json-schemas/es/FirstLevelArea.json +21 -0
- package/json-schemas/es/Icon.json +1675 -0
- package/json-schemas/es/MetaArticleSchema.json +71 -0
- package/json-schemas/es/MetaBookSchema.json +68 -0
- package/json-schemas/es/MetaClothingSchema.json +30 -11
- package/json-schemas/es/MetaMovieSchema.json +69 -0
- package/json-schemas/es/MetaPaintingSchema.json +61 -0
- package/json-schemas/es/MetaWikipediaSchema.json +76 -0
- package/json-schemas/es/MetaYoutubeSchema.json +76 -0
- package/json-schemas/es/Movie/CatalogMovieSchema.json +50 -0
- package/json-schemas/es/Movie/DetailedMovieSchema.json +49 -0
- package/json-schemas/es/Movie/MetaMovieSchema.json +69 -0
- package/json-schemas/es/Movie/MovieSchema.json +150 -0
- package/json-schemas/es/Movie/index.json +325 -0
- package/json-schemas/es/MovieSchema.json +150 -0
- package/json-schemas/es/NoteSchema.json +1226 -0
- package/json-schemas/es/Painting/CatalogPaintingSchema.json +26 -0
- package/json-schemas/es/Painting/DetailedPaintingSchema.json +33 -0
- package/json-schemas/es/Painting/MetaPaintingSchema.json +61 -0
- package/json-schemas/es/Painting/PaintingSchema.json +106 -0
- package/json-schemas/es/Painting/index.json +233 -0
- package/json-schemas/es/PaintingSchema.json +106 -0
- package/json-schemas/es/Wikipedia/CatalogWikipediaSchema.json +47 -0
- package/json-schemas/es/Wikipedia/DetailedWikipediaSchema.json +38 -0
- package/json-schemas/es/Wikipedia/MetaWikipediaSchema.json +76 -0
- package/json-schemas/es/Wikipedia/WikipediaSchema.json +143 -0
- package/json-schemas/es/Wikipedia/index.json +311 -0
- package/json-schemas/es/WikipediaSchema.json +143 -0
- package/json-schemas/es/Youtube/CatalogYoutubeSchema.json +47 -0
- package/json-schemas/es/Youtube/DetailedYoutubeSchema.json +37 -0
- package/json-schemas/es/Youtube/MetaYoutubeSchema.json +76 -0
- package/json-schemas/es/Youtube/YoutubeSchema.json +142 -0
- package/json-schemas/es/Youtube/index.json +309 -0
- package/json-schemas/es/YoutubeSchema.json +142 -0
- package/json-schemas/es/index.json +4849 -103
- package/json-schemas/index.json +1850 -20
- package/package.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
import z from "zod";
|
|
3
|
+
import { Areas } from "../Areas";
|
|
4
|
+
|
|
5
|
+
export const MetaMovieSchema = z.object({
|
|
6
|
+
type: z.literal("[[Fuentes]]"),
|
|
7
|
+
format: z.literal("[[Películas]]"),
|
|
8
|
+
areas: Areas.default(["[[Creatividad]]"]),
|
|
9
|
+
color: z.string().optional().default("#BE9207").describe('Color de la nota.'),
|
|
10
|
+
icon: z.string().optional().default('movie').describe('Icono de Lucide.'),
|
|
11
|
+
cover: z.string().optional().describe('Portada de la película.'),
|
|
12
|
+
url: z.string().describe('URL de la película en IMDB o similar'),
|
|
13
|
+
watch_url: z.string().optional().describe('URL de la película en streaming'),
|
|
14
|
+
}).describe('Película: Metadatos de Nota');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export const CatalogMovieSchema = z.object({
|
|
18
|
+
title: z.string().describe('Título de la película'),
|
|
19
|
+
description: z.string().optional().describe('Descripción de la película'),
|
|
20
|
+
author: z.array(z.string()).optional().describe('Autores. Guionistas, directores, productores, etc.'),
|
|
21
|
+
actors: z.array(z.string()).optional().describe('Actores'),
|
|
22
|
+
published: z.union([z.string(), z.number()])
|
|
23
|
+
.transform((val) => String(val)).optional().describe('Año de publicación'),
|
|
24
|
+
genres: z.array(z.string()).optional().describe('Géneros'),
|
|
25
|
+
}).describe('Película: Datos obtenibles de catalogación');
|
|
26
|
+
|
|
27
|
+
export const DetailedMovieSchema = z.object({
|
|
28
|
+
status: z.enum(["Pendiente", "En progreso", "Visto"]).describe('Estado de visualización'),
|
|
29
|
+
topics: z.array(z.string()).nullable().optional().describe('Temas'),
|
|
30
|
+
rating: z.number().optional().describe('Puntuación de la película'),
|
|
31
|
+
online_rating: z.number().optional().describe('Puntuación en línea'),
|
|
32
|
+
last_time_watched: z.string().optional().describe('Última vez vista'),
|
|
33
|
+
times_watched: z.number().optional().describe('Veces vista'),
|
|
34
|
+
}).describe('Película: Datos adicionales');
|
|
35
|
+
|
|
36
|
+
export const MovieSchema = CatalogMovieSchema.extend(DetailedMovieSchema.shape).extend(MetaMovieSchema.shape).describe('Película');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
import type { MovieSchema, CatalogMovieSchema, DetailedMovieSchema, MetaMovieSchema } from ".";
|
|
5
|
+
|
|
6
|
+
export type Movie = z.infer<typeof MovieSchema>;
|
|
7
|
+
export type CatalogMovie = z.infer<typeof CatalogMovieSchema>;
|
|
8
|
+
export type DetailedMovie = z.infer<typeof DetailedMovieSchema>;
|
|
9
|
+
export type MetaMovie = z.infer<typeof MetaMovieSchema>;
|
package/es/Note.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
|
|
3
|
+
import { ArticleSchema } from "./Article";
|
|
4
|
+
import { BookSchema } from "./Book";
|
|
5
|
+
import { ClothingSchema } from "./Clothing";
|
|
6
|
+
import { MovieSchema } from "./Movie";
|
|
7
|
+
import { PaintingSchema } from "./Painting";
|
|
8
|
+
import { WikipediaSchema } from "./Wikipedia";
|
|
9
|
+
import { YoutubeSchema } from "./Youtube";
|
|
10
|
+
|
|
11
|
+
export const NoteSchema = z.union([
|
|
12
|
+
ArticleSchema,
|
|
13
|
+
BookSchema,
|
|
14
|
+
ClothingSchema,
|
|
15
|
+
MovieSchema,
|
|
16
|
+
PaintingSchema,
|
|
17
|
+
WikipediaSchema,
|
|
18
|
+
YoutubeSchema,
|
|
19
|
+
]).describe('Nota: Unión de todos los tipos de notas');
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
import z from "zod";
|
|
3
|
+
|
|
4
|
+
import { Areas } from '../Areas';
|
|
5
|
+
|
|
6
|
+
export const MetaPaintingSchema = z.object({
|
|
7
|
+
type: z.literal("[[Fuentes]]"),
|
|
8
|
+
format: z.literal("[[Pinturas]]"),
|
|
9
|
+
areas: Areas.default(["[[Creatividad]]"]),
|
|
10
|
+
color: z.string().optional().default("#BE9207").describe('Color de la nota.'),
|
|
11
|
+
icon: z.string().optional().default('frame').describe('Icono de Lucide.'),
|
|
12
|
+
cover: z.string().describe('Imagen de la pintura.'),
|
|
13
|
+
}).describe('Pintura: Metadatos de Nota');
|
|
14
|
+
|
|
15
|
+
export const CatalogPaintingSchema = z.object({
|
|
16
|
+
title: z.string().optional().describe('Título de la pintura'),
|
|
17
|
+
description: z.string().optional().describe('Descripción'),
|
|
18
|
+
author: z.array(z.string()).optional().describe('Autores'),
|
|
19
|
+
published: z.string().optional().describe('Año de publicación'),
|
|
20
|
+
}).describe('Pintura: Datos obtenibles de catalogación');
|
|
21
|
+
|
|
22
|
+
export const DetailedPaintingSchema = z.object({
|
|
23
|
+
collection: z.string().optional().describe('Colección'),
|
|
24
|
+
position: z.string().optional().describe('Posición en la colección'),
|
|
25
|
+
projects: z.array(z.string()).optional().describe('Proyectos'),
|
|
26
|
+
topics: z.array(z.string()).optional().describe('Temas'),
|
|
27
|
+
rating: z.number().optional().describe('Puntuación del artículo'),
|
|
28
|
+
}).describe('Pintura: Datos adicionales');
|
|
29
|
+
|
|
30
|
+
export const PaintingSchema = CatalogPaintingSchema.extend(DetailedPaintingSchema.shape).extend(MetaPaintingSchema.shape).describe('Pintura');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
import type { PaintingSchema, CatalogPaintingSchema, DetailedPaintingSchema, MetaPaintingSchema } from ".";
|
|
5
|
+
|
|
6
|
+
export type Painting = z.infer<typeof PaintingSchema>;
|
|
7
|
+
export type CatalogPainting = z.infer<typeof CatalogPaintingSchema>;
|
|
8
|
+
export type DetailedPainting = z.infer<typeof DetailedPaintingSchema>;
|
|
9
|
+
export type MetaPainting = z.infer<typeof MetaPaintingSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import z from "zod";
|
|
3
|
+
import { MetaArticleSchema, CatalogArticleSchema, DetailedArticleSchema } from "../Article";
|
|
4
|
+
|
|
5
|
+
export const MetaWikipediaSchema = MetaArticleSchema.extend({
|
|
6
|
+
icon: z.string().optional().default('wikipedia').describe('Icono de Lucide.'),
|
|
7
|
+
format: z.literal("[[Entradas de Enciclopedia]]"),
|
|
8
|
+
platform: z.literal("Wikipedia"),
|
|
9
|
+
}).describe('Entrada de Wikipedia: Metadatos de Nota');
|
|
10
|
+
|
|
11
|
+
export const CatalogWikipediaSchema = CatalogArticleSchema.extend({
|
|
12
|
+
title: z.string().describe('Título de la entrada de Wikipedia'),
|
|
13
|
+
}).describe('Entrada de Wikipedia: Datos obtenibles de catalogación');
|
|
14
|
+
|
|
15
|
+
export const DetailedWikipediaSchema = DetailedArticleSchema.extend({
|
|
16
|
+
}).describe('Entrada de Wikipedia: Datos adicionales');
|
|
17
|
+
|
|
18
|
+
export const WikipediaSchema = CatalogWikipediaSchema.extend(DetailedWikipediaSchema.shape).extend(MetaWikipediaSchema.shape).describe('Entrada de Wikipedia');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import type { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
import type { WikipediaSchema, CatalogWikipediaSchema, DetailedWikipediaSchema, MetaWikipediaSchema } from ".";
|
|
6
|
+
|
|
7
|
+
export type Wikipedia = z.infer<typeof WikipediaSchema>;
|
|
8
|
+
export type CatalogWikipedia = z.infer<typeof CatalogWikipediaSchema>;
|
|
9
|
+
export type DetailedWikipedia = z.infer<typeof DetailedWikipediaSchema>;
|
|
10
|
+
export type MetaWikipedia = z.infer<typeof MetaWikipediaSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import z from "zod";
|
|
3
|
+
import { MetaArticleSchema, CatalogArticleSchema, DetailedArticleSchema } from "../Article";
|
|
4
|
+
|
|
5
|
+
export const MetaYoutubeSchema = MetaArticleSchema.extend({
|
|
6
|
+
icon: z.string().optional().default('youtube').describe('Icono de Lucide.'),
|
|
7
|
+
format: z.literal("[[Vídeos]]"),
|
|
8
|
+
platform: z.literal("YouTube"),
|
|
9
|
+
}).describe('Vídeo de YouTube: Metadatos de Nota');
|
|
10
|
+
|
|
11
|
+
export const CatalogYoutubeSchema = CatalogArticleSchema.extend({
|
|
12
|
+
title: z.string().describe('Título del vídeo de YouTube'),
|
|
13
|
+
}).describe('Vídeo de YouTube: Datos obtenibles de catalogación');
|
|
14
|
+
|
|
15
|
+
export const DetailedYoutubeSchema = DetailedArticleSchema.extend({
|
|
16
|
+
status: z.enum(["Pendiente", "En progreso", "Visto"]).describe('Estado de visualización'),
|
|
17
|
+
}).describe('Vídeo de YouTube: Datos adicionales');
|
|
18
|
+
|
|
19
|
+
export const YoutubeSchema = CatalogYoutubeSchema.extend(DetailedYoutubeSchema.shape).extend(MetaYoutubeSchema.shape).describe('Vídeo de YouTube');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import type { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
import type { YoutubeSchema, CatalogYoutubeSchema, DetailedYoutubeSchema, MetaYoutubeSchema } from ".";
|
|
6
|
+
|
|
7
|
+
export type Youtube = z.infer<typeof YoutubeSchema>;
|
|
8
|
+
export type CatalogYoutube = z.infer<typeof CatalogYoutubeSchema>;
|
|
9
|
+
export type DetailedYoutube = z.infer<typeof DetailedYoutubeSchema>;
|
|
10
|
+
export type MetaYoutube = z.infer<typeof MetaYoutubeSchema>;
|
package/es/index.ts
CHANGED
package/es/types.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
import type z from 'zod';
|
|
2
|
+
import { NoteSchema } from './Note';
|
|
1
3
|
|
|
4
|
+
export * from './Article/types';
|
|
5
|
+
export * from './Book/types';
|
|
2
6
|
export * from './Clothing/types';
|
|
7
|
+
export * from './Movie/types';
|
|
8
|
+
export * from './Painting/types';
|
|
9
|
+
export * from './Wikipedia/types';
|
|
10
|
+
export * from './Youtube/types';
|
|
11
|
+
|
|
12
|
+
export type Note = z.infer<typeof NoteSchema>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the article"
|
|
8
|
+
},
|
|
9
|
+
"description": {
|
|
10
|
+
"description": "Description",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"excerpt": {
|
|
14
|
+
"description": "Extract of the article",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Authors"
|
|
23
|
+
},
|
|
24
|
+
"published": {
|
|
25
|
+
"description": "Year of publication",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": [
|
|
31
|
+
"Pending",
|
|
32
|
+
"In Progress",
|
|
33
|
+
"Read",
|
|
34
|
+
"Consolidated"
|
|
35
|
+
],
|
|
36
|
+
"description": "Reading status"
|
|
37
|
+
},
|
|
38
|
+
"projects": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "Projects"
|
|
44
|
+
},
|
|
45
|
+
"topics": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "Topics"
|
|
51
|
+
},
|
|
52
|
+
"rating": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "Rating of the article"
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "[[Sources]]"
|
|
59
|
+
},
|
|
60
|
+
"format": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "[[Articles]]"
|
|
63
|
+
},
|
|
64
|
+
"areas": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"const": "[[Knowledge]]"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"color": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "#3171B2"
|
|
74
|
+
},
|
|
75
|
+
"icon": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"const": "newspaper"
|
|
78
|
+
},
|
|
79
|
+
"banner": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"url": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "URL of the article"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"title",
|
|
89
|
+
"author",
|
|
90
|
+
"status",
|
|
91
|
+
"projects",
|
|
92
|
+
"topics",
|
|
93
|
+
"rating",
|
|
94
|
+
"type",
|
|
95
|
+
"format",
|
|
96
|
+
"areas",
|
|
97
|
+
"color",
|
|
98
|
+
"icon",
|
|
99
|
+
"url"
|
|
100
|
+
],
|
|
101
|
+
"description": "Article"
|
|
102
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the book"
|
|
8
|
+
},
|
|
9
|
+
"subtitle": {
|
|
10
|
+
"description": "Subtitle of the book",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"description": {
|
|
14
|
+
"description": "Description of the book",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Authors"
|
|
23
|
+
},
|
|
24
|
+
"published": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Year of publication"
|
|
27
|
+
},
|
|
28
|
+
"categories": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"description": "Categories"
|
|
34
|
+
},
|
|
35
|
+
"status": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"Pending",
|
|
39
|
+
"In Progress",
|
|
40
|
+
"Read",
|
|
41
|
+
"Consolidated"
|
|
42
|
+
],
|
|
43
|
+
"description": "Reading status"
|
|
44
|
+
},
|
|
45
|
+
"topics": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "Topics"
|
|
51
|
+
},
|
|
52
|
+
"rating": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "Rating of the book"
|
|
55
|
+
},
|
|
56
|
+
"online_rating": {
|
|
57
|
+
"type": "number",
|
|
58
|
+
"description": "Online rating"
|
|
59
|
+
},
|
|
60
|
+
"last_time_read": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Last time read"
|
|
63
|
+
},
|
|
64
|
+
"times_read": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"description": "Times read"
|
|
67
|
+
},
|
|
68
|
+
"type": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"const": "[[Sources]]"
|
|
71
|
+
},
|
|
72
|
+
"format": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"const": "[[Books]]"
|
|
75
|
+
},
|
|
76
|
+
"areas": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"const": "[[Knowledge]]"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"color": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "#3171B2"
|
|
86
|
+
},
|
|
87
|
+
"icon": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"const": "book"
|
|
90
|
+
},
|
|
91
|
+
"cover": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"url": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "URL of the book in Amazon or similar"
|
|
97
|
+
},
|
|
98
|
+
"read_url": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "URL of the reading of the book"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"title",
|
|
105
|
+
"author",
|
|
106
|
+
"published",
|
|
107
|
+
"categories",
|
|
108
|
+
"status",
|
|
109
|
+
"topics",
|
|
110
|
+
"rating",
|
|
111
|
+
"online_rating",
|
|
112
|
+
"last_time_read",
|
|
113
|
+
"times_read",
|
|
114
|
+
"type",
|
|
115
|
+
"format",
|
|
116
|
+
"areas",
|
|
117
|
+
"color",
|
|
118
|
+
"icon",
|
|
119
|
+
"url",
|
|
120
|
+
"read_url"
|
|
121
|
+
],
|
|
122
|
+
"description": "Book"
|
|
123
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the article"
|
|
8
|
+
},
|
|
9
|
+
"description": {
|
|
10
|
+
"description": "Description",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"excerpt": {
|
|
14
|
+
"description": "Extract of the article",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Authors"
|
|
23
|
+
},
|
|
24
|
+
"published": {
|
|
25
|
+
"description": "Year of publication",
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"title",
|
|
31
|
+
"author"
|
|
32
|
+
],
|
|
33
|
+
"description": "Article: Data obtained from catalogation"
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the book"
|
|
8
|
+
},
|
|
9
|
+
"subtitle": {
|
|
10
|
+
"description": "Subtitle of the book",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"description": {
|
|
14
|
+
"description": "Description of the book",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Authors"
|
|
23
|
+
},
|
|
24
|
+
"published": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Year of publication"
|
|
27
|
+
},
|
|
28
|
+
"categories": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"description": "Categories"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"title",
|
|
38
|
+
"author",
|
|
39
|
+
"published",
|
|
40
|
+
"categories"
|
|
41
|
+
],
|
|
42
|
+
"description": "Book: Data obtained from catalogation"
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the movie"
|
|
8
|
+
},
|
|
9
|
+
"description": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Description of the movie"
|
|
12
|
+
},
|
|
13
|
+
"author": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"description": "Authors. Writers, directors, producers, etc."
|
|
19
|
+
},
|
|
20
|
+
"actors": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"description": "Actors"
|
|
26
|
+
},
|
|
27
|
+
"published": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Year of publication"
|
|
30
|
+
},
|
|
31
|
+
"genres": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"description": "Genres"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"title",
|
|
41
|
+
"description",
|
|
42
|
+
"author",
|
|
43
|
+
"actors",
|
|
44
|
+
"published",
|
|
45
|
+
"genres"
|
|
46
|
+
],
|
|
47
|
+
"description": "Movie: Data obtained from catalogation"
|
|
48
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"title": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Title of the Wikipedia entry"
|
|
8
|
+
},
|
|
9
|
+
"description": {
|
|
10
|
+
"description": "Description",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"excerpt": {
|
|
14
|
+
"description": "Extract of the article",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"description": "Authors"
|
|
23
|
+
},
|
|
24
|
+
"published": {
|
|
25
|
+
"description": "Year of publication",
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"title",
|
|
31
|
+
"author"
|
|
32
|
+
],
|
|
33
|
+
"description": "Wikipedia entry: Data obtainable from cataloging"
|
|
34
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"status": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": [
|
|
8
|
+
"Pending",
|
|
9
|
+
"In Progress",
|
|
10
|
+
"Read",
|
|
11
|
+
"Consolidated"
|
|
12
|
+
],
|
|
13
|
+
"description": "Reading status"
|
|
14
|
+
},
|
|
15
|
+
"projects": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"description": "Projects"
|
|
21
|
+
},
|
|
22
|
+
"topics": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"description": "Topics"
|
|
28
|
+
},
|
|
29
|
+
"rating": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"description": "Rating of the article"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"status",
|
|
36
|
+
"projects",
|
|
37
|
+
"topics",
|
|
38
|
+
"rating"
|
|
39
|
+
],
|
|
40
|
+
"description": "Article: Additional data"
|
|
41
|
+
}
|