expo-backend-types 0.30.0-EXPO-308-auth.12 → 0.30.0-EXPO-308-auth.14

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 (60) hide show
  1. package/dist/src/auth/dto/login-mi-expo.dto.js +2 -2
  2. package/dist/src/exports.d.ts +0 -1
  3. package/dist/src/exports.js +0 -1
  4. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  5. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  6. package/dist/src/otp/dto/send-otp.dto.js +2 -2
  7. package/dist/src/otp/dto/verify-otp.dto.js +3 -3
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +82 -468
  9. package/dist/src/profile/dto/create-profile.dto.js +4 -80
  10. package/dist/src/profile/dto/delete-profile.dto.d.ts +0 -73
  11. package/dist/src/profile/dto/delete-profile.dto.js +3 -4
  12. package/dist/src/profile/dto/find-all-profile.dto.d.ts +39 -266
  13. package/dist/src/profile/dto/find-all-profile.dto.js +3 -19
  14. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +79 -440
  15. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +4 -26
  16. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +58 -309
  17. package/dist/src/profile/dto/find-by-id-profile.dto.js +3 -21
  18. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +0 -73
  19. package/dist/src/profile/dto/find-by-phone-number.dto.js +3 -4
  20. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +35 -223
  21. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +3 -13
  22. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +38 -257
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.js +3 -18
  24. package/dist/src/profile/dto/find-trash.dto.d.ts +11 -75
  25. package/dist/src/profile/dto/find-trash.dto.js +3 -18
  26. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +58 -443
  27. package/dist/src/profile/dto/find-with-active-chat.dto.js +3 -20
  28. package/dist/src/profile/dto/profile.dto.js +2 -2
  29. package/dist/src/profile/dto/update-profile.dto.d.ts +60 -244
  30. package/dist/src/profile/dto/update-profile.dto.js +4 -48
  31. package/dist/src/profile/exports.d.ts +12 -12
  32. package/dist/src/profile/exports.js +12 -12
  33. package/dist/src/profile/schema/create-profile.schema.d.ts +405 -0
  34. package/dist/src/profile/schema/create-profile.schema.js +83 -0
  35. package/dist/src/profile/schema/delete-profile.schema.d.ts +73 -0
  36. package/dist/src/profile/schema/delete-profile.schema.js +6 -0
  37. package/dist/src/profile/schema/find-all-profile.schema.d.ts +227 -0
  38. package/dist/src/profile/schema/find-all-profile.schema.js +21 -0
  39. package/dist/src/profile/schema/find-by-date-range-profile.schema.d.ts +361 -0
  40. package/dist/src/profile/schema/find-by-date-range-profile.schema.js +27 -0
  41. package/dist/src/profile/schema/find-by-id-profile.schema.d.ts +251 -0
  42. package/dist/src/profile/schema/find-by-id-profile.schema.js +23 -0
  43. package/dist/src/profile/schema/find-by-phone-number.schema.d.ts +73 -0
  44. package/dist/src/profile/schema/find-by-phone-number.schema.js +6 -0
  45. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.d.ts +188 -0
  46. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.js +15 -0
  47. package/dist/src/profile/schema/find-by-tags-profile.schema.d.ts +219 -0
  48. package/dist/src/profile/schema/find-by-tags-profile.schema.js +20 -0
  49. package/dist/src/profile/schema/find-trash.schema.d.ts +64 -0
  50. package/dist/src/profile/schema/find-trash.schema.js +20 -0
  51. package/dist/src/profile/schema/find-with-active-chat.schema.d.ts +385 -0
  52. package/dist/src/profile/schema/find-with-active-chat.schema.js +22 -0
  53. package/dist/src/{prisma/dtos.dto.js → profile/schema/profile.schema.js} +2 -2
  54. package/dist/src/profile/schema/update-profile.schema.d.ts +196 -0
  55. package/dist/src/profile/schema/update-profile.schema.js +51 -0
  56. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  57. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  58. package/dist/types/schema.d.ts +4 -0
  59. package/package.json +4 -3
  60. /package/dist/src/{prisma/dtos.dto.d.ts → profile/schema/profile.schema.d.ts} +0 -0
