cecon-interfaces 1.1.82 → 1.1.84

Sign up to get free protection for your applications and to get access to all the features.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { IProductBrand } from '../interfaces';
2
2
  export declare class ProductBrandEntity implements IProductBrand {
3
- imageUrl: string;
3
+ picture: string;
4
4
  name: string;
5
5
  constructor(data?: Partial<ProductBrandEntity>);
6
6
  }
@@ -6,7 +6,7 @@ var ProductBrandEntity = /** @class */ (function () {
6
6
  // #region Constructors (1)
7
7
  function ProductBrandEntity(data) {
8
8
  // #region Properties (2)
9
- this.imageUrl = '';
9
+ this.picture = '';
10
10
  this.name = '';
11
11
  if (data) {
12
12
  for (var key in data) {
@@ -29,7 +29,7 @@ export declare class ProductGlobalEntity implements IProductGlobal {
29
29
  thumbnail: string | null;
30
30
  updatedAt: Date;
31
31
  width: number;
32
- constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft, ref?: number);
32
+ constructor(data?: Partial<ProductGlobalEntity>, bluesoft?: IBlueSoft);
33
33
  private getGtinFromGtins;
34
34
  private currencyStringToNumber;
35
35
  }
@@ -8,7 +8,7 @@ var product_ncm_entity_1 = require("./product-ncm.entity");
8
8
  var ProductGlobalEntity = /** @class */ (function () {
9
9
  // #endregion Properties (26)
10
10
  // #region Constructors (1)
11
- function ProductGlobalEntity(data, bluesoft, ref) {
11
+ function ProductGlobalEntity(data, bluesoft) {
12
12
  var _a, _b, _c, _d;
13
13
  // #region Properties (26)
14
14
  this.active = true;
@@ -51,8 +51,8 @@ var ProductGlobalEntity = /** @class */ (function () {
51
51
  this.id = '';
52
52
  this.length = bluesoft.length || 0;
53
53
  this.maxPrice = bluesoft.maxPrice || 0;
54
- this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(ref || 0, bluesoft.gtins)) === null || _a === void 0 ? void 0 : _a.commercialUnit) === null || _b === void 0 ? void 0 : _b.quantityPackaging) || 1;
55
- this.measureUnit = ((_d = (_c = this.getGtinFromGtins(ref || 0, bluesoft.gtins)) === null || _c === void 0 ? void 0 : _c.commercialUnit) === null || _d === void 0 ? void 0 : _d.typePackaging) || 'Unidade';
54
+ this.measureQuantity = ((_b = (_a = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _a === void 0 ? void 0 : _a.commercialUnit) === null || _b === void 0 ? void 0 : _b.quantityPackaging) || 1;
55
+ this.measureUnit = ((_d = (_c = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)) === null || _c === void 0 ? void 0 : _c.commercialUnit) === null || _d === void 0 ? void 0 : _d.typePackaging) || 'Unidade';
56
56
  this.minPrice = bluesoft.minPrice || 0;
57
57
  this.name = bluesoft.description || '';
58
58
  this.ncm = new product_ncm_entity_1.ProductNcmEntity(bluesoft.ncm);
@@ -10,5 +10,5 @@ export interface IProductBrand {
10
10
  * It should be a valid URL.
11
11
  * @example "http://www.example.com"
12
12
  */
13
- imageUrl: string;
13
+ picture: string;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",