expo-backend-types 0.10.0-EXPO-247-EB-Evento.5 → 0.10.0-EXPO-247-EB-Evento.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) 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/event-folder/dto/update-event-folder.dto.d.ts +17 -14
  9. package/dist/src/event-folder/dto/update-event-folder.dto.js +2 -4
  10. package/dist/src/i18n/es.d.ts +47 -0
  11. package/dist/src/i18n/es.js +47 -0
  12. package/dist/src/i18n/es.js.map +1 -1
  13. package/dist/src/profile/dto/create-profile.dto.d.ts +694 -0
  14. package/dist/src/profile/dto/create-profile.dto.js +84 -0
  15. package/dist/src/profile/dto/delete-profile.dto.d.ts +125 -0
  16. package/dist/src/profile/dto/delete-profile.dto.js +10 -0
  17. package/dist/src/profile/dto/find-all-profile.dto.d.ts +410 -0
  18. package/dist/src/profile/dto/find-all-profile.dto.js +25 -0
  19. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +655 -0
  20. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +34 -0
  21. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +475 -0
  22. package/dist/src/profile/dto/find-by-id-profile.dto.js +27 -0
  23. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +125 -0
  24. package/dist/src/profile/dto/find-by-phone-number.dto.js +10 -0
  25. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +337 -0
  26. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +19 -0
  27. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +393 -0
  28. package/dist/src/profile/dto/find-by-tags-profile.dto.js +24 -0
  29. package/dist/src/profile/dto/find-trash.dto.d.ts +110 -0
  30. package/dist/src/profile/dto/find-trash.dto.js +24 -0
  31. package/dist/src/profile/dto/profile.dto.d.ts +5 -5
  32. package/dist/src/profile/dto/profile.dto.js +7 -3
  33. package/dist/src/profile/dto/update-profile.dto.d.ts +360 -0
  34. package/dist/src/profile/dto/update-profile.dto.js +55 -0
  35. package/dist/src/profile/exports.d.ts +10 -0
  36. package/dist/src/profile/exports.js +10 -0
  37. package/dist/src/tag/dto/massive-allocation.dto.d.ts +16 -16
  38. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +16 -16
  39. package/dist/types/prisma-schema/edge.js +5 -4
  40. package/dist/types/prisma-schema/index-browser.js +2 -1
  41. package/dist/types/prisma-schema/index.d.ts +9 -2
  42. package/dist/types/prisma-schema/index.js +5 -4
  43. package/dist/types/prisma-schema/package.json +1 -1
  44. package/dist/types/prisma-schema/schema.prisma +2 -0
  45. package/dist/types/prisma-schema/wasm.js +2 -1
  46. package/dist/types/schema.d.ts +851 -160
  47. package/package.json +4 -1
