expo-backend-types 0.30.0-EXPO-308-auth.9 → 0.30.0-EXPO-309-Migrar-Configuracion.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/src/exports.d.ts +0 -1
  2. package/dist/src/exports.js +0 -1
  3. package/dist/src/i18n/es.d.ts +0 -19
  4. package/dist/src/i18n/es.js +0 -19
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  7. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +10 -26
  9. package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -28
  10. package/dist/src/profile/dto/find-all-profile.dto.d.ts +4 -44
  11. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +8 -72
  12. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +4 -28
  13. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -28
  14. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +4 -44
  15. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +4 -44
  16. package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
  17. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +4 -44
  18. package/dist/src/profile/dto/profile.dto.d.ts +2 -14
  19. package/dist/src/profile/dto/profile.dto.js +3 -70
  20. package/dist/src/profile/dto/update-profile.dto.d.ts +8 -32
  21. package/dist/src/tag/dto/massive-allocation.dto.d.ts +4 -44
  22. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +4 -44
  23. package/dist/types/prisma-schema/edge.js +24 -38
  24. package/dist/types/prisma-schema/index-browser.js +9 -18
  25. package/dist/types/prisma-schema/index.d.ts +553 -3904
  26. package/dist/types/prisma-schema/index.js +24 -38
  27. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  28. package/dist/types/prisma-schema/package.json +2 -2
  29. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  30. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  31. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
  32. package/dist/types/prisma-schema/runtime/library.d.ts +133 -177
  33. package/dist/types/prisma-schema/runtime/library.js +51 -51
  34. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  35. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  36. package/dist/types/prisma-schema/schema.prisma +1 -22
  37. package/dist/types/prisma-schema/wasm.js +9 -18
  38. package/dist/types/schema.d.ts +2 -277
  39. package/package.json +4 -5
  40. package/dist/src/auth/dto/login-mi-expo.dto.d.ts +0 -327
  41. package/dist/src/auth/dto/login-mi-expo.dto.js +0 -31
  42. package/dist/src/image/constants.d.ts +0 -5
  43. package/dist/src/image/constants.js +0 -9
  44. package/dist/src/otp/constants.d.ts +0 -2
  45. package/dist/src/otp/constants.js +0 -6
  46. package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
  47. package/dist/src/otp/dto/send-otp.dto.js +0 -35
  48. package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -286
  49. package/dist/src/otp/dto/verify-otp.dto.js +0 -28
  50. package/dist/src/otp/exports.d.ts +0 -2
  51. package/dist/src/otp/exports.js +0 -19
  52. package/dist/src/prisma/constants.d.ts +0 -1
  53. package/dist/src/prisma/constants.js +0 -5
  54. package/dist/src/webhook/constants.d.ts +0 -1
  55. package/dist/src/webhook/constants.js +0 -5
@@ -3,12 +3,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
12
8
  fullName: z.ZodString;
13
9
  firstName: z.ZodNullable<z.ZodString>;
14
10
  gender: z.ZodNullable<z.ZodString>;
@@ -73,8 +69,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
73
69
  }>, "many">;
74
70
  }>, "strip", z.ZodTypeAny, {
75
71
  id: string;
76
- username: string | null;
77
- password: string | null;
78
72
  phoneNumber: string;
79
73
  secondaryPhoneNumber: string | null;
80
74
  fullName: string;
@@ -83,8 +77,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
83
77
  created_at: Date;
84
78
  updated_at: Date;
85
79
  shortId: number;
86
- firstTimeMiExpo: boolean;
87
- isPhoneVerified: boolean;
88
80
  firstName: string | null;
89
81
  gender: string | null;
90
82
  birthDate: Date | null;
@@ -108,8 +100,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
108
100
  }[];
