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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +64 -20
  4. package/dist/src/i18n/es.js +64 -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 +134 -0
  47. package/dist/src/ticket/dto/create-ticket.dto.js +20 -0
  48. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +75 -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 +198 -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 +198 -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 +198 -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 +198 -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 +75 -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 +76 -0
  63. package/dist/src/ticket/dto/ticket.dto.js +29 -0
  64. package/dist/src/ticket/dto/update-ticket.dto.d.ts +125 -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 +48 -38
  69. package/dist/types/prisma-schema/index-browser.js +33 -18
  70. package/dist/types/prisma-schema/index.d.ts +4312 -5988
  71. package/dist/types/prisma-schema/index.js +48 -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 +33 -23
  83. package/dist/types/prisma-schema/wasm.js +33 -18
  84. package/dist/types/schema.d.ts +339 -313
  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
@@ -1,13 +1,10 @@
1
1
  import z from 'zod';
2
2
  export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
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>>>;
3
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4
+ secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
7
5
  fullName: z.ZodOptional<z.ZodString>;
8
6
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
7
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
11
8
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
9
  birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
13
10
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -62,14 +59,11 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
62
59
  }>>;
63
60
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
64
61
  }>, "strip", z.ZodTypeAny, {
65
- username?: string | null | undefined;
66
- password?: string | null | undefined;
67
62
  phoneNumber?: string | undefined;
68
63
  secondaryPhoneNumber?: string | null | undefined;
69
64
  fullName?: string | undefined;
70
65
  profilePictureUrl?: string | null | undefined;
71
66
  mail?: string | null | undefined;
72
- firstTimeMiExpo?: boolean | undefined;
73
67
  gender?: string | null | undefined;
74
68
  birthDate?: Date | null | undefined;
75
69
  instagram?: string | null | undefined;
@@ -93,14 +87,11 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
93
87
  city: string;
94
88
  } | undefined;
95
89
  }, {
96
- username?: string | null | undefined;
97
- password?: string | null | undefined;
98
90
  phoneNumber?: string | undefined;
99
91
  secondaryPhoneNumber?: string | null | undefined;
100
92
  fullName?: string | undefined;
101
93
  profilePictureUrl?: string | null | undefined;
102
94
  mail?: string | null | undefined;
103
- firstTimeMiExpo?: boolean | undefined;
104
95
  gender?: string | null | undefined;
105
96
  birthDate?: string | null | undefined;
106
97
  instagram?: string | null | undefined;
@@ -125,16 +116,13 @@ export declare const updateProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
125
116
  } | undefined;
126
117
  }>;
127
118
  declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
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>>>;
119
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
120
+ secondaryPhoneNumber: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
132
121
  fullName: z.ZodOptional<z.ZodString>;
133
122
  profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
123
  mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
- firstTimeMiExpo: z.ZodOptional<z.ZodBoolean>;
136
124
  gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
- birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>>;
125
+ birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
138
126
  instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
127
  dni: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
128
  alternativeNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -180,16 +168,13 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
180
168
  }>>;
181
169
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
182
170
  }, z.UnknownKeysParam, z.ZodTypeAny, {
183
- username?: string | null | undefined;
184
- password?: string | null | undefined;
185
171
  phoneNumber?: string | undefined;
186
172
  secondaryPhoneNumber?: string | null | undefined;
187
173
  fullName?: string | undefined;
188
174
  profilePictureUrl?: string | null | undefined;
189
175
  mail?: string | null | undefined;
190
- firstTimeMiExpo?: boolean | undefined;
191
176
  gender?: string | null | undefined;
192
- birthDate?: string | null | undefined;
177
+ birthDate?: Date | null | undefined;
193
178
  instagram?: string | null | undefined;
194
179
  dni?: string | null | undefined;
195
180
  alternativeNames?: string[] | undefined;
@@ -211,14 +196,11 @@ declare const UpdateProfileDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<
211
196
  city: string;
212
197
  } | undefined;
