@mamindom/contracts 1.0.166 → 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.
@@ -94,7 +94,7 @@ export interface GetCustomerProfileResponse {
94
94
  cashbackTotal: number;
95
95
  cashbackBurned: number;
96
96
  cashbackNegative: number;
97
- personalOffersRaw: string;
97
+ loyaltyStatusRaw: string;
98
98
  giftBonusesRaw: string;
99
99
  }
100
100
  export declare const CRM_V1_PACKAGE_NAME = "crm.v1";
@@ -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;
@@ -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";
@@ -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);
@@ -143,6 +143,7 @@ message GetCustomerProfileResponse {
143
143
  double cashback_negative = 9;
144
144
 
145
145
 
146
- string personal_offers_raw = 10;
147
- string gift_bonuses_raw = 11;
146
+
147
+ string loyalty_status_raw = 10;
148
+ string gift_bonuses_raw = 11;
148
149
  }
@@ -665,8 +665,10 @@ message ProductVariantDetailResponse {
665
665
 
666
666
  optional string color_id = 21;
667
667
 
668
-
668
+
669
669
  double weight_kg = 22;
670
+
671
+ optional string guid1c = 23;
670
672
  }
671
673
 
672
674
  message VariantOverrides {
@@ -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 {
@@ -117,7 +117,7 @@ export interface GetCustomerProfileResponse {
117
117
  cashbackTotal: number;
118
118
  cashbackBurned: number;
119
119
  cashbackNegative: number;
120
- personalOffersRaw: string;
120
+ loyaltyStatusRaw: string;
121
121
  giftBonusesRaw: string;
122
122
  }
123
123
 
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.166",
4
+ "version": "1.0.168",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -143,6 +143,7 @@ message GetCustomerProfileResponse {
143
143
  double cashback_negative = 9;
144
144
 
145
145
 
146
- string personal_offers_raw = 10;
147
- string gift_bonuses_raw = 11;
146
+
147
+ string loyalty_status_raw = 10;
148
+ string gift_bonuses_raw = 11;
148
149
  }
@@ -665,8 +665,10 @@ message ProductVariantDetailResponse {
665
665
 
666
666
  optional string color_id = 21;
667
667
 
668
-
668
+
669
669
  double weight_kg = 22;
670
+
671
+ optional string guid1c = 23;
670
672
  }
671
673
 
672
674
  message VariantOverrides {
@@ -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 {