@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 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('adapter query', term, total, gender);
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: 'ProductsVertexIndex',
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('adapter query', term, total, gender);
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: 'ProductsVertexIndex',
892
+ provide: ProductsVertexSearch,
892
893
  useFactory: (adapter) => new ProductsVertexSearch(adapter),
893
894
  inject: [DiscoveryEngineVertexAdapter],
894
895
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.4.0-beta.4",
3
+ "version": "1.4.0-beta.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -8,6 +8,6 @@ export declare class NestConnectModule {
8
8
  };
9
9
  elasticSearch?: ESClientOptions;
10
10
  hasura: HasuraGraphQLOptions;
11
- vertex: VertexConfig;
11
+ vertex?: VertexConfig;
12
12
  }): DynamicModule;
13
13
  }