expo-backend-types 0.33.0 → 0.34.0

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 (93) hide show
  1. package/dist/src/exports.d.ts +3 -0
  2. package/dist/src/exports.js +3 -0
  3. package/dist/src/i18n/es.d.ts +20 -0
  4. package/dist/src/i18n/es.js +20 -0
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/image/constants.d.ts +5 -0
  7. package/dist/src/image/constants.js +9 -0
  8. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  9. package/dist/src/location/exports.d.ts +0 -1
  10. package/dist/src/location/exports.js +0 -1
  11. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  12. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  14. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  15. package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
  16. package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
  17. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
  18. package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
  19. package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
  20. package/dist/src/mi-expo/dto/login.dto.js +31 -0
  21. package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
  22. package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
  23. package/dist/src/mi-expo/exports.d.ts +4 -0
  24. package/dist/src/mi-expo/exports.js +21 -0
  25. package/dist/src/otp/constants.d.ts +2 -0
  26. package/dist/src/otp/constants.js +6 -0
  27. package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
  28. package/dist/src/otp/dto/send-otp.dto.js +35 -0
  29. package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
  30. package/dist/src/otp/dto/verify-otp.dto.js +46 -0
  31. package/dist/src/otp/exports.d.ts +2 -0
  32. package/dist/src/otp/exports.js +19 -0
  33. package/dist/src/prisma/constants.d.ts +1 -0
  34. package/dist/src/prisma/constants.js +5 -0
  35. package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
  36. package/dist/src/profile/dto/create-profile.dto.js +9 -7
  37. package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
  38. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  39. package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
  40. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  41. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
  42. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  43. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
  44. package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
  45. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
  46. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  47. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
  48. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  49. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
  50. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  51. package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
  52. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  53. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
  54. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  55. package/dist/src/profile/dto/profile.dto.d.ts +44 -30
  56. package/dist/src/profile/dto/profile.dto.js +6 -63
  57. package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
  58. package/dist/src/profile/dto/update-profile.dto.js +9 -6
  59. package/dist/src/schema/exports.d.ts +2 -0
  60. package/dist/src/schema/exports.js +19 -0
  61. package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
  62. package/dist/src/schema/profile.schema.d.ts +74 -0
  63. package/dist/src/schema/profile.schema.js +133 -0
  64. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
  65. package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
  66. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  67. package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
  68. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  69. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
  70. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  71. package/dist/src/ticket/constants.d.ts +16 -0
  72. package/dist/src/ticket/constants.js +272 -0
  73. package/dist/src/webhook/constants.d.ts +1 -0
  74. package/dist/src/webhook/constants.js +5 -0
  75. package/dist/types/prisma-schema/edge.js +38 -24
  76. package/dist/types/prisma-schema/index-browser.js +18 -9
  77. package/dist/types/prisma-schema/index.d.ts +4093 -456
  78. package/dist/types/prisma-schema/index.js +38 -24
  79. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  80. package/dist/types/prisma-schema/package.json +8 -2
  81. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  82. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  83. package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
  84. package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
  85. package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
  86. package/dist/types/prisma-schema/runtime/library.js +55 -55
  87. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  88. package/dist/types/prisma-schema/runtime/wasm.js +17 -17
  89. package/dist/types/prisma-schema/schema.prisma +22 -1
  90. package/dist/types/prisma-schema/wasm.js +18 -9
  91. package/dist/types/schema.d.ts +506 -2
  92. package/package.json +41 -40
  93. /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -1,54 +1,65 @@
