@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.
Files changed (175) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +355 -4
  3. package/en/Areas.ts +24 -0
  4. package/en/Article/index.ts +29 -0
  5. package/en/Article/types.ts +9 -0
  6. package/en/Book/index.ts +33 -0
  7. package/en/Book/types.ts +9 -0
  8. package/en/Clothing/index.ts +9 -9
  9. package/en/Movie/index.ts +34 -0
  10. package/en/Movie/types.ts +9 -0
  11. package/en/Note.ts +15 -0
  12. package/en/Wikipedia/index.ts +18 -0
  13. package/en/Wikipedia/types.ts +10 -0
  14. package/en/index.ts +5 -1
  15. package/en/types.ts +7 -0
  16. package/es/Areas.ts +24 -0
  17. package/es/Article/index.ts +34 -0
  18. package/es/Article/types.ts +9 -0
  19. package/es/Book/index.ts +36 -0
  20. package/es/Book/types.ts +9 -0
  21. package/es/Clothing/index.ts +11 -10
  22. package/es/Icon.ts +1673 -0
  23. package/es/Movie/index.ts +36 -0
  24. package/es/Movie/types.ts +9 -0
  25. package/es/Note.ts +19 -0
  26. package/es/Painting/index.ts +30 -0
  27. package/es/Painting/types.ts +9 -0
  28. package/es/Wikipedia/index.ts +18 -0
  29. package/es/Wikipedia/types.ts +10 -0
  30. package/es/Youtube/index.ts +19 -0
  31. package/es/Youtube/types.ts +10 -0
  32. package/es/index.ts +7 -0
  33. package/es/types.ts +10 -0
  34. package/json-schemas/ArticleSchema.json +102 -0
  35. package/json-schemas/BookSchema.json +123 -0
  36. package/json-schemas/CatalogArticleSchema.json +34 -0
  37. package/json-schemas/CatalogBookSchema.json +43 -0
  38. package/json-schemas/CatalogClothingSchema.json +0 -1
  39. package/json-schemas/CatalogMovieSchema.json +48 -0
  40. package/json-schemas/CatalogWikipediaSchema.json +34 -0
  41. package/json-schemas/ClothingSchema.json +0 -2
  42. package/json-schemas/DetailedArticleSchema.json +41 -0
  43. package/json-schemas/DetailedBookSchema.json +48 -0
  44. package/json-schemas/DetailedClothingSchema.json +0 -2
  45. package/json-schemas/DetailedMovieSchema.json +47 -0
  46. package/json-schemas/DetailedWikipediaSchema.json +41 -0
  47. package/json-schemas/MetaArticleSchema.json +45 -0
  48. package/json-schemas/MetaBookSchema.json +50 -0
  49. package/json-schemas/MetaClothingSchema.json +0 -1
  50. package/json-schemas/MetaMovieSchema.json +50 -0
  51. package/json-schemas/MetaWikipediaSchema.json +50 -0
  52. package/json-schemas/MovieSchema.json +127 -0
  53. package/json-schemas/NoteSchema.json +846 -0
  54. package/json-schemas/WikipediaSchema.json +107 -0
  55. package/json-schemas/en/Area.json +21 -0
  56. package/json-schemas/en/Areas.json +25 -0
  57. package/json-schemas/en/Article/ArticleSchema.json +102 -0
  58. package/json-schemas/en/Article/CatalogArticleSchema.json +34 -0
  59. package/json-schemas/en/Article/DetailedArticleSchema.json +41 -0
  60. package/json-schemas/en/Article/MetaArticleSchema.json +45 -0
  61. package/json-schemas/en/Article/index.json +229 -0
  62. package/json-schemas/en/ArticleSchema.json +102 -0
  63. package/json-schemas/en/Book/BookSchema.json +123 -0
  64. package/json-schemas/en/Book/CatalogBookSchema.json +43 -0
  65. package/json-schemas/en/Book/DetailedBookSchema.json +48 -0
  66. package/json-schemas/en/Book/MetaBookSchema.json +50 -0
  67. package/json-schemas/en/Book/index.json +271 -0
  68. package/json-schemas/en/BookSchema.json +123 -0
  69. package/json-schemas/en/CatalogArticleSchema.json +34 -0
  70. package/json-schemas/en/CatalogBookSchema.json +43 -0
  71. package/json-schemas/en/CatalogClothingSchema.json +0 -1
  72. package/json-schemas/en/CatalogMovieSchema.json +48 -0
  73. package/json-schemas/en/CatalogWikipediaSchema.json +34 -0
  74. package/json-schemas/en/Clothing/CatalogClothingSchema.json +0 -1
  75. package/json-schemas/en/Clothing/ClothingSchema.json +0 -2
  76. package/json-schemas/en/Clothing/DetailedClothingSchema.json +0 -2
  77. package/json-schemas/en/Clothing/MetaClothingSchema.json +0 -1
  78. package/json-schemas/en/Clothing/index.json +0 -6
  79. package/json-schemas/en/ClothingSchema.json +0 -2
  80. package/json-schemas/en/DetailedArticleSchema.json +41 -0
  81. package/json-schemas/en/DetailedBookSchema.json +48 -0
  82. package/json-schemas/en/DetailedClothingSchema.json +0 -2
  83. package/json-schemas/en/DetailedMovieSchema.json +47 -0
  84. package/json-schemas/en/DetailedWikipediaSchema.json +41 -0
  85. package/json-schemas/en/FirstLevelArea.json +21 -0
  86. package/json-schemas/en/MetaArticleSchema.json +45 -0
  87. package/json-schemas/en/MetaBookSchema.json +50 -0
  88. package/json-schemas/en/MetaClothingSchema.json +0 -1
  89. package/json-schemas/en/MetaMovieSchema.json +50 -0
  90. package/json-schemas/en/MetaWikipediaSchema.json +50 -0
  91. package/json-schemas/en/Movie/CatalogMovieSchema.json +48 -0
  92. package/json-schemas/en/Movie/DetailedMovieSchema.json +47 -0
  93. package/json-schemas/en/Movie/MetaMovieSchema.json +50 -0
  94. package/json-schemas/en/Movie/MovieSchema.json +127 -0
  95. package/json-schemas/en/Movie/index.json +279 -0
  96. package/json-schemas/en/MovieSchema.json +127 -0
  97. package/json-schemas/en/NoteSchema.json +846 -0
  98. package/json-schemas/en/Wikipedia/CatalogWikipediaSchema.json +34 -0
  99. package/json-schemas/en/Wikipedia/DetailedWikipediaSchema.json +41 -0
  100. package/json-schemas/en/Wikipedia/MetaWikipediaSchema.json +50 -0
  101. package/json-schemas/en/Wikipedia/WikipediaSchema.json +107 -0
  102. package/json-schemas/en/Wikipedia/index.json +239 -0
  103. package/json-schemas/en/WikipediaSchema.json +107 -0
  104. package/json-schemas/en/index.json +1923 -26
  105. package/json-schemas/es/Area.json +21 -0
  106. package/json-schemas/es/Areas.json +25 -0
  107. package/json-schemas/es/Article/ArticleSchema.json +138 -0
  108. package/json-schemas/es/Article/CatalogArticleSchema.json +47 -0
  109. package/json-schemas/es/Article/DetailedArticleSchema.json +38 -0
  110. package/json-schemas/es/Article/MetaArticleSchema.json +71 -0
  111. package/json-schemas/es/Article/index.json +301 -0
  112. package/json-schemas/es/ArticleSchema.json +138 -0
  113. package/json-schemas/es/Book/BookSchema.json +141 -0
  114. package/json-schemas/es/Book/CatalogBookSchema.json +48 -0
  115. package/json-schemas/es/Book/DetailedBookSchema.json +43 -0
  116. package/json-schemas/es/Book/MetaBookSchema.json +68 -0
  117. package/json-schemas/es/Book/index.json +307 -0
  118. package/json-schemas/es/BookSchema.json +141 -0
  119. package/json-schemas/es/CatalogArticleSchema.json +47 -0
  120. package/json-schemas/es/CatalogBookSchema.json +48 -0
  121. package/json-schemas/es/CatalogClothingSchema.json +0 -1
  122. package/json-schemas/es/CatalogMovieSchema.json +50 -0
  123. package/json-schemas/es/CatalogPaintingSchema.json +26 -0
  124. package/json-schemas/es/CatalogWikipediaSchema.json +47 -0
  125. package/json-schemas/es/CatalogYoutubeSchema.json +47 -0
  126. package/json-schemas/es/Clothing/CatalogClothingSchema.json +0 -1
  127. package/json-schemas/es/Clothing/ClothingSchema.json +30 -12
  128. package/json-schemas/es/Clothing/DetailedClothingSchema.json +1 -3
  129. package/json-schemas/es/Clothing/MetaClothingSchema.json +30 -11
  130. package/json-schemas/es/Clothing/index.json +61 -27
  131. package/json-schemas/es/ClothingSchema.json +30 -12
  132. package/json-schemas/es/DetailedArticleSchema.json +38 -0
  133. package/json-schemas/es/DetailedBookSchema.json +43 -0
  134. package/json-schemas/es/DetailedClothingSchema.json +1 -3
  135. package/json-schemas/es/DetailedMovieSchema.json +49 -0
  136. package/json-schemas/es/DetailedPaintingSchema.json +33 -0
  137. package/json-schemas/es/DetailedWikipediaSchema.json +38 -0
  138. package/json-schemas/es/DetailedYoutubeSchema.json +37 -0
  139. package/json-schemas/es/FirstLevelArea.json +21 -0
  140. package/json-schemas/es/Icon.json +1675 -0
  141. package/json-schemas/es/MetaArticleSchema.json +71 -0
  142. package/json-schemas/es/MetaBookSchema.json +68 -0
  143. package/json-schemas/es/MetaClothingSchema.json +30 -11
  144. package/json-schemas/es/MetaMovieSchema.json +69 -0
  145. package/json-schemas/es/MetaPaintingSchema.json +61 -0
  146. package/json-schemas/es/MetaWikipediaSchema.json +76 -0
  147. package/json-schemas/es/MetaYoutubeSchema.json +76 -0
  148. package/json-schemas/es/Movie/CatalogMovieSchema.json +50 -0
  149. package/json-schemas/es/Movie/DetailedMovieSchema.json +49 -0
  150. package/json-schemas/es/Movie/MetaMovieSchema.json +69 -0
  151. package/json-schemas/es/Movie/MovieSchema.json +150 -0
  152. package/json-schemas/es/Movie/index.json +325 -0
  153. package/json-schemas/es/MovieSchema.json +150 -0
  154. package/json-schemas/es/NoteSchema.json +1226 -0
  155. package/json-schemas/es/Painting/CatalogPaintingSchema.json +26 -0
  156. package/json-schemas/es/Painting/DetailedPaintingSchema.json +33 -0
  157. package/json-schemas/es/Painting/MetaPaintingSchema.json +61 -0
  158. package/json-schemas/es/Painting/PaintingSchema.json +106 -0
  159. package/json-schemas/es/Painting/index.json +233 -0
  160. package/json-schemas/es/PaintingSchema.json +106 -0
  161. package/json-schemas/es/Wikipedia/CatalogWikipediaSchema.json +47 -0
  162. package/json-schemas/es/Wikipedia/DetailedWikipediaSchema.json +38 -0
  163. package/json-schemas/es/Wikipedia/MetaWikipediaSchema.json +76 -0
  164. package/json-schemas/es/Wikipedia/WikipediaSchema.json +143 -0
  165. package/json-schemas/es/Wikipedia/index.json +311 -0
  166. package/json-schemas/es/WikipediaSchema.json +143 -0
  167. package/json-schemas/es/Youtube/CatalogYoutubeSchema.json +47 -0
  168. package/json-schemas/es/Youtube/DetailedYoutubeSchema.json +37 -0
  169. package/json-schemas/es/Youtube/MetaYoutubeSchema.json +76 -0
  170. package/json-schemas/es/Youtube/YoutubeSchema.json +142 -0
  171. package/json-schemas/es/Youtube/index.json +309 -0
  172. package/json-schemas/es/YoutubeSchema.json +142 -0
  173. package/json-schemas/es/index.json +4849 -103
  174. package/json-schemas/index.json +1850 -20
  175. package/package.json +3 -3
