@aepstore-dev/contracts 1.3.0 → 1.5.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/activity.ts CHANGED
@@ -10,20 +10,25 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "activity.v1";
12
12
 
13
+ /**
14
+ * Member names match the DB enum string values exactly (enums: String on the
15
+ * wire), so DB values pass straight through with no mapping. UNSPECIFIED=0
16
+ * represents "no value / not provided" (e.g. an optional list filter).
17
+ */
13
18
  export enum ReportType {
14
19
  REPORT_TYPE_UNSPECIFIED = 0,
15
- REPORT_TYPE_PRODUCT = 1,
16
- REPORT_TYPE_PROFILE = 2,
17
- REPORT_TYPE_REVIEW = 3,
20
+ PRODUCT = 1,
21
+ PROFILE = 2,
22
+ REVIEW = 3,
18
23
  UNRECOGNIZED = -1,
19
24
  }
20
25
 
21
26
  export enum ReportStatus {
22
27
  REPORT_STATUS_UNSPECIFIED = 0,
23
- REPORT_STATUS_PENDING = 1,
24
- REPORT_STATUS_IN_PROGRESS = 2,
25
- REPORT_STATUS_RESOLVED = 3,
26
- REPORT_STATUS_DISMISSED = 4,
28
+ PENDING = 1,
29
+ IN_PROGRESS = 2,
30
+ RESOLVED = 3,
31
+ DISMISSED = 4,
27
32
  UNRECOGNIZED = -1,
28
33
  }
29
34
 
package/gen/users.ts CHANGED
@@ -57,6 +57,13 @@ export interface Product {
57
57
  price: string;
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
+ /** profile-card preview fields */
61
+ preview: string;
62
+ /** Decimal as string */
63
+ finalPrice: string;
64
+ /** number as string */
65
+ averageRating: string;
66
+ status: string;
60
67
  }
61
68
 
62
69
  export interface Video {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -28,19 +28,22 @@ service ActivityService {
28
28
  // Enums
29
29
  // =================================================================
30
30
 
31
+ // Member names match the DB enum string values exactly (enums: String on the
32
+ // wire), so DB values pass straight through with no mapping. UNSPECIFIED=0
33
+ // represents "no value / not provided" (e.g. an optional list filter).
31
34
  enum ReportType {
32
35
  REPORT_TYPE_UNSPECIFIED = 0;
33
- REPORT_TYPE_PRODUCT = 1;
34
- REPORT_TYPE_PROFILE = 2;
35
- REPORT_TYPE_REVIEW = 3;
36
+ PRODUCT = 1;
37
+ PROFILE = 2;
38
+ REVIEW = 3;
36
39
  }
37
40
 
38
41
  enum ReportStatus {
39
42
  REPORT_STATUS_UNSPECIFIED = 0;
40
- REPORT_STATUS_PENDING = 1;
41
- REPORT_STATUS_IN_PROGRESS = 2;
42
- REPORT_STATUS_RESOLVED = 3;
43
- REPORT_STATUS_DISMISSED = 4;
43
+ PENDING = 1;
44
+ IN_PROGRESS = 2;
45
+ RESOLVED = 3;
46
+ DISMISSED = 4;
44
47
  }
45
48
 
46
49
  // =================================================================
package/proto/users.proto CHANGED
@@ -52,6 +52,11 @@ message Product {
52
52
  string price = 4; // Decimal as string (D7)
53
53
  string created_at = 5;
54
54
  string updated_at = 6;
55
+ // profile-card preview fields
56
+ string preview = 7;
57
+ string final_price = 8; // Decimal as string
58
+ string average_rating = 9; // number as string
59
+ string status = 10;
55
60
  }
56
61
 
57
62
  message Video {