expo-backend-types 0.9.0-EXPO-249-EB-Modelo.5 → 0.9.0-EXPO-249-EB-Modelo.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/src/account/dto/account.dto.d.ts +6 -4
  2. package/dist/src/account/dto/create-account.dto.d.ts +12 -8
  3. package/dist/src/account/dto/get-global-filter.dto.d.ts +1 -0
  4. package/dist/src/account/dto/get-me.dto.d.ts +6 -4
  5. package/dist/src/account/dto/update-global-filter.dto.d.ts +6 -4
  6. package/dist/src/auth/dto/login.dto.d.ts +11 -8
  7. package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +1 -0
  8. package/dist/src/i18n/es.d.ts +21 -0
  9. package/dist/src/i18n/es.js +21 -0
  10. package/dist/src/i18n/es.js.map +1 -1
  11. package/dist/src/profile/dto/create-profile.dto.d.ts +694 -0
  12. package/dist/src/profile/dto/create-profile.dto.js +84 -0
  13. package/dist/src/profile/dto/delete-profile.dto.d.ts +125 -0
  14. package/dist/src/profile/dto/delete-profile.dto.js +10 -0
  15. package/dist/src/profile/dto/find-all-profile.dto.d.ts +16 -16
  16. package/dist/src/profile/dto/find-all-profile.dto.js +4 -4
  17. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +655 -0
  18. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +34 -0
  19. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +10 -10
  20. package/dist/src/profile/dto/find-by-id-profile.dto.js +4 -4
  21. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +16 -16
  22. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +16 -16
  24. package/dist/src/profile/dto/find-by-tags-profile.dto.js +4 -4
  25. package/dist/src/profile/dto/profile.dto.d.ts +5 -5
  26. package/dist/src/profile/dto/profile.dto.js +7 -3
  27. package/dist/src/profile/dto/update-profile.dto.d.ts +360 -0
  28. package/dist/src/profile/dto/update-profile.dto.js +55 -0
  29. package/dist/src/profile/exports.d.ts +4 -0
  30. package/dist/src/profile/exports.js +4 -0
  31. package/dist/src/tag/dto/massive-allocation.dto.d.ts +16 -16
  32. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +16 -16
  33. package/dist/types/prisma-schema/edge.js +5 -4
  34. package/dist/types/prisma-schema/index-browser.js +2 -1
  35. package/dist/types/prisma-schema/index.d.ts +9 -2
  36. package/dist/types/prisma-schema/index.js +5 -4
  37. package/dist/types/prisma-schema/package.json +1 -1
  38. package/dist/types/prisma-schema/schema.prisma +2 -0
  39. package/dist/types/prisma-schema/wasm.js +2 -1
  40. package/dist/types/schema.d.ts +411 -123
  41. package/package.json +4 -1
@@ -7,12 +7,12 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
7
7
  fullName: z.ZodString;
8
8
  firstName: z.ZodNullable<z.ZodString>;
9
9
  gender: z.ZodNullable<z.ZodString>;
10
- birthDate: z.ZodNullable<z.ZodDate>;
10
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
11
11
  profilePictureUrl: z.ZodNullable<z.ZodString>;
12
12
  instagram: z.ZodNullable<z.ZodString>;
13
13
  mail: z.ZodNullable<z.ZodString>;
14
14
  dni: z.ZodNullable<z.ZodString>;
15
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
15
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
16
16
  birthLocationId: z.ZodNullable<z.ZodString>;
17
17
  residenceLocationId: z.ZodNullable<z.ZodString>;
18
18
  isInTrash: z.ZodBoolean;
@@ -158,7 +158,7 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
158
158
  instagram: string | null;
159
159
  mail: string | null;
160
160
  dni: string | null;
161
- alternativeNames: string[] | null;
161
+ alternativeNames: string[];
162
162
  birthLocationId: string | null;
163
163
  residenceLocationId: string | null;
164
164
  isInTrash: boolean;
@@ -207,11 +207,11 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
207
207
  shortId: number;
208
208
  firstName: string | null;
209
209
  gender: string | null;
210
- birthDate: Date | null;
210
+ birthDate: string | null;
211
211
  instagram: string | null;
212
212
  mail: string | null;
213
213
  dni: string | null;
214
- alternativeNames: string[] | null;
214
+ alternativeNames: string[];
215
215
  birthLocationId: string | null;
216
216
  residenceLocationId: string | null;
217
217
  isInTrash: boolean;
