@renzosanchez1357/libreria-compartida-microservicios01 1.0.23 → 1.0.24
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/orders/change-order-status.dto.d.ts.map +1 -1
- package/dist/dto/orders/change-order-status.dto.js +3 -0
- package/dist/dto/orders/change-order-status.dto.js.map +1 -1
- package/dist/dto/orders/create-order.dto.d.ts.map +1 -1
- package/dist/dto/orders/create-order.dto.js +2 -0
- package/dist/dto/orders/create-order.dto.js.map +1 -1
- package/dist/dto/orders/order-item.dto.d.ts.map +1 -1
- package/dist/dto/orders/order-item.dto.js +3 -0
- package/dist/dto/orders/order-item.dto.js.map +1 -1
- package/dist/dto/orders/status-order.dto.d.ts.map +1 -1
- package/dist/dto/orders/status-order.dto.js +2 -0
- package/dist/dto/orders/status-order.dto.js.map +1 -1
- package/dist/dto/products/Product.dto.d.ts.map +1 -1
- package/dist/dto/products/Product.dto.js +8 -0
- package/dist/dto/products/Product.dto.js.map +1 -1
- package/dist/dto/products/update-product.dto.d.ts.map +1 -1
- package/dist/dto/products/update-product.dto.js +2 -0
- package/dist/dto/products/update-product.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-order-status.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/change-order-status.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"change-order-status.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/change-order-status.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoB,MAAM,0BAA0B,CAAC;AAEzE,qBAAa,qBAAqB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { IsEnum, IsUUID } from "class-validator";
|
|
8
9
|
import { EstadoOrden, EstadoOrdenlista } from "../../enum/order.enum.js";
|
|
9
10
|
export class ActualizarEstadoOrden {
|
|
@@ -11,9 +12,11 @@ export class ActualizarEstadoOrden {
|
|
|
11
12
|
estado;
|
|
12
13
|
}
|
|
13
14
|
__decorate([
|
|
15
|
+
ApiProperty(),
|
|
14
16
|
IsUUID(4) // "Version (4) de UUID"
|
|
15
17
|
], ActualizarEstadoOrden.prototype, "id", void 0);
|
|
16
18
|
__decorate([
|
|
19
|
+
ApiProperty({ enum: EstadoOrdenlista }),
|
|
17
20
|
IsEnum(EstadoOrdenlista, {
|
|
18
21
|
message: `Estados valido de una orden: ${EstadoOrdenlista}`,
|
|
19
22
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-order-status.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/change-order-status.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,OAAO,qBAAqB;
|
|
1
|
+
{"version":3,"file":"change-order-status.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/change-order-status.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,OAAO,qBAAqB;IAGhC,EAAE,CAAS;IAMX,MAAM,CAAc;CACrB;AAPC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,CAAC,CAAC,CAAC,wBAAwB;iDACxB;AAMX;IAJC,WAAW,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACvC,MAAM,CAAC,gBAAgB,EAAE;QACxB,OAAO,EAAE,gCAAgC,gBAAgB,EAAE;KAC5D,CAAC;qDACkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/create-order.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-order.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/create-order.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,qBAAa,cAAc;IAMzB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB"}
|
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { ArrayMinSize, IsArray, ValidateNested } from "class-validator";
|
|
8
9
|
import { Type } from "class-transformer";
|
|
9
10
|
import { OrdenItemDto } from "./order-item.dto.js";
|
|
@@ -11,6 +12,7 @@ export class CreateOrderDto {
|
|
|
11
12
|
items;
|
|
12
13
|
}
|
|
13
14
|
__decorate([
|
|
15
|
+
ApiProperty({ type: [OrdenItemDto] }),
|
|
14
16
|
IsArray(),
|
|
15
17
|
ArrayMinSize(1),
|
|
16
18
|
ValidateNested({ each: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/create-order.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"create-order.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/create-order.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,OAAO,cAAc;IAMzB,KAAK,CAAiB;CACvB;AADC;IALC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;IACrC,OAAO,EAAE;IACT,YAAY,CAAC,CAAC,CAAC;IACf,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC;6CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-item.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/order-item.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"order-item.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/order-item.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAY;IAIvB,UAAU,EAAE,MAAM,CAAC;IAKnB,QAAQ,EAAE,MAAM,CAAC;CAMlB"}
|
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { Type } from "class-transformer";
|
|
8
9
|
import { IsNumber, IsPositive } from "class-validator";
|
|
9
10
|
export class OrdenItemDto {
|
|
@@ -11,10 +12,12 @@ export class OrdenItemDto {
|
|
|
11
12
|
cantidad;
|
|
12
13
|
}
|
|
13
14
|
__decorate([
|
|
15
|
+
ApiProperty(),
|
|
14
16
|
IsNumber(),
|
|
15
17
|
IsPositive()
|
|
16
18
|
], OrdenItemDto.prototype, "productoId", void 0);
|
|
17
19
|
__decorate([
|
|
20
|
+
ApiProperty(),
|
|
18
21
|
IsNumber(),
|
|
19
22
|
IsPositive()
|
|
20
23
|
], OrdenItemDto.prototype, "cantidad", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-item.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/order-item.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"order-item.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/order-item.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,OAAO,YAAY;IAIvB,UAAU,CAAS;IAKnB,QAAQ,CAAS;CAMlB;AAXC;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;gDACM;AAKnB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;8CACI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-order.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/status-order.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status-order.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/orders/status-order.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoB,MAAM,0BAA0B,CAAC;AAEzE,qBAAa,SAAS;IAMpB,MAAM,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -4,12 +4,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { IsEnum, IsOptional } from "class-validator";
|
|
8
9
|
import { EstadoOrden, EstadoOrdenlista } from "../../enum/order.enum.js";
|
|
9
10
|
export class EstadoDto {
|
|
10
11
|
estado;
|
|
11
12
|
}
|
|
12
13
|
__decorate([
|
|
14
|
+
ApiProperty({ enum: EstadoOrdenlista }),
|
|
13
15
|
IsEnum(EstadoOrdenlista, {
|
|
14
16
|
//Se crea una lista, ya que @IsEnum, espera un array no un objeto
|
|
15
17
|
message: `Estados valido de una orden: ${EstadoOrdenlista}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-order.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/status-order.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,OAAO,SAAS;
|
|
1
|
+
{"version":3,"file":"status-order.dto.js","sourceRoot":"","sources":["../../../src/dto/orders/status-order.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,MAAM,OAAO,SAAS;IAMpB,MAAM,CAAc;CACrB;AADC;IALC,WAAW,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACvC,MAAM,CAAC,gBAAgB,EAAE;QACxB,iEAAiE;QACjE,OAAO,EAAE,gCAAgC,gBAAgB,EAAE;KAC5D,CAAC;yCACkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/Product.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/Product.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,UAAU;IAiBrB,MAAM,EAAE,MAAM,CAAC;IAKf,IAAI,EAAE,MAAM,CAAC;IAMb,WAAW,EAAE,MAAM,CAAC;IAMpB,MAAM,EAAE,MAAM,CAAC;IAef,UAAU,EAAE,OAAO,CAAC;IAUpB,WAAW,EAAE,OAAO,CAAC;IAUrB,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { Transform, Type } from "class-transformer";
|
|
8
9
|
import { IsBoolean, IsNumber, IsOptional, IsPositive, IsString, } from "class-validator";
|
|
9
10
|
export class ProductDto {
|
|
@@ -31,24 +32,29 @@ export class ProductDto {
|
|
|
31
32
|
disponible;
|
|
32
33
|
}
|
|
33
34
|
__decorate([
|
|
35
|
+
ApiProperty(),
|
|
34
36
|
IsString(),
|
|
35
37
|
Type(() => String)
|
|
36
38
|
], ProductDto.prototype, "nombre", void 0);
|
|
37
39
|
__decorate([
|
|
40
|
+
ApiProperty(),
|
|
38
41
|
IsString(),
|
|
39
42
|
Type(() => String)
|
|
40
43
|
], ProductDto.prototype, "tipo", void 0);
|
|
41
44
|
__decorate([
|
|
45
|
+
ApiProperty({ required: false }),
|
|
42
46
|
IsOptional(),
|
|
43
47
|
IsString(),
|
|
44
48
|
Type(() => String)
|
|
45
49
|
], ProductDto.prototype, "descripcion", void 0);
|
|
46
50
|
__decorate([
|
|
51
|
+
ApiProperty(),
|
|
47
52
|
IsNumber(),
|
|
48
53
|
IsPositive(),
|
|
49
54
|
Type(() => Number)
|
|
50
55
|
], ProductDto.prototype, "precio", void 0);
|
|
51
56
|
__decorate([
|
|
57
|
+
ApiProperty({ required: false }),
|
|
52
58
|
IsOptional(),
|
|
53
59
|
IsBoolean(),
|
|
54
60
|
Transform(({ value }) => {
|
|
@@ -60,6 +66,7 @@ __decorate([
|
|
|
60
66
|
})
|
|
61
67
|
], ProductDto.prototype, "es_novedad", void 0);
|
|
62
68
|
__decorate([
|
|
69
|
+
ApiProperty({ required: false }),
|
|
63
70
|
IsOptional(),
|
|
64
71
|
IsBoolean(),
|
|
65
72
|
Transform(({ value }) => {
|
|
@@ -71,6 +78,7 @@ __decorate([
|
|
|
71
78
|
})
|
|
72
79
|
], ProductDto.prototype, "es_favorito", void 0);
|
|
73
80
|
__decorate([
|
|
81
|
+
ApiProperty({ required: false }),
|
|
74
82
|
IsOptional(),
|
|
75
83
|
IsBoolean(),
|
|
76
84
|
Transform(({ value }) => {
|
|
@@ -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,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAEzB,MAAM,OAAO,UAAU;IACrB;;OAEG;IACH,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,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,QAAQ,GACT,MAAM,iBAAiB,CAAC;AAEzB,MAAM,OAAO,UAAU;IACrB;;OAEG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,4DAA4D;IAC5D,qFAAqF;IAErF,gBAAgB;IAChB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IAKtB,MAAM,CAAS;IAKf,IAAI,CAAS;IAMb,WAAW,CAAS;IAMpB,MAAM,CAAS;IAEf,cAAc;IACd,gBAAgB;IAChB,sBAAsB;IACtB,wBAAwB;IAUxB,UAAU,CAAU;IAUpB,WAAW,CAAU;IAUrB,UAAU,CAAU;CACrB;AArDC;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;0CACJ;AAKf;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;wCACN;AAMb;IAJC,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;+CACC;AAMpB;IAJC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;0CACJ;AAef;IARC,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,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;AAUpB;IARC,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,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;AAUrB;IARC,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-product.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/products/update-product.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;;AAG9C,qBAAa,gBAAiB,SAAQ,qBAAuB;IAM3D,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
7
8
|
import { PartialType } from "@nestjs/mapped-types";
|
|
8
9
|
import { ProductDto } from "./Product.dto.js";
|
|
9
10
|
import { IsNumber, IsPositive } from "class-validator";
|
|
@@ -14,6 +15,7 @@ export class UpdateProductDto extends PartialType(ProductDto) {
|
|
|
14
15
|
id;
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
18
|
+
ApiProperty(),
|
|
17
19
|
IsNumber(),
|
|
18
20
|
IsPositive()
|
|
19
21
|
], UpdateProductDto.prototype, "id", void 0);
|
|
@@ -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,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;
|
|
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,iBAAiB,CAAC;AAC9C,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;IAIrC,EAAE,CAAS;CACZ;AADC;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,EAAE;4CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@renzosanchez1357/libreria-compartida-microservicios01",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Libreria compartida, para DTOS, y validacion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "module",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"shared"
|
|
13
13
|
],
|
|
14
14
|
"author": "Renzo Sanchez Yanulaque",
|
|
15
|
-
"license": "MIT",
|
|
16
15
|
"repository": {
|
|
17
16
|
"type": "git",
|
|
18
17
|
"url": "https://github.com/Microservicios-Version01/libreria-compartida-microservicios01.git"
|
|
@@ -23,6 +22,7 @@
|
|
|
23
22
|
},
|
|
24
23
|
"dependencies": {
|
|
25
24
|
"@nestjs/mapped-types": "^2.1.0",
|
|
25
|
+
"@nestjs/swagger": "^11.2.4",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
27
|
"class-validator": "^0.14.3"
|
|
28
28
|
},
|