@segha/catalog 1.2.0 → 2.1.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 (184) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/README.md +335 -67
  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/Cares.ts +27 -0
  9. package/en/Clothing/Colors.ts +54 -0
  10. package/en/Clothing/Fit.ts +10 -0
  11. package/en/Clothing/Formality.ts +9 -0
  12. package/en/Clothing/Garment.ts +97 -0
  13. package/en/Clothing/Layer.ts +8 -0
  14. package/en/Clothing/Materials.ts +45 -0
  15. package/en/Clothing/Measurements.ts +5 -0
  16. package/en/Clothing/Season.ts +8 -0
  17. package/en/Clothing/Size.ts +47 -0
  18. package/en/Clothing/Slot.ts +10 -0
  19. package/en/Clothing/Status.ts +9 -0
  20. package/en/Clothing/UseCases.ts +20 -0
  21. package/en/Clothing/Variants.ts +73 -0
  22. package/en/Clothing/index.ts +51 -0
  23. package/en/Clothing/types.ts +9 -0
  24. package/en/Movie/index.ts +34 -0
  25. package/en/Movie/types.ts +9 -0
  26. package/en/Note.ts +13 -0
  27. package/en/index.ts +5 -0
  28. package/en/types.ts +9 -0
  29. package/es/Areas.ts +24 -0
  30. package/es/Article/index.ts +29 -0
  31. package/es/Article/types.ts +9 -0
  32. package/es/Book/index.ts +33 -0
  33. package/es/Book/types.ts +9 -0
  34. package/es/Clothing/index.ts +10 -10
  35. package/es/Movie/index.ts +34 -0
  36. package/es/Movie/types.ts +9 -0
  37. package/es/Note.ts +13 -0
  38. package/es/index.ts +4 -0
  39. package/es/types.ts +7 -0
  40. package/index.ts +2 -2
  41. package/json-schemas/ArticleSchema.json +103 -0
  42. package/json-schemas/BookSchema.json +124 -0
  43. package/json-schemas/CatalogArticleSchema.json +35 -0
  44. package/json-schemas/CatalogBookSchema.json +44 -0
  45. package/json-schemas/CatalogClothingSchema.json +176 -177
  46. package/json-schemas/CatalogMovieSchema.json +49 -0
  47. package/json-schemas/ClothingSchema.json +195 -196
  48. package/json-schemas/DetailedArticleSchema.json +42 -0
  49. package/json-schemas/DetailedBookSchema.json +49 -0
  50. package/json-schemas/DetailedClothingSchema.json +17 -17
  51. package/json-schemas/DetailedMovieSchema.json +48 -0
  52. package/json-schemas/MetaArticleSchema.json +46 -0
  53. package/json-schemas/MetaBookSchema.json +51 -0
  54. package/json-schemas/MetaClothingSchema.json +4 -4
  55. package/json-schemas/MetaMovieSchema.json +51 -0
  56. package/json-schemas/MovieSchema.json +128 -0
  57. package/json-schemas/NoteSchema.json +745 -0
  58. package/json-schemas/en/Area.json +21 -0
  59. package/json-schemas/en/Areas.json +25 -0
  60. package/json-schemas/en/Article/ArticleSchema.json +103 -0
  61. package/json-schemas/en/Article/CatalogArticleSchema.json +35 -0
  62. package/json-schemas/en/Article/DetailedArticleSchema.json +42 -0
  63. package/json-schemas/en/Article/MetaArticleSchema.json +46 -0
  64. package/json-schemas/en/Article/index.json +233 -0
  65. package/json-schemas/en/ArticleSchema.json +103 -0
  66. package/json-schemas/en/Book/BookSchema.json +124 -0
  67. package/json-schemas/en/Book/CatalogBookSchema.json +44 -0
  68. package/json-schemas/en/Book/DetailedBookSchema.json +49 -0
  69. package/json-schemas/en/Book/MetaBookSchema.json +51 -0
  70. package/json-schemas/en/Book/index.json +275 -0
  71. package/json-schemas/en/BookSchema.json +124 -0
  72. package/json-schemas/en/CatalogArticleSchema.json +35 -0
  73. package/json-schemas/en/CatalogBookSchema.json +44 -0
  74. package/json-schemas/en/CatalogClothingSchema.json +292 -0
  75. package/json-schemas/en/CatalogMovieSchema.json +49 -0
  76. package/json-schemas/en/Clothing/Accessories.json +18 -0
  77. package/json-schemas/en/Clothing/AdditionalFeatures.json +9 -0
  78. package/json-schemas/en/Clothing/BaseColor.json +19 -0
  79. package/json-schemas/en/Clothing/Bottom.json +12 -0
  80. package/json-schemas/en/Clothing/Care.json +13 -0
  81. package/json-schemas/en/Clothing/Cares.json +17 -0
  82. package/json-schemas/en/Clothing/CatalogClothingSchema.json +292 -0
  83. package/json-schemas/en/Clothing/Closures.json +11 -0
  84. package/json-schemas/en/Clothing/ClothingSchema.json +388 -0
  85. package/json-schemas/en/Clothing/Color.json +26 -0
  86. package/json-schemas/en/Clothing/CommonFabric.json +15 -0
  87. package/json-schemas/en/Clothing/DetailedClothingSchema.json +75 -0
  88. package/json-schemas/en/Clothing/Dress.json +9 -0
  89. package/json-schemas/en/Clothing/Fit.json +13 -0
  90. package/json-schemas/en/Clothing/Formality.json +12 -0
  91. package/json-schemas/en/Clothing/Garment.json +56 -0
  92. package/json-schemas/en/Clothing/Home.json +9 -0
  93. package/json-schemas/en/Clothing/Ironing.json +8 -0
  94. package/json-schemas/en/Clothing/Layer.json +10 -0
  95. package/json-schemas/en/Clothing/Material.json +28 -0
  96. package/json-schemas/en/Clothing/Materials.json +32 -0
  97. package/json-schemas/en/Clothing/Measurements.json +8 -0
  98. package/json-schemas/en/Clothing/MetaClothingSchema.json +41 -0
  99. package/json-schemas/en/Clothing/MetallicColor.json +9 -0
  100. package/json-schemas/en/Clothing/NaturalMaterial.json +13 -0
  101. package/json-schemas/en/Clothing/Necks.json +15 -0
  102. package/json-schemas/en/Clothing/Outerwear.json +9 -0
  103. package/json-schemas/en/Clothing/Pants.json +11 -0
  104. package/json-schemas/en/Clothing/PantsSize.json +17 -0
  105. package/json-schemas/en/Clothing/Pattern.json +17 -0
  106. package/json-schemas/en/Clothing/PrimaryColor.json +27 -0
  107. package/json-schemas/en/Clothing/Season.json +11 -0
  108. package/json-schemas/en/Clothing/SecondaryColor.json +27 -0
  109. package/json-schemas/en/Clothing/Shoes.json +11 -0
  110. package/json-schemas/en/Clothing/ShoesSize.json +16 -0
  111. package/json-schemas/en/Clothing/Size.json +29 -0
  112. package/json-schemas/en/Clothing/Sleeves.json +9 -0
  113. package/json-schemas/en/Clothing/Slot.json +13 -0
  114. package/json-schemas/en/Clothing/SpecialColor.json +10 -0
  115. package/json-schemas/en/Clothing/SpecialCuts.json +9 -0
  116. package/json-schemas/en/Clothing/Sportswear.json +11 -0
  117. package/json-schemas/en/Clothing/Status.json +13 -0
  118. package/json-schemas/en/Clothing/Swimsuits.json +9 -0
  119. package/json-schemas/en/Clothing/SyntheticMaterial.json +12 -0
  120. package/json-schemas/en/Clothing/Temperature.json +8 -0
  121. package/json-schemas/en/Clothing/Top.json +16 -0
  122. package/json-schemas/en/Clothing/TopsSize.json +13 -0
  123. package/json-schemas/en/Clothing/Underwear.json +12 -0
  124. package/json-schemas/en/Clothing/UseCase.json +18 -0
  125. package/json-schemas/en/Clothing/UseCases.json +22 -0
  126. package/json-schemas/en/Clothing/Variant.json +37 -0
  127. package/json-schemas/en/Clothing/Variants.json +41 -0
  128. package/json-schemas/en/Clothing/WashType.json +9 -0
  129. package/json-schemas/en/Clothing/index.json +1602 -0
  130. package/json-schemas/en/ClothingSchema.json +388 -0
  131. package/json-schemas/en/DetailedArticleSchema.json +42 -0
  132. package/json-schemas/en/DetailedBookSchema.json +49 -0
  133. package/json-schemas/en/DetailedClothingSchema.json +75 -0
  134. package/json-schemas/en/DetailedMovieSchema.json +48 -0
  135. package/json-schemas/en/FirstLevelArea.json +21 -0
  136. package/json-schemas/en/MetaArticleSchema.json +46 -0
  137. package/json-schemas/en/MetaBookSchema.json +51 -0
  138. package/json-schemas/en/MetaClothingSchema.json +41 -0
  139. package/json-schemas/en/MetaMovieSchema.json +51 -0
  140. package/json-schemas/en/Movie/CatalogMovieSchema.json +49 -0
  141. package/json-schemas/en/Movie/DetailedMovieSchema.json +48 -0
  142. package/json-schemas/en/Movie/MetaMovieSchema.json +51 -0
  143. package/json-schemas/en/Movie/MovieSchema.json +128 -0
  144. package/json-schemas/en/Movie/index.json +283 -0
  145. package/json-schemas/en/MovieSchema.json +128 -0
  146. package/json-schemas/en/NoteSchema.json +745 -0
  147. package/json-schemas/en/index.json +2385 -0
  148. package/json-schemas/es/Area.json +21 -0
  149. package/json-schemas/es/Areas.json +25 -0
  150. package/json-schemas/es/Article/ArticleSchema.json +103 -0
  151. package/json-schemas/es/Article/CatalogArticleSchema.json +35 -0
  152. package/json-schemas/es/Article/DetailedArticleSchema.json +42 -0
  153. package/json-schemas/es/Article/MetaArticleSchema.json +46 -0
  154. package/json-schemas/es/Article/index.json +233 -0
  155. package/json-schemas/es/ArticleSchema.json +103 -0
  156. package/json-schemas/es/Book/BookSchema.json +124 -0
  157. package/json-schemas/es/Book/CatalogBookSchema.json +44 -0
  158. package/json-schemas/es/Book/DetailedBookSchema.json +49 -0
  159. package/json-schemas/es/Book/MetaBookSchema.json +51 -0
  160. package/json-schemas/es/Book/index.json +275 -0
  161. package/json-schemas/es/BookSchema.json +124 -0
  162. package/json-schemas/es/CatalogArticleSchema.json +35 -0
  163. package/json-schemas/es/CatalogBookSchema.json +44 -0
  164. package/json-schemas/es/CatalogMovieSchema.json +49 -0
  165. package/json-schemas/es/Clothing/DetailedClothingSchema.json +1 -1
  166. package/json-schemas/es/Clothing/index.json +1 -1
  167. package/json-schemas/es/DetailedArticleSchema.json +42 -0
  168. package/json-schemas/es/DetailedBookSchema.json +49 -0
  169. package/json-schemas/es/DetailedClothingSchema.json +1 -1
  170. package/json-schemas/es/DetailedMovieSchema.json +48 -0
  171. package/json-schemas/es/FirstLevelArea.json +21 -0
  172. package/json-schemas/es/MetaArticleSchema.json +46 -0
  173. package/json-schemas/es/MetaBookSchema.json +51 -0
  174. package/json-schemas/es/MetaMovieSchema.json +51 -0
  175. package/json-schemas/es/Movie/CatalogMovieSchema.json +49 -0
  176. package/json-schemas/es/Movie/DetailedMovieSchema.json +48 -0
  177. package/json-schemas/es/Movie/MetaMovieSchema.json +51 -0
  178. package/json-schemas/es/Movie/MovieSchema.json +128 -0
  179. package/json-schemas/es/Movie/index.json +283 -0
  180. package/json-schemas/es/MovieSchema.json +128 -0
  181. package/json-schemas/es/NoteSchema.json +746 -0
  182. package/json-schemas/es/index.json +1584 -1
  183. package/json-schemas/index.json +1907 -394
  184. package/package.json +11 -3
