@aepstore-dev/contracts 1.31.0 → 1.32.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/gen/products.ts CHANGED
@@ -127,6 +127,18 @@ export interface Product {
127
127
  isReviewed: boolean;
128
128
  /** Popularity (populated by GetTopProduct / GetPopularProducts). */
129
129
  popularityScore: string;
130
+ /**
131
+ * OWNER-ONLY: the product's deliverable files. Populated by FindOne only
132
+ * when the viewer is the product owner; empty for everyone else (never
133
+ * exposes private attachment metadata to non-owners).
134
+ */
135
+ attachments: ProductAttachment[];
136
+ }
137
+
138
+ export interface ProductAttachment {
139
+ id: string;
140
+ fileName: string;
141
+ fileSize: number;
130
142
  }
131
143
 
132
144
  /** Compact product shape for "related products" — only the fields a card needs. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -146,6 +146,17 @@ message Product {
146
146
 
147
147
  // Popularity (populated by GetTopProduct / GetPopularProducts).
148
148
  string popularity_score = 29; // double as string
149
+
150
+ // OWNER-ONLY: the product's deliverable files. Populated by FindOne only
151
+ // when the viewer is the product owner; empty for everyone else (never
152
+ // exposes private attachment metadata to non-owners).
153
+ repeated ProductAttachment attachments = 33;
154
+ }
155
+
156
+ message ProductAttachment {
157
+ string id = 1;
158
+ string file_name = 2;
159
+ double file_size = 3;
149
160
  }
150
161
 
151
162
  // Compact product shape for "related products" — only the fields a card needs.