109
101
  }, {
110
102
  id: string;
111
- username: string | null;
112
- password: string | null;
113
103
  phoneNumber: string;
114
104
  secondaryPhoneNumber: string | null;
115
105
  fullName: string;
@@ -118,8 +108,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
118
108
  created_at: Date;
119
109
  updated_at: Date;
120
110
  shortId: number;
121
- firstTimeMiExpo: boolean;
122
- isPhoneVerified: boolean;
123
111
  firstName: string | null;
124
112
  gender: string | null;
125
113
  birthDate: string | null;
@@ -145,8 +133,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
145
133
  }, "strip", z.ZodTypeAny, {
146
134
  profiles: {
147
135
  id: string;
148
- username: string | null;
149
- password: string | null;
150
136
  phoneNumber: string;
151
137
  secondaryPhoneNumber: string | null;
152
138
  fullName: string;
@@ -155,8 +141,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
155
141
  created_at: Date;
156
142
  updated_at: Date;
157
143
  shortId: number;
158
- firstTimeMiExpo: boolean;
159
- isPhoneVerified: boolean;
160
144
  firstName: string | null;
161
145
  gender: string | null;
162
146
  birthDate: Date | null;
@@ -182,8 +166,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
182
166
  }, {
183
167
  profiles: {
184
168
  id: string;
185
- username: string | null;
186
- password: string | null;
187
169
  phoneNumber: string;
188
170
  secondaryPhoneNumber: string | null;
189
171
  fullName: string;
@@ -192,8 +174,6 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
192
174
  created_at: Date;
193
175
  updated_at: Date;
194
176
  shortId: number;
195
- firstTimeMiExpo: boolean;
196
- isPhoneVerified: boolean;
197
177
  firstName: string | null;
198
178
  gender: string | null;
199
179
  birthDate: string | null;
@@ -221,12 +201,8 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
221
201
  profiles: z.ZodArray<z.ZodObject<{
222
202
  id: z.ZodString;
223
203
  shortId: z.ZodNumber;
224
- firstTimeMiExpo: z.ZodBoolean;
225
- username: z.ZodNullable<z.ZodString>;
226
- password: z.ZodNullable<z.ZodString>;
227
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
228
- isPhoneVerified: z.ZodBoolean;
229
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
204
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
205
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
230
206
  fullName: z.ZodString;
231
207
  firstName: z.ZodNullable<z.ZodString>;
232
208
  gender: z.ZodNullable<z.ZodString>;
@@ -284,8 +260,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
284
260
  }>, "many">;
285
261
  }, z.UnknownKeysParam, z.ZodTypeAny, {
286
262
  id: string;
287
- username: string | null;
288
- password: string | null;
289
263
  phoneNumber: string;
290
264
  secondaryPhoneNumber: string | null;
291
265
  fullName: string;
@@ -294,8 +268,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
294
268
  created_at: string;
295
269
  updated_at: string;
296
270
  shortId: number;
297
- firstTimeMiExpo: boolean;
298
- isPhoneVerified: boolean;
299
271
  firstName: string | null;
300
272
  gender: string | null;
301
273
  birthDate: Date | null;
@@ -319,8 +291,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
319
291
  }[];
320
292
  }, {
321
293
  id: string;
322
- username: string | null;
323
- password: string | null;
324
294
  phoneNumber: string;
325
295
  secondaryPhoneNumber: string | null;
326
296
  fullName: string;
@@ -329,8 +299,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
329
299
  created_at: string;
330
300
  updated_at: string;
331
301
  shortId: number;
332
- firstTimeMiExpo: boolean;
333
- isPhoneVerified: boolean;
334
302
  firstName: string | null;
335
303
  gender: string | null;
336
304
  birthDate: string | null;
@@ -356,8 +324,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
356
324
  }, z.UnknownKeysParam, z.ZodTypeAny, {
357
325
  profiles: {
358
326
  id: string;
359
- username: string | null;
360
- password: string | null;
361
327
  phoneNumber: string;
362
328
  secondaryPhoneNumber: string | null;
363
329
  fullName: string;
@@ -366,8 +332,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
366
332
  created_at: string;
367
333
  updated_at: string;
368
334
  shortId: number;
369
- firstTimeMiExpo: boolean;
370
- isPhoneVerified: boolean;
371
335
  firstName: string | null;
372
336
  gender: string | null;
373
337
  birthDate: Date | null;
@@ -393,8 +357,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
393
357
  }, {
394
358
  profiles: {
395
359
  id: string;
396
- username: string | null;
397
- password: string | null;
398
360
  phoneNumber: string;
399
361
  secondaryPhoneNumber: string | null;
400
362
  fullName: string;
@@ -403,8 +365,6 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
403
365
  created_at: string;
404
366
  updated_at: string;
405
367
  shortId: number;
406
- firstTimeMiExpo: boolean;
407
- isPhoneVerified: boolean;
408
368
  firstName: string | null;
409
369
  gender: string | null;
410
370
  birthDate: string | null;
@@ -3,12 +3,8 @@ export declare const findTrashResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<Pick<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
12
8
  fullName: z.ZodString;
13
9
  firstName: z.ZodNullable<z.ZodString>;
14
10
  gender: z.ZodNullable<z.ZodString>;
@@ -65,7 +61,7 @@ export declare const findTrashResponseSchema: z.ZodObject<{
65
61
  declare const FindTrashResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
66
62
  profiles: z.ZodArray<z.ZodObject<{
67
63
  id: z.ZodString;
68
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
69
65
  fullName: z.ZodString;
70
66
  profilePictureUrl: z.ZodNullable<z.ZodString>;
71
67
  created_at: z.ZodString;
@@ -3,12 +3,8 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
12
8
  fullName: z.ZodString;
13
9
  firstName: z.ZodNullable<z.ZodString>;
14
10
  gender: z.ZodNullable<z.ZodString>;
@@ -163,8 +159,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
163
159
  }>, "many">;
164
160
  }>, "strip", z.ZodTypeAny, {
165
161
  id: string;
166
- username: string | null;
167
- password: string | null;
168
162
  phoneNumber: string;
169
163
  secondaryPhoneNumber: string | null;
170
164
  fullName: string;
@@ -173,8 +167,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
173
167
  created_at: Date;
174
168
  updated_at: Date;
175
169
  shortId: number;
176
- firstTimeMiExpo: boolean;
177
- isPhoneVerified: boolean;
178
170
  firstName: string | null;
179
171
  gender: string | null;
180
172
  birthDate: Date | null;
@@ -217,8 +209,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
217
209
  inChat: boolean;
218
210
  }, {
219
211
  id: string;
220
- username: string | null;
221
- password: string | null;
222
212
  phoneNumber: string;
223
213
  secondaryPhoneNumber: string | null;
224
214
  fullName: string;
@@ -227,8 +217,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
227
217
  created_at: Date;
228
218
  updated_at: Date;
229
219
  shortId: number;
230
- firstTimeMiExpo: boolean;
231
- isPhoneVerified: boolean;
232
220
  firstName: string | null;
233
221
  gender: string | null;
234
222
  birthDate: string | null;
@@ -273,8 +261,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
273
261
  }, "strip", z.ZodTypeAny, {
274
262
  profiles: {
275
263
  id: string;
276
- username: string | null;
277
- password: string | null;
278
264
  phoneNumber: string;
279
265
  secondaryPhoneNumber: string | null;
280
266
  fullName: string;
@@ -283,8 +269,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
283
269
  created_at: Date;
284
270
  updated_at: Date;
285
271
  shortId: number;
286
- firstTimeMiExpo: boolean;
287
- isPhoneVerified: boolean;
288
272
  firstName: string | null;
289
273
  gender: string | null;
290
274
  birthDate: Date | null;
@@ -329,8 +313,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
329
313
  }, {
330
314
  profiles: {
331
315
  id: string;
332
- username: string | null;
333
- password: string | null;
334
316
  phoneNumber: string;
335
317
  secondaryPhoneNumber: string | null;
336
318
  fullName: string;
@@ -339,8 +321,6 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
339
321
  created_at: Date;
340
322
  updated_at: Date;
341
323
  shortId: number;
342
- firstTimeMiExpo: boolean;
343
- isPhoneVerified: boolean;
344
324
  firstName: string | null;
345
325
  gender: string | null;
346
326
  birthDate: string | null;
@@ -387,12 +367,8 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
387
367
  profiles: z.ZodArray<z.ZodObject<{
388
368
  id: z.ZodString;
389
369
  shortId: z.ZodNumber;
390
- firstTimeMiExpo: z.ZodBoolean;
391
- username: z.ZodNullable<z.ZodString>;
392
- password: z.ZodNullable<z.ZodString>;
393
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
394
- isPhoneVerified: z.ZodBoolean;
395
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
370
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
371
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
396
372
  fullName: z.ZodString;
397
373
  firstName: z.ZodNullable<z.ZodString>;
398
374
  gender: z.ZodNullable<z.ZodString>;
@@ -543,8 +519,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
543
519
  }>, "many">;
544
520
  }, z.UnknownKeysParam, z.ZodTypeAny, {
545
521
  id: string;
546
- username: string | null;
547
- password: string | null;
548
522
  phoneNumber: string;
549
523
  secondaryPhoneNumber: string | null;
550
524
  fullName: string;
@@ -553,8 +527,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
553
527
  created_at: string;
554
528
  updated_at: string;
555
529
  shortId: number;
556
- firstTimeMiExpo: boolean;
557
- isPhoneVerified: boolean;
558
530
  firstName: string | null;
559
531
  gender: string | null;
560
532
  birthDate: Date | null;
@@ -597,8 +569,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
597
569
  inChat: boolean;
598
570
  }, {
599
571
  id: string;
600
- username: string | null;
601
- password: string | null;
602
572
  phoneNumber: string;
603
573
  secondaryPhoneNumber: string | null;
604
574
  fullName: string;
@@ -607,8 +577,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
607
577
  created_at: string;
608
578
  updated_at: string;
609
579
  shortId: number;
610
- firstTimeMiExpo: boolean;
611
- isPhoneVerified: boolean;
612
580
  firstName: string | null;
613
581
  gender: string | null;
614
582
  birthDate: string | null;
@@ -653,8 +621,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
653
621
  }, z.UnknownKeysParam, z.ZodTypeAny, {
654
622
  profiles: {
655
623
  id: string;
656
- username: string | null;
657
- password: string | null;
658
624
  phoneNumber: string;
659
625
  secondaryPhoneNumber: string | null;
660
626
  fullName: string;
@@ -663,8 +629,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
663
629
  created_at: string;
664
630
  updated_at: string;
665
631
  shortId: number;
666
- firstTimeMiExpo: boolean;
667
- isPhoneVerified: boolean;
668
632
  firstName: string | null;
669
633
  gender: string | null;
670
634
  birthDate: Date | null;
@@ -709,8 +673,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
709
673
  }, {
710
674
  profiles: {
711
675
  id: string;
712
- username: string | null;
713
- password: string | null;
714
676
  phoneNumber: string;
715
677
  secondaryPhoneNumber: string | null;
716
678
  fullName: string;
@@ -719,8 +681,6 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
719
681
  created_at: string;
720
682
  updated_at: string;
721
683
  shortId: number;
722
- firstTimeMiExpo: boolean;
723
- isPhoneVerified: boolean;
724
684
  firstName: string | null;
725
685
  gender: string | null;
726
686
  birthDate: string | null;
@@ -2,12 +2,8 @@ import z from 'zod';
2
2
  export declare const profileSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  shortId: z.ZodNumber;
5
- firstTimeMiExpo: z.ZodBoolean;
6
- username: z.ZodNullable<z.ZodString>;
7
- password: z.ZodNullable<z.ZodString>;
8
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
- isPhoneVerified: z.ZodBoolean;
10
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
5
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
6
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
11
7
  fullName: z.ZodString;
12
8
  firstName: z.ZodNullable<z.ZodString>;
13
9
  gender: z.ZodNullable<z.ZodString>;
@@ -25,8 +21,6 @@ export declare const profileSchema: z.ZodObject<{
25
21
  updated_at: z.ZodDate;
26
22
  }, "strip", z.ZodTypeAny, {
27
23
  id: string;
28
- username: string | null;
29
- password: string | null;
30
24
  phoneNumber: string;
31
25
  secondaryPhoneNumber: string | null;
32
26
  fullName: string;
@@ -35,8 +29,6 @@ export declare const profileSchema: z.ZodObject<{
35
29
  created_at: Date;
36
30
  updated_at: Date;
37
31
  shortId: number;
38
- firstTimeMiExpo: boolean;
39
- isPhoneVerified: boolean;
40
32
  firstName: string | null;
41
33
  gender: string | null;
42
34
  birthDate: Date | null;
@@ -49,8 +41,6 @@ export declare const profileSchema: z.ZodObject<{
49
41
  movedToTrashDate: Date | null;
50
42
  }, {
51
43
  id: string;
52
- username: string | null;
53
- password: string | null;
54
44
  phoneNumber: string;
55
45
  secondaryPhoneNumber: string | null;
56
46
  fullName: string;
@@ -59,8 +49,6 @@ export declare const profileSchema: z.ZodObject<{
59
49
  created_at: Date;
60
50
  updated_at: Date;
61
51
  shortId: number;
62
- firstTimeMiExpo: boolean;
63
- isPhoneVerified: boolean;
64
52
  firstName: string | null;
65
53
  gender: string | null;
66
54
  birthDate: string | null;
@@ -1,101 +1,34 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.profileSchema = void 0;
30
7
  const translate_1 = require("../../i18n/translate");
31
- const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
8
+ const validator_1 = __importDefault(require("validator"));
32
9
  const zod_1 = __importDefault(require("zod"));
33
- function formatArgNumber(phoneNumber, value) {
34
- const prefixes9 = ['11', '15'];
35
- const prefix = prefixes9.includes(phoneNumber?.nationalNumber?.slice(0, 2) ?? '')
36
- ? '9'
37
- : '';
38
- if (phoneNumber?.country === 'AR') {
39
- return `${phoneNumber.countryCallingCode}${prefix}${phoneNumber.nationalNumber}`;
40
- }
41
- return value;
42
- }
43
10
  exports.profileSchema = zod_1.default.object({
44
11
  id: zod_1.default.string().uuid({
45
12
  message: (0, translate_1.translate)('model.profile.id.uuid'),
46
13
  }),
47
14
  shortId: zod_1.default.number(),
48
- firstTimeMiExpo: zod_1.default.boolean(),
49
- username: zod_1.default.string().nullable(),
50
- password: zod_1.default.string().nullable(),
51
15
  phoneNumber: zod_1.default
52
16
  .string()
53
17
  .min(1, {
54
18
  message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
55
19
  })
56
- .refine((value) => (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR'), {
20
+ .refine(validator_1.default.isMobilePhone, {
57
21
  message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
58
- })
59
- .transform((value, ctx) => {
60
- if (!value)
61
- return value;
62
- const phoneNumber = (0, libphonenumber_js_1.default)(value, {
63
- defaultCountry: 'AR',
64
- });
65
- if (!phoneNumber) {
66
- ctx.addIssue({
67
- code: zod_1.default.ZodIssueCode.custom,
68
- message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
69
- });
70
- return value;
71
- }
72
- return formatArgNumber(phoneNumber, value);
73
22
  }),
74
- isPhoneVerified: zod_1.default.boolean(),
75
23
  secondaryPhoneNumber: zod_1.default
76
24
  .string()
77
25
  .nullable()
78
26
  .refine((value) => {
79
27
  if (value === null)
80
28
  return true;
81
- return (0, libphonenumber_js_1.isValidPhoneNumber)(value, 'AR');
29
+ return validator_1.default.isMobilePhone(value);
82
30
  }, {
83
31
  message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
84
- })
85
- .transform((value, ctx) => {
86
- if (!value)
87
- return value;
88
- const phoneNumber = (0, libphonenumber_js_1.default)(value, {
89
- defaultCountry: 'AR',
90
- });
91
- if (!phoneNumber) {
92
- ctx.addIssue({
93
- code: zod_1.default.ZodIssueCode.custom,
94
- message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
95
- });
96
- return value;
97
- }
98
- return formatArgNumber(phoneNumber, value);
99
32
  }),
100
33
  fullName: zod_1.default.string().min(1, {
101
34
  message: (0, translate_1.translate)('model.profile.fullName.required'),
@@ -1,7 +1,7 @@
1
1
  import z from 'zod';
2
2
  export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
4
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
3
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4
+ secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
5
5
  fullName: z.ZodOptional<z.ZodString>;
6
6
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -116,8 +116,8 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
116
116
  } | undefined;
117
117
  }>;
118
118
  declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
119
- phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
120
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
119
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
120
+ secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
121
121
  fullName: z.ZodOptional<z.ZodString>;
122
122
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
123
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -229,12 +229,8 @@ export declare class UpdateProfileDto extends UpdateProfileDto_base {
229
229
  export declare const updateProfileResponseSchema: z.ZodObject<{
230
230
  id: z.ZodString;
231
231
  shortId: z.ZodNumber;
232
- firstTimeMiExpo: z.ZodBoolean;
233
- username: z.ZodNullable<z.ZodString>;
234
- password: z.ZodNullable<z.ZodString>;
235
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
236
- isPhoneVerified: z.ZodBoolean;
237
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
232
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
233
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
238
234
  fullName: z.ZodString;
239
235
  firstName: z.ZodNullable<z.ZodString>;
240
236
  gender: z.ZodNullable<z.ZodString>;
@@ -252,8 +248,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
252
248
  updated_at: z.ZodDate;
253
249
  }, "strip", z.ZodTypeAny, {
254
250
  id: string;
255
- username: string | null;
256
- password: string | null;
257
251
  phoneNumber: string;
258
252
  secondaryPhoneNumber: string | null;
259
253
  fullName: string;
@@ -262,8 +256,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
262
256
  created_at: Date;
263
257
  updated_at: Date;
264
258
  shortId: number;
265
- firstTimeMiExpo: boolean;
266
- isPhoneVerified: boolean;
267
259
  firstName: string | null;
268
260
  gender: string | null;
269
261
  birthDate: Date | null;
@@ -276,8 +268,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
276
268
  movedToTrashDate: Date | null;
277
269
  }, {
278
270
  id: string;
279
- username: string | null;
280
- password: string | null;
281
271
  phoneNumber: string;
282
272
  secondaryPhoneNumber: string | null;
283
273
  fullName: string;
@@ -286,8 +276,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
286
276
  created_at: Date;
287
277
  updated_at: Date;
288
278
  shortId: number;
289
- firstTimeMiExpo: boolean;
290
- isPhoneVerified: boolean;
291
279
  firstName: string | null;
292
280
  gender: string | null;
293
281
  birthDate: string | null;
@@ -302,12 +290,8 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
302
290
  declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
303
291
  id: z.ZodString;
304
292
  shortId: z.ZodNumber;
305
- firstTimeMiExpo: z.ZodBoolean;
306
- username: z.ZodNullable<z.ZodString>;
307
- password: z.ZodNullable<z.ZodString>;
308
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
309
- isPhoneVerified: z.ZodBoolean;
310
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
293
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
294
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
311
295
  fullName: z.ZodString;
312
296
  firstName: z.ZodNullable<z.ZodString>;
313
297
  gender: z.ZodNullable<z.ZodString>;
@@ -325,8 +309,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
325
309
  updated_at: z.ZodString;
326
310
  }, z.UnknownKeysParam, z.ZodTypeAny, {
327
311
  id: string;
328
- username: string | null;
329
- password: string | null;
330
312
  phoneNumber: string;
331
313
  secondaryPhoneNumber: string | null;
332
314
  fullName: string;
@@ -335,8 +317,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
335
317
  created_at: string;
336
318
  updated_at: string;
337
319
  shortId: number;
338
- firstTimeMiExpo: boolean;
339
- isPhoneVerified: boolean;
340
320
  firstName: string | null;
341
321
  gender: string | null;
342
322
  birthDate: Date | null;
@@ -349,8 +329,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
349
329
  movedToTrashDate: string | null;
350
330
  }, {
351
331
  id: string;
352
- username: string | null;
353
- password: string | null;
354
332
  phoneNumber: string;
355
333
  secondaryPhoneNumber: string | null;
356
334
  fullName: string;
@@ -359,8 +337,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
359
337
  created_at: string;
360
338
  updated_at: string;
361
339
  shortId: number;
362
- firstTimeMiExpo: boolean;
363
- isPhoneVerified: boolean;
364
340
  firstName: string | null;
365
341
  gender: string | null;
366
342
  birthDate: string | null;