expo-backend-types 0.30.0-EXPO-308-auth.22 → 0.30.0-EXPO-308-auth.24

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 (31) hide show
  1. package/dist/src/mi-expo/dto/get-me.dto.d.ts +144 -0
  2. package/dist/src/mi-expo/dto/get-me.dto.js +10 -0
  3. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +2 -2
  4. package/dist/src/mi-expo/dto/login.dto.d.ts +2 -2
  5. package/dist/src/mi-expo/dto/update-me.dto.d.ts +358 -0
  6. package/dist/src/mi-expo/dto/update-me.dto.js +30 -0
  7. package/dist/src/mi-expo/exports.d.ts +1 -0
  8. package/dist/src/mi-expo/exports.js +1 -0
  9. package/dist/src/otp/dto/verify-otp.dto.d.ts +2 -2
  10. package/dist/src/profile/dto/create-profile.dto.d.ts +5 -5
  11. package/dist/src/profile/dto/delete-profile.dto.d.ts +2 -2
  12. package/dist/src/profile/dto/find-all-profile.dto.d.ts +2 -2
  13. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +4 -4
  14. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +2 -2
  15. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +2 -2
  16. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +2 -2
  17. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +2 -2
  18. package/dist/src/profile/dto/find-trash.dto.d.ts +1 -1
  19. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +2 -2
  20. package/dist/src/profile/dto/profile.dto.d.ts +1 -1
  21. package/dist/src/profile/dto/update-profile.dto.d.ts +10 -4
  22. package/dist/src/profile/dto/update-profile.dto.js +1 -0
  23. package/dist/src/schema/profile.schema.d.ts +1 -1
  24. package/dist/src/schema/profile.schema.js +2 -2
  25. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +1 -3
  26. package/dist/src/shared/dto-modification/zod-without-dates.js +17 -0
  27. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  28. package/dist/src/tag/dto/massive-allocation.dto.d.ts +2 -2
  29. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +2 -2
  30. package/dist/types/schema.d.ts +64 -438
  31. package/package.json +1 -1
