@aepstore-dev/contracts 1.5.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/products.ts +12 -7
- package/package.json +1 -1
- package/proto/products.proto +10 -7
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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
-
|
|
35
|
+
IMAGE = 1,
|
|
36
|
+
VIDEO = 2,
|
|
32
37
|
UNRECOGNIZED = -1,
|
|
33
38
|
}
|
|
34
39
|
|
package/package.json
CHANGED
package/proto/products.proto
CHANGED
|
@@ -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
|
-
|
|
41
|
-
|
|
43
|
+
ACTIVE = 1;
|
|
44
|
+
DRAFT = 2;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
enum ModerationStatus {
|
|
45
48
|
MODERATION_STATUS_UNSPECIFIED = 0;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
PENDING = 1;
|
|
50
|
+
APPROVED = 2;
|
|
51
|
+
REJECTED = 3;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
enum MediaType {
|
|
52
55
|
MEDIA_TYPE_UNSPECIFIED = 0;
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
IMAGE = 1;
|
|
57
|
+
VIDEO = 2;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
// =================================================================
|