@infrab4a/connect 4.11.0 → 4.11.2-beta.0
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,7 @@ class ProductsIndex {
|
|
|
2541
2541
|
'rate',
|
|
2542
2542
|
];
|
|
2543
2543
|
const filter = [{ term: { published: true } }];
|
|
2544
|
-
if (shop && shop !==
|
|
2545
|
-
filter.push({ term: { tags: shop == exports.Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
|
|
2544
|
+
// if (shop && shop !== Shops.ALL) filter.push({ term: { tags: shop == Shops.GLAMSHOP ? 'feminino' : 'masculino' } })
|
|
2546
2545
|
if (size > 9)
|
|
2547
2546
|
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2548
2547
|
const query = {
|
|
@@ -6143,6 +6142,15 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6143
6142
|
}),
|
|
6144
6143
|
},
|
|
6145
6144
|
},
|
|
6145
|
+
{
|
|
6146
|
+
metadatas: {
|
|
6147
|
+
columnName: 'metadatas',
|
|
6148
|
+
fields: ['shop', 'title', 'description'],
|
|
6149
|
+
bindPersistData: (value) => ({
|
|
6150
|
+
metadatas: { data: value },
|
|
6151
|
+
}),
|
|
6152
|
+
},
|
|
6153
|
+
},
|
|
6146
6154
|
{ isCollection: { columnName: 'is_collection' } },
|
|
6147
6155
|
{ isWishlist: { columnName: 'is_wishlist' } },
|
|
6148
6156
|
'reference',
|
|
@@ -6162,6 +6170,7 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6162
6170
|
'theme',
|
|
6163
6171
|
{ bannerUrl: { columnName: 'banner_url' } },
|
|
6164
6172
|
{ personHasPhoto: { columnName: 'person_has_photo' } },
|
|
6173
|
+
{ mostRelevants: { columnName: 'most_relevants', type: HasuraGraphQLColumnType.Jsonb } },
|
|
6165
6174
|
],
|
|
6166
6175
|
});
|
|
6167
6176
|
this.categoryFilterRepository = categoryFilterRepository;
|
package/index.esm.js
CHANGED
|
@@ -2535,8 +2535,7 @@ 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' } });
|
|
2538
|
+
// if (shop && shop !== Shops.ALL) filter.push({ term: { tags: shop == Shops.GLAMSHOP ? 'feminino' : 'masculino' } })
|
|
2540
2539
|
if (size > 9)
|
|
2541
2540
|
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2542
2541
|
const query = {
|
|
@@ -6137,6 +6136,15 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6137
6136
|
}),
|
|
6138
6137
|
},
|
|
6139
6138
|
},
|
|
6139
|
+
{
|
|
6140
|
+
metadatas: {
|
|
6141
|
+
columnName: 'metadatas',
|
|
6142
|
+
fields: ['shop', 'title', 'description'],
|
|
6143
|
+
bindPersistData: (value) => ({
|
|
6144
|
+
metadatas: { data: value },
|
|
6145
|
+
}),
|
|
6146
|
+
},
|
|
6147
|
+
},
|
|
6140
6148
|
{ isCollection: { columnName: 'is_collection' } },
|
|
6141
6149
|
{ isWishlist: { columnName: 'is_wishlist' } },
|
|
6142
6150
|
'reference',
|
|
@@ -6156,6 +6164,7 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
6156
6164
|
'theme',
|
|
6157
6165
|
{ bannerUrl: { columnName: 'banner_url' } },
|
|
6158
6166
|
{ personHasPhoto: { columnName: 'person_has_photo' } },
|
|
6167
|
+
{ mostRelevants: { columnName: 'most_relevants', type: HasuraGraphQLColumnType.Jsonb } },
|
|
6159
6168
|
],
|
|
6160
6169
|
});
|
|
6161
6170
|
this.categoryFilterRepository = categoryFilterRepository;
|
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>;
|