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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/src/{cuenta/dto/cuenta.dto.d.ts → account/dto/account.dto.d.ts} +57 -51
  2. package/dist/src/account/dto/account.dto.js +52 -0
  3. package/dist/src/{cuenta/dto/createCuenta.dto.d.ts → account/dto/createAccount.dto.d.ts} +92 -80
  4. package/dist/src/account/dto/createAccount.dto.js +23 -0
  5. package/dist/src/{cuenta/dto/getFiltroBase.dto.d.ts → account/dto/getGlobalFilter.dto.d.ts} +35 -35
  6. package/dist/src/account/dto/getGlobalFilter.dto.js +30 -0
  7. package/dist/src/{cuenta → account}/dto/getMe.dto.d.ts +56 -50
  8. package/dist/src/{cuenta → account}/dto/getMe.dto.js +2 -2
  9. package/dist/src/{cuenta/dto/updateFiltroBase.dto.d.ts → account/dto/updateGlobalFilter.dto.d.ts} +58 -58
  10. package/dist/src/account/dto/updateGlobalFilter.dto.js +29 -0
  11. package/dist/src/account/exports.d.ts +5 -0
  12. package/dist/src/{cuenta → account}/exports.js +4 -4
  13. package/dist/src/auth/dto/login.dto.d.ts +112 -100
  14. package/dist/src/auth/dto/login.dto.js +3 -3
  15. package/dist/src/comment/dto/comment.dto.d.ts +66 -0
  16. package/dist/src/comment/dto/comment.dto.js +26 -0
  17. package/dist/src/comment/exports.d.ts +1 -0
  18. package/dist/src/{etiqueta → comment}/exports.js +1 -1
  19. package/dist/src/event/dto/event.dto.d.ts +41 -0
  20. package/dist/src/event/dto/event.dto.js +33 -0
  21. package/dist/src/event/exports.d.ts +1 -0
  22. package/dist/src/{evento → event}/exports.js +1 -1
  23. package/dist/src/event-folder/dto/event-folder.dto.d.ts +14 -0
  24. package/dist/src/event-folder/dto/event-folder.dto.js +22 -0
  25. package/dist/src/exports.d.ts +5 -5
  26. package/dist/src/exports.js +5 -5
  27. package/dist/src/{etiqueta/dto/etiqueta.dto.d.ts → tag/dto/tag.dto.d.ts} +15 -15
  28. package/dist/src/tag/dto/tag.dto.js +30 -0
  29. package/dist/src/tag/exports.d.ts +1 -0
  30. package/dist/src/{grupo-etiqueta → tag}/exports.js +1 -1
  31. package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts → tag-group/dto/tag-group.dto.d.ts} +3 -3
  32. package/dist/src/{grupo-etiqueta/dto/grupo-etiqueta.dto.js → tag-group/dto/tag-group.dto.js} +8 -8
  33. package/dist/src/tag-group/exports.d.ts +1 -0
  34. package/dist/src/{comentario → tag-group}/exports.js +1 -1
  35. package/dist/types/prisma-schema/edge.js +86 -70
  36. package/dist/types/prisma-schema/index-browser.js +83 -67
  37. package/dist/types/prisma-schema/index.d.ts +8283 -6804
  38. package/dist/types/prisma-schema/index.js +86 -70
  39. package/dist/types/prisma-schema/package.json +1 -1
  40. package/dist/types/prisma-schema/schema.prisma +144 -112
  41. package/dist/types/prisma-schema/wasm.js +83 -67
  42. package/dist/types/schema.d.ts +37 -37
  43. package/package.json +1 -1
  44. package/dist/src/comentario/dto/comentario.dto.d.ts +0 -42
  45. package/dist/src/comentario/dto/comentario.dto.js +0 -22
  46. package/dist/src/comentario/exports.d.ts +0 -1
  47. package/dist/src/cuenta/dto/createCuenta.dto.js +0 -23
  48. package/dist/src/cuenta/dto/cuenta.dto.js +0 -49
  49. package/dist/src/cuenta/dto/getFiltroBase.dto.js +0 -29
  50. package/dist/src/cuenta/dto/updateFiltroBase.dto.js +0 -28
  51. package/dist/src/cuenta/exports.d.ts +0 -5
  52. package/dist/src/etiqueta/dto/etiqueta.dto.js +0 -30
  53. package/dist/src/etiqueta/exports.d.ts +0 -1
  54. package/dist/src/evento/dto/evento.dto.d.ts +0 -126
  55. package/dist/src/evento/dto/evento.dto.js +0 -37
  56. package/dist/src/evento/exports.d.ts +0 -1
  57. package/dist/src/grupo-etiqueta/exports.d.ts +0 -1