@@ -0,0 +1,385 @@
1
+ import z from 'zod';
2
+ export declare const findWithActiveChatResponseSchema: z.ZodObject<{
3
+ profiles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodString;
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.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
12
+ fullName: z.ZodString;
13
+ firstName: z.ZodNullable<z.ZodString>;
14
+ gender: z.ZodNullable<z.ZodString>;
15
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
16
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
17
+ instagram: z.ZodNullable<z.ZodString>;
18
+ mail: z.ZodNullable<z.ZodString>;
19
+ dni: z.ZodNullable<z.ZodString>;
20
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
21
+ birthLocationId: z.ZodNullable<z.ZodString>;
22
+ residenceLocationId: z.ZodNullable<z.ZodString>;
23
+ isInTrash: z.ZodBoolean;
24
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
25
+ created_at: z.ZodDate;
26
+ updated_at: z.ZodDate;
27
+ }, {
28
+ tags: z.ZodArray<z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ groupId: z.ZodString;
32
+ type: z.ZodNativeEnum<{
33
+ PROFILE: "PROFILE";
34
+ EVENT: "EVENT";
35
+ PARTICIPANT: "PARTICIPANT";
36
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
37
+ }>;
38
+ created_at: z.ZodDate;
39
+ updated_at: z.ZodDate;
40
+ }, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ name: string;
43
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
44
+ created_at: Date;
45
+ updated_at: Date;
46
+ groupId: string;
47
+ }, {
48
+ id: string;
49
+ name: string;
50
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
51
+ created_at: Date;
52
+ updated_at: Date;
53
+ groupId: string;
54
+ }>, "many">;
55
+ inChat: z.ZodBoolean;
56
+ messages: z.ZodArray<z.ZodObject<Pick<{
57
+ id: z.ZodString;
58
+ wamId: z.ZodString;
59
+ message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
60
+ id: z.ZodString;
61
+ from: z.ZodOptional<z.ZodString>;
62
+ to: z.ZodOptional<z.ZodString>;
63
+ timestamp: z.ZodString;
64
+ }, {
65
+ text: z.ZodObject<{
66
+ body: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ body: string;
69
+ }, {
70
+ body: string;
71
+ }>;
72
+ }>, {
73
+ type: z.ZodLiteral<"text">;
74
+ }>, "strip", z.ZodTypeAny, {
75
+ id: string;
76
+ type: "text";
77
+ text: {
78
+ body: string;
79
+ };
80
+ timestamp: string;
81
+ from?: string | undefined;
82
+ to?: string | undefined;
83
+ }, {
84
+ id: string;
85
+ type: "text";
86
+ text: {
87
+ body: string;
88
+ };
89
+ timestamp: string;
90
+ from?: string | undefined;
91
+ to?: string | undefined;
92
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
93
+ id: z.ZodString;
94
+ from: z.ZodOptional<z.ZodString>;
95
+ to: z.ZodOptional<z.ZodString>;
96
+ timestamp: z.ZodString;
97
+ }, {
98
+ templateName: z.ZodString;
99
+ }>, {
100
+ type: z.ZodLiteral<"template">;
101
+ }>, "strip", z.ZodTypeAny, {
102
+ id: string;
103
+ type: "template";
104
+ timestamp: string;
105
+ templateName: string;
106
+ from?: string | undefined;
107
+ to?: string | undefined;
108
+ }, {
109
+ id: string;
110
+ type: "template";
111
+ timestamp: string;
112
+ templateName: string;
113
+ from?: string | undefined;
114
+ to?: string | undefined;
115
+ }>]>;
116
+ state: z.ZodNativeEnum<{
117
+ SENT: "SENT";
118
+ RECEIVED: "RECEIVED";
119
+ SEEN: "SEEN";
120
+ }>;
121
+ created_at: z.ZodDate;
122
+ updated_at: z.ZodDate;
123
+ }, "message" | "created_at" | "state">, "strip", z.ZodTypeAny, {
124
+ message: {
125
+ id: string;
126
+ type: "text";
127
+ text: {
128
+ body: string;
129
+ };
130
+ timestamp: string;
131
+ from?: string | undefined;
132
+ to?: string | undefined;
133
+ } | {
134
+ id: string;
135
+ type: "template";
136
+ timestamp: string;
137
+ templateName: string;
138
+ from?: string | undefined;
139
+ to?: string | undefined;
140
+ };
141
+ created_at: Date;
142
+ state: "SENT" | "RECEIVED" | "SEEN";
143
+ }, {
144
+ message: {
145
+ id: string;
146
+ type: "text";
147
+ text: {
148
+ body: string;
149
+ };
150
+ timestamp: string;
151
+ from?: string | undefined;
152
+ to?: string | undefined;
153
+ } | {
154
+ id: string;
155
+ type: "template";
156
+ timestamp: string;
157
+ templateName: string;
158
+ from?: string | undefined;
159
+ to?: string | undefined;
160
+ };
161
+ created_at: Date;
162
+ state: "SENT" | "RECEIVED" | "SEEN";
163
+ }>, "many">;
164
+ }>, "strip", z.ZodTypeAny, {
165
+ id: string;
166
+ username: string | null;
167
+ password: string | null;
168
+ phoneNumber: string;
169
+ secondaryPhoneNumber: string | null;
170
+ fullName: string;
171
+ profilePictureUrl: string | null;
172
+ mail: string | null;
173
+ created_at: Date;
174
+ updated_at: Date;
175
+ shortId: number;
176
+ firstTimeMiExpo: boolean;
177
+ isPhoneVerified: boolean;
178
+ firstName: string | null;
179
+ gender: string | null;
180
+ birthDate: Date | null;
181
+ instagram: string | null;
182
+ dni: string | null;
183
+ alternativeNames: string[];
184
+ birthLocationId: string | null;
185
+ residenceLocationId: string | null;
186
+ isInTrash: boolean;
187
+ movedToTrashDate: Date | null;
188
+ messages: {
189
+ message: {
190
+ id: string;
191
+ type: "text";
192
+ text: {
193
+ body: string;
194
+ };
195
+ timestamp: string;
196
+ from?: string | undefined;
197
+ to?: string | undefined;
198
+ } | {
199
+ id: string;
200
+ type: "template";
201
+ timestamp: string;
202
+ templateName: string;
203
+ from?: string | undefined;
204
+ to?: string | undefined;
205
+ };
206
+ created_at: Date;
207
+ state: "SENT" | "RECEIVED" | "SEEN";
208
+ }[];
209
+ tags: {
210
+ id: string;
211
+ name: string;
212
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
213
+ created_at: Date;
214
+ updated_at: Date;
215
+ groupId: string;
216
+ }[];
217
+ inChat: boolean;
218
+ }, {
219
+ id: string;
220
+ username: string | null;
221
+ password: string | null;
222
+ phoneNumber: string;
223
+ secondaryPhoneNumber: string | null;
224
+ fullName: string;
225
+ profilePictureUrl: string | null;
226
+ mail: string | null;
227
+ created_at: Date;
228
+ updated_at: Date;
229
+ shortId: number;
230
+ firstTimeMiExpo: boolean;
231
+ isPhoneVerified: boolean;
232
+ firstName: string | null;
233
+ gender: string | null;
234
+ birthDate: string | null;
235
+ instagram: string | null;
236
+ dni: string | null;
237
+ alternativeNames: string[];
238
+ birthLocationId: string | null;
239
+ residenceLocationId: string | null;
240
+ isInTrash: boolean;
241
+ movedToTrashDate: Date | null;
242
+ messages: {
243
+ message: {
244
+ id: string;
245
+ type: "text";
246
+ text: {
247
+ body: string;
248
+ };
249
+ timestamp: string;
250
+ from?: string | undefined;
251
+ to?: string | undefined;
252
+ } | {
253
+ id: string;
254
+ type: "template";
255
+ timestamp: string;
256
+ templateName: string;
257
+ from?: string | undefined;
258
+ to?: string | undefined;
259
+ };
260
+ created_at: Date;
261
+ state: "SENT" | "RECEIVED" | "SEEN";
262
+ }[];
263
+ tags: {
264
+ id: string;
265
+ name: string;
266
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
267
+ created_at: Date;
268
+ updated_at: Date;
269
+ groupId: string;
270
+ }[];
271
+ inChat: boolean;
272
+ }>, "many">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ profiles: {
275
+ id: string;
276
+ username: string | null;
277
+ password: string | null;
278
+ phoneNumber: string;
279
+ secondaryPhoneNumber: string | null;
280
+ fullName: string;
281
+ profilePictureUrl: string | null;
282
+ mail: string | null;
283
+ created_at: Date;
284
+ updated_at: Date;
285
+ shortId: number;
286
+ firstTimeMiExpo: boolean;
287
+ isPhoneVerified: boolean;
288
+ firstName: string | null;
289
+ gender: string | null;
290
+ birthDate: Date | null;
291
+ instagram: string | null;
292
+ dni: string | null;
293
+ alternativeNames: string[];
294
+ birthLocationId: string | null;
295
+ residenceLocationId: string | null;
296
+ isInTrash: boolean;
297
+ movedToTrashDate: Date | null;
298
+ messages: {
299
+ message: {
300
+ id: string;
301
+ type: "text";
302
+ text: {
303
+ body: string;
304
+ };
305
+ timestamp: string;
306
+ from?: string | undefined;
307
+ to?: string | undefined;
308
+ } | {
309
+ id: string;
310
+ type: "template";
311
+ timestamp: string;
312
+ templateName: string;
313
+ from?: string | undefined;
314
+ to?: string | undefined;
315
+ };
316
+ created_at: Date;
317
+ state: "SENT" | "RECEIVED" | "SEEN";
318
+ }[];
319
+ tags: {
320
+ id: string;
321
+ name: string;
322
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
323
+ created_at: Date;
324
+ updated_at: Date;
325
+ groupId: string;
326
+ }[];
327
+ inChat: boolean;
328
+ }[];
329
+ }, {
330
+ profiles: {
331
+ id: string;
332
+ username: string | null;
333
+ password: string | null;
334
+ phoneNumber: string;
335
+ secondaryPhoneNumber: string | null;
336
+ fullName: string;
337
+ profilePictureUrl: string | null;
338
+ mail: string | null;
339
+ created_at: Date;
340
+ updated_at: Date;
341
+ shortId: number;
342
+ firstTimeMiExpo: boolean;
343
+ isPhoneVerified: boolean;
344
+ firstName: string | null;
345
+ gender: string | null;
346
+ birthDate: string | null;
347
+ instagram: string | null;
348
+ dni: string | null;
349
+ alternativeNames: string[];
350
+ birthLocationId: string | null;
351
+ residenceLocationId: string | null;
352
+ isInTrash: boolean;
353
+ movedToTrashDate: Date | null;
354
+ messages: {
355
+ message: {
356
+ id: string;
357
+ type: "text";
358
+ text: {
359
+ body: string;
360
+ };
361
+ timestamp: string;
362
+ from?: string | undefined;
363
+ to?: string | undefined;
364
+ } | {
365
+ id: string;
366
+ type: "template";
367
+ timestamp: string;
368
+ templateName: string;
369
+ from?: string | undefined;
370
+ to?: string | undefined;
371
+ };
372
+ created_at: Date;
373
+ state: "SENT" | "RECEIVED" | "SEEN";
374
+ }[];
375
+ tags: {
376
+ id: string;
377
+ name: string;
378
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
379
+ created_at: Date;
380
+ updated_at: Date;
381
+ groupId: string;
382
+ }[];
383
+ inChat: boolean;
384
+ }[];
385
+ }>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.findWithActiveChatResponseSchema = void 0;
7
+ const message_dto_1 = require("../../message/dto/message.dto");
8
+ const profile_schema_1 = require("./profile.schema");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findWithActiveChatResponseSchema = zod_1.default.object({
12
+ profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
13
+ tags: zod_1.default.array(tag_dto_1.tagSchema),
14
+ inChat: zod_1.default.boolean(),
15
+ messages: zod_1.default.array(message_dto_1.messageSchema.pick({
16
+ state: true,
17
+ message: true,
18
+ created_at: true,
19
+ })),
20
+ }))),
21
+ });
22
+ //# sourceMappingURL=find-with-active-chat.schema.js.map
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.profileSchema = void 0;
30
- const translate_1 = require("../i18n/translate");
30
+ const translate_1 = require("../../i18n/translate");
31
31
  const libphonenumber_js_1 = __importStar(require("libphonenumber-js"));
