expo-backend-types 0.3.0-EXPO-245.1 → 0.3.0-EXPO-245.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/comentario/dto/comentario.dto.d.ts +42 -0
- package/dist/src/comentario/dto/comentario.dto.js +22 -0
- package/dist/src/comentario/exports.d.ts +1 -0
- package/dist/src/comentario/exports.js +18 -0
- package/dist/src/etiqueta/dto/etiqueta.dto.d.ts +58 -0
- package/dist/src/etiqueta/dto/etiqueta.dto.js +26 -0
- package/dist/src/etiqueta/exports.d.ts +1 -0
- package/dist/src/etiqueta/exports.js +18 -0
- package/dist/src/exports.d.ts +2 -0
- package/dist/src/exports.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,42 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const comentarioSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
content: z.ZodString;
|
5
|
+
createdBy: z.ZodString;
|
6
|
+
created_at: z.ZodString;
|
7
|
+
updated_at: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
id: string;
|
10
|
+
created_at: string;
|
11
|
+
updated_at: string;
|
12
|
+
content: string;
|
13
|
+
createdBy: string;
|
14
|
+
}, {
|
15
|
+
id: string;
|
16
|
+
created_at: string;
|
17
|
+
updated_at: string;
|
18
|
+
content: string;
|
19
|
+
createdBy: string;
|
20
|
+
}>;
|
21
|
+
declare const ComentarioDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
22
|
+
id: z.ZodString;
|
23
|
+
content: z.ZodString;
|
24
|
+
createdBy: z.ZodString;
|
25
|
+
created_at: z.ZodString;
|
26
|
+
updated_at: z.ZodString;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
id: string;
|
29
|
+
created_at: string;
|
30
|
+
updated_at: string;
|
31
|
+
content: string;
|
32
|
+
createdBy: string;
|
33
|
+
}, {
|
34
|
+
id: string;
|
35
|
+
created_at: string;
|
36
|
+
updated_at: string;
|
37
|
+
content: string;
|
38
|
+
createdBy: string;
|
39
|
+
}>>;
|
40
|
+
export declare class ComentarioDto extends ComentarioDto_base {
|
41
|
+
}
|
42
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ComentarioDto = exports.comentarioSchema = void 0;
|
4
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.comentarioSchema = zod_1.z.object({
|
7
|
+
id: zod_1.z.string().uuid({
|
8
|
+
message: 'El ID debe ser un UUID',
|
9
|
+
}),
|
10
|
+
content: zod_1.z.string().min(1, {
|
11
|
+
message: 'El contenido debe tener al menos 1 caracter',
|
12
|
+
}),
|
13
|
+
createdBy: zod_1.z.string().uuid({
|
14
|
+
message: 'El createdBy debe ser un UUID',
|
15
|
+
}),
|
16
|
+
created_at: zod_1.z.string().datetime(),
|
17
|
+
updated_at: zod_1.z.string().datetime(),
|
18
|
+
});
|
19
|
+
class ComentarioDto extends (0, zod_nestjs_1.createZodDto)(exports.comentarioSchema) {
|
20
|
+
}
|
21
|
+
exports.ComentarioDto = ComentarioDto;
|
22
|
+
//# sourceMappingURL=comentario.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/comentario.dto';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto/comentario.dto"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const etiquetaSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
nombre: z.ZodString;
|
5
|
+
grupoId: z.ZodString;
|
6
|
+
tipo: z.ZodNativeEnum<{
|
7
|
+
PERSONAL: "PERSONAL";
|
8
|
+
EVENTO: "EVENTO";
|
9
|
+
MODELO: "MODELO";
|
10
|
+
TENTATIVA: "TENTATIVA";
|
11
|
+
}>;
|
12
|
+
created_at: z.ZodString;
|
13
|
+
updated_at: z.ZodString;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
id: string;
|
16
|
+
created_at: string;
|
17
|
+
updated_at: string;
|
18
|
+
nombre: string;
|
19
|
+
grupoId: string;
|
20
|
+
tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
21
|
+
}, {
|
22
|
+
id: string;
|
23
|
+
created_at: string;
|
24
|
+
updated_at: string;
|
25
|
+
nombre: string;
|
26
|
+
grupoId: string;
|
27
|
+
tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
28
|
+
}>;
|
29
|
+
declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
30
|
+
id: z.ZodString;
|
31
|
+
nombre: z.ZodString;
|
32
|
+
grupoId: z.ZodString;
|
33
|
+
tipo: z.ZodNativeEnum<{
|
34
|
+
PERSONAL: "PERSONAL";
|
35
|
+
EVENTO: "EVENTO";
|
36
|
+
MODELO: "MODELO";
|
37
|
+
TENTATIVA: "TENTATIVA";
|
38
|
+
}>;
|
39
|
+
created_at: z.ZodString;
|
40
|
+
updated_at: z.ZodString;
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
42
|
+
id: string;
|
43
|
+
created_at: string;
|
44
|
+
updated_at: string;
|
45
|
+
nombre: string;
|
46
|
+
grupoId: string;
|
47
|
+
tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
48
|
+
}, {
|
49
|
+
id: string;
|
50
|
+
created_at: string;
|
51
|
+
updated_at: string;
|
52
|
+
nombre: string;
|
53
|
+
grupoId: string;
|
54
|
+
tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
55
|
+
}>>;
|
56
|
+
export declare class EtiquetaDto extends EtiquetaDto_base {
|
57
|
+
}
|
58
|
+
export {};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EtiquetaDto = exports.etiquetaSchema = void 0;
|
4
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
const types_1 = require("../../../types");
|
7
|
+
exports.etiquetaSchema = zod_1.z.object({
|
8
|
+
id: zod_1.z.string().uuid({
|
9
|
+
message: 'El ID debe ser un UUID',
|
10
|
+
}),
|
11
|
+
nombre: zod_1.z.string().min(1, {
|
12
|
+
message: 'El nombre debe tener al menos 1 caracter',
|
13
|
+
}),
|
14
|
+
grupoId: zod_1.z.string().uuid({
|
15
|
+
message: 'Debes seleccionar un grupo de etiquetas',
|
16
|
+
}),
|
17
|
+
tipo: zod_1.z.nativeEnum(types_1.TipoEtiqueta, {
|
18
|
+
message: 'El tipo de etiqueta no es válido',
|
19
|
+
}),
|
20
|
+
created_at: zod_1.z.string().datetime(),
|
21
|
+
updated_at: zod_1.z.string().datetime(),
|
22
|
+
});
|
23
|
+
class EtiquetaDto extends (0, zod_nestjs_1.createZodDto)(exports.etiquetaSchema) {
|
24
|
+
}
|
25
|
+
exports.EtiquetaDto = EtiquetaDto;
|
26
|
+
//# sourceMappingURL=etiqueta.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/etiqueta.dto';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto/etiqueta.dto"), exports);
|
18
|
+
//# sourceMappingURL=exports.js.map
|
package/dist/src/exports.d.ts
CHANGED
package/dist/src/exports.js
CHANGED
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./auth/exports"), exports);
|
18
18
|
__exportStar(require("./cuenta/exports"), exports);
|
19
|
+
__exportStar(require("./etiqueta/exports"), exports);
|
20
|
+
__exportStar(require("./comentario/exports"), exports);
|
19
21
|
//# sourceMappingURL=exports.js.map
|