@things-factory/product-base 8.0.37 → 8.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "8.0.37",
3
+ "version": "8.0.41",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,9 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/biz-base": "^8.0.37",
27
+ "@things-factory/biz-base": "^8.0.41",
28
28
  "@things-factory/env": "^8.0.37",
29
- "@things-factory/routing-base": "^8.0.37"
29
+ "@things-factory/routing-base": "^8.0.41"
30
30
  },
31
- "gitHead": "a3a78656259d6c5d3719ba0864d6bdde87bcba7d"
31
+ "gitHead": "68ed47dc717d534edbee63adf16d2a84df73f501"
32
32
  }
@@ -25,6 +25,7 @@ export * from './product-bundle/product-bundle'
25
25
  export * from './product-bundle-setting/product-bundle-setting'
26
26
  export * from './product-detail-bizplace-setting/product-detail-bizplace-setting'
27
27
  export * from './product-set/product-set'
28
+ export * from './product/product-mutation'
28
29
 
29
30
  /* EXPORT TYPES */
30
31
  export * from './product-combination/product-combination-type'
@@ -294,7 +294,7 @@ export class ProductQuery {
294
294
  function buildCustomConditions(params, context, bizplaces): SelectQueryBuilder<Product> {
295
295
  const deletedFilter = params.filters.find(x => x.name == 'deleted')
296
296
  const productFilters = params.filters.find(x => x.name == 'product_info')
297
- const productFilterColumns = ['sku', 'brandSku', 'name', 'description', 'brand', 'subBrand']
297
+ const productFilterColumns = ['sku', 'brandSku', 'name', 'description', 'brand', 'subBrand', 'id']
298
298
 
299
299
  try {
300
300
  params.filters = [
@@ -38,6 +38,7 @@ export enum pickStrategy {
38
38
  { unique: true }
39
39
  )
40
40
  @Index('ix_product_1', (product: Product) => [product.bizplace])
41
+ @Index('ix_product_product_ref_id', (product: Product) => [product.productRefId])
41
42
  @ObjectType()
42
43
  export class Product {
43
44
  @PrimaryGeneratedColumn('uuid')