32
32
  const zod_1 = __importDefault(require("zod"));
33
33
  function formatArgNumber(phoneNumber, value) {
@@ -130,4 +130,4 @@ exports.profileSchema = zod_1.default.object({
130
130
  created_at: zod_1.default.date(),
131
131
  updated_at: zod_1.default.date(),
132
132
  });
133
- //# sourceMappingURL=dtos.dto.js.map
133
+ //# sourceMappingURL=profile.schema.js.map
@@ -0,0 +1,196 @@
1
+ import z from 'zod';
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.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>>;
7
+ fullName: z.ZodOptional<z.ZodString>;
8
+ profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ mail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ gender: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ birthDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>>;
12
+ instagram: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ dni: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ alternativeNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ isInTrash: z.ZodOptional<z.ZodBoolean>;
16
+ movedToTrashDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
17
+ }, {
18
+ residence: z.ZodOptional<z.ZodObject<Pick<{
19
+ id: z.ZodString;
20
+ latitude: z.ZodNumber;
21
+ longitude: z.ZodNumber;
22
+ country: z.ZodString;
23
+ state: z.ZodString;
24
+ city: z.ZodString;
25
+ created_at: z.ZodDate;
26
+ updated_at: z.ZodDate;
27
+ }, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
28
+ latitude: number;
29
+ longitude: number;
30
+ state: string;
31
+ country: string;
32
+ city: string;
33
+ }, {
34
+ latitude: number;
35
+ longitude: number;
36
+ state: string;
37
+ country: string;
38
+ city: string;
39
+ }>>;
40
+ birth: z.ZodOptional<z.ZodObject<Pick<{
41
+ id: z.ZodString;
42
+ latitude: z.ZodNumber;
43
+ longitude: z.ZodNumber;
44
+ country: z.ZodString;
45
+ state: z.ZodString;
46
+ city: z.ZodString;
47
+ created_at: z.ZodDate;
48
+ updated_at: z.ZodDate;
49
+ }, "latitude" | "longitude" | "state" | "country" | "city">, "strip", z.ZodTypeAny, {
50
+ latitude: number;
51
+ longitude: number;
52
+ state: string;
53
+ country: string;
54
+ city: string;
55
+ }, {
56
+ latitude: number;
57
+ longitude: number;
58
+ state: string;
59
+ country: string;
60
+ city: string;
61
+ }>>;
62
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ }>, "strip", z.ZodTypeAny, {
64
+ username?: string | null | undefined;
65
+ password?: string | null | undefined;
66
+ phoneNumber?: string | undefined;
67
+ secondaryPhoneNumber?: string | null | undefined;
68
+ fullName?: string | undefined;
69
+ profilePictureUrl?: string | null | undefined;
70
+ mail?: string | null | undefined;
71
+ gender?: string | null | undefined;
72
+ birthDate?: Date | null | undefined;
73
+ instagram?: string | null | undefined;
74
+ dni?: string | null | undefined;
75
+ alternativeNames?: string[] | undefined;
76
+ isInTrash?: boolean | undefined;
77
+ movedToTrashDate?: Date | null | undefined;
78
+ tags?: string[] | undefined;
79
+ residence?: {
80
+ latitude: number;
81
+ longitude: number;
82
+ state: string;
83
+ country: string;
84
+ city: string;
85
+ } | undefined;
86
+ birth?: {
87
+ latitude: number;
88
+ longitude: number;
89
+ state: string;
90
+ country: string;
91
+ city: string;
92
+ } | undefined;
93
+ }, {
94
+ username?: string | null | undefined;
95
+ password?: string | null | undefined;
96
+ phoneNumber?: string | undefined;
97
+ secondaryPhoneNumber?: string | null | undefined;
98
+ fullName?: string | undefined;
99
+ profilePictureUrl?: string | null | undefined;
100
+ mail?: string | null | undefined;
101
+ gender?: string | null | undefined;
102
+ birthDate?: string | null | undefined;
103
+ instagram?: string | null | undefined;
104
+ dni?: string | null | undefined;
105
+ alternativeNames?: string[] | undefined;
106
+ isInTrash?: boolean | undefined;
107
+ movedToTrashDate?: Date | null | undefined;
108
+ tags?: string[] | undefined;
109
+ residence?: {
110
+ latitude: number;
111
+ longitude: number;
112
+ state: string;
113
+ country: string;
114
+ city: string;
115
+ } | undefined;
116
+ birth?: {
117
+ latitude: number;
118
+ longitude: number;
119
+ state: string;
120
+ country: string;
121
+ city: string;
122
+ } | undefined;
123
+ }>;
124
+ export declare const updateProfileResponseSchema: z.ZodObject<{
125
+ id: z.ZodString;
126
+ shortId: z.ZodNumber;
127
+ firstTimeMiExpo: z.ZodBoolean;
128
+ username: z.ZodNullable<z.ZodString>;
129
+ password: z.ZodNullable<z.ZodString>;
130
+ phoneNumber: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
131
+ isPhoneVerified: z.ZodBoolean;
132
+ secondaryPhoneNumber: z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
133
+ fullName: z.ZodString;
134
+ firstName: z.ZodNullable<z.ZodString>;
135
+ gender: z.ZodNullable<z.ZodString>;
136
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
137
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
138
+ instagram: z.ZodNullable<z.ZodString>;
139
+ mail: z.ZodNullable<z.ZodString>;
140
+ dni: z.ZodNullable<z.ZodString>;
141
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
142
+ birthLocationId: z.ZodNullable<z.ZodString>;
143
+ residenceLocationId: z.ZodNullable<z.ZodString>;
144
+ isInTrash: z.ZodBoolean;
145
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
146
+ created_at: z.ZodDate;
147
+ updated_at: z.ZodDate;
148
+ }, "strip", z.ZodTypeAny, {
149
+ id: string;
150
+ username: string | null;
151
+ password: string | null;
152
+ phoneNumber: string;
153
+ secondaryPhoneNumber: string | null;
154
+ fullName: string;
155
+ profilePictureUrl: string | null;
156
+ mail: string | null;
157
+ created_at: Date;
158
+ updated_at: Date;
159
+ shortId: number;
160
+ firstTimeMiExpo: boolean;
161
+ isPhoneVerified: boolean;
162
+ firstName: string | null;
163
+ gender: string | null;
164
+ birthDate: Date | null;
165
+ instagram: string | null;
166
+ dni: string | null;
167
+ alternativeNames: string[];
168
+ birthLocationId: string | null;
169
+ residenceLocationId: string | null;
170
+ isInTrash: boolean;
171
+ movedToTrashDate: Date | null;
172
+ }, {
173
+ id: string;
174
+ username: string | null;
175
+ password: string | null;
176
+ phoneNumber: string;
177
+ secondaryPhoneNumber: string | null;
178
+ fullName: string;
179
+ profilePictureUrl: string | null;
180
+ mail: string | null;
181
+ created_at: Date;
182
+ updated_at: Date;
183
+ shortId: number;
184
+ firstTimeMiExpo: boolean;
185
+ isPhoneVerified: boolean;
186
+ firstName: string | null;
187
+ gender: string | null;
188
+ birthDate: string | null;
189
+ instagram: string | null;
190
+ dni: string | null;
191
+ alternativeNames: string[];
192
+ birthLocationId: string | null;
193
+ residenceLocationId: string | null;
194
+ isInTrash: boolean;
195
+ movedToTrashDate: Date | null;
196
+ }>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.updateProfileResponseSchema = exports.updateProfileSchema = void 0;
7
+ const location_dto_1 = require("../../location/dto/location.dto");
8
+ const profile_schema_1 = require("./profile.schema");
9
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.updateProfileSchema = profile_schema_1.profileSchema
12
+ .pick({
13
+ alternativeNames: true,
14
+ birthDate: true,
15
+ dni: true,
16
+ fullName: true,
17
+ gender: true,
18
+ instagram: true,
19
+ mail: true,
20
+ phoneNumber: true,
21
+ profilePictureUrl: true,
22
+ secondaryPhoneNumber: true,
23
+ isInTrash: true,
24
+ movedToTrashDate: true,
25
+ username: true,
26
+ password: true,
27
+ })
28
+ .partial()
29
+ .merge(zod_1.default.object({
30
+ residence: location_dto_1.locationSchema
31
+ .pick({
32
+ city: true,
33
+ country: true,
34
+ latitude: true,
35
+ longitude: true,
36
+ state: true,
37
+ })
38
+ .optional(),
39
+ birth: location_dto_1.locationSchema
40
+ .pick({
41
+ city: true,
42
+ country: true,
43
+ latitude: true,
44
+ longitude: true,
45
+ state: true,
46
+ })
47
+ .optional(),
48
+ tags: zod_1.default.array(tag_dto_1.tagSchema.shape.id).optional(),
49
+ }));
50
+ exports.updateProfileResponseSchema = profile_schema_1.profileSchema;
51
+ //# sourceMappingURL=update-profile.schema.js.map
@@ -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 dtos_dto_1 = require("../../prisma/dtos.dto");
7
+ const profile_schema_1 = require("../../profile/schema/profile.schema");
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(dtos_dto_1.profileSchema.shape.id),
13
+ profileIds: zod_1.default.array(profile_schema_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(dtos_dto_1.profileSchema),
19
+ profiles: zod_1.default.array(profile_schema_1.profileSchema),
20
20
  });
21
21
  class MassiveAllocationResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.massiveAllocationResponseSchema) {
22
22
  }