@@ -0,0 +1,124 @@
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
+ "additionalProperties": false,
123
+ "description": "Book"
124
+ }
@@ -0,0 +1,44 @@
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
+ "additionalProperties": false,
43
+ "description": "Book: Data obtained from catalogation"
44
+ }
@@ -0,0 +1,49 @@
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
+ "additionalProperties": false,
48
+ "description": "Book: Additional data"
49
+ }
@@ -0,0 +1,51 @@
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
+ "additionalProperties": false,
50
+ "description": "Book: Metadata of Note"
51
+ }
@@ -0,0 +1,275 @@
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
+ "additionalProperties": false,
128
+ "description": "Book"
129
+ },
130
+ "CatalogBookSchema": {
131
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
132
+ "type": "object",
133
+ "properties": {
134
+ "title": {
135
+ "type": "string",
136
+ "description": "Title of the book"
137
+ },
138
+ "subtitle": {
139
+ "description": "Subtitle of the book",
140
+ "type": "string"
141
+ },
142
+ "description": {
143
+ "description": "Description of the book",
144
+ "type": "string"
145
+ },
146
+ "author": {
147
+ "type": "array",
148
+ "items": {
149
+ "type": "string"
150
+ },
151
+ "description": "Authors"
152
+ },
153
+ "published": {
154
+ "type": "string",
155
+ "description": "Year of publication"
156
+ },
157
+ "categories": {
158
+ "type": "array",
159
+ "items": {
160
+ "type": "string"
161
+ },
162
+ "description": "Categories"
163
+ }
164
+ },
165
+ "required": [
166
+ "title",
167
+ "author",
168
+ "published",
169
+ "categories"
170
+ ],
171
+ "additionalProperties": false,
172
+ "description": "Book: Data obtained from catalogation"
173
+ },
174
+ "DetailedBookSchema": {
175
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
176
+ "type": "object",
177
+ "properties": {
178
+ "status": {
179
+ "type": "string",
180
+ "enum": [
181
+ "Pending",
182
+ "In Progress",
183
+ "Read",
184
+ "Consolidated"
185
+ ],
186
+ "description": "Reading status"
187
+ },
188
+ "topics": {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string"
192
+ },
193
+ "description": "Topics"
194
+ },
195
+ "rating": {
196
+ "type": "number",
197
+ "description": "Rating of the book"
198
+ },
199
+ "online_rating": {
200
+ "type": "number",
201
+ "description": "Online rating"
202
+ },
203
+ "last_time_read": {
204
+ "type": "string",
205
+ "description": "Last time read"
206
+ },
207
+ "times_read": {
208
+ "type": "number",
209
+ "description": "Times read"
210
+ }
211
+ },
212
+ "required": [
213
+ "status",
214
+ "topics",
215
+ "rating",
216
+ "online_rating",
217
+ "last_time_read",
218
+ "times_read"
219
+ ],
220
+ "additionalProperties": false,
221
+ "description": "Book: Additional data"
222
+ },
223
+ "MetaBookSchema": {
224
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
225
+ "type": "object",
226
+ "properties": {
227
+ "type": {
228
+ "type": "string",
229
+ "const": "[[Sources]]"
230
+ },
231
+ "format": {
232
+ "type": "string",
233
+ "const": "[[Books]]"
234
+ },
235
+ "areas": {
236
+ "type": "array",
237
+ "items": {
238
+ "type": "string",
239
+ "const": "[[Knowledge]]"
240
+ }
241
+ },
242
+ "color": {
243
+ "type": "string",
244
+ "const": "#3171B2"
245
+ },
246
+ "icon": {
247
+ "type": "string",
248
+ "const": "book"
249
+ },
250
+ "cover": {
251
+ "type": "string"
252
+ },
253
+ "url": {
254
+ "type": "string",
255
+ "description": "URL of the book in Amazon or similar"
256
+ },
257
+ "read_url": {
258
+ "type": "string",
259
+ "description": "URL of the reading of the book"
260
+ }
261
+ },
262
+ "required": [
263
+ "type",
264
+ "format",
265
+ "areas",
266
+ "color",
267
+ "icon",
268
+ "url",
269
+ "read_url"
270
+ ],
271
+ "additionalProperties": false,
272
+ "description": "Book: Metadata of Note"
273
+ }
274
+ }
275
+ }
@@ -0,0 +1,124 @@
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
+ "additionalProperties": false,
123
+ "description": "Book"
124
+ }
@@ -0,0 +1,35 @@
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
+ "additionalProperties": false,
34
+ "description": "Article: Data obtained from catalogation"
35
+ }