expo-backend-types 0.3.0-EXPO-245.5 → 0.3.0-EXPO-245.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
261
262
  created_at: string;
262
263
  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;
281
282
  created_at: string;
282
283
  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;
313
314
  created_at: string;
314
315
  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;
339
340
  created_at: string;
340
341
  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;
446
447
  created_at: string;
447
448
  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;
466
467
  created_at: string;
467
468
  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;
498
499
  created_at: string;
499
500
  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;
524
525
  created_at: string;
525
526
  updated_at: string;
526
- username: string;
527
527
  filtroBase: {
528
528
  etiquetas: {
529
529
  id: string;
@@ -1,2 +1 @@
1
1
  export * from './dto/login.dto';
2
- export * from './dto/register.dto';
@@ -15,5 +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/login.dto"), exports);
18
- __exportStar(require("./dto/register.dto"), exports);
19
18
  //# 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;
10
11
  created_at: string;
11
12
  updated_at: string;
12
- content: string;
13
13
  createdBy: string;
14
14
  }, {
15
15
  id: string;
16
+ content: string;
16
17
  created_at: string;
17
18
  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;
29
30
  created_at: string;
30
31
  updated_at: string;
31
- content: string;
32
32
  createdBy: string;
33
33
  }, {
34
34
  id: string;
35
+ content: string;
35
36
  created_at: string;
36
37
  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");
4
6
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
7
  const zod_1 = require("zod");
6
8
  exports.comentarioSchema = zod_1.z.object({
7
9
  id: zod_1.z.string().uuid({
8
- message: 'El ID debe ser un UUID',
10
+ message: (0, translate_1.translate)('model.comentario.id.uuid'),
9
11
  }),
10
12
  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',
13
+ message: (0, translate_1.translate)('model.comentario.content.min'),
15
14
  }),
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
- }, "created_at" | "updated_at" | "password" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
261
+ }, "password" | "created_at" | "updated_at" | "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
- }, "created_at" | "updated_at" | "password" | "filtroBase">, "strip", import("zod").ZodTypeAny, {
354
+ }, "password" | "created_at" | "updated_at" | "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
- created_at: string;
85
- updated_at: string;
86
84
  username: string;
87
85
  password: string;
86
+ created_at: string;
87
+ updated_at: 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
- created_at: string;
106
- updated_at: string;
107
105
  username: string;
108
106
  password: string;
107
+ created_at: string;
108
+ updated_at: 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
- created_at: string;
208
- updated_at: string;
209
207
  username: string;
210
208
  password: string;
209
+ created_at: string;
210
+ updated_at: 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
- created_at: string;
229
- updated_at: string;
230
228
  username: string;
231
229
  password: string;
