@platfformx/proto-contracts 1.2.26 → 1.2.28
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.
|
@@ -48,6 +48,7 @@ export interface ProductResponse {
|
|
|
48
48
|
title: string;
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
categoryId: string;
|
|
51
|
+
categoryName: string;
|
|
51
52
|
price: string;
|
|
52
53
|
images: string[];
|
|
53
54
|
status: string;
|
|
@@ -55,6 +56,9 @@ export interface ProductResponse {
|
|
|
55
56
|
reviewCount: number;
|
|
56
57
|
createdAt: string;
|
|
57
58
|
updatedAt: string;
|
|
59
|
+
tags?: string | undefined;
|
|
60
|
+
popularityScore: number;
|
|
61
|
+
createdAtTimestamp: number;
|
|
58
62
|
}
|
|
59
63
|
export declare const PRODUCT_V1_PACKAGE_NAME = "product.v1";
|
|
60
64
|
export interface ProductServiceClient {
|
|
@@ -4,6 +4,11 @@ export interface SearchProductsRequest {
|
|
|
4
4
|
query: string;
|
|
5
5
|
limit: number;
|
|
6
6
|
page: number;
|
|
7
|
+
categoryId?: string | undefined;
|
|
8
|
+
minPrice?: number | undefined;
|
|
9
|
+
maxPrice?: number | undefined;
|
|
10
|
+
sortOrder?: string | undefined;
|
|
11
|
+
sortBy?: string | undefined;
|
|
7
12
|
}
|
|
8
13
|
export interface SearchProductsResponse {
|
|
9
14
|
hits: Product[];
|
|
@@ -12,7 +17,7 @@ export interface SearchProductsResponse {
|
|
|
12
17
|
currentPage: string;
|
|
13
18
|
}
|
|
14
19
|
export interface IndexProductRequest {
|
|
15
|
-
|
|
20
|
+
product: Product | undefined;
|
|
16
21
|
}
|
|
17
22
|
export interface IndexProductResponse {
|
|
18
23
|
ok: boolean;
|
package/package.json
CHANGED
|
@@ -72,12 +72,17 @@ message ProductResponse{
|
|
|
72
72
|
string title = 3;
|
|
73
73
|
optional string description = 4;
|
|
74
74
|
string category_id = 5;
|
|
75
|
-
string
|
|
76
|
-
|
|
77
|
-
string
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
string
|
|
75
|
+
string categoryName = 6;
|
|
76
|
+
string price = 7;
|
|
77
|
+
repeated string images = 8;
|
|
78
|
+
string status = 9;
|
|
79
|
+
float rating = 10;
|
|
80
|
+
int32 review_count = 11;
|
|
81
|
+
string created_at = 12;
|
|
82
|
+
string updated_at = 13;
|
|
83
|
+
|
|
84
|
+
optional string tags = 14;
|
|
85
|
+
int32 popularity_score = 15;
|
|
86
|
+
int64 created_at_timestamp = 16;
|
|
82
87
|
}
|
|
83
88
|
|
|
@@ -14,6 +14,13 @@ message SearchProductsRequest {
|
|
|
14
14
|
string query = 1;
|
|
15
15
|
int32 limit = 2;
|
|
16
16
|
int32 page = 3;
|
|
17
|
+
|
|
18
|
+
optional string category_id = 4;
|
|
19
|
+
optional double min_price = 5;
|
|
20
|
+
optional double max_price = 6;
|
|
21
|
+
|
|
22
|
+
optional string sort_order = 7;
|
|
23
|
+
optional string sort_by = 8;
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
message SearchProductsResponse {
|
|
@@ -24,7 +31,7 @@ message SearchProductsResponse {
|
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
message IndexProductRequest {
|
|
27
|
-
Product
|
|
34
|
+
Product product = 1;
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
message IndexProductResponse {
|