expo-backend-types 0.3.0-EXPO-245.7 → 0.3.0-EXPO-245.9
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/{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 +1 -1
- 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
package/dist/types/schema.d.ts
CHANGED
@@ -31,7 +31,7 @@ export interface paths {
|
|
31
31
|
patch?: never;
|
32
32
|
trace?: never;
|
33
33
|
};
|
34
|
-
"/
|
34
|
+
"/account/create": {
|
35
35
|
parameters: {
|
36
36
|
query?: never;
|
37
37
|
header?: never;
|
@@ -40,37 +40,37 @@ export interface paths {
|
|
40
40
|
};
|
41
41
|
get?: never;
|
42
42
|
put?: never;
|
43
|
-
post: operations["
|
43
|
+
post: operations["AccountController_createCuenta"];
|
44
44
|
delete?: never;
|
45
45
|
options?: never;
|
46
46
|
head?: never;
|
47
47
|
patch?: never;
|
48
48
|
trace?: never;
|
49
49
|
};
|
50
|
-
"/
|
50
|
+
"/account/global-filter": {
|
51
51
|
parameters: {
|
52
52
|
query?: never;
|
53
53
|
header?: never;
|
54
54
|
path?: never;
|
55
55
|
cookie?: never;
|
56
56
|
};
|
57
|
-
get: operations["
|
57
|
+
get: operations["AccountController_getFiltroBase"];
|
58
58
|
put?: never;
|
59
59
|
post?: never;
|
60
60
|
delete?: never;
|
61
61
|
options?: never;
|
62
62
|
head?: never;
|
63
|
-
patch: operations["
|
63
|
+
patch: operations["AccountController_updateFiltroBase"];
|
64
64
|
trace?: never;
|
65
65
|
};
|
66
|
-
"/
|
66
|
+
"/account/me": {
|
67
67
|
parameters: {
|
68
68
|
query?: never;
|
69
69
|
header?: never;
|
70
70
|
path?: never;
|
71
71
|
cookie?: never;
|
72
72
|
};
|
73
|
-
get: operations["
|
73
|
+
get: operations["AccountController_getMe"];
|
74
74
|
put?: never;
|
75
75
|
post?: never;
|
76
76
|
delete?: never;
|
@@ -91,14 +91,14 @@ export interface components {
|
|
91
91
|
user: {
|
92
92
|
id?: string;
|
93
93
|
username?: string;
|
94
|
-
|
94
|
+
role?: "USER" | "ADMIN";
|
95
95
|
created_at?: string;
|
96
96
|
updated_at?: string;
|
97
|
-
|
98
|
-
|
97
|
+
globalFilter?: {
|
98
|
+
tags: {
|
99
99
|
id: string;
|
100
100
|
name: string;
|
101
|
-
|
101
|
+
group: {
|
102
102
|
id: string;
|
103
103
|
color: string;
|
104
104
|
isExclusive: boolean;
|
@@ -106,7 +106,7 @@ export interface components {
|
|
106
106
|
};
|
107
107
|
active: boolean;
|
108
108
|
};
|
109
|
-
|
109
|
+
isGlobalFilterActive: boolean;
|
110
110
|
fcmToken: string[];
|
111
111
|
};
|
112
112
|
backendTokens: {
|
@@ -114,23 +114,23 @@ export interface components {
|
|
114
114
|
refreshToken?: string;
|
115
115
|
};
|
116
116
|
};
|
117
|
-
|
117
|
+
CreateAccountDto: {
|
118
118
|
username: string;
|
119
119
|
password: string;
|
120
|
-
|
120
|
+
role: "USER" | "ADMIN";
|
121
121
|
};
|
122
122
|
CreateCuentaResponseDto: {
|
123
123
|
id: string;
|
124
124
|
username: string;
|
125
|
-
|
126
|
-
|
125
|
+
role: "USER" | "ADMIN";
|
126
|
+
isGlobalFilterActive: boolean;
|
127
127
|
fcmToken: string[];
|
128
128
|
};
|
129
|
-
|
129
|
+
UpdateGlobalFilterDto: {
|
130
130
|
active: boolean;
|
131
|
-
|
131
|
+
tagsIds: string[];
|
132
132
|
};
|
133
|
-
|
133
|
+
UpdateGlobalFilterResponseDto: {
|
134
134
|
id: string;
|
135
135
|
nombreUsuario: string;
|
136
136
|
esAdmin: boolean;
|
@@ -142,19 +142,19 @@ export interface components {
|
|
142
142
|
id: string;
|
143
143
|
name: string;
|
144
144
|
groupId: string;
|
145
|
-
type: "
|
145
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
146
146
|
created_at: string;
|
147
147
|
updated_at: string;
|
148
148
|
}[];
|
149
149
|
};
|
150
150
|
};
|
151
|
-
|
151
|
+
GetGlobalFilterResponseDto: {
|
152
152
|
active: boolean;
|
153
|
-
|
153
|
+
globalFilter: {
|
154
154
|
id: string;
|
155
155
|
name: string;
|
156
|
-
type: "
|
157
|
-
|
156
|
+
type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
|
157
|
+
group: {
|
158
158
|
id: string;
|
159
159
|
color: string;
|
160
160
|
isExclusive: boolean;
|
@@ -164,14 +164,14 @@ export interface components {
|
|
164
164
|
GetMeResponseDto: {
|
165
165
|
id: string;
|
166
166
|
username: string;
|
167
|
-
|
167
|
+
role: "USER" | "ADMIN";
|
168
168
|
created_at: string;
|
169
169
|
updated_at: string;
|
170
|
-
|
171
|
-
|
170
|
+
globalFilter: {
|
171
|
+
tags?: {
|
172
172
|
id: string;
|
173
173
|
name: string;
|
174
|
-
|
174
|
+
group: {
|
175
175
|
id: string;
|
176
176
|
color: string;
|
177
177
|
isExclusive: boolean;
|
@@ -179,7 +179,7 @@ export interface components {
|
|
179
179
|
};
|
180
180
|
active?: boolean;
|
181
181
|
};
|
182
|
-
|
182
|
+
isGlobalFilterActive: boolean;
|
183
183
|
fcmToken: string[];
|
184
184
|
};
|
185
185
|
};
|
@@ -231,7 +231,7 @@ export interface operations {
|
|
231
231
|
};
|
232
232
|
};
|
233
233
|
};
|
234
|
-
|
234
|
+
AccountController_createCuenta: {
|
235
235
|
parameters: {
|
236
236
|
query?: never;
|
237
237
|
header?: never;
|
@@ -240,7 +240,7 @@ export interface operations {
|
|
240
240
|
};
|
241
241
|
requestBody: {
|
242
242
|
content: {
|
243
|
-
"application/json": components["schemas"]["
|
243
|
+
"application/json": components["schemas"]["CreateAccountDto"];
|
244
244
|
};
|
245
245
|
};
|
246
246
|
responses: {
|
@@ -254,7 +254,7 @@ export interface operations {
|
|
254
254
|
};
|
255
255
|
};
|
256
256
|
};
|
257
|
-
|
257
|
+
AccountController_getFiltroBase: {
|
258
258
|
parameters: {
|
259
259
|
query?: never;
|
260
260
|
header?: never;
|
@@ -268,12 +268,12 @@ export interface operations {
|
|
268
268
|
[name: string]: unknown;
|
269
269
|
};
|
270
270
|
content: {
|
271
|
-
"application/json": components["schemas"]["
|
271
|
+
"application/json": components["schemas"]["GetGlobalFilterResponseDto"];
|
272
272
|
};
|
273
273
|
};
|
274
274
|
};
|
275
275
|
};
|
276
|
-
|
276
|
+
AccountController_updateFiltroBase: {
|
277
277
|
parameters: {
|
278
278
|
query?: never;
|
279
279
|
header?: never;
|
@@ -282,7 +282,7 @@ export interface operations {
|
|
282
282
|
};
|
283
283
|
requestBody: {
|
284
284
|
content: {
|
285
|
-
"application/json": components["schemas"]["
|
285
|
+
"application/json": components["schemas"]["UpdateGlobalFilterDto"];
|
286
286
|
};
|
287
287
|
};
|
288
288
|
responses: {
|
@@ -291,12 +291,12 @@ export interface operations {
|
|
291
291
|
[name: string]: unknown;
|
292
292
|
};
|
293
293
|
content: {
|
294
|
-
"application/json": components["schemas"]["
|
294
|
+
"application/json": components["schemas"]["UpdateGlobalFilterResponseDto"];
|
295
295
|
};
|
296
296
|
};
|
297
297
|
};
|
298
298
|
};
|
299
|
-
|
299
|
+
AccountController_getMe: {
|
300
300
|
parameters: {
|
301
301
|
query?: never;
|
302
302
|
header?: never;
|
package/package.json
CHANGED
@@ -1,42 +0,0 @@
|
|
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
|
-
content: string;
|
11
|
-
created_at: string;
|
12
|
-
updated_at: string;
|
13
|
-
createdBy: string;
|
14
|
-
}, {
|
15
|
-
id: string;
|
16
|
-
content: string;
|
17
|
-
created_at: string;
|
18
|
-
updated_at: 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
|
-
content: string;
|
30
|
-
created_at: string;
|
31
|
-
updated_at: string;
|
32
|
-
createdBy: string;
|
33
|
-
}, {
|
34
|
-
id: string;
|
35
|
-
content: string;
|
36
|
-
created_at: string;
|
37
|
-
updated_at: string;
|
38
|
-
createdBy: string;
|
39
|
-
}>>;
|
40
|
-
export declare class ComentarioDto extends ComentarioDto_base {
|
41
|
-
}
|
42
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ComentarioDto = exports.comentarioSchema = void 0;
|
4
|
-
const exports_1 = require("../../exports");
|
5
|
-
const translate_1 = require("../../i18n/translate");
|
6
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
7
|
-
const zod_1 = require("zod");
|
8
|
-
exports.comentarioSchema = zod_1.z.object({
|
9
|
-
id: zod_1.z.string().uuid({
|
10
|
-
message: (0, translate_1.translate)('model.comentario.id.uuid'),
|
11
|
-
}),
|
12
|
-
content: zod_1.z.string().min(1, {
|
13
|
-
message: (0, translate_1.translate)('model.comentario.content.min'),
|
14
|
-
}),
|
15
|
-
createdBy: exports_1.cuentaSchema.shape.id,
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dto/comentario.dto';
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateCuentaResponseDto = exports.createCuentaResponseSchema = exports.CreateCuentaDto = exports.createCuentaSchema = void 0;
|
4
|
-
const cuenta_dto_1 = require("./cuenta.dto");
|
5
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
6
|
-
exports.createCuentaSchema = cuenta_dto_1.cuentaSchema.pick({
|
7
|
-
username: true,
|
8
|
-
password: true,
|
9
|
-
isAdmin: true,
|
10
|
-
});
|
11
|
-
class CreateCuentaDto extends (0, zod_nestjs_1.createZodDto)(exports.createCuentaSchema) {
|
12
|
-
}
|
13
|
-
exports.CreateCuentaDto = CreateCuentaDto;
|
14
|
-
exports.createCuentaResponseSchema = cuenta_dto_1.cuentaSchema.omit({
|
15
|
-
password: true,
|
16
|
-
filtroBase: true,
|
17
|
-
created_at: true,
|
18
|
-
updated_at: true,
|
19
|
-
});
|
20
|
-
class CreateCuentaResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.createCuentaResponseSchema) {
|
21
|
-
}
|
22
|
-
exports.CreateCuentaResponseDto = CreateCuentaResponseDto;
|
23
|
-
//# sourceMappingURL=createCuenta.dto.js.map
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CuentaDto = exports.cuentaSchema = void 0;
|
4
|
-
const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.dto");
|
5
|
-
const grupo_etiqueta_dto_1 = require("../../grupo-etiqueta/dto/grupo-etiqueta.dto");
|
6
|
-
const translate_1 = require("../../i18n/translate");
|
7
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
8
|
-
const zod_1 = require("zod");
|
9
|
-
exports.cuentaSchema = zod_1.z.object({
|
10
|
-
id: zod_1.z
|
11
|
-
.string({
|
12
|
-
required_error: (0, translate_1.translate)('model.cuenta.id.required'),
|
13
|
-
})
|
14
|
-
.uuid({
|
15
|
-
message: (0, translate_1.translate)('model.cuenta.id.uuid'),
|
16
|
-
}),
|
17
|
-
username: zod_1.z.string({
|
18
|
-
required_error: (0, translate_1.translate)('model.cuenta.username.required'),
|
19
|
-
}),
|
20
|
-
password: zod_1.z
|
21
|
-
.string({
|
22
|
-
required_error: (0, translate_1.translate)('model.cuenta.password.required'),
|
23
|
-
})
|
24
|
-
.min(6, (0, translate_1.translate)('model.cuenta.password.min')),
|
25
|
-
isAdmin: zod_1.z.boolean().default(false),
|
26
|
-
created_at: zod_1.z.string().datetime(),
|
27
|
-
updated_at: zod_1.z.string().datetime(),
|
28
|
-
filtroBase: zod_1.z.object({
|
29
|
-
etiquetas: etiqueta_dto_1.etiquetaSchema
|
30
|
-
.pick({
|
31
|
-
id: true,
|
32
|
-
name: true,
|
33
|
-
})
|
34
|
-
.merge(zod_1.z.object({
|
35
|
-
grupo: grupo_etiqueta_dto_1.grupoEtiquetaSchema.pick({
|
36
|
-
id: true,
|
37
|
-
color: true,
|
38
|
-
isExclusive: true,
|
39
|
-
}),
|
40
|
-
})),
|
41
|
-
active: zod_1.z.boolean(),
|
42
|
-
}),
|
43
|
-
filtroBaseActivo: zod_1.z.boolean().default(false),
|
44
|
-
fcmToken: zod_1.z.array(zod_1.z.string()).default([]),
|
45
|
-
});
|
46
|
-
class CuentaDto extends (0, zod_nestjs_1.createZodDto)(exports.cuentaSchema) {
|
47
|
-
}
|
48
|
-
exports.CuentaDto = CuentaDto;
|
49
|
-
//# sourceMappingURL=cuenta.dto.js.map
|
@@ -1,29 +0,0 @@
|
|
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.GetFiltroBaseResponseDto = exports.getFiltroBaseResponse = void 0;
|
7
|
-
const exports_1 = require("../../exports");
|
8
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
9
|
-
const zod_1 = __importDefault(require("zod"));
|
10
|
-
exports.getFiltroBaseResponse = zod_1.default.object({
|
11
|
-
active: zod_1.default.boolean(),
|
12
|
-
filtroBase: zod_1.default.array(exports_1.etiquetaSchema
|
13
|
-
.pick({
|
14
|
-
id: true,
|
15
|
-
name: true,
|
16
|
-
type: true,
|
17
|
-
})
|
18
|
-
.merge(zod_1.default.object({
|
19
|
-
grupo: exports_1.grupoEtiquetaSchema.pick({
|
20
|
-
id: true,
|
21
|
-
color: true,
|
22
|
-
isExclusive: true,
|
23
|
-
}),
|
24
|
-
}))),
|
25
|
-
});
|
26
|
-
class GetFiltroBaseResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.getFiltroBaseResponse) {
|
27
|
-
}
|
28
|
-
exports.GetFiltroBaseResponseDto = GetFiltroBaseResponseDto;
|
29
|
-
//# sourceMappingURL=getFiltroBase.dto.js.map
|
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateFiltroBaseResponseDto = exports.updateFiltroBaseResponseSchema = exports.UpdateFiltroBaseDto = exports.updateFiltroBaseSchema = void 0;
|
4
|
-
const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.dto");
|
5
|
-
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
6
|
-
const zod_1 = require("zod");
|
7
|
-
exports.updateFiltroBaseSchema = zod_1.z.object({
|
8
|
-
active: zod_1.z.boolean(),
|
9
|
-
etiquetasIds: zod_1.z.array(etiqueta_dto_1.etiquetaSchema.shape.id),
|
10
|
-
});
|
11
|
-
class UpdateFiltroBaseDto extends (0, zod_nestjs_1.createZodDto)(exports.updateFiltroBaseSchema) {
|
12
|
-
}
|
13
|
-
exports.UpdateFiltroBaseDto = UpdateFiltroBaseDto;
|
14
|
-
exports.updateFiltroBaseResponseSchema = zod_1.z.object({
|
15
|
-
id: zod_1.z.string(),
|
16
|
-
nombreUsuario: zod_1.z.string(),
|
17
|
-
esAdmin: zod_1.z.boolean(),
|
18
|
-
fcmToken: zod_1.z.string().nullable(),
|
19
|
-
filtroBaseActivo: zod_1.z.boolean(),
|
20
|
-
filtroBase: zod_1.z.object({
|
21
|
-
active: zod_1.z.boolean(),
|
22
|
-
etiquetas: zod_1.z.array(etiqueta_dto_1.etiquetaSchema),
|
23
|
-
}),
|
24
|
-
});
|
25
|
-
class UpdateFiltroBaseResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.updateFiltroBaseResponseSchema) {
|
26
|
-
}
|
27
|
-
exports.UpdateFiltroBaseResponseDto = UpdateFiltroBaseResponseDto;
|
28
|
-
//# sourceMappingURL=updateFiltroBase.dto.js.map
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EtiquetaDto = exports.etiquetaSchema = void 0;
|
4
|
-
const grupo_etiqueta_dto_1 = require("../../grupo-etiqueta/dto/grupo-etiqueta.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.etiquetaSchema = zod_1.z.object({
|
10
|
-
id: zod_1.z.string().uuid({
|
11
|
-
message: (0, translate_1.translate)('model.etiqueta.id.uuid'),
|
12
|
-
}),
|
13
|
-
name: zod_1.z
|
14
|
-
.string({
|
15
|
-
required_error: (0, translate_1.translate)('model.etiqueta.name.required'),
|
16
|
-
})
|
17
|
-
.min(1, {
|
18
|
-
message: (0, translate_1.translate)('model.etiqueta.name.min'),
|
19
|
-
}),
|
20
|
-
groupId: grupo_etiqueta_dto_1.grupoEtiquetaSchema.shape.id,
|
21
|
-
type: zod_1.z.nativeEnum(prisma_schema_1.TipoEtiqueta, {
|
22
|
-
message: (0, translate_1.translate)('model.etiqueta.type.invalid'),
|
23
|
-
}),
|
24
|
-
created_at: zod_1.z.string().datetime(),
|
25
|
-
updated_at: zod_1.z.string().datetime(),
|
26
|
-
});
|
27
|
-
class EtiquetaDto extends (0, zod_nestjs_1.createZodDto)(exports.etiquetaSchema) {
|
28
|
-
}
|
29
|
-
exports.EtiquetaDto = EtiquetaDto;
|
30
|
-
//# sourceMappingURL=etiqueta.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dto/etiqueta.dto';
|
@@ -1,126 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
declare const eventoSchemaBase: z.ZodObject<{
|
3
|
-
id: z.ZodString;
|
4
|
-
name: z.ZodString;
|
5
|
-
date: z.ZodString;
|
6
|
-
location: z.ZodString;
|
7
|
-
etiquetaAsistioId: z.ZodString;
|
8
|
-
etiquetaAsistio: z.ZodObject<{
|
9
|
-
id: z.ZodString;
|
10
|
-
name: z.ZodString;
|
11
|
-
groupId: z.ZodString;
|
12
|
-
type: z.ZodNativeEnum<{
|
13
|
-
PERSONAL: "PERSONAL";
|
14
|
-
EVENTO: "EVENTO";
|
15
|
-
MODELO: "MODELO";
|
16
|
-
TENTATIVA: "TENTATIVA";
|
17
|
-
}>;
|
18
|
-
created_at: z.ZodString;
|
19
|
-
updated_at: z.ZodString;
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
21
|
-
id: string;
|
22
|
-
name: string;
|
23
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
24
|
-
created_at: string;
|
25
|
-
updated_at: string;
|
26
|
-
groupId: string;
|
27
|
-
}, {
|
28
|
-
id: string;
|
29
|
-
name: string;
|
30
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
31
|
-
created_at: string;
|
32
|
-
updated_at: string;
|
33
|
-
groupId: string;
|
34
|
-
}>;
|
35
|
-
etiquetaConfirmoId: z.ZodString;
|
36
|
-
etiquetaConfirmo: z.ZodObject<{
|
37
|
-
id: z.ZodString;
|
38
|
-
name: z.ZodString;
|
39
|
-
groupId: z.ZodString;
|
40
|
-
type: z.ZodNativeEnum<{
|
41
|
-
PERSONAL: "PERSONAL";
|
42
|
-
EVENTO: "EVENTO";
|
43
|
-
MODELO: "MODELO";
|
44
|
-
TENTATIVA: "TENTATIVA";
|
45
|
-
}>;
|
46
|
-
created_at: z.ZodString;
|
47
|
-
updated_at: z.ZodString;
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
49
|
-
id: string;
|
50
|
-
name: string;
|
51
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
52
|
-
created_at: string;
|
53
|
-
updated_at: string;
|
54
|
-
groupId: string;
|
55
|
-
}, {
|
56
|
-
id: string;
|
57
|
-
name: string;
|
58
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
59
|
-
created_at: string;
|
60
|
-
updated_at: string;
|
61
|
-
groupId: string;
|
62
|
-
}>;
|
63
|
-
eventoPadreId: z.ZodOptional<z.ZodString>;
|
64
|
-
created_at: z.ZodString;
|
65
|
-
updated_at: z.ZodString;
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
67
|
-
id: string;
|
68
|
-
name: string;
|
69
|
-
date: string;
|
70
|
-
location: string;
|
71
|
-
created_at: string;
|
72
|
-
updated_at: string;
|
73
|
-
etiquetaAsistioId: string;
|
74
|
-
etiquetaAsistio: {
|
75
|
-
id: string;
|
76
|
-
name: string;
|
77
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
78
|
-
created_at: string;
|
79
|
-
updated_at: string;
|
80
|
-
groupId: string;
|
81
|
-
};
|
82
|
-
etiquetaConfirmoId: string;
|
83
|
-
etiquetaConfirmo: {
|
84
|
-
id: string;
|
85
|
-
name: string;
|
86
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
87
|
-
created_at: string;
|
88
|
-
updated_at: string;
|
89
|
-
groupId: string;
|
90
|
-
};
|
91
|
-
eventoPadreId?: string | undefined;
|
92
|
-
}, {
|
93
|
-
id: string;
|
94
|
-
name: string;
|
95
|
-
date: string;
|
96
|
-
location: string;
|
97
|
-
created_at: string;
|
98
|
-
updated_at: string;
|
99
|
-
etiquetaAsistioId: string;
|
100
|
-
etiquetaAsistio: {
|
101
|
-
id: string;
|
102
|
-
name: string;
|
103
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
104
|
-
created_at: string;
|
105
|
-
updated_at: string;
|
106
|
-
groupId: string;
|
107
|
-
};
|
108
|
-
etiquetaConfirmoId: string;
|
109
|
-
etiquetaConfirmo: {
|
110
|
-
id: string;
|
111
|
-
name: string;
|
112
|
-
type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
|
113
|
-
created_at: string;
|
114
|
-
updated_at: string;
|
115
|
-
groupId: string;
|
116
|
-
};
|
117
|
-
eventoPadreId?: string | undefined;
|
118
|
-
}>;
|
119
|
-
type Evento = z.infer<typeof eventoSchemaBase> & {
|
120
|
-
eventoPadre: z.infer<typeof eventoSchemaBase>;
|
121
|
-
subEventos: z.infer<typeof eventoSchemaBase>[];
|
122
|
-
};
|
123
|
-
declare const EventoDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodType<Evento, z.ZodTypeDef, Evento>>;
|
124
|
-
export declare class EventoDto extends EventoDto_base {
|
125
|
-
}
|
126
|
-
export {};
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EventoDto = void 0;
|
4
|
-
const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.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 eventoSchemaBase = zod_1.z.object({
|
9
|
-
id: zod_1.z.string().uuid({ message: (0, translate_1.translate)('model.evento.id.uuid') }),
|
10
|
-
name: zod_1.z.string().min(1, (0, translate_1.translate)('model.evento.name.required')),
|
11
|
-
date: zod_1.z
|
12
|
-
.string({
|
13
|
-
required_error: (0, translate_1.translate)('model.evento.date.required'),
|
14
|
-
})
|
15
|
-
.date((0, translate_1.translate)('model.evento.date.invalid')),
|
16
|
-
location: zod_1.z.string().min(1, (0, translate_1.translate)('model.evento.location.required')),
|
17
|
-
etiquetaAsistioId: etiqueta_dto_1.etiquetaSchema.shape.id,
|
18
|
-
etiquetaAsistio: etiqueta_dto_1.etiquetaSchema,
|
19
|
-
etiquetaConfirmoId: etiqueta_dto_1.etiquetaSchema.shape.id,
|
20
|
-
etiquetaConfirmo: etiqueta_dto_1.etiquetaSchema,
|
21
|
-
eventoPadreId: zod_1.z
|
22
|
-
.string()
|
23
|
-
.uuid({
|
24
|
-
message: (0, translate_1.translate)('model.evento.id.uuid'),
|
25
|
-
})
|
26
|
-
.optional(),
|
27
|
-
created_at: zod_1.z.string().datetime(),
|
28
|
-
updated_at: zod_1.z.string().datetime(),
|
29
|
-
});
|
30
|
-
const eventoSchema = eventoSchemaBase.extend({
|
31
|
-
eventoPadre: zod_1.z.lazy(() => eventoSchema),
|
32
|
-
subEventos: zod_1.z.array(zod_1.z.lazy(() => eventoSchemaBase)),
|
33
|
-
});
|
34
|
-
class EventoDto extends (0, zod_nestjs_1.createZodDto)(eventoSchema) {
|
35
|
-
}
|
36
|
-
exports.EventoDto = EventoDto;
|
37
|
-
//# sourceMappingURL=evento.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dto/evento.dto';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './dto/grupo-etiqueta.dto';
|