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

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 (62) hide show
  1. package/dist/src/auth/dto/login-mi-expo.dto.js +1 -1
  2. package/dist/src/exports.d.ts +1 -0
  3. package/dist/src/exports.js +1 -0
  4. package/dist/src/message/dto/non-read-messages.dto.js +1 -1
  5. package/dist/src/message/dto/send-message-to-phone.dto.js +1 -1
  6. package/dist/src/otp/dto/send-otp.dto.js +1 -1
  7. package/dist/src/otp/dto/verify-otp.dto.js +1 -1
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +468 -82
  9. package/dist/src/profile/dto/create-profile.dto.js +80 -4
  10. package/dist/src/profile/dto/delete-profile.dto.d.ts +73 -0
  11. package/dist/src/profile/dto/delete-profile.dto.js +4 -3
  12. package/dist/src/profile/dto/find-all-profile.dto.d.ts +266 -39
  13. package/dist/src/profile/dto/find-all-profile.dto.js +19 -3
  14. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +440 -79
  15. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +26 -4
  16. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +309 -58
  17. package/dist/src/profile/dto/find-by-id-profile.dto.js +21 -3
  18. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +73 -0
  19. package/dist/src/profile/dto/find-by-phone-number.dto.js +4 -3
  20. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +223 -35
  21. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +13 -3
  22. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +257 -38
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.js +18 -3
  24. package/dist/src/profile/dto/find-trash.dto.d.ts +75 -11
  25. package/dist/src/profile/dto/find-trash.dto.js +18 -3
  26. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +443 -58
  27. package/dist/src/profile/dto/find-with-active-chat.dto.js +20 -3
  28. package/dist/src/profile/dto/profile.dto.js +1 -1
  29. package/dist/src/profile/dto/update-profile.dto.d.ts +244 -60
  30. package/dist/src/profile/dto/update-profile.dto.js +48 -4
  31. package/dist/src/profile/exports.d.ts +12 -12
  32. package/dist/src/profile/exports.js +12 -12
  33. package/dist/src/schema/exports.d.ts +1 -0
  34. package/dist/src/schema/exports.js +18 -0
  35. package/dist/src/{profile/schema → schema}/profile.schema.js +1 -1
  36. package/dist/src/tag/dto/massive-allocation.dto.js +1 -1
  37. package/dist/src/tag/dto/massive-deallocation.dto.js +1 -1
  38. package/dist/types/schema.d.ts +0 -4
  39. package/package.json +23 -25
  40. package/dist/src/profile/schema/create-profile.schema.d.ts +0 -405
  41. package/dist/src/profile/schema/create-profile.schema.js +0 -83
  42. package/dist/src/profile/schema/delete-profile.schema.d.ts +0 -73
  43. package/dist/src/profile/schema/delete-profile.schema.js +0 -6
  44. package/dist/src/profile/schema/find-all-profile.schema.d.ts +0 -227
  45. package/dist/src/profile/schema/find-all-profile.schema.js +0 -21
  46. package/dist/src/profile/schema/find-by-date-range-profile.schema.d.ts +0 -361
  47. package/dist/src/profile/schema/find-by-date-range-profile.schema.js +0 -27
  48. package/dist/src/profile/schema/find-by-id-profile.schema.d.ts +0 -251
  49. package/dist/src/profile/schema/find-by-id-profile.schema.js +0 -23
  50. package/dist/src/profile/schema/find-by-phone-number.schema.d.ts +0 -73
  51. package/dist/src/profile/schema/find-by-phone-number.schema.js +0 -6
  52. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.d.ts +0 -188
  53. package/dist/src/profile/schema/find-by-tag-groups-profile.schema.js +0 -15
  54. package/dist/src/profile/schema/find-by-tags-profile.schema.d.ts +0 -219
  55. package/dist/src/profile/schema/find-by-tags-profile.schema.js +0 -20
  56. package/dist/src/profile/schema/find-trash.schema.d.ts +0 -64
  57. package/dist/src/profile/schema/find-trash.schema.js +0 -20
  58. package/dist/src/profile/schema/find-with-active-chat.schema.d.ts +0 -385
  59. package/dist/src/profile/schema/find-with-active-chat.schema.js +0 -22
  60. package/dist/src/profile/schema/update-profile.schema.d.ts +0 -196
  61. package/dist/src/profile/schema/update-profile.schema.js +0 -51
  62. /package/dist/src/{profile/schema → schema}/profile.schema.d.ts +0 -0
