@aepstore-dev/contracts 1.18.0 → 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/auth.ts +2 -4
- package/gen/users.ts +17 -0
- package/package.json +1 -1
- package/proto/users.proto +15 -0
package/gen/auth.ts
CHANGED
|
@@ -20,10 +20,8 @@ export enum TwoFactorType {
|
|
|
20
20
|
/** Login by username OR email (one of the two must be set). */
|
|
21
21
|
export interface LoginRequest {
|
|
22
22
|
password: string;
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/** optional */
|
|
26
|
-
email: string;
|
|
23
|
+
/** username OR email — resolved by the service */
|
|
24
|
+
credentials: string;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
export interface RegisterRequest {
|
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
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 {
|