1
- import z from 'zod';
2
- export declare const profileSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- shortId: z.ZodNumber;
5
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
6
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
7
- fullName: z.ZodString;
8
- firstName: z.ZodNullable<z.ZodString>;
9
- gender: z.ZodNullable<z.ZodString>;
10
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
11
- profilePictureUrl: z.ZodNullable<z.ZodString>;
12
- instagram: z.ZodNullable<z.ZodString>;
13
- mail: z.ZodNullable<z.ZodString>;
14
- dni: z.ZodNullable<z.ZodString>;
15
- alternativeNames: z.ZodArray<z.ZodString, "many">;
16
- birthLocationId: z.ZodNullable<z.ZodString>;
17
- residenceLocationId: z.ZodNullable<z.ZodString>;
18
- isInTrash: z.ZodBoolean;
19
- movedToTrashDate: z.ZodNullable<z.ZodDate>;
20
- created_at: z.ZodDate;
21
- updated_at: z.ZodDate;
22
- }, "strip", z.ZodTypeAny, {
1
+ declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ shortId: import("zod").ZodNumber;
4
+ firstTimeMiExpo: import("zod").ZodBoolean;
5
+ username: import("zod").ZodNullable<import("zod").ZodString>;
6
+ password: import("zod").ZodNullable<import("zod").ZodString>;
7
+ phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
8
+ isPhoneVerified: import("zod").ZodBoolean;
9
+ secondaryPhoneNumber: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>>;
10
+ fullName: import("zod").ZodString;
11
+ firstName: import("zod").ZodNullable<import("zod").ZodString>;
12
+ gender: import("zod").ZodNullable<import("zod").ZodString>;
13
+ birthDate: import("zod").ZodNullable<import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodString>>;
14
+ profilePictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
15
+ instagram: import("zod").ZodNullable<import("zod").ZodString>;
16
+ mail: import("zod").ZodNullable<import("zod").ZodString>;
17
+ dni: import("zod").ZodNullable<import("zod").ZodString>;
18
+ alternativeNames: import("zod").ZodArray<import("zod").ZodString, "many">;
19
+ birthLocationId: import("zod").ZodNullable<import("zod").ZodString>;
20
+ residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
21
+ isInTrash: import("zod").ZodBoolean;
22
+ movedToTrashDate: import("zod").ZodNullable<import("zod").ZodString>;
23
+ created_at: import("zod").ZodString;
24
+ updated_at: import("zod").ZodString;
25
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
23
26
  id: string;
27
+ username: string | null;
28
+ password: string | null;
24
29
  phoneNumber: string;
25
30
  secondaryPhoneNumber: string | null;
26
31
  fullName: string;
27
32
  profilePictureUrl: string | null;
28
33
  mail: string | null;
29
- created_at: Date;
30
- updated_at: Date;
34
+ created_at: string;
35
+ updated_at: string;
31
36
  shortId: number;
37
+ firstTimeMiExpo: boolean;
38
+ isPhoneVerified: boolean;
32
39
  firstName: string | null;
33
40
  gender: string | null;
34
- birthDate: Date | null;
41
+ birthDate: string | null;
35
42
  instagram: string | null;
36
43
  dni: string | null;
37
44
  alternativeNames: string[];
38
45
  birthLocationId: string | null;
39
46
  residenceLocationId: string | null;
40
47
  isInTrash: boolean;
41
- movedToTrashDate: Date | null;
48
+ movedToTrashDate: string | null;
42
49
  }, {
43
50
  id: string;
51
+ username: string | null;
52
+ password: string | null;
44
53
  phoneNumber: string;
45
54
  secondaryPhoneNumber: string | null;
46
55
  fullName: string;
47
56
  profilePictureUrl: string | null;
48
57
  mail: string | null;
49
- created_at: Date;
50
- updated_at: Date;
58
+ created_at: string;
59
+ updated_at: string;
51
60
  shortId: number;
61
+ firstTimeMiExpo: boolean;
62
+ isPhoneVerified: boolean;
52
63
  firstName: string | null;
53
64
  gender: string | null;
54
65
  birthDate: string | null;
@@ -58,5 +69,8 @@ export declare const profileSchema: z.ZodObject<{
58
69
  birthLocationId: string | null;
59
70
  residenceLocationId: string | null;
60
71
  isInTrash: boolean;
61
- movedToTrashDate: Date | null;
62
- }>;
72
+ movedToTrashDate: string | null;
73
+ }>>;
74
+ export declare class ProfileDto extends ProfileDto_base {
75
+ }
76
+ export {};
@@ -1,66 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.profileSchema = void 0;
7
- const translate_1 = require("../../i18n/translate");
8
- const validator_1 = __importDefault(require("validator"));
9
- const zod_1 = __importDefault(require("zod"));
10
- exports.profileSchema = zod_1.default.object({
11
- id: zod_1.default.string().uuid({
12
- message: (0, translate_1.translate)('model.profile.id.uuid'),
13
- }),
14
- shortId: zod_1.default.number(),
15
- phoneNumber: zod_1.default
16
- .string()
17
- .min(1, {
18
- message: (0, translate_1.translate)('model.profile.phoneNumber.required'),
19
- })
20
- .refine(validator_1.default.isMobilePhone, {
21
- message: (0, translate_1.translate)('model.profile.phoneNumber.invalid'),
22
- }),
23
- secondaryPhoneNumber: zod_1.default
24
- .string()
25
- .nullable()
26
- .refine((value) => {
27
- if (value === null)
28
- return true;
29
- return validator_1.default.isMobilePhone(value);
30
- }, {
31
- message: (0, translate_1.translate)('model.profile.secondaryPhoneNumber.invalid'),
32
- }),
33
- fullName: zod_1.default.string().min(1, {
34
- message: (0, translate_1.translate)('model.profile.fullName.required'),
35
- }),
36
- firstName: zod_1.default
37
- .string()
38
- .min(1, {
39
- message: (0, translate_1.translate)('model.profile.fullName.required'),
40
- })
41
- .nullable(),
42
- gender: zod_1.default.string().nullable(),
43
- birthDate: zod_1.default.string().pipe(zod_1.default.coerce.date()).nullable(),
44
- profilePictureUrl: zod_1.default
45
- .string()
46
- .url({
47
- message: (0, translate_1.translate)('model.profile.profilePictureUrl.invalid'),
48
- })
49
- .nullable(),
50
- instagram: zod_1.default.string().nullable(),
51
- mail: zod_1.default
52
- .string()
53
- .email({
54
- message: (0, translate_1.translate)('model.profile.mail.invalid'),
55
- })
56
- .nullable(),
57
- dni: zod_1.default.string().nullable(),
58
- alternativeNames: zod_1.default.array(zod_1.default.string()),
59
- birthLocationId: zod_1.default.string().uuid().nullable(),
60
- residenceLocationId: zod_1.default.string().uuid().nullable(),
61
- isInTrash: zod_1.default.boolean(),
62
- movedToTrashDate: zod_1.default.coerce.date().nullable(),
63
- created_at: zod_1.default.date(),
64
- updated_at: zod_1.default.date(),
65
- });
3
+ exports.ProfileDto = void 0;
4
+ const profile_schema_1 = require("../../schema/profile.schema");
5
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
+ class ProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(profile_schema_1.profileSchema) {
7
+ }
8
+ exports.ProfileDto = ProfileDto;
66
9
  //# sourceMappingURL=profile.dto.js.map
