@renzosanchez1357/libreria-compartida-microservicios01 1.0.0
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/pagination.dto.d.ts +5 -0
- package/dist/dto/pagination.dto.d.ts.map +1 -0
- package/dist/dto/pagination.dto.js +23 -0
- package/dist/dto/pagination.dto.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.dto.d.ts","sourceRoot":"","sources":["../../src/dto/pagination.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAIxB,IAAI,EAAE,MAAM,CAAK;IAKjB,KAAK,EAAE,MAAM,CAAM;CACpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Type } from "class-transformer";
|
|
8
|
+
import { IsOptional, IsPositive } from "class-validator";
|
|
9
|
+
export class PaginationDto {
|
|
10
|
+
page = 1; // a diferencia de los pipes, no los valida, solo los transforma
|
|
11
|
+
limit = 10;
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
IsPositive(),
|
|
15
|
+
IsOptional(),
|
|
16
|
+
Type(() => Number) // transformer: lo convierte a numero
|
|
17
|
+
], PaginationDto.prototype, "page", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
IsPositive(),
|
|
20
|
+
IsOptional(),
|
|
21
|
+
Type(() => Number)
|
|
22
|
+
], PaginationDto.prototype, "limit", void 0);
|
|
23
|
+
//# sourceMappingURL=pagination.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.dto.js","sourceRoot":"","sources":["../../src/dto/pagination.dto.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,OAAO,aAAa;IAIxB,IAAI,GAAW,CAAC,CAAC,CAAC,gEAAgE;IAKlF,KAAK,GAAW,EAAE,CAAC;CACpB;AANC;IAHC,UAAU,EAAE;IACZ,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,qCAAqC;2CACxC;AAKjB;IAHC,UAAU,EAAE;IACZ,UAAU,EAAE;IACZ,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;4CACA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@renzosanchez1357/libreria-compartida-microservicios01",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Libreria compartida, para DTOS, y validacion",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [
|
|
11
|
+
"microservicios",
|
|
12
|
+
"shared"
|
|
13
|
+
],
|
|
14
|
+
"author": "Renzo Sanchez Yanulaque",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/Microservicios-Version01/libreria-compartida-microservicios01.git"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^25.0.2",
|
|
22
|
+
"typescript": "^5.9.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"class-transformer": "^0.5.1",
|
|
26
|
+
"class-validator": "^0.14.3"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc",
|
|
33
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
34
|
+
}
|
|
35
|
+
}
|