@segha/catalog 2.1.0 → 3.0.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 +179 -0
- package/README.md +83 -0
- package/en/Note.ts +2 -0
- package/en/Wikipedia/index.ts +18 -0
- package/en/Wikipedia/types.ts +10 -0
- package/en/index.ts +1 -0
- package/es/Article/index.ts +19 -23
- package/es/Article/types.ts +1 -4
- package/es/Book/index.ts +23 -27
- package/es/Book/types.ts +1 -4
- package/es/Clothing/index.ts +29 -14
- package/es/Clothing/types.ts +1 -3
- package/es/Core/Area.ts +66 -0
- package/es/Core/Common.ts +43 -0
- package/es/Core/Format.ts +28 -0
- package/es/Core/Rating.ts +33 -0
- package/es/Core/Resource.ts +18 -0
- package/es/Core/Source.ts +37 -0
- package/es/Core/Subtype.ts +8 -0
- package/es/Core/Type.ts +36 -0
- package/es/Core/index.ts +9 -0
- package/es/DataTypes/Color.ts +22 -0
- package/es/DataTypes/Date.ts +45 -0
- package/es/DataTypes/Icon.ts +7 -0
- package/es/DataTypes/Image.ts +9 -0
- package/es/DataTypes/Language.ts +11 -0
- package/es/DataTypes/Status.ts +8 -0
- package/es/DataTypes/Wikilink.ts +16 -0
- package/es/DataTypes/index.ts +7 -0
- package/es/EncyclopediaEntry/index.ts +30 -0
- package/es/EncyclopediaEntry/types.ts +8 -0
- package/es/Movie/MovieExternalId.ts +7 -0
- package/es/Movie/index.ts +25 -28
- package/es/Movie/types.ts +1 -4
- package/es/Note.ts +6 -0
- package/es/Painting/index.ts +23 -0
- package/es/Painting/types.ts +6 -0
- package/es/Video/index.ts +35 -0
- package/es/Video/types.ts +9 -0
- package/es/index.ts +3 -0
- package/es/types.ts +3 -0
- package/json-schemas/ArticleSchema.json +0 -1
- package/json-schemas/BookSchema.json +0 -1
- package/json-schemas/CatalogArticleSchema.json +0 -1
- package/json-schemas/CatalogBookSchema.json +0 -1
- package/json-schemas/CatalogClothingSchema.json +0 -1
- package/json-schemas/CatalogMovieSchema.json +0 -1
- package/json-schemas/{es/CatalogArticleSchema.json → CatalogWikipediaSchema.json} +6 -7
- package/json-schemas/ClothingSchema.json +0 -2
- package/json-schemas/DetailedArticleSchema.json +0 -1
- package/json-schemas/DetailedBookSchema.json +0 -1
- package/json-schemas/DetailedClothingSchema.json +0 -2
- package/json-schemas/DetailedMovieSchema.json +0 -1
- package/json-schemas/{es/Article/DetailedArticleSchema.json → DetailedWikipediaSchema.json} +9 -10
- package/json-schemas/MetaArticleSchema.json +0 -1
- package/json-schemas/MetaBookSchema.json +0 -1
- package/json-schemas/MetaClothingSchema.json +0 -1
- package/json-schemas/MetaMovieSchema.json +0 -1
- package/json-schemas/{es/Book/MetaBookSchema.json → MetaWikipediaSchema.json} +11 -12
- package/json-schemas/MovieSchema.json +0 -1
- package/json-schemas/NoteSchema.json +106 -5
- package/json-schemas/WikipediaSchema.json +107 -0
- package/json-schemas/common/Palette.json +14 -0
- package/json-schemas/common/Scheme.json +11 -0
- package/json-schemas/common/index.json +32 -0
- package/json-schemas/en/Article/ArticleSchema.json +0 -1
- package/json-schemas/en/Article/CatalogArticleSchema.json +0 -1
- package/json-schemas/en/Article/DetailedArticleSchema.json +0 -1
- package/json-schemas/en/Article/MetaArticleSchema.json +0 -1
- package/json-schemas/en/Article/index.json +0 -4
- package/json-schemas/en/ArticleSchema.json +0 -1
- package/json-schemas/en/Book/BookSchema.json +0 -1
- package/json-schemas/en/Book/CatalogBookSchema.json +0 -1
- package/json-schemas/en/Book/DetailedBookSchema.json +0 -1
- package/json-schemas/en/Book/MetaBookSchema.json +0 -1
- package/json-schemas/en/Book/index.json +0 -4
- package/json-schemas/en/BookSchema.json +0 -1
- package/json-schemas/en/CatalogArticleSchema.json +0 -1
- package/json-schemas/en/CatalogBookSchema.json +0 -1
- package/json-schemas/en/CatalogClothingSchema.json +0 -1
- package/json-schemas/en/CatalogMovieSchema.json +0 -1
- package/json-schemas/{es/Article/CatalogArticleSchema.json → en/CatalogWikipediaSchema.json} +6 -7
- 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 +0 -1
- package/json-schemas/en/DetailedBookSchema.json +0 -1
- package/json-schemas/en/DetailedClothingSchema.json +0 -2
- package/json-schemas/en/DetailedMovieSchema.json +0 -1
- package/json-schemas/{es/DetailedArticleSchema.json → en/DetailedWikipediaSchema.json} +9 -10
- package/json-schemas/en/MetaArticleSchema.json +0 -1
- package/json-schemas/en/MetaBookSchema.json +0 -1
- package/json-schemas/en/MetaClothingSchema.json +0 -1
- package/json-schemas/en/MetaMovieSchema.json +0 -1
- package/json-schemas/{es/MetaBookSchema.json → en/MetaWikipediaSchema.json} +11 -12
- package/json-schemas/en/Movie/CatalogMovieSchema.json +0 -1
- package/json-schemas/en/Movie/DetailedMovieSchema.json +0 -1
- package/json-schemas/en/Movie/MetaMovieSchema.json +0 -1
- package/json-schemas/en/Movie/MovieSchema.json +0 -1
- package/json-schemas/en/Movie/index.json +0 -4
- package/json-schemas/en/MovieSchema.json +0 -1
- package/json-schemas/en/NoteSchema.json +106 -5
- package/json-schemas/en/Wikipedia/CatalogWikipediaSchema.json +34 -0
- package/json-schemas/en/Wikipedia/DetailedWikipediaSchema.json +41 -0
- package/json-schemas/{es/Article/MetaArticleSchema.json → en/Wikipedia/MetaWikipediaSchema.json} +14 -10
- 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 +338 -23
- package/json-schemas/es/Article/ArticleSchema.json +202 -61
- package/json-schemas/es/Article/index.json +196 -178
- package/json-schemas/es/ArticleSchema.json +202 -61
- package/json-schemas/es/Book/BookSchema.json +240 -80
- package/json-schemas/es/Book/index.json +226 -210
- package/json-schemas/es/BookSchema.json +240 -80
- package/json-schemas/es/CatalogClothingSchema.json +1 -1
- package/json-schemas/es/Clothing/CatalogClothingSchema.json +1 -1
- package/json-schemas/es/Clothing/ClothingSchema.json +173 -46
- package/json-schemas/es/Clothing/index.json +174 -163
- package/json-schemas/es/ClothingSchema.json +173 -46
- package/json-schemas/es/Core/Articles.json +6 -0
- package/json-schemas/es/Core/Atrocious.json +6 -0
- package/json-schemas/es/Core/Bad.json +6 -0
- package/json-schemas/es/Core/Books.json +6 -0
- package/json-schemas/es/Core/Capabilities.json +6 -0
- package/json-schemas/es/Core/Chronicles.json +6 -0
- package/json-schemas/es/Core/Clothes.json +6 -0
- package/json-schemas/es/Core/CommonSchema.json +165 -0
- package/json-schemas/es/Core/Creativity.json +6 -0
- package/json-schemas/es/Core/EncyclopediaEntries.json +6 -0
- package/json-schemas/es/Core/Energy.json +6 -0
- package/json-schemas/es/Core/Entities.json +6 -0
- package/json-schemas/es/Core/Evil.json +6 -0
- package/json-schemas/es/Core/Excellent.json +6 -0
- package/json-schemas/es/Core/Exercise.json +6 -0
- package/json-schemas/es/Core/Exploration.json +6 -0
- package/json-schemas/es/Core/Extracts.json +6 -0
- package/json-schemas/es/Core/Finances.json +6 -0
- package/json-schemas/es/Core/Food.json +6 -0
- package/json-schemas/es/Core/Format.json +13 -0
- package/json-schemas/es/Core/Good.json +6 -0
- package/json-schemas/es/Core/Health.json +6 -0
- package/json-schemas/es/Core/Home.json +6 -0
- package/json-schemas/es/Core/Knowledge.json +6 -0
- package/json-schemas/es/Core/Links.json +6 -0
- package/json-schemas/es/Core/MentalHealth.json +6 -0
- package/json-schemas/es/Core/Movies.json +6 -0
- package/json-schemas/es/Core/Paintings.json +6 -0
- package/json-schemas/es/Core/Passable.json +6 -0
- package/json-schemas/es/Core/Perfect.json +6 -0
- package/json-schemas/es/Core/Productivity.json +6 -0
- package/json-schemas/es/Core/Publications.json +6 -0
- package/json-schemas/es/Core/Rating.json +41 -0
- package/json-schemas/es/Core/ResourceSchema.json +171 -0
- package/json-schemas/es/Core/Resources.json +6 -0
- package/json-schemas/es/Core/ResourcesSubtype.json +11 -0
- package/json-schemas/es/Core/Scenarios.json +6 -0
- package/json-schemas/es/Core/SourceSchema.json +209 -0
- package/json-schemas/es/Core/Sources.json +6 -0
- package/json-schemas/es/Core/SourcesFormat.json +16 -0
- package/json-schemas/es/Core/StructuredThinking.json +6 -0
- package/json-schemas/es/Core/Subtype.json +8 -0
- package/json-schemas/es/Core/Type.json +15 -0
- package/json-schemas/es/Core/Videos.json +6 -0
- package/json-schemas/es/Core/Work.json +6 -0
- package/json-schemas/es/Core/index.json +939 -0
- package/json-schemas/es/DataTypes/Blue.json +6 -0
- package/json-schemas/es/DataTypes/Color.json +6 -0
- package/json-schemas/es/DataTypes/Consolidated.json +5 -0
- package/json-schemas/es/DataTypes/Date.json +21 -0
- package/json-schemas/es/DataTypes/DateTime.json +6 -0
- package/json-schemas/es/DataTypes/DateTimeOffset.json +6 -0
- package/json-schemas/es/DataTypes/Embedding.json +6 -0
- package/json-schemas/es/DataTypes/FullDate.json +6 -0
- package/json-schemas/es/DataTypes/Hex.json +6 -0
- package/json-schemas/es/DataTypes/Icon.json +6 -0
- package/json-schemas/es/DataTypes/Image.json +15 -0
- package/json-schemas/es/DataTypes/InProgress.json +5 -0
- package/json-schemas/es/DataTypes/Language.json +6 -0
- package/json-schemas/es/DataTypes/LanguageTag.json +6 -0
- package/json-schemas/es/DataTypes/Month.json +6 -0
- package/json-schemas/es/DataTypes/Orange.json +6 -0
- package/json-schemas/es/DataTypes/OrdinalDate.json +6 -0
- package/json-schemas/es/DataTypes/Pending.json +5 -0
- package/json-schemas/es/DataTypes/Read.json +5 -0
- package/json-schemas/es/DataTypes/Seen.json +5 -0
- package/json-schemas/es/DataTypes/Time.json +6 -0
- package/json-schemas/es/DataTypes/Watched.json +5 -0
- package/json-schemas/es/DataTypes/Week.json +6 -0
- package/json-schemas/es/DataTypes/WeekWithWeekDay.json +6 -0
- package/json-schemas/es/DataTypes/Wikilink.json +6 -0
- package/json-schemas/es/DataTypes/WikilinkOrEmbedding.json +6 -0
- package/json-schemas/es/DataTypes/Year.json +6 -0
- package/json-schemas/es/DataTypes/Yellow.json +6 -0
- package/json-schemas/es/DataTypes/index.json +193 -0
- package/json-schemas/es/EncyclopediaEntry/EncyclopediaEntrySchema.json +252 -0
- package/json-schemas/es/EncyclopediaEntry/WikipediaEntrySchema.json +257 -0
- package/json-schemas/es/EncyclopediaEntry/index.json +516 -0
- package/json-schemas/es/EncyclopediaEntrySchema.json +252 -0
- package/json-schemas/es/Movie/MovieExternalId.json +5 -0
- package/json-schemas/es/Movie/MovieSchema.json +233 -80
- package/json-schemas/es/Movie/index.json +224 -214
- package/json-schemas/es/MovieSchema.json +233 -80
- package/json-schemas/es/NoteSchema.json +1540 -248
- package/json-schemas/es/Painting/PaintingSchema.json +232 -0
- package/json-schemas/es/Painting/index.json +239 -0
- package/json-schemas/es/PaintingSchema.json +232 -0
- package/json-schemas/es/Video/VideoSchema.json +230 -0
- package/json-schemas/es/Video/VimeoSchema.json +221 -0
- package/json-schemas/es/Video/YoutubeSchema.json +221 -0
- package/json-schemas/es/Video/index.json +679 -0
- package/json-schemas/es/VideoSchema.json +230 -0
- package/json-schemas/es/VimeoSchema.json +221 -0
- package/json-schemas/es/WikipediaEntrySchema.json +257 -0
- package/json-schemas/es/YoutubeSchema.json +221 -0
- package/json-schemas/es/index.json +3655 -967
- package/json-schemas/index.json +338 -23
- package/package.json +10 -4
- package/es/Areas.ts +0 -24
- package/json-schemas/es/Book/CatalogBookSchema.json +0 -44
- package/json-schemas/es/Book/DetailedBookSchema.json +0 -49
- package/json-schemas/es/CatalogBookSchema.json +0 -44
- package/json-schemas/es/CatalogMovieSchema.json +0 -49
- package/json-schemas/es/Clothing/DetailedClothingSchema.json +0 -75
- package/json-schemas/es/Clothing/MetaClothingSchema.json +0 -41
- package/json-schemas/es/DetailedBookSchema.json +0 -49
- package/json-schemas/es/DetailedClothingSchema.json +0 -75
- package/json-schemas/es/DetailedMovieSchema.json +0 -48
- package/json-schemas/es/MetaArticleSchema.json +0 -46
- package/json-schemas/es/MetaClothingSchema.json +0 -41
- package/json-schemas/es/MetaMovieSchema.json +0 -51
- package/json-schemas/es/Movie/CatalogMovieSchema.json +0 -49
- package/json-schemas/es/Movie/DetailedMovieSchema.json +0 -48
- package/json-schemas/es/Movie/MetaMovieSchema.json +0 -51
- /package/json-schemas/es/{Area.json → Core/Area.json} +0 -0
- /package/json-schemas/es/{Areas.json → Core/Areas.json} +0 -0
- /package/json-schemas/es/{FirstLevelArea.json → Core/FirstLevelArea.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,185 @@ All notable changes to @segha/catalog will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.0.0] - 2026-02-08
|
|
9
|
+
|
|
10
|
+
### COMMON (common)
|
|
11
|
+
|
|
12
|
+
#### Added
|
|
13
|
+
|
|
14
|
+
- Schema `Palette` was added
|
|
15
|
+
- Schema `Scheme` was added
|
|
16
|
+
|
|
17
|
+
### Spanish (es)
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- Schema `EncyclopediaEntrySchema` was added
|
|
22
|
+
- Schema `VideoSchema` was added
|
|
23
|
+
- Schema `VimeoSchema` was added
|
|
24
|
+
- Schema `WikipediaEntrySchema` was added
|
|
25
|
+
- Optional property `cover` was added to `ArticleSchema`
|
|
26
|
+
- Optional property `aliases` was added to `ArticleSchema`
|
|
27
|
+
- **BREAKING** Property `type` in `ArticleSchema` changed from required to optional
|
|
28
|
+
- **BREAKING** Property `status` in `ArticleSchema` changed from required to optional
|
|
29
|
+
- **BREAKING** Property `format` in `ArticleSchema` changed from required to optional
|
|
30
|
+
- Optional property `banner` was added to `BookSchema`
|
|
31
|
+
- Optional property `projects` was added to `BookSchema`
|
|
32
|
+
- Optional property `aliases` was added to `BookSchema`
|
|
33
|
+
- **BREAKING** Property `type` in `BookSchema` changed from required to optional
|
|
34
|
+
- **BREAKING** Property `status` in `BookSchema` changed from required to optional
|
|
35
|
+
- **BREAKING** Property `format` in `BookSchema` changed from required to optional
|
|
36
|
+
- **BREAKING** Property `author` in `BookSchema` changed from required to optional
|
|
37
|
+
- Optional property `banner` was added to `ClothingSchema`
|
|
38
|
+
- Optional property `projects` was added to `ClothingSchema`
|
|
39
|
+
- **BREAKING** Required property `topics` was added to `ClothingSchema`
|
|
40
|
+
- Optional property `rating` was added to `ClothingSchema`
|
|
41
|
+
- Optional property `aliases` was added to `ClothingSchema`
|
|
42
|
+
- **BREAKING** Property `type` in `ClothingSchema` changed from required to optional
|
|
43
|
+
- **BREAKING** Property `subtype` in `ClothingSchema` changed from required to optional
|
|
44
|
+
- Optional property `banner` was added to `MovieSchema`
|
|
45
|
+
- Optional property `projects` was added to `MovieSchema`
|
|
46
|
+
- Optional property `aliases` was added to `MovieSchema`
|
|
47
|
+
- Optional property `external_ids` was added to `MovieSchema`
|
|
48
|
+
- **BREAKING** Property `type` in `MovieSchema` changed from required to optional
|
|
49
|
+
- **BREAKING** Property `status` in `MovieSchema` changed from required to optional
|
|
50
|
+
- **BREAKING** Property `format` in `MovieSchema` changed from required to optional
|
|
51
|
+
- Optional property `banner` was added to `PaintingSchema`
|
|
52
|
+
- Optional property `status` was added to `PaintingSchema`
|
|
53
|
+
- Optional property `aliases` was added to `PaintingSchema`
|
|
54
|
+
- Optional property `url` was added to `PaintingSchema`
|
|
55
|
+
- **BREAKING** Property `type` in `PaintingSchema` changed from required to optional
|
|
56
|
+
- **BREAKING** Property `cover` in `PaintingSchema` changed from required to optional
|
|
57
|
+
- **BREAKING** Property `format` in `PaintingSchema` changed from required to optional
|
|
58
|
+
- Optional property `cover` was added to `YoutubeSchema`
|
|
59
|
+
- Optional property `aliases` was added to `YoutubeSchema`
|
|
60
|
+
- **BREAKING** Property `type` in `YoutubeSchema` changed from required to optional
|
|
61
|
+
- **BREAKING** Property `status` in `YoutubeSchema` changed from required to optional
|
|
62
|
+
- **BREAKING** Property `format` in `YoutubeSchema` changed from required to optional
|
|
63
|
+
|
|
64
|
+
#### Changed
|
|
65
|
+
|
|
66
|
+
- **BREAKING** Property `status` in `ArticleSchema` type changed from `string` to `undefined`
|
|
67
|
+
- **BREAKING** Property `rating` in `ArticleSchema` type changed from `number` to `undefined`
|
|
68
|
+
- **BREAKING** Property `cover` in `BookSchema` type changed from `string` to `undefined`
|
|
69
|
+
- **BREAKING** Property `status` in `BookSchema` type changed from `string` to `undefined`
|
|
70
|
+
- **BREAKING** Property `rating` in `BookSchema` type changed from `number` to `undefined`
|
|
71
|
+
- **BREAKING** Property `description` in `BookSchema` type changed from `string` to `undefined`
|
|
72
|
+
- **BREAKING** Property `last_time_read` in `BookSchema` type changed from `string` to `undefined`
|
|
73
|
+
- **BREAKING** Property `cover` in `ClothingSchema` type changed from `string` to `undefined`
|
|
74
|
+
- **BREAKING** Property `cover` in `MovieSchema` type changed from `string` to `undefined`
|
|
75
|
+
- **BREAKING** Property `topics` in `MovieSchema` type changed from `undefined` to `array`
|
|
76
|
+
- **BREAKING** Property `status` in `MovieSchema` type changed from `string` to `undefined`
|
|
77
|
+
- **BREAKING** Property `rating` in `MovieSchema` type changed from `number` to `undefined`
|
|
78
|
+
- **BREAKING** Property `last_time_watched` in `MovieSchema` type changed from `string` to `undefined`
|
|
79
|
+
- **BREAKING** Property `cover` in `PaintingSchema` type changed from `string` to `undefined`
|
|
80
|
+
- **BREAKING** Property `rating` in `PaintingSchema` type changed from `number` to `undefined`
|
|
81
|
+
- **BREAKING** Property `published` in `PaintingSchema` type changed from `string` to `undefined`
|
|
82
|
+
- **BREAKING** Property `status` in `YoutubeSchema` type changed from `string` to `undefined`
|
|
83
|
+
- **BREAKING** Property `rating` in `YoutubeSchema` type changed from `number` to `undefined`
|
|
84
|
+
- Property `type` in `ArticleSchema` was modified
|
|
85
|
+
- Property `color` in `ArticleSchema` was modified
|
|
86
|
+
- Property `icon` in `ArticleSchema` was modified
|
|
87
|
+
- Property `banner` in `ArticleSchema` was modified
|
|
88
|
+
- Property `projects` in `ArticleSchema` was modified
|
|
89
|
+
- Property `topics` in `ArticleSchema` was modified
|
|
90
|
+
- Property `format` in `ArticleSchema` was modified
|
|
91
|
+
- Property `url` in `ArticleSchema` was modified
|
|
92
|
+
- Property `author` in `ArticleSchema` was modified
|
|
93
|
+
- Property `published` in `ArticleSchema` was modified
|
|
94
|
+
- Property `type` in `BookSchema` was modified
|
|
95
|
+
- Property `color` in `BookSchema` was modified
|
|
96
|
+
- Property `icon` in `BookSchema` was modified
|
|
97
|
+
- Property `topics` in `BookSchema` was modified
|
|
98
|
+
- Property `format` in `BookSchema` was modified
|
|
99
|
+
- Property `url` in `BookSchema` was modified
|
|
100
|
+
- Property `author` in `BookSchema` was modified
|
|
101
|
+
- Property `published` in `BookSchema` was modified
|
|
102
|
+
- Property `read_url` in `BookSchema` was modified
|
|
103
|
+
- Property `times_read` in `BookSchema` was modified
|
|
104
|
+
- Property `type` in `ClothingSchema` was modified
|
|
105
|
+
- Property `color` in `ClothingSchema` was modified
|
|
106
|
+
- Property `icon` in `ClothingSchema` was modified
|
|
107
|
+
- Property `subtype` in `ClothingSchema` was modified
|
|
108
|
+
- Property `type` in `MovieSchema` was modified
|
|
109
|
+
- Property `color` in `MovieSchema` was modified
|
|
110
|
+
- Property `icon` in `MovieSchema` was modified
|
|
111
|
+
- Property `format` in `MovieSchema` was modified
|
|
112
|
+
- Property `url` in `MovieSchema` was modified
|
|
113
|
+
- Property `author` in `MovieSchema` was modified
|
|
114
|
+
- Property `published` in `MovieSchema` was modified
|
|
115
|
+
- Property `watch_url` in `MovieSchema` was modified
|
|
116
|
+
- Property `times_watched` in `MovieSchema` was modified
|
|
117
|
+
- Property `type` in `PaintingSchema` was modified
|
|
118
|
+
- Property `color` in `PaintingSchema` was modified
|
|
119
|
+
- Property `icon` in `PaintingSchema` was modified
|
|
120
|
+
- Property `projects` in `PaintingSchema` was modified
|
|
121
|
+
- Property `topics` in `PaintingSchema` was modified
|
|
122
|
+
- Property `format` in `PaintingSchema` was modified
|
|
123
|
+
- Property `author` in `PaintingSchema` was modified
|
|
124
|
+
- Property `title` in `PaintingSchema` was modified
|
|
125
|
+
- Property `type` in `YoutubeSchema` was modified
|
|
126
|
+
- Property `color` in `YoutubeSchema` was modified
|
|
127
|
+
- Property `icon` in `YoutubeSchema` was modified
|
|
128
|
+
- Property `banner` in `YoutubeSchema` was modified
|
|
129
|
+
- Property `projects` in `YoutubeSchema` was modified
|
|
130
|
+
- Property `topics` in `YoutubeSchema` was modified
|
|
131
|
+
- Property `format` in `YoutubeSchema` was modified
|
|
132
|
+
- Property `url` in `YoutubeSchema` was modified
|
|
133
|
+
- Property `author` in `YoutubeSchema` was modified
|
|
134
|
+
- Property `published` in `YoutubeSchema` was modified
|
|
135
|
+
- Property `title` in `YoutubeSchema` was modified
|
|
136
|
+
|
|
137
|
+
#### Removed
|
|
138
|
+
|
|
139
|
+
- **BREAKING** Schema `Area` was removed
|
|
140
|
+
- **BREAKING** Schema `Areas` was removed
|
|
141
|
+
- **BREAKING** Schema `FirstLevelArea` was removed
|
|
142
|
+
- **BREAKING** Schema `Icon` was removed
|
|
143
|
+
- **BREAKING** Schema `CatalogArticleSchema` was removed
|
|
144
|
+
- **BREAKING** Schema `CatalogBookSchema` was removed
|
|
145
|
+
- **BREAKING** Schema `CatalogMovieSchema` was removed
|
|
146
|
+
- **BREAKING** Schema `CatalogPaintingSchema` was removed
|
|
147
|
+
- **BREAKING** Schema `CatalogWikipediaSchema` was removed
|
|
148
|
+
- **BREAKING** Schema `CatalogYoutubeSchema` was removed
|
|
149
|
+
- **BREAKING** Schema `DetailedArticleSchema` was removed
|
|
150
|
+
- **BREAKING** Schema `DetailedBookSchema` was removed
|
|
151
|
+
- **BREAKING** Schema `DetailedClothingSchema` was removed
|
|
152
|
+
- **BREAKING** Schema `DetailedMovieSchema` was removed
|
|
153
|
+
- **BREAKING** Schema `DetailedPaintingSchema` was removed
|
|
154
|
+
- **BREAKING** Schema `DetailedWikipediaSchema` was removed
|
|
155
|
+
- **BREAKING** Schema `DetailedYoutubeSchema` was removed
|
|
156
|
+
- **BREAKING** Schema `MetaArticleSchema` was removed
|
|
157
|
+
- **BREAKING** Schema `MetaBookSchema` was removed
|
|
158
|
+
- **BREAKING** Schema `MetaClothingSchema` was removed
|
|
159
|
+
- **BREAKING** Schema `MetaMovieSchema` was removed
|
|
160
|
+
- **BREAKING** Schema `MetaPaintingSchema` was removed
|
|
161
|
+
- **BREAKING** Schema `MetaWikipediaSchema` was removed
|
|
162
|
+
- **BREAKING** Schema `MetaYoutubeSchema` was removed
|
|
163
|
+
- **BREAKING** Schema `WikipediaSchema` was removed
|
|
164
|
+
- **BREAKING** Property `topics` in `ArticleSchema` changed from optional to required
|
|
165
|
+
- **BREAKING** Property `url` in `ArticleSchema` changed from optional to required
|
|
166
|
+
- **BREAKING** Property `topics` in `BookSchema` changed from optional to required
|
|
167
|
+
- **BREAKING** Property `description` was removed from `MovieSchema`
|
|
168
|
+
- **BREAKING** Property `topics` in `MovieSchema` changed from optional to required
|
|
169
|
+
- **BREAKING** Property `description` was removed from `PaintingSchema`
|
|
170
|
+
- **BREAKING** Property `topics` in `PaintingSchema` changed from optional to required
|
|
171
|
+
- **BREAKING** Property `title` in `PaintingSchema` changed from optional to required
|
|
172
|
+
- **BREAKING** Property `description` was removed from `YoutubeSchema`
|
|
173
|
+
- **BREAKING** Property `excerpt` was removed from `YoutubeSchema`
|
|
174
|
+
- **BREAKING** Property `topics` in `YoutubeSchema` changed from optional to required
|
|
175
|
+
|
|
176
|
+
## [2.2.0] - 2026-02-06
|
|
177
|
+
|
|
178
|
+
### Added
|
|
179
|
+
|
|
180
|
+
- Schema `CatalogWikipediaSchema` was added
|
|
181
|
+
- Schema `DetailedWikipediaSchema` was added
|
|
182
|
+
- Schema `MetaWikipediaSchema` was added
|
|
183
|
+
- Schema `WikipediaSchema` was added
|
|
184
|
+
- **BREAKING** Property `status` in `ClothingSchema` changed from required to optional
|
|
185
|
+
- **BREAKING** Property `status` in `DetailedClothingSchema` changed from required to optional
|
|
186
|
+
|
|
8
187
|
## [2.1.0] - 2026-02-05
|
|
9
188
|
|
|
10
189
|
### Added
|
package/README.md
CHANGED
|
@@ -41,17 +41,21 @@ import { MetaClothingSchema, CatalogClothingSchema, DetailedClothingSchema } fro
|
|
|
41
41
|
- [CatalogBook](#catalogbook)
|
|
42
42
|
- [CatalogClothing](#catalogclothing)
|
|
43
43
|
- [CatalogMovie](#catalogmovie)
|
|
44
|
+
- [CatalogWikipedia](#catalogwikipedia)
|
|
44
45
|
- [Clothing](#clothing)
|
|
45
46
|
- [DetailedArticle](#detailedarticle)
|
|
46
47
|
- [DetailedBook](#detailedbook)
|
|
47
48
|
- [DetailedClothing](#detailedclothing)
|
|
48
49
|
- [DetailedMovie](#detailedmovie)
|
|
50
|
+
- [DetailedWikipedia](#detailedwikipedia)
|
|
49
51
|
- [MetaArticle](#metaarticle)
|
|
50
52
|
- [MetaBook](#metabook)
|
|
51
53
|
- [MetaClothing](#metaclothing)
|
|
52
54
|
- [MetaMovie](#metamovie)
|
|
55
|
+
- [MetaWikipedia](#metawikipedia)
|
|
53
56
|
- [Movie](#movie)
|
|
54
57
|
- [Note](#note)
|
|
58
|
+
- [Wikipedia](#wikipedia)
|
|
55
59
|
|
|
56
60
|
## API Reference
|
|
57
61
|
|
|
@@ -188,6 +192,22 @@ _Object containing the following properties:_
|
|
|
188
192
|
|
|
189
193
|
_(\*) Required._
|
|
190
194
|
|
|
195
|
+
## CatalogWikipedia
|
|
196
|
+
|
|
197
|
+
Wikipedia entry: Data obtainable from cataloging
|
|
198
|
+
|
|
199
|
+
_Object containing the following properties:_
|
|
200
|
+
|
|
201
|
+
| Property | Description | Type |
|
|
202
|
+
| :---------------- | :--------------------------- | :-------------- |
|
|
203
|
+
| **`title`** (\*) | Title of the Wikipedia entry | `string` |
|
|
204
|
+
| `description` | Description | `string` |
|
|
205
|
+
| `excerpt` | Extract of the article | `string` |
|
|
206
|
+
| **`author`** (\*) | Authors | `Array<string>` |
|
|
207
|
+
| `published` | Year of publication | `string` |
|
|
208
|
+
|
|
209
|
+
_(\*) Required._
|
|
210
|
+
|
|
191
211
|
## Clothing
|
|
192
212
|
|
|
193
213
|
Clothing item
|
|
@@ -287,6 +307,21 @@ _Object containing the following properties:_
|
|
|
287
307
|
|
|
288
308
|
_(\*) Required._
|
|
289
309
|
|
|
310
|
+
## DetailedWikipedia
|
|
311
|
+
|
|
312
|
+
Wikipedia entry: Additional data
|
|
313
|
+
|
|
314
|
+
_Object containing the following properties:_
|
|
315
|
+
|
|
316
|
+
| Property | Description | Type |
|
|
317
|
+
| :------------------ | :-------------------- | :------------------------------------------------------- |
|
|
318
|
+
| **`status`** (\*) | Reading status | `'Pending' \| 'In Progress' \| 'Read' \| 'Consolidated'` |
|
|
319
|
+
| **`projects`** (\*) | Projects | `Array<string>` |
|
|
320
|
+
| **`topics`** (\*) | Topics | `Array<string>` |
|
|
321
|
+
| **`rating`** (\*) | Rating of the article | `number` |
|
|
322
|
+
|
|
323
|
+
_(\*) Required._
|
|
324
|
+
|
|
290
325
|
## MetaArticle
|
|
291
326
|
|
|
292
327
|
Article: Metadata of Note
|
|
@@ -360,6 +395,25 @@ _Object containing the following properties:_
|
|
|
360
395
|
|
|
361
396
|
_(\*) Required._
|
|
362
397
|
|
|
398
|
+
## MetaWikipedia
|
|
399
|
+
|
|
400
|
+
Wikipedia entry: Metadata of Note
|
|
401
|
+
|
|
402
|
+
_Object containing the following properties:_
|
|
403
|
+
|
|
404
|
+
| Property | Description | Type | Default |
|
|
405
|
+
| :------------------ | :----------------- | :--------------------------- | :------------ |
|
|
406
|
+
| **`type`** (\*) | | `'[[Sources]]'` | |
|
|
407
|
+
| **`format`** (\*) | | `'[[Encyclopedia Entries]]'` | |
|
|
408
|
+
| **`areas`** (\*) | | `Array<'[[Knowledge]]'>` | |
|
|
409
|
+
| **`color`** (\*) | | `'#3171B2'` | |
|
|
410
|
+
| `icon` | Lucide icon. | `string` | `'wikipedia'` |
|
|
411
|
+
| `banner` | | `string` | |
|
|
412
|
+
| **`url`** (\*) | URL of the article | `string` | |
|
|
413
|
+
| **`platform`** (\*) | | `'Wikipedia'` | |
|
|
414
|
+
|
|
415
|
+
_(\*) Required._
|
|
416
|
+
|
|
363
417
|
## Movie
|
|
364
418
|
|
|
365
419
|
Movie
|
|
@@ -401,3 +455,32 @@ _Union of the following possible types:_
|
|
|
401
455
|
- [Book](#book)
|
|
402
456
|
- [Clothing](#clothing)
|
|
403
457
|
- [Movie](#movie)
|
|
458
|
+
- [Wikipedia](#wikipedia)
|
|
459
|
+
|
|
460
|
+
## Wikipedia
|
|
461
|
+
|
|
462
|
+
Wikipedia entry
|
|
463
|
+
|
|
464
|
+
_Object containing the following properties:_
|
|
465
|
+
|
|
466
|
+
| Property | Description | Type | Default |
|
|
467
|
+
| :------------------ | :--------------------------- | :------------------------------------------------------- | :------------ |
|
|
468
|
+
| **`title`** (\*) | Title of the Wikipedia entry | `string` | |
|
|
469
|
+
| `description` | Description | `string` | |
|
|
470
|
+
| `excerpt` | Extract of the article | `string` | |
|
|
471
|
+
| **`author`** (\*) | Authors | `Array<string>` | |
|
|
472
|
+
| `published` | Year of publication | `string` | |
|
|
473
|
+
| **`status`** (\*) | Reading status | `'Pending' \| 'In Progress' \| 'Read' \| 'Consolidated'` | |
|
|
474
|
+
| **`projects`** (\*) | Projects | `Array<string>` | |
|
|
475
|
+
| **`topics`** (\*) | Topics | `Array<string>` | |
|
|
476
|
+
| **`rating`** (\*) | Rating of the article | `number` | |
|
|
477
|
+
| **`type`** (\*) | | `'[[Sources]]'` | |
|
|
478
|
+
| **`format`** (\*) | | `'[[Encyclopedia Entries]]'` | |
|
|
479
|
+
| **`areas`** (\*) | | `Array<'[[Knowledge]]'>` | |
|
|
480
|
+
| **`color`** (\*) | | `'#3171B2'` | |
|
|
481
|
+
| `icon` | Lucide icon. | `string` | `'wikipedia'` |
|
|
482
|
+
| `banner` | | `string` | |
|
|
483
|
+
| **`url`** (\*) | URL of the article | `string` | |
|
|
484
|
+
| **`platform`** (\*) | | `'Wikipedia'` | |
|
|
485
|
+
|
|
486
|
+
_(\*) Required._
|
package/en/Note.ts
CHANGED
|
@@ -4,10 +4,12 @@ import { ArticleSchema } from "./Article";
|
|
|
4
4
|
import { BookSchema } from "./Book";
|
|
5
5
|
import { ClothingSchema } from "./Clothing";
|
|
6
6
|
import { MovieSchema } from "./Movie";
|
|
7
|
+
import { WikipediaSchema } from "./Wikipedia";
|
|
7
8
|
|
|
8
9
|
export const NoteSchema = z.union([
|
|
9
10
|
ArticleSchema,
|
|
10
11
|
BookSchema,
|
|
11
12
|
ClothingSchema,
|
|
12
13
|
MovieSchema,
|
|
14
|
+
WikipediaSchema,
|
|
13
15
|
]).describe('Note: Union of all note types');
|
|
@@ -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('Lucide icon.'),
|
|
7
|
+
format: z.literal("[[Encyclopedia Entries]]"),
|
|
8
|
+
platform: z.literal("Wikipedia"),
|
|
9
|
+
}).describe('Wikipedia entry: Metadata of Note');
|
|
10
|
+
|
|
11
|
+
export const CatalogWikipediaSchema = CatalogArticleSchema.extend({
|
|
12
|
+
title: z.string().describe('Title of the Wikipedia entry'),
|
|
13
|
+
}).describe('Wikipedia entry: Data obtainable from cataloging');
|
|
14
|
+
|
|
15
|
+
export const DetailedWikipediaSchema = DetailedArticleSchema.extend({
|
|
16
|
+
}).describe('Wikipedia entry: Additional data');
|
|
17
|
+
|
|
18
|
+
export const WikipediaSchema = CatalogWikipediaSchema.extend(DetailedWikipediaSchema.shape).extend(MetaWikipediaSchema.shape).describe('Wikipedia entry');
|
|
@@ -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>;
|
package/en/index.ts
CHANGED
package/es/Article/index.ts
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import z from "zod";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
format: z.literal("[[Artículos]]"),
|
|
7
|
-
areas: z.array(z.literal("[[Conocimiento]]")),
|
|
8
|
-
color: z.literal("#3171B2"),
|
|
9
|
-
icon: z.literal("newspaper"),
|
|
10
|
-
banner: z.string().optional(),
|
|
11
|
-
url: z.string().describe('URL del artículo'),
|
|
12
|
-
}).describe('Artículo: Metadatos de Nota');
|
|
4
|
+
import { Areas, Articles, SourceSchema, Knowledge } from '../Core';
|
|
5
|
+
import { Color, Icon, Image, Blue, Pending, InProgress, Read, Consolidated } from "../DataTypes";
|
|
13
6
|
|
|
14
|
-
export const CatalogArticleSchema = z.object({
|
|
15
|
-
title: z.string().describe('Título del artículo'),
|
|
16
|
-
description: z.string().optional().describe('Descripción'),
|
|
17
|
-
excerpt: z.string().optional().describe('Extracto del artículo'),
|
|
18
|
-
author: z.array(z.string()).describe('Autores'),
|
|
19
|
-
published: z.string().optional().describe('Año de publicación'),
|
|
20
|
-
}).describe('Artículo: Datos obtenibles de catalogación');
|
|
21
7
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}).describe('Artículo: Datos adicionales');
|
|
8
|
+
const ArticleStatus = z
|
|
9
|
+
.union([Pending, InProgress, Read, Consolidated])
|
|
10
|
+
.describe('Estado de procesamiento del artículo');
|
|
11
|
+
|
|
12
|
+
const ArticleIcon = z.literal("newspaper");
|
|
28
13
|
|
|
29
|
-
export const ArticleSchema =
|
|
14
|
+
export const ArticleSchema = SourceSchema.extend({
|
|
15
|
+
format: Articles.default(Articles.value),
|
|
16
|
+
status: ArticleStatus.default(Pending.value),
|
|
17
|
+
areas: Areas.default([Knowledge.value]),
|
|
18
|
+
color: Color.optional().default(Blue.value).describe('Color de la nota.'),
|
|
19
|
+
icon: Icon.optional().default(ArticleIcon.value).describe('Icono de Lucide.'),
|
|
20
|
+
banner: Image.nullable().optional().describe('Banner de la nota.'),
|
|
21
|
+
url: z.url().describe('URL del artículo'),
|
|
22
|
+
title: z.string().describe('Título del artículo'),
|
|
23
|
+
description: z.string().nullable().optional().describe('Descripción'),
|
|
24
|
+
excerpt: z.string().optional().describe('Extracto del artículo'),
|
|
25
|
+
}).describe('Artículo');
|
package/es/Article/types.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
import type { ArticleSchema
|
|
4
|
+
import type { ArticleSchema } from ".";
|
|
5
5
|
|
|
6
6
|
export type Article = z.infer<typeof ArticleSchema>;
|
|
7
|
-
export type CatalogArticle = z.infer<typeof CatalogArticleSchema>;
|
|
8
|
-
export type DetailedArticle = z.infer<typeof DetailedArticleSchema>;
|
|
9
|
-
export type MetaArticle = z.infer<typeof MetaArticleSchema>;
|
package/es/Book/index.ts
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
import z from "zod";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
format: z.literal("[[Libros]]"),
|
|
7
|
-
areas: z.array(z.literal("[[Knowledge]]")),
|
|
8
|
-
color: z.literal("#3171B2"),
|
|
9
|
-
icon: z.literal("book"),
|
|
10
|
-
cover: z.string().optional(),
|
|
11
|
-
url: z.string().describe('URL del libro en Amazon o similar'),
|
|
12
|
-
read_url: z.string().describe('URL de la lectura del libro'),
|
|
13
|
-
}).describe('Libro: Metadatos de Nota');
|
|
4
|
+
import { Areas, SourceSchema, Knowledge, Books } from '../Core';
|
|
5
|
+
import { Color, Icon, Image, Blue, Pending, InProgress, Read, Consolidated, Date } from "../DataTypes";
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
description: z.string().optional().describe('Descripción del libro'),
|
|
19
|
-
author: z.array(z.string()).describe('Autores'),
|
|
20
|
-
published: z.string().describe('Año de publicación'),
|
|
21
|
-
categories: z.array(z.string()).describe('Géneros'),
|
|
22
|
-
}).describe('Libro: Datos obtenibles de catalogación');
|
|
7
|
+
const BookStatus = z
|
|
8
|
+
.union([Pending, InProgress, Read, Consolidated])
|
|
9
|
+
.describe('Estado de procesamiento del libro');
|
|
23
10
|
|
|
24
|
-
|
|
25
|
-
status: z.enum(["Pendiente", "En Proceso", "Leído", "Consolidado"]).describe('Estado de lectura'),
|
|
26
|
-
topics: z.array(z.string()).describe('Temas'),
|
|
27
|
-
rating: z.number().describe('Puntuación del libro'),
|
|
28
|
-
online_rating: z.number().describe('Puntuación en línea'),
|
|
29
|
-
last_time_read: z.string().describe('Última vez leído'),
|
|
30
|
-
times_read: z.number().describe('Veces leído'),
|
|
31
|
-
}).describe('Libro: Datos adicionales');
|
|
11
|
+
const BookIcon = z.literal("book");
|
|
32
12
|
|
|
33
|
-
export const BookSchema =
|
|
13
|
+
export const BookSchema = SourceSchema.extend({
|
|
14
|
+
format: Books.default(Books.value),
|
|
15
|
+
status: BookStatus.default(Pending.value),
|
|
16
|
+
areas: Areas.default([Knowledge.value]),
|
|
17
|
+
color: Color.optional().default(Blue.value).describe('Color de la nota.'),
|
|
18
|
+
icon: Icon.optional().default(BookIcon.value).describe('Icono de Lucide.'),
|
|
19
|
+
cover: Image.nullable().optional().describe('Portada del libro.'),
|
|
20
|
+
url: z.url().optional().describe('URL del libro en Amazon o similar'),
|
|
21
|
+
read_url: z.url().optional().describe('URL de la lectura del libro'),
|
|
22
|
+
title: z.string().describe('Título del libro'),
|
|
23
|
+
subtitle: z.string().optional().describe('Subtítulo del libro'),
|
|
24
|
+
description: z.string().nullable().optional().describe('Descripción'),
|
|
25
|
+
categories: z.array(z.string()).optional().describe('Géneros'),
|
|
26
|
+
online_rating: z.number().optional().describe('Puntuación en línea'),
|
|
27
|
+
last_time_read: Date.optional().describe('Última vez leído'),
|
|
28
|
+
times_read: z.number().default(0).optional().describe('Veces leído'),
|
|
29
|
+
}).describe('Libro');
|
package/es/Book/types.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
import type { BookSchema
|
|
4
|
+
import type { BookSchema } from ".";
|
|
5
5
|
|
|
6
6
|
export type Book = z.infer<typeof BookSchema>;
|
|
7
|
-
export type CatalogBook = z.infer<typeof CatalogBookSchema>;
|
|
8
|
-
export type DetailedBook = z.infer<typeof DetailedBookSchema>;
|
|
9
|
-
export type MetaBook = z.infer<typeof MetaBookSchema>;
|
package/es/Clothing/index.ts
CHANGED
|
@@ -14,17 +14,18 @@ import { Slot } from "./Slot";
|
|
|
14
14
|
import { Status } from "./Status";
|
|
15
15
|
import { UseCases } from "./UseCases";
|
|
16
16
|
import { Variants } from "./Variants";
|
|
17
|
+
import { Areas, Home, ResourceSchema } from "../Core";
|
|
18
|
+
import { Clothes } from "../Core/Subtype";
|
|
19
|
+
import { Color, Icon, Image, Orange } from "../DataTypes";
|
|
17
20
|
|
|
18
|
-
|
|
19
|
-
type: z.literal("[[Recursos]]"),
|
|
20
|
-
subtype: z.literal("[[Prendas]]"),
|
|
21
|
-
areas: z.array(z.literal("[[Hogar]]")),
|
|
22
|
-
color: z.literal("#CB6120"),
|
|
23
|
-
icon: z.literal("shirt"),
|
|
24
|
-
cover: z.string().optional(),
|
|
25
|
-
}).describe('Prenda de ropa: Metadatos de Nota');
|
|
21
|
+
const ClothingIcon = z.literal("shirt");
|
|
26
22
|
|
|
27
|
-
export const
|
|
23
|
+
export const ClothingSchema = ResourceSchema.extend({
|
|
24
|
+
subtype: Clothes.default(Clothes.value),
|
|
25
|
+
areas: Areas.default([Home.value]),
|
|
26
|
+
color: Color.optional().default(Orange.value).describe('Color de la nota.'),
|
|
27
|
+
icon: Icon.optional().default(ClothingIcon.value).describe('Icono de Lucide.'),
|
|
28
|
+
cover: Image.nullable().optional().describe('Portada de la prenda de ropa.'),
|
|
28
29
|
name: z.string().describe('Nombre descriptivo de la prenda de ropa'),
|
|
29
30
|
garment: Garment,
|
|
30
31
|
slot: Slot,
|
|
@@ -39,13 +40,27 @@ export const CatalogClothingSchema = z.object({
|
|
|
39
40
|
use_case: UseCases,
|
|
40
41
|
formality: Formality,
|
|
41
42
|
brand: z.string().optional().describe('The brand of the clothing'),
|
|
42
|
-
}).describe('Prenda de ropa: Datos obtenibles de catalogación');
|
|
43
|
-
|
|
44
|
-
export const DetailedClothingSchema = z.object({
|
|
45
43
|
cares: Cares,
|
|
46
44
|
status: Status,
|
|
47
45
|
size: Size,
|
|
48
46
|
measurements: Measurements,
|
|
49
|
-
}).describe('Prenda de ropa
|
|
47
|
+
}).describe('Prenda de ropa');
|
|
50
48
|
|
|
51
|
-
export const
|
|
49
|
+
export const CatalogClothingSchema = ClothingSchema.pick({
|
|
50
|
+
name: true,
|
|
51
|
+
garment: true,
|
|
52
|
+
slot: true,
|
|
53
|
+
variants: true,
|
|
54
|
+
fit: true,
|
|
55
|
+
primary_color: true,
|
|
56
|
+
secondary_color: true,
|
|
57
|
+
pattern: true,
|
|
58
|
+
materials: true,
|
|
59
|
+
layer: true,
|
|
60
|
+
season: true,
|
|
61
|
+
use_case: true,
|
|
62
|
+
formality: true,
|
|
63
|
+
brand: true,
|
|
64
|
+
}).meta({
|
|
65
|
+
deprecated: true,
|
|
66
|
+
}).describe('Prenda de ropa: Datos obtenibles de catalogación');
|
package/es/Clothing/types.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
import type { ClothingSchema, CatalogClothingSchema
|
|
4
|
+
import type { ClothingSchema, CatalogClothingSchema } from ".";
|
|
5
5
|
|
|
6
6
|
export type Clothing = z.infer<typeof ClothingSchema>;
|
|
7
7
|
export type CatalogClothing = z.infer<typeof CatalogClothingSchema>;
|
|
8
|
-
export type DetailedClothing = z.infer<typeof DetailedClothingSchema>;
|
|
9
|
-
export type MetaClothing = z.infer<typeof MetaClothingSchema>;
|
package/es/Core/Area.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
|
|
3
|
+
export const Food = z.literal("[[Alimentación]]")
|
|
4
|
+
.describe('Alimentación');
|
|
5
|
+
|
|
6
|
+
export const Health = z.literal("[[Salud]]")
|
|
7
|
+
.describe('Salud');
|
|
8
|
+
|
|
9
|
+
export const Knowledge = z.literal("[[Conocimiento]]")
|
|
10
|
+
.describe('Conocimiento');
|
|
11
|
+
|
|
12
|
+
export const StructuredThinking = z.literal("[[Pensamiento Estructurado]]")
|
|
13
|
+
.describe('Pensamiento Estructurado');
|
|
14
|
+
|
|
15
|
+
export const Home = z.literal("[[Hogar]]")
|
|
16
|
+
.describe('Hogar');
|
|
17
|
+
|
|
18
|
+
export const Productivity = z.literal("[[Productividad]]")
|
|
19
|
+
.describe('Productividad');
|
|
20
|
+
|
|
21
|
+
export const Exploration = z.literal("[[Exploración]]")
|
|
22
|
+
.describe('Exploración');
|
|
23
|
+
|
|
24
|
+
export const Links = z.literal("[[Vínculos]]")
|
|
25
|
+
.describe('Vínculos');
|
|
26
|
+
|
|
27
|
+
export const Exercise = z.literal("[[Ejercicio]]")
|
|
28
|
+
.describe('Ejercicio');
|
|
29
|
+
|
|
30
|
+
export const Energy = z.literal("[[Energía Vital]]")
|
|
31
|
+
.describe('Energía Vital');
|
|
32
|
+
|
|
33
|
+
export const Work = z.literal("[[Trabajo]]")
|
|
34
|
+
.describe('Trabajo');
|
|
35
|
+
|
|
36
|
+
export const Finances = z.literal("[[Finanzas]]")
|
|
37
|
+
.describe('Finanzas');
|
|
38
|
+
|
|
39
|
+
export const MentalHealth = z.literal("[[Salud Mental]]")
|
|
40
|
+
.describe('Salud Mental');
|
|
41
|
+
|
|
42
|
+
export const Creativity = z.literal("[[Creatividad]]")
|
|
43
|
+
.describe('Creatividad');
|
|
44
|
+
|
|
45
|
+
export const FirstLevelArea = z.enum([
|
|
46
|
+
Food.value,
|
|
47
|
+
Health.value,
|
|
48
|
+
Knowledge.value,
|
|
49
|
+
StructuredThinking.value,
|
|
50
|
+
Home.value,
|
|
51
|
+
Productivity.value,
|
|
52
|
+
Exploration.value,
|
|
53
|
+
Links.value,
|
|
54
|
+
Exercise.value,
|
|
55
|
+
Energy.value,
|
|
56
|
+
Work.value,
|
|
57
|
+
Finances.value,
|
|
58
|
+
MentalHealth.value,
|
|
59
|
+
Creativity.value,
|
|
60
|
+
]).describe('Área de Primer Nivel');
|
|
61
|
+
|
|
62
|
+
export const Area = z.enum([
|
|
63
|
+
...FirstLevelArea.options,
|
|
64
|
+
]).describe('Área');
|
|
65
|
+
|
|
66
|
+
export const Areas = z.array(Area).describe('Áreas');
|