@infrab4a/connect 4.11.1 → 4.11.2
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/index.cjs.js
CHANGED
|
@@ -2541,8 +2541,6 @@ class ProductsIndex {
|
|
|
2541
2541
|
'rate',
|
|
2542
2542
|
];
|
|
2543
2543
|
const filter = [{ term: { published: true } }];
|
|
2544
|
-
if (shop && shop !== exports.Shops.ALL)
|
|
2545
|
-
filter.push({ term: { tags: shop == exports.Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
|
|
2546
2544
|
if (size > 9)
|
|
2547
2545
|
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2548
2546
|
const query = {
|
package/index.esm.js
CHANGED
|
@@ -2535,8 +2535,6 @@ class ProductsIndex {
|
|
|
2535
2535
|
'rate',
|
|
2536
2536
|
];
|
|
2537
2537
|
const filter = [{ term: { published: true } }];
|
|
2538
|
-
if (shop && shop !== Shops.ALL)
|
|
2539
|
-
filter.push({ term: { tags: shop == Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
|
|
2540
2538
|
if (size > 9)
|
|
2541
2539
|
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2542
2540
|
const query = {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export declare class ProductsIndex {
|
|
|
6
6
|
private index;
|
|
7
7
|
constructor(adapter: ElasticSearchAdapter<Product>);
|
|
8
8
|
getById(id: string): Promise<Product>;
|
|
9
|
-
search(searchTerm: string, total: number, shop
|
|
9
|
+
search(searchTerm: string, total: number, shop?: string): Promise<import("..").ElasticSearchResult<Product>>;
|
|
10
10
|
save(product: ProductHasuraGraphQL): Promise<void>;
|
|
11
11
|
update(product: ProductHasuraGraphQL): Promise<void>;
|
|
12
12
|
delete(id: string): Promise<void>;
|