expo-backend-types 0.30.0-EXPO-308-auth.10 → 0.30.0-EXPO-309-Migrar-Configuracion.2
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.
- package/dist/src/exports.d.ts +0 -1
- package/dist/src/exports.js +0 -1
- package/dist/src/i18n/es.d.ts +0 -19
- package/dist/src/i18n/es.js +0 -19
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
- package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
- package/dist/src/profile/dto/create-profile.dto.d.ts +10 -26
- package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -28
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +4 -44
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +8 -72
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +4 -28
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -28
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +4 -44
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +4 -44
- package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +4 -44
- package/dist/src/profile/dto/profile.dto.d.ts +2 -90
- package/dist/src/profile/dto/profile.dto.js +4 -75
- package/dist/src/profile/dto/update-profile.dto.d.ts +8 -32
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +4 -44
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +4 -44
- package/dist/types/prisma-schema/edge.js +24 -38
- package/dist/types/prisma-schema/index-browser.js +9 -18
- package/dist/types/prisma-schema/index.d.ts +553 -3904
- package/dist/types/prisma-schema/index.js +24 -38
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +2 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +133 -177
- package/dist/types/prisma-schema/runtime/library.js +51 -51
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +19 -19
- package/dist/types/prisma-schema/schema.prisma +1 -22
- package/dist/types/prisma-schema/wasm.js +9 -18
- package/dist/types/schema.d.ts +2 -277
- package/package.json +4 -5
- package/dist/src/auth/dto/login-mi-expo.dto.d.ts +0 -327
- package/dist/src/auth/dto/login-mi-expo.dto.js +0 -31
- package/dist/src/image/constants.d.ts +0 -5
- package/dist/src/image/constants.js +0 -9
- package/dist/src/otp/constants.d.ts +0 -2
- package/dist/src/otp/constants.js +0 -6
- package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
- package/dist/src/otp/dto/send-otp.dto.js +0 -35
- package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -286
- package/dist/src/otp/dto/verify-otp.dto.js +0 -28
- package/dist/src/otp/exports.d.ts +0 -2
- package/dist/src/otp/exports.js +0 -19
- package/dist/src/prisma/constants.d.ts +0 -1
- package/dist/src/prisma/constants.js +0 -5
- package/dist/src/webhook/constants.d.ts +0 -1
- 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
|
-
|
7
|
-
|
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
|
-
|
225
|
-
|
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
|
-
|
7
|
-
|
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.
|
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
|
-
|
7
|
-
|
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
|
-
|
391
|
-
|
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
|
-
|
6
|
-
|
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;
|
@@ -72,79 +60,3 @@ export declare const profileSchema: z.ZodObject<{
|
|
72
60
|
isInTrash: boolean;
|
73
61
|
movedToTrashDate: Date | null;
|
74
62
|
}>;
|
75
|
-
declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
76
|
-
id: z.ZodString;
|
77
|
-
shortId: z.ZodNumber;
|
78
|
-
firstTimeMiExpo: z.ZodBoolean;
|
79
|
-
username: z.ZodNullable<z.ZodString>;
|
80
|
-
password: z.ZodNullable<z.ZodString>;
|
81
|
-
phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
82
|
-
isPhoneVerified: z.ZodBoolean;
|
83
|
-
secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
|
84
|
-
fullName: z.ZodString;
|
85
|
-
firstName: z.ZodNullable<z.ZodString>;
|
86
|
-
gender: z.ZodNullable<z.ZodString>;
|
87
|
-
birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
|
88
|
-
profilePictureUrl: z.ZodNullable<z.ZodString>;
|
89
|
-
instagram: z.ZodNullable<z.ZodString>;
|
90
|
-
mail: z.ZodNullable<z.ZodString>;
|
91
|
-
dni: z.ZodNullable<z.ZodString>;
|
92
|
-
alternativeNames: z.ZodArray<z.ZodString, "many">;
|
93
|
-
birthLocationId: z.ZodNullable<z.ZodString>;
|
94
|
-
residenceLocationId: z.ZodNullable<z.ZodString>;
|
95
|
-
isInTrash: z.ZodBoolean;
|
96
|
-
movedToTrashDate: z.ZodNullable<z.ZodString>;
|
97
|
-
created_at: z.ZodString;
|
98
|
-
updated_at: z.ZodString;
|
99
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
100
|
-
id: string;
|
101
|
-
username: string | null;
|
102
|
-
password: string | null;
|
103
|
-
phoneNumber: string;
|
104
|
-
secondaryPhoneNumber: string | null;
|
105
|
-
fullName: string;
|
106
|
-
profilePictureUrl: string | null;
|
107
|
-
mail: string | null;
|
108
|
-
created_at: string;
|
109
|
-
updated_at: string;
|
110
|
-
shortId: number;
|
111
|
-
firstTimeMiExpo: boolean;
|
112
|
-
isPhoneVerified: boolean;
|
113
|
-
firstName: string | null;
|
114
|
-
gender: string | null;
|
115
|
-
birthDate: Date | null;
|
116
|
-
instagram: string | null;
|
117
|
-
dni: string | null;
|
118
|
-
alternativeNames: string[];
|
119
|
-
birthLocationId: string | null;
|
120
|
-
residenceLocationId: string | null;
|
121
|
-
isInTrash: boolean;
|
122
|
-
movedToTrashDate: string | null;
|
123
|
-
}, {
|
124
|
-
id: string;
|
125
|
-
username: string | null;
|
126
|
-
password: string | null;
|
127
|
-
phoneNumber: string;
|
128
|
-
secondaryPhoneNumber: string | null;
|
129
|
-
fullName: string;
|
130
|
-
profilePictureUrl: string | null;
|
131
|
-
mail: string | null;
|
132
|
-
created_at: string;
|
133
|
-
updated_at: string;
|
134
|
-
shortId: number;
|
135
|
-
firstTimeMiExpo: boolean;
|
136
|
-
isPhoneVerified: boolean;
|
137
|
-
firstName: string | null;
|
138
|
-
gender: string | null;
|
139
|
-
birthDate: string | null;
|
140
|
-
instagram: string | null;
|
141
|
-
dni: string | null;
|
142
|
-
alternativeNames: string[];
|
143
|
-
birthLocationId: string | null;
|
144
|
-
residenceLocationId: string | null;
|
145
|
-
isInTrash: boolean;
|
146
|
-
movedToTrashDate: string | null;
|
147
|
-
}>>;
|
148
|
-
export declare class ProfileDto extends ProfileDto_base {
|
149
|
-
}
|
150
|
-
export {};
|
@@ -1,102 +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
|
-
exports.
|
6
|
+
exports.profileSchema = void 0;
|
30
7
|
const translate_1 = require("../../i18n/translate");
|
31
|
-
const
|
32
|
-
const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
|
8
|
+
const validator_1 = __importDefault(require("validator"));
|
33
9
|
const zod_1 = __importDefault(require("zod"));
|
34
|
-
function formatArgNumber(phoneNumber, value) {
|
35
|
-
const prefixes9 = ['11', '15'];
|
36
|
-
const prefix = prefixes9.includes(phoneNumber?.nationalNumber?.slice(0, 2) ?? '')
|
37
|
-
? '9'
|
38
|
-
: '';
|
39
|
-
if (phoneNumber?.country === 'AR') {
|
40
|
-
return `${phoneNumber.countryCallingCode}${prefix}${phoneNumber.nationalNumber}`;
|
41
|
-
}
|
42
|
-
return value;
|
43
|
-
}
|
44
10
|
exports.profileSchema = zod_1.default.object({
|
45
11
|
id: zod_1.default.string().uuid({
|
46
12
|
message: (0, translate_1.translate)('model.profile.id.uuid'),
|
47
13
|
}),
|
48
14
|
shortId: zod_1.default.number(),
|
49
|
-
firstTimeMiExpo: zod_1.default.boolean(),
|
50
|
-
username: zod_1.default.string().nullable(),
|
51
|
-
password: zod_1.default.string().nullable(),
|
52
15
|
phoneNumber: zod_1.default
|
53
16
|
.string()
|
54
17
|
.min(1, {
|
55
18
|
message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
|
56
19
|
})
|
57
|
-
.refine(
|
20
|
+
.refine(validator_1.default.isMobilePhone, {
|
58
21
|
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
59
|
-
})
|
60
|
-
.transform((value, ctx) => {
|
61
|
-
if (!value)
|
62
|
-
return value;
|
63
|
-
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
64
|
-
defaultCountry: 'AR',
|
65
|
-
});
|
66
|
-
if (!phoneNumber) {
|
67
|
-
ctx.addIssue({
|
68
|
-
code: zod_1.default.ZodIssueCode.custom,
|
69
|
-
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
70
|
-
});
|
71
|
-
return value;
|
72
|
-
}
|
73
|
-
return formatArgNumber(phoneNumber, value);
|
74
22
|
}),
|
75
|
-
isPhoneVerified: zod_1.default.boolean(),
|
76
23
|
secondaryPhoneNumber: zod_1.default
|
77
24
|
.string()
|
78
25
|
.nullable()
|
79
26
|
.refine((value) => {
|
80
27
|
if (value === null)
|
81
28
|
return true;
|
82
|
-
return
|
29
|
+
return validator_1.default.isMobilePhone(value);
|
83
30
|
}, {
|
84
31
|
message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
|
85
|
-
})
|
86
|
-
.transform((value, ctx) => {
|
87
|
-
if (!value)
|
88
|
-
return value;
|
89
|
-
const phoneNumber = (0, libphonenumber_js_1.default)(value, {
|
90
|
-
defaultCountry: 'AR',
|
91
|
-
});
|
92
|
-
if (!phoneNumber) {
|
93
|
-
ctx.addIssue({
|
94
|
-
code: zod_1.default.ZodIssueCode.custom,
|
95
|
-
message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
|
96
|
-
});
|
97
|
-
return value;
|
98
|
-
}
|
99
|
-
return formatArgNumber(phoneNumber, value);
|
100
32
|
}),
|
101
33
|
fullName: zod_1.default.string().min(1, {
|
102
34
|
message: (0, translate_1.translate)('model.profile.fullName.required'),
|
@@ -131,7 +63,4 @@ exports.profileSchema = zod_1.default.object({
|
|
131
63
|
created_at: zod_1.default.date(),
|
132
64
|
updated_at: zod_1.default.date(),
|
133
65
|
});
|
134
|
-
class ProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.profileSchema) {
|
135
|
-
}
|
136
|
-
exports.ProfileDto = ProfileDto;
|
137
66
|
//# sourceMappingURL=profile.dto.js.map
|