@segha/catalog 1.1.0 → 2.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 +80 -0
- package/README.md +61 -61
- package/en/Clothing/Cares.ts +27 -0
- package/en/Clothing/Colors.ts +54 -0
- package/en/Clothing/Fit.ts +10 -0
- package/en/Clothing/Formality.ts +9 -0
- package/en/Clothing/Garment.ts +97 -0
- package/en/Clothing/Layer.ts +8 -0
- package/en/Clothing/Materials.ts +45 -0
- package/en/Clothing/Measurements.ts +5 -0
- package/en/Clothing/Season.ts +8 -0
- package/en/Clothing/Size.ts +47 -0
- package/en/Clothing/Slot.ts +10 -0
- package/en/Clothing/Status.ts +9 -0
- package/en/Clothing/UseCases.ts +20 -0
- package/en/Clothing/Variants.ts +73 -0
- package/en/Clothing/index.ts +51 -0
- package/en/Clothing/types.ts +9 -0
- package/en/index.ts +2 -0
- package/en/types.ts +2 -0
- package/index.ts +2 -2
- package/json-schemas/CatalogClothingSchema.json +176 -177
- package/json-schemas/ClothingSchema.json +195 -196
- package/json-schemas/DetailedClothingSchema.json +17 -17
- package/json-schemas/MetaClothingSchema.json +4 -4
- package/json-schemas/en/CatalogClothingSchema.json +292 -0
- package/json-schemas/en/Clothing/Accessories.json +18 -0
- package/json-schemas/en/Clothing/AdditionalFeatures.json +9 -0
- package/json-schemas/en/Clothing/BaseColor.json +19 -0
- package/json-schemas/en/Clothing/Bottom.json +12 -0
- package/json-schemas/en/Clothing/Care.json +13 -0
- package/json-schemas/en/Clothing/Cares.json +17 -0
- package/json-schemas/en/Clothing/CatalogClothingSchema.json +292 -0
- package/json-schemas/en/Clothing/Closures.json +11 -0
- package/json-schemas/en/Clothing/ClothingSchema.json +388 -0
- package/json-schemas/en/Clothing/Color.json +26 -0
- package/json-schemas/en/Clothing/CommonFabric.json +15 -0
- package/json-schemas/en/Clothing/DetailedClothingSchema.json +75 -0
- package/json-schemas/en/Clothing/Dress.json +9 -0
- package/json-schemas/en/Clothing/Fit.json +13 -0
- package/json-schemas/en/Clothing/Formality.json +12 -0
- package/json-schemas/en/Clothing/Garment.json +56 -0
- package/json-schemas/en/Clothing/Home.json +9 -0
- package/json-schemas/en/Clothing/Ironing.json +8 -0
- package/json-schemas/en/Clothing/Layer.json +10 -0
- package/json-schemas/en/Clothing/Material.json +28 -0
- package/json-schemas/en/Clothing/Materials.json +32 -0
- package/json-schemas/en/Clothing/Measurements.json +8 -0
- package/json-schemas/en/Clothing/MetaClothingSchema.json +41 -0
- package/json-schemas/en/Clothing/MetallicColor.json +9 -0
- package/json-schemas/en/Clothing/NaturalMaterial.json +13 -0
- package/json-schemas/en/Clothing/Necks.json +15 -0
- package/json-schemas/en/Clothing/Outerwear.json +9 -0
- package/json-schemas/en/Clothing/Pants.json +11 -0
- package/json-schemas/en/Clothing/PantsSize.json +17 -0
- package/json-schemas/en/Clothing/Pattern.json +17 -0
- package/json-schemas/en/Clothing/PrimaryColor.json +27 -0
- package/json-schemas/en/Clothing/Season.json +11 -0
- package/json-schemas/en/Clothing/SecondaryColor.json +27 -0
- package/json-schemas/en/Clothing/Shoes.json +11 -0
- package/json-schemas/en/Clothing/ShoesSize.json +16 -0
- package/json-schemas/en/Clothing/Size.json +29 -0
- package/json-schemas/en/Clothing/Sleeves.json +9 -0
- package/json-schemas/en/Clothing/Slot.json +13 -0
- package/json-schemas/en/Clothing/SpecialColor.json +10 -0
- package/json-schemas/en/Clothing/SpecialCuts.json +9 -0
- package/json-schemas/en/Clothing/Sportswear.json +11 -0
- package/json-schemas/en/Clothing/Status.json +13 -0
- package/json-schemas/en/Clothing/Swimsuits.json +9 -0
- package/json-schemas/en/Clothing/SyntheticMaterial.json +12 -0
- package/json-schemas/en/Clothing/Temperature.json +8 -0
- package/json-schemas/en/Clothing/Top.json +16 -0
- package/json-schemas/en/Clothing/TopsSize.json +13 -0
- package/json-schemas/en/Clothing/Underwear.json +12 -0
- package/json-schemas/en/Clothing/UseCase.json +18 -0
- package/json-schemas/en/Clothing/UseCases.json +22 -0
- package/json-schemas/en/Clothing/Variant.json +37 -0
- package/json-schemas/en/Clothing/Variants.json +41 -0
- package/json-schemas/en/Clothing/WashType.json +9 -0
- package/json-schemas/en/Clothing/index.json +1602 -0
- package/json-schemas/en/ClothingSchema.json +388 -0
- package/json-schemas/en/DetailedClothingSchema.json +75 -0
- package/json-schemas/en/MetaClothingSchema.json +41 -0
- package/json-schemas/en/index.json +803 -0
- package/json-schemas/es/Clothing/index.json +838 -40
- package/json-schemas/index.json +392 -394
- package/package.json +11 -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/{variants.ts → Variants.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,86 @@ 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
|
+
## [2.0.0] - 2026-02-05
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Enum values added to `CatalogClothingSchema`.`garment`: `Undershirts`, `Boxers`, `Panties`, `Bras`, `Socks`, `T-Shirts`, `Polo Shirts`, `Shirts`, `Blouses`, `Sweaters`, `Hoodies`, `Cardigans`, `Jackets`, `Pants`, `Jeans`, `Skirts`, `Blazers`, `Coats`, `Trench Coats`, `Vests`, `Leggings`, `Technical Wear`, `Sports Shorts`, `Technical T-Shirts`, `Dresses`, `Jumpsuits`, `Sneakers`, `Shoes`, `Boots`, `Sandals`, `Belts`, `Caps`, `Hats`, `Scarves`, `Gloves`, `Handbags`, `Backpacks`, `Sunglasses`, `Handkerchiefs`, `Watches`, `Jewelry`, `Pajamas`, `Robes`, `Swimsuits`
|
|
13
|
+
- Enum values added to `CatalogClothingSchema`.`slot`: `Top`, `Bottom`, `Full Body`, `Outer`, `Footwear`, `Accessories`
|
|
14
|
+
- Enum values added to `CatalogClothingSchema`.`fit`: `Fitted`, `Slim`, `Relaxed`, `Loose`, `Oversized`
|
|
15
|
+
- Enum values added to `CatalogClothingSchema`.`primary_color`: `White`, `Black`, `Gray`, `Brown`, `Blue`, `Green`, `Red`, `Burgundy`, `Pink`, `Yellow`, `Orange`, `Purple`, `Khaki`, `Navy`, `Cream`, `Gold`, `Silver`, `Bronze`
|
|
16
|
+
- Enum values added to `CatalogClothingSchema`.`secondary_color`: `White`, `Black`, `Gray`, `Brown`, `Blue`, `Green`, `Red`, `Burgundy`, `Pink`, `Yellow`, `Orange`, `Purple`, `Khaki`, `Navy`, `Cream`, `Gold`, `Silver`, `Bronze`
|
|
17
|
+
- Enum values added to `CatalogClothingSchema`.`pattern`: `Solid`, `Stripes`, `Plaid`, `Polka Dots`, `Geometric`, `Camouflage`, `Graphic Print`, `Gradient`
|
|
18
|
+
- Enum values added to `CatalogClothingSchema`.`layer`: `Mid`, `Outer`
|
|
19
|
+
- Enum values added to `CatalogClothingSchema`.`season`: `Winter`, `Summer`, `Spring/Fall`, `All Year`
|
|
20
|
+
- Enum values added to `CatalogClothingSchema`.`formality`: `Very Casual`, `Smart Casual`, `Black Tie`
|
|
21
|
+
- Enum values added to `ClothingSchema`.`garment`: `Undershirts`, `Boxers`, `Panties`, `Bras`, `Socks`, `T-Shirts`, `Polo Shirts`, `Shirts`, `Blouses`, `Sweaters`, `Hoodies`, `Cardigans`, `Jackets`, `Pants`, `Jeans`, `Skirts`, `Blazers`, `Coats`, `Trench Coats`, `Vests`, `Leggings`, `Technical Wear`, `Sports Shorts`, `Technical T-Shirts`, `Dresses`, `Jumpsuits`, `Sneakers`, `Shoes`, `Boots`, `Sandals`, `Belts`, `Caps`, `Hats`, `Scarves`, `Gloves`, `Handbags`, `Backpacks`, `Sunglasses`, `Handkerchiefs`, `Watches`, `Jewelry`, `Pajamas`, `Robes`, `Swimsuits`
|
|
22
|
+
- Enum values added to `ClothingSchema`.`slot`: `Top`, `Bottom`, `Full Body`, `Outer`, `Footwear`, `Accessories`
|
|
23
|
+
- Enum values added to `ClothingSchema`.`fit`: `Fitted`, `Slim`, `Relaxed`, `Loose`, `Oversized`
|
|
24
|
+
- Enum values added to `ClothingSchema`.`primary_color`: `White`, `Black`, `Gray`, `Brown`, `Blue`, `Green`, `Red`, `Burgundy`, `Pink`, `Yellow`, `Orange`, `Purple`, `Khaki`, `Navy`, `Cream`, `Gold`, `Silver`, `Bronze`
|
|
25
|
+
- Enum values added to `ClothingSchema`.`secondary_color`: `White`, `Black`, `Gray`, `Brown`, `Blue`, `Green`, `Red`, `Burgundy`, `Pink`, `Yellow`, `Orange`, `Purple`, `Khaki`, `Navy`, `Cream`, `Gold`, `Silver`, `Bronze`
|
|
26
|
+
- Enum values added to `ClothingSchema`.`pattern`: `Solid`, `Stripes`, `Plaid`, `Polka Dots`, `Geometric`, `Camouflage`, `Graphic Print`, `Gradient`
|
|
27
|
+
- Enum values added to `ClothingSchema`.`layer`: `Mid`, `Outer`
|
|
28
|
+
- Enum values added to `ClothingSchema`.`season`: `Winter`, `Summer`, `Spring/Fall`, `All Year`
|
|
29
|
+
- Enum values added to `ClothingSchema`.`formality`: `Very Casual`, `Smart Casual`, `Black Tie`
|
|
30
|
+
- Enum values added to `ClothingSchema`.`status`: `New`, `Good`, `Worn`, `Damaged`, `Retire`
|
|
31
|
+
- Enum values added to `DetailedClothingSchema`.`status`: `New`, `Good`, `Worn`, `Damaged`, `Retire`
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- Description changed in `CatalogClothingSchema`
|
|
36
|
+
- Property `name` in `CatalogClothingSchema` was modified
|
|
37
|
+
- Property `variants` in `CatalogClothingSchema` was modified
|
|
38
|
+
- Property `materials` in `CatalogClothingSchema` was modified
|
|
39
|
+
- Property `use_case` in `CatalogClothingSchema` was modified
|
|
40
|
+
- Description changed in `ClothingSchema`
|
|
41
|
+
- Property `name` in `ClothingSchema` was modified
|
|
42
|
+
- Property `variants` in `ClothingSchema` was modified
|
|
43
|
+
- Property `materials` in `ClothingSchema` was modified
|
|
44
|
+
- Property `use_case` in `ClothingSchema` was modified
|
|
45
|
+
- Property `cares` in `ClothingSchema` was modified
|
|
46
|
+
- Property `measurements` in `ClothingSchema` was modified
|
|
47
|
+
- Property `type` in `ClothingSchema` was modified
|
|
48
|
+
- Property `subtype` in `ClothingSchema` was modified
|
|
49
|
+
- Property `areas` in `ClothingSchema` was modified
|
|
50
|
+
- Description changed in `DetailedClothingSchema`
|
|
51
|
+
- Property `cares` in `DetailedClothingSchema` was modified
|
|
52
|
+
- Property `measurements` in `DetailedClothingSchema` was modified
|
|
53
|
+
- Description changed in `MetaClothingSchema`
|
|
54
|
+
- Property `type` in `MetaClothingSchema` was modified
|
|
55
|
+
- Property `subtype` in `MetaClothingSchema` was modified
|
|
56
|
+
- Property `areas` in `MetaClothingSchema` was modified
|
|
57
|
+
|
|
58
|
+
### Removed
|
|
59
|
+
|
|
60
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`garment`: `Camisetas Interiores`, `Calzoncillos`, `Bragas`, `Sujetadores`, `Calcetines`, `Camisetas`, `Polos`, `Camisas`, `Blusas`, `Jerseys`, `Sudaderas`, `Cárdigans`, `Chaquetas`, `Pantalones`, `Vaqueros`, `Faldas`, `Americanas`, `Abrigos`, `Gabardinas`, `Cazadoras`, `Chalecos`, `Mallas`, `Ropa Técnica`, `Shorts Deportivos`, `Camisetas Técnicas`, `Vestidos`, `Monos`, `Zapatillas`, `Zapatos`, `Botas`, `Sandalias`, `Cinturones`, `Gorras`, `Sombreros`, `Bufandas`, `Guantes`, `Bolsos`, `Mochilas`, `Gafas de Sol`, `Pañuelos`, `Relojes`, `Joyas`, `Pijamas`, `Batas`, `Bañadores`
|
|
61
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`slot`: `Superior`, `Inferior`, `Cuerpo Completo`, `Exterior`, `Calzado`, `Accesorios`
|
|
62
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`fit`: `Entallado`, `Ajustado`, `Relajado`, `Holgado`, `Extragrande`
|
|
63
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`primary_color`: `Blanco`, `Negro`, `Gris`, `Marrón`, `Azul`, `Verde`, `Rojo`, `Burdeos`, `Rosa`, `Amarillo`, `Naranja`, `Morado`, `Caqui`, `Marino`, `Crema`, `Oro`, `Plata`, `Bronce`
|
|
64
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`secondary_color`: `Blanco`, `Negro`, `Gris`, `Marrón`, `Azul`, `Verde`, `Rojo`, `Burdeos`, `Rosa`, `Amarillo`, `Naranja`, `Morado`, `Caqui`, `Marino`, `Crema`, `Oro`, `Plata`, `Bronce`
|
|
65
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`pattern`: `Liso`, `Rayas`, `Cuadros`, `Lunares`, `Geométrico`, `Camuflaje`, `EstampadoGráfico`, `Degradado`
|
|
66
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`layer`: `Intermedia`, `Exterior`
|
|
67
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`season`: `Invierno`, `Verano`, `Entretiempo`, `Todo el año`
|
|
68
|
+
- **BREAKING** Enum values removed from `CatalogClothingSchema`.`formality`: `Muy Informal`, `Arreglado`, `Etiqueta`
|
|
69
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`garment`: `Camisetas Interiores`, `Calzoncillos`, `Bragas`, `Sujetadores`, `Calcetines`, `Camisetas`, `Polos`, `Camisas`, `Blusas`, `Jerseys`, `Sudaderas`, `Cárdigans`, `Chaquetas`, `Pantalones`, `Vaqueros`, `Faldas`, `Americanas`, `Abrigos`, `Gabardinas`, `Cazadoras`, `Chalecos`, `Mallas`, `Ropa Técnica`, `Shorts Deportivos`, `Camisetas Técnicas`, `Vestidos`, `Monos`, `Zapatillas`, `Zapatos`, `Botas`, `Sandalias`, `Cinturones`, `Gorras`, `Sombreros`, `Bufandas`, `Guantes`, `Bolsos`, `Mochilas`, `Gafas de Sol`, `Pañuelos`, `Relojes`, `Joyas`, `Pijamas`, `Batas`, `Bañadores`
|
|
70
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`slot`: `Superior`, `Inferior`, `Cuerpo Completo`, `Exterior`, `Calzado`, `Accesorios`
|
|
71
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`fit`: `Entallado`, `Ajustado`, `Relajado`, `Holgado`, `Extragrande`
|
|
72
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`primary_color`: `Blanco`, `Negro`, `Gris`, `Marrón`, `Azul`, `Verde`, `Rojo`, `Burdeos`, `Rosa`, `Amarillo`, `Naranja`, `Morado`, `Caqui`, `Marino`, `Crema`, `Oro`, `Plata`, `Bronce`
|
|
73
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`secondary_color`: `Blanco`, `Negro`, `Gris`, `Marrón`, `Azul`, `Verde`, `Rojo`, `Burdeos`, `Rosa`, `Amarillo`, `Naranja`, `Morado`, `Caqui`, `Marino`, `Crema`, `Oro`, `Plata`, `Bronce`
|
|
74
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`pattern`: `Liso`, `Rayas`, `Cuadros`, `Lunares`, `Geométrico`, `Camuflaje`, `EstampadoGráfico`, `Degradado`
|
|
75
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`layer`: `Intermedia`, `Exterior`
|
|
76
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`season`: `Invierno`, `Verano`, `Entretiempo`, `Todo el año`
|
|
77
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`formality`: `Muy Informal`, `Arreglado`, `Etiqueta`
|
|
78
|
+
- **BREAKING** Enum values removed from `ClothingSchema`.`status`: `Nuevo`, `Bien`, `Gastado`, `Dañado`, `Retirar`
|
|
79
|
+
- **BREAKING** Enum values removed from `DetailedClothingSchema`.`status`: `Nuevo`, `Bien`, `Gastado`, `Dañado`, `Retirar`
|
|
80
|
+
|
|
81
|
+
## [1.2.0] - 2026-02-05
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
- **BREAKING** Required property `name` was added to `CatalogClothingSchema`
|
|
86
|
+
- **BREAKING** Required property `name` was added to `ClothingSchema`
|
|
87
|
+
|
|
8
88
|
## [1.1.0] - 2026-02-05
|
|
9
89
|
|
|
10
90
|
### Added
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ type Clothing = z.infer<typeof ClothingSchema>;
|
|
|
30
30
|
You can also import specific submodules:
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
import { CatalogClothingSchema, DetailedClothingSchema, MetaClothingSchema } from '@segha/catalog/
|
|
33
|
+
import { CatalogClothingSchema, DetailedClothingSchema, MetaClothingSchema } from '@segha/catalog/en/clothing';
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### Schemas
|
|
@@ -44,92 +44,92 @@ import { CatalogClothingSchema, DetailedClothingSchema, MetaClothingSchema } fro
|
|
|
44
44
|
|
|
45
45
|
## CatalogClothing
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Clothing item: Catalogable data
|
|
48
48
|
|
|
49
49
|
_Object containing the following properties:_
|
|
50
50
|
|
|
51
|
-
| Property | Description
|
|
52
|
-
| :----------------------- |
|
|
53
|
-
| **`name`** (\*) |
|
|
54
|
-
| **`garment`** (\*) |
|
|
55
|
-
| **`slot`** (\*) |
|
|
56
|
-
| `variants` |
|
|
57
|
-
| `fit` |
|
|
58
|
-
| **`primary_color`** (\*) |
|
|
59
|
-
| `secondary_color` |
|
|
60
|
-
| `pattern` |
|
|
61
|
-
| `materials` |
|
|
62
|
-
| **`layer`** (\*) |
|
|
63
|
-
| `season` |
|
|
64
|
-
| `use_case` |
|
|
65
|
-
| `formality` |
|
|
66
|
-
| `brand` | The brand of the clothing
|
|
51
|
+
| Property | Description | Type |
|
|
52
|
+
| :----------------------- | :------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
53
|
+
| **`name`** (\*) | Descriptive name of the clothing item | `string` |
|
|
54
|
+
| **`garment`** (\*) | Garment Type | `'Undershirts' \| 'Boxers' \| 'Panties' \| 'Bras' \| 'Socks' \| 'T-Shirts' \| 'Polo Shirts' \| 'Shirts' \| 'Blouses' \| 'Tops' \| 'Sweaters' \| 'Hoodies' \| 'Cardigans' \| 'Jackets' \| 'Pants' \| 'Jeans' \| 'Chinos' \| 'Skirts' \| 'Shorts' \| 'Blazers' \| ...` |
|
|
55
|
+
| **`slot`** (\*) | Outfit part | `'Top' \| 'Bottom' \| 'Full Body' \| 'Outer' \| 'Footwear' \| 'Accessories'` |
|
|
56
|
+
| `variants` | Structural Details | `Array<'Sleeveless' \| 'Short Sleeves' \| 'Long Sleeves' \| 'Round Neck' \| 'V-Neck' \| 'High Neck' \| 'Shirt Collar' \| 'Polo Collar' \| 'Boat Neck' \| 'Mandarin Collar' \| 'Funnel Neck' \| 'Hood' \| 'Overshirt' \| 'Cropped' \| 'Long' \| 'Straight Leg' \| 'Skinny' \| 'Wide' \| 'Cargo' \| 'Flared' \| ...>` |
|
|
57
|
+
| `fit` | Fit | `'Fitted' \| 'Slim' \| 'Regular' \| 'Relaxed' \| 'Loose' \| 'Oversized'` |
|
|
58
|
+
| **`primary_color`** (\*) | Primary color | `'White' \| 'Black' \| 'Gray' \| 'Beige' \| 'Brown' \| 'Blue' \| 'Green' \| 'Red' \| 'Burgundy' \| 'Pink' \| 'Yellow' \| 'Orange' \| 'Purple' \| 'Camel' \| 'Khaki' \| 'Navy' \| 'Cream' \| 'Gold' \| 'Silver' \| 'Bronze'` |
|
|
59
|
+
| `secondary_color` | Secondary color | `'White' \| 'Black' \| 'Gray' \| 'Beige' \| 'Brown' \| 'Blue' \| 'Green' \| 'Red' \| 'Burgundy' \| 'Pink' \| 'Yellow' \| 'Orange' \| 'Purple' \| 'Camel' \| 'Khaki' \| 'Navy' \| 'Cream' \| 'Gold' \| 'Silver' \| 'Bronze'` |
|
|
60
|
+
| `pattern` | Pattern | `'Solid' \| 'Stripes' \| 'Plaid' \| 'Polka Dots' \| 'Animal Print' \| 'Floral' \| 'Geometric' \| 'Camouflage' \| 'Graphic Print' \| 'Gradient'` |
|
|
61
|
+
| `materials` | Materials | `Array<'Cotton' \| 'Linen' \| 'Wool' \| 'Silk' \| 'Leather' \| 'Cashmere' \| 'Suede' \| 'Polyester' \| 'Nylon' \| 'Elastane' \| 'Viscose' \| 'Synthetic Leather' \| 'Gore-Tex' \| 'Denim' \| 'Knit' \| 'Fleece' \| 'Tweed' \| 'Satin' \| 'Velvet' \| 'Jacquard' \| ...>` |
|
|
62
|
+
| **`layer`** (\*) | Thermal Layer | `'Base' \| 'Mid' \| 'Outer'` |
|
|
63
|
+
| `season` | Seasons | `'Winter' \| 'Summer' \| 'Spring/Fall' \| 'All Year'` |
|
|
64
|
+
| `use_case` | Use cases | `Array<'Capsule' \| 'Favorite' \| 'Basic' \| 'Sport' \| 'Work' \| 'Event' \| 'Travel' \| 'Home' \| 'Party' \| 'Beach' \| 'Rain' \| 'Extreme Cold'>` |
|
|
65
|
+
| `formality` | Formality | `'Very Casual' \| 'Casual' \| 'Smart Casual' \| 'Formal' \| 'Black Tie'` |
|
|
66
|
+
| `brand` | The brand of the clothing | `string` |
|
|
67
67
|
|
|
68
68
|
_(\*) Required._
|
|
69
69
|
|
|
70
70
|
## Clothing
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
Clothing item
|
|
73
73
|
|
|
74
74
|
_Object containing the following properties:_
|
|
75
75
|
|
|
76
|
-
| Property | Description
|
|
77
|
-
| :----------------------- |
|
|
78
|
-
| **`name`** (\*) |
|
|
79
|
-
| **`garment`** (\*) |
|
|
80
|
-
| **`slot`** (\*) |
|
|
81
|
-
| `variants` |
|
|
82
|
-
| `fit` |
|
|
83
|
-
| **`primary_color`** (\*) |
|
|
84
|
-
| `secondary_color` |
|
|
85
|
-
| `pattern` |
|
|
86
|
-
| `materials` |
|
|
87
|
-
| **`layer`** (\*) |
|
|
88
|
-
| `season` |
|
|
89
|
-
| `use_case` |
|
|
90
|
-
| `formality` |
|
|
91
|
-
| `brand` | The brand of the clothing
|
|
92
|
-
| `cares` |
|
|
93
|
-
| `status` |
|
|
94
|
-
| **`size`** (\*) |
|
|
95
|
-
| `measurements` |
|
|
96
|
-
| **`type`** (\*) |
|
|
97
|
-
| **`subtype`** (\*) |
|
|
98
|
-
| **`areas`** (\*) |
|
|
99
|
-
| **`color`** (\*) |
|
|
100
|
-
| **`icon`** (\*) |
|
|
101
|
-
| `cover` |
|
|
76
|
+
| Property | Description | Type | Default |
|
|
77
|
+
| :----------------------- | :------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------- |
|
|
78
|
+
| **`name`** (\*) | Descriptive name of the clothing item | `string` | |
|
|
79
|
+
| **`garment`** (\*) | Garment Type | `'Undershirts' \| 'Boxers' \| 'Panties' \| 'Bras' \| 'Socks' \| 'T-Shirts' \| 'Polo Shirts' \| 'Shirts' \| 'Blouses' \| 'Tops' \| 'Sweaters' \| 'Hoodies' \| 'Cardigans' \| 'Jackets' \| 'Pants' \| 'Jeans' \| 'Chinos' \| 'Skirts' \| 'Shorts' \| 'Blazers' \| ...` | |
|
|
80
|
+
| **`slot`** (\*) | Outfit part | `'Top' \| 'Bottom' \| 'Full Body' \| 'Outer' \| 'Footwear' \| 'Accessories'` | |
|
|
81
|
+
| `variants` | Structural Details | `Array<'Sleeveless' \| 'Short Sleeves' \| 'Long Sleeves' \| 'Round Neck' \| 'V-Neck' \| 'High Neck' \| 'Shirt Collar' \| 'Polo Collar' \| 'Boat Neck' \| 'Mandarin Collar' \| 'Funnel Neck' \| 'Hood' \| 'Overshirt' \| 'Cropped' \| 'Long' \| 'Straight Leg' \| 'Skinny' \| 'Wide' \| 'Cargo' \| 'Flared' \| ...>` | |
|
|
82
|
+
| `fit` | Fit | `'Fitted' \| 'Slim' \| 'Regular' \| 'Relaxed' \| 'Loose' \| 'Oversized'` | |
|
|
83
|
+
| **`primary_color`** (\*) | Primary color | `'White' \| 'Black' \| 'Gray' \| 'Beige' \| 'Brown' \| 'Blue' \| 'Green' \| 'Red' \| 'Burgundy' \| 'Pink' \| 'Yellow' \| 'Orange' \| 'Purple' \| 'Camel' \| 'Khaki' \| 'Navy' \| 'Cream' \| 'Gold' \| 'Silver' \| 'Bronze'` | |
|
|
84
|
+
| `secondary_color` | Secondary color | `'White' \| 'Black' \| 'Gray' \| 'Beige' \| 'Brown' \| 'Blue' \| 'Green' \| 'Red' \| 'Burgundy' \| 'Pink' \| 'Yellow' \| 'Orange' \| 'Purple' \| 'Camel' \| 'Khaki' \| 'Navy' \| 'Cream' \| 'Gold' \| 'Silver' \| 'Bronze'` | |
|
|
85
|
+
| `pattern` | Pattern | `'Solid' \| 'Stripes' \| 'Plaid' \| 'Polka Dots' \| 'Animal Print' \| 'Floral' \| 'Geometric' \| 'Camouflage' \| 'Graphic Print' \| 'Gradient'` | |
|
|
86
|
+
| `materials` | Materials | `Array<'Cotton' \| 'Linen' \| 'Wool' \| 'Silk' \| 'Leather' \| 'Cashmere' \| 'Suede' \| 'Polyester' \| 'Nylon' \| 'Elastane' \| 'Viscose' \| 'Synthetic Leather' \| 'Gore-Tex' \| 'Denim' \| 'Knit' \| 'Fleece' \| 'Tweed' \| 'Satin' \| 'Velvet' \| 'Jacquard' \| ...>` | |
|
|
87
|
+
| **`layer`** (\*) | Thermal Layer | `'Base' \| 'Mid' \| 'Outer'` | |
|
|
88
|
+
| `season` | Seasons | `'Winter' \| 'Summer' \| 'Spring/Fall' \| 'All Year'` | |
|
|
89
|
+
| `use_case` | Use cases | `Array<'Capsule' \| 'Favorite' \| 'Basic' \| 'Sport' \| 'Work' \| 'Event' \| 'Travel' \| 'Home' \| 'Party' \| 'Beach' \| 'Rain' \| 'Extreme Cold'>` | |
|
|
90
|
+
| `formality` | Formality | `'Very Casual' \| 'Casual' \| 'Smart Casual' \| 'Formal' \| 'Black Tie'` | |
|
|
91
|
+
| `brand` | The brand of the clothing | `string` | |
|
|
92
|
+
| `cares` | Care Instructions | `Array<'Hand Wash' \| 'Machine Wash' \| 'Dry Clean' \| 'Cold' \| 'Hot' \| 'Ironing' \| 'Steam Ironing'>` | |
|
|
93
|
+
| `status` | Status | `'New' \| 'Good' \| 'Worn' \| 'Damaged' \| 'Retire'` | `'Good'` |
|
|
94
|
+
| **`size`** (\*) | | `'28' \| '30' \| '32' \| '34' \| '36' \| '37' \| '38' \| '39' \| '40' \| '41' \| '42' \| '43' \| '44' \| '45' \| '46' \| '48' \| 'XS' \| 'S' \| 'M' \| 'L' \| ...` | |
|
|
95
|
+
| `measurements` | Measurements | `Array<number>` | |
|
|
96
|
+
| **`type`** (\*) | | `'[[Resources]]'` | |
|
|
97
|
+
| **`subtype`** (\*) | | `'[[Clothes]]'` | |
|
|
98
|
+
| **`areas`** (\*) | | `Array<'[[Home]]'>` | |
|
|
99
|
+
| **`color`** (\*) | | `'#CB6120'` | |
|
|
100
|
+
| **`icon`** (\*) | | `'shirt'` | |
|
|
101
|
+
| `cover` | | `string` | |
|
|
102
102
|
|
|
103
103
|
_(\*) Required._
|
|
104
104
|
|
|
105
105
|
## DetailedClothing
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
Clothing item: Additional hard-to-obtain data
|
|
108
108
|
|
|
109
109
|
_Object containing the following properties:_
|
|
110
110
|
|
|
111
|
-
| Property | Description
|
|
112
|
-
| :-------------- |
|
|
113
|
-
| `cares` |
|
|
114
|
-
| `status` |
|
|
115
|
-
| **`size`** (\*) |
|
|
116
|
-
| `measurements` |
|
|
111
|
+
| Property | Description | Type | Default |
|
|
112
|
+
| :-------------- | :---------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- |
|
|
113
|
+
| `cares` | Care Instructions | `Array<'Hand Wash' \| 'Machine Wash' \| 'Dry Clean' \| 'Cold' \| 'Hot' \| 'Ironing' \| 'Steam Ironing'>` | |
|
|
114
|
+
| `status` | Status | `'New' \| 'Good' \| 'Worn' \| 'Damaged' \| 'Retire'` | `'Good'` |
|
|
115
|
+
| **`size`** (\*) | | `'28' \| '30' \| '32' \| '34' \| '36' \| '37' \| '38' \| '39' \| '40' \| '41' \| '42' \| '43' \| '44' \| '45' \| '46' \| '48' \| 'XS' \| 'S' \| 'M' \| 'L' \| ...` | |
|
|
116
|
+
| `measurements` | Measurements | `Array<number>` | |
|
|
117
117
|
|
|
118
118
|
_(\*) Required._
|
|
119
119
|
|
|
120
120
|
## MetaClothing
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
Clothing item: Note metadata
|
|
123
123
|
|
|
124
124
|
_Object containing the following properties:_
|
|
125
125
|
|
|
126
|
-
| Property | Type
|
|
127
|
-
| :----------------- |
|
|
128
|
-
| **`type`** (\*) | `'[[
|
|
129
|
-
| **`subtype`** (\*) | `'[[
|
|
130
|
-
| **`areas`** (\*) | `Array<'[[
|
|
131
|
-
| **`color`** (\*) | `'#CB6120'`
|
|
132
|
-
| **`icon`** (\*) | `'shirt'`
|
|
133
|
-
| `cover` | `string`
|
|
126
|
+
| Property | Type |
|
|
127
|
+
| :----------------- | :------------------ |
|
|
128
|
+
| **`type`** (\*) | `'[[Resources]]'` |
|
|
129
|
+
| **`subtype`** (\*) | `'[[Clothes]]'` |
|
|
130
|
+
| **`areas`** (\*) | `Array<'[[Home]]'>` |
|
|
131
|
+
| **`color`** (\*) | `'#CB6120'` |
|
|
132
|
+
| **`icon`** (\*) | `'shirt'` |
|
|
133
|
+
| `cover` | `string` |
|
|
134
134
|
|
|
135
135
|
_(\*) Required._
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
|
|
3
|
+
export const WashType = z.enum([
|
|
4
|
+
'Hand Wash',
|
|
5
|
+
'Machine Wash',
|
|
6
|
+
'Dry Clean',
|
|
7
|
+
]);
|
|
8
|
+
|
|
9
|
+
export const Temperature = z.enum([
|
|
10
|
+
'Cold',
|
|
11
|
+
'Hot',
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export const Ironing = z.enum([
|
|
15
|
+
'Ironing',
|
|
16
|
+
'Steam Ironing',
|
|
17
|
+
]);
|
|
18
|
+
|
|
19
|
+
export const Care = z.enum([
|
|
20
|
+
...WashType.options,
|
|
21
|
+
...Temperature.options,
|
|
22
|
+
...Ironing.options,
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export const Cares = z.array(Care)
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('Care Instructions');
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import z from "zod"
|
|
2
|
+
|
|
3
|
+
// Base Colors
|
|
4
|
+
export const BaseColor = z.enum([
|
|
5
|
+
'White',
|
|
6
|
+
'Black',
|
|
7
|
+
'Gray',
|
|
8
|
+
'Beige',
|
|
9
|
+
'Brown',
|
|
10
|
+
'Blue',
|
|
11
|
+
'Green',
|
|
12
|
+
'Red',
|
|
13
|
+
'Burgundy',
|
|
14
|
+
'Pink',
|
|
15
|
+
'Yellow',
|
|
16
|
+
'Orange',
|
|
17
|
+
'Purple',
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
// Special Tones
|
|
21
|
+
export const SpecialColor = z.enum([
|
|
22
|
+
'Camel',
|
|
23
|
+
'Khaki',
|
|
24
|
+
'Navy',
|
|
25
|
+
'Cream'
|
|
26
|
+
]);
|
|
27
|
+
|
|
28
|
+
export const MetallicColor = z.enum([
|
|
29
|
+
'Gold',
|
|
30
|
+
'Silver',
|
|
31
|
+
'Bronze',
|
|
32
|
+
]);
|
|
33
|
+
|
|
34
|
+
export const Color = z.enum([
|
|
35
|
+
...BaseColor.options,
|
|
36
|
+
...SpecialColor.options,
|
|
37
|
+
...MetallicColor.options,
|
|
38
|
+
]);
|
|
39
|
+
|
|
40
|
+
export const PrimaryColor = Color.describe('Primary color');
|
|
41
|
+
export const SecondaryColor = Color.optional().describe('Secondary color');
|
|
42
|
+
|
|
43
|
+
export const Pattern = z.enum([
|
|
44
|
+
'Solid',
|
|
45
|
+
'Stripes',
|
|
46
|
+
'Plaid',
|
|
47
|
+
'Polka Dots',
|
|
48
|
+
'Animal Print',
|
|
49
|
+
'Floral',
|
|
50
|
+
'Geometric',
|
|
51
|
+
'Camouflage',
|
|
52
|
+
'Graphic Print',
|
|
53
|
+
'Gradient'
|
|
54
|
+
]).optional().describe('Pattern');
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
|
|
3
|
+
// Underwear
|
|
4
|
+
export const Underwear = z.enum([
|
|
5
|
+
'Undershirts',
|
|
6
|
+
'Boxers',
|
|
7
|
+
'Panties',
|
|
8
|
+
'Bras',
|
|
9
|
+
'Socks',
|
|
10
|
+
]).describe('Underwear');
|
|
11
|
+
|
|
12
|
+
// Tops
|
|
13
|
+
export const Top = z.enum([
|
|
14
|
+
'T-Shirts',
|
|
15
|
+
'Polo Shirts',
|
|
16
|
+
'Shirts',
|
|
17
|
+
'Blouses',
|
|
18
|
+
'Tops',
|
|
19
|
+
'Sweaters',
|
|
20
|
+
'Hoodies',
|
|
21
|
+
'Cardigans',
|
|
22
|
+
'Jackets',
|
|
23
|
+
]).describe('Top');
|
|
24
|
+
|
|
25
|
+
export const Bottom = z.enum([
|
|
26
|
+
'Pants',
|
|
27
|
+
'Jeans',
|
|
28
|
+
'Chinos',
|
|
29
|
+
'Skirts',
|
|
30
|
+
'Shorts',
|
|
31
|
+
]).describe('Bottom');
|
|
32
|
+
|
|
33
|
+
export const Outerwear = z.enum([
|
|
34
|
+
'Blazers',
|
|
35
|
+
'Coats',
|
|
36
|
+
'Trench Coats',
|
|
37
|
+
'Parkas',
|
|
38
|
+
'Jackets',
|
|
39
|
+
'Vests',
|
|
40
|
+
]).describe('Outerwear');
|
|
41
|
+
|
|
42
|
+
// Sportswear
|
|
43
|
+
export const Sportswear = z.enum([
|
|
44
|
+
'Leggings',
|
|
45
|
+
'Technical Wear',
|
|
46
|
+
'Sports Shorts',
|
|
47
|
+
'Technical T-Shirts',
|
|
48
|
+
]).describe('Sportswear');
|
|
49
|
+
|
|
50
|
+
export const Dress = z.enum([
|
|
51
|
+
'Dresses',
|
|
52
|
+
'Jumpsuits',
|
|
53
|
+
]).describe('One-piece');
|
|
54
|
+
|
|
55
|
+
export const Shoes = z.enum([
|
|
56
|
+
'Sneakers',
|
|
57
|
+
'Shoes',
|
|
58
|
+
'Boots',
|
|
59
|
+
'Sandals',
|
|
60
|
+
]).describe('Footwear');
|
|
61
|
+
|
|
62
|
+
export const Home = z.enum([
|
|
63
|
+
'Pajamas',
|
|
64
|
+
'Robes'
|
|
65
|
+
]).describe('Homewear');
|
|
66
|
+
|
|
67
|
+
export const Accessories = z.enum([
|
|
68
|
+
'Belts',
|
|
69
|
+
'Caps',
|
|
70
|
+
'Hats',
|
|
71
|
+
'Scarves',
|
|
72
|
+
'Gloves',
|
|
73
|
+
'Handbags',
|
|
74
|
+
'Backpacks',
|
|
75
|
+
'Sunglasses',
|
|
76
|
+
'Handkerchiefs',
|
|
77
|
+
'Watches',
|
|
78
|
+
'Jewelry',
|
|
79
|
+
]).describe('Accessories');
|
|
80
|
+
|
|
81
|
+
export const Swimsuits = z.enum([
|
|
82
|
+
'Swimsuits',
|
|
83
|
+
'Bikinis',
|
|
84
|
+
]).describe('Swimwear');
|
|
85
|
+
|
|
86
|
+
export const Garment = z.enum([
|
|
87
|
+
...Underwear.options,
|
|
88
|
+
...Top.options,
|
|
89
|
+
...Bottom.options,
|
|
90
|
+
...Outerwear.options,
|
|
91
|
+
...Sportswear.options,
|
|
92
|
+
...Dress.options,
|
|
93
|
+
...Shoes.options,
|
|
94
|
+
...Accessories.options,
|
|
95
|
+
...Home.options,
|
|
96
|
+
...Swimsuits.options,
|
|
97
|
+
]).describe('Garment Type');
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import z from "zod"
|
|
2
|
+
|
|
3
|
+
// Natural
|
|
4
|
+
export const NaturalMaterial = z.enum([
|
|
5
|
+
'Cotton',
|
|
6
|
+
'Linen',
|
|
7
|
+
'Wool',
|
|
8
|
+
'Silk',
|
|
9
|
+
'Leather',
|
|
10
|
+
'Cashmere',
|
|
11
|
+
'Suede',
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
// Synthetic
|
|
15
|
+
export const SyntheticMaterial = z.enum([
|
|
16
|
+
'Polyester',
|
|
17
|
+
'Nylon',
|
|
18
|
+
'Elastane',
|
|
19
|
+
'Viscose',
|
|
20
|
+
'Synthetic Leather',
|
|
21
|
+
'Gore-Tex',
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
// Common Fabrics
|
|
25
|
+
export const CommonFabric = z.enum([
|
|
26
|
+
'Denim',
|
|
27
|
+
'Knit',
|
|
28
|
+
'Fleece',
|
|
29
|
+
'Tweed',
|
|
30
|
+
'Satin',
|
|
31
|
+
'Velvet',
|
|
32
|
+
'Jacquard',
|
|
33
|
+
'Flannel',
|
|
34
|
+
'Gabardine',
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
export const Material = z.enum([
|
|
38
|
+
...NaturalMaterial.options,
|
|
39
|
+
...SyntheticMaterial.options,
|
|
40
|
+
...CommonFabric.options,
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
export const Materials = z.array(Material)
|
|
44
|
+
.optional()
|
|
45
|
+
.describe('Materials');
|