@@ -245,12 +245,12 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
245
245
  fullName: z.ZodString;
246
246
  firstName: z.ZodNullable<z.ZodString>;
247
247
  gender: z.ZodNullable<z.ZodString>;
248
- birthDate: z.ZodNullable<z.ZodString>;
248
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
249
249
  profilePictureUrl: z.ZodNullable<z.ZodString>;
250
250
  instagram: z.ZodNullable<z.ZodString>;
251
251
  mail: z.ZodNullable<z.ZodString>;
252
252
  dni: z.ZodNullable<z.ZodString>;
253
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
253
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
254
254
  birthLocationId: z.ZodNullable<z.ZodString>;
255
255
  residenceLocationId: z.ZodNullable<z.ZodString>;
256
256
  isInTrash: z.ZodBoolean;
@@ -387,11 +387,11 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
387
387
  shortId: number;
388
388
  firstName: string | null;
389
389
  gender: string | null;
390
- birthDate: string | null;
390
+ birthDate: Date | null;
391
391
  instagram: string | null;
392
392
  mail: string | null;
393
393
  dni: string | null;
394
- alternativeNames: string[] | null;
394
+ alternativeNames: string[];
395
395
  birthLocationId: string | null;
396
396
  residenceLocationId: string | null;
397
397
  isInTrash: boolean;
@@ -444,7 +444,7 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
444
444
  instagram: string | null;
445
445
  mail: string | null;
446
446
  dni: string | null;
447
- alternativeNames: string[] | null;
447
+ alternativeNames: string[];
448
448
  birthLocationId: string | null;
449
449
  residenceLocationId: string | null;
450
450
  isInTrash: boolean;
@@ -10,17 +10,17 @@ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/cre
10
10
  const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
11
11
  const tag_dto_1 = require("../../tag/dto/tag.dto");
12
12
  const zod_1 = __importDefault(require("zod"));
13
- exports.findByIdProfileResponseSchema = profile_dto_1.profileSchema.extend({
13
+ exports.findByIdProfileResponseSchema = profile_dto_1.profileSchema.merge(zod_1.default.object({
14
14
  residenceLocation: location_dto_1.locationSchema.nullable(),
15
15
  birthLocation: location_dto_1.locationSchema.nullable(),
16
- tags: zod_1.default.array(tag_dto_1.tagSchema.extend({
16
+ tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
17
17
  group: tag_group_dto_1.tagGroupSchema.pick({
18
18
  id: true,
19
19
  color: true,
20
20
  isExclusive: true,
21
21
  }),
22
- })),
23
- });
22
+ }))),
23
+ }));
24
24
  class FindByIdProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByIdProfileResponseSchema) {
25
25
  }
26
26
  exports.FindByIdProfileResponseDto = FindByIdProfileResponseDto;
@@ -8,12 +8,12 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
8
8
  fullName: z.ZodString;
9
9
  firstName: z.ZodNullable<z.ZodString>;
10
10
  gender: z.ZodNullable<z.ZodString>;
11
- birthDate: z.ZodNullable<z.ZodDate>;
11
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
12
12
  profilePictureUrl: z.ZodNullable<z.ZodString>;
13
13
  instagram: z.ZodNullable<z.ZodString>;
14
14
  mail: z.ZodNullable<z.ZodString>;
15
15
  dni: z.ZodNullable<z.ZodString>;
16
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
16
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
17
17
  birthLocationId: z.ZodNullable<z.ZodString>;
18
18
  residenceLocationId: z.ZodNullable<z.ZodString>;
19
19
  isInTrash: z.ZodBoolean;
@@ -71,7 +71,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
71
71
  instagram: string | null;
72
72
  mail: string | null;
73
73
  dni: string | null;
74
- alternativeNames: string[] | null;
74
+ alternativeNames: string[];
75
75
  birthLocationId: string | null;
76
76
  residenceLocationId: string | null;
77
77
  isInTrash: boolean;
@@ -95,11 +95,11 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
95
95
  shortId: number;
96
96
  firstName: string | null;
97
97
  gender: string | null;
98
- birthDate: Date | null;
98
+ birthDate: string | null;
99
99
  instagram: string | null;
100
100
  mail: string | null;
101
101
  dni: string | null;
102
- alternativeNames: string[] | null;
102
+ alternativeNames: string[];
103
103
  birthLocationId: string | null;
104
104
  residenceLocationId: string | null;
105
105
  isInTrash: boolean;
