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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/auth/dto/login.dto.d.ts +392 -12
  2. package/dist/src/auth/dto/register.dto.d.ts +284 -0
  3. package/dist/src/cuenta/dto/createCuenta.dto.d.ts +369 -0
  4. package/dist/src/cuenta/dto/createCuenta.dto.js +23 -0
  5. package/dist/src/cuenta/dto/cuenta.dto.d.ts +198 -8
  6. package/dist/src/cuenta/dto/cuenta.dto.js +17 -0
  7. package/dist/src/cuenta/dto/getFiltroBase.dto.d.ts +154 -0
  8. package/dist/src/cuenta/dto/getFiltroBase.dto.js +29 -0
  9. package/dist/src/cuenta/dto/updateFiltroBase.dto.d.ts +208 -0
  10. package/dist/src/cuenta/dto/updateFiltroBase.dto.js +28 -0
  11. package/dist/src/etiqueta/dto/etiqueta.dto.d.ts +18 -18
  12. package/dist/src/etiqueta/dto/etiqueta.dto.js +4 -4
  13. package/dist/src/evento/dto/evento.dto.d.ts +126 -0
  14. package/dist/src/evento/dto/evento.dto.js +27 -0
  15. package/dist/src/evento/exports.d.ts +1 -0
  16. package/dist/src/evento/exports.js +18 -0
  17. package/dist/src/exports.d.ts +2 -0
  18. package/dist/src/exports.js +2 -0
  19. package/dist/src/grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts +48 -0
  20. package/dist/src/grupo-etiqueta/dto/grupo-etiqueta.dto.js +27 -0
  21. package/dist/src/grupo-etiqueta/exports.d.ts +1 -0
  22. package/dist/src/grupo-etiqueta/exports.js +18 -0
  23. package/dist/types/index.d.ts +1 -1
  24. package/dist/types/index.js +1 -1
  25. package/dist/types/index.js.map +1 -1
  26. package/dist/types/prisma-schema/edge.js +14 -3
  27. package/dist/types/prisma-schema/index-browser.js +11 -0
  28. package/dist/types/prisma-schema/index.d.ts +1758 -185
  29. package/dist/types/prisma-schema/index.js +14 -3
  30. package/dist/types/prisma-schema/package.json +1 -1
  31. package/dist/types/prisma-schema/schema.prisma +16 -1
  32. package/dist/types/prisma-schema/wasm.js +11 -0
  33. package/dist/types/schema.d.ts +156 -0
  34. package/package.json +7 -5