@@ -1,26 +1,29 @@
1
1
  import { z } from 'zod';
2
- export declare const cuentaSchema: z.ZodObject<{
2
+ export declare const accountSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  username: z.ZodString;
5
5
  password: z.ZodString;
6
- isAdmin: z.ZodDefault<z.ZodBoolean>;
6
+ role: z.ZodNativeEnum<{
7
+ USER: "USER";
8
+ ADMIN: "ADMIN";
9
+ }>;
7
10
  created_at: z.ZodString;
8
11
  updated_at: z.ZodString;
9
- filtroBase: z.ZodObject<{
10
- etiquetas: z.ZodObject<z.objectUtil.extendShape<Pick<{
12
+ globalFilter: z.ZodObject<{
13
+ tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
11
14
  id: z.ZodString;
12
15
  name: z.ZodString;
13
16
  groupId: z.ZodString;
14
17
  type: z.ZodNativeEnum<{
15
- PERSONAL: "PERSONAL";
16
- EVENTO: "EVENTO";
17
- MODELO: "MODELO";
18
- TENTATIVA: "TENTATIVA";
18
+ PROFILE: "PROFILE";
19
+ EVENT: "EVENT";
20
+ PARTICIPANT: "PARTICIPANT";
21
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
19
22
  }>;
20
23
  created_at: z.ZodString;
21
24
  updated_at: z.ZodString;
22
25
  }, "id" | "name">, {
23
- grupo: z.ZodObject<Pick<{
26
+ group: z.ZodObject<Pick<{
24
27
  id: z.ZodString;
25
28
  name: z.ZodString;
26
29
  color: z.ZodString;
@@ -39,7 +42,7 @@ export declare const cuentaSchema: z.ZodObject<{
39
42
  }>, "strip", z.ZodTypeAny, {
40
43
  id: string;
41
44
  name: string;
42
- grupo: {
45
+ group: {
43
46
  id: string;
44
47
  color: string;
45
48
  isExclusive: boolean;
@@ -47,7 +50,7 @@ export declare const cuentaSchema: z.ZodObject<{
47
50
  }, {
48
51
  id: string;
49
52
  name: string;
50
- grupo: {
53
+ group: {
51
54
  id: string;
52
55
  color: string;
53
56
  isExclusive: boolean;
@@ -55,10 +58,10 @@ export declare const cuentaSchema: z.ZodObject<{
55
58
  }>;
56
59
  active: z.ZodBoolean;
57
60
  }, "strip", z.ZodTypeAny, {
58
- etiquetas: {
61
+ tags: {
59
62
  id: string;
60
63
  name: string;
61
- grupo: {
64
+ group: {
62
65
  id: string;
63
66
  color: string;
64
67
  isExclusive: boolean;
@@ -66,10 +69,10 @@ export declare const cuentaSchema: z.ZodObject<{
66
69
  };
67
70
  active: boolean;
68
71
  }, {
69
- etiquetas: {
72
+ tags: {
70
73
  id: string;
71
74
  name: string;
72
- grupo: {
75
+ group: {
73
76
  id: string;
74
77
  color: string;
75
78
  isExclusive: boolean;
@@ -77,20 +80,20 @@ export declare const cuentaSchema: z.ZodObject<{
77
80
  };
78
81
  active: boolean;
79
82
  }>;
80
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
83
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
81
84
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
82
85
  }, "strip", z.ZodTypeAny, {
83
86
  id: string;
84
87
  username: string;
85
88
  password: string;
89
+ role: "USER" | "ADMIN";
86
90
  created_at: string;
87
91
  updated_at: string;
88
- isAdmin: boolean;
89
- filtroBase: {
90
- etiquetas: {
92
+ globalFilter: {
93
+ tags: {
91
94
  id: string;
92
95
  name: string;
93
- grupo: {
96
+ group: {
94
97
  id: string;
95
98
  color: string;
96
99
  isExclusive: boolean;
@@ -98,19 +101,20 @@ export declare const cuentaSchema: z.ZodObject<{
98
101
  };
99
102
  active: boolean;
100
103
  };
101
- filtroBaseActivo: boolean;
104
+ isGlobalFilterActive: boolean;
102
105
  fcmToken: string[];
103
106
  }, {
104
107
  id: string;
105
108
  username: string;
106
109
  password: string;
110
+ role: "USER" | "ADMIN";
107
111
  created_at: string;
108
112
  updated_at: string;
109
- filtroBase: {
110
- etiquetas: {
113
+ globalFilter: {
114
+ tags: {
111
115
  id: string;
112
116
  name: string;
113
- grupo: {
117
+ group: {
114
118
  id: string;
115
119
  color: string;
116
120
  isExclusive: boolean;
@@ -118,32 +122,34 @@ export declare const cuentaSchema: z.ZodObject<{
118
122
  };
119
123
  active: boolean;
120
124
  };
121
- isAdmin?: boolean | undefined;
122
- filtroBaseActivo?: boolean | undefined;
125
+ isGlobalFilterActive?: boolean | undefined;
123
126
  fcmToken?: string[] | undefined;
124
127
  }>;
125
128
  declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
126
129
  id: z.ZodString;
127
130
  username: z.ZodString;
128
131
  password: z.ZodString;
129
- isAdmin: z.ZodDefault<z.ZodBoolean>;
132
+ role: z.ZodNativeEnum<{
133
+ USER: "USER";
134
+ ADMIN: "ADMIN";
135
+ }>;
130
136
  created_at: z.ZodString;
131
137
  updated_at: z.ZodString;
132
- filtroBase: z.ZodObject<{
133
- etiquetas: z.ZodObject<z.objectUtil.extendShape<Pick<{
138
+ globalFilter: z.ZodObject<{
139
+ tags: z.ZodObject<z.objectUtil.extendShape<Pick<{
134
140
  id: z.ZodString;
135
141
  name: z.ZodString;
136
142
  groupId: z.ZodString;
137
143
  type: z.ZodNativeEnum<{
138
- PERSONAL: "PERSONAL";
139
- EVENTO: "EVENTO";
140
- MODELO: "MODELO";
141
- TENTATIVA: "TENTATIVA";
144
+ PROFILE: "PROFILE";
145
+ EVENT: "EVENT";
146
+ PARTICIPANT: "PARTICIPANT";
147
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
142
148
  }>;
143
149
  created_at: z.ZodString;
144
150
  updated_at: z.ZodString;
145
151
  }, "id" | "name">, {
146
- grupo: z.ZodObject<Pick<{
152
+ group: z.ZodObject<Pick<{
147
153
  id: z.ZodString;
148
154
  name: z.ZodString;
149
155
  color: z.ZodString;
@@ -162,7 +168,7 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
162
168
  }>, "strip", z.ZodTypeAny, {
163
169
  id: string;
164
170
  name: string;
165
- grupo: {
171
+ group: {
166
172
  id: string;
167
173
  color: string;
168
174
  isExclusive: boolean;
@@ -170,7 +176,7 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
170
176
  }, {
171
177
  id: string;
172
178
  name: string;
173
- grupo: {
179
+ group: {
174
180
  id: string;
175
181
  color: string;
176
182
  isExclusive: boolean;
@@ -178,10 +184,10 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
178
184
  }>;
179
185
  active: z.ZodBoolean;
180
186
  }, "strip", z.ZodTypeAny, {
181
- etiquetas: {
187
+ tags: {
182
188
  id: string;
183
189
  name: string;
184
- grupo: {
190
+ group: {
185
191
  id: string;
186
192
  color: string;
187
193
  isExclusive: boolean;
@@ -189,10 +195,10 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
189
195
  };
190
196
  active: boolean;
191
197
  }, {
192
- etiquetas: {
198
+ tags: {
193
199
  id: string;
194
200
  name: string;
195
- grupo: {
201
+ group: {
196
202
  id: string;
197
203
  color: string;
198
204
  isExclusive: boolean;
@@ -200,20 +206,20 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
200
206
  };
201
207
  active: boolean;
202
208
  }>;
203
- filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
209
+ isGlobalFilterActive: z.ZodDefault<z.ZodBoolean>;
204
210
  fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
205
211
  }, "strip", z.ZodTypeAny, {
206
212
  id: string;
207
213
  username: string;
208
214
  password: string;
215
+ role: "USER" | "ADMIN";
209
216
  created_at: string;
210
217
  updated_at: string;
211
- isAdmin: boolean;
212
- filtroBase: {
213
- etiquetas: {
218
+ globalFilter: {
219
+ tags: {
214
220
  id: string;
215
221
  name: string;
216
- grupo: {
222
+ group: {
217
223
  id: string;
218
224
  color: string;
219
225
  isExclusive: boolean;
@@ -221,19 +227,20 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
221
227
  };
222
228
  active: boolean;
223
229
  };
224
- filtroBaseActivo: boolean;
230
+ isGlobalFilterActive: boolean;
225
231
  fcmToken: string[];
226
232
  }, {
227
233
  id: string;
228
234
  username: string;
229
235
  password: string;
236
+ role: "USER" | "ADMIN";
230
237
  created_at: string;
231
238
  updated_at: string;
232
- filtroBase: {
233
- etiquetas: {
239
+ globalFilter: {
240
+ tags: {
234
241
  id: string;
235
242
  name: string;
236
- grupo: {
243
+ group: {
237
244
  id: string;
238
245
  color: string;
239
246
  isExclusive: boolean;
@@ -241,8 +248,7 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
241
248
  };
242
249
  active: boolean;
243
250
  };
244
- isAdmin?: boolean | undefined;
245
- filtroBaseActivo?: boolean | undefined;
251
+ isGlobalFilterActive?: boolean | undefined;
246
252
  fcmToken?: string[] | undefined;
247
253
  }>>;
248
254
  export declare class CuentaDto extends CuentaDto_base {
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CuentaDto = exports.accountSchema = void 0;
4
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
5
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
6
+ const translate_1 = require("../../i18n/translate");
7
+ const zod_nestjs_1 = require("@anatine/zod-nestjs");
8
+ const zod_1 = require("zod");
9
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
10
+ exports.accountSchema = zod_1.z.object({
11
+ id: zod_1.z
12
+ .string({
13
+ required_error: (0, translate_1.translate)('model.account.id.required'),
14
+ })
15
+ .uuid({
16
+ message: (0, translate_1.translate)('model.account.id.uuid'),
17
+ }),
18
+ username: zod_1.z.string({
19
+ required_error: (0, translate_1.translate)('model.account.username.required'),
20
+ }),
21
+ password: zod_1.z
22
+ .string({
23
+ required_error: (0, translate_1.translate)('model.account.password.required'),
24
+ })
25
+ .min(6, (0, translate_1.translate)('model.account.password.min')),
26
+ role: zod_1.z.nativeEnum(prisma_schema_1.Role, {
27
+ message: (0, translate_1.translate)('model.account.role.invalid'),
28
+ }),
29
+ created_at: zod_1.z.string().datetime(),
30
+ updated_at: zod_1.z.string().datetime(),
31
+ globalFilter: zod_1.z.object({
32
+ tags: tag_dto_1.tagSchema
33
+ .pick({
34
+ id: true,
35
+ name: true,
36
+ })
37
+ .merge(zod_1.z.object({
38
+ group: tag_group_dto_1.tagGroupSchema.pick({
39
+ id: true,
40
+ color: true,
41
+ isExclusive: true,
42
+ }),
43
+ })),
44
+ active: zod_1.z.boolean(),
45
+ }),
46
+ isGlobalFilterActive: zod_1.z.boolean().default(false),
47
+ fcmToken: zod_1.z.array(zod_1.z.string()).default([]),
48
+ });
49
+ class CuentaDto extends (0, zod_nestjs_1.createZodDto)(exports.accountSchema) {
50
+ }
51
+ exports.CuentaDto = CuentaDto;
52
+ //# sourceMappingURL=account.dto.js.map