@renzosanchez1357/libreria-compartida-microservicios01 1.0.2 → 1.0.5
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/dist/dto/products/Product.dto.js +5 -5
- package/dist/dto/products/Product.dto.js.map +1 -1
- package/dist/dto/products/update-product.dto.d.ts +1 -1
- package/dist/dto/products/update-product.dto.d.ts.map +1 -1
- package/dist/dto/products/update-product.dto.js +1 -1
- package/dist/dto/products/update-product.dto.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,33 +15,33 @@ export class ProductDto {
|
|
|
15
15
|
// @IsOptional()
|
|
16
16
|
// @Type(() => Number)
|
|
17
17
|
// limit: number = 10;
|
|
18
|
-
// @IsOptional()
|
|
19
18
|
nombre;
|
|
20
|
-
// @IsOptional()
|
|
21
19
|
tipo;
|
|
22
|
-
// @IsOptional()
|
|
23
20
|
descripcion;
|
|
24
|
-
// @IsOptional()
|
|
25
21
|
precio;
|
|
26
|
-
// @IsOptional()
|
|
27
22
|
precio_venta;
|
|
28
23
|
es_novedad;
|
|
29
24
|
es_favorito;
|
|
30
25
|
}
|
|
31
26
|
__decorate([
|
|
27
|
+
IsOptional(),
|
|
32
28
|
Type(() => String)
|
|
33
29
|
], ProductDto.prototype, "nombre", void 0);
|
|
34
30
|
__decorate([
|
|
31
|
+
IsOptional(),
|
|
35
32
|
Type(() => String)
|
|
36
33
|
], ProductDto.prototype, "tipo", void 0);
|
|
37
34
|
__decorate([
|
|
35
|
+
IsOptional(),
|
|
38
36
|
Type(() => String)
|
|
39
37
|
], ProductDto.prototype, "descripcion", void 0);
|
|
40
38
|
__decorate([
|
|
39
|
+
IsOptional(),
|
|
41
40
|
IsPositive(),
|
|
42
41
|
Type(() => Number)
|
|
43
42
|
], ProductDto.prototype, "precio", void 0);
|
|
44
43
|
__decorate([
|
|
44
|
+
IsOptional(),
|
|
45
45
|
IsPositive(),
|
|
46
46
|
Type(() => Number)
|
|
47
47
|
], ProductDto.prototype, "precio_venta", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.dto.js","sourceRoot":"","sources":["../../../src/dto/products/Product.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,OAAO,UAAU;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,4DAA4D;IAC5D,qFAAqF;IAErF,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"Product.dto.js","sourceRoot":"","sources":["../../../src/dto/products/Product.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,OAAO,UAAU;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,4DAA4D;IAC5D,qFAAqF;IAErF,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IAItB,MAAM,CAAS;IAIf,IAAI,CAAS;IAIb,WAAW,CAAS;IAKpB,MAAM,CAAS;IAKf,YAAY,CAAS;IASrB,UAAU,CAAU;IASpB,WAAW,CAAU;CACtB;AArCC;IAFC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;0CACJ;AAIf;IAFC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;wCACN;AAIb;IAFC,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;+CACC;AAKpB;IAHC,UAAU,EAAE;IACZ,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;0CACJ;AAKf;IAHC,UAAU,EAAE;IACZ,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;gDACE;AASrB;IAPC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,MAAM;YAAE,OAAO,IAAI,CAAC;QAClC,IAAI,KAAK,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;8CACkB;AASpB;IAPC,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,MAAM;YAAE,OAAO,IAAI,CAAC;QAClC,IAAI,KAAK,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;+CACmB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductDto } from "./Product.dto";
|
|
1
|
+
import { ProductDto } from "./Product.dto.js";
|
|
2
2
|
declare const UpdateProductDto_base: import("@nestjs/mapped-types").MappedType<Partial<ProductDto>>;
|
|
3
3
|
export declare class UpdateProductDto extends UpdateProductDto_base {
|
|
4
4
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"update-product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;;AAG9C,qBAAa,gBAAiB,SAAQ,qBAAuB;IAK3D,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { PartialType } from "@nestjs/mapped-types";
|
|
8
|
-
import { ProductDto } from "./Product.dto";
|
|
8
|
+
import { ProductDto } from "./Product.dto.js";
|
|
9
9
|
import { IsNumber, IsPositive } from "class-validator";
|
|
10
10
|
// (PartialType): UpdateProductDto de la clase ProductDto, pero sus campos (de la clase padre) son opcionales
|
|
11
11
|
export class UpdateProductDto extends PartialType(ProductDto) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.dto.js","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"update-product.dto.js","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvD,6GAA6G;AAC7G,MAAM,OAAO,gBAAiB,SAAQ,WAAW,CAAC,UAAU,CAAC;IAC3D;yCACqC;IAGrC,EAAE,CAAS;CACZ;AADC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;4CACF"}
|