@@ -1,10 +1,13 @@
1
1
  import z from 'zod';
2
2
  export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
3
- phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
3
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
6
+ secondaryPhoneNumber: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
5
7
  fullName: z.ZodOptional<z.ZodString>;
6
8
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
9
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
8
11
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
12
  birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
10
13
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -59,11 +62,14 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
59
62
  }>>;
60
63
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
64
  }>, "strip", z.ZodTypeAny, {
65
+ username?: string | null | undefined;
66
+ password?: string | null | undefined;
62
67
  phoneNumber?: string | undefined;
63
68
  secondaryPhoneNumber?: string | null | undefined;
64
69
  fullName?: string | undefined;
65
70
  profilePictureUrl?: string | null | undefined;
66
71
  mail?: string | null | undefined;
72
+ firstTimeMiExpo?: boolean | undefined;
67
73
  gender?: string | null | undefined;
68
74
  birthDate?: Date | null | undefined;
69
75
  instagram?: string | null | undefined;
@@ -87,11 +93,14 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
87
93
  city: string;
88
94
  } | undefined;
89
95
  }, {
96
+ username?: string | null | undefined;
97
+ password?: string | null | undefined;
90
98
  phoneNumber?: string | undefined;
91
99
  secondaryPhoneNumber?: string | null | undefined;
92
100
  fullName?: string | undefined;
93
101
  profilePictureUrl?: string | null | undefined;
94
102
  mail?: string | null | undefined;
103
+ firstTimeMiExpo?: boolean | undefined;
95
104
  gender?: string | null | undefined;
96
105
  birthDate?: string | null | undefined;
97
106
  instagram?: string | null | undefined;
@@ -116,13 +125,16 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
116
125
  } | undefined;
