@mamindom/contracts 1.0.167 → 1.0.168
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/dist/gen/product.d.ts +1 -0
- package/dist/gen/search.d.ts +18 -0
- package/dist/gen/search.js +2 -0
- package/dist/proto/product.proto +3 -1
- package/dist/proto/search.proto +24 -0
- package/gen/product.ts +1 -0
- package/gen/search.ts +31 -0
- package/package.json +1 -1
- package/proto/product.proto +3 -1
- package/proto/search.proto +24 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -692,6 +692,7 @@ export interface ProductVariantDetailResponse {
|
|
|
692
692
|
overrides: VariantOverrides | undefined;
|
|
693
693
|
colorId?: string | undefined;
|
|
694
694
|
weightKg: number;
|
|
695
|
+
guid1c?: string | undefined;
|
|
695
696
|
}
|
|
696
697
|
export interface ProductVariantDetailResponse_OptionsEntry {
|
|
697
698
|
key: string;
|
package/dist/gen/search.d.ts
CHANGED
|
@@ -6,6 +6,18 @@ export declare enum SynonymType {
|
|
|
6
6
|
SYNONYM_ONE_WAY = 1,
|
|
7
7
|
UNRECOGNIZED = -1
|
|
8
8
|
}
|
|
9
|
+
export interface SearchSettingsResponse {
|
|
10
|
+
inStockFirst: boolean;
|
|
11
|
+
showOutOfStock: boolean;
|
|
12
|
+
suggestOnlyInStock: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface GetSearchSettingsRequest {
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateSearchSettingsRequest {
|
|
17
|
+
inStockFirst: boolean;
|
|
18
|
+
showOutOfStock: boolean;
|
|
19
|
+
suggestOnlyInStock: boolean;
|
|
20
|
+
}
|
|
9
21
|
export interface SuggestRequest {
|
|
10
22
|
q: string;
|
|
11
23
|
limit: number;
|
|
@@ -91,6 +103,8 @@ export interface PopularQueryResponse {
|
|
|
91
103
|
isActive: boolean;
|
|
92
104
|
createdAt: string;
|
|
93
105
|
updatedAt: string;
|
|
106
|
+
source: string;
|
|
107
|
+
autoScore: number;
|
|
94
108
|
}
|
|
95
109
|
export interface ListPopularQueriesRequest {
|
|
96
110
|
isActive?: boolean | undefined;
|
|
@@ -174,6 +188,8 @@ export interface SearchServiceClient {
|
|
|
174
188
|
listCurations(request: ListCurationsRequest): Observable<ListCurationsResponse>;
|
|
175
189
|
upsertCuration(request: UpsertCurationRequest): Observable<CurationResponse>;
|
|
176
190
|
deleteCuration(request: DeleteCurationRequest): Observable<DeleteResponse>;
|
|
191
|
+
getSearchSettings(request: GetSearchSettingsRequest): Observable<SearchSettingsResponse>;
|
|
192
|
+
updateSearchSettings(request: UpdateSearchSettingsRequest): Observable<SearchSettingsResponse>;
|
|
177
193
|
}
|
|
178
194
|
export interface SearchServiceController {
|
|
179
195
|
suggest(request: SuggestRequest): Promise<SuggestResponse> | Observable<SuggestResponse> | SuggestResponse;
|
|
@@ -192,6 +208,8 @@ export interface SearchServiceController {
|
|
|
192
208
|
listCurations(request: ListCurationsRequest): Promise<ListCurationsResponse> | Observable<ListCurationsResponse> | ListCurationsResponse;
|
|
193
209
|
upsertCuration(request: UpsertCurationRequest): Promise<CurationResponse> | Observable<CurationResponse> | CurationResponse;
|
|
194
210
|
deleteCuration(request: DeleteCurationRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
211
|
+
getSearchSettings(request: GetSearchSettingsRequest): Promise<SearchSettingsResponse> | Observable<SearchSettingsResponse> | SearchSettingsResponse;
|
|
212
|
+
updateSearchSettings(request: UpdateSearchSettingsRequest): Promise<SearchSettingsResponse> | Observable<SearchSettingsResponse> | SearchSettingsResponse;
|
|
195
213
|
}
|
|
196
214
|
export declare function SearchServiceControllerMethods(): (constructor: Function) => void;
|
|
197
215
|
export declare const SEARCH_SERVICE_NAME = "SearchService";
|
package/dist/gen/search.js
CHANGED
|
@@ -36,6 +36,8 @@ function SearchServiceControllerMethods() {
|
|
|
36
36
|
"listCurations",
|
|
37
37
|
"upsertCuration",
|
|
38
38
|
"deleteCuration",
|
|
39
|
+
"getSearchSettings",
|
|
40
|
+
"updateSearchSettings",
|
|
39
41
|
];
|
|
40
42
|
for (const method of grpcMethods) {
|
|
41
43
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/dist/proto/product.proto
CHANGED
package/dist/proto/search.proto
CHANGED
|
@@ -31,6 +31,26 @@ service SearchService {
|
|
|
31
31
|
rpc ListCurations (ListCurationsRequest) returns (ListCurationsResponse);
|
|
32
32
|
rpc UpsertCuration (UpsertCurationRequest) returns (CurationResponse);
|
|
33
33
|
rpc DeleteCuration (DeleteCurationRequest) returns (DeleteResponse);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
rpc GetSearchSettings (GetSearchSettingsRequest) returns (SearchSettingsResponse);
|
|
37
|
+
rpc UpdateSearchSettings (UpdateSearchSettingsRequest) returns (SearchSettingsResponse);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
message SearchSettingsResponse {
|
|
42
|
+
bool in_stock_first = 1;
|
|
43
|
+
bool show_out_of_stock = 2;
|
|
44
|
+
bool suggest_only_in_stock = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GetSearchSettingsRequest {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message UpdateSearchSettingsRequest {
|
|
51
|
+
bool in_stock_first = 1;
|
|
52
|
+
bool show_out_of_stock = 2;
|
|
53
|
+
bool suggest_only_in_stock = 3;
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
|
|
@@ -140,6 +160,10 @@ message PopularQueryResponse {
|
|
|
140
160
|
bool is_active = 4;
|
|
141
161
|
string created_at = 5;
|
|
142
162
|
string updated_at = 6;
|
|
163
|
+
|
|
164
|
+
string source = 7;
|
|
165
|
+
|
|
166
|
+
int32 auto_score = 8;
|
|
143
167
|
}
|
|
144
168
|
|
|
145
169
|
message ListPopularQueriesRequest {
|
package/gen/product.ts
CHANGED
|
@@ -710,6 +710,7 @@ export interface ProductVariantDetailResponse {
|
|
|
710
710
|
overrides: VariantOverrides | undefined;
|
|
711
711
|
colorId?: string | undefined;
|
|
712
712
|
weightKg: number;
|
|
713
|
+
guid1c?: string | undefined;
|
|
713
714
|
}
|
|
714
715
|
|
|
715
716
|
export interface ProductVariantDetailResponse_OptionsEntry {
|
package/gen/search.ts
CHANGED
|
@@ -17,6 +17,21 @@ export enum SynonymType {
|
|
|
17
17
|
UNRECOGNIZED = -1,
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export interface SearchSettingsResponse {
|
|
21
|
+
inStockFirst: boolean;
|
|
22
|
+
showOutOfStock: boolean;
|
|
23
|
+
suggestOnlyInStock: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface GetSearchSettingsRequest {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface UpdateSearchSettingsRequest {
|
|
30
|
+
inStockFirst: boolean;
|
|
31
|
+
showOutOfStock: boolean;
|
|
32
|
+
suggestOnlyInStock: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
20
35
|
export interface SuggestRequest {
|
|
21
36
|
q: string;
|
|
22
37
|
limit: number;
|
|
@@ -114,6 +129,8 @@ export interface PopularQueryResponse {
|
|
|
114
129
|
isActive: boolean;
|
|
115
130
|
createdAt: string;
|
|
116
131
|
updatedAt: string;
|
|
132
|
+
source: string;
|
|
133
|
+
autoScore: number;
|
|
117
134
|
}
|
|
118
135
|
|
|
119
136
|
export interface ListPopularQueriesRequest {
|
|
@@ -230,6 +247,10 @@ export interface SearchServiceClient {
|
|
|
230
247
|
upsertCuration(request: UpsertCurationRequest): Observable<CurationResponse>;
|
|
231
248
|
|
|
232
249
|
deleteCuration(request: DeleteCurationRequest): Observable<DeleteResponse>;
|
|
250
|
+
|
|
251
|
+
getSearchSettings(request: GetSearchSettingsRequest): Observable<SearchSettingsResponse>;
|
|
252
|
+
|
|
253
|
+
updateSearchSettings(request: UpdateSearchSettingsRequest): Observable<SearchSettingsResponse>;
|
|
233
254
|
}
|
|
234
255
|
|
|
235
256
|
export interface SearchServiceController {
|
|
@@ -290,6 +311,14 @@ export interface SearchServiceController {
|
|
|
290
311
|
): Promise<CurationResponse> | Observable<CurationResponse> | CurationResponse;
|
|
291
312
|
|
|
292
313
|
deleteCuration(request: DeleteCurationRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
314
|
+
|
|
315
|
+
getSearchSettings(
|
|
316
|
+
request: GetSearchSettingsRequest,
|
|
317
|
+
): Promise<SearchSettingsResponse> | Observable<SearchSettingsResponse> | SearchSettingsResponse;
|
|
318
|
+
|
|
319
|
+
updateSearchSettings(
|
|
320
|
+
request: UpdateSearchSettingsRequest,
|
|
321
|
+
): Promise<SearchSettingsResponse> | Observable<SearchSettingsResponse> | SearchSettingsResponse;
|
|
293
322
|
}
|
|
294
323
|
|
|
295
324
|
export function SearchServiceControllerMethods() {
|
|
@@ -311,6 +340,8 @@ export function SearchServiceControllerMethods() {
|
|
|
311
340
|
"listCurations",
|
|
312
341
|
"upsertCuration",
|
|
313
342
|
"deleteCuration",
|
|
343
|
+
"getSearchSettings",
|
|
344
|
+
"updateSearchSettings",
|
|
314
345
|
];
|
|
315
346
|
for (const method of grpcMethods) {
|
|
316
347
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/product.proto
CHANGED
package/proto/search.proto
CHANGED
|
@@ -31,6 +31,26 @@ service SearchService {
|
|
|
31
31
|
rpc ListCurations (ListCurationsRequest) returns (ListCurationsResponse);
|
|
32
32
|
rpc UpsertCuration (UpsertCurationRequest) returns (CurationResponse);
|
|
33
33
|
rpc DeleteCuration (DeleteCurationRequest) returns (DeleteResponse);
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
rpc GetSearchSettings (GetSearchSettingsRequest) returns (SearchSettingsResponse);
|
|
37
|
+
rpc UpdateSearchSettings (UpdateSearchSettingsRequest) returns (SearchSettingsResponse);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
message SearchSettingsResponse {
|
|
42
|
+
bool in_stock_first = 1;
|
|
43
|
+
bool show_out_of_stock = 2;
|
|
44
|
+
bool suggest_only_in_stock = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GetSearchSettingsRequest {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message UpdateSearchSettingsRequest {
|
|
51
|
+
bool in_stock_first = 1;
|
|
52
|
+
bool show_out_of_stock = 2;
|
|
53
|
+
bool suggest_only_in_stock = 3;
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
|
|
@@ -140,6 +160,10 @@ message PopularQueryResponse {
|
|
|
140
160
|
bool is_active = 4;
|
|
141
161
|
string created_at = 5;
|
|
142
162
|
string updated_at = 6;
|
|
163
|
+
|
|
164
|
+
string source = 7;
|
|
165
|
+
|
|
166
|
+
int32 auto_score = 8;
|
|
143
167
|
}
|
|
144
168
|
|
|
145
169
|
message ListPopularQueriesRequest {
|