@@ -0,0 +1,393 @@
1
+ import z from 'zod';
2
+ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
3
+ profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodString;
5
+ shortId: z.ZodNumber;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
8
+ fullName: z.ZodString;
9
+ firstName: z.ZodNullable<z.ZodString>;
10
+ gender: z.ZodNullable<z.ZodString>;
11
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
12
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
13
+ instagram: z.ZodNullable<z.ZodString>;
14
+ mail: z.ZodNullable<z.ZodString>;
15
+ dni: z.ZodNullable<z.ZodString>;
16
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
17
+ birthLocationId: z.ZodNullable<z.ZodString>;
18
+ residenceLocationId: z.ZodNullable<z.ZodString>;
19
+ isInTrash: z.ZodBoolean;
20
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
21
+ created_at: z.ZodDate;
22
+ updated_at: z.ZodDate;
23
+ }, {
24
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ groupId: z.ZodString;
28
+ type: z.ZodNativeEnum<{
29
+ PROFILE: "PROFILE";
30
+ EVENT: "EVENT";
31
+ PARTICIPANT: "PARTICIPANT";
32
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
33
+ }>;
34
+ created_at: z.ZodDate;
35
+ updated_at: z.ZodDate;
36
+ }, {
37
+ group: z.ZodObject<Pick<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ color: z.ZodString;
41
+ isExclusive: z.ZodBoolean;
42
+ created_at: z.ZodDate;
43
+ updated_at: z.ZodDate;
44
+ }, "isExclusive">, "strip", z.ZodTypeAny, {
45
+ isExclusive: boolean;
46
+ }, {
47
+ isExclusive: boolean;
48
+ }>;
49
+ }>, "strip", z.ZodTypeAny, {
50
+ id: string;
51
+ name: string;
52
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
53
+ created_at: Date;
54
+ updated_at: Date;
55
+ groupId: string;
56
+ group: {
57
+ isExclusive: boolean;
58
+ };
59
+ }, {
60
+ id: string;
61
+ name: string;
62
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
63
+ created_at: Date;
64
+ updated_at: Date;
65
+ groupId: string;
66
+ group: {
67
+ isExclusive: boolean;
68
+ };
69
+ }>, "many">;
70
+ }>, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ phoneNumber: string;
73
+ secondaryPhoneNumber: string | null;
74
+ fullName: string;
75
+ profilePictureUrl: string | null;
76
+ created_at: Date;
77
+ updated_at: Date;
78
+ tags: {
79
+ id: string;
80
+ name: string;
81
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
82
+ created_at: Date;
83
+ updated_at: Date;
84
+ groupId: string;
85
+ group: {
86
+ isExclusive: boolean;
87
+ };
88
+ }[];
89
+ shortId: number;
90
+ firstName: string | null;
91
+ gender: string | null;
92
+ birthDate: Date | null;
93
+ instagram: string | null;
94
+ mail: string | null;
95
+ dni: string | null;
96
+ alternativeNames: string[];
97
+ birthLocationId: string | null;
98
+ residenceLocationId: string | null;
99
+ isInTrash: boolean;
100
+ movedToTrashDate: Date | null;
101
+ }, {
102
+ id: string;
103
+ phoneNumber: string;
104
+ secondaryPhoneNumber: string | null;
105
+ fullName: string;
106
+ profilePictureUrl: string | null;
107
+ created_at: Date;
108
+ updated_at: Date;
109
+ tags: {
110
+ id: string;
111
+ name: string;
112
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
113
+ created_at: Date;
114
+ updated_at: Date;
115
+ groupId: string;
116
+ group: {
117
+ isExclusive: boolean;
118
+ };
119
+ }[];
120
+ shortId: number;
121
+ firstName: string | null;
122
+ gender: string | null;
123
+ birthDate: string | null;
124
+ instagram: string | null;
125
+ mail: string | null;
126
+ dni: string | null;
127
+ alternativeNames: string[];
128
+ birthLocationId: string | null;
129
+ residenceLocationId: string | null;
130
+ isInTrash: boolean;
131
+ movedToTrashDate: Date | null;
132
+ }>, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ profiles: {
135
+ id: string;
136
+ phoneNumber: string;
137
+ secondaryPhoneNumber: string | null;
138
+ fullName: string;
139
+ profilePictureUrl: string | null;
140
+ created_at: Date;
141
+ updated_at: Date;
142
+ tags: {
143
+ id: string;
144
+ name: string;
145
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
146
+ created_at: Date;
147
+ updated_at: Date;
148
+ groupId: string;
149
+ group: {
150
+ isExclusive: boolean;
151
+ };
152
+ }[];
153
+ shortId: number;
154
+ firstName: string | null;
155
+ gender: string | null;
156
+ birthDate: Date | null;
157
+ instagram: string | null;
158
+ mail: string | null;
159
+ dni: string | null;
160
+ alternativeNames: string[];
161
+ birthLocationId: string | null;
162
+ residenceLocationId: string | null;
163
+ isInTrash: boolean;
164
+ movedToTrashDate: Date | null;
165
+ }[];
166
+ }, {
167
+ profiles: {
168
+ id: string;
169
+ phoneNumber: string;
170
+ secondaryPhoneNumber: string | null;
171
+ fullName: string;
172
+ profilePictureUrl: string | null;
173
+ created_at: Date;
174
+ updated_at: Date;
175
+ tags: {
176
+ id: string;
177
+ name: string;
178
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
179
+ created_at: Date;
180
+ updated_at: Date;
181
+ groupId: string;
182
+ group: {
183
+ isExclusive: boolean;
184
+ };
185
+ }[];
186
+ shortId: number;
187
+ firstName: string | null;
188
+ gender: string | null;
189
+ birthDate: string | null;
190
+ instagram: string | null;
191
+ mail: string | null;
192
+ dni: string | null;
193
+ alternativeNames: string[];
194
+ birthLocationId: string | null;
195
+ residenceLocationId: string | null;
196
+ isInTrash: boolean;
197
+ movedToTrashDate: Date | null;
198
+ }[];
199
+ }>;
200
+ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
201
+ profiles: z.ZodArray<z.ZodObject<{
202
+ id: z.ZodString;
203
+ shortId: z.ZodNumber;
204
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
205
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
206
+ fullName: z.ZodString;
207
+ firstName: z.ZodNullable<z.ZodString>;
208
+ gender: z.ZodNullable<z.ZodString>;
209
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
210
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
211
+ instagram: z.ZodNullable<z.ZodString>;
212
+ mail: z.ZodNullable<z.ZodString>;
213
+ dni: z.ZodNullable<z.ZodString>;
214
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
215
+ birthLocationId: z.ZodNullable<z.ZodString>;
216
+ residenceLocationId: z.ZodNullable<z.ZodString>;
217
+ isInTrash: z.ZodBoolean;
218
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
219
+ created_at: z.ZodString;
220
+ updated_at: z.ZodString;
221
+ tags: z.ZodArray<z.ZodObject<{
222
+ id: z.ZodString;
223
+ name: z.ZodString;
224
+ groupId: z.ZodString;
225
+ type: z.ZodNativeEnum<{
226
+ PROFILE: "PROFILE";
227
+ EVENT: "EVENT";
228
+ PARTICIPANT: "PARTICIPANT";
229
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
230
+ }>;
231
+ created_at: z.ZodString;
232
+ updated_at: z.ZodString;
233
+ group: z.ZodObject<{
234
+ isExclusive: z.ZodBoolean;
235
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
236
+ isExclusive: boolean;
237
+ }, {
238
+ isExclusive: boolean;
239
+ }>;
240
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
241
+ id: string;
242
+ name: string;
243
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
244
+ created_at: string;
245
+ updated_at: string;
246
+ groupId: string;
247
+ group: {
248
+ isExclusive: boolean;
249
+ };
250
+ }, {
251
+ id: string;
252
+ name: string;
253
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
254
+ created_at: string;
255
+ updated_at: string;
256
+ groupId: string;
257
+ group: {
258
+ isExclusive: boolean;
259
+ };
260
+ }>, "many">;
261
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
262
+ id: string;
263
+ phoneNumber: string;
264
+ secondaryPhoneNumber: string | null;
265
+ fullName: string;
266
+ profilePictureUrl: string | null;
267
+ created_at: string;
268
+ updated_at: string;
269
+ tags: {
270
+ id: string;
271
+ name: string;
272
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
273
+ created_at: string;
274
+ updated_at: string;
275
+ groupId: string;
276
+ group: {
277
+ isExclusive: boolean;
278
+ };
279
+ }[];
280
+ shortId: number;
281
+ firstName: string | null;
282
+ gender: string | null;
283
+ birthDate: Date | null;
284
+ instagram: string | null;
285
+ mail: string | null;
286
+ dni: string | null;
287
+ alternativeNames: string[];
288
+ birthLocationId: string | null;
289
+ residenceLocationId: string | null;
290
+ isInTrash: boolean;
291
+ movedToTrashDate: string | null;
292
+ }, {
293
+ id: string;
294
+ phoneNumber: string;
295
+ secondaryPhoneNumber: string | null;
296
+ fullName: string;
297
+ profilePictureUrl: string | null;
298
+ created_at: string;
299
+ updated_at: string;
300
+ tags: {
301
+ id: string;
302
+ name: string;
303
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
304
+ created_at: string;
305
+ updated_at: string;
306
+ groupId: string;
307
+ group: {
308
+ isExclusive: boolean;
309
+ };
310
+ }[];
311
+ shortId: number;
312
+ firstName: string | null;
313
+ gender: string | null;
314
+ birthDate: string | null;
315
+ instagram: string | null;
316
+ mail: string | null;
317
+ dni: string | null;
318
+ alternativeNames: string[];
319
+ birthLocationId: string | null;
320
+ residenceLocationId: string | null;
321
+ isInTrash: boolean;
322
+ movedToTrashDate: string | null;
323
+ }>, "many">;
324
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
325
+ profiles: {
326
+ id: string;
327
+ phoneNumber: string;
328
+ secondaryPhoneNumber: string | null;
329
+ fullName: string;
330
+ profilePictureUrl: string | null;
331
+ created_at: string;
332
+ updated_at: string;
333
+ tags: {
334
+ id: string;
335
+ name: string;
336
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
337
+ created_at: string;
338
+ updated_at: string;
339
+ groupId: string;
340
+ group: {
341
+ isExclusive: boolean;
342
+ };
343
+ }[];
344
+ shortId: number;
345
+ firstName: string | null;
346
+ gender: string | null;
347
+ birthDate: Date | null;
348
+ instagram: string | null;
349
+ mail: string | null;
350
+ dni: string | null;
351
+ alternativeNames: string[];
352
+ birthLocationId: string | null;
353
+ residenceLocationId: string | null;
354
+ isInTrash: boolean;
355
+ movedToTrashDate: string | null;
356
+ }[];
357
+ }, {
358
+ profiles: {
359
+ id: string;
360
+ phoneNumber: string;
361
+ secondaryPhoneNumber: string | null;
362
+ fullName: string;
363
+ profilePictureUrl: string | null;
364
+ created_at: string;
365
+ updated_at: string;
366
+ tags: {
367
+ id: string;
368
+ name: string;
369
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
370
+ created_at: string;
371
+ updated_at: string;
372
+ groupId: string;
373
+ group: {
374
+ isExclusive: boolean;
375
+ };
376
+ }[];
377
+ shortId: number;
378
+ firstName: string | null;
379
+ gender: string | null;
380
+ birthDate: string | null;
381
+ instagram: string | null;
382
+ mail: string | null;
383
+ dni: string | null;
384
+ alternativeNames: string[];
385
+ birthLocationId: string | null;
386
+ residenceLocationId: string | null;
387
+ isInTrash: boolean;
388
+ movedToTrashDate: string | null;
389
+ }[];
390
+ }>>;
391
+ export declare class FindByTagsProfileResponseDto extends FindByTagsProfileResponseDto_base {
392
+ }
393
+ export {};
@@ -0,0 +1,24 @@
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.FindByTagsProfileResponseDto = exports.findByTagsProfileResponseSchema = void 0;
7
+ const profile_dto_1 = require("./profile.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
+ const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
10
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
11
+ const zod_1 = __importDefault(require("zod"));
12
+ exports.findByTagsProfileResponseSchema = zod_1.default.object({
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
+ group: tag_group_dto_1.tagGroupSchema.pick({
16
+ isExclusive: true,
17
+ }),
18
+ }))),
19
+ }))),
20
+ });
21
+ class FindByTagsProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByTagsProfileResponseSchema) {
22
+ }
23
+ exports.FindByTagsProfileResponseDto = FindByTagsProfileResponseDto;
24
+ //# sourceMappingURL=find-by-tags-profile.dto.js.map
@@ -0,0 +1,110 @@
1
+ import z from 'zod';
2
+ export declare const findTrashResponseSchema: z.ZodObject<{
3
+ profiles: z.ZodArray<z.ZodObject<Pick<{
4
+ id: z.ZodString;
5
+ shortId: z.ZodNumber;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
8
+ fullName: z.ZodString;
9
+ firstName: z.ZodNullable<z.ZodString>;
10
+ gender: z.ZodNullable<z.ZodString>;
11
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
12
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
13
+ instagram: z.ZodNullable<z.ZodString>;
14
+ mail: z.ZodNullable<z.ZodString>;
15
+ dni: z.ZodNullable<z.ZodString>;
16
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
17
+ birthLocationId: z.ZodNullable<z.ZodString>;
18
+ residenceLocationId: z.ZodNullable<z.ZodString>;
19
+ isInTrash: z.ZodBoolean;
20
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
21
+ created_at: z.ZodDate;
22
+ updated_at: z.ZodDate;
23
+ }, "id" | "phoneNumber" | "fullName" | "profilePictureUrl" | "created_at" | "isInTrash" | "movedToTrashDate">, "strip", z.ZodTypeAny, {
24
+ id: string;
25
+ phoneNumber: string;
26
+ fullName: string;
27
+ profilePictureUrl: string | null;
28
+ created_at: Date;
29
+ isInTrash: boolean;
30
+ movedToTrashDate: Date | null;
31
+ }, {
32
+ id: string;
33
+ phoneNumber: string;
34
+ fullName: string;
35
+ profilePictureUrl: string | null;
36
+ created_at: Date;
37
+ isInTrash: boolean;
38
+ movedToTrashDate: Date | null;
39
+ }>, "many">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ profiles: {
42
+ id: string;
43
+ phoneNumber: string;
44
+ fullName: string;
45
+ profilePictureUrl: string | null;
46
+ created_at: Date;
47
+ isInTrash: boolean;
48
+ movedToTrashDate: Date | null;
49
+ }[];
50
+ }, {
51
+ profiles: {
52
+ id: string;
53
+ phoneNumber: string;
54
+ fullName: string;
55
+ profilePictureUrl: string | null;
56
+ created_at: Date;
57
+ isInTrash: boolean;
58
+ movedToTrashDate: Date | null;
59
+ }[];
60
+ }>;
61
+ declare const FindTrashResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
62
+ profiles: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
65
+ fullName: z.ZodString;
66
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
67
+ created_at: z.ZodString;
68
+ isInTrash: z.ZodBoolean;
69
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
70
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
71
+ id: string;
72
+ phoneNumber: string;
73
+ fullName: string;
74
+ profilePictureUrl: string | null;
75
+ created_at: string;
76
+ isInTrash: boolean;
77
+ movedToTrashDate: string | null;
78
+ }, {
79
+ id: string;
80
+ phoneNumber: string;
81
+ fullName: string;
82
+ profilePictureUrl: string | null;
83
+ created_at: string;
84
+ isInTrash: boolean;
85
+ movedToTrashDate: string | null;
86
+ }>, "many">;
87
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
88
+ profiles: {
89
+ id: string;
90
+ phoneNumber: string;
91
+ fullName: string;
92
+ profilePictureUrl: string | null;
93
+ created_at: string;
94
+ isInTrash: boolean;
95
+ movedToTrashDate: string | null;
96
+ }[];
97
+ }, {
98
+ profiles: {
99
+ id: string;
100
+ phoneNumber: string;
101
+ fullName: string;
102
+ profilePictureUrl: string | null;
103
+ created_at: string;
104
+ isInTrash: boolean;
105
+ movedToTrashDate: string | null;
106
+ }[];
107
+ }>>;
108
+ export declare class FindTrashResponseDto extends FindTrashResponseDto_base {
109
+ }
110
+ export {};
@@ -0,0 +1,24 @@
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.FindTrashResponseDto = exports.findTrashResponseSchema = void 0;
7
+ const profile_dto_1 = require("./profile.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
+ const zod_1 = __importDefault(require("zod"));
10
+ exports.findTrashResponseSchema = zod_1.default.object({
11
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.pick({
12
+ id: true,
13
+ fullName: true,
14
+ profilePictureUrl: true,
15
+ created_at: true,
16
+ isInTrash: true,
17
+ phoneNumber: true,
18
+ movedToTrashDate: true,
19
+ })),
20
+ });
21
+ class FindTrashResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTrashResponseSchema) {
22
+ }
23
+ exports.FindTrashResponseDto = FindTrashResponseDto;
24
+ //# sourceMappingURL=find-trash.dto.js.map
@@ -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(),