@aepstore-dev/contracts 1.18.1 → 1.19.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/users.ts CHANGED
@@ -66,6 +66,17 @@ export interface CreateSocialMedia {
66
66
  url: string;
67
67
  }
68
68
 
69
+ export interface ProductUser {
70
+ id: string;
71
+ username: string;
72
+ avatarUrl: string;
73
+ }
74
+
75
+ export interface Category {
76
+ id: string;
77
+ name: string;
78
+ }
79
+
69
80
  export interface Product {
70
81
  id: string;
71
82
  name: string;
@@ -81,6 +92,12 @@ export interface Product {
81
92
  /** number as string */
82
93
  averageRating: string;
83
94
  status: string;
95
+ /**
96
+ * Author of the product (same person as the profile owner, but echoed per
97
+ * product so cards can render the author independently).
98
+ */
99
+ user: ProductUser | undefined;
100
+ categories: Category[];
84
101
  }
85
102
 
86
103
  export interface Video {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/users.proto CHANGED
@@ -66,6 +66,17 @@ message CreateSocialMedia {
66
66
  string url = 2;
67
67
  }
68
68
 
69
+ message ProductUser {
70
+ string id = 1;
71
+ string username = 2;
72
+ string avatar_url = 3;
73
+ }
74
+
75
+ message Category {
76
+ string id = 1;
77
+ string name = 2;
78
+ }
79
+
69
80
  message Product {
70
81
  string id = 1;
71
82
  string name = 2;
@@ -78,6 +89,10 @@ message Product {
78
89
  string final_price = 8; // Decimal as string
79
90
  string average_rating = 9; // number as string
80
91
  string status = 10;
92
+ // Author of the product (same person as the profile owner, but echoed per
93
+ // product so cards can render the author independently).
94
+ ProductUser user = 11;
95
+ repeated Category categories = 12;
81
96
  }
82
97
 
83
98
  message Video {