expo-backend-types 0.32.0-EXPO-308-auth.1 → 0.32.0-EXPO-315-Marcelo-Tinelli.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/src/exports.d.ts +2 -3
  2. package/dist/src/exports.js +2 -3
  3. package/dist/src/i18n/es.d.ts +63 -20
  4. package/dist/src/i18n/es.js +63 -20
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  7. package/dist/src/{schema/location.schema.js → location/dto/location.dto.js} +2 -2
  8. package/dist/src/location/exports.d.ts +1 -0
  9. package/dist/src/location/exports.js +1 -0
  10. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  11. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  12. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  14. package/dist/src/message/dto/template.dto.d.ts +2 -2
  15. package/dist/src/profile/dto/create-profile.dto.d.ts +14 -48
  16. package/dist/src/profile/dto/create-profile.dto.js +7 -9
  17. package/dist/src/profile/dto/delete-profile.dto.d.ts +6 -30
  18. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  19. package/dist/src/profile/dto/find-all-profile.dto.d.ts +7 -47
  20. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  21. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +11 -75
  22. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  23. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +13 -32
  24. package/dist/src/profile/dto/find-by-id-profile.dto.js +5 -7
  25. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +6 -30
  26. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  27. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +7 -47
  28. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  29. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +7 -47
  30. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  31. package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
  32. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  33. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +7 -47
  34. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  35. package/dist/src/profile/dto/profile.dto.d.ts +30 -44
  36. package/dist/src/profile/dto/profile.dto.js +63 -6
  37. package/dist/src/profile/dto/update-profile.dto.d.ts +12 -54
  38. package/dist/src/profile/dto/update-profile.dto.js +6 -9
  39. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +4 -2
  40. package/dist/src/shared/dto-modification/zod-without-dates.js +0 -8
  41. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  42. package/dist/src/tag/dto/massive-allocation.dto.d.ts +7 -47
  43. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  44. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +7 -47
  45. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  46. package/dist/src/ticket/dto/create-ticket.dto.d.ts +130 -0
  47. package/dist/src/ticket/dto/create-ticket.dto.js +20 -0
  48. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +73 -0
  49. package/dist/src/ticket/dto/delete-ticket.dto.js +10 -0
  50. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +196 -0
  51. package/dist/src/ticket/dto/find-all-tickets.dto.js +23 -0
  52. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +196 -0
  53. package/dist/src/ticket/dto/find-by-event-ticket.dto.js +23 -0
  54. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +196 -0
  55. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +20 -0
  56. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +196 -0
  57. package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +23 -0
  58. package/dist/src/ticket/dto/find-ticket.dto.d.ts +73 -0
  59. package/dist/src/ticket/dto/find-ticket.dto.js +10 -0
  60. package/dist/src/ticket/dto/generate-pdf.dto.d.ts +7 -0
  61. package/dist/src/ticket/dto/generate-pdf.dto.js +13 -0
  62. package/dist/src/ticket/dto/ticket.dto.d.ts +74 -0
  63. package/dist/src/ticket/dto/ticket.dto.js +29 -0
  64. package/dist/src/ticket/dto/update-ticket.dto.d.ts +121 -0
  65. package/dist/src/ticket/dto/update-ticket.dto.js +21 -0
  66. package/dist/src/ticket/exports.d.ts +10 -0
  67. package/dist/src/{otp → ticket}/exports.js +10 -2
  68. package/dist/types/prisma-schema/edge.js +47 -38
  69. package/dist/types/prisma-schema/index-browser.js +32 -18
  70. package/dist/types/prisma-schema/index.d.ts +4311 -5988
  71. package/dist/types/prisma-schema/index.js +47 -38
  72. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  73. package/dist/types/prisma-schema/package.json +2 -8
  74. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  75. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  76. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -3
  77. package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
  78. package/dist/types/prisma-schema/runtime/library.d.ts +153 -205
  79. package/dist/types/prisma-schema/runtime/library.js +55 -55
  80. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  81. package/dist/types/prisma-schema/runtime/wasm.js +17 -17
  82. package/dist/types/prisma-schema/schema.prisma +32 -23
  83. package/dist/types/prisma-schema/wasm.js +32 -18
  84. package/dist/types/schema.d.ts +334 -316
  85. package/package.json +41 -32
  86. package/dist/src/image/constants.d.ts +0 -5
  87. package/dist/src/image/constants.js +0 -9
  88. package/dist/src/mi-expo/dto/get-me.dto.d.ts +0 -337
  89. package/dist/src/mi-expo/dto/get-me.dto.js +0 -16
  90. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +0 -311
  91. package/dist/src/mi-expo/dto/login-with-phone.dto.js +0 -29
  92. package/dist/src/mi-expo/dto/login.dto.d.ts +0 -327
  93. package/dist/src/mi-expo/dto/login.dto.js +0 -31
  94. package/dist/src/mi-expo/dto/update-me.dto.d.ts +0 -352
  95. package/dist/src/mi-expo/dto/update-me.dto.js +0 -31
  96. package/dist/src/mi-expo/exports.d.ts +0 -4
  97. package/dist/src/mi-expo/exports.js +0 -21
  98. package/dist/src/otp/constants.d.ts +0 -2
  99. package/dist/src/otp/constants.js +0 -6
  100. package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
  101. package/dist/src/otp/dto/send-otp.dto.js +0 -35
  102. package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -455
  103. package/dist/src/otp/dto/verify-otp.dto.js +0 -46
  104. package/dist/src/otp/exports.d.ts +0 -2
  105. package/dist/src/prisma/constants.d.ts +0 -1
  106. package/dist/src/prisma/constants.js +0 -5
  107. package/dist/src/schema/exports.d.ts +0 -2
  108. package/dist/src/schema/exports.js +0 -19
  109. package/dist/src/schema/profile.schema.d.ts +0 -74
  110. package/dist/src/schema/profile.schema.js +0 -133
  111. package/dist/src/webhook/constants.d.ts +0 -1
  112. package/dist/src/webhook/constants.js +0 -5
  113. /package/dist/src/{schema/location.schema.d.ts → location/dto/location.dto.d.ts} +0 -0
