expo-backend-types 0.9.0-EXPO-249-EB-Modelo.5 → 0.9.0-EXPO-249-EB-Modelo.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/account/dto/account.dto.d.ts +6 -4
- package/dist/src/account/dto/create-account.dto.d.ts +12 -8
- package/dist/src/account/dto/get-global-filter.dto.d.ts +1 -0
- package/dist/src/account/dto/get-me.dto.d.ts +6 -4
- package/dist/src/account/dto/update-global-filter.dto.d.ts +6 -4
- package/dist/src/auth/dto/login.dto.d.ts +11 -8
- package/dist/src/comment/dto/get-by-profile-comment.dto.d.ts +1 -0
- package/dist/src/i18n/es.d.ts +8 -0
- package/dist/src/i18n/es.js +8 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/profile/dto/create-profile.dto.d.ts +694 -0
- package/dist/src/profile/dto/create-profile.dto.js +84 -0
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +6 -6
- package/dist/src/profile/dto/find-all-profile.dto.js +4 -4
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +4 -4
- package/dist/src/profile/dto/find-by-id-profile.dto.js +4 -4
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +6 -6
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +6 -6
- package/dist/src/profile/dto/find-by-tags-profile.dto.js +4 -4
- package/dist/src/profile/dto/profile.dto.d.ts +2 -2
- package/dist/src/profile/dto/profile.dto.js +6 -2
- package/dist/src/profile/exports.d.ts +1 -0
- package/dist/src/profile/exports.js +1 -0
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +6 -6
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +6 -6
- package/dist/types/prisma-schema/edge.js +5 -4
- package/dist/types/prisma-schema/index-browser.js +2 -1
- package/dist/types/prisma-schema/index.d.ts +9 -2
- package/dist/types/prisma-schema/index.js +5 -4
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +2 -0
- package/dist/types/prisma-schema/wasm.js +2 -1
- package/dist/types/schema.d.ts +102 -5
- package/package.json +2 -1
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.CreateProfileResponseDto = exports.createProfileResponseSchema = exports.CreateProfileDto = exports.createProfileSchema = void 0;
|
7
|
+
const comment_dto_1 = require("../../comment/dto/comment.dto");
|
8
|
+
const location_dto_1 = require("../../location/dto/location.dto");
|
9
|
+
const profile_dto_1 = require("./profile.dto");
|
10
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
11
|
+
const tag_dto_1 = require("../../tag/dto/tag.dto");
|
12
|
+
const zod_1 = __importDefault(require("zod"));
|
13
|
+
exports.createProfileSchema = zod_1.default.object({
|
14
|
+
profile: profile_dto_1.profileSchema
|
15
|
+
.pick({
|
16
|
+
alternativeNames: true,
|
17
|
+
birthDate: true,
|
18
|
+
dni: true,
|
19
|
+
fullName: true,
|
20
|
+
gender: true,
|
21
|
+
instagram: true,
|
22
|
+
mail: true,
|
23
|
+
phoneNumber: true,
|
24
|
+
profilePictureUrl: true,
|
25
|
+
secondaryPhoneNumber: true,
|
26
|
+
})
|
27
|
+
.merge(zod_1.default.object({
|
28
|
+
comments: zod_1.default
|
29
|
+
.array(comment_dto_1.commentSchema.pick({
|
30
|
+
content: true,
|
31
|
+
isSolvable: true,
|
32
|
+
}))
|
33
|
+
.optional(),
|
34
|
+
residence: location_dto_1.locationSchema
|
35
|
+
.pick({
|
36
|
+
city: true,
|
37
|
+
country: true,
|
38
|
+
latitude: true,
|
39
|
+
longitude: true,
|
40
|
+
state: true,
|
41
|
+
})
|
42
|
+
.optional(),
|
43
|
+
birth: location_dto_1.locationSchema
|
44
|
+
.pick({
|
45
|
+
city: true,
|
46
|
+
country: true,
|
47
|
+
latitude: true,
|
48
|
+
longitude: true,
|
49
|
+
state: true,
|
50
|
+
})
|
51
|
+
.optional(),
|
52
|
+
tags: zod_1.default.array(tag_dto_1.tagSchema.shape.id).optional(),
|
53
|
+
})),
|
54
|
+
checkForSimilarity: zod_1.default.boolean().optional(),
|
55
|
+
});
|
56
|
+
class CreateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createProfileSchema) {
|
57
|
+
}
|
58
|
+
exports.CreateProfileDto = CreateProfileDto;
|
59
|
+
const similarProfileSchema = zod_1.default.object({
|
60
|
+
profile: profile_dto_1.profileSchema.pick({
|
61
|
+
fullName: true,
|
62
|
+
phoneNumber: true,
|
63
|
+
id: true,
|
64
|
+
}),
|
65
|
+
similarityPhoneNumberPercentage: zod_1.default.number(),
|
66
|
+
similarityFullNamePercentage: zod_1.default.number(),
|
67
|
+
});
|
68
|
+
const createProfileResponseSchemaBase = zod_1.default.discriminatedUnion('type', [
|
69
|
+
zod_1.default.object({
|
70
|
+
type: zod_1.default.literal('similar'),
|
71
|
+
similarProfiles: zod_1.default.array(similarProfileSchema),
|
72
|
+
}),
|
73
|
+
zod_1.default.object({
|
74
|
+
type: zod_1.default.literal('created'),
|
75
|
+
id: profile_dto_1.profileSchema.shape.id,
|
76
|
+
}),
|
77
|
+
]);
|
78
|
+
exports.createProfileResponseSchema = zod_1.default.object({
|
79
|
+
response: createProfileResponseSchemaBase,
|
80
|
+
});
|
81
|
+
class CreateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createProfileResponseSchema) {
|
82
|
+
}
|
83
|
+
exports.CreateProfileResponseDto = CreateProfileResponseDto;
|
84
|
+
//# sourceMappingURL=create-profile.dto.js.map
|
@@ -8,7 +8,7 @@ export declare const findAllProfileResponseSchema: 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>;
|
@@ -126,7 +126,7 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
126
126
|
shortId: number;
|
127
127
|
firstName: string | null;
|
128
128
|
gender: string | null;
|
129
|
-
birthDate:
|
129
|
+
birthDate: string | null;
|
130
130
|
instagram: string | null;
|
131
131
|
mail: string | null;
|
132
132
|
dni: string | null;
|
@@ -194,7 +194,7 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
|
|
194
194
|
shortId: number;
|
195
195
|
firstName: string | null;
|
196
196
|
gender: string | null;
|
197
|
-
birthDate:
|
197
|
+
birthDate: string | null;
|
198
198
|
instagram: string | null;
|
199
199
|
mail: string | null;
|
200
200
|
dni: string | null;
|
@@ -214,7 +214,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
214
214
|
fullName: z.ZodString;
|
215
215
|
firstName: z.ZodNullable<z.ZodString>;
|
216
216
|
gender: z.ZodNullable<z.ZodString>;
|
217
|
-
birthDate: z.ZodNullable<z.ZodString
|
217
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
218
218
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
219
219
|
instagram: z.ZodNullable<z.ZodString>;
|
220
220
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -294,7 +294,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
294
294
|
shortId: number;
|
295
295
|
firstName: string | null;
|
296
296
|
gender: string | null;
|
297
|
-
birthDate:
|
297
|
+
birthDate: Date | null;
|
298
298
|
instagram: string | null;
|
299
299
|
mail: string | null;
|
300
300
|
dni: string | null;
|
@@ -360,7 +360,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
360
360
|
shortId: number;
|
361
361
|
firstName: string | null;
|
362
362
|
gender: string | null;
|
363
|
-
birthDate:
|
363
|
+
birthDate: Date | null;
|
364
364
|
instagram: string | null;
|
365
365
|
mail: string | null;
|
366
366
|
dni: string | null;
|
@@ -10,14 +10,14 @@ 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.findAllProfileResponseSchema = zod_1.default.object({
|
13
|
-
profiles: zod_1.default.array(profile_dto_1.profileSchema.
|
14
|
-
tags: zod_1.default.array(tag_dto_1.tagSchema.
|
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
|
color: true,
|
17
17
|
isExclusive: true,
|
18
18
|
}),
|
19
|
-
})),
|
20
|
-
})),
|
19
|
+
}))),
|
20
|
+
}))),
|
21
21
|
});
|
22
22
|
class FindAllProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findAllProfileResponseSchema) {
|
23
23
|
}
|
@@ -7,7 +7,7 @@ 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>;
|
@@ -207,7 +207,7 @@ 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:
|
210
|
+
birthDate: string | null;
|
211
211
|
instagram: string | null;
|
212
212
|
mail: string | null;
|
213
213
|
dni: string | null;
|
@@ -245,7 +245,7 @@ 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>;
|
@@ -387,7 +387,7 @@ 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:
|
390
|
+
birthDate: Date | null;
|
391
391
|
instagram: string | null;
|
392
392
|
mail: string | null;
|
393
393
|
dni: string | null;
|
@@ -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.
|
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.
|
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,7 +8,7 @@ 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>;
|
@@ -95,7 +95,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
|
|
95
95
|
shortId: number;
|
96
96
|
firstName: string | null;
|
97
97
|
gender: string | null;
|
98
|
-
birthDate:
|
98
|
+
birthDate: string | null;
|
99
99
|
instagram: string | null;
|
100
100
|
mail: string | null;
|
101
101
|
dni: string | null;
|
@@ -155,7 +155,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
|
|
155
155
|
shortId: number;
|
156
156
|
firstName: string | null;
|
157
157
|
gender: string | null;
|
158
|
-
birthDate:
|
158
|
+
birthDate: string | null;
|
159
159
|
instagram: string | null;
|
160
160
|
mail: string | null;
|
161
161
|
dni: string | null;
|
@@ -175,7 +175,7 @@ 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>;
|
@@ -233,7 +233,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
|
|
233
233
|
shortId: number;
|
234
234
|
firstName: string | null;
|
235
235
|
gender: string | null;
|
236
|
-
birthDate:
|
236
|
+
birthDate: Date | null;
|
237
237
|
instagram: string | null;
|
238
238
|
mail: string | null;
|
239
239
|
dni: string | null;
|
@@ -291,7 +291,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
|
|
291
291
|
shortId: number;
|
292
292
|
firstName: string | null;
|
293
293
|
gender: string | null;
|
294
|
-
birthDate:
|
294
|
+
birthDate: Date | null;
|
295
295
|
instagram: string | null;
|
296
296
|
mail: string | null;
|
297
297
|
dni: string | null;
|
@@ -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.
|
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,7 +8,7 @@ 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>;
|
@@ -120,7 +120,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
120
120
|
shortId: number;
|
121
121
|
firstName: string | null;
|
122
122
|
gender: string | null;
|
123
|
-
birthDate:
|
123
|
+
birthDate: string | null;
|
124
124
|
instagram: string | null;
|
125
125
|
mail: string | null;
|
126
126
|
dni: string | null;
|
@@ -186,7 +186,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
|
|
186
186
|
shortId: number;
|
187
187
|
firstName: string | null;
|
188
188
|
gender: string | null;
|
189
|
-
birthDate:
|
189
|
+
birthDate: string | null;
|
190
190
|
instagram: string | null;
|
191
191
|
mail: string | null;
|
192
192
|
dni: string | null;
|
@@ -206,7 +206,7 @@ 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>;
|
@@ -280,7 +280,7 @@ 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:
|
283
|
+
birthDate: Date | null;
|
284
284
|
instagram: string | null;
|
285
285
|
mail: string | null;
|
286
286
|
dni: string | null;
|
@@ -344,7 +344,7 @@ 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:
|
347
|
+
birthDate: Date | null;
|
348
348
|
instagram: string | null;
|
349
349
|
mail: string | null;
|
350
350
|
dni: string | null;
|
@@ -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.
|
14
|
-
tags: zod_1.default.array(tag_dto_1.tagSchema.
|
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,7 +7,7 @@ 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>;
|
@@ -50,7 +50,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
50
50
|
shortId: number;
|
51
51
|
firstName: string | null;
|
52
52
|
gender: string | null;
|
53
|
-
birthDate:
|
53
|
+
birthDate: string | null;
|
54
54
|
instagram: string | null;
|
55
55
|
mail: string | null;
|
56
56
|
dni: string | null;
|
@@ -23,7 +23,11 @@ exports.profileSchema = zod_1.default.object({
|
|
23
23
|
secondaryPhoneNumber: zod_1.default
|
24
24
|
.string()
|
25
25
|
.nullable()
|
26
|
-
.refine(
|
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({
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto/create-profile.dto"), exports);
|
17
18
|
__exportStar(require("./dto/find-all-profile.dto"), exports);
|
18
19
|
__exportStar(require("./dto/find-by-id-profile.dto"), exports);
|
19
20
|
__exportStar(require("./dto/find-by-tag-groups-profile.dto"), exports);
|
@@ -30,7 +30,7 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
30
30
|
fullName: z.ZodString;
|
31
31
|
firstName: z.ZodNullable<z.ZodString>;
|
32
32
|
gender: z.ZodNullable<z.ZodString>;
|
33
|
-
birthDate: z.ZodNullable<z.ZodDate
|
33
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
34
34
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
35
35
|
instagram: z.ZodNullable<z.ZodString>;
|
36
36
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -73,7 +73,7 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
73
73
|
shortId: number;
|
74
74
|
firstName: string | null;
|
75
75
|
gender: string | null;
|
76
|
-
birthDate:
|
76
|
+
birthDate: string | null;
|
77
77
|
instagram: string | null;
|
78
78
|
mail: string | null;
|
79
79
|
dni: string | null;
|
@@ -117,7 +117,7 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
|
|
117
117
|
shortId: number;
|
118
118
|
firstName: string | null;
|
119
119
|
gender: string | null;
|
120
|
-
birthDate:
|
120
|
+
birthDate: string | null;
|
121
121
|
instagram: string | null;
|
122
122
|
mail: string | null;
|
123
123
|
dni: string | null;
|
@@ -137,7 +137,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
137
137
|
fullName: z.ZodString;
|
138
138
|
firstName: z.ZodNullable<z.ZodString>;
|
139
139
|
gender: z.ZodNullable<z.ZodString>;
|
140
|
-
birthDate: z.ZodNullable<z.ZodString
|
140
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
141
141
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
142
142
|
instagram: z.ZodNullable<z.ZodString>;
|
143
143
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -160,7 +160,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
160
160
|
shortId: number;
|
161
161
|
firstName: string | null;
|
162
162
|
gender: string | null;
|
163
|
-
birthDate:
|
163
|
+
birthDate: Date | null;
|
164
164
|
instagram: string | null;
|
165
165
|
mail: string | null;
|
166
166
|
dni: string | null;
|
@@ -202,7 +202,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
202
202
|
shortId: number;
|
203
203
|
firstName: string | null;
|
204
204
|
gender: string | null;
|
205
|
-
birthDate:
|
205
|
+
birthDate: Date | null;
|
206
206
|
instagram: string | null;
|
207
207
|
mail: string | null;
|
208
208
|
dni: string | null;
|
@@ -30,7 +30,7 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
30
30
|
fullName: z.ZodString;
|
31
31
|
firstName: z.ZodNullable<z.ZodString>;
|
32
32
|
gender: z.ZodNullable<z.ZodString>;
|
33
|
-
birthDate: z.ZodNullable<z.ZodDate
|
33
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
34
34
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
35
35
|
instagram: z.ZodNullable<z.ZodString>;
|
36
36
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -73,7 +73,7 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
73
73
|
shortId: number;
|
74
74
|
firstName: string | null;
|
75
75
|
gender: string | null;
|
76
|
-
birthDate:
|
76
|
+
birthDate: string | null;
|
77
77
|
instagram: string | null;
|
78
78
|
mail: string | null;
|
79
79
|
dni: string | null;
|
@@ -117,7 +117,7 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
|
|
117
117
|
shortId: number;
|
118
118
|
firstName: string | null;
|
119
119
|
gender: string | null;
|
120
|
-
birthDate:
|
120
|
+
birthDate: string | null;
|
121
121
|
instagram: string | null;
|
122
122
|
mail: string | null;
|
123
123
|
dni: string | null;
|
@@ -137,7 +137,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
137
137
|
fullName: z.ZodString;
|
138
138
|
firstName: z.ZodNullable<z.ZodString>;
|
139
139
|
gender: z.ZodNullable<z.ZodString>;
|
140
|
-
birthDate: z.ZodNullable<z.ZodString
|
140
|
+
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
141
141
|
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
142
142
|
instagram: z.ZodNullable<z.ZodString>;
|
143
143
|
mail: z.ZodNullable<z.ZodString>;
|
@@ -160,7 +160,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
160
160
|
shortId: number;
|
161
161
|
firstName: string | null;
|
162
162
|
gender: string | null;
|
163
|
-
birthDate:
|
163
|
+
birthDate: Date | null;
|
164
164
|
instagram: string | null;
|
165
165
|
mail: string | null;
|
166
166
|
dni: string | null;
|
@@ -202,7 +202,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
|
|
202
202
|
shortId: number;
|
203
203
|
firstName: string | null;
|
204
204
|
gender: string | null;
|
205
|
-
birthDate:
|
205
|
+
birthDate: Date | null;
|
206
206
|
instagram: string | null;
|
207
207
|
mail: string | null;
|
208
208
|
dni: string | null;
|