expo-backend-types 0.3.0-EXPO-245.8 → 0.3.0-EXPO-245.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -258,9 +258,9 @@ export declare const loginResponseSchema: z.ZodObject<{
258
258
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
259
259
  }, "password">, "strip", z.ZodTypeAny, {
260
260
  id: string;
261
- username: string;
262
261
  created_at: string;
263
262
  updated_at: string;
263
+ username: string;
264
264
  isAdmin: boolean;
265
265
  filtroBase: {
266
266
  etiquetas: {
@@ -278,9 +278,9 @@ export declare const loginResponseSchema: z.ZodObject<{
278
278
  fcmToken: string[];
279
279
  }, {
280
280
  id: string;
281
- username: string;
282
281
  created_at: string;
283
282
  updated_at: string;
283
+ username: string;
284
284
  filtroBase: {
285
285
  etiquetas: {
286
286
  id: string;
@@ -310,9 +310,9 @@ export declare const loginResponseSchema: z.ZodObject<{
310
310
  }, "strip", z.ZodTypeAny, {
311
311
  user: {
312
312
  id: string;
313
- username: string;
314
313
  created_at: string;
315
314
  updated_at: string;
315
+ username: string;
316
316
  isAdmin: boolean;
317
317
  filtroBase: {
318
318
  etiquetas: {
@@ -336,9 +336,9 @@ export declare const loginResponseSchema: z.ZodObject<{
336
336
  }, {
337
337
  user: {
338
338
  id: string;
339
- username: string;
340
339
  created_at: string;
341
340
  updated_at: string;
341
+ username: string;
342
342
  filtroBase: {
343
343
  etiquetas: {
344
344
  id: string;
@@ -443,9 +443,9 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
443
443
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
444
444
  }, "password">, "strip", z.ZodTypeAny, {
445
445
  id: string;
446
- username: string;
447
446
  created_at: string;
448
447
  updated_at: string;
448
+ username: string;
449
449
  isAdmin: boolean;
450
450
  filtroBase: {
451
451
  etiquetas: {
@@ -463,9 +463,9 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
463
463
  fcmToken: string[];
464
464
  }, {
465
465
  id: string;
466
- username: string;
467
466
  created_at: string;
468
467
  updated_at: string;
468
+ username: string;
469
469
  filtroBase: {
470
470
  etiquetas: {
471
471
  id: string;
@@ -495,9 +495,9 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
495
495
  }, "strip", z.ZodTypeAny, {
496
496
  user: {
497
497
  id: string;
498
- username: string;
499
498
  created_at: string;
500
499
  updated_at: string;
500
+ username: string;
501
501
  isAdmin: boolean;
502
502
  filtroBase: {
503
503
  etiquetas: {
@@ -521,9 +521,9 @@ declare const LoginResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
521
521
  }, {
522
522
  user: {
523
523
  id: string;
524
- username: string;
525
524
  created_at: string;
526
525
  updated_at: string;
526
+ username: string;
527
527
  filtroBase: {
528
528
  etiquetas: {
529
529
  id: string;
@@ -1,4 +1,4 @@
1
- export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
1
+ export declare const registerSchema: import("zod").ZodObject<Pick<{
2
2
  id: import("zod").ZodString;
3
3
  username: import("zod").ZodString;
4
4
  password: import("zod").ZodString;
@@ -78,13 +78,71 @@ export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
78
78
  }>;
79
79
  filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
80
80
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
81
- }, "password">, "strip", import("zod").ZodTypeAny, {
82
- id: string;
81
+ }, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
83
82
  username: string;
84
- created_at: string;
85
- updated_at: string;
83
+ password: string;
86
84
  isAdmin: boolean;
87
- filtroBase: {
85
+ }, {
86
+ username: string;
87
+ password: string;
88
+ isAdmin?: boolean | undefined;
89
+ }>;
90
+ declare const RegisterDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Pick<{
91
+ id: import("zod").ZodString;
92
+ username: import("zod").ZodString;
93
+ password: import("zod").ZodString;
94
+ isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
95
+ created_at: import("zod").ZodString;
96
+ updated_at: import("zod").ZodString;
97
+ filtroBase: import("zod").ZodObject<{
98
+ etiquetas: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
99
+ id: import("zod").ZodString;
100
+ name: import("zod").ZodString;
101
+ groupId: import("zod").ZodString;
102
+ type: import("zod").ZodNativeEnum<{
103
+ PERSONAL: "PERSONAL";
104
+ EVENTO: "EVENTO";
105
+ MODELO: "MODELO";
106
+ TENTATIVA: "TENTATIVA";
107
+ }>;
108
+ created_at: import("zod").ZodString;
109
+ updated_at: import("zod").ZodString;
110
+ }, "id" | "name">, {
111
+ grupo: import("zod").ZodObject<Pick<{
112
+ id: import("zod").ZodString;
113
+ name: import("zod").ZodString;
114
+ color: import("zod").ZodString;
115
+ isExclusive: import("zod").ZodBoolean;
116
+ created_at: import("zod").ZodString;
117
+ updated_at: import("zod").ZodString;
118
+ }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
119
+ id: string;
120
+ color: string;
121
+ isExclusive: boolean;
122
+ }, {
123
+ id: string;
124
+ color: string;
125
+ isExclusive: boolean;
126
+ }>;
127
+ }>, "strip", import("zod").ZodTypeAny, {
128
+ id: string;
129
+ name: string;
130
+ grupo: {
131
+ id: string;
132
+ color: string;
133
+ isExclusive: boolean;
134
+ };
135
+ }, {
136
+ id: string;
137
+ name: string;
138
+ grupo: {
139
+ id: string;
140
+ color: string;
141
+ isExclusive: boolean;
142
+ };
143
+ }>;
144
+ active: import("zod").ZodBoolean;
145
+ }, "strip", import("zod").ZodTypeAny, {
88
146
  etiquetas: {
89
147
  id: string;
90
148
  name: string;
@@ -95,15 +153,7 @@ export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
95
153
  };
96
154
  };
97
155
  active: boolean;
98
- };
99
- filtroBaseActivo: boolean;
100
- fcmToken: string[];
101
- }, {
102
- id: string;
103
- username: string;
104
- created_at: string;
105
- updated_at: string;
106
- filtroBase: {
156
+ }, {
107
157
  etiquetas: {
108
158
  id: string;
109
159
  name: string;
@@ -114,12 +164,21 @@ export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
114
164
  };
115
165
  };
116
166
  active: boolean;
117
- };
167
+ }>;
168
+ filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
169
+ fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
170
+ }, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
171
+ username: string;
172
+ password: string;
173
+ isAdmin: boolean;
174
+ }, {
175
+ username: string;
176
+ password: string;
118
177
  isAdmin?: boolean | undefined;
119
- filtroBaseActivo?: boolean | undefined;
120
- fcmToken?: string[] | undefined;
121
- }>;
122
- declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<{
178
+ }>>;
179
+ export declare class RegisterDto extends RegisterDto_base {
180
+ }
181
+ export declare const registerResponseSchema: import("zod").ZodObject<Omit<Pick<{
123
182
  id: import("zod").ZodString;
124
183
  username: import("zod").ZodString;
125
184
  password: import("zod").ZodString;
@@ -199,13 +258,69 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
199
258
  }>;
200
259
  filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
201
260
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
202
- }, "password">, "strip", import("zod").ZodTypeAny, {
203
- id: string;
261
+ }, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
204
262
  username: string;
205
- created_at: string;
206
- updated_at: string;
207
263
  isAdmin: boolean;
208
- filtroBase: {
264
+ }, {
265
+ username: string;
266
+ isAdmin?: boolean | undefined;
267
+ }>;
268
+ declare const RegisterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<Omit<Pick<{
269
+ id: import("zod").ZodString;
270
+ username: import("zod").ZodString;
271
+ password: import("zod").ZodString;
272
+ isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
273
+ created_at: import("zod").ZodString;
274
+ updated_at: import("zod").ZodString;
275
+ filtroBase: import("zod").ZodObject<{
276
+ etiquetas: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
277
+ id: import("zod").ZodString;
278
+ name: import("zod").ZodString;
279
+ groupId: import("zod").ZodString;
280
+ type: import("zod").ZodNativeEnum<{
281
+ PERSONAL: "PERSONAL";
282
+ EVENTO: "EVENTO";
283
+ MODELO: "MODELO";
284
+ TENTATIVA: "TENTATIVA";
285
+ }>;
286
+ created_at: import("zod").ZodString;
287
+ updated_at: import("zod").ZodString;
288
+ }, "id" | "name">, {
289
+ grupo: import("zod").ZodObject<Pick<{
290
+ id: import("zod").ZodString;
291
+ name: import("zod").ZodString;
292
+ color: import("zod").ZodString;
293
+ isExclusive: import("zod").ZodBoolean;
294
+ created_at: import("zod").ZodString;
295
+ updated_at: import("zod").ZodString;
296
+ }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
297
+ id: string;
298
+ color: string;
299
+ isExclusive: boolean;
300
+ }, {
301
+ id: string;
302
+ color: string;
303
+ isExclusive: boolean;
304
+ }>;
305
+ }>, "strip", import("zod").ZodTypeAny, {
306
+ id: string;
307
+ name: string;
308
+ grupo: {
309
+ id: string;
310
+ color: string;
311
+ isExclusive: boolean;
312
+ };
313
+ }, {
314
+ id: string;
315
+ name: string;
316
+ grupo: {
317
+ id: string;
318
+ color: string;
319
+ isExclusive: boolean;
320
+ };
321
+ }>;
322
+ active: import("zod").ZodBoolean;
323
+ }, "strip", import("zod").ZodTypeAny, {
209
324
  etiquetas: {
210
325
  id: string;
211
326
  name: string;
@@ -216,15 +331,7 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
216
331
  };
217
332
  };
218
333
  active: boolean;
219
- };
220
- filtroBaseActivo: boolean;
221
- fcmToken: string[];
222
- }, {
223
- id: string;
224
- username: string;
225
- created_at: string;
226
- updated_at: string;
227
- filtroBase: {
334
+ }, {
228
335
  etiquetas: {
229
336
  id: string;
230
337
  name: string;
@@ -235,11 +342,16 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
235
342
  };
236
343
  };
237
344
  active: boolean;
238
- };
345
+ }>;
346
+ filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
347
+ fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
348
+ }, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
349
+ username: string;
350
+ isAdmin: boolean;
351
+ }, {
352
+ username: string;
239
353
  isAdmin?: boolean | undefined;
240
- filtroBaseActivo?: boolean | undefined;
241
- fcmToken?: string[] | undefined;
242
354
  }>>;
243
- export declare class GetMeResponseDto extends GetMeResponseDto_base {
355
+ export declare class RegisterResponseDto extends RegisterResponseDto_base {
244
356
  }
245
357
  export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterResponseDto = exports.registerResponseSchema = exports.RegisterDto = exports.registerSchema = void 0;
4
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
+ const cuenta_dto_1 = require("../../cuenta/dto/cuenta.dto");
6
+ exports.registerSchema = cuenta_dto_1.cuentaSchema.pick({
7
+ username: true,
8
+ password: true,
9
+ isAdmin: true,
10
+ });
11
+ class RegisterDto extends (0, zod_nestjs_1.createZodDto)(exports.registerSchema) {
12
+ }
13
+ exports.RegisterDto = RegisterDto;
14
+ exports.registerResponseSchema = exports.registerSchema.omit({
15
+ password: true,
16
+ });
17
+ class RegisterResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.registerResponseSchema) {
18
+ }
19
+ exports.RegisterResponseDto = RegisterResponseDto;
20
+ //# sourceMappingURL=register.dto.js.map
@@ -1 +1,2 @@
1
1
  export * from './dto/login.dto';
2
+ export * from './dto/register.dto';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto/login.dto"), exports);
18
+ __exportStar(require("./dto/register.dto"), exports);
18
19
  //# sourceMappingURL=exports.js.map
@@ -7,15 +7,15 @@ export declare const comentarioSchema: z.ZodObject<{
7
7
  updated_at: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  id: string;
10
- content: string;
11
10
  created_at: string;
12
11
  updated_at: string;
12
+ content: string;
13
13
  createdBy: string;
14
14
  }, {
15
15
  id: string;
16
- content: string;
17
16
  created_at: string;
18
17
  updated_at: string;
18
+ content: string;
19
19
  createdBy: string;
20
20
  }>;
21
21
  declare const ComentarioDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -26,15 +26,15 @@ declare const ComentarioDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.Z
26
26
  updated_at: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  id: string;
29
- content: string;
30
29
  created_at: string;
31
30
  updated_at: string;
31
+ content: string;
32
32
  createdBy: string;
33
33
  }, {
34
34
  id: string;
35
- content: string;
36
35
  created_at: string;
37
36
  updated_at: string;
37
+ content: string;
38
38
  createdBy: string;
39
39
  }>>;
40
40
  export declare class ComentarioDto extends ComentarioDto_base {
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ComentarioDto = exports.comentarioSchema = void 0;
4
- const exports_1 = require("../../exports");
5
- const translate_1 = require("../../i18n/translate");
6
4
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
5
  const zod_1 = require("zod");
8
6
  exports.comentarioSchema = zod_1.z.object({
9
7
  id: zod_1.z.string().uuid({
10
- message: (0, translate_1.translate)('model.comentario.id.uuid'),
8
+ message: 'El ID debe ser un UUID',
11
9
  }),
12
10
  content: zod_1.z.string().min(1, {
13
- message: (0, translate_1.translate)('model.comentario.content.min'),
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',
14
15
  }),
15
- createdBy: exports_1.cuentaSchema.shape.id,
16
16
  created_at: zod_1.z.string().datetime(),
17
17
  updated_at: zod_1.z.string().datetime(),
18
18
  });
@@ -258,7 +258,7 @@ export declare const createCuentaResponseSchema: import("zod").ZodObject<Omit<{
258
258
  }>;
259
259
  filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
260
260
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
261
- }, "password" | "created_at" | "updated_at" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
261
+ }, "created_at" | "updated_at" | "password" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
262
262
  id: string;
263
263
  username: string;
264
264
  isAdmin: boolean;
@@ -351,7 +351,7 @@ declare const CreateCuentaResponseDto_base: import("@anatine/zod-nestjs").ZodDto
351
351
  }>;
352
352
  filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
353
353
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
354
- }, "password" | "created_at" | "updated_at" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
354
+ }, "created_at" | "updated_at" | "password" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
355
355
  id: string;
356
356
  username: string;
357
357
  isAdmin: boolean;
@@ -81,10 +81,10 @@ export declare const cuentaSchema: z.ZodObject<{
81
81
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  id: string;
84
- username: string;
85
- password: string;
86
84
  created_at: string;
87
85
  updated_at: string;
86
+ username: string;
87
+ password: string;
88
88
  isAdmin: boolean;
89
89
  filtroBase: {
90
90
  etiquetas: {
@@ -102,10 +102,10 @@ export declare const cuentaSchema: z.ZodObject<{
102
102
  fcmToken: string[];
103
103
  }, {
104
104
  id: string;
105
- username: string;
106
- password: string;
107
105
  created_at: string;
108
106
  updated_at: string;
107
+ username: string;
108
+ password: string;
109
109
  filtroBase: {
110
110
  etiquetas: {
111
111
  id: string;
@@ -204,10 +204,10 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
204
204
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
205
205
  }, "strip", z.ZodTypeAny, {
206
206
  id: string;
207
- username: string;
208
- password: string;
209
207
  created_at: string;
210
208
  updated_at: string;
209
+ username: string;
210
+ password: string;
211
211
  isAdmin: boolean;
212
212
  filtroBase: {
213
213
  etiquetas: {
@@ -225,10 +225,10 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
225
225
  fcmToken: string[];
226
226
  }, {
227
227
  id: string;
228
- username: string;
229
- password: string;
230
228
  created_at: string;
231
229
  updated_at: string;
230
+ username: string;
231
+ password: string;
232
232
  filtroBase: {
233
233
  etiquetas: {
234
234
  id: string;
@@ -3,25 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CuentaDto = exports.cuentaSchema = void 0;
4
4
  const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.dto");
5
5
  const grupo_etiqueta_dto_1 = require("../../grupo-etiqueta/dto/grupo-etiqueta.dto");
6
- const translate_1 = require("../../i18n/translate");
7
6
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
8
7
  const zod_1 = require("zod");
9
8
  exports.cuentaSchema = zod_1.z.object({
10
9
  id: zod_1.z
11
10
  .string({
12
- required_error: (0, translate_1.translate)('model.cuenta.id.required'),
11
+ required_error: 'El id es requerido',
13
12
  })
14
13
  .uuid({
15
- message: (0, translate_1.translate)('model.cuenta.id.uuid'),
14
+ message: 'El id debe ser un UUID',
16
15
  }),
17
16
  username: zod_1.z.string({
18
- required_error: (0, translate_1.translate)('model.cuenta.username.required'),
17
+ required_error: 'El nombre de usuario es requerido',
19
18
  }),
20
19
  password: zod_1.z
21
20
  .string({
22
- required_error: (0, translate_1.translate)('model.cuenta.password.required'),
21
+ required_error: 'La contraseña es requerida',
23
22
  })
24
- .min(6, (0, translate_1.translate)('model.cuenta.password.min')),
23
+ .min(6, 'La contraseña debe tener al menos 6 caracteres'),
25
24
  isAdmin: zod_1.z.boolean().default(false),
26
25
  created_at: zod_1.z.string().datetime(),
27
26
  updated_at: zod_1.z.string().datetime(),
@@ -44,36 +44,36 @@ export declare const updateFiltroBaseResponseSchema: z.ZodObject<{
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  id: string;
46
46
  name: string;
47
+ groupId: string;
47
48
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
48
49
  created_at: string;
49
50
  updated_at: string;
50
- groupId: string;
51
51
  }, {
52
52
  id: string;
53
53
  name: string;
54
+ groupId: string;
54
55
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
55
56
  created_at: string;
56
57
  updated_at: string;
57
- groupId: string;
58
58
  }>, "many">;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  etiquetas: {
61
61
  id: string;
62
62
  name: string;
63
+ groupId: string;
63
64
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
64
65
  created_at: string;
65
66
  updated_at: string;
66
- groupId: string;
67
67
  }[];
68
68
  active: boolean;
69
69
  }, {
70
70
  etiquetas: {
71
71
  id: string;
72
72
  name: string;
73
+ groupId: string;
73
74
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
74
75
  created_at: string;
75
76
  updated_at: string;
76
- groupId: string;
77
77
  }[];
78
78
  active: boolean;
79
79
  }>;
@@ -83,10 +83,10 @@ export declare const updateFiltroBaseResponseSchema: z.ZodObject<{
83
83
  etiquetas: {
84
84
  id: string;
85
85
  name: string;
86
+ groupId: string;
86
87
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
87
88
  created_at: string;
88
89
  updated_at: string;
89
- groupId: string;
90
90
  }[];
91
91
  active: boolean;
92
92
  };
@@ -100,10 +100,10 @@ export declare const updateFiltroBaseResponseSchema: z.ZodObject<{
100
100
  etiquetas: {
101
101
  id: string;
102
102
  name: string;
103
+ groupId: string;
103
104
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
104
105
  created_at: string;
105
106
  updated_at: string;
106
- groupId: string;
107
107
  }[];
108
108
  active: boolean;
109
109
  };
@@ -135,36 +135,36 @@ declare const UpdateFiltroBaseResponseDto_base: import("@anatine/zod-nestjs").Zo
135
135
  }, "strip", z.ZodTypeAny, {
136
136
  id: string;
137
137
  name: string;
138
+ groupId: string;
138
139
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
139
140
  created_at: string;
140
141
  updated_at: string;
141
- groupId: string;
142
142
  }, {
143
143
  id: string;
144
144
  name: string;
145
+ groupId: string;
145
146
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
146
147
  created_at: string;
147
148
  updated_at: string;
148
- groupId: string;
149
149
  }>, "many">;
150
150
  }, "strip", z.ZodTypeAny, {
151
151
  etiquetas: {
152
152
  id: string;
153
153
  name: string;
154
+ groupId: string;
154
155
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
155
156
  created_at: string;
156
157
  updated_at: string;
157
- groupId: string;
158
158
  }[];
159
159
  active: boolean;
160
160
  }, {
161
161
  etiquetas: {
162
162
  id: string;
163
163
  name: string;
164
+ groupId: string;
164
165
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
165
166
  created_at: string;
166
167
  updated_at: string;
167
- groupId: string;
168
168
  }[];
169
169
  active: boolean;
170
170
  }>;
@@ -174,10 +174,10 @@ declare const UpdateFiltroBaseResponseDto_base: import("@anatine/zod-nestjs").Zo
174
174
  etiquetas: {
175
175
  id: string;
176
176
  name: string;
177
+ groupId: string;
177
178
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
178
179
  created_at: string;
179
180
  updated_at: string;
180
- groupId: string;
181
181
  }[];
182
182
  active: boolean;
183
183
  };
@@ -191,10 +191,10 @@ declare const UpdateFiltroBaseResponseDto_base: import("@anatine/zod-nestjs").Zo
191
191
  etiquetas: {
192
192
  id: string;
193
193
  name: string;
194
+ groupId: string;
194
195
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
195
196
  created_at: string;
196
197
  updated_at: string;
197
- groupId: string;
198
198
  }[];
199
199
  active: boolean;
200
200
  };
@@ -1,5 +1 @@
1
1
  export * from './dto/cuenta.dto';
2
- export * from './dto/createCuenta.dto';
3
- export * from './dto/getFiltroBase.dto';
4
- export * from './dto/getMe.dto';
5
- export * from './dto/updateFiltroBase.dto';
@@ -15,8 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto/cuenta.dto"), exports);
18
- __exportStar(require("./dto/createCuenta.dto"), exports);
19
- __exportStar(require("./dto/getFiltroBase.dto"), exports);
20
- __exportStar(require("./dto/getMe.dto"), exports);
21
- __exportStar(require("./dto/updateFiltroBase.dto"), exports);
22
18
  //# sourceMappingURL=exports.js.map
@@ -14,17 +14,17 @@ export declare const etiquetaSchema: z.ZodObject<{
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  id: string;
16
16
  name: string;
17
+ groupId: string;
17
18
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
18
19
  created_at: string;
19
20
  updated_at: string;
20
- groupId: string;
21
21
  }, {
22
22
  id: string;
23
23
  name: string;
24
+ groupId: string;
24
25
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
25
26
  created_at: string;
26
27
  updated_at: string;
27
- groupId: string;
28
28
  }>;
29
29
  declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
30
30
  id: z.ZodString;
@@ -41,17 +41,17 @@ declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.Zod
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
43
  name: string;
44
+ groupId: string;
44
45
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
45
46
  created_at: string;
46
47
  updated_at: string;
47
- groupId: string;
48
48
  }, {
49
49
  id: string;
50
50
  name: string;
51
+ groupId: string;
51
52
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
52
53
  created_at: string;
53
54
  updated_at: string;
54
- groupId: string;
55
55
  }>>;
56
56
  export declare class EtiquetaDto extends EtiquetaDto_base {
57
57
  }
@@ -1,25 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
4
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
5
  const zod_1 = require("zod");
8
6
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
9
7
  exports.etiquetaSchema = zod_1.z.object({
10
8
  id: zod_1.z.string().uuid({
11
- message: (0, translate_1.translate)('model.etiqueta.id.uuid'),
9
+ message: 'El ID debe ser un UUID',
12
10
  }),
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'),
11
+ name: zod_1.z.string().min(1, {
12
+ message: 'El nombre debe tener al menos 1 caracter',
13
+ }),
14
+ groupId: zod_1.z.string().uuid({
15
+ message: 'Debes seleccionar un grupo de etiquetas',
19
16
  }),
20
- groupId: grupo_etiqueta_dto_1.grupoEtiquetaSchema.shape.id,
21
17
  type: zod_1.z.nativeEnum(prisma_schema_1.TipoEtiqueta, {
22
- message: (0, translate_1.translate)('model.etiqueta.type.invalid'),
18
+ message: 'El tipo de etiqueta no es válido',
23
19
  }),
24
20
  created_at: zod_1.z.string().datetime(),
25
21
  updated_at: zod_1.z.string().datetime(),
@@ -20,17 +20,17 @@ declare const eventoSchemaBase: z.ZodObject<{
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  id: string;
22
22
  name: string;
23
+ groupId: string;
23
24
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
24
25
  created_at: string;
25
26
  updated_at: string;
26
- groupId: string;
27
27
  }, {
28
28
  id: string;
29
29
  name: string;
30
+ groupId: string;
30
31
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
31
32
  created_at: string;
32
33
  updated_at: string;
33
- groupId: string;
34
34
  }>;
35
35
  etiquetaConfirmoId: z.ZodString;
36
36
  etiquetaConfirmo: z.ZodObject<{
@@ -48,17 +48,17 @@ declare const eventoSchemaBase: z.ZodObject<{
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  id: string;
50
50
  name: string;
51
+ groupId: string;
51
52
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
52
53
  created_at: string;
53
54
  updated_at: string;
54
- groupId: string;
55
55
  }, {
56
56
  id: string;
57
57
  name: string;
58
+ groupId: string;
58
59
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
59
60
  created_at: string;
60
61
  updated_at: string;
61
- groupId: string;
62
62
  }>;
63
63
  eventoPadreId: z.ZodOptional<z.ZodString>;
64
64
  created_at: z.ZodString;
@@ -67,52 +67,52 @@ declare const eventoSchemaBase: z.ZodObject<{
67
67
  id: string;
68
68
  name: string;
69
69
  date: string;
70
- location: string;
71
70
  created_at: string;
72
71
  updated_at: string;
72
+ location: string;
73
73
  etiquetaAsistioId: string;
74
74
  etiquetaAsistio: {
75
75
  id: string;
76
76
  name: string;
77
+ groupId: string;
77
78
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
78
79
  created_at: string;
79
80
  updated_at: string;
80
- groupId: string;
81
81
  };
82
82
  etiquetaConfirmoId: string;
83
83
  etiquetaConfirmo: {
84
84
  id: string;
85
85
  name: string;
86
+ groupId: string;
86
87
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
87
88
  created_at: string;
88
89
  updated_at: string;
89
- groupId: string;
90
90
  };
91
91
  eventoPadreId?: string | undefined;
92
92
  }, {
93
93
  id: string;
94
94
  name: string;
95
95
  date: string;
96
- location: string;
97
96
  created_at: string;
98
97
  updated_at: string;
98
+ location: string;
99
99
  etiquetaAsistioId: string;
100
100
  etiquetaAsistio: {
101
101
  id: string;
102
102
  name: string;
103
+ groupId: string;
103
104
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
104
105
  created_at: string;
105
106
  updated_at: string;
106
- groupId: string;
107
107
  };
108
108
  etiquetaConfirmoId: string;
109
109
  etiquetaConfirmo: {
110
110
  id: string;
111
111
  name: string;
112
+ groupId: string;
112
113
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
113
114
  created_at: string;
114
115
  updated_at: string;
115
- groupId: string;
116
116
  };
117
117
  eventoPadreId?: string | undefined;
118
118
  }>;
@@ -2,28 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventoDto = void 0;
4
4
  const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.dto");
5
- const translate_1 = require("../../i18n/translate");
6
5
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
6
  const zod_1 = require("zod");
8
7
  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')),
8
+ id: zod_1.z.string().uuid({ message: 'El ID debe ser un UUID' }),
9
+ name: zod_1.z.string().min(1, 'El nombre es requerido'),
10
+ date: zod_1.z.string().min(1, 'La fecha es requerida'),
11
+ location: zod_1.z.string().min(1, 'La ubicación es requerida'),
17
12
  etiquetaAsistioId: etiqueta_dto_1.etiquetaSchema.shape.id,
18
13
  etiquetaAsistio: etiqueta_dto_1.etiquetaSchema,
19
14
  etiquetaConfirmoId: etiqueta_dto_1.etiquetaSchema.shape.id,
20
15
  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(),
16
+ eventoPadreId: zod_1.z.string().uuid().optional(),
27
17
  created_at: zod_1.z.string().datetime(),
28
18
  updated_at: zod_1.z.string().datetime(),
29
19
  });
@@ -9,17 +9,17 @@ export declare const grupoEtiquetaSchema: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  name: string;
12
- color: string;
13
- isExclusive: boolean;
14
12
  created_at: string;
15
13
  updated_at: string;
14
+ color: string;
15
+ isExclusive: boolean;
16
16
  }, {
17
17
  id: string;
18
18
  name: string;
19
- color: string;
20
- isExclusive: boolean;
21
19
  created_at: string;
22
20
  updated_at: string;
21
+ color: string;
22
+ isExclusive: boolean;
23
23
  }>;
24
24
  declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
25
25
  id: z.ZodString;
@@ -31,17 +31,17 @@ declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  id: string;
33
33
  name: string;
34
- color: string;
35
- isExclusive: boolean;
36
34
  created_at: string;
37
35
  updated_at: string;
36
+ color: string;
37
+ isExclusive: boolean;
38
38
  }, {
39
39
  id: string;
40
40
  name: string;
41
- color: string;
42
- isExclusive: boolean;
43
41
  created_at: string;
44
42
  updated_at: string;
43
+ color: string;
44
+ isExclusive: boolean;
45
45
  }>>;
46
46
  export declare class GrupoEtiquetaDto extends GrupoEtiquetaDto_base {
47
47
  }
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GrupoEtiquetaDto = exports.grupoEtiquetaSchema = void 0;
4
- const translate_1 = require("../../i18n/translate");
5
4
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
5
  const zod_1 = require("zod");
7
6
  exports.grupoEtiquetaSchema = zod_1.z.object({
8
7
  id: zod_1.z.string().uuid({
9
- message: (0, translate_1.translate)('model.grupoEtiqueta.id.uuid'),
8
+ message: 'El ID debe ser un UUID',
10
9
  }),
11
10
  name: zod_1.z.string().min(1, {
12
- message: (0, translate_1.translate)('model.grupoEtiqueta.name.required'),
11
+ message: 'El nombre debe tener al menos 1 caracter',
13
12
  }),
14
13
  color: zod_1.z
15
14
  .string()
16
15
  .length(7)
17
16
  .startsWith('#', {
18
- message: (0, translate_1.translate)('model.grupoEtiqueta.color.invalid'),
17
+ message: 'El color debe tener el formato #ABCDEF',
19
18
  })
20
19
  .toLowerCase(),
21
20
  isExclusive: zod_1.z.boolean(),
@@ -1,5 +1,5 @@
1
1
  export interface paths {
2
- "/auth/login": {
2
+ "/auth/register": {
3
3
  parameters: {
4
4
  query?: never;
5
5
  header?: never;
@@ -8,14 +8,14 @@ export interface paths {
8
8
  };
9
9
  get?: never;
10
10
  put?: never;
11
- post: operations["AuthController_loginUser"];
11
+ post: operations["AuthController_registerUser"];
12
12
  delete?: never;
13
13
  options?: never;
14
14
  head?: never;
15
15
  patch?: never;
16
16
  trace?: never;
17
17
  };
18
- "/auth/refresh": {
18
+ "/auth/login": {
19
19
  parameters: {
20
20
  query?: never;
21
21
  header?: never;
@@ -24,14 +24,14 @@ export interface paths {
24
24
  };
25
25
  get?: never;
26
26
  put?: never;
27
- post: operations["AuthController_refreshToken"];
27
+ post: operations["AuthController_loginUser"];
28
28
  delete?: never;
29
29
  options?: never;
30
30
  head?: never;
31
31
  patch?: never;
32
32
  trace?: never;
33
33
  };
34
- "/cuenta/create": {
34
+ "/auth/refresh": {
35
35
  parameters: {
36
36
  query?: never;
37
37
  header?: never;
@@ -40,49 +40,58 @@ export interface paths {
40
40
  };
41
41
  get?: never;
42
42
  put?: never;
43
- post: operations["CuentaController_createCuenta"];
43
+ post: operations["AuthController_refreshToken"];
44
44
  delete?: never;
45
45
  options?: never;
46
46
  head?: never;
47
47
  patch?: never;
48
48
  trace?: never;
49
49
  };
50
- "/cuenta/filtro-base": {
50
+ "/cuenta/create": {
51
51
  parameters: {
52
52
  query?: never;
53
53
  header?: never;
54
54
  path?: never;
55
55
  cookie?: never;
56
56
  };
57
- get: operations["CuentaController_getFiltroBase"];
57
+ get?: never;
58
58
  put?: never;
59
- post?: never;
59
+ post: operations["CuentaController_createCuenta"];
60
60
  delete?: never;
61
61
  options?: never;
62
62
  head?: never;
63
- patch: operations["CuentaController_updateFiltroBase"];
63
+ patch?: never;
64
64
  trace?: never;
65
65
  };
66
- "/cuenta/me": {
66
+ "/cuenta/filtro-base": {
67
67
  parameters: {
68
68
  query?: never;
69
69
  header?: never;
70
70
  path?: never;
71
71
  cookie?: never;
72
72
  };
73
- get: operations["CuentaController_getMe"];
73
+ get: operations["CuentaController_getFiltroBase"];
74
74
  put?: never;
75
75
  post?: never;
76
76
  delete?: never;
77
77
  options?: never;
78
78
  head?: never;
79
- patch?: never;
79
+ patch: operations["CuentaController_updateFiltroBase"];
80
80
  trace?: never;
81
81
  };
82
82
  }
83
83
  export type webhooks = Record<string, never>;
84
84
  export interface components {
85
85
  schemas: {
86
+ RegisterDto: {
87
+ username: string;
88
+ password: string;
89
+ isAdmin: boolean;
90
+ };
91
+ RegisterResponseDto: {
92
+ username: string;
93
+ isAdmin: boolean;
94
+ };
86
95
  LoginDto: {
87
96
  username: string;
88
97
  password: string;
@@ -161,27 +170,6 @@ export interface components {
161
170
  };
162
171
  }[];
163
172
  };
164
- GetMeResponseDto: {
165
- id: string;
166
- username: string;
167
- isAdmin: boolean;
168
- created_at: string;
169
- updated_at: string;
170
- filtroBase: {
171
- etiquetas?: {
172
- id: string;
173
- name: string;
174
- grupo: {
175
- id: string;
176
- color: string;
177
- isExclusive: boolean;
178
- };
179
- };
180
- active?: boolean;
181
- };
182
- filtroBaseActivo: boolean;
183
- fcmToken: string[];
184
- };
185
173
  };
186
174
  responses: never;
187
175
  parameters: never;
@@ -191,6 +179,29 @@ export interface components {
191
179
  }
192
180
  export type $defs = Record<string, never>;
193
181
  export interface operations {
182
+ AuthController_registerUser: {
183
+ parameters: {
184
+ query?: never;
185
+ header?: never;
186
+ path?: never;
187
+ cookie?: never;
188
+ };
189
+ requestBody: {
190
+ content: {
191
+ "application/json": components["schemas"]["RegisterDto"];
192
+ };
193
+ };
194
+ responses: {
195
+ 201: {
196
+ headers: {
197
+ [name: string]: unknown;
198
+ };
199
+ content: {
200
+ "application/json": components["schemas"]["RegisterResponseDto"];
201
+ };
202
+ };
203
+ };
204
+ };
194
205
  AuthController_loginUser: {
195
206
  parameters: {
196
207
  query?: never;
@@ -296,23 +307,4 @@ export interface operations {
296
307
  };
297
308
  };
298
309
  };
299
- CuentaController_getMe: {
300
- parameters: {
301
- query?: never;
302
- header?: never;
303
- path?: never;
304
- cookie?: never;
305
- };
306
- requestBody?: never;
307
- responses: {
308
- 200: {
309
- headers: {
310
- [name: string]: unknown;
311
- };
312
- content: {
313
- "application/json": components["schemas"]["GetMeResponseDto"];
314
- };
315
- };
316
- };
317
- };
318
310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.3.0-EXPO-245.8",
3
+ "version": "0.3.0-EXPO-245.4",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -23,7 +23,7 @@
23
23
  "dev": "npx prisma generate && nest start --watch",
24
24
  "start:debug": "nest start --debug --watch",
25
25
  "start:prod": "node dist/src/main",
26
- "lint": "eslint \"{src,apps,libs,test,types}/**/*.ts\" --fix",
26
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
27
27
  "test": "jest",
28
28
  "test:watch": "jest --watch",
29
29
  "test:cov": "jest --coverage",
@@ -44,7 +44,6 @@
44
44
  "@nestjs/swagger": "^7.3.1",
45
45
  "@prisma/client": "^5.14.0",
46
46
  "bcrypt": "^5.1.1",
47
- "i18n-js": "^4.4.3",
48
47
  "json-to-pretty-yaml": "^1.2.2",
49
48
  "openapi3-ts": "^4.4.0",
50
49
  "patch-package": "^8.0.0",
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMeResponseDto = exports.getMeResponseSchema = void 0;
4
- const cuenta_dto_1 = require("../dto/cuenta.dto");
5
- const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
- exports.getMeResponseSchema = cuenta_dto_1.cuentaSchema.omit({
7
- password: true,
8
- });
9
- class GetMeResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.getMeResponseSchema) {
10
- }
11
- exports.GetMeResponseDto = GetMeResponseDto;
12
- //# sourceMappingURL=getMe.dto.js.map