@@ -3,12 +3,8 @@ export declare const findByTagsProfileResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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,16 +201,12 @@ declare const FindByTagsProfileResponseDto_base: import("@anatine/zod-nestjs").Z
221
201
  profiles: z.ZodArray<z.ZodObject<{
222
202
  id: z.ZodString;
223
203
  shortId: z.ZodNumber;
224
- firstTimeMiExpo: z.ZodBoolean;
225
- username: z.ZodNullable<z.ZodString>;
226
- password: z.ZodNullable<z.ZodString>;
227
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
228
- isPhoneVerified: z.ZodBoolean;
229
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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>;
233
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
209
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
234
210
  profilePictureUrl: z.ZodNullable<z.ZodString>;
235
211
  instagram: z.ZodNullable<z.ZodString>;
236
212
  mail: 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,11 +268,9 @@ 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
- birthDate: string | null;
273
+ birthDate: Date | null;
302
274
  instagram: string | null;
303
275
  dni: string | null;
304
276
  alternativeNames: string[];
@@ -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,11 +332,9 @@ 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
- birthDate: string | null;
337
+ birthDate: Date | null;
374
338
  instagram: string | null;
375
339
  dni: string | null;
376
340
  alternativeNames: string[];
@@ -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;
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FindByTagsProfileResponseDto = exports.findByTagsProfileResponseSchema = void 0;
7
- const profile_schema_1 = require("../../schema/profile.schema");
7
+ const profile_dto_1 = require("./profile.dto");
8
8
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
9
  const tag_group_dto_1 = require("../../tag-group/dto/tag-group.dto");
10
10
  const tag_dto_1 = require("../../tag/dto/tag.dto");
11
11
  const zod_1 = __importDefault(require("zod"));
12
12
  exports.findByTagsProfileResponseSchema = zod_1.default.object({
13
- profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
13
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.merge(zod_1.default.object({
14
14
  tags: zod_1.default.array(tag_dto_1.tagSchema.merge(zod_1.default.object({
15
15
  group: tag_group_dto_1.tagGroupSchema.pick({
16
16
  isExclusive: true,
@@ -3,12 +3,8 @@ export declare const findTrashResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<Pick<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
6
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
12
8
  fullName: z.ZodString;
13
9
  firstName: z.ZodNullable<z.ZodString>;
14
10
  gender: z.ZodNullable<z.ZodString>;
@@ -65,7 +61,7 @@ export declare const findTrashResponseSchema: z.ZodObject<{
65
61
  declare const FindTrashResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
66
62
  profiles: z.ZodArray<z.ZodObject<{
67
63
  id: z.ZodString;
68
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
69
65
  fullName: z.ZodString;
70
66
  profilePictureUrl: z.ZodNullable<z.ZodString>;
71
67
  created_at: z.ZodString;
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FindTrashResponseDto = exports.findTrashResponseSchema = void 0;
7
- const profile_schema_1 = require("../../schema/profile.schema");
7
+ const profile_dto_1 = require("./profile.dto");
8
8
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
9
  const zod_1 = __importDefault(require("zod"));
10
10
  exports.findTrashResponseSchema = zod_1.default.object({
11
- profiles: zod_1.default.array(profile_schema_1.profileSchema.pick({
11
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.pick({
12
12
  id: true,
13
13
  fullName: true,
14
14
  profilePictureUrl: true,
@@ -3,12 +3,8 @@ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
3
3
  profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
4
  id: z.ZodString;
5
5
  shortId: z.ZodNumber;
6
- firstTimeMiExpo: z.ZodBoolean;
7
- username: z.ZodNullable<z.ZodString>;
8
- password: z.ZodNullable<z.ZodString>;
9
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
10
- isPhoneVerified: z.ZodBoolean;
11
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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,16 +367,12 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
387
367
  profiles: z.ZodArray<z.ZodObject<{
388
368
  id: z.ZodString;
389
369
  shortId: z.ZodNumber;
390
- firstTimeMiExpo: z.ZodBoolean;
391
- username: z.ZodNullable<z.ZodString>;
392
- password: z.ZodNullable<z.ZodString>;
393
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
394
- isPhoneVerified: z.ZodBoolean;
395
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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>;
399
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
375
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
400
376
  profilePictureUrl: z.ZodNullable<z.ZodString>;
401
377
  instagram: z.ZodNullable<z.ZodString>;
402
378
  mail: 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,11 +527,9 @@ 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
- birthDate: string | null;
532
+ birthDate: Date | null;
561
533
  instagram: string | null;
562
534
  dni: string | null;
563
535
  alternativeNames: string[];
@@ -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,11 +629,9 @@ 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
- birthDate: string | null;
634
+ birthDate: Date | null;
671
635
  instagram: string | null;
672
636
  dni: string | null;
673
637
  alternativeNames: string[];
@@ -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;
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FindWithActiveChatResponseDto = exports.findWithActiveChatResponseSchema = void 0;
7
7
  const message_dto_1 = require("../../message/dto/message.dto");
8
- const profile_schema_1 = require("../../schema/profile.schema");
8
+ const profile_dto_1 = require("./profile.dto");
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
12
  exports.findWithActiveChatResponseSchema = zod_1.default.object({
13
- profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
13
+ profiles: zod_1.default.array(profile_dto_1.profileSchema.merge(zod_1.default.object({
14
14
  tags: zod_1.default.array(tag_dto_1.tagSchema),
15
15
  inChat: zod_1.default.boolean(),
16
16
  messages: zod_1.default.array(message_dto_1.messageSchema.pick({
@@ -1,65 +1,54 @@
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, {
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, {
26
23
  id: string;
27
- username: string | null;
28
- password: string | null;
29
24
  phoneNumber: string;
30
25
  secondaryPhoneNumber: string | null;
31
26
  fullName: string;
32
27
  profilePictureUrl: string | null;
33
28
  mail: string | null;
34
- created_at: string;
35
- updated_at: string;
29
+ created_at: Date;
30
+ updated_at: Date;
36
31
  shortId: number;
37
- firstTimeMiExpo: boolean;
38
- isPhoneVerified: boolean;
39
32
  firstName: string | null;
40
33
  gender: string | null;
41
- birthDate: string | null;
34
+ birthDate: Date | null;
42
35
  instagram: string | null;
43
36
  dni: string | null;
44
37
  alternativeNames: string[];
45
38
  birthLocationId: string | null;
46
39
  residenceLocationId: string | null;
47
40
  isInTrash: boolean;
48
- movedToTrashDate: string | null;
41
+ movedToTrashDate: Date | null;
49
42
  }, {
50
43
  id: string;
51
- username: string | null;
52
- password: string | null;
53
44
  phoneNumber: string;
54
45
  secondaryPhoneNumber: string | null;
55
46
  fullName: string;
56
47
  profilePictureUrl: string | null;
57
48
  mail: string | null;
58
- created_at: string;
59
- updated_at: string;
49
+ created_at: Date;
50
+ updated_at: Date;
60
51
  shortId: number;
61
- firstTimeMiExpo: boolean;
62
- isPhoneVerified: boolean;
63
52
  firstName: string | null;
64
53
  gender: string | null;
65
54
  birthDate: string | null;
@@ -69,8 +58,5 @@ declare const ProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import
69
58
  birthLocationId: string | null;
70
59
  residenceLocationId: string | null;
71
60
  isInTrash: boolean;
72
- movedToTrashDate: string | null;
73
- }>>;
74
- export declare class ProfileDto extends ProfileDto_base {
75
- }
76
- export {};
61
+ movedToTrashDate: Date | null;
62
+ }>;
@@ -1,9 +1,66 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
+ });
9
66
  //# sourceMappingURL=profile.dto.js.map