@infrab4a/connect-nestjs 1.4.0-beta.4 → 1.4.0-beta.6
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 +3 -2
- package/index.esm.js +3 -2
- package/package.json +1 -1
- package/src/nest-connect.module.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -292,6 +292,7 @@ class ConnectFirestoreService {
|
|
|
292
292
|
|
|
293
293
|
exports.DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
294
294
|
constructor(configuration) {
|
|
295
|
+
console.log('CONFIG DiscoveryEngineVertexAdapter', configuration);
|
|
295
296
|
this.config = configuration;
|
|
296
297
|
this.parentEngine = `projects/${this.config.projectId}/locations/${this.config.location}/collections/default_collection/engines/${this.config.dataStoreId}`;
|
|
297
298
|
this.parentDataStore = `projects/${this.config.projectId}/locations/${this.config.location}/collections/default_collection/dataStores/${this.config.dataStoreId}/branches/default_branch/documents`;
|
|
@@ -334,7 +335,7 @@ exports.DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
334
335
|
return response;
|
|
335
336
|
}
|
|
336
337
|
async query(term, total, gender) {
|
|
337
|
-
console.log('
|
|
338
|
+
console.log('DiscoveryEngineVertexAdapter Query', term, total, gender);
|
|
338
339
|
const defaultFilter = gender ? `gender: ANY(${gender}, "unisex")` : '';
|
|
339
340
|
const response = (await this.searchClient.search({
|
|
340
341
|
pageSize: total,
|
|
@@ -892,7 +893,7 @@ NestVertexSeachModule = NestVertexSeachModule_1 = __decorate([
|
|
|
892
893
|
providers: [
|
|
893
894
|
exports.DiscoveryEngineVertexAdapter,
|
|
894
895
|
{
|
|
895
|
-
provide:
|
|
896
|
+
provide: connect.ProductsVertexSearch,
|
|
896
897
|
useFactory: (adapter) => new connect.ProductsVertexSearch(adapter),
|
|
897
898
|
inject: [exports.DiscoveryEngineVertexAdapter],
|
|
898
899
|
},
|
package/index.esm.js
CHANGED
|
@@ -288,6 +288,7 @@ class ConnectFirestoreService {
|
|
|
288
288
|
|
|
289
289
|
let DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
290
290
|
constructor(configuration) {
|
|
291
|
+
console.log('CONFIG DiscoveryEngineVertexAdapter', configuration);
|
|
291
292
|
this.config = configuration;
|
|
292
293
|
this.parentEngine = `projects/${this.config.projectId}/locations/${this.config.location}/collections/default_collection/engines/${this.config.dataStoreId}`;
|
|
293
294
|
this.parentDataStore = `projects/${this.config.projectId}/locations/${this.config.location}/collections/default_collection/dataStores/${this.config.dataStoreId}/branches/default_branch/documents`;
|
|
@@ -330,7 +331,7 @@ let DiscoveryEngineVertexAdapter = class DiscoveryEngineVertexAdapter {
|
|
|
330
331
|
return response;
|
|
331
332
|
}
|
|
332
333
|
async query(term, total, gender) {
|
|
333
|
-
console.log('
|
|
334
|
+
console.log('DiscoveryEngineVertexAdapter Query', term, total, gender);
|
|
334
335
|
const defaultFilter = gender ? `gender: ANY(${gender}, "unisex")` : '';
|
|
335
336
|
const response = (await this.searchClient.search({
|
|
336
337
|
pageSize: total,
|
|
@@ -888,7 +889,7 @@ NestVertexSeachModule = NestVertexSeachModule_1 = __decorate([
|
|
|
888
889
|
providers: [
|
|
889
890
|
DiscoveryEngineVertexAdapter,
|
|
890
891
|
{
|
|
891
|
-
provide:
|
|
892
|
+
provide: ProductsVertexSearch,
|
|
892
893
|
useFactory: (adapter) => new ProductsVertexSearch(adapter),
|
|
893
894
|
inject: [DiscoveryEngineVertexAdapter],
|
|
894
895
|
},
|
package/package.json
CHANGED