@@ -0,0 +1,28 @@
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,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const etiquetaSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
- nombre: z.ZodString;
5
- grupoId: z.ZodString;
6
- tipo: z.ZodNativeEnum<{
4
+ name: z.ZodString;
5
+ groupId: z.ZodString;
6
+ type: z.ZodNativeEnum<{
7
7
  PERSONAL: "PERSONAL";
8
8
  EVENTO: "EVENTO";
9
9
  MODELO: "MODELO";
@@ -13,24 +13,24 @@ export declare const etiquetaSchema: z.ZodObject<{
13
13
  updated_at: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  id: string;
16
+ name: string;
17
+ groupId: string;
18
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
16
19
  created_at: string;
17
20
  updated_at: string;
18
- nombre: string;
19
- grupoId: string;
20
- tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
21
21
  }, {
22
22
  id: string;
23
+ name: string;
24
+ groupId: string;
25
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
23
26
  created_at: string;
24
27
  updated_at: string;
25
- nombre: string;
26
- grupoId: string;
27
- tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
28
28
  }>;
29
29
  declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
30
30
  id: z.ZodString;
31
- nombre: z.ZodString;
32
- grupoId: z.ZodString;
33
- tipo: z.ZodNativeEnum<{
31
+ name: z.ZodString;
32
+ groupId: z.ZodString;
33
+ type: z.ZodNativeEnum<{
34
34
  PERSONAL: "PERSONAL";
35
35
  EVENTO: "EVENTO";
36
36
  MODELO: "MODELO";
@@ -40,18 +40,18 @@ declare const EtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.Zod
40
40
  updated_at: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
+ name: string;
44
+ groupId: string;
45
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
43
46
  created_at: string;
44
47
  updated_at: string;
45
- nombre: string;
46
- grupoId: string;
47
- tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
48
48
  }, {
49
49
  id: string;
50
+ name: string;
51
+ groupId: string;
52
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
50
53
  created_at: string;
51
54
  updated_at: string;
52
- nombre: string;
53
- grupoId: string;
54
- tipo: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
55
55
  }>>;
56
56
  export declare class EtiquetaDto extends EtiquetaDto_base {
57
57
  }
@@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EtiquetaDto = exports.etiquetaSchema = void 0;
4
4
  const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
5
  const zod_1 = require("zod");
6
- const types_1 = require("../../../types");
6
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
7
7
  exports.etiquetaSchema = zod_1.z.object({
8
8
  id: zod_1.z.string().uuid({
9
9
  message: 'El ID debe ser un UUID',
10
10
  }),
11
- nombre: zod_1.z.string().min(1, {
11
+ name: zod_1.z.string().min(1, {
12
12
  message: 'El nombre debe tener al menos 1 caracter',
13
13
  }),
14
- grupoId: zod_1.z.string().uuid({
14
+ groupId: zod_1.z.string().uuid({
15
15
  message: 'Debes seleccionar un grupo de etiquetas',
16
16
  }),
17
- tipo: zod_1.z.nativeEnum(types_1.TipoEtiqueta, {
17
+ type: zod_1.z.nativeEnum(prisma_schema_1.TipoEtiqueta, {
18
18
  message: 'El tipo de etiqueta no es válido',
19
19
  }),
20
20
  created_at: zod_1.z.string().datetime(),
@@ -0,0 +1,126 @@
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
+ groupId: string;
24
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
25
+ created_at: string;
26
+ updated_at: string;
27
+ }, {
28
+ id: string;
29
+ name: string;
30
+ groupId: string;
31
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
32
+ created_at: string;
33
+ updated_at: 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
+ groupId: string;
52
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
53
+ created_at: string;
54
+ updated_at: string;
55
+ }, {
56
+ id: string;
57
+ name: string;
58
+ groupId: string;
59
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
60
+ created_at: string;
61
+ updated_at: 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
+ created_at: string;
71
+ updated_at: string;
72
+ location: string;
73
+ etiquetaAsistioId: string;
74
+ etiquetaAsistio: {
75
+ id: string;
76
+ name: string;
77
+ groupId: string;
78
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
79
+ created_at: string;
80
+ updated_at: string;
81
+ };
82
+ etiquetaConfirmoId: string;
83
+ etiquetaConfirmo: {
84
+ id: string;
85
+ name: string;
86
+ groupId: string;
87
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
88
+ created_at: string;
89
+ updated_at: string;
90
+ };
91
+ eventoPadreId?: string | undefined;
92
+ }, {
93
+ id: string;
94
+ name: string;
95
+ date: string;
96
+ created_at: string;
97
+ updated_at: string;
98
+ location: string;
99
+ etiquetaAsistioId: string;
100
+ etiquetaAsistio: {
101
+ id: string;
102
+ name: string;
103
+ groupId: string;
104
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
105
+ created_at: string;
106
+ updated_at: string;
107
+ };
108
+ etiquetaConfirmoId: string;
109
+ etiquetaConfirmo: {
110
+ id: string;
111
+ name: string;
112
+ groupId: string;
113
+ type: "PERSONAL" | "EVENTO" | "MODELO" | "TENTATIVA";
114
+ created_at: string;
115
+ updated_at: 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 {};
@@ -0,0 +1,27 @@
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 zod_nestjs_1 = require("@anatine/zod-nestjs");
6
+ const zod_1 = require("zod");
7
+ 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'),
12
+ etiquetaAsistioId: etiqueta_dto_1.etiquetaSchema.shape.id,
13
+ etiquetaAsistio: etiqueta_dto_1.etiquetaSchema,
14
+ etiquetaConfirmoId: etiqueta_dto_1.etiquetaSchema.shape.id,
15
+ etiquetaConfirmo: etiqueta_dto_1.etiquetaSchema,
16
+ eventoPadreId: zod_1.z.string().uuid().optional(),
17
+ created_at: zod_1.z.string().datetime(),
18
+ updated_at: zod_1.z.string().datetime(),
19
+ });
20
+ const eventoSchema = eventoSchemaBase.extend({
21
+ eventoPadre: zod_1.z.lazy(() => eventoSchema),
22
+ subEventos: zod_1.z.array(zod_1.z.lazy(() => eventoSchemaBase)),
23
+ });
24
+ class EventoDto extends (0, zod_nestjs_1.createZodDto)(eventoSchema) {
25
+ }
26
+ exports.EventoDto = EventoDto;
27
+ //# sourceMappingURL=evento.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/evento.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/evento.dto"), exports);
18
+ //# sourceMappingURL=exports.js.map
@@ -2,3 +2,5 @@ export * from './auth/exports';
2
2
  export * from './cuenta/exports';
3
3
  export * from './etiqueta/exports';
4
4
  export * from './comentario/exports';
5
+ export * from './grupo-etiqueta/exports';
6
+ export * from './evento/exports';
@@ -18,4 +18,6 @@ __exportStar(require("./auth/exports"), exports);
18
18
  __exportStar(require("./cuenta/exports"), exports);
19
19
  __exportStar(require("./etiqueta/exports"), exports);
20
20
  __exportStar(require("./comentario/exports"), exports);
21
+ __exportStar(require("./grupo-etiqueta/exports"), exports);
22
+ __exportStar(require("./evento/exports"), exports);
21
23
  //# sourceMappingURL=exports.js.map
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const grupoEtiquetaSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ color: z.ZodString;
6
+ isExclusive: z.ZodBoolean;
7
+ created_at: z.ZodString;
8
+ updated_at: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ name: string;
12
+ created_at: string;
13
+ updated_at: string;
14
+ color: string;
15
+ isExclusive: boolean;
16
+ }, {
17
+ id: string;
18
+ name: string;
19
+ created_at: string;
20
+ updated_at: string;
21
+ color: string;
22
+ isExclusive: boolean;
23
+ }>;
24
+ declare const GrupoEtiquetaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ color: z.ZodString;
28
+ isExclusive: z.ZodBoolean;
29
+ created_at: z.ZodString;
30
+ updated_at: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: string;
33
+ name: string;
34
+ created_at: string;
35
+ updated_at: string;
36
+ color: string;
37
+ isExclusive: boolean;
38
+ }, {
39
+ id: string;
40
+ name: string;
41
+ created_at: string;
42
+ updated_at: string;
43
+ color: string;
44
+ isExclusive: boolean;
45
+ }>>;
46
+ export declare class GrupoEtiquetaDto extends GrupoEtiquetaDto_base {
47
+ }
48
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GrupoEtiquetaDto = exports.grupoEtiquetaSchema = void 0;
4
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
5
+ const zod_1 = require("zod");
6
+ exports.grupoEtiquetaSchema = zod_1.z.object({
7
+ id: zod_1.z.string().uuid({
8
+ message: 'El ID debe ser un UUID',
9
+ }),
10
+ name: zod_1.z.string().min(1, {
11
+ message: 'El nombre debe tener al menos 1 caracter',
12
+ }),
13
+ color: zod_1.z
14
+ .string()
15
+ .length(7)
16
+ .startsWith('#', {
17
+ message: 'El color debe tener el formato #ABCDEF',
18
+ })
19
+ .toLowerCase(),
20
+ isExclusive: zod_1.z.boolean(),
21
+ created_at: zod_1.z.string().datetime(),
22
+ updated_at: zod_1.z.string().datetime(),
23
+ });
24
+ class GrupoEtiquetaDto extends (0, zod_nestjs_1.createZodDto)(exports.grupoEtiquetaSchema) {
25
+ }
26
+ exports.GrupoEtiquetaDto = GrupoEtiquetaDto;
27
+ //# sourceMappingURL=grupo-etiqueta.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/grupo-etiqueta.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/grupo-etiqueta.dto"), exports);
18
+ //# sourceMappingURL=exports.js.map
@@ -1,3 +1,3 @@
1
1
  export * from './schema';
2
- export * from './prisma-schema';
2
+ export * from './prisma-schema/index';
3
3
  export * from './dto';
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./schema"), exports);
18
- __exportStar(require("./prisma-schema"), exports);
18
+ __exportStar(require("./prisma-schema/index"), exports);
19
19
  __exportStar(require("./dto"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAsC;AACtC,wCAAsB"}