@segha/catalog 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -15
- package/README.md +42 -40
- package/es/Clothing/index.ts +10 -9
- package/json-schemas/CatalogClothingSchema.json +5 -0
- package/json-schemas/ClothingSchema.json +5 -0
- package/json-schemas/es/CatalogClothingSchema.json +5 -0
- package/json-schemas/es/Clothing/CatalogClothingSchema.json +5 -0
- package/json-schemas/es/Clothing/ClothingSchema.json +5 -0
- package/json-schemas/es/Clothing/index.json +893 -883
- package/json-schemas/es/ClothingSchema.json +5 -0
- package/json-schemas/es/index.json +10 -0
- package/json-schemas/index.json +10 -0
- package/package.json +3 -3
- /package/es/Clothing/{layer.ts → Layer.ts} +0 -0
- /package/es/Clothing/{materials.ts → Materials.ts} +0 -0
- /package/es/Clothing/{measurements.ts → Measurements.ts} +0 -0
- /package/es/Clothing/{season.ts → Season.ts} +0 -0
- /package/es/Clothing/{size.ts → Size.ts} +0 -0
- /package/es/Clothing/{slot.ts → Slot.ts} +0 -0
- /package/es/Clothing/{status.ts → Status.ts} +0 -0
- /package/es/Clothing/{use_cases.ts → UseCases.ts} +0 -0
- /package/es/Clothing/{variants.ts → Variants.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
+
All notable changes to @segha/catalog will be documented in this file.
|
|
3
4
|
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
7
|
|
|
5
|
-
## 1.
|
|
8
|
+
## [1.2.0] - 2026-02-05
|
|
6
9
|
|
|
7
|
-
###
|
|
10
|
+
### Added
|
|
8
11
|
|
|
9
|
-
- **BREAKING
|
|
10
|
-
- **BREAKING
|
|
12
|
+
- **BREAKING** Required property `name` was added to `CatalogClothingSchema`
|
|
13
|
+
- **BREAKING** Required property `name` was added to `ClothingSchema`
|
|
11
14
|
|
|
12
|
-
##
|
|
15
|
+
## [1.1.0] - 2026-02-05
|
|
13
16
|
|
|
14
|
-
###
|
|
17
|
+
### Added
|
|
15
18
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- Schema DetailedClothingSchema was added
|
|
19
|
-
- Schema MetaClothingSchema was added
|
|
19
|
+
- **BREAKING** Required property `name` was added to `CatalogClothingSchema`
|
|
20
|
+
- **BREAKING** Required property `name` was added to `ClothingSchema`
|
|
20
21
|
|
|
21
|
-
## 0.0
|
|
22
|
+
## [1.0.0] - 2025-02-04
|
|
22
23
|
|
|
23
|
-
###
|
|
24
|
+
### Removed
|
|
24
25
|
|
|
25
|
-
-
|
|
26
|
-
|
|
26
|
+
- **BREAKING** Enum values removed: Oversize
|
|
27
|
+
|
|
28
|
+
## [0.1.0] - 2025-02-03
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Schema `CatalogClothingSchema`
|
|
33
|
+
- Schema `ClothingSchema`
|
|
34
|
+
- Schema `DetailedClothingSchema`
|
|
35
|
+
- Schema `MetaClothingSchema`
|
|
36
|
+
|
|
37
|
+
## [0.0.1] - 2025-02-02
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- Initial schemas for Clothing
|
|
42
|
+
- Colors, Materials, Sizes, Measurements
|
|
27
43
|
- Garments, Layers and Use Cases
|
|
28
44
|
- Variants and Status
|
package/README.md
CHANGED
|
@@ -48,21 +48,22 @@ Prenda de ropa: Datos obtenibles de catalogación
|
|
|
48
48
|
|
|
49
49
|
_Object containing the following properties:_
|
|
50
50
|
|
|
51
|
-
| Property | Description
|
|
52
|
-
| :----------------------- |
|
|
53
|
-
| **`
|
|
54
|
-
| **`
|
|
55
|
-
|
|
|
56
|
-
| `
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
51
|
+
| Property | Description | Type |
|
|
52
|
+
| :----------------------- | :-------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| **`name`** (\*) | Nombre descriptivo de la prenda de ropa | `string` |
|
|
54
|
+
| **`garment`** (\*) | Tipo de Prenda | `'Camisetas Interiores' \| 'Calzoncillos' \| 'Bragas' \| 'Sujetadores' \| 'Calcetines' \| 'Camisetas' \| 'Polos' \| 'Camisas' \| 'Blusas' \| 'Tops' \| 'Jerseys' \| 'Sudaderas' \| 'Cárdigans' \| 'Chaquetas' \| 'Pantalones' \| 'Vaqueros' \| 'Chinos' \| 'Faldas' \| 'Shorts' \| 'Americanas' \| ...` |
|
|
55
|
+
| **`slot`** (\*) | Parte del outfit | `'Superior' \| 'Inferior' \| 'Cuerpo Completo' \| 'Exterior' \| 'Calzado' \| 'Accesorios'` |
|
|
56
|
+
| `variants` | Detalles Estructurales | `Array<'Sin Mangas' \| 'Mangas Cortas' \| 'Mangas Largas' \| 'Cuello Redondo' \| 'Cuello Pico' \| 'Cuello Alto' \| 'Cuello Camisa' \| 'Cuello Polo' \| 'Cuello Panadero' \| 'Cuello Mao' \| 'Cuello Chimenea' \| 'Capucha' \| 'Overshirt' \| 'Cropped' \| 'Larga' \| 'Pierna Recta' \| 'Pitillo' \| 'Ancha' \| 'Cargo' \| 'Acampanado' \| ...>` |
|
|
57
|
+
| `fit` | Ajuste | `'Entallado' \| 'Ajustado' \| 'Regular' \| 'Relajado' \| 'Holgado' \| 'Extragrande'` |
|
|
58
|
+
| **`primary_color`** (\*) | Color principal | `'Blanco' \| 'Negro' \| 'Gris' \| 'Beige' \| 'Marrón' \| 'Azul' \| 'Verde' \| 'Rojo' \| 'Burdeos' \| 'Rosa' \| 'Amarillo' \| 'Naranja' \| 'Morado' \| 'Camel' \| 'Caqui' \| 'Marino' \| 'Crema' \| 'Oro' \| 'Plata' \| 'Bronce'` |
|
|
59
|
+
| `secondary_color` | Color secundario | `'Blanco' \| 'Negro' \| 'Gris' \| 'Beige' \| 'Marrón' \| 'Azul' \| 'Verde' \| 'Rojo' \| 'Burdeos' \| 'Rosa' \| 'Amarillo' \| 'Naranja' \| 'Morado' \| 'Camel' \| 'Caqui' \| 'Marino' \| 'Crema' \| 'Oro' \| 'Plata' \| 'Bronce'` |
|
|
60
|
+
| `pattern` | Estampado | `'Liso' \| 'Rayas' \| 'Cuadros' \| 'Lunares' \| 'Animal Print' \| 'Floral' \| 'Geométrico' \| 'Camuflaje' \| 'EstampadoGráfico' \| 'Degradado'` |
|
|
61
|
+
| `materials` | Materiales | `Array<'Algodón' \| 'Lino' \| 'Lana' \| 'Seda' \| 'Cuero' \| 'Cachemir' \| 'Ante' \| 'Poliéster' \| 'Nylon' \| 'Elastano' \| 'Viscosa' \| 'Piel Sintética' \| 'Gore-Tex' \| 'Denim' \| 'Punto' \| 'Felpa' \| 'Tweed' \| 'Satén' \| 'Terciopelo' \| 'Jacquard' \| ...>` |
|
|
62
|
+
| **`layer`** (\*) | Capa Térmica | `'Base' \| 'Intermedia' \| 'Exterior'` |
|
|
63
|
+
| `season` | Estaciones | `'Invierno' \| 'Verano' \| 'Entretiempo' \| 'Todo el año'` |
|
|
64
|
+
| `use_case` | Casos de uso | `Array<'Capsula' \| 'Favorita' \| 'Básico' \| 'Deporte' \| 'Trabajo' \| 'Evento' \| 'Viaje' \| 'Casa' \| 'Fiesta' \| 'Playa' \| 'Lluvia' \| 'Frío Extremo'>` |
|
|
65
|
+
| `formality` | Formalidad | `'Muy Informal' \| 'Casual' \| 'Arreglado' \| 'Formal' \| 'Etiqueta'` |
|
|
66
|
+
| `brand` | The brand of the clothing | `string` |
|
|
66
67
|
|
|
67
68
|
_(\*) Required._
|
|
68
69
|
|
|
@@ -72,31 +73,32 @@ Prenda de ropa
|
|
|
72
73
|
|
|
73
74
|
_Object containing the following properties:_
|
|
74
75
|
|
|
75
|
-
| Property | Description
|
|
76
|
-
| :----------------------- |
|
|
77
|
-
| **`
|
|
78
|
-
| **`
|
|
79
|
-
|
|
|
80
|
-
| `
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
| **`
|
|
96
|
-
| **`
|
|
97
|
-
| **`
|
|
98
|
-
| **`
|
|
99
|
-
|
|
|
76
|
+
| Property | Description | Type | Default |
|
|
77
|
+
| :----------------------- | :-------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- |
|
|
78
|
+
| **`name`** (\*) | Nombre descriptivo de la prenda de ropa | `string` | |
|
|
79
|
+
| **`garment`** (\*) | Tipo de Prenda | `'Camisetas Interiores' \| 'Calzoncillos' \| 'Bragas' \| 'Sujetadores' \| 'Calcetines' \| 'Camisetas' \| 'Polos' \| 'Camisas' \| 'Blusas' \| 'Tops' \| 'Jerseys' \| 'Sudaderas' \| 'Cárdigans' \| 'Chaquetas' \| 'Pantalones' \| 'Vaqueros' \| 'Chinos' \| 'Faldas' \| 'Shorts' \| 'Americanas' \| ...` | |
|
|
80
|
+
| **`slot`** (\*) | Parte del outfit | `'Superior' \| 'Inferior' \| 'Cuerpo Completo' \| 'Exterior' \| 'Calzado' \| 'Accesorios'` | |
|
|
81
|
+
| `variants` | Detalles Estructurales | `Array<'Sin Mangas' \| 'Mangas Cortas' \| 'Mangas Largas' \| 'Cuello Redondo' \| 'Cuello Pico' \| 'Cuello Alto' \| 'Cuello Camisa' \| 'Cuello Polo' \| 'Cuello Panadero' \| 'Cuello Mao' \| 'Cuello Chimenea' \| 'Capucha' \| 'Overshirt' \| 'Cropped' \| 'Larga' \| 'Pierna Recta' \| 'Pitillo' \| 'Ancha' \| 'Cargo' \| 'Acampanado' \| ...>` | |
|
|
82
|
+
| `fit` | Ajuste | `'Entallado' \| 'Ajustado' \| 'Regular' \| 'Relajado' \| 'Holgado' \| 'Extragrande'` | |
|
|
83
|
+
| **`primary_color`** (\*) | Color principal | `'Blanco' \| 'Negro' \| 'Gris' \| 'Beige' \| 'Marrón' \| 'Azul' \| 'Verde' \| 'Rojo' \| 'Burdeos' \| 'Rosa' \| 'Amarillo' \| 'Naranja' \| 'Morado' \| 'Camel' \| 'Caqui' \| 'Marino' \| 'Crema' \| 'Oro' \| 'Plata' \| 'Bronce'` | |
|
|
84
|
+
| `secondary_color` | Color secundario | `'Blanco' \| 'Negro' \| 'Gris' \| 'Beige' \| 'Marrón' \| 'Azul' \| 'Verde' \| 'Rojo' \| 'Burdeos' \| 'Rosa' \| 'Amarillo' \| 'Naranja' \| 'Morado' \| 'Camel' \| 'Caqui' \| 'Marino' \| 'Crema' \| 'Oro' \| 'Plata' \| 'Bronce'` | |
|
|
85
|
+
| `pattern` | Estampado | `'Liso' \| 'Rayas' \| 'Cuadros' \| 'Lunares' \| 'Animal Print' \| 'Floral' \| 'Geométrico' \| 'Camuflaje' \| 'EstampadoGráfico' \| 'Degradado'` | |
|
|
86
|
+
| `materials` | Materiales | `Array<'Algodón' \| 'Lino' \| 'Lana' \| 'Seda' \| 'Cuero' \| 'Cachemir' \| 'Ante' \| 'Poliéster' \| 'Nylon' \| 'Elastano' \| 'Viscosa' \| 'Piel Sintética' \| 'Gore-Tex' \| 'Denim' \| 'Punto' \| 'Felpa' \| 'Tweed' \| 'Satén' \| 'Terciopelo' \| 'Jacquard' \| ...>` | |
|
|
87
|
+
| **`layer`** (\*) | Capa Térmica | `'Base' \| 'Intermedia' \| 'Exterior'` | |
|
|
88
|
+
| `season` | Estaciones | `'Invierno' \| 'Verano' \| 'Entretiempo' \| 'Todo el año'` | |
|
|
89
|
+
| `use_case` | Casos de uso | `Array<'Capsula' \| 'Favorita' \| 'Básico' \| 'Deporte' \| 'Trabajo' \| 'Evento' \| 'Viaje' \| 'Casa' \| 'Fiesta' \| 'Playa' \| 'Lluvia' \| 'Frío Extremo'>` | |
|
|
90
|
+
| `formality` | Formalidad | `'Muy Informal' \| 'Casual' \| 'Arreglado' \| 'Formal' \| 'Etiqueta'` | |
|
|
91
|
+
| `brand` | The brand of the clothing | `string` | |
|
|
92
|
+
| `cares` | Cuidados | `Array<'Lavado a mano' \| 'Lavado a máquina' \| 'Lavado en seco' \| 'Frio' \| 'Caliente' \| 'Planchado' \| 'Planchado a vapor'>` | |
|
|
93
|
+
| `status` | Estado | `'Nuevo' \| 'Bien' \| 'Gastado' \| 'Dañado' \| 'Retirar'` | `'Bien'` |
|
|
94
|
+
| **`size`** (\*) | | `'28' \| '30' \| '32' \| '34' \| '36' \| '37' \| '38' \| '39' \| '40' \| '41' \| '42' \| '43' \| '44' \| '45' \| '46' \| '48' \| 'XS' \| 'S' \| 'M' \| 'L' \| ...` | |
|
|
95
|
+
| `measurements` | Medidas | `Array<number>` | |
|
|
96
|
+
| **`type`** (\*) | | `'[[Recursos]]'` | |
|
|
97
|
+
| **`subtype`** (\*) | | `'[[Prendas]]'` | |
|
|
98
|
+
| **`areas`** (\*) | | `Array<'[[Hogar]]'>` | |
|
|
99
|
+
| **`color`** (\*) | | `'#CB6120'` | |
|
|
100
|
+
| **`icon`** (\*) | | `'shirt'` | |
|
|
101
|
+
| `cover` | | `string` | |
|
|
100
102
|
|
|
101
103
|
_(\*) Required._
|
|
102
104
|
|
package/es/Clothing/index.ts
CHANGED
|
@@ -5,17 +5,18 @@ import { Pattern, PrimaryColor, SecondaryColor } from "./Colors";
|
|
|
5
5
|
import { Fit } from "./Fit";
|
|
6
6
|
import { Formality } from "./Formality";
|
|
7
7
|
import { Garment } from "./Garment";
|
|
8
|
-
import { Layer } from "./
|
|
9
|
-
import { Materials } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
8
|
+
import { Layer } from "./Layer";
|
|
9
|
+
import { Materials } from "./Materials";
|
|
10
|
+
import { Measurements } from "./Measurements";
|
|
11
|
+
import { Season } from "./Season";
|
|
12
|
+
import { Size } from "./Size";
|
|
13
|
+
import { Slot } from "./Slot";
|
|
14
|
+
import { Status } from "./Status";
|
|
15
|
+
import { UseCases } from "./UseCases";
|
|
16
|
+
import { Variants } from "./Variants";
|
|
17
17
|
|
|
18
18
|
export const CatalogClothingSchema = z.object({
|
|
19
|
+
name: z.string().describe('Nombre descriptivo de la prenda de ropa'),
|
|
19
20
|
garment: Garment,
|
|
20
21
|
slot: Slot,
|
|
21
22
|
variants: Variants,
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Nombre descriptivo de la prenda de ropa"
|
|
8
|
+
},
|
|
5
9
|
"garment": {
|
|
6
10
|
"type": "string",
|
|
7
11
|
"enum": [
|
|
@@ -278,6 +282,7 @@
|
|
|
278
282
|
}
|
|
279
283
|
},
|
|
280
284
|
"required": [
|
|
285
|
+
"name",
|
|
281
286
|
"garment",
|
|
282
287
|
"slot",
|
|
283
288
|
"primary_color",
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Nombre descriptivo de la prenda de ropa"
|
|
8
|
+
},
|
|
5
9
|
"garment": {
|
|
6
10
|
"type": "string",
|
|
7
11
|
"enum": [
|
|
@@ -367,6 +371,7 @@
|
|
|
367
371
|
}
|
|
368
372
|
},
|
|
369
373
|
"required": [
|
|
374
|
+
"name",
|
|
370
375
|
"garment",
|
|
371
376
|
"slot",
|
|
372
377
|
"primary_color",
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Nombre descriptivo de la prenda de ropa"
|
|
8
|
+
},
|
|
5
9
|
"garment": {
|
|
6
10
|
"type": "string",
|
|
7
11
|
"enum": [
|
|
@@ -278,6 +282,7 @@
|
|
|
278
282
|
}
|
|
279
283
|
},
|
|
280
284
|
"required": [
|
|
285
|
+
"name",
|
|
281
286
|
"garment",
|
|
282
287
|
"slot",
|
|
283
288
|
"primary_color",
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Nombre descriptivo de la prenda de ropa"
|
|
8
|
+
},
|
|
5
9
|
"garment": {
|
|
6
10
|
"type": "string",
|
|
7
11
|
"enum": [
|
|
@@ -278,6 +282,7 @@
|
|
|
278
282
|
}
|
|
279
283
|
},
|
|
280
284
|
"required": [
|
|
285
|
+
"name",
|
|
281
286
|
"garment",
|
|
282
287
|
"slot",
|
|
283
288
|
"primary_color",
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "Nombre descriptivo de la prenda de ropa"
|
|
8
|
+
},
|
|
5
9
|
"garment": {
|
|
6
10
|
"type": "string",
|
|
7
11
|
"enum": [
|
|
@@ -367,6 +371,7 @@
|
|
|
367
371
|
}
|
|
368
372
|
},
|
|
369
373
|
"required": [
|
|
374
|
+
"name",
|
|
370
375
|
"garment",
|
|
371
376
|
"slot",
|
|
372
377
|
"primary_color",
|