@@ -129,7 +129,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
129
129
  instagram: string | null;
130
130
  mail: string | null;
131
131
  dni: string | null;
132
- alternativeNames: string[] | null;
132
+ alternativeNames: string[];
133
133
  birthLocationId: string | null;
134
134
  residenceLocationId: string | null;
135
135
  isInTrash: boolean;
@@ -155,11 +155,11 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
155
155
  shortId: number;
156
156
  firstName: string | null;
157
157
  gender: string | null;
158
- birthDate: Date | null;
158
+ birthDate: string | null;
159
159
  instagram: string | null;
160
160
  mail: string | null;
161
161
  dni: string | null;
162
- alternativeNames: string[] | null;
162
+ alternativeNames: string[];
163
163
  birthLocationId: string | null;
164
164
  residenceLocationId: string | null;
165
165
  isInTrash: boolean;
@@ -175,12 +175,12 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
175
175
  fullName: z.ZodString;
176
176
  firstName: z.ZodNullable<z.ZodString>;
177
177
  gender: z.ZodNullable<z.ZodString>;
178
- birthDate: z.ZodNullable<z.ZodString>;
178
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
179
179
  profilePictureUrl: z.ZodNullable<z.ZodString>;
180
180
  instagram: z.ZodNullable<z.ZodString>;
181
181
  mail: z.ZodNullable<z.ZodString>;
182
182
  dni: z.ZodNullable<z.ZodString>;
183
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
183
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
184
184
  birthLocationId: z.ZodNullable<z.ZodString>;
185
185
  residenceLocationId: z.ZodNullable<z.ZodString>;
186
186
  isInTrash: z.ZodBoolean;
@@ -233,11 +233,11 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
233
233
  shortId: number;
234
234
  firstName: string | null;
235
235
  gender: string | null;
236
- birthDate: string | null;
236
+ birthDate: Date | null;
237
237
  instagram: string | null;
238
238
  mail: string | null;
239
239
  dni: string | null;
240
- alternativeNames: string[] | null;
240
+ alternativeNames: string[];
241
241
  birthLocationId: string | null;
242
242
  residenceLocationId: string | null;
243
243
  isInTrash: boolean;
@@ -265,7 +265,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
265
265
  instagram: string | null;
266
266
  mail: string | null;
267
267
  dni: string | null;
268
- alternativeNames: string[] | null;
268
+ alternativeNames: string[];
269
269
  birthLocationId: string | null;
270
270
  residenceLocationId: string | null;
271
271
  isInTrash: boolean;
@@ -291,11 +291,11 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
291
291
  shortId: number;
292
292
  firstName: string | null;
293
293
  gender: string | null;
294
- birthDate: string | null;
294
+ birthDate: Date | null;
295
295
  instagram: string | null;
296
296
  mail: string | null;
297
297
  dni: string | null;
298
- alternativeNames: string[] | null;
298
+ alternativeNames: string[];
299
299
  birthLocationId: string | null;
300
300
  residenceLocationId: string | null;
301
301
  isInTrash: boolean;
@@ -325,7 +325,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
325
325
  instagram: string | null;
326
326
  mail: string | null;
327
327
  dni: string | null;
328
- alternativeNames: string[] | null;
328
+ alternativeNames: string[];
329
329
  birthLocationId: string | null;
330
330
  residenceLocationId: string | null;
331
331
  isInTrash: boolean;
@@ -9,9 +9,9 @@ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/cre
9
9
  const tag_dto_1 = require("../../tag/dto/tag.dto");
10
10
  const zod_1 = __importDefault(require("zod"));
11
11
  exports.findByTagGroupsProfileResponseSchema = zod_1.default.object({
12
- profiles: zod_1.default.array(profile_dto_1.profileSchema.extend({
12
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.merge(zod_1.default.object({
13
13
  tags: zod_1.default.array(tag_dto_1.tagSchema),
14
- })),
14
+ }))),
15
15
  });
16
16
  class FindByTagGroupsProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByTagGroupsProfileResponseSchema) {
17
17
  }
@@ -8,12 +8,12 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
8
8
  fullName: z.ZodString;
9
9
  firstName: z.ZodNullable<z.ZodString>;
10
10
  gender: z.ZodNullable<z.ZodString>;
11
- birthDate: z.ZodNullable<z.ZodDate>;
11
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
12
12
  profilePictureUrl: z.ZodNullable<z.ZodString>;
13
13
  instagram: z.ZodNullable<z.ZodString>;
