@infrab4a/connect-nestjs 1.4.0-beta.7 → 1.5.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.d.ts +1 -1
- package/index.cjs.js +6 -16
- package/index.esm.js +6 -16
- package/package.json +2 -2
package/index.cjs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./src
|
|
1
|
+
export * from "./src/index";
|
package/index.cjs.js
CHANGED
|
@@ -334,11 +334,10 @@ exports.DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
334
334
|
return response;
|
|
335
335
|
}
|
|
336
336
|
async query(term, total, gender) {
|
|
337
|
-
const defaultFilter = gender ? `gender: ANY(${gender}, "unisex")` : '';
|
|
338
337
|
const response = (await this.searchClient.search({
|
|
339
338
|
pageSize: total,
|
|
340
339
|
query: term,
|
|
341
|
-
filter:
|
|
340
|
+
filter: '',
|
|
342
341
|
languageCode: 'pt-BR',
|
|
343
342
|
servingConfig: this.servingConfig,
|
|
344
343
|
relevanceThreshold: 'MEDIUM',
|
|
@@ -396,20 +395,11 @@ exports.DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
396
395
|
brand: (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand.stringValue,
|
|
397
396
|
stock: (_e = (_d = result.document) === null || _d === void 0 ? void 0 : _d.structData.fields.stock) === null || _e === void 0 ? void 0 : _e.numberValue,
|
|
398
397
|
rating: (_g = (_f = result.document) === null || _f === void 0 ? void 0 : _f.structData.fields.rating) === null || _g === void 0 ? void 0 : _g.stringValue,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
// icon: result.document.structData.fields.gender.stringValue,
|
|
405
|
-
// outlet: result.document.structData.fields.gender.stringValue,
|
|
406
|
-
// slug: result.document.structData.fields.gender.stringValue,
|
|
407
|
-
// price: result.document.structData.fields.gender.stringValue,
|
|
408
|
-
// published: result.document.structData.fields.gender.stringValue,
|
|
409
|
-
// shoppingCount: result.document.structData.fields.gender.stringValue,
|
|
410
|
-
// sku: result.document.structData.fields.gender.stringValue,
|
|
411
|
-
// subscriberPrice: result.document.structData.fields.gender.stringValue,
|
|
412
|
-
// miniatures: result.document.structData.fields.gender.stringValue,
|
|
398
|
+
gender: result.document.structData.fields.gender.stringValue,
|
|
399
|
+
slug: result.document.structData.fields.slug.stringValue,
|
|
400
|
+
sku: result.document.structData.fields.sku.stringValue,
|
|
401
|
+
ean: result.document.structData.fields.ean.stringValue,
|
|
402
|
+
description: result.document.structData.fields.description.stringValue,
|
|
413
403
|
};
|
|
414
404
|
})
|
|
415
405
|
: [];
|
package/index.esm.js
CHANGED
|
@@ -330,11 +330,10 @@ let DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
330
330
|
return response;
|
|
331
331
|
}
|
|
332
332
|
async query(term, total, gender) {
|
|
333
|
-
const defaultFilter = gender ? `gender: ANY(${gender}, "unisex")` : '';
|
|
334
333
|
const response = (await this.searchClient.search({
|
|
335
334
|
pageSize: total,
|
|
336
335
|
query: term,
|
|
337
|
-
filter:
|
|
336
|
+
filter: '',
|
|
338
337
|
languageCode: 'pt-BR',
|
|
339
338
|
servingConfig: this.servingConfig,
|
|
340
339
|
relevanceThreshold: 'MEDIUM',
|
|
@@ -392,20 +391,11 @@ let DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
392
391
|
brand: (_c = result.document) === null || _c === void 0 ? void 0 : _c.structData.fields.brand.stringValue,
|
|
393
392
|
stock: (_e = (_d = result.document) === null || _d === void 0 ? void 0 : _d.structData.fields.stock) === null || _e === void 0 ? void 0 : _e.numberValue,
|
|
394
393
|
rating: (_g = (_f = result.document) === null || _f === void 0 ? void 0 : _f.structData.fields.rating) === null || _g === void 0 ? void 0 : _g.stringValue,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
// icon: result.document.structData.fields.gender.stringValue,
|
|
401
|
-
// outlet: result.document.structData.fields.gender.stringValue,
|
|
402
|
-
// slug: result.document.structData.fields.gender.stringValue,
|
|
403
|
-
// price: result.document.structData.fields.gender.stringValue,
|
|
404
|
-
// published: result.document.structData.fields.gender.stringValue,
|
|
405
|
-
// shoppingCount: result.document.structData.fields.gender.stringValue,
|
|
406
|
-
// sku: result.document.structData.fields.gender.stringValue,
|
|
407
|
-
// subscriberPrice: result.document.structData.fields.gender.stringValue,
|
|
408
|
-
// miniatures: result.document.structData.fields.gender.stringValue,
|
|
394
|
+
gender: result.document.structData.fields.gender.stringValue,
|
|
395
|
+
slug: result.document.structData.fields.slug.stringValue,
|
|
396
|
+
sku: result.document.structData.fields.sku.stringValue,
|
|
397
|
+
ean: result.document.structData.fields.ean.stringValue,
|
|
398
|
+
description: result.document.structData.fields.description.stringValue,
|
|
409
399
|
};
|
|
410
400
|
})
|
|
411
401
|
: [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-nestjs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/B4AGroup/b4a-firebase-libs"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@infrab4a/connect": "4.
|
|
12
|
+
"@infrab4a/connect": "4.15.0",
|
|
13
13
|
"@nestjs/common": "^10.3.3",
|
|
14
14
|
"@nestjs/core": "^10.3.3",
|
|
15
15
|
"firebase-admin": "^12.0.0"
|