@@ -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,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
+ "status": {
6
+ "type": "string",
7
+ "enum": [
8
+ "Pending",
9
+ "In Progress",
10
+ "Read",
11
+ "Consolidated"
12
+ ],
13
+ "description": "Reading status"
14
+ },
15
+ "topics": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string"
19
+ },
20
+ "description": "Topics"
21
+ },
22
+ "rating": {
23
+ "type": "number",
24
+ "description": "Rating of the book"
25
+ },
26
+ "online_rating": {
27
+ "type": "number",
28
+ "description": "Online rating"
29
+ },
30
+ "last_time_read": {
31
+ "type": "string",
32
+ "description": "Last time read"
33
+ },
34
+ "times_read": {
35
+ "type": "number",
36
+ "description": "Times read"
37
+ }
38
+ },
39
+ "required": [
40
+ "status",
41
+ "topics",
42
+ "rating",
43
+ "online_rating",
44
+ "last_time_read",
45
+ "times_read"
46
+ ],
47
+ "description": "Book: Additional data"
48
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "[[Sources]]"
8
+ },
9
+ "format": {
10
+ "type": "string",
11
+ "const": "[[Books]]"
12
+ },
13
+ "areas": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "const": "[[Knowledge]]"
18
+ }
19
+ },
20
+ "color": {
21
+ "type": "string",
22
+ "const": "#3171B2"
23
+ },
24
+ "icon": {
25
+ "type": "string",
26
+ "const": "book"
27
+ },
28
+ "cover": {
29
+ "type": "string"
30
+ },
31
+ "url": {
32
+ "type": "string",
33
+ "description": "URL of the book in Amazon or similar"
34
+ },
35
+ "read_url": {
36
+ "type": "string",
37
+ "description": "URL of the reading of the book"
38
+ }
39
+ },
40
+ "required": [
41
+ "type",
42
+ "format",
43
+ "areas",
44
+ "color",
45
+ "icon",
46
+ "url",
47
+ "read_url"
48
+ ],
49
+ "description": "Book: Metadata of Note"
50
+ }
@@ -0,0 +1,271 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "@segha/catalog/en/Book",
4
+ "description": "Schemas for Petroglyph Catalog",
5
+ "$defs": {
6
+ "BookSchema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "type": "object",
9
+ "properties": {
10
+ "title": {
11
+ "type": "string",
12
+ "description": "Title of the book"
13
+ },
14
+ "subtitle": {
15
+ "description": "Subtitle of the book",
16
+ "type": "string"
17
+ },
18
+ "description": {
19
+ "description": "Description of the book",
20
+ "type": "string"
21
+ },
22
+ "author": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ },
27
+ "description": "Authors"
28
+ },
29
+ "published": {
30
+ "type": "string",
31
+ "description": "Year of publication"
32
+ },
33
+ "categories": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string"
37
+ },
38
+ "description": "Categories"
39
+ },
40
+ "status": {
41
+ "type": "string",
42
+ "enum": [
43
+ "Pending",
44
+ "In Progress",
45
+ "Read",
46
+ "Consolidated"
47
+ ],
48
+ "description": "Reading status"
49
+ },
50
+ "topics": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string"
54
+ },
55
+ "description": "Topics"
56
+ },
57
+ "rating": {
58
+ "type": "number",
59
+ "description": "Rating of the book"
60
+ },
61
+ "online_rating": {
62
+ "type": "number",
63
+ "description": "Online rating"
64
+ },
65
+ "last_time_read": {
66
+ "type": "string",
67
+ "description": "Last time read"
68
+ },
69
+ "times_read": {
70
+ "type": "number",
71
+ "description": "Times read"
72
+ },
73
+ "type": {
74
+ "type": "string",
75
+ "const": "[[Sources]]"
76
+ },
77
+ "format": {
78
+ "type": "string",
79
+ "const": "[[Books]]"
80
+ },
81
+ "areas": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "string",
85
+ "const": "[[Knowledge]]"
86
+ }
87
+ },
88
+ "color": {
89
+ "type": "string",
90
+ "const": "#3171B2"
91
+ },
92
+ "icon": {
93
+ "type": "string",
94
+ "const": "book"
95
+ },
96
+ "cover": {
97
+ "type": "string"
98
+ },
99
+ "url": {
100
+ "type": "string",
101
+ "description": "URL of the book in Amazon or similar"
102
+ },
103
+ "read_url": {
104
+ "type": "string",
105
+ "description": "URL of the reading of the book"
106
+ }
107
+ },
108
+ "required": [
109
+ "title",
110
+ "author",
111
+ "published",
112
+ "categories",
113
+ "status",
114
+ "topics",
115
+ "rating",
116
+ "online_rating",
117
+ "last_time_read",
118
+ "times_read",
119
+ "type",
120
+ "format",
121
+ "areas",
122
+ "color",
123
+ "icon",
124
+ "url",
125
+ "read_url"
126
+ ],
127
+ "description": "Book"
128
+ },
129
+ "CatalogBookSchema": {
130
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
131
+ "type": "object",
132
+ "properties": {
133
+ "title": {
134
+ "type": "string",
135
+ "description": "Title of the book"
136
+ },
137
+ "subtitle": {
138
+ "description": "Subtitle of the book",
139
+ "type": "string"
140
+ },
141
+ "description": {
142
+ "description": "Description of the book",
143
+ "type": "string"
144
+ },
145
+ "author": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string"
149
+ },
150
+ "description": "Authors"
151
+ },
152
+ "published": {
153
+ "type": "string",
154
+ "description": "Year of publication"
155
+ },
156
+ "categories": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string"
160
+ },
161
+ "description": "Categories"
162
+ }
163
+ },
164
+ "required": [
165
+ "title",
166
+ "author",
167
+ "published",
168
+ "categories"
169
+ ],
170
+ "description": "Book: Data obtained from catalogation"
171
+ },
172
+ "DetailedBookSchema": {
173
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
174
+ "type": "object",
175
+ "properties": {
176
+ "status": {
177
+ "type": "string",
178
+ "enum": [
179
+ "Pending",
180
+ "In Progress",
181
+ "Read",
182
+ "Consolidated"
183
+ ],
184
+ "description": "Reading status"
185
+ },
186
+ "topics": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "string"
190
+ },
191
+ "description": "Topics"
192
+ },
193
+ "rating": {
194
+ "type": "number",
195
+ "description": "Rating of the book"
196
+ },
197
+ "online_rating": {
198
+ "type": "number",
199
+ "description": "Online rating"
200
+ },
201
+ "last_time_read": {
202
+ "type": "string",
203
+ "description": "Last time read"
204
+ },
205
+ "times_read": {
206
+ "type": "number",
207
+ "description": "Times read"
208
+ }
209
+ },
210
+ "required": [
211
+ "status",
212
+ "topics",
213
+ "rating",
214
+ "online_rating",
215
+ "last_time_read",
216
+ "times_read"
217
+ ],
218
+ "description": "Book: Additional data"
219
+ },
220
+ "MetaBookSchema": {
221
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
222
+ "type": "object",
223
+ "properties": {
224
+ "type": {
225
+ "type": "string",
226
+ "const": "[[Sources]]"
227
+ },
228
+ "format": {
229
+ "type": "string",
230
+ "const": "[[Books]]"
231
+ },
232
+ "areas": {
233
+ "type": "array",
234
+ "items": {
235
+ "type": "string",
236
+ "const": "[[Knowledge]]"
237
+ }
238
+ },
239
+ "color": {
240
+ "type": "string",
241
+ "const": "#3171B2"
242
+ },
243
+ "icon": {
244
+ "type": "string",
245
+ "const": "book"
246
+ },
247
+ "cover": {
248
+ "type": "string"
249
+ },
250
+ "url": {
251
+ "type": "string",
252
+ "description": "URL of the book in Amazon or similar"
253
+ },
254
+ "read_url": {
255
+ "type": "string",
256
+ "description": "URL of the reading of the book"
257
+ }
258
+ },
259
+ "required": [
260
+ "type",
261
+ "format",
262
+ "areas",
263
+ "color",
264
+ "icon",
265
+ "url",
266
+ "read_url"
267
+ ],
268
+ "description": "Book: Metadata of Note"
269
+ }
270
+ }
271
+ }