expo-backend-types 0.3.0-EXPO-245.2 → 0.3.0-EXPO-245.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/auth/dto/login.dto.d.ts +392 -12
- package/dist/src/auth/dto/register.dto.d.ts +284 -0
- package/dist/src/cuenta/dto/cuenta.dto.d.ts +198 -8
- package/dist/src/cuenta/dto/cuenta.dto.js +17 -0
- package/dist/src/etiqueta/dto/etiqueta.dto.d.ts +18 -18
- package/dist/src/etiqueta/dto/etiqueta.dto.js +4 -4
- package/dist/src/evento/dto/evento.dto.d.ts +126 -0
- package/dist/src/evento/dto/evento.dto.js +27 -0
- package/dist/src/evento/exports.d.ts +1 -0
- package/dist/src/evento/exports.js +18 -0
- package/dist/src/exports.d.ts +2 -0
- package/dist/src/exports.js +2 -0
- package/dist/src/grupo-etiqueta/dto/grupo-etiqueta.dto.d.ts +48 -0
- package/dist/src/grupo-etiqueta/dto/grupo-etiqueta.dto.js +27 -0
- package/dist/src/grupo-etiqueta/exports.d.ts +1 -0
- package/dist/src/grupo-etiqueta/exports.js +18 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/schema.d.ts +12 -0
- package/package.json +7 -5
@@ -5,6 +5,77 @@ export declare const registerSchema: import("zod").ZodObject<Pick<{
|
|
5
5
|
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
6
6
|
created_at: import("zod").ZodString;
|
7
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
|
+
}>;
|
8
79
|
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
9
80
|
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
10
81
|
}, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
|
@@ -23,6 +94,77 @@ declare const RegisterDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<impor
|
|
23
94
|
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
24
95
|
created_at: import("zod").ZodString;
|
25
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
|
+
}>;
|
26
168
|
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
27
169
|
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
28
170
|
}, "username" | "password" | "isAdmin">, "strip", import("zod").ZodTypeAny, {
|
@@ -43,6 +185,77 @@ export declare const registerResponseSchema: import("zod").ZodObject<Omit<Pick<{
|
|
43
185
|
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
44
186
|
created_at: import("zod").ZodString;
|
45
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
|
+
}>;
|
46
259
|
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
47
260
|
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
48
261
|
}, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
|
@@ -59,6 +272,77 @@ declare const RegisterResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStat
|
|
59
272
|
isAdmin: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
60
273
|
created_at: import("zod").ZodString;
|
61
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
|
+
}>;
|
62
346
|
filtroBaseActivo: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
63
347
|
fcmToken: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
64
348
|
}, "username" | "password" | "isAdmin">, "password">, "strip", import("zod").ZodTypeAny, {
|
@@ -6,23 +6,118 @@ export declare const cuentaSchema: z.ZodObject<{
|
|
6
6
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
7
7
|
created_at: z.ZodString;
|
8
8
|
updated_at: z.ZodString;
|
9
|
+
filtroBase: z.ZodObject<{
|
10
|
+
etiquetas: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
11
|
+
id: z.ZodString;
|
12
|
+
name: z.ZodString;
|
13
|
+
groupId: z.ZodString;
|
14
|
+
type: z.ZodNativeEnum<{
|
15
|
+
PERSONAL: "PERSONAL";
|
16
|
+
EVENTO: "EVENTO";
|
17
|
+
MODELO: "MODELO";
|
18
|
+
TENTATIVA: "TENTATIVA";
|
19
|
+
}>;
|
20
|
+
created_at: z.ZodString;
|
21
|
+
updated_at: z.ZodString;
|
22
|
+
}, "id" | "name">, {
|
23
|
+
grupo: z.ZodObject<Pick<{
|
24
|
+
id: z.ZodString;
|
25
|
+
name: z.ZodString;
|
26
|
+
color: z.ZodString;
|
27
|
+
isExclusive: z.ZodBoolean;
|
28
|
+
created_at: z.ZodString;
|
29
|
+
updated_at: z.ZodString;
|
30
|
+
}, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
31
|
+
id: string;
|
32
|
+
color: string;
|
33
|
+
isExclusive: boolean;
|
34
|
+
}, {
|
35
|
+
id: string;
|
36
|
+
color: string;
|
37
|
+
isExclusive: boolean;
|
38
|
+
}>;
|
39
|
+
}>, "strip", z.ZodTypeAny, {
|
40
|
+
id: string;
|
41
|
+
name: string;
|
42
|
+
grupo: {
|
43
|
+
id: string;
|
44
|
+
color: string;
|
45
|
+
isExclusive: boolean;
|
46
|
+
};
|
47
|
+
}, {
|
48
|
+
id: string;
|
49
|
+
name: string;
|
50
|
+
grupo: {
|
51
|
+
id: string;
|
52
|
+
color: string;
|
53
|
+
isExclusive: boolean;
|
54
|
+
};
|
55
|
+
}>;
|
56
|
+
active: z.ZodBoolean;
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
58
|
+
etiquetas: {
|
59
|
+
id: string;
|
60
|
+
name: string;
|
61
|
+
grupo: {
|
62
|
+
id: string;
|
63
|
+
color: string;
|
64
|
+
isExclusive: boolean;
|
65
|
+
};
|
66
|
+
};
|
67
|
+
active: boolean;
|
68
|
+
}, {
|
69
|
+
etiquetas: {
|
70
|
+
id: string;
|
71
|
+
name: string;
|
72
|
+
grupo: {
|
73
|
+
id: string;
|
74
|
+
color: string;
|
75
|
+
isExclusive: boolean;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
active: boolean;
|
79
|
+
}>;
|
9
80
|
filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
|
10
81
|
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
11
82
|
}, "strip", z.ZodTypeAny, {
|
12
83
|
id: string;
|
84
|
+
created_at: string;
|
85
|
+
updated_at: string;
|
13
86
|
username: string;
|
14
87
|
password: string;
|
15
88
|
isAdmin: boolean;
|
16
|
-
|
17
|
-
|
89
|
+
filtroBase: {
|
90
|
+
etiquetas: {
|
91
|
+
id: string;
|
92
|
+
name: string;
|
93
|
+
grupo: {
|
94
|
+
id: string;
|
95
|
+
color: string;
|
96
|
+
isExclusive: boolean;
|
97
|
+
};
|
98
|
+
};
|
99
|
+
active: boolean;
|
100
|
+
};
|
18
101
|
filtroBaseActivo: boolean;
|
19
102
|
fcmToken: string[];
|
20
103
|
}, {
|
21
104
|
id: string;
|
22
|
-
username: string;
|
23
|
-
password: string;
|
24
105
|
created_at: string;
|
25
106
|
updated_at: string;
|
107
|
+
username: string;
|
108
|
+
password: string;
|
109
|
+
filtroBase: {
|
110
|
+
etiquetas: {
|
111
|
+
id: string;
|
112
|
+
name: string;
|
113
|
+
grupo: {
|
114
|
+
id: string;
|
115
|
+
color: string;
|
116
|
+
isExclusive: boolean;
|
117
|
+
};
|
118
|
+
};
|
119
|
+
active: boolean;
|
120
|
+
};
|
26
121
|
isAdmin?: boolean | undefined;
|
27
122
|
filtroBaseActivo?: boolean | undefined;
|
28
123
|
fcmToken?: string[] | undefined;
|
@@ -34,23 +129,118 @@ declare const CuentaDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
|
|
34
129
|
isAdmin: z.ZodDefault<z.ZodBoolean>;
|
35
130
|
created_at: z.ZodString;
|
36
131
|
updated_at: z.ZodString;
|
132
|
+
filtroBase: z.ZodObject<{
|
133
|
+
etiquetas: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
134
|
+
id: z.ZodString;
|
135
|
+
name: z.ZodString;
|
136
|
+
groupId: z.ZodString;
|
137
|
+
type: z.ZodNativeEnum<{
|
138
|
+
PERSONAL: "PERSONAL";
|
139
|
+
EVENTO: "EVENTO";
|
140
|
+
MODELO: "MODELO";
|
141
|
+
TENTATIVA: "TENTATIVA";
|
142
|
+
}>;
|
143
|
+
created_at: z.ZodString;
|
144
|
+
updated_at: z.ZodString;
|
145
|
+
}, "id" | "name">, {
|
146
|
+
grupo: z.ZodObject<Pick<{
|
147
|
+
id: z.ZodString;
|
148
|
+
name: z.ZodString;
|
149
|
+
color: z.ZodString;
|
150
|
+
isExclusive: z.ZodBoolean;
|
151
|
+
created_at: z.ZodString;
|
152
|
+
updated_at: z.ZodString;
|
153
|
+
}, "id" | "color" | "isExclusive">, "strip", z.ZodTypeAny, {
|
154
|
+
id: string;
|
155
|
+
color: string;
|
156
|
+
isExclusive: boolean;
|
157
|
+
}, {
|
158
|
+
id: string;
|
159
|
+
color: string;
|
160
|
+
isExclusive: boolean;
|
161
|
+
}>;
|
162
|
+
}>, "strip", z.ZodTypeAny, {
|
163
|
+
id: string;
|
164
|
+
name: string;
|
165
|
+
grupo: {
|
166
|
+
id: string;
|
167
|
+
color: string;
|
168
|
+
isExclusive: boolean;
|
169
|
+
};
|
170
|
+
}, {
|
171
|
+
id: string;
|
172
|
+
name: string;
|
173
|
+
grupo: {
|
174
|
+
id: string;
|
175
|
+
color: string;
|
176
|
+
isExclusive: boolean;
|
177
|
+
};
|
178
|
+
}>;
|
179
|
+
active: z.ZodBoolean;
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
181
|
+
etiquetas: {
|
182
|
+
id: string;
|
183
|
+
name: string;
|
184
|
+
grupo: {
|
185
|
+
id: string;
|
186
|
+
color: string;
|
187
|
+
isExclusive: boolean;
|
188
|
+
};
|
189
|
+
};
|
190
|
+
active: boolean;
|
191
|
+
}, {
|
192
|
+
etiquetas: {
|
193
|
+
id: string;
|
194
|
+
name: string;
|
195
|
+
grupo: {
|
196
|
+
id: string;
|
197
|
+
color: string;
|
198
|
+
isExclusive: boolean;
|
199
|
+
};
|
200
|
+
};
|
201
|
+
active: boolean;
|
202
|
+
}>;
|
37
203
|
filtroBaseActivo: z.ZodDefault<z.ZodBoolean>;
|
38
204
|
fcmToken: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
39
205
|
}, "strip", z.ZodTypeAny, {
|
40
206
|
id: string;
|
207
|
+
created_at: string;
|
208
|
+
updated_at: string;
|
41
209
|
username: string;
|
42
210
|
password: string;
|
43
211
|
isAdmin: boolean;
|
44
|
-
|
45
|
-
|
212
|
+
filtroBase: {
|
213
|
+
etiquetas: {
|
214
|
+
id: string;
|
215
|
+
name: string;
|
216
|
+
grupo: {
|
217
|
+
id: string;
|
218
|
+
color: string;
|
219
|
+
isExclusive: boolean;
|
220
|
+
};
|
221
|
+
};
|
222
|
+
active: boolean;
|
223
|
+
};
|
46
224
|
filtroBaseActivo: boolean;
|
47
225
|
fcmToken: string[];
|
48
226
|
}, {
|
49
227
|
id: string;
|
50
|
-
username: string;
|
51
|
-
password: string;
|
52
228
|
created_at: string;
|
53
229
|
updated_at: string;
|
230
|
+
username: string;
|
231
|
+
password: string;
|
232
|
+
filtroBase: {
|
233
|
+
etiquetas: {
|
234
|
+
id: string;
|
235
|
+
name: string;
|
236
|
+
grupo: {
|
237
|
+
id: string;
|
238
|
+
color: string;
|
239
|
+
isExclusive: boolean;
|
240
|
+
};
|
241
|
+
};
|
242
|
+
active: boolean;
|
243
|
+
};
|
54
244
|
isAdmin?: boolean | undefined;
|
55
245
|
filtroBaseActivo?: boolean | undefined;
|
56
246
|
fcmToken?: string[] | undefined;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CuentaDto = exports.cuentaSchema = void 0;
|
4
|
+
const etiqueta_dto_1 = require("../../etiqueta/dto/etiqueta.dto");
|
5
|
+
const grupo_etiqueta_dto_1 = require("../../grupo-etiqueta/dto/grupo-etiqueta.dto");
|
4
6
|
const zod_nestjs_1 = require("@anatine/zod-nestjs");
|
5
7
|
const zod_1 = require("zod");
|
6
8
|
exports.cuentaSchema = zod_1.z.object({
|
@@ -22,6 +24,21 @@ exports.cuentaSchema = zod_1.z.object({
|
|
22
24
|
isAdmin: zod_1.z.boolean().default(false),
|
23
25
|
created_at: zod_1.z.string().datetime(),
|
24
26
|
updated_at: zod_1.z.string().datetime(),
|
27
|
+
filtroBase: zod_1.z.object({
|
28
|
+
etiquetas: etiqueta_dto_1.etiquetaSchema
|
29
|
+
.pick({
|
30
|
+
id: true,
|
31
|
+
name: true,
|
32
|
+
})
|
33
|
+
.merge(zod_1.z.object({
|
34
|
+
grupo: grupo_etiqueta_dto_1.grupoEtiquetaSchema.pick({
|
35
|
+
id: true,
|
36
|
+
color: true,
|
37
|
+
isExclusive: true,
|
38
|
+
}),
|
39
|
+
})),
|
40
|
+
active: zod_1.z.boolean(),
|
41
|
+
}),
|
25
42
|
filtroBaseActivo: zod_1.z.boolean().default(false),
|
26
43
|
fcmToken: zod_1.z.array(zod_1.z.string()).default([]),
|
27
44
|
});
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const etiquetaSchema: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
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
|
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
|
-
|
11
|
+
name: zod_1.z.string().min(1, {
|
12
12
|
message: 'El nombre debe tener al menos 1 caracter',
|
13
13
|
}),
|
14
|
-
|
14
|
+
groupId: zod_1.z.string().uuid({
|
15
15
|
message: 'Debes seleccionar un grupo de etiquetas',
|
16
16
|
}),
|
17
|
-
|
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(),
|