@infrab4a/connect 4.15.1 → 4.15.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
@@ -6512,6 +6512,9 @@ class VertexAxiosAdapter {
6512
6512
  throw error;
6513
6513
  }
6514
6514
  }
6515
+ bulkProducts(products) {
6516
+ return;
6517
+ }
6515
6518
  }
6516
6519
 
6517
6520
  class ProductsVertexSearch {
package/index.esm.js CHANGED
@@ -6506,6 +6506,9 @@ class VertexAxiosAdapter {
6506
6506
  throw error;
6507
6507
  }
6508
6508
  }
6509
+ bulkProducts(products) {
6510
+ return;
6511
+ }
6509
6512
  }
6510
6513
 
6511
6514
  class ProductsVertexSearch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.15.1",
3
+ "version": "4.15.2-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,9 +1,10 @@
1
1
  import { Product } from '../../../domain';
2
- import { ProductSearch } from '../types';
2
+ import { ProductBulk } from '../types';
3
3
  export interface VertexSearchAdapter<T> {
4
- query(searchTerm: string, total: number, gender?: String): Promise<ProductSearch[]>;
4
+ query(searchTerm: string, total: number, gender?: String): Promise<T[]>;
5
5
  get(id: string): Promise<T>;
6
6
  save(data: Product): Promise<any>;
7
7
  update(id: string, data: Product): Promise<any>;
8
8
  delete(id: string): Promise<void>;
9
+ bulkProducts(products: ProductBulk[]): Promise<void>;
9
10
  }
@@ -1,5 +1,5 @@
1
1
  import { Product } from '../../../domain';
2
- import { ProductSearch } from '../types';
2
+ import { ProductBulk, ProductSearch } from '../types';
3
3
  import { VertexSearchConfig } from '../types/axios-vertex-search-config';
4
4
  import { VertexSearchAdapter } from './vertex-ai-search.adapter';
5
5
  export declare class VertexAxiosAdapter implements VertexSearchAdapter<ProductSearch> {
@@ -11,4 +11,5 @@ export declare class VertexAxiosAdapter implements VertexSearchAdapter<ProductSe
11
11
  save(data: Product): Promise<any>;
12
12
  update(id: string, data: Product): Promise<any>;
13
13
  delete(id: string): Promise<void>;
14
+ bulkProducts(products: ProductBulk[]): Promise<void>;
14
15
  }
@@ -1,2 +1,3 @@
1
1
  export * from './axios-vertex-search-config';
2
+ export * from './product-bulk';
2
3
  export * from './product-search';
@@ -0,0 +1,4 @@
1
+ export type ProductBulk = {
2
+ id: string;
3
+ jsonData: string;
4
+ };