adamo-types 1.2.102-sit → 1.2.103-sit

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.
@@ -34,7 +34,7 @@ __decorate([
34
34
  __metadata("design:type", String)
35
35
  ], ProductCharacteristicEquivalenceEntity.prototype, "toProduct", void 0);
36
36
  __decorate([
37
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductCharacteristicEquivalenceEntity.prototype, "toCharacteristic", void 0);
40
40
  __decorate([
@@ -62,6 +62,9 @@ __decorate([
62
62
  __metadata("design:type", Date)
63
63
  ], ProductCharacteristicEquivalenceEntity.prototype, "updatedAt", void 0);
64
64
  ProductCharacteristicEquivalenceEntity = __decorate([
65
- (0, typeorm_1.Entity)({ name: 'product-characteristic-equivalence' })
65
+ (0, typeorm_1.Entity)({ name: 'product-characteristic-equivalence' }),
66
+ (0, typeorm_1.Index)('fromProduct_fromCharacteristic_toProduct_UNIQUE', ['fromProduct', 'fromCharacteristic', 'toProduct'], {
67
+ unique: true
68
+ })
66
69
  ], ProductCharacteristicEquivalenceEntity);
67
70
  exports.ProductCharacteristicEquivalenceEntity = ProductCharacteristicEquivalenceEntity;
@@ -4,7 +4,7 @@ export declare class ProductCharacteristicEquivalenceDto {
4
4
  fromProduct?: string;
5
5
  fromCharacteristic: string;
6
6
  toProduct?: string;
7
- toCharacteristic: string;
7
+ toCharacteristic?: string;
8
8
  featureGroup: string;
9
9
  active?: boolean;
10
10
  created: AuditFieldsDto;
@@ -15,7 +15,7 @@ const _validators_1 = require("../../validators/index");
15
15
  const class_validator_1 = require("class-validator");
16
16
  class ProductCharacteristicEquivalenceDto {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- return { id: { required: false, type: () => Number }, fromProduct: { required: false, type: () => String }, fromCharacteristic: { required: true, type: () => String }, toProduct: { required: false, type: () => String }, toCharacteristic: { required: true, type: () => String }, featureGroup: { required: true, type: () => String }, active: { required: false, type: () => Boolean }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
18
+ return { id: { required: false, type: () => Number }, fromProduct: { required: false, type: () => String }, fromCharacteristic: { required: true, type: () => String }, toProduct: { required: false, type: () => String }, toCharacteristic: { required: false, type: () => String }, featureGroup: { required: true, type: () => String }, active: { required: false, type: () => Boolean }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
19
19
  }
20
20
  }
21
21
  __decorate([
@@ -42,8 +42,15 @@ __decorate([
42
42
  (0, class_validator_1.IsString)(),
43
43
  (0, class_validator_1.IsNotEmpty)(),
44
44
  (0, _validators_1.IsNotBlank)(),
45
+ (0, class_validator_1.IsOptional)(),
45
46
  __metadata("design:type", String)
46
47
  ], ProductCharacteristicEquivalenceDto.prototype, "toCharacteristic", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ (0, class_validator_1.IsNotEmpty)(),
51
+ (0, _validators_1.IsNotBlank)(),
52
+ __metadata("design:type", String)
53
+ ], ProductCharacteristicEquivalenceDto.prototype, "featureGroup", void 0);
47
54
  __decorate([
48
55
  (0, class_validator_1.IsBoolean)(),
49
56
  (0, class_validator_1.IsOptional)(),