@node-c/api-rest 1.0.0-alpha34 → 1.0.0-alpha36

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.
@@ -16,9 +16,9 @@ class BulkCreateDto extends base_dto_1.BaseDto {
16
16
  }
17
17
  exports.BulkCreateDto = BulkCreateDto;
18
18
  __decorate([
19
+ (0, class_validator_1.ArrayNotEmpty)(),
19
20
  (0, class_validator_1.IsArray)(),
20
21
  (0, class_validator_1.IsDefined)(),
21
- (0, class_validator_1.IsNotEmptyObject)(),
22
22
  __metadata("design:type", Array)
23
23
  ], BulkCreateDto.prototype, "data", void 0);
24
24
  //# sourceMappingURL=bulkCreate.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bulkCreate.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/bulkCreate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,yCAAqC;AAIrC,MAAa,aACX,SAAQ,kBAAgB;CAOzB;AARD,sCAQC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,2BAAS,GAAE;IACX,IAAA,kCAAgB,GAAE;;2CACK"}
1
+ {"version":3,"file":"bulkCreate.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/bulkCreate.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AAEpE,yCAAqC;AAIrC,MAAa,aACX,SAAQ,kBAAgB;CAOzB;AARD,sCAQC;AADC;IAHC,IAAA,+BAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,2BAAS,GAAE;;2CACY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-c/api-rest",
3
- "version": "1.0.0-alpha34",
3
+ "version": "1.0.0-alpha36",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "class-validator": "^0.14.1"
19
19
  },
20
20
  "peerDependencies": {
21
- "@node-c/api-http": "^1.0.0-alpha34",
22
- "@node-c/core": "^1.0.0-alpha34"
21
+ "@node-c/api-http": "^1.0.0-alpha36",
22
+ "@node-c/core": "^1.0.0-alpha36"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- import { IsArray, IsDefined, IsNotEmptyObject } from 'class-validator';
1
+ import { ArrayNotEmpty, IsArray, IsDefined } from 'class-validator';
2
2
 
3
3
  import { BaseDto } from './base.dto';
4
4
 
@@ -8,8 +8,8 @@ export class BulkCreateDto<Entity, Options extends BulkCreateOptions<Entity>>
8
8
  extends BaseDto<Options>
9
9
  implements BulkCreateBody<Entity>
10
10
  {
11
+ @ArrayNotEmpty()
11
12
  @IsArray()
12
13
  @IsDefined()
13
- @IsNotEmptyObject()
14
14
  data: Partial<Entity>[];
15
15
  }