@@ -1,41 +1,426 @@
1
- declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
2
- profiles: import("zod").ZodArray<import("zod").ZodObject<{
3
- id: import("zod").ZodString;
4
- shortId: import("zod").ZodNumber;
5
- firstTimeMiExpo: import("zod").ZodBoolean;
6
- username: import("zod").ZodNullable<import("zod").ZodString>;
7
- password: import("zod").ZodNullable<import("zod").ZodString>;
8
- phoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
9
- isPhoneVerified: import("zod").ZodBoolean;
10
- secondaryPhoneNumber: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodNullable<import("zod").ZodString>, string | null, string | null>, string | null, string | null>;
11
- fullName: import("zod").ZodString;
12
- firstName: import("zod").ZodNullable<import("zod").ZodString>;
13
- gender: import("zod").ZodNullable<import("zod").ZodString>;
14
- birthDate: import("zod").ZodNullable<import("zod").ZodPipeline<import("zod").ZodString, import("zod").ZodDate>>;
15
- profilePictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
16
- instagram: import("zod").ZodNullable<import("zod").ZodString>;
17
- mail: import("zod").ZodNullable<import("zod").ZodString>;
18
- dni: import("zod").ZodNullable<import("zod").ZodString>;
19
- alternativeNames: import("zod").ZodArray<import("zod").ZodString, "many">;
20
- birthLocationId: import("zod").ZodNullable<import("zod").ZodString>;
21
- residenceLocationId: import("zod").ZodNullable<import("zod").ZodString>;
22
- isInTrash: import("zod").ZodBoolean;
23
- movedToTrashDate: import("zod").ZodNullable<import("zod").ZodString>;
24
- created_at: import("zod").ZodString;
25
- updated_at: import("zod").ZodString;
26
- tags: import("zod").ZodArray<import("zod").ZodObject<{
27
- id: import("zod").ZodString;
28
- name: import("zod").ZodString;
29
- groupId: import("zod").ZodString;
30
- type: import("zod").ZodNativeEnum<{
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
+ }>;
386
+ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
387
+ profiles: z.ZodArray<z.ZodObject<{
388
+ id: z.ZodString;
389
+ 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.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>, string | null, string | null>;
396
+ fullName: z.ZodString;
397
+ firstName: z.ZodNullable<z.ZodString>;
398
+ gender: z.ZodNullable<z.ZodString>;
399
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
400
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
401
+ instagram: z.ZodNullable<z.ZodString>;
402
+ mail: z.ZodNullable<z.ZodString>;
403
+ dni: z.ZodNullable<z.ZodString>;
404
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
405
+ birthLocationId: z.ZodNullable<z.ZodString>;
406
+ residenceLocationId: z.ZodNullable<z.ZodString>;
407
+ isInTrash: z.ZodBoolean;
408
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
409
+ created_at: z.ZodString;
410
+ updated_at: z.ZodString;
411
+ tags: z.ZodArray<z.ZodObject<{
412
+ id: z.ZodString;
413
+ name: z.ZodString;
414
+ groupId: z.ZodString;
415
+ type: z.ZodNativeEnum<{
31
416
  PROFILE: "PROFILE";
32
417
  EVENT: "EVENT";
33
418
  PARTICIPANT: "PARTICIPANT";
34
419
  NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
35
420
  }>;
36
- created_at: import("zod").ZodString;
37
- updated_at: import("zod").ZodString;
38
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
421
+ created_at: z.ZodString;
422
+ updated_at: z.ZodString;
423
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
39
424
  id: string;
40
425
  name: string;
41
426
  type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
@@ -50,24 +435,24 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
50
435
  updated_at: string;
51
436
  groupId: string;
52
437
  }>, "many">;
53
- inChat: import("zod").ZodBoolean;
54
- messages: import("zod").ZodArray<import("zod").ZodObject<{
55
- message: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
56
- id: import("zod").ZodString;
57
- from: import("zod").ZodOptional<import("zod").ZodString>;
58
- to: import("zod").ZodOptional<import("zod").ZodString>;
59
- timestamp: import("zod").ZodString;
438
+ inChat: z.ZodBoolean;
439
+ messages: z.ZodArray<z.ZodObject<{
440
+ message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
441
+ id: z.ZodString;
442
+ from: z.ZodOptional<z.ZodString>;
443
+ to: z.ZodOptional<z.ZodString>;
444
+ timestamp: z.ZodString;
60
445
  }, {
61
- text: import("zod").ZodObject<{
62
- body: import("zod").ZodString;
63
- }, "strip", import("zod").ZodTypeAny, {
446
+ text: z.ZodObject<{
447
+ body: z.ZodString;
448
+ }, "strip", z.ZodTypeAny, {
64
449
  body: string;
65
450
  }, {
66
451
  body: string;
67
452
  }>;
68
453
  }>, {
69
- type: import("zod").ZodLiteral<"text">;
70
- }>, "strip", import("zod").ZodTypeAny, {
454
+ type: z.ZodLiteral<"text">;
455
+ }>, "strip", z.ZodTypeAny, {
71
456
  id: string;
72
457
  type: "text";
73
458
  text: {
@@ -85,16 +470,16 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
85
470
  timestamp: string;
86
471
  from?: string | undefined;
87
472
  to?: string | undefined;
88
- }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
89
- id: import("zod").ZodString;
90
- from: import("zod").ZodOptional<import("zod").ZodString>;
91
- to: import("zod").ZodOptional<import("zod").ZodString>;
92
- timestamp: import("zod").ZodString;
473
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
474
+ id: z.ZodString;
475
+ from: z.ZodOptional<z.ZodString>;
476
+ to: z.ZodOptional<z.ZodString>;
477
+ timestamp: z.ZodString;
93
478
  }, {
94
- templateName: import("zod").ZodString;
479
+ templateName: z.ZodString;
95
480
  }>, {
96
- type: import("zod").ZodLiteral<"template">;
97
- }>, "strip", import("zod").ZodTypeAny, {
481
+ type: z.ZodLiteral<"template">;
482
+ }>, "strip", z.ZodTypeAny, {
98
483
  id: string;
99
484
  type: "template";
100
485
  timestamp: string;
@@ -109,13 +494,13 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
109
494
  from?: string | undefined;
110
495
  to?: string | undefined;
111
496
  }>]>;
112
- created_at: import("zod").ZodString;
113
- state: import("zod").ZodNativeEnum<{
497
+ created_at: z.ZodString;
498
+ state: z.ZodNativeEnum<{
114
499
  SENT: "SENT";
115
500
  RECEIVED: "RECEIVED";
116
501
  SEEN: "SEEN";
117
502
  }>;
118
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
503
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
119
504
  message: {
120
505
  id: string;
121
506
  type: "text";
@@ -156,7 +541,7 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
156
541
  created_at: string;
157
542
  state: "SENT" | "RECEIVED" | "SEEN";
158
543
  }>, "many">;
159
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
544
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
160
545
  id: string;
161
546
  username: string | null;
162
547
  password: string | null;
@@ -265,7 +650,7 @@ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").
265
650
  }[];
266
651
  inChat: boolean;
267
652
  }>, "many">;
268
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
653
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
269
654
  profiles: {
270
655
  id: string;
271
656
  username: string | null;
@@ -1,9 +1,26 @@
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.FindWithActiveChatResponseDto = void 0;
4
- const find_with_active_chat_schema_1 = require("../schema/find-with-active-chat.schema");
6
+ exports.FindWithActiveChatResponseDto = exports.findWithActiveChatResponseSchema = void 0;
7
+ const message_dto_1 = require("../../message/dto/message.dto");
8
+ const profile_schema_1 = require("../../schema/profile.schema");
5
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
- class FindWithActiveChatResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(find_with_active_chat_schema_1.findWithActiveChatResponseSchema) {
10
+ const tag_dto_1 = require("../../tag/dto/tag.dto");
11
+ const zod_1 = __importDefault(require("zod"));
12
+ exports.findWithActiveChatResponseSchema = zod_1.default.object({
13
+ profiles: zod_1.default.array(profile_schema_1.profileSchema.merge(zod_1.default.object({
14
+ tags: zod_1.default.array(tag_dto_1.tagSchema),
15
+ inChat: zod_1.default.boolean(),
16
+ messages: zod_1.default.array(message_dto_1.messageSchema.pick({
17
+ state: true,
18
+ message: true,
19
+ created_at: true,
20
+ })),
21
+ }))),
22
+ });
23
+ class FindWithActiveChatResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findWithActiveChatResponseSchema) {
7
24
  }
8
25
  exports.FindWithActiveChatResponseDto = FindWithActiveChatResponseDto;
9
26
  //# sourceMappingURL=find-with-active-chat.dto.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProfileDto = void 0;
4
- const profile_schema_1 = require("../schema/profile.schema");
4
+ const profile_schema_1 = require("../../schema/profile.schema");
5
5
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
6
  class ProfileDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(profile_schema_1.profileSchema) {
7
7
  }