@la-main-verte/shared-types 1.0.79 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/plant.d.ts +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@la-main-verte/shared-types",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "Shared TypeScript interfaces for frontend of la-main-verte app",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/plant.d.ts CHANGED
@@ -59,6 +59,26 @@ export interface PlantI {
59
59
  isHardy: boolean | null
60
60
  quantityForFiveInJardinVivrier?: number | null
61
61
  imageURL: string
62
+ /**
63
+ * Filename of the plant's 3D mesh asset stored on S3.
64
+ * - Ideally a `.webp` file (e.g. `ail.webp`).
65
+ * - Stored in S3 under the `images/meshes/` folder.
66
+ * - By default named after the `Plant.slug` (e.g. `ail.webp` for the garlic plant).
67
+ * - Only the filename is persisted; the public URL is exposed through the
68
+ * virtual `meshURL` field.
69
+ */
70
+ meshFilename: string | null
71
+ /**
72
+ * Public ImageKit URL to the plant's 3D mesh asset.
73
+ * Virtual field computed from `meshFilename`. The underlying file is
74
+ * stored on S3 at `images/meshes/{meshFilename}` and rewritten to
75
+ * ImageKit for CDN delivery and transformations.
76
+ *
77
+ * Falls back to `imageURL` when `meshFilename` is not set.
78
+ *
79
+ * Example: `https://ik.imagekit.io/lamainverte/meshes/ail.webp`
80
+ */
81
+ meshURL: string
62
82
  totalWeeksToMaturity: number
63
83
  hasNoInformation: boolean
64
84
  createdAt: Date