14
14
  mail: z.ZodNullable<z.ZodString>;
15
15
  dni: z.ZodNullable<z.ZodString>;
16
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
16
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
17
17
  birthLocationId: z.ZodNullable<z.ZodString>;
18
18
  residenceLocationId: z.ZodNullable<z.ZodString>;
19
19
  isInTrash: z.ZodBoolean;
@@ -93,7 +93,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
93
93
  instagram: string | null;
94
94
  mail: string | null;
95
95
  dni: string | null;
96
- alternativeNames: string[] | null;
96
+ alternativeNames: string[];
97
97
  birthLocationId: string | null;
98
98
  residenceLocationId: string | null;
99
99
  isInTrash: boolean;
@@ -120,11 +120,11 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
120
120
  shortId: number;
121
121
  firstName: string | null;
122
122
  gender: string | null;
123
- birthDate: Date | null;
123
+ birthDate: string | null;
124
124
  instagram: string | null;
125
125
  mail: string | null;
126
126
  dni: string | null;
127
- alternativeNames: string[] | null;
127
+ alternativeNames: string[];
128
128
  birthLocationId: string | null;
129
129
  residenceLocationId: string | null;
130
130
  isInTrash: boolean;
@@ -157,7 +157,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
157
157
  instagram: string | null;
158
158
  mail: string | null;
159
159
  dni: string | null;
160
- alternativeNames: string[] | null;
160
+ alternativeNames: string[];
161
161
  birthLocationId: string | null;
162
162
  residenceLocationId: string | null;
163
163
  isInTrash: boolean;
@@ -186,11 +186,11 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
186
186
  shortId: number;
187
187
  firstName: string | null;
188
188
  gender: string | null;
189
- birthDate: Date | null;
189
+ birthDate: string | null;
190
190
  instagram: string | null;
191
191
  mail: string | null;
192
192
  dni: string | null;
193
- alternativeNames: string[] | null;
193
+ alternativeNames: string[];
194
194
  birthLocationId: string | null;
195
195
  residenceLocationId: string | null;
196
196
  isInTrash: boolean;
@@ -206,12 +206,12 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
206
206
  fullName: z.ZodString;
207
207
  firstName: z.ZodNullable<z.ZodString>;
208
208
  gender: z.ZodNullable<z.ZodString>;
209
- birthDate: z.ZodNullable<z.ZodString>;
209
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
210
210
  profilePictureUrl: z.ZodNullable<z.ZodString>;
211
211
  instagram: z.ZodNullable<z.ZodString>;
212
212
  mail: z.ZodNullable<z.ZodString>;
213
213
  dni: z.ZodNullable<z.ZodString>;
214
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
214
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
215
215
  birthLocationId: z.ZodNullable<z.ZodString>;
216
216
  residenceLocationId: z.ZodNullable<z.ZodString>;
217
217
  isInTrash: z.ZodBoolean;
@@ -280,11 +280,11 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
280
280
  shortId: number;
281
281
  firstName: string | null;
282
282
  gender: string | null;
283
- birthDate: string | null;
283
+ birthDate: Date | null;
284
284
  instagram: string | null;
285
285
  mail: string | null;
286
286
  dni: string | null;
287
- alternativeNames: string[] | null;
287
+ alternativeNames: string[];
288
288
  birthLocationId: string | null;
289
289
  residenceLocationId: string | null;
290
290
  isInTrash: boolean;
@@ -315,7 +315,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
315
315
  instagram: string | null;
316
316
  mail: string | null;
317
317
  dni: string | null;
318
- alternativeNames: string[] | null;
318
+ alternativeNames: string[];
319
319
  birthLocationId: string | null;
320
320
  residenceLocationId: string | null;
321
321
  isInTrash: boolean;
@@ -344,11 +344,11 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
344
344
  shortId: number;
345
345
  firstName: string | null;
346
346
  gender: string | null;
347
- birthDate: string | null;
347
+ birthDate: Date | null;
348
348
  instagram: string | null;
349
349
  mail: string | null;
350
350
  dni: string | null;
351
- alternativeNames: string[] | null;
351
+ alternativeNames: string[];
352
352
  birthLocationId: string | null;
353
353
  residenceLocationId: string | null;
354
354
  isInTrash: boolean;
@@ -381,7 +381,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
381
381
  instagram: string | null;
382
382
  mail: string | null;
383
383
  dni: string | null;