213
198
  }, {
214
- username?: string | null | undefined;
215
- password?: string | null | undefined;
216
199
  phoneNumber?: string | undefined;
217
200
  secondaryPhoneNumber?: string | null | undefined;
218
201
  fullName?: string | undefined;
219
202
  profilePictureUrl?: string | null | undefined;
220
203
  mail?: string | null | undefined;
221
- firstTimeMiExpo?: boolean | undefined;
222
204
  gender?: string | null | undefined;
223
205
  birthDate?: string | null | undefined;
224
206
  instagram?: string | null | undefined;
@@ -247,12 +229,8 @@ export declare class UpdateProfileDto extends UpdateProfileDto_base {
247
229
  export declare const updateProfileResponseSchema: z.ZodObject<{
248
230
  id: z.ZodString;
249
231
  shortId: z.ZodNumber;
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>>;
232
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
233
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
256
234
  fullName: z.ZodString;
257
235
  firstName: z.ZodNullable<z.ZodString>;
258
236
  gender: z.ZodNullable<z.ZodString>;
@@ -270,8 +248,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
270
248
  updated_at: z.ZodDate;
271
249
  }, "strip", z.ZodTypeAny, {
272
250
  id: string;
273
- username: string | null;
274
- password: string | null;
275
251
  phoneNumber: string;
276
252
  secondaryPhoneNumber: string | null;
277
253
  fullName: string;
@@ -280,8 +256,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
280
256
  created_at: Date;
281
257
  updated_at: Date;
282
258
  shortId: number;
283
- firstTimeMiExpo: boolean;
284
- isPhoneVerified: boolean;
285
259
  firstName: string | null;
286
260
  gender: string | null;
287
261
  birthDate: Date | null;
@@ -294,8 +268,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
294
268
  movedToTrashDate: Date | null;
295
269
  }, {
296
270
  id: string;
297
- username: string | null;
298
- password: string | null;
299
271
  phoneNumber: string;
300
272
  secondaryPhoneNumber: string | null;
301
273
  fullName: string;
@@ -304,8 +276,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
304
276
  created_at: Date;
305
277
  updated_at: Date;
306
278
  shortId: number;
307
- firstTimeMiExpo: boolean;
308
- isPhoneVerified: boolean;
309
279
  firstName: string | null;
310
280
  gender: string | null;
311
281
  birthDate: string | null;
@@ -320,16 +290,12 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
320
290
  declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
321
291
  id: z.ZodString;
322
292
  shortId: z.ZodNumber;
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>>;
293
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
294
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
329
295
  fullName: z.ZodString;
330
296
  firstName: z.ZodNullable<z.ZodString>;
331
297
  gender: z.ZodNullable<z.ZodString>;
332
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
298
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
333
299
  profilePictureUrl: z.ZodNullable<z.ZodString>;
334
300
  instagram: z.ZodNullable<z.ZodString>;
335
301
  mail: z.ZodNullable<z.ZodString>;
@@ -343,8 +309,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
343
309
  updated_at: z.ZodString;
344
310
  }, z.UnknownKeysParam, z.ZodTypeAny, {
345
311
  id: string;
346
- username: string | null;
347
- password: string | null;
348
312
  phoneNumber: string;
349
313
  secondaryPhoneNumber: string | null;
350
314
  fullName: string;
@@ -353,11 +317,9 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
353
317
  created_at: string;
354
318
  updated_at: string;
355
319
  shortId: number;
356
- firstTimeMiExpo: boolean;
357
- isPhoneVerified: boolean;
358
320
  firstName: string | null;
359
321
  gender: string | null;
360
- birthDate: string | null;
322
+ birthDate: Date | null;
361
323
  instagram: string | null;
362
324
  dni: string | null;
363
325
  alternativeNames: string[];
@@ -367,8 +329,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
367
329
  movedToTrashDate: string | null;
368
330
  }, {
369
331
  id: string;
370
- username: string | null;
371
- password: string | null;
372
332
  phoneNumber: string;
373
333
  secondaryPhoneNumber: string | null;
374
334
  fullName: string;
@@ -377,8 +337,6 @@ declare const UpdateProfileResponseDto_base: import("@anatine/zod-nestjs").ZodDt
377
337
  created_at: string;
378
338
  updated_at: string;
379
339
  shortId: number;
380
- firstTimeMiExpo: boolean;
381
- isPhoneVerified: boolean;
382
340
  firstName: string | null;
383
341
  gender: string | null;
384
342
  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_schema_1 = require("../../schema/location.schema");
8
- const profile_schema_1 = require("../../schema/profile.schema");
7
+ const location_dto_1 = require("../../location/dto/location.dto");
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
- exports.updateProfileSchema = profile_schema_1.profileSchema
12
+ exports.updateProfileSchema = profile_dto_1.profileSchema
13
13
  .pick({
14
14
  alternativeNames: true,
15
15
  birthDate: true,
@@ -23,13 +23,10 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
23
23
  secondaryPhoneNumber: true,
24
24
  isInTrash: true,
25
25
  movedToTrashDate: true,
26
- username: true,
27
- password: true,
28
- firstTimeMiExpo: true,
29
26
  })
30
27
  .partial()
31
28
  .merge(zod_1.default.object({
32
- residence: location_schema_1.locationSchema
29
+ residence: location_dto_1.locationSchema
33
30
  .pick({
34
31
  city: true,
35
32
  country: true,
@@ -38,7 +35,7 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
38
35
  state: true,
39
36
  })
40
37
  .optional(),
41
- birth: location_schema_1.locationSchema
38
+ birth: location_dto_1.locationSchema
42
39
  .pick({
43
40
  city: true,
44
41
  country: true,
@@ -52,7 +49,7 @@ exports.updateProfileSchema = profile_schema_1.profileSchema
52
49
  class UpdateProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileSchema) {
53
50
  }
54
51
  exports.UpdateProfileDto = UpdateProfileDto;
55
- exports.updateProfileResponseSchema = profile_schema_1.profileSchema;
52
+ exports.updateProfileResponseSchema = profile_dto_1.profileSchema;
56
53
  class UpdateProfileResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateProfileResponseSchema) {
57
54
  }
58
55
  exports.UpdateProfileResponseDto = UpdateProfileResponseDto;
@@ -1,6 +1,8 @@
1
1
  import { type OpenApiZodAny } from '@anatine/zod-openapi';
2
- import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, ZodPipeline, ZodTypeAny, ZodUnion } from 'zod';
2
+ import { z, ZodArray, ZodDate, ZodIntersection, ZodNullable, ZodObject, ZodOptional, 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 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;
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;
6
8
  export declare const replaceDatesWithStrings: <T extends OpenApiZodAny>(schema: T) => ReplaceDatesWithStrings<T>;
@@ -6,14 +6,6 @@ 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
- }
17
9
  if (schema instanceof zod_1.ZodObject) {
18
10
  const newShape = {};
19
11
  for (const key in schema.shape) {
@@ -1 +1 @@
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;IAGD,OAAO,MAAoC,CAAC;AAC9C,CAAC,CAAC;AA9CW,QAAA,uBAAuB,2BA8ClC"}
1
+ {"version":3,"file":"zod-without-dates.js","sourceRoot":"","sources":["../../../../src/shared/dto-modification/zod-without-dates.ts"],"names":[],"mappings":";;;AACA,6BAWa;AAwBN,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"}
@@ -25,12 +25,8 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
25
25
  profiles: z.ZodArray<z.ZodObject<{
26
26
  id: z.ZodString;
27
27
  shortId: z.ZodNumber;
28
- firstTimeMiExpo: z.ZodBoolean;
29
- username: z.ZodNullable<z.ZodString>;
30
- password: z.ZodNullable<z.ZodString>;
31
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
- isPhoneVerified: z.ZodBoolean;
33
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
28
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
29
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
34
30
  fullName: z.ZodString;
35
31
  firstName: z.ZodNullable<z.ZodString>;
36
32
  gender: z.ZodNullable<z.ZodString>;
@@ -48,8 +44,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
48
44
  updated_at: z.ZodDate;
49
45
  }, "strip", z.ZodTypeAny, {
50
46
  id: string;
51
- username: string | null;
52
- password: string | null;
53
47
  phoneNumber: string;
54
48
  secondaryPhoneNumber: string | null;
55
49
  fullName: string;
@@ -58,8 +52,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
58
52
  created_at: Date;
59
53
  updated_at: Date;
60
54
  shortId: number;
61
- firstTimeMiExpo: boolean;
62
- isPhoneVerified: boolean;
63
55
  firstName: string | null;
64
56
  gender: string | null;
65
57
  birthDate: Date | null;
@@ -72,8 +64,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
72
64
  movedToTrashDate: Date | null;
73
65
  }, {
74
66
  id: string;
75
- username: string | null;
76
- password: string | null;
77
67
  phoneNumber: string;
78
68
  secondaryPhoneNumber: string | null;
79
69
  fullName: string;
@@ -82,8 +72,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
82
72
  created_at: Date;
83
73
  updated_at: Date;
84
74
  shortId: number;
85
- firstTimeMiExpo: boolean;
86
- isPhoneVerified: boolean;
87
75
  firstName: string | null;
88
76
  gender: string | null;
89
77
  birthDate: string | null;
@@ -98,8 +86,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
98
86
  }, "strip", z.ZodTypeAny, {
99
87
  profiles: {
100
88
  id: string;
101
- username: string | null;
102
- password: string | null;
103
89
  phoneNumber: string;
104
90
  secondaryPhoneNumber: string | null;
105
91
  fullName: string;
@@ -108,8 +94,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
108
94
  created_at: Date;
109
95
  updated_at: Date;
110
96
  shortId: number;
111
- firstTimeMiExpo: boolean;
112
- isPhoneVerified: boolean;
113
97
  firstName: string | null;
114
98
  gender: string | null;
115
99
  birthDate: Date | null;
@@ -124,8 +108,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
124
108
  }, {
125
109
  profiles: {
126
110
  id: string;
127
- username: string | null;
128
- password: string | null;
129
111
  phoneNumber: string;
130
112
  secondaryPhoneNumber: string | null;
131
113
  fullName: string;
@@ -134,8 +116,6 @@ export declare const massiveAllocationResponseSchema: z.ZodObject<{
134
116
  created_at: Date;
135
117
  updated_at: Date;
136
118
  shortId: number;
137
- firstTimeMiExpo: boolean;
138
- isPhoneVerified: boolean;
139
119
  firstName: string | null;
140
120
  gender: string | null;
141
121
  birthDate: string | null;
@@ -152,16 +132,12 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
152
132
  profiles: z.ZodArray<z.ZodObject<{
153
133
  id: z.ZodString;
154
134
  shortId: z.ZodNumber;
155
- firstTimeMiExpo: z.ZodBoolean;
156
- username: z.ZodNullable<z.ZodString>;
157
- password: z.ZodNullable<z.ZodString>;
158
- phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
159
- isPhoneVerified: z.ZodBoolean;
160
- secondaryPhoneNumber: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
135
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
136
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
161
137
  fullName: z.ZodString;
162
138
  firstName: z.ZodNullable<z.ZodString>;
163
139
  gender: z.ZodNullable<z.ZodString>;
164
- birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodString>>;
140
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
165
141
  profilePictureUrl: z.ZodNullable<z.ZodString>;
166
142
  instagram: z.ZodNullable<z.ZodString>;
167
143
  mail: z.ZodNullable<z.ZodString>;
@@ -175,8 +151,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
175
151
  updated_at: z.ZodString;
176
152
  }, z.UnknownKeysParam, z.ZodTypeAny, {
177
153
  id: string;
178
- username: string | null;
179
- password: string | null;
180
154
  phoneNumber: string;
181
155
  secondaryPhoneNumber: string | null;
182
156
  fullName: string;
@@ -185,11 +159,9 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
185
159
  created_at: string;
186
160
  updated_at: string;
187
161
  shortId: number;
188
- firstTimeMiExpo: boolean;
189
- isPhoneVerified: boolean;
190
162
  firstName: string | null;
191
163
  gender: string | null;
192
- birthDate: string | null;
164
+ birthDate: Date | null;
193
165
  instagram: string | null;
194
166
  dni: string | null;
195
167
  alternativeNames: string[];
@@ -199,8 +171,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
199
171
  movedToTrashDate: string | null;
200
172
  }, {
201
173
  id: string;
202
- username: string | null;
203
- password: string | null;
204
174
  phoneNumber: string;
205
175
  secondaryPhoneNumber: string | null;
206
176
  fullName: string;
@@ -209,8 +179,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
209
179
  created_at: string;
210
180
  updated_at: string;
211
181
  shortId: number;
212
- firstTimeMiExpo: boolean;
213
- isPhoneVerified: boolean;
214
182
  firstName: string | null;
215
183
  gender: string | null;
216
184
  birthDate: string | null;
@@ -225,8 +193,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
225
193
  }, z.UnknownKeysParam, z.ZodTypeAny, {
226
194
  profiles: {
227
195
  id: string;
228
- username: string | null;
229
- password: string | null;
230
196
  phoneNumber: string;
231
197
  secondaryPhoneNumber: string | null;
232
198
  fullName: string;
@@ -235,11 +201,9 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
235
201
  created_at: string;
236
202
  updated_at: string;
237
203
  shortId: number;
238
- firstTimeMiExpo: boolean;
239
- isPhoneVerified: boolean;
240
204
  firstName: string | null;
241
205
  gender: string | null;
242
- birthDate: string | null;
206
+ birthDate: Date | null;
243
207
  instagram: string | null;
244
208
  dni: string | null;
245
209
  alternativeNames: string[];
@@ -251,8 +215,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
251
215
  }, {
252
216
  profiles: {
253
217
  id: string;
254
- username: string | null;
255
- password: string | null;
256
218
  phoneNumber: string;
257
219
  secondaryPhoneNumber: string | null;
258
220
  fullName: string;
@@ -261,8 +223,6 @@ declare const MassiveAllocationResponseDto_base: import("@anatine/zod-nestjs").Z
261
223
  created_at: string;
262
224
  updated_at: string;
263
225
  shortId: number;
264
- firstTimeMiExpo: boolean;
265
- isPhoneVerified: boolean;
266
226
  firstName: string | null;
267
227
  gender: string | null;
268
228
  birthDate: string | null;
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MassiveAllocationResponseDto = exports.massiveAllocationResponseSchema = exports.MassiveAllocationDto = exports.massiveAllocationSchema = void 0;
7
- const profile_schema_1 = require("../../schema/profile.schema");
7
+ const profile_dto_1 = require("../../profile/dto/profile.dto");
8
8
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
9
  const tag_dto_1 = require("./tag.dto");
10
10
  const zod_1 = __importDefault(require("zod"));
11
11
  exports.massiveAllocationSchema = zod_1.default.object({
12
12
  tagIds: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
13
- profileIds: zod_1.default.array(profile_schema_1.profileSchema.shape.id),
13
+ profileIds: zod_1.default.array(profile_dto_1.profileSchema.shape.id),
14
14
  });
15
15
  class MassiveAllocationDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationSchema) {
16
16
  }
17
17
  exports.MassiveAllocationDto = MassiveAllocationDto;
18
18
  exports.massiveAllocationResponseSchema = zod_1.default.object({
19
- profiles: zod_1.default.array(profile_schema_1.profileSchema),
19
+ profiles: zod_1.default.array(profile_dto_1.profileSchema),
20
20
  });
21
21
  class MassiveAllocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationResponseSchema) {
22
22
  }