117
126
  }>;
118
127
  declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
119
- phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
120
- secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
128
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
131
+ secondaryPhoneNumber: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>>;
121
132
  fullName: z.ZodOptional<z.ZodString>;
122
133
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
134
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
124
136
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
- birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
137
+ birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>>;
126
138
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
139
  dni: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
140
  alternativeNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -168,13 +180,16 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
168
180
  }>>;
169
181
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
170
182
  }, z.UnknownKeysParam, z.ZodTypeAny, {
183
+ username?: string | null | undefined;
184
+ password?: string | null | undefined;
171
185
  phoneNumber?: string | undefined;
172
186
  secondaryPhoneNumber?: string | null | undefined;
173
187
  fullName?: string | undefined;
174
188
  profilePictureUrl?: string | null | undefined;
175
189
  mail?: string | null | undefined;
190
+ firstTimeMiExpo?: boolean | undefined;
176
191
  gender?: string | null | undefined;
177
- birthDate?: Date | null | undefined;
192
+ birthDate?: string | null | undefined;
178
193
  instagram?: string | null | undefined;
179
194
  dni?: string | null | undefined;
180
195
  alternativeNames?: string[] | undefined;
@@ -196,11 +211,14 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
196
211
  city: string;
197
212
  } | undefined;