384
- alternativeNames: string[] | null;
384
+ alternativeNames: string[];
385
385
  birthLocationId: string | null;
386
386
  residenceLocationId: string | null;
387
387
  isInTrash: boolean;
@@ -10,13 +10,13 @@ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
10
10
  const tag_dto_1 = require("../../tag/dto/tag.dto");
11
11
  const zod_1 = __importDefault(require("zod"));
12
12
  exports.findByTagsProfileResponseSchema = zod_1.default.object({
13
- profiles: zod_1.default.array(profile_dto_1.profileSchema.extend({
14
- tags: zod_1.default.array(tag_dto_1.tagSchema.extend({
13
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.merge(zod_1.default.object({
14
+ tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
15
15
  group: tag_group_dto_1.tagGroupSchema.pick({
16
16
  isExclusive: true,
17
17
  }),
18
- })),
19
- })),
18
+ }))),
19
+ }))),
20
20
  });
21
21
  class FindByTagsProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByTagsProfileResponseSchema) {
22
22
  }
@@ -7,12 +7,12 @@ export declare const profileSchema: z.ZodObject<{
7
7
  fullName: z.ZodString;
8
8
  firstName: z.ZodNullable<z.ZodString>;
9
9
  gender: z.ZodNullable<z.ZodString>;
10
- birthDate: z.ZodNullable<z.ZodDate>;
10
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
11
11
  profilePictureUrl: z.ZodNullable<z.ZodString>;
12
12
  instagram: z.ZodNullable<z.ZodString>;
13
13
  mail: z.ZodNullable<z.ZodString>;
14
14
  dni: z.ZodNullable<z.ZodString>;
15
- alternativeNames: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
15
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
16
16
  birthLocationId: z.ZodNullable<z.ZodString>;
17
17
  residenceLocationId: z.ZodNullable<z.ZodString>;
18
18
  isInTrash: z.ZodBoolean;
@@ -34,7 +34,7 @@ export declare const profileSchema: z.ZodObject<{
34
34
  instagram: string | null;
35
35
  mail: string | null;
36
36
  dni: string | null;
37
- alternativeNames: string[] | null;
37
+ alternativeNames: string[];
38
38
  birthLocationId: string | null;
39
39
  residenceLocationId: string | null;
40
40
  isInTrash: boolean;
@@ -50,11 +50,11 @@ export declare const profileSchema: z.ZodObject<{
50
50
  shortId: number;
51
51
  firstName: string | null;
52
52
  gender: string | null;
53
- birthDate: Date | null;
53
+ birthDate: string | null;
54
54
  instagram: string | null;
55
55
  mail: string | null;
56
56
  dni: string | null;
57
- alternativeNames: string[] | null;
57
+ alternativeNames: string[];
58
58
  birthLocationId: string | null;
59
59
  residenceLocationId: string | null;
60
60
  isInTrash: boolean;
@@ -23,7 +23,11 @@ exports.profileSchema = zod_1.default.object({
23
23
  secondaryPhoneNumber: zod_1.default
24
24
  .string()
25
25
  .nullable()
26
- .refine(validator_1.default.isMobilePhone, {
26
+ .refine((value) => {
27
+ if (value === null)
28
+ return true;
29
+ return validator_1.default.isMobilePhone(value);
30
+ }, {
27
31
  message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
28
32
  }),
29
33
  fullName: zod_1.default.string().min(1, {
@@ -36,7 +40,7 @@ exports.profileSchema = zod_1.default.object({
36
40
  })
37
41
  .nullable(),
38
42
  gender: zod_1.default.string().nullable(),
39
- birthDate: zod_1.default.date().nullable(),
43
+ birthDate: zod_1.default.string().pipe(zod_1.default.coerce.date()).nullable(),
40
44
  profilePictureUrl: zod_1.default
41
45
  .string()
42
46
  .url({
@@ -46,7 +50,7 @@ exports.profileSchema = zod_1.default.object({
46
50
  instagram: zod_1.default.string().nullable(),
47
51
  mail: zod_1.default.string().email().nullable(),
48
52
  dni: zod_1.default.string().nullable(),
49
- alternativeNames: zod_1.default.array(zod_1.default.string()).nullable(),
53
+ alternativeNames: zod_1.default.array(zod_1.default.string()),
50
54
  birthLocationId: zod_1.default.string().uuid().nullable(),
51
55
  residenceLocationId: zod_1.default.string().uuid().nullable(),
52
56
  isInTrash: zod_1.default.boolean(),