@platfformx/proto-contracts 1.2.27 → 1.2.29
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,8 @@ export interface ProductResponse {
|
|
|
55
56
|
reviewCount: number;
|
|
56
57
|
createdAt: string;
|
|
57
58
|
updatedAt: string;
|
|
59
|
+
tags?: string | undefined;
|
|
60
|
+
popularityScore: number;
|
|
58
61
|
}
|
|
59
62
|
export declare const PRODUCT_V1_PACKAGE_NAME = "product.v1";
|
|
60
63
|
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[];
|
package/package.json
CHANGED
|
@@ -72,12 +72,16 @@ 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;
|
|
82
86
|
}
|
|
83
87
|
|
|
@@ -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 {
|