expo-backend-types 0.3.0-EXPO-245.8 → 0.3.0-EXPO-245.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/{cuenta/dto/cuenta.dto.d.ts → account/dto/account.dto.d.ts} +57 -51
- package/dist/src/account/dto/account.dto.js +52 -0
- package/dist/src/{cuenta/dto/createCuenta.dto.d.ts → account/dto/createAccount.dto.d.ts} +92 -80
- package/dist/src/account/dto/createAccount.dto.js +23 -0
- package/dist/src/{cuenta/dto/getFiltroBase.dto.d.ts → account/dto/getGlobalFilter.dto.d.ts} +35 -35
- package/dist/src/account/dto/getGlobalFilter.dto.js +30 -0
- package/dist/src/{cuenta → account}/dto/getMe.dto.d.ts +56 -50
- package/dist/src/{cuenta → account}/dto/getMe.dto.js +2 -2
- package/dist/src/{cuenta/dto/updateFiltroBase.dto.d.ts → account/dto/updateGlobalFilter.dto.d.ts} +58 -58
- package/dist/src/account/dto/updateGlobalFilter.dto.js +29 -0
- package/dist/src/account/exports.d.ts +5 -0
- package/dist/src/{cuenta → account}/exports.js +4 -4
- package/dist/src/auth/dto/login.dto.d.ts +112 -100
- package/dist/src/auth/dto/login.dto.js +3 -3
- package/dist/src/comment/dto/comment.dto.d.ts +66 -0
- package/dist/src/comment/dto/comment.dto.js +26 -0
- package/dist/src/comment/exports.d.ts +1 -0
- package/dist/src/{etiqueta → comment}/exports.js +1 -1
- package/dist/src/event/dto/event.dto.d.ts +41 -0
- package/dist/src/event/dto/event.dto.js +33 -0
- package/dist/src/event/exports.d.ts +1 -0
- package/dist/src/{evento → event}/exports.js +1 -1
- package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
- package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
- package/dist/src/exports.d.ts +5 -5
- package/dist/src/exports.js +5 -5
- package/dist/src/i18n/es.json +97 -0
- package/dist/src/i18n/translate.d.ts +8 -0
- package/dist/src/i18n/translate.js +21 -0
- package/dist/src/i18n/translate.js.map +1 -0
- package/dist/src/{etiqueta/dto/etiqueta.dto.d.ts → tag/dto/tag.dto.d.ts} +15 -15
- package/dist/src/tag/dto/tag.dto.js +30 -0
- package/dist/src/tag/exports.d.ts +1 -0
- package/dist/src/{grupo-etiqueta → tag}/exports.js +1 -1
- package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts → tag-group/dto/tag-group.dto.d.ts} +3 -3
- package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.js → tag-group/dto/tag-group.dto.js} +8 -8
- package/dist/src/tag-group/exports.d.ts +1 -0
- package/dist/src/{comentario → tag-group}/exports.js +1 -1
- package/dist/types/prisma-schema/edge.js +86 -70
- package/dist/types/prisma-schema/index-browser.js +83 -67
- package/dist/types/prisma-schema/index.d.ts +8283 -6804
- package/dist/types/prisma-schema/index.js +86 -70
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +144 -112
- package/dist/types/prisma-schema/wasm.js +83 -67
- package/dist/types/schema.d.ts +37 -37
- package/package.json +3 -2
- package/dist/src/comentario/dto/comentario.dto.d.ts +0 -42
- package/dist/src/comentario/dto/comentario.dto.js +0 -22
- package/dist/src/comentario/exports.d.ts +0 -1
- package/dist/src/cuenta/dto/createCuenta.dto.js +0 -23
- package/dist/src/cuenta/dto/cuenta.dto.js +0 -49
- package/dist/src/cuenta/dto/getFiltroBase.dto.js +0 -29
- package/dist/src/cuenta/dto/updateFiltroBase.dto.js +0 -28
- package/dist/src/cuenta/exports.d.ts +0 -5
- package/dist/src/etiqueta/dto/etiqueta.dto.js +0 -30
- package/dist/src/etiqueta/exports.d.ts +0 -1
- package/dist/src/evento/dto/evento.dto.d.ts +0 -126
- package/dist/src/evento/dto/evento.dto.js +0 -37
- package/dist/src/evento/exports.d.ts +0 -1
- package/dist/src/grupo-etiqueta/exports.d.ts +0 -1
@@ -0,0 +1,41 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
declare const eventSchemaBase: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
date: z.ZodString;
|
6
|
+
location: z.ZodString;
|
7
|
+
folderId: z.ZodString;
|
8
|
+
tagAssistedId: z.ZodString;
|
9
|
+
tagConfirmedId: z.ZodString;
|
10
|
+
eventoPadreId: z.ZodOptional<z.ZodString>;
|
11
|
+
created_at: z.ZodString;
|
12
|
+
updated_at: z.ZodString;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
id: string;
|
15
|
+
name: string;
|
16
|
+
date: string;
|
17
|
+
location: string;
|
18
|
+
created_at: string;
|
19
|
+
updated_at: string;
|
20
|
+
folderId: string;
|
21
|
+
tagAssistedId: string;
|
22
|
+
tagConfirmedId: string;
|
23
|
+
eventoPadreId?: string | undefined;
|
24
|
+
}, {
|
25
|
+
id: string;
|
26
|
+
name: string;
|
27
|
+
date: string;
|
28
|
+
location: string;
|
29
|
+
created_at: string;
|
30
|
+
updated_at: string;
|
31
|
+
folderId: string;
|
32
|
+
tagAssistedId: string;
|
33
|
+
tagConfirmedId: string;
|
34
|
+
eventoPadreId?: string | undefined;
|
35
|
+
}>;
|
36
|
+
type Event = z.infer<typeof eventSchemaBase> & {
|
37
|
+
supraEvent: z.infer<typeof eventSchemaBase>;
|
38
|
+
subEvents: Array<z.infer<typeof eventSchemaBase>>;
|
39
|
+
};
|
40
|
+
export declare const eventSchema: z.ZodType<Event>;
|
41
|
+
export {};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.eventSchema = void 0;
|
4
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
5
|
+
const translate_1 = require("../../i18n/translate");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
const event_folder_dto_1 = require("../../event-folder/dto/event-folder.dto");
|
8
|
+
const eventSchemaBase = zod_1.z.object({
|
9
|
+
id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.event.id.uuid') }),
|
10
|
+
name: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.name.required')),
|
11
|
+
date: zod_1.z
|
12
|
+
.string({
|
13
|
+
required_error: (0, translate_1.translate)('model.event.date.required'),
|
14
|
+
})
|
15
|
+
.date((0, translate_1.translate)('model.event.date.invalid')),
|
16
|
+
location: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.location.required')),
|
17
|
+
folderId: event_folder_dto_1.eventFolderSchema.shape.id,
|
18
|
+
tagAssistedId: tag_dto_1.tagSchema.shape.id,
|
19
|
+
tagConfirmedId: tag_dto_1.tagSchema.shape.id,
|
20
|
+
eventoPadreId: zod_1.z
|
21
|
+
.string()
|
22
|
+
.uuid({
|
23
|
+
message: (0, translate_1.translate)('model.event.id.uuid'),
|
24
|
+
})
|
25
|
+
.optional(),
|
26
|
+
created_at: zod_1.z.string().datetime(),
|
27
|
+
updated_at: zod_1.z.string().datetime(),
|
28
|
+
});
|
29
|
+
exports.eventSchema = eventSchemaBase.extend({
|
30
|
+
supraEvent: zod_1.z.lazy(() => exports.eventSchema),
|
31
|
+
subEvents: zod_1.z.array(zod_1.z.lazy(() => eventSchemaBase)),
|
32
|
+
});
|
33
|
+
//# sourceMappingURL=event.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/event.dto';
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/
|
17
|
+
__exportStar(require("./dto/event.dto"), exports);
|
18
18
|
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const eventFolderSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
color: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
color: string;
|
10
|
+
}, {
|
11
|
+
id: string;
|
12
|
+
name: string;
|
13
|
+
color: string;
|
14
|
+
}>;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.eventFolderSchema = void 0;
|
7
|
+
const translate_1 = require("../../i18n/translate");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.eventFolderSchema = zod_1.default.object({
|
10
|
+
id: zod_1.default.string().uuid({
|
11
|
+
message: (0, translate_1.translate)('model.eventFolder.id.uuid'),
|
12
|
+
}),
|
13
|
+
name: zod_1.default.string().min(1),
|
14
|
+
color: zod_1.default
|
15
|
+
.string()
|
16
|
+
.length(7)
|
17
|
+
.startsWith('#', {
|
18
|
+
message: (0, translate_1.translate)('model.eventFolder.color.invalid'),
|
19
|
+
})
|
20
|
+
.toLowerCase(),
|
21
|
+
});
|
22
|
+
//# sourceMappingURL=event-folder.dto.js.map
|
package/dist/src/exports.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export * from './auth/exports';
|
2
|
-
export * from './
|
3
|
-
export * from './
|
4
|
-
export * from './
|
5
|
-
export * from './
|
6
|
-
export * from './
|
2
|
+
export * from './account/exports';
|
3
|
+
export * from './tag/exports';
|
4
|
+
export * from './comment/exports';
|
5
|
+
export * from './tag-group/exports';
|
6
|
+
export * from './event/exports';
|
package/dist/src/exports.js
CHANGED
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./auth/exports"), exports);
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./
|
20
|
-
__exportStar(require("./
|
21
|
-
__exportStar(require("./
|
22
|
-
__exportStar(require("./
|
18
|
+
__exportStar(require("./account/exports"), exports);
|
19
|
+
__exportStar(require("./tag/exports"), exports);
|
20
|
+
__exportStar(require("./comment/exports"), exports);
|
21
|
+
__exportStar(require("./tag-group/exports"), exports);
|
22
|
+
__exportStar(require("./event/exports"), exports);
|
23
23
|
//# sourceMappingURL=exports.js.map
|
@@ -0,0 +1,97 @@
|
|
1
|
+
{
|
2
|
+
"model": {
|
3
|
+
"comment": {
|
4
|
+
"id": {
|
5
|
+
"uuid": "El ID debe ser un UUID"
|
6
|
+
},
|
7
|
+
"content": {
|
8
|
+
"min": "El contenido debe tener al menos 1 caracter"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"account": {
|
12
|
+
"id": {
|
13
|
+
"required": "El ID es requerido",
|
14
|
+
"uuid": "El ID debe ser un UUID"
|
15
|
+
},
|
16
|
+
"username": {
|
17
|
+
"required": "El nombre de usuario es requerido"
|
18
|
+
},
|
19
|
+
"email": {
|
20
|
+
"required": "El email es requerido",
|
21
|
+
"email": "El email debe ser un email válido"
|
22
|
+
},
|
23
|
+
"password": {
|
24
|
+
"required": "La contraseña es requerida",
|
25
|
+
"min": "La contraseña debe tener al menos 6 caracteres"
|
26
|
+
},
|
27
|
+
"role": {
|
28
|
+
"invalid": "El rol es inválido"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"tag": {
|
32
|
+
"id": {
|
33
|
+
"uuid": "El ID debe ser un UUID"
|
34
|
+
},
|
35
|
+
"name": {
|
36
|
+
"required": "El nombre es requerido",
|
37
|
+
"min": "El nombre debe tener al menos 1 caracter"
|
38
|
+
},
|
39
|
+
"type": {
|
40
|
+
"invalid": "El tipo de etiqueta es inválido"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"event": {
|
44
|
+
"id": {
|
45
|
+
"uuid": "El ID debe ser un UUID"
|
46
|
+
},
|
47
|
+
"name": {
|
48
|
+
"required": "El nombre es requerido"
|
49
|
+
},
|
50
|
+
"date": {
|
51
|
+
"required": "La fecha es requerida",
|
52
|
+
"invalid": "La fecha debe ser una fecha válida"
|
53
|
+
},
|
54
|
+
"location": {
|
55
|
+
"required": "La ubicación es requerida"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"tagGroup": {
|
59
|
+
"id": {
|
60
|
+
"uuid": "El ID debe ser un UUID"
|
61
|
+
},
|
62
|
+
"name": {
|
63
|
+
"required": "El nombre es requerido"
|
64
|
+
},
|
65
|
+
"color": {
|
66
|
+
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"eventFolder": {
|
70
|
+
"id": {
|
71
|
+
"uuid": "El ID debe ser un UUID"
|
72
|
+
},
|
73
|
+
"color": {
|
74
|
+
"invalid": "El color debe tener el formato hexadecimal (#ABCDEF)"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"route": {
|
79
|
+
"account": {
|
80
|
+
"create": {
|
81
|
+
"success": "Cuenta creada con éxito",
|
82
|
+
"conflict": "Cuenta ya existente"
|
83
|
+
},
|
84
|
+
"global-filter-patch": {
|
85
|
+
"success": "Filtro base actualizado",
|
86
|
+
"conflict": "Etiquetas Inválidas"
|
87
|
+
},
|
88
|
+
"global-filter-get": {
|
89
|
+
"success": "Filtro base obtenido",
|
90
|
+
"not-found": "Cuenta no encontrada"
|
91
|
+
},
|
92
|
+
"me": {
|
93
|
+
"success": "Cuenta obtenida"
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { I18n, TranslateOptions } from 'i18n-js';
|
2
|
+
import esJson from '@/i18n/es.json';
|
3
|
+
import { Paths } from '@/shared/errors/dotType';
|
4
|
+
declare const translations: Record<string, typeof esJson>;
|
5
|
+
export declare const i18n: I18n;
|
6
|
+
type Translations = Paths<(typeof translations)['es']>;
|
7
|
+
export declare function translate<Keys extends Translations>(key: Keys extends `${string}.${string}` ? Keys : never, params?: TranslateOptions): string;
|
8
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.translate = exports.i18n = void 0;
|
7
|
+
const i18n_js_1 = require("i18n-js");
|
8
|
+
const es_json_1 = __importDefault(require("./es.json"));
|
9
|
+
const translations = {
|
10
|
+
es: es_json_1.default,
|
11
|
+
};
|
12
|
+
exports.i18n = new i18n_js_1.I18n(translations, {
|
13
|
+
defaultLocale: 'es',
|
14
|
+
locale: 'es',
|
15
|
+
missingTranslationPrefix: 'TRANSLATION MISSING: ',
|
16
|
+
});
|
17
|
+
function translate(key, params = {}) {
|
18
|
+
return exports.i18n.t(key, params);
|
19
|
+
}
|
20
|
+
exports.translate = translate;
|
21
|
+
//# sourceMappingURL=translate.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../../../src/i18n/translate.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAwD;AAExD,wDAAoC;AAGpC,MAAM,YAAY,GAAkC;IAClD,EAAE,EAAE,iBAAM;CACX,CAAC;AAEW,QAAA,IAAI,GAAG,IAAI,cAAI,CAAC,YAAY,EAAE;IACzC,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,wBAAwB,EAAE,uBAAuB;CAClD,CAAC,CAAC;AAIH,SAAgB,SAAS,CACvB,GAAsD,EACtD,SAA2B,EAAE;IAE7B,OAAO,YAAI,CAAC,CAAC,CAAC,GAAY,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AALD,8BAKC"}
|
@@ -1,58 +1,58 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const
|
2
|
+
export declare const tagSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
5
|
groupId: z.ZodString;
|
6
6
|
type: z.ZodNativeEnum<{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
PROFILE: "PROFILE";
|
8
|
+
EVENT: "EVENT";
|
9
|
+
PARTICIPANT: "PARTICIPANT";
|
10
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
11
11
|
}>;
|
12
12
|
created_at: z.ZodString;
|
13
13
|
updated_at: z.ZodString;
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
15
15
|
id: string;
|
16
16
|
name: string;
|
17
|
-
type: "
|
17
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
18
18
|
created_at: string;
|
19
19
|
updated_at: string;
|
20
20
|
groupId: string;
|
21
21
|
}, {
|
22
22
|
id: string;
|
23
23
|
name: string;
|
24
|
-
type: "
|
24
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
25
25
|
created_at: string;
|
26
26
|
updated_at: string;
|
27
27
|
groupId: string;
|
28
28
|
}>;
|
29
|
-
declare const
|
29
|
+
declare const TagDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
30
30
|
id: z.ZodString;
|
31
31
|
name: z.ZodString;
|
32
32
|
groupId: z.ZodString;
|
33
33
|
type: z.ZodNativeEnum<{
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
PROFILE: "PROFILE";
|
35
|
+
EVENT: "EVENT";
|
36
|
+
PARTICIPANT: "PARTICIPANT";
|
37
|
+
NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
|
38
38
|
}>;
|
39
39
|
created_at: z.ZodString;
|
40
40
|
updated_at: z.ZodString;
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
42
42
|
id: string;
|
43
43
|
name: string;
|
44
|
-
type: "
|
44
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
45
45
|
created_at: string;
|
46
46
|
updated_at: string;
|
47
47
|
groupId: string;
|
48
48
|
}, {
|
49
49
|
id: string;
|
50
50
|
name: string;
|
51
|
-
type: "
|
51
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
52
52
|
created_at: string;
|
53
53
|
updated_at: string;
|
54
54
|
groupId: string;
|
55
55
|
}>>;
|
56
|
-
export declare class
|
56
|
+
export declare class TagDto extends TagDto_base {
|
57
57
|
}
|
58
58
|
export {};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TagDto = exports.tagSchema = void 0;
|
4
|
+
const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
|
5
|
+
const translate_1 = require("../../i18n/translate");
|
6
|
+
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
7
|
+
const zod_1 = require("zod");
|
8
|
+
const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
|
9
|
+
exports.tagSchema = zod_1.z.object({
|
10
|
+
id: zod_1.z.string().uuid({
|
11
|
+
message: (0, translate_1.translate)('model.tag.id.uuid'),
|
12
|
+
}),
|
13
|
+
name: zod_1.z
|
14
|
+
.string({
|
15
|
+
required_error: (0, translate_1.translate)('model.tag.name.required'),
|
16
|
+
})
|
17
|
+
.min(1, {
|
18
|
+
message: (0, translate_1.translate)('model.tag.name.min'),
|
19
|
+
}),
|
20
|
+
groupId: tag_group_dto_1.tagGroupSchema.shape.id,
|
21
|
+
type: zod_1.z.nativeEnum(prisma_schema_1.TagType, {
|
22
|
+
message: (0, translate_1.translate)('model.tag.type.invalid'),
|
23
|
+
}),
|
24
|
+
created_at: zod_1.z.string().datetime(),
|
25
|
+
updated_at: zod_1.z.string().datetime(),
|
26
|
+
});
|
27
|
+
class TagDto extends (0, zod_nestjs_1.createZodDto)(exports.tagSchema) {
|
28
|
+
}
|
29
|
+
exports.TagDto = TagDto;
|
30
|
+
//# sourceMappingURL=tag.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/tag.dto';
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/
|
17
|
+
__exportStar(require("./dto/tag.dto"), exports);
|
18
18
|
//# sourceMappingURL=exports.js.map
|
package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts → tag-group/dto/tag-group.dto.d.ts}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const
|
2
|
+
export declare const tagGroupSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
name: z.ZodString;
|
5
5
|
color: z.ZodString;
|
@@ -21,7 +21,7 @@ export declare const grupoEtiquetaSchema: z.ZodObject<{
|
|
21
21
|
created_at: string;
|
22
22
|
updated_at: string;
|
23
23
|
}>;
|
24
|
-
declare const
|
24
|
+
declare const TagGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
25
25
|
id: z.ZodString;
|
26
26
|
name: z.ZodString;
|
27
27
|
color: z.ZodString;
|
@@ -43,6 +43,6 @@ declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
|
|
43
43
|
created_at: string;
|
44
44
|
updated_at: string;
|
45
45
|
}>>;
|
46
|
-
export declare class
|
46
|
+
export declare class TagGroupDto extends TagGroupDto_base {
|
47
47
|
}
|
48
48
|
export {};
|
package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.js → tag-group/dto/tag-group.dto.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.TagGroupDto = exports.tagGroupSchema = void 0;
|
4
4
|
const translate_1 = require("../../i18n/translate");
|
5
5
|
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
6
6
|
const zod_1 = require("zod");
|
7
|
-
exports.
|
7
|
+
exports.tagGroupSchema = zod_1.z.object({
|
8
8
|
id: zod_1.z.string().uuid({
|
9
|
-
message: (0, translate_1.translate)('model.
|
9
|
+
message: (0, translate_1.translate)('model.tagGroup.id.uuid'),
|
10
10
|
}),
|
11
11
|
name: zod_1.z.string().min(1, {
|
12
|
-
message: (0, translate_1.translate)('model.
|
12
|
+
message: (0, translate_1.translate)('model.tagGroup.name.required'),
|
13
13
|
}),
|
14
14
|
color: zod_1.z
|
15
15
|
.string()
|
16
16
|
.length(7)
|
17
17
|
.startsWith('#', {
|
18
|
-
message: (0, translate_1.translate)('model.
|
18
|
+
message: (0, translate_1.translate)('model.tagGroup.color.invalid'),
|
19
19
|
})
|
20
20
|
.toLowerCase(),
|
21
21
|
isExclusive: zod_1.z.boolean(),
|
22
22
|
created_at: zod_1.z.string().datetime(),
|
23
23
|
updated_at: zod_1.z.string().datetime(),
|
24
24
|
});
|
25
|
-
class
|
25
|
+
class TagGroupDto extends (0, zod_nestjs_1.createZodDto)(exports.tagGroupSchema) {
|
26
26
|
}
|
27
|
-
exports.
|
28
|
-
//# sourceMappingURL=
|
27
|
+
exports.TagGroupDto = TagGroupDto;
|
28
|
+
//# sourceMappingURL=tag-group.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dto/tag-group.dto';
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/
|
17
|
+
__exportStar(require("./dto/tag-group.dto"), exports);
|
18
18
|
//# sourceMappingURL=exports.js.map
|