198
213
  }, {
214
+ username?: string | null | undefined;
215
+ password?: string | null | undefined;
199
216
  phoneNumber?: string | undefined;
200
217
  secondaryPhoneNumber?: string | null | undefined;
201
218
  fullName?: string | undefined;
202
219
  profilePictureUrl?: string | null | undefined;
203
220
  mail?: string | null | undefined;
221
+ firstTimeMiExpo?: boolean | undefined;
204
222
  gender?: string | null | undefined;
205
223
  birthDate?: string | null | undefined;
206
224
  instagram?: string | null | undefined;
@@ -229,8 +247,12 @@ export declare class UpdateProfileDto extends UpdateProfileDto_base {
229
247
  export declare const updateProfileResponseSchema: z.ZodObject<{
230
248
  id: z.ZodString;
231
249
  shortId: z.ZodNumber;
232
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
233
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
250
+ firstTimeMiExpo: z.ZodBoolean;
251
+ username: z.ZodNullable<z.ZodString>;
252
+ password: z.ZodNullable<z.ZodString>;
253
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
254
+ isPhoneVerified: z.ZodBoolean;
255
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
234
256
  fullName: z.ZodString;
235
257
  firstName: z.ZodNullable<z.ZodString>;
236
258
  gender: z.ZodNullable<z.ZodString>;
@@ -248,6 +270,8 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
248
270
  updated_at: z.ZodDate;
249
271
  }, "strip", z.ZodTypeAny, {
250
272
  id: string;
273
+ username: string | null;
274
+ password: string | null;
251
275
  phoneNumber: string;
252
276
  secondaryPhoneNumber: string | null;
253
277
  fullName: string;
@@ -256,6 +280,8 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
256
280
  created_at: Date;
257
281
  updated_at: Date;
258
282
  shortId: number;
283
+ firstTimeMiExpo: boolean;
284
+ isPhoneVerified: boolean;
259
285
  firstName: string | null;
260
286
  gender: string | null;
261
287
  birthDate: Date | null;
@@ -268,6 +294,8 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
268
294
  movedToTrashDate: Date | null;
269
295
  }, {
270
296
  id: string;
297
+ username: string | null;
298
+ password: string | null;
271
299
  phoneNumber: string;
272
300
  secondaryPhoneNumber: string | null;
273
301
  fullName: string;
@@ -276,6 +304,8 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
276
304
  created_at: Date;
277
305
  updated_at: Date;
278
306
  shortId: number;
307
+ firstTimeMiExpo: boolean;
308
+ isPhoneVerified: boolean;
279
309
  firstName: string | null;
280
310
  gender: string | null;
281
311
  birthDate: string | null;
@@ -290,12 +320,16 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
290
320
  declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
291
321
  id: z.ZodString;
292
322
  shortId: z.ZodNumber;
293
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
294
- secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
323
+ firstTimeMiExpo: z.ZodBoolean;
324
+ username: z.ZodNullable<z.ZodString>;
325
+ password: z.ZodNullable<z.ZodString>;
326
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
327
+ isPhoneVerified: z.ZodBoolean;
328
+ secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
295
329
  fullName: z.ZodString;
296
330
  firstName: z.ZodNullable<z.ZodString>;
297
331
  gender: z.ZodNullable<z.ZodString>;
298
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
332
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
299
333
  profilePictureUrl: z.ZodNullable<z.ZodString>;
300
334
  instagram: z.ZodNullable<z.ZodString>;
301
335
  mail: z.ZodNullable<z.ZodString>;
@@ -309,6 +343,8 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
309
343
  updated_at: z.ZodString;
310
344
  }, z.UnknownKeysParam, z.ZodTypeAny, {
311
345
  id: string;
346
+ username: string | null;
347
+ password: string | null;
312
348
  phoneNumber: string;
313
349
  secondaryPhoneNumber: string | null;
314
350
  fullName: string;
@@ -317,9 +353,11 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
317
353
  created_at: string;
318
354
  updated_at: string;
319
355
  shortId: number;
356
+ firstTimeMiExpo: boolean;
357
+ isPhoneVerified: boolean;
320
358
  firstName: string | null;
321
359
  gender: string | null;
322
- birthDate: Date | null;
360
+ birthDate: string | null;
323
361
  instagram: string | null;
324
362
  dni: string | null;
325
363
  alternativeNames: string[];
@@ -329,6 +367,8 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
329
367
  movedToTrashDate: string | null;
330
368
  }, {
331
369
  id: string;
370
+ username: string | null;
371
+ password: string | null;
332
372
  phoneNumber: string;
333
373
  secondaryPhoneNumber: string | null;
334
374
  fullName: string;
@@ -337,6 +377,8 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
337
377
  created_at: string;
338
378
  updated_at: string;
339
379
  shortId: number;
380
+ firstTimeMiExpo: boolean;
381
+ isPhoneVerified: boolean;
340
382
  firstName: string | null;
341
383
  gender: string | null;
342
384
  birthDate: string | null;
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdateProfileResponseDto = exports.updateProfileResponseSchema = exports.UpdateProfileDto = exports.updateProfileSchema = void 0;
7
- const location_dto_1 = require("../../location/dto/location.dto");
8
- const profile_dto_1 = require("./profile.dto");
7
+ const location_schema_1 = require("../../schema/location.schema");
8
+ const profile_schema_1 = require("../../schema/profile.schema");
9
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
10
  const tag_dto_1 = require("../../tag/dto/tag.dto");
11
11
  const zod_1 = __importDefault(require("zod"));
12
- exports.updateProfileSchema = profile_dto_1.profileSchema
12
+ exports.updateProfileSchema = profile_schema_1.profileSchema
13
13
  .pick({
14
14
  alternativeNames: true,
15
15
  birthDate: true,
@@ -23,10 +23,13 @@ exports.updateProfileSchema = profile_dto_1.profileSchema
23
23
  secondaryPhoneNumber: true,
24
24
  isInTrash: true,
25
25
  movedToTrashDate: true,
26
+ username: true,
27
+ password: true,
28
+ firstTimeMiExpo: true,
26
29
  })
27
30
  .partial()
28
31
  .merge(zod_1.default.object({
29
- residence: location_dto_1.locationSchema
32
+ residence: location_schema_1.locationSchema
30
33
  .pick({
31
34
  city: true,
32
35
  country: true,
@@ -35,7 +38,7 @@ exports.updateProfileSchema = profile_dto_1.profileSchema
35
38
  state: true,
36
39
  })
37
40
  .optional(),
38
- birth: location_dto_1.locationSchema
41
+ birth: location_schema_1.locationSchema
39
42
  .pick({
40
43
  city: true,
41
44
  country: true,
@@ -49,7 +52,7 @@ exports.updateProfileSchema = profile_dto_1.profileSchema
49
52
  class UpdateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileSchema) {
50
53
  }
51
54
  exports.UpdateProfileDto = UpdateProfileDto;
52
- exports.updateProfileResponseSchema = profile_dto_1.profileSchema;
55
+ exports.updateProfileResponseSchema = profile_schema_1.profileSchema;
53
56
  class UpdateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileResponseSchema) {
54
57
  }
55
58
  exports.UpdateProfileResponseDto = UpdateProfileResponseDto;
@@ -0,0 +1,2 @@
1
+ export * from './location.schema';
2
+ export * from './profile.schema';
@@ -0,0 +1,19 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./location.schema"), exports);
18
+ __exportStar(require("./profile.schema"), exports);
19
+ //# sourceMappingURL=exports.js.map
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.locationSchema = void 0;
7
- const translate_1 = require("../../i18n/translate");
7
+ const translate_1 = require("../i18n/translate");
8
8
  const zod_1 = __importDefault(require("zod"));
9
9
  exports.locationSchema = zod_1.default.object({
10
10
  id: zod_1.default.string().uuid({
@@ -32,4 +32,4 @@ exports.locationSchema = zod_1.default.object({
32
32
  created_at: zod_1.default.date(),
33
33
  updated_at: zod_1.default.date(),
34
34
  });
35
- //# sourceMappingURL=location.dto.js.map
35
+ //# sourceMappingURL=location.schema.js.map
@@ -0,0 +1,74 @@
1
+ import z from 'zod';
2
+ export declare const profileSchema: z.ZodObject<{
3
+ id: z.ZodString;
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.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
11
+ fullName: z.ZodString;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ gender: z.ZodNullable<z.ZodString>;
14
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
15
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
16
+ instagram: z.ZodNullable<z.ZodString>;
17
+ mail: z.ZodNullable<z.ZodString>;
18
+ dni: z.ZodNullable<z.ZodString>;
19
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
20
+ birthLocationId: z.ZodNullable<z.ZodString>;
21
+ residenceLocationId: z.ZodNullable<z.ZodString>;
22
+ isInTrash: z.ZodBoolean;
23
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
24
+ created_at: z.ZodDate;
25
+ updated_at: z.ZodDate;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ username: string | null;
29
+ password: string | null;
30
+ phoneNumber: string;
31
+ secondaryPhoneNumber: string | null;
32
+ fullName: string;
33
+ profilePictureUrl: string | null;
34
+ mail: string | null;
35
+ created_at: Date;
36
+ updated_at: Date;
37
+ shortId: number;
38
+ firstTimeMiExpo: boolean;
39
+ isPhoneVerified: boolean;
40
+ firstName: string | null;
41
+ gender: string | null;
42
+ birthDate: Date | null;
43
+ instagram: string | null;
44
+ dni: string | null;
45
+ alternativeNames: string[];
46
+ birthLocationId: string | null;
47
+ residenceLocationId: string | null;
48
+ isInTrash: boolean;
49
+ movedToTrashDate: Date | null;
50
+ }, {
51
+ id: string;
52
+ username: string | null;
53
+ password: string | null;
54
+ phoneNumber: string;
55
+ secondaryPhoneNumber: string | null;
56
+ fullName: string;
57
+ profilePictureUrl: string | null;
58
+ mail: string | null;
59
+ created_at: Date;
60
+ updated_at: Date;
61
+ shortId: number;
62
+ firstTimeMiExpo: boolean;
63
+ isPhoneVerified: boolean;
64
+ firstName: string | null;
65
+ gender: string | null;
66
+ birthDate: string | null;
67
+ instagram: string | null;
68
+ dni: string | null;
69
+ alternativeNames: string[];
70
+ birthLocationId: string | null;
71
+ residenceLocationId: string | null;
72
+ isInTrash: boolean;
73
+ movedToTrashDate: Date | null;
74
+ }>;