@aepstore-dev/contracts 1.4.0 → 1.6.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/products.ts CHANGED
@@ -10,25 +10,30 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "products.v1";
12
12
 
13
+ /**
14
+ * Member names match the DB enum string values exactly (enums: String on the
15
+ * wire) so values pass straight through with no mapping. UNSPECIFIED=0 covers
16
+ * null/optional (e.g. nullable moderation_status, missing list filters).
17
+ */
13
18
  export enum ProductStatus {
14
19
  PRODUCT_STATUS_UNSPECIFIED = 0,
15
- PRODUCT_STATUS_ACTIVE = 1,
16
- PRODUCT_STATUS_DRAFT = 2,
20
+ ACTIVE = 1,
21
+ DRAFT = 2,
17
22
  UNRECOGNIZED = -1,
18
23
  }
19
24
 
20
25
  export enum ModerationStatus {
21
26
  MODERATION_STATUS_UNSPECIFIED = 0,
22
- MODERATION_STATUS_PENDING = 1,
23
- MODERATION_STATUS_APPROVED = 2,
24
- MODERATION_STATUS_REJECTED = 3,
27
+ PENDING = 1,
28
+ APPROVED = 2,
29
+ REJECTED = 3,
25
30
  UNRECOGNIZED = -1,
26
31
  }
27
32
 
28
33
  export enum MediaType {
29
34
  MEDIA_TYPE_UNSPECIFIED = 0,
30
- MEDIA_TYPE_IMAGE = 1,
31
- MEDIA_TYPE_VIDEO = 2,
35
+ IMAGE = 1,
36
+ VIDEO = 2,
32
37
  UNRECOGNIZED = -1,
33
38
  }
34
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.4.0",
3
+ "version": "1.6.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
  // =================================================================
@@ -35,23 +35,26 @@ service ProductsService {
35
35
  // Enums
36
36
  // =================================================================
37
37
 
38
+ // Member names match the DB enum string values exactly (enums: String on the
39
+ // wire) so values pass straight through with no mapping. UNSPECIFIED=0 covers
40
+ // null/optional (e.g. nullable moderation_status, missing list filters).
38
41
  enum ProductStatus {
39
42
  PRODUCT_STATUS_UNSPECIFIED = 0;
40
- PRODUCT_STATUS_ACTIVE = 1;
41
- PRODUCT_STATUS_DRAFT = 2;
43
+ ACTIVE = 1;
44
+ DRAFT = 2;
42
45
  }
43
46
 
44
47
  enum ModerationStatus {
45
48
  MODERATION_STATUS_UNSPECIFIED = 0;
46
- MODERATION_STATUS_PENDING = 1;
47
- MODERATION_STATUS_APPROVED = 2;
48
- MODERATION_STATUS_REJECTED = 3;
49
+ PENDING = 1;
50
+ APPROVED = 2;
51
+ REJECTED = 3;
49
52
  }
50
53
 
51
54
  enum MediaType {
52
55
  MEDIA_TYPE_UNSPECIFIED = 0;
53
- MEDIA_TYPE_IMAGE = 1;
54
- MEDIA_TYPE_VIDEO = 2;
56
+ IMAGE = 1;
57
+ VIDEO = 2;
55
58
  }
56
59
 
57
60
  // =================================================================