@@ -6,7 +6,7 @@ export declare const deleteProfileResponseSchema: import("zod").ZodObject<{
6
6
  password: import("zod").ZodNullable<import("zod").ZodString>;
7
7
  phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
8
8
  isPhoneVerified: import("zod").ZodBoolean;
9
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
9
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
10
10
  fullName: import("zod").ZodString;
11
11
  firstName: import("zod").ZodNullable<import("zod").ZodString>;
12
12
  gender: import("zod").ZodNullable<import("zod").ZodString>;
@@ -79,7 +79,7 @@ declare const DeleteProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
79
79
  password: import("zod").ZodNullable<import("zod").ZodString>;
80
80
  phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
81
81
  isPhoneVerified: import("zod").ZodBoolean;
82
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
82
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
83
83
  fullName: import("zod").ZodString;
84
84
  firstName: import("zod").ZodNullable<import("zod").ZodString>;
85
85
  gender: import("zod").ZodNullable<import("zod").ZodString>;
@@ -8,7 +8,7 @@ export declare const findAllProfileResponseSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -234,7 +234,7 @@ declare const FindAllProfileResponseDto_base: import("@anatine/zod-nestjs").ZodD
234
234
  password: z.ZodNullable<z.ZodString>;
235
235
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
236
236
  isPhoneVerified: z.ZodBoolean;
237
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
237
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
238
238
  fullName: z.ZodString;
239
239
  firstName: z.ZodNullable<z.ZodString>;
240
240
  gender: z.ZodNullable<z.ZodString>;
@@ -8,7 +8,7 @@ export declare const findByDateRangeSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -226,7 +226,7 @@ declare const FindByDateRangeDto_base: import("@anatine/zod-nestjs").ZodDtoStati
226
226
  password: z.ZodNullable<z.ZodString>;
227
227
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
228
228
  isPhoneVerified: z.ZodBoolean;
229
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
229
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
230
230
  fullName: z.ZodString;
231
231
  firstName: z.ZodNullable<z.ZodString>;
232
232
  gender: z.ZodNullable<z.ZodString>;
@@ -438,7 +438,7 @@ export declare const findByDateRangeResponseSchema: z.ZodRecord<z.ZodString, z.Z
438
438
  password: z.ZodNullable<z.ZodString>;
439
439
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
440
440
  isPhoneVerified: z.ZodBoolean;
441
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
441
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
442
442
  fullName: z.ZodString;
443
443
  firstName: z.ZodNullable<z.ZodString>;
444
444
  gender: z.ZodNullable<z.ZodString>;
@@ -580,7 +580,7 @@ declare const FindByDateRangeResponseDto_base: import("@anatine/zod-nestjs").Zod
580
580
  password: z.ZodNullable<z.ZodString>;
581
581
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
582
582
  isPhoneVerified: z.ZodBoolean;
583
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
583
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
584
584
  fullName: z.ZodString;
585
585
  firstName: z.ZodNullable<z.ZodString>;
586
586
  gender: z.ZodNullable<z.ZodString>;
@@ -7,7 +7,7 @@ export declare const findByIdProfileResponseSchema: z.ZodObject<z.objectUtil.ext
7
7
  password: z.ZodNullable<z.ZodString>;
8
8
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
9
  isPhoneVerified: z.ZodBoolean;
10
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
10
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
11
11
  fullName: z.ZodString;
12
12
  firstName: z.ZodNullable<z.ZodString>;
13
13
  gender: z.ZodNullable<z.ZodString>;
@@ -257,7 +257,7 @@ declare const FindByIdProfileResponseDto_base: import("@anatine/zod-nestjs").Zod
257
257
  password: z.ZodNullable<z.ZodString>;
258
258
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
259
259
  isPhoneVerified: z.ZodBoolean;
260
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
260
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
261
261
  fullName: z.ZodString;
262
262
  firstName: z.ZodNullable<z.ZodString>;
263
263
  gender: z.ZodNullable<z.ZodString>;
@@ -6,7 +6,7 @@ export declare const findByPhoneNumberResponseSchema: import("zod").ZodObject<{
6
6
  password: import("zod").ZodNullable<import("zod").ZodString>;
7
7
  phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
8
8
  isPhoneVerified: import("zod").ZodBoolean;
9
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
9
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
10
10
  fullName: import("zod").ZodString;
11
11
  firstName: import("zod").ZodNullable<import("zod").ZodString>;
12
12
  gender: import("zod").ZodNullable<import("zod").ZodString>;
@@ -79,7 +79,7 @@ declare const FindByPhoneNumberResponseDto_base: import("@anatine/zod-nestjs").Z
79
79
  password: import("zod").ZodNullable<import("zod").ZodString>;
80
80
  phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
81
81
  isPhoneVerified: import("zod").ZodBoolean;
82
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
82
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
83
83
  fullName: import("zod").ZodString;
84
84
  firstName: import("zod").ZodNullable<import("zod").ZodString>;
85
85
  gender: import("zod").ZodNullable<import("zod").ZodString>;
@@ -8,7 +8,7 @@ export declare const findByTagGroupsProfileResponseSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -195,7 +195,7 @@ declare const FindByTagGroupsProfileResponseDto_base: import("@anatine/zod-nestj
195
195
  password: z.ZodNullable<z.ZodString>;
196
196
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
197
197
  isPhoneVerified: z.ZodBoolean;
198
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
198
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
199
199
  fullName: z.ZodString;
200
200
  firstName: z.ZodNullable<z.ZodString>;
201
201
  gender: z.ZodNullable<z.ZodString>;
@@ -8,7 +8,7 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -226,7 +226,7 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
226
226
  password: z.ZodNullable<z.ZodString>;
227
227
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
228
228
  isPhoneVerified: z.ZodBoolean;
229
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
229
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
230
230
  fullName: z.ZodString;
231
231
  firstName: z.ZodNullable<z.ZodString>;
232
232
  gender: z.ZodNullable<z.ZodString>;
@@ -8,7 +8,7 @@ export declare const findTrashResponseSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -8,7 +8,7 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
8
8
  password: z.ZodNullable<z.ZodString>;
9
9
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
10
  isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
11
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
12
12
  fullName: z.ZodString;
13
13
  firstName: z.ZodNullable<z.ZodString>;
14
14
  gender: z.ZodNullable<z.ZodString>;
@@ -392,7 +392,7 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
392
392
  password: z.ZodNullable<z.ZodString>;
393
393
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
394
394
  isPhoneVerified: z.ZodBoolean;
395
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
395
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
396
396
  fullName: z.ZodString;
397
397
  firstName: z.ZodNullable<z.ZodString>;
398
398
  gender: z.ZodNullable<z.ZodString>;
@@ -6,7 +6,7 @@ declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import
6
6
  password: import("zod").ZodNullable<import("zod").ZodString>;
7
7
  phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
8
8
  isPhoneVerified: import("zod").ZodBoolean;
9
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
9
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
10
10
  fullName: import("zod").ZodString;
11
11
  firstName: import("zod").ZodNullable<import("zod").ZodString>;
12
12
  gender: import("zod").ZodNullable<import("zod").ZodString>;
@@ -3,10 +3,11 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
3
3
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
6
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
6
+ secondaryPhoneNumber: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
7
7
  fullName: z.ZodOptional<z.ZodString>;
8
8
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
10
11
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
12
  birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
12
13
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -68,6 +69,7 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
68
69
  fullName?: string | undefined;
69
70
  profilePictureUrl?: string | null | undefined;
70
71
  mail?: string | null | undefined;
72
+ firstTimeMiExpo?: boolean | undefined;
71
73
  gender?: string | null | undefined;
72
74
  birthDate?: Date | null | undefined;
73
75
  instagram?: string | null | undefined;
@@ -98,6 +100,7 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
98
100
  fullName?: string | undefined;
99
101
  profilePictureUrl?: string | null | undefined;
100
102
  mail?: string | null | undefined;
103
+ firstTimeMiExpo?: boolean | undefined;
101
104
  gender?: string | null | undefined;
102
105
  birthDate?: string | null | undefined;
103
106
  instagram?: string | null | undefined;
@@ -125,10 +128,11 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
125
128
  username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
129
  password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
130
  phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
128
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
131
+ secondaryPhoneNumber: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
129
132
  fullName: z.ZodOptional<z.ZodString>;
130
133
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
134
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
132
136
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
137
  birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>>;
134
138
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -183,6 +187,7 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
183
187
  fullName?: string | undefined;
184
188
  profilePictureUrl?: string | null | undefined;
185
189
  mail?: string | null | undefined;
190
+ firstTimeMiExpo?: boolean | undefined;
186
191
  gender?: string | null | undefined;
187
192
  birthDate?: string | null | undefined;
188
193
  instagram?: string | null | undefined;
@@ -213,6 +218,7 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
213
218
  fullName?: string | undefined;
214
219
  profilePictureUrl?: string | null | undefined;
215
220
  mail?: string | null | undefined;
221
+ firstTimeMiExpo?: boolean | undefined;
216
222
  gender?: string | null | undefined;
217
223
  birthDate?: string | null | undefined;
218
224
  instagram?: string | null | undefined;
@@ -246,7 +252,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
246
252
  password: z.ZodNullable<z.ZodString>;
247
253
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
248
254
  isPhoneVerified: z.ZodBoolean;
249
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
255
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
250
256
  fullName: z.ZodString;
251
257
  firstName: z.ZodNullable<z.ZodString>;
252
258
  gender: z.ZodNullable<z.ZodString>;
@@ -319,7 +325,7 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
319
325
  password: z.ZodNullable<z.ZodString>;
320
326
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
321
327
  isPhoneVerified: z.ZodBoolean;
322
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
328
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
323
329
  fullName: z.ZodString;
324
330
  firstName: z.ZodNullable<z.ZodString>;
325
331
  gender: z.ZodNullable<z.ZodString>;
@@ -25,6 +25,7 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
25
25
  movedToTrashDate: true,
26
26
  username: true,
27
27
  password: true,
28
+ firstTimeMiExpo: true,
28
29
  })
29
30
  .partial()
30
31
  .merge(zod_1.default.object({
@@ -7,7 +7,7 @@ export declare const profileSchema: z.ZodObject<{
7
7
  password: z.ZodNullable<z.ZodString>;
8
8
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
9
  isPhoneVerified: z.ZodBoolean;
10
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
10
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
11
11
  fullName: z.ZodString;
12
12
  firstName: z.ZodNullable<z.ZodString>;
13
13
  gender: z.ZodNullable<z.ZodString>;
@@ -74,7 +74,6 @@ exports.profileSchema = zod_1.default.object({
74
74
  isPhoneVerified: zod_1.default.boolean(),
75
75
  secondaryPhoneNumber: zod_1.default
76
76
  .string()
77
- .nullable()
78
77
  .refine((value) => {
79
78
  if (value === null)
80
79
  return true;
@@ -96,7 +95,8 @@ exports.profileSchema = zod_1.default.object({
96
95
  return value;
97
96
  }
98
97
  return formatArgNumber(phoneNumber, value);
99
- }),
98
+ })
99
+ .nullable(),
100
100
  fullName: zod_1.default.string().min(1, {
101
101
  message: (0, translate_1.translate)('model.profile.fullName.required'),
102
102
  }),
@@ -2,7 +2,5 @@ import { type OpenApiZodAny } from '@anatine/zod-openapi';
2
2
  import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, ZodPipeline, ZodTypeAny, ZodUnion } from 'zod';
3
3
  export type ReplaceDatesWithStrings<T extends ZodTypeAny> = T extends ZodDate ? ReturnType<typeof z.string> : T extends ZodObject<infer Shape> ? ZodObject<{
4
4
  [k in keyof Shape]: ReplaceDatesWithStrings<Shape[k]>;
5
- }> : T extends ZodArray<infer Item> ? ZodArray<ReplaceDatesWithStrings<Item>> : T extends ZodUnion<infer Options> ? ZodUnion<{
6
- [k in keyof Options]: ReplaceDatesWithStrings<Options[k]>;
7
- }> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T extends ZodNullable<infer Inner> ? ZodNullable<ReplaceDatesWithStrings<Inner>> : T extends ZodOptional<infer Inner> ? ZodOptional<ReplaceDatesWithStrings<Inner>> : T extends ZodPipeline<infer A, infer B> ? ZodPipeline<ReplaceDatesWithStrings<A>, ReplaceDatesWithStrings<B>> : T;
5
+ }> : T extends ZodArray<infer Item> ? ZodArray<ReplaceDatesWithStrings<Item>> : T extends ZodUnion<infer Options extends [ZodTypeAny, ...ZodTypeAny[]]> ? ZodUnion<Options> : T extends ZodIntersection<infer Left, infer Right> ? ZodIntersection<ReplaceDatesWithStrings<Left>, ReplaceDatesWithStrings<Right>> : T extends ZodNullable<infer Inner> ? ZodNullable<ReplaceDatesWithStrings<Inner>> : T extends ZodOptional<infer Inner> ? ZodOptional<ReplaceDatesWithStrings<Inner>> : T extends ZodPipeline<infer In, infer Out> ? ZodPipeline<ReplaceDatesWithStrings<In>, ReplaceDatesWithStrings<Out>> : T;
8
6
  export declare const replaceDatesWithStrings: <T extends OpenApiZodAny>(schema: T) => ReplaceDatesWithStrings<T>;
@@ -6,6 +6,14 @@ const replaceDatesWithStrings = (schema) => {
6
6
  if (schema instanceof zod_1.ZodDate) {
7
7
  return zod_1.z.string().datetime();
8
8
  }
9
+ if (schema instanceof zod_1.ZodPipeline) {
10
+ if (schema._def.output instanceof zod_1.ZodDate) {
11
+ return zod_1.z.string().datetime();
12
+ }
13
+ else {
14
+ return (0, exports.replaceDatesWithStrings)(schema._def.input);
15
+ }
16
+ }
9
17
  if (schema instanceof zod_1.ZodObject) {
10
18
  const newShape = {};
11
19
  for (const key in schema.shape) {
@@ -22,6 +30,15 @@ const replaceDatesWithStrings = (schema) => {
22
30
  if (schema instanceof zod_1.ZodIntersection) {
23
31
  return zod_1.z.intersection((0, exports.replaceDatesWithStrings)(schema._def.left), (0, exports.replaceDatesWithStrings)(schema._def.right));
24
32
  }
33
+ if (schema instanceof zod_1.ZodNullable) {
34
+ return zod_1.z.nullable((0, exports.replaceDatesWithStrings)(schema._def.innerType));
35
+ }
36
+ if (schema instanceof zod_1.ZodPipeline) {
37
+ return zod_1.z
38
+ .string()
39
+ .datetime()
40
+ .pipe((0, exports.replaceDatesWithStrings)(schema._def.out));
41
+ }
25
42
  return schema;
26
43
  };
27
44
  exports.replaceDatesWithStrings = replaceDatesWithStrings;
@@ -1 +1 @@
1
- {"version":3,"file":"zod-without-dates.js","sourceRoot":"","sources":["../../../../src/shared/dto-modification/zod-without-dates.ts"],"names":[],"mappings":";;;AACA,6BAYa;AA6BN,MAAM,uBAAuB,GAAG,CACrC,MAAS,EACmB,EAAE;IAC9B,IAAI,MAAM,YAAY,aAAO,EAAE,CAAC;QAC9B,OAAO,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAgC,CAAC;IAC7D,CAAC;IAED,IAAI,MAAM,YAAY,eAAS,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAgB,EAAE,CAAC;QACjC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC/B,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAA,+BAAuB,EAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,OAAC,CAAC,MAAM,CAAC,QAAQ,CAA+B,CAAC;IAC1D,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,IAAA,+BAAuB,EAAC,MAAM,CAAC,OAAO,CAAC,CACV,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,MAAM,CAAC,CAAC,CAC1C,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,qBAAe,EAAE,CAAC;QACtC,OAAO,OAAC,CAAC,YAAY,CACnB,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CACb,CAAC;IAClC,CAAC;IAGD,OAAO,MAAoC,CAAC;AAC9C,CAAC,CAAC;AApCW,QAAA,uBAAuB,2BAoClC"}
1
+ {"version":3,"file":"zod-without-dates.js","sourceRoot":"","sources":["../../../../src/shared/dto-modification/zod-without-dates.ts"],"names":[],"mappings":";;;AACA,6BAYa;AA2BN,MAAM,uBAAuB,GAAG,CACrC,MAAS,EACmB,EAAE;IAC9B,IAAI,MAAM,YAAY,aAAO,EAAE,CAAC;QAC9B,OAAO,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAgC,CAAC;IAC7D,CAAC;IAED,IAAI,MAAM,YAAY,iBAAW,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,YAAY,aAAO,EAAE,CAAC;YAC1C,OAAO,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAgC,CAAC;QAC7D,CAAC;aAAM,CAAC;YACN,OAAO,IAAA,+BAAuB,EAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CACY,CAAC;QAClC,CAAC;IACH,CAAC;IAED,IAAI,MAAM,YAAY,eAAS,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAgB,EAAE,CAAC;QACjC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC/B,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAA,+BAAuB,EAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,OAAC,CAAC,MAAM,CAAC,QAAQ,CAA+B,CAAC;IAC1D,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,IAAA,+BAAuB,EAAC,MAAM,CAAC,OAAO,CAAC,CACV,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,cAAQ,EAAE,CAAC;QAC/B,OAAO,OAAC,CAAC,KAAK,CACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,MAAM,CAAC,CAAC,CAC1C,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,qBAAe,EAAE,CAAC;QACtC,OAAO,OAAC,CAAC,YAAY,CACnB,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CACb,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,iBAAW,EAAE,CAAC;QAClC,OAAO,OAAC,CAAC,QAAQ,CACf,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CACjB,CAAC;IAClC,CAAC;IAED,IAAI,MAAM,YAAY,iBAAW,EAAE,CAAC;QAClC,OAAO,OAAC;aACL,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,IAAI,CACH,IAAA,+BAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CACX,CAAC;IACpC,CAAC;IAGD,OAAO,MAAoC,CAAC;AAC9C,CAAC,CAAC;AA7DW,QAAA,uBAAuB,2BA6DlC"}
@@ -30,7 +30,7 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
30
30
  password: z.ZodNullable<z.ZodString>;
31
31
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
32
  isPhoneVerified: z.ZodBoolean;
33
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
33
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
34
  fullName: z.ZodString;
35
35
  firstName: z.ZodNullable<z.ZodString>;
36
36
  gender: z.ZodNullable<z.ZodString>;
@@ -157,7 +157,7 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
157
157
  password: z.ZodNullable<z.ZodString>;
158
158
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
159
159
  isPhoneVerified: z.ZodBoolean;
160
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
160
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
161
161
  fullName: z.ZodString;
162
162
  firstName: z.ZodNullable<z.ZodString>;
163
163
  gender: z.ZodNullable<z.ZodString>;
@@ -30,7 +30,7 @@ export declare const massiveDeallocationResponseSchema: z.ZodObject<{
30
30
  password: z.ZodNullable<z.ZodString>;
31
31
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
32
  isPhoneVerified: z.ZodBoolean;
33
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
33
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
34
  fullName: z.ZodString;
35
35
  firstName: z.ZodNullable<z.ZodString>;
36
36
  gender: z.ZodNullable<z.ZodString>;
@@ -157,7 +157,7 @@ declare const MassiveDeallocationResponseDto_base: import("@anatine/zod-nestjs")
157
157
  password: z.ZodNullable<z.ZodString>;
158
158
  phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
159
159
  isPhoneVerified: z.ZodBoolean;
160
- secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
160
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
161
161
  fullName: z.ZodString;
162
162
  firstName: z.ZodNullable<z.ZodString>;
163
163
  gender: z.ZodNullable<z.ZodString>;