230
+ created_at: string;
231
+ updated_at: string;
232
232
  filtroBase: {
233
233
  etiquetas: {
234
234
  id: string;
@@ -3,24 +3,25 @@ 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");
6
7
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
7
8
  const zod_1 = require("zod");
8
9
  exports.cuentaSchema = zod_1.z.object({
9
10
  id: zod_1.z
10
11
  .string({
11
- required_error: 'El id es requerido',
12
+ required_error: (0, translate_1.translate)('model.cuenta.id.required'),
12
13
  })
13
14
  .uuid({
14
- message: 'El id debe ser un UUID',
15
+ message: (0, translate_1.translate)('model.cuenta.id.uuid'),
15
16
  }),
16
17
  username: zod_1.z.string({
17
- required_error: 'El nombre de usuario es requerido',
18
+ required_error: (0, translate_1.translate)('model.cuenta.username.required'),
18
19
  }),
19
20
  password: zod_1.z
20
21
  .string({
21
- required_error: 'La contraseña es requerida',
22
+ required_error: (0, translate_1.translate)('model.cuenta.password.required'),
22
23
  })
23
- .min(6, 'La contraseña debe tener al menos 6 caracteres'),
24
+ .min(6, (0, translate_1.translate)('model.cuenta.password.min')),
24
25
  isAdmin: zod_1.z.boolean().default(false),
25
26
  created_at: zod_1.z.string().datetime(),
26
27
  updated_at: zod_1.z.string().datetime(),
@@ -80,9 +80,9 @@ export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
80
80
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
81
81
  }, "password">, "strip", import("zod").ZodTypeAny, {
82
82
  id: string;
83
+ username: string;
83
84
  created_at: string;
84
85
  updated_at: string;
85
- username: string;
86
86
  isAdmin: boolean;
87
87
  filtroBase: {
88
88
  etiquetas: {
@@ -100,9 +100,9 @@ export declare const getMeResponseSchema: import("zod").ZodObject<Omit<{
100
100
  fcmToken: string[];
101
101
  }, {
102
102
  id: string;
103
+ username: string;
103
104
  created_at: string;
104
105
  updated_at: string;
105
- username: string;
106
106
  filtroBase: {
107
107
  etiquetas: {
108
108
  id: string;
@@ -201,9 +201,9 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
201
201
  fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
202
202
  }, "password">, "strip", import("zod").ZodTypeAny, {
203
203
  id: string;
204
+ username: string;
204
205
  created_at: string;
205
206
  updated_at: string;
206
- username: string;
207
207
  isAdmin: boolean;
208
208
  filtroBase: {
209
209
  etiquetas: {
@@ -221,9 +221,9 @@ declare const GetMeResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
221
221
  fcmToken: string[];
222
222
  }, {
223
223
  id: string;
224
+ username: string;
224
225
  created_at: string;
225
226
  updated_at: string;
226
- username: string;
227
227
  filtroBase: {
228
228
  etiquetas: {
229
229
  id: string;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetMeResponseDto = exports.getMeResponseSchema = void 0;
4
- const exports_1 = require("../../exports");
4
+ const cuenta_dto_1 = require("../dto/cuenta.dto");
5
5
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
- exports.getMeResponseSchema = exports_1.cuentaSchema.omit({
6
+ exports.getMeResponseSchema = cuenta_dto_1.cuentaSchema.omit({
7
7
  password: true,
8
8
  });
9
9
  class GetMeResponseDto extends (0, zod_nestjs_1.createZodDto)(exports.getMeResponseSchema) {
@@ -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;
48
47
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
49
48
  created_at: string;
50
49
  updated_at: string;
50
+ groupId: string;
51
51
  }, {
52
52
  id: string;
53
53
  name: string;
54
- groupId: string;
55
54
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
56
55
  created_at: string;
57
56
  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;
64
63
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
65
64
  created_at: string;
66
65
  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;
74
73
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
75
74
  created_at: string;
76
75
  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;
87
86
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
88
87
  created_at: string;
89
88
  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;
104
103
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
105
104
  created_at: string;
106
105
  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;
139
138
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
140
139
  created_at: string;
141
140
  updated_at: string;
141
+ groupId: string;
142
142
  }, {
143
143
  id: string;
144
144
  name: string;
145
- groupId: string;
146
145
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
147
146
  created_at: string;
148
147
  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;
155
154
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
156
155
  created_at: string;
157
156
  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;
165
164
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
166
165
  created_at: string;
167
166
  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;
178
177
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
179
178
  created_at: string;
180
179
  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;
195
194
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
196
195
  created_at: string;
197
196
  updated_at: string;
197
+ groupId: string;
198
198
  }[];
199
199
  active: boolean;
200
200
  };
@@ -1 +1,5 @@
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,4 +15,8 @@ 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);
18
22
  //# 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;
18
17
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
19
18
  created_at: string;
20
19
  updated_at: string;
20
+ groupId: string;
21
21
  }, {
22
22
  id: string;
23
23
  name: string;
24
- groupId: string;
25
24
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
26
25
  created_at: string;
27
26
  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;
45
44
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
46
45
  created_at: string;
47
46
  updated_at: string;
47
+ groupId: string;
48
48
  }, {
49
49
  id: string;
50
50
  name: string;
51
- groupId: string;
52
51
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
53
52
  created_at: string;
54
53
  updated_at: string;
54
+ groupId: string;
55
55
  }>>;
56
56
  export declare class EtiquetaDto extends EtiquetaDto_base {
57
57
  }
@@ -1,21 +1,25 @@
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");
4
6
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
7
  const zod_1 = require("zod");
6
8
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
7
9
  exports.etiquetaSchema = zod_1.z.object({
8
10
  id: zod_1.z.string().uuid({
9
- message: 'El ID debe ser un UUID',
11
+ message: (0, translate_1.translate)('model.etiqueta.id.uuid'),
10
12
  }),
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',
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'),
16
19
  }),
20
+ groupId: grupo_etiqueta_dto_1.grupoEtiquetaSchema.shape.id,
17
21
  type: zod_1.z.nativeEnum(prisma_schema_1.TipoEtiqueta, {
18
- message: 'El tipo de etiqueta no es válido',
22
+ message: (0, translate_1.translate)('model.etiqueta.type.invalid'),
19
23
  }),
20
24
  created_at: zod_1.z.string().datetime(),
21
25
  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;
24
23
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
25
24
  created_at: string;
26
25
  updated_at: string;
26
+ groupId: string;
27
27
  }, {
28
28
  id: string;
29
29
  name: string;
30
- groupId: string;
31
30
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
32
31
  created_at: string;
33
32
  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;
52
51
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
53
52
  created_at: string;
54
53
  updated_at: string;
54
+ groupId: string;
55
55
  }, {
56
56
  id: string;
57
57
  name: string;
58
- groupId: string;
59
58
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
60
59
  created_at: string;
61
60
  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;
70
71
  created_at: string;
71
72
  updated_at: string;
72
- location: string;
73
73
  etiquetaAsistioId: string;
74
74
  etiquetaAsistio: {
75
75
  id: string;
76
76
  name: string;
77
- groupId: string;
78
77
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
79
78
  created_at: string;
80
79
  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;
87
86
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
88
87
  created_at: string;
89
88
  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;
96
97
  created_at: string;
97
98
  updated_at: string;
98
- location: string;
99
99
  etiquetaAsistioId: string;
100
100
  etiquetaAsistio: {
101
101
  id: string;
102
102
  name: string;
103
- groupId: string;
104
103
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
105
104
  created_at: string;
106
105
  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;
113
112
  type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
114
113
  created_at: string;
115
114
  updated_at: string;
115
+ groupId: string;
116
116
  };
117
117
  eventoPadreId?: string | undefined;
118
118
  }>;
@@ -2,18 +2,28 @@
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");
5
6
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
6
7
  const zod_1 = require("zod");
7
8
  const eventoSchemaBase = zod_1.z.object({
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'),
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')),
12
17
  etiquetaAsistioId: etiqueta_dto_1.etiquetaSchema.shape.id,
13
18
  etiquetaAsistio: etiqueta_dto_1.etiquetaSchema,
14
19
  etiquetaConfirmoId: etiqueta_dto_1.etiquetaSchema.shape.id,
15
20
  etiquetaConfirmo: etiqueta_dto_1.etiquetaSchema,
16
- eventoPadreId: zod_1.z.string().uuid().optional(),
21
+ eventoPadreId: zod_1.z
22
+ .string()
23
+ .uuid({
24
+ message: (0, translate_1.translate)('model.evento.id.uuid'),
25
+ })
26
+ .optional(),
17
27
  created_at: zod_1.z.string().datetime(),
18
28
  updated_at: zod_1.z.string().datetime(),
19
29
  });
@@ -9,17 +9,17 @@ export declare const grupoEtiquetaSchema: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  name: string;
12
- created_at: string;
13
- updated_at: string;
14
12
  color: string;
15
13
  isExclusive: boolean;
14
+ created_at: string;
15
+ updated_at: string;
16
16
  }, {
17
17
  id: string;
18
18
  name: string;
19
- created_at: string;
20
- updated_at: string;
21
19
  color: string;
22
20
  isExclusive: boolean;
21
+ created_at: string;
22
+ updated_at: string;
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
- created_at: string;
35
- updated_at: string;
36
34
  color: string;
37
35
  isExclusive: boolean;
36
+ created_at: string;
37
+ updated_at: string;
38
38
  }, {
39
39
  id: string;
40
40
  name: string;
41
- created_at: string;
42
- updated_at: string;
43
41
  color: string;
44
42
  isExclusive: boolean;
43
+ created_at: string;
44
+ updated_at: string;
45
45
  }>>;
46
46
  export declare class GrupoEtiquetaDto extends GrupoEtiquetaDto_base {
47
47
  }
@@ -1,20 +1,21 @@
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");
4
5
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
6
  const zod_1 = require("zod");
6
7
  exports.grupoEtiquetaSchema = zod_1.z.object({
7
8
  id: zod_1.z.string().uuid({
8
- message: 'El ID debe ser un UUID',
9
+ message: (0, translate_1.translate)('model.grupoEtiqueta.id.uuid'),
9
10
  }),
10
11
  name: zod_1.z.string().min(1, {
11
- message: 'El nombre debe tener al menos 1 caracter',
12
+ message: (0, translate_1.translate)('model.grupoEtiqueta.name.required'),
12
13
  }),
13
14
  color: zod_1.z
14
15
  .string()
15
16
  .length(7)
16
17
  .startsWith('#', {
17
- message: 'El color debe tener el formato #ABCDEF',
18
+ message: (0, translate_1.translate)('model.grupoEtiqueta.color.invalid'),
18
19
  })
19
20
  .toLowerCase(),
20
21
  isExclusive: zod_1.z.boolean(),
@@ -1,20 +1,4 @@
1
1
  export interface paths {
2
- "/auth/register": {
3
- parameters: {
4
- query?: never;
5
- header?: never;
6
- path?: never;
7
- cookie?: never;
8
- };
9
- get?: never;
10
- put?: never;
11
- post: operations["AuthController_registerUser"];
12
- delete?: never;
13
- options?: never;
14
- head?: never;
15
- patch?: never;
16
- trace?: never;
17
- };
18
2
  "/auth/login": {
19
3
  parameters: {
20
4
  query?: never;
@@ -99,15 +83,6 @@ export interface paths {
99
83
  export type webhooks = Record<string, never>;
100
84
  export interface components {
101
85
  schemas: {
102
- RegisterDto: {
103
- username: string;
104
- password: string;
105
- isAdmin: boolean;
106
- };
107
- RegisterResponseDto: {
108
- username: string;
109
- isAdmin: boolean;
110
- };
111
86
  LoginDto: {
112
87
  username: string;
113
88
  password: string;
@@ -216,29 +191,6 @@ export interface components {
216
191
  }
217
192
  export type $defs = Record<string, never>;
218
193
  export interface operations {
219
- AuthController_registerUser: {
220
- parameters: {
221
- query?: never;
222
- header?: never;
223
- path?: never;
224
- cookie?: never;
225
- };
226
- requestBody: {
227
- content: {
228
- "application/json": components["schemas"]["RegisterDto"];
229
- };
230
- };
231
- responses: {
232
- 201: {
233
- headers: {
234
- [name: string]: unknown;
235
- };
236
- content: {
237
- "application/json": components["schemas"]["RegisterResponseDto"];
238
- };
239
- };
240
- };
241
- };
242
194
  AuthController_loginUser: {
243
195
  parameters: {
244
196
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.3.0-EXPO-245.5",
3
+ "version": "0.3.0-EXPO-245.7",
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}/**/*.ts\" --fix",
26
+ "lint": "eslint \"{src,apps,libs,test,types}/**/*.ts\" --fix",
27
27
  "test": "jest",
28
28
  "test:watch": "jest --watch",
29
29
  "test:cov": "jest --coverage",
@@ -44,6 +44,7 @@
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",
47
48
  "json-to-pretty-yaml": "^1.2.2",
48
49
  "openapi3-ts": "^4.4.0",
49
50
  "patch-package": "^8.0.0",
@@ -1,357 +0,0 @@
1
- export declare const registerSchema: import("zod").ZodObject<Pick<{
2
- id: import("zod").ZodString;
3
- username: import("zod").ZodString;
4
- password: import("zod").ZodString;
5
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
6
- created_at: import("zod").ZodString;
7
- updated_at: import("zod").ZodString;
8
- filtroBase: import("zod").ZodObject<{
9
- etiquetas: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
10
- id: import("zod").ZodString;
11
- name: import("zod").ZodString;
12
- groupId: import("zod").ZodString;
13
- type: import("zod").ZodNativeEnum<{
14
- PERSONAL: "PERSONAL";
15
- EVENTO: "EVENTO";
16
- MODELO: "MODELO";
17
- TENTATIVA: "TENTATIVA";
18
- }>;
19
- created_at: import("zod").ZodString;
20
- updated_at: import("zod").ZodString;
21
- }, "id" | "name">, {
22
- grupo: import("zod").ZodObject<Pick<{
23
- id: import("zod").ZodString;
24
- name: import("zod").ZodString;
25
- color: import("zod").ZodString;
26
- isExclusive: import("zod").ZodBoolean;
27
- created_at: import("zod").ZodString;
28
- updated_at: import("zod").ZodString;
29
- }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
30
- id: string;
31
- color: string;
32
- isExclusive: boolean;
33
- }, {
34
- id: string;
35
- color: string;
36
- isExclusive: boolean;
37
- }>;
38
- }>, "strip", import("zod").ZodTypeAny, {
39
- id: string;
40
- name: string;
41
- grupo: {
42
- id: string;
43
- color: string;
44
- isExclusive: boolean;
45
- };
46
- }, {
47
- id: string;
48
- name: string;
49
- grupo: {
50
- id: string;
51
- color: string;
52
- isExclusive: boolean;
53
- };
54
- }>;
55
- active: import("zod").ZodBoolean;
56
- }, "strip", import("zod").ZodTypeAny, {
57
- etiquetas: {
58
- id: string;
59
- name: string;
60
- grupo: {
61
- id: string;
62
- color: string;
63
- isExclusive: boolean;
64
- };
65
- };
66
- active: boolean;
67
- }, {
68
- etiquetas: {
69
- id: string;
70
- name: string;
71
- grupo: {
72
- id: string;
73
- color: string;
74
- isExclusive: boolean;
75
- };
76
- };
77
- active: boolean;
78
- }>;
79
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
80
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
81
- }, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
82
- username: string;
83
- password: string;
84
- isAdmin: boolean;
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, {
146
- etiquetas: {
147
- id: string;
148
- name: string;
149
- grupo: {
150
- id: string;
151
- color: string;
152
- isExclusive: boolean;
153
- };
154
- };
155
- active: boolean;
156
- }, {
157
- etiquetas: {
158
- id: string;
159
- name: string;
160
- grupo: {
161
- id: string;
162
- color: string;
163
- isExclusive: boolean;
164
- };
165
- };
166
- active: boolean;
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;
177
- isAdmin?: boolean | undefined;
178
- }>>;
179
- export declare class RegisterDto extends RegisterDto_base {
180
- }
181
- export declare const registerResponseSchema: import("zod").ZodObject<Omit<Pick<{
182
- id: import("zod").ZodString;
183
- username: import("zod").ZodString;
184
- password: import("zod").ZodString;
185
- isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
186
- created_at: import("zod").ZodString;
187
- updated_at: import("zod").ZodString;
188
- filtroBase: import("zod").ZodObject<{
189
- etiquetas: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
190
- id: import("zod").ZodString;
191
- name: import("zod").ZodString;
192
- groupId: import("zod").ZodString;
193
- type: import("zod").ZodNativeEnum<{
194
- PERSONAL: "PERSONAL";
195
- EVENTO: "EVENTO";
196
- MODELO: "MODELO";
197
- TENTATIVA: "TENTATIVA";
198
- }>;
199
- created_at: import("zod").ZodString;
200
- updated_at: import("zod").ZodString;
201
- }, "id" | "name">, {
202
- grupo: import("zod").ZodObject<Pick<{
203
- id: import("zod").ZodString;
204
- name: import("zod").ZodString;
205
- color: import("zod").ZodString;
206
- isExclusive: import("zod").ZodBoolean;
207
- created_at: import("zod").ZodString;
208
- updated_at: import("zod").ZodString;
209
- }, "id" | "color" | "isExclusive">, "strip", import("zod").ZodTypeAny, {
210
- id: string;
211
- color: string;
212
- isExclusive: boolean;
213
- }, {
214
- id: string;
215
- color: string;
216
- isExclusive: boolean;
217
- }>;
218
- }>, "strip", import("zod").ZodTypeAny, {
219
- id: string;
220
- name: string;
221
- grupo: {
222
- id: string;
223
- color: string;
224
- isExclusive: boolean;
225
- };
226
- }, {
227
- id: string;
228
- name: string;
229
- grupo: {
230
- id: string;
231
- color: string;
232
- isExclusive: boolean;
233
- };
234
- }>;
235
- active: import("zod").ZodBoolean;
236
- }, "strip", import("zod").ZodTypeAny, {
237
- etiquetas: {
238
- id: string;
239
- name: string;
240
- grupo: {
241
- id: string;
242
- color: string;
243
- isExclusive: boolean;
244
- };
245
- };
246
- active: boolean;
247
- }, {
248
- etiquetas: {
249
- id: string;
250
- name: string;
251
- grupo: {
252
- id: string;
253
- color: string;
254
- isExclusive: boolean;
255
- };
256
- };
257
- active: boolean;
258
- }>;
259
- filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
260
- fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
261
- }, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
262
- username: string;
263
- isAdmin: boolean;
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, {
324
- etiquetas: {
325
- id: string;
326
- name: string;
327
- grupo: {
328
- id: string;
329
- color: string;
330
- isExclusive: boolean;
331
- };
332
- };
333
- active: boolean;
334
- }, {
335
- etiquetas: {
336
- id: string;
337
- name: string;
338
- grupo: {
339
- id: string;
340
- color: string;
341
- isExclusive: boolean;
342
- };
343
- };
344
- active: boolean;
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;
353
- isAdmin?: boolean | undefined;
354
- }>>;
355
- export declare class RegisterResponseDto extends RegisterResponseDto_base {
356
- }
357
- export {};
@@ -1,20 +0,0 @@
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