expo-backend-types 0.10.0 → 0.11.0-EXPO-249-EB-Modelo.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ export * from './comment/exports';
5
5
  export * from './event-folder/exports';
6
6
  export * from './event/exports';
7
7
  export * from './location/exports';
8
+ export * from './message/exports';
8
9
  export * from './profile/exports';
9
10
  export * from './tag-group/exports';
10
11
  export * from './tag/exports';
@@ -21,6 +21,7 @@ __exportStar(require("./comment/exports"), exports);
21
21
  __exportStar(require("./event-folder/exports"), exports);
22
22
  __exportStar(require("./event/exports"), exports);
23
23
  __exportStar(require("./location/exports"), exports);
24
+ __exportStar(require("./message/exports"), exports);
24
25
  __exportStar(require("./profile/exports"), exports);
25
26
  __exportStar(require("./tag-group/exports"), exports);
26
27
  __exportStar(require("./tag/exports"), exports);
@@ -136,6 +136,11 @@ declare const _default: {
136
136
  readonly min: "El contenido debe tener al menos 1 caracter";
137
137
  };
138
138
  };
139
+ readonly message: {
140
+ readonly id: {
141
+ readonly uuid: "El ID debe ser un UUID";
142
+ };
143
+ };
139
144
  };
140
145
  readonly route: {
141
146
  readonly auth: {
@@ -335,6 +340,9 @@ declare const _default: {
335
340
  readonly 'find-trash': {
336
341
  readonly success: "Perfiles obtenidos";
337
342
  };
343
+ readonly 'find-all-with-active-chat': {
344
+ readonly success: "Perfiles obtenido";
345
+ };
338
346
  };
339
347
  };
340
348
  };
@@ -138,6 +138,11 @@ exports.default = {
138
138
  min: 'El contenido debe tener al menos 1 caracter',
139
139
  },
140
140
  },
141
+ message: {
142
+ id: {
143
+ uuid: 'El ID debe ser un UUID',
144
+ },
145
+ },
141
146
  },
142
147
  route: {
143
148
  auth: {
@@ -337,6 +342,9 @@ exports.default = {
337
342
  'find-trash': {
338
343
  success: 'Perfiles obtenidos',
339
344
  },
345
+ 'find-all-with-active-chat': {
346
+ success: 'Perfiles obtenido',
347
+ },
340
348
  },
341
349
  },
342
350
  };
@@ -1 +1 @@
1
- {"version":3,"file":"es.js","sourceRoot":"","sources":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AM,EAAE;gBACN,OAAO,EAAE,8BAA8B;gBACvC,WAAW,EAAE,sBAAsB;gBACnC,QAAQ,EAAE,sCAAsC;aACjD;YACD,oBAAoB,EAAE;gBACpB,OAAO,EAAE,oBAAoB;gBAC7B,cAAc,EAAE,gBAAgB;aACjC;YACD,sBAAsB,EAAE;gBACtB,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,sBAAsB;aACpC;YACD,YAAY,EAAE;gBACZ,OAAO,EAAE,oBAAoB;aAC9B;YACD,2BAA2B,EAAE;gBAC3B,OAAO,EAAE,mBAAmB;aAC7B;SACF;KACF;CACO,CAAC"}
@@ -0,0 +1,173 @@
1
+ import z from 'zod';
2
+ export declare const jsonMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ id: z.ZodString;
4
+ from: z.ZodOptional<z.ZodString>;
5
+ to: z.ZodOptional<z.ZodString>;
6
+ timestamp: z.ZodNumber;
7
+ }, {
8
+ text: z.ZodObject<{
9
+ body: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ body: string;
12
+ }, {
13
+ body: string;
14
+ }>;
15
+ }>, {
16
+ type: z.ZodLiteral<"text">;
17
+ }>, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ type: "text";
20
+ timestamp: number;
21
+ text: {
22
+ body: string;
23
+ };
24
+ from?: string | undefined;
25
+ to?: string | undefined;
26
+ }, {
27
+ id: string;
28
+ type: "text";
29
+ timestamp: number;
30
+ text: {
31
+ body: string;
32
+ };
33
+ from?: string | undefined;
34
+ to?: string | undefined;
35
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
36
+ id: z.ZodString;
37
+ from: z.ZodOptional<z.ZodString>;
38
+ to: z.ZodOptional<z.ZodString>;
39
+ timestamp: z.ZodNumber;
40
+ }, {
41
+ templateName: z.ZodString;
42
+ }>, {
43
+ type: z.ZodLiteral<"template">;
44
+ }>, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ type: "template";
47
+ timestamp: number;
48
+ templateName: string;
49
+ from?: string | undefined;
50
+ to?: string | undefined;
51
+ }, {
52
+ id: string;
53
+ type: "template";
54
+ timestamp: number;
55
+ templateName: string;
56
+ from?: string | undefined;
57
+ to?: string | undefined;
58
+ }>]>;
59
+ export type JsonMessage = z.infer<typeof jsonMessage>;
60
+ export declare const messageSchema: z.ZodObject<{
61
+ id: z.ZodString;
62
+ wamId: z.ZodString;
63
+ message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
64
+ id: z.ZodString;
65
+ from: z.ZodOptional<z.ZodString>;
66
+ to: z.ZodOptional<z.ZodString>;
67
+ timestamp: z.ZodNumber;
68
+ }, {
69
+ text: z.ZodObject<{
70
+ body: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ body: string;
73
+ }, {
74
+ body: string;
75
+ }>;
76
+ }>, {
77
+ type: z.ZodLiteral<"text">;
78
+ }>, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ type: "text";
81
+ timestamp: number;
82
+ text: {
83
+ body: string;
84
+ };
85
+ from?: string | undefined;
86
+ to?: string | undefined;
87
+ }, {
88
+ id: string;
89
+ type: "text";
90
+ timestamp: number;
91
+ text: {
92
+ body: string;
93
+ };
94
+ from?: string | undefined;
95
+ to?: string | undefined;
96
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
97
+ id: z.ZodString;
98
+ from: z.ZodOptional<z.ZodString>;
99
+ to: z.ZodOptional<z.ZodString>;
100
+ timestamp: z.ZodNumber;
101
+ }, {
102
+ templateName: z.ZodString;
103
+ }>, {
104
+ type: z.ZodLiteral<"template">;
105
+ }>, "strip", z.ZodTypeAny, {
106
+ id: string;
107
+ type: "template";
108
+ timestamp: number;
109
+ templateName: string;
110
+ from?: string | undefined;
111
+ to?: string | undefined;
112
+ }, {
113
+ id: string;
114
+ type: "template";
115
+ timestamp: number;
116
+ templateName: string;
117
+ from?: string | undefined;
118
+ to?: string | undefined;
119
+ }>]>;
120
+ state: z.ZodNativeEnum<{
121
+ SENT: "SENT";
122
+ RECEIVED: "RECEIVED";
123
+ SEEN: "SEEN";
124
+ }>;
125
+ created_at: z.ZodDate;
126
+ updated_at: z.ZodDate;
127
+ }, "strip", z.ZodTypeAny, {
128
+ message: {
129
+ id: string;
130
+ type: "text";
131
+ timestamp: number;
132
+ text: {
133
+ body: string;
134
+ };
135
+ from?: string | undefined;
136
+ to?: string | undefined;
137
+ } | {
138
+ id: string;
139
+ type: "template";
140
+ timestamp: number;
141
+ templateName: string;
142
+ from?: string | undefined;
143
+ to?: string | undefined;
144
+ };
145
+ id: string;
146
+ created_at: Date;
147
+ updated_at: Date;
148
+ state: "SENT" | "RECEIVED" | "SEEN";
149
+ wamId: string;
150
+ }, {
151
+ message: {
152
+ id: string;
153
+ type: "text";
154
+ timestamp: number;
155
+ text: {
156
+ body: string;
157
+ };
158
+ from?: string | undefined;
159
+ to?: string | undefined;
160
+ } | {
161
+ id: string;
162
+ type: "template";
163
+ timestamp: number;
164
+ templateName: string;
165
+ from?: string | undefined;
166
+ to?: string | undefined;
167
+ };
168
+ id: string;
169
+ created_at: Date;
170
+ updated_at: Date;
171
+ state: "SENT" | "RECEIVED" | "SEEN";
172
+ wamId: string;
173
+ }>;
@@ -0,0 +1,38 @@
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.messageSchema = exports.jsonMessage = void 0;
7
+ const translate_1 = require("../../i18n/translate");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
10
+ const whatsappMessageSchema = zod_1.default.object({
11
+ id: zod_1.default.string(),
12
+ from: zod_1.default.string().optional(),
13
+ to: zod_1.default.string().optional(),
14
+ timestamp: zod_1.default.coerce.number(),
15
+ });
16
+ const textMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
17
+ text: zod_1.default.object({
18
+ body: zod_1.default.string(),
19
+ }),
20
+ }));
21
+ const templateMessageSchema = whatsappMessageSchema.merge(zod_1.default.object({
22
+ templateName: zod_1.default.string(),
23
+ }));
24
+ exports.jsonMessage = zod_1.default.discriminatedUnion('type', [
25
+ textMessageSchema.extend({ type: zod_1.default.literal('text') }),
26
+ templateMessageSchema.extend({ type: zod_1.default.literal('template') }),
27
+ ]);
28
+ exports.messageSchema = zod_1.default.object({
29
+ id: zod_1.default.string().uuid({
30
+ message: (0, translate_1.translate)('model.message.id.uuid'),
31
+ }),
32
+ wamId: zod_1.default.string(),
33
+ message: exports.jsonMessage,
34
+ state: zod_1.default.nativeEnum(prisma_schema_1.MessageState),
35
+ created_at: zod_1.default.date(),
36
+ updated_at: zod_1.default.date(),
37
+ });
38
+ //# sourceMappingURL=message.dto.js.map
@@ -0,0 +1 @@
1
+ export * from './dto/message.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/message.dto"), exports);
18
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1,728 @@
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
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
7
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
8
+ fullName: z.ZodString;
9
+ firstName: z.ZodNullable<z.ZodString>;
10
+ gender: z.ZodNullable<z.ZodString>;
11
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
12
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
13
+ instagram: z.ZodNullable<z.ZodString>;
14
+ mail: z.ZodNullable<z.ZodString>;
15
+ dni: z.ZodNullable<z.ZodString>;
16
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
17
+ birthLocationId: z.ZodNullable<z.ZodString>;
18
+ residenceLocationId: z.ZodNullable<z.ZodString>;
19
+ isInTrash: z.ZodBoolean;
20
+ movedToTrashDate: z.ZodNullable<z.ZodDate>;
21
+ created_at: z.ZodDate;
22
+ updated_at: z.ZodDate;
23
+ }, {
24
+ tags: z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ groupId: z.ZodString;
28
+ type: z.ZodNativeEnum<{
29
+ PROFILE: "PROFILE";
30
+ EVENT: "EVENT";
31
+ PARTICIPANT: "PARTICIPANT";
32
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
33
+ }>;
34
+ created_at: z.ZodDate;
35
+ updated_at: z.ZodDate;
36
+ }, "strip", z.ZodTypeAny, {
37
+ id: string;
38
+ name: string;
39
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
40
+ created_at: Date;
41
+ updated_at: Date;
42
+ groupId: string;
43
+ }, {
44
+ id: string;
45
+ name: string;
46
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
47
+ created_at: Date;
48
+ updated_at: Date;
49
+ groupId: string;
50
+ }>, "many">;
51
+ inChat: z.ZodBoolean;
52
+ messages: z.ZodArray<z.ZodObject<Pick<{
53
+ id: z.ZodString;
54
+ wamId: z.ZodString;
55
+ message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
56
+ id: z.ZodString;
57
+ from: z.ZodOptional<z.ZodString>;
58
+ to: z.ZodOptional<z.ZodString>;
59
+ timestamp: z.ZodNumber;
60
+ }, {
61
+ text: z.ZodObject<{
62
+ body: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ body: string;
65
+ }, {
66
+ body: string;
67
+ }>;
68
+ }>, {
69
+ type: z.ZodLiteral<"text">;
70
+ }>, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ type: "text";
73
+ timestamp: number;
74
+ text: {
75
+ body: string;
76
+ };
77
+ from?: string | undefined;
78
+ to?: string | undefined;
79
+ }, {
80
+ id: string;
81
+ type: "text";
82
+ timestamp: number;
83
+ text: {
84
+ body: string;
85
+ };
86
+ from?: string | undefined;
87
+ to?: string | undefined;
88
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
89
+ id: z.ZodString;
90
+ from: z.ZodOptional<z.ZodString>;
91
+ to: z.ZodOptional<z.ZodString>;
92
+ timestamp: z.ZodNumber;
93
+ }, {
94
+ templateName: z.ZodString;
95
+ }>, {
96
+ type: z.ZodLiteral<"template">;
97
+ }>, "strip", z.ZodTypeAny, {
98
+ id: string;
99
+ type: "template";
100
+ timestamp: number;
101
+ templateName: string;
102
+ from?: string | undefined;
103
+ to?: string | undefined;
104
+ }, {
105
+ id: string;
106
+ type: "template";
107
+ timestamp: number;
108
+ templateName: string;
109
+ from?: string | undefined;
110
+ to?: string | undefined;
111
+ }>]>;
112
+ state: z.ZodNativeEnum<{
113
+ SENT: "SENT";
114
+ RECEIVED: "RECEIVED";
115
+ SEEN: "SEEN";
116
+ }>;
117
+ created_at: z.ZodDate;
118
+ updated_at: z.ZodDate;
119
+ }, "message" | "created_at" | "state">, "strip", z.ZodTypeAny, {
120
+ message: {
121
+ id: string;
122
+ type: "text";
123
+ timestamp: number;
124
+ text: {
125
+ body: string;
126
+ };
127
+ from?: string | undefined;
128
+ to?: string | undefined;
129
+ } | {
130
+ id: string;
131
+ type: "template";
132
+ timestamp: number;
133
+ templateName: string;
134
+ from?: string | undefined;
135
+ to?: string | undefined;
136
+ };
137
+ created_at: Date;
138
+ state: "SENT" | "RECEIVED" | "SEEN";
139
+ }, {
140
+ message: {
141
+ id: string;
142
+ type: "text";
143
+ timestamp: number;
144
+ text: {
145
+ body: string;
146
+ };
147
+ from?: string | undefined;
148
+ to?: string | undefined;
149
+ } | {
150
+ id: string;
151
+ type: "template";
152
+ timestamp: number;
153
+ templateName: string;
154
+ from?: string | undefined;
155
+ to?: string | undefined;
156
+ };
157
+ created_at: Date;
158
+ state: "SENT" | "RECEIVED" | "SEEN";
159
+ }>, "many">;
160
+ }>, "strip", z.ZodTypeAny, {
161
+ id: string;
162
+ phoneNumber: string;
163
+ secondaryPhoneNumber: string | null;
164
+ fullName: string;
165
+ profilePictureUrl: string | null;
166
+ created_at: Date;
167
+ updated_at: Date;
168
+ tags: {
169
+ id: string;
170
+ name: string;
171
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
172
+ created_at: Date;
173
+ updated_at: Date;
174
+ groupId: string;
175
+ }[];
176
+ shortId: number;
177
+ firstName: string | null;
178
+ gender: string | null;
179
+ birthDate: Date | null;
180
+ instagram: string | null;
181
+ mail: 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
+ inChat: boolean;
189
+ messages: {
190
+ message: {
191
+ id: string;
192
+ type: "text";
193
+ timestamp: number;
194
+ text: {
195
+ body: string;
196
+ };
197
+ from?: string | undefined;
198
+ to?: string | undefined;
199
+ } | {
200
+ id: string;
201
+ type: "template";
202
+ timestamp: number;
203
+ templateName: string;
204
+ from?: string | undefined;
205
+ to?: string | undefined;
206
+ };
207
+ created_at: Date;
208
+ state: "SENT" | "RECEIVED" | "SEEN";
209
+ }[];
210
+ }, {
211
+ id: string;
212
+ phoneNumber: string;
213
+ secondaryPhoneNumber: string | null;
214
+ fullName: string;
215
+ profilePictureUrl: string | null;
216
+ created_at: Date;
217
+ updated_at: Date;
218
+ tags: {
219
+ id: string;
220
+ name: string;
221
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
222
+ created_at: Date;
223
+ updated_at: Date;
224
+ groupId: string;
225
+ }[];
226
+ shortId: number;
227
+ firstName: string | null;
228
+ gender: string | null;
229
+ birthDate: string | null;
230
+ instagram: string | null;
231
+ mail: string | null;
232
+ dni: string | null;
233
+ alternativeNames: string[];
234
+ birthLocationId: string | null;
235
+ residenceLocationId: string | null;
236
+ isInTrash: boolean;
237
+ movedToTrashDate: Date | null;
238
+ inChat: boolean;
239
+ messages: {
240
+ message: {
241
+ id: string;
242
+ type: "text";
243
+ timestamp: number;
244
+ text: {
245
+ body: string;
246
+ };
247
+ from?: string | undefined;
248
+ to?: string | undefined;
249
+ } | {
250
+ id: string;
251
+ type: "template";
252
+ timestamp: number;
253
+ templateName: string;
254
+ from?: string | undefined;
255
+ to?: string | undefined;
256
+ };
257
+ created_at: Date;
258
+ state: "SENT" | "RECEIVED" | "SEEN";
259
+ }[];
260
+ }>, "many">;
261
+ }, "strip", z.ZodTypeAny, {
262
+ profiles: {
263
+ id: string;
264
+ phoneNumber: string;
265
+ secondaryPhoneNumber: string | null;
266
+ fullName: string;
267
+ profilePictureUrl: string | null;
268
+ created_at: Date;
269
+ updated_at: Date;
270
+ tags: {
271
+ id: string;
272
+ name: string;
273
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
274
+ created_at: Date;
275
+ updated_at: Date;
276
+ groupId: string;
277
+ }[];
278
+ shortId: number;
279
+ firstName: string | null;
280
+ gender: string | null;
281
+ birthDate: Date | null;
282
+ instagram: string | null;
283
+ mail: string | null;
284
+ dni: string | null;
285
+ alternativeNames: string[];
286
+ birthLocationId: string | null;
287
+ residenceLocationId: string | null;
288
+ isInTrash: boolean;
289
+ movedToTrashDate: Date | null;
290
+ inChat: boolean;
291
+ messages: {
292
+ message: {
293
+ id: string;
294
+ type: "text";
295
+ timestamp: number;
296
+ text: {
297
+ body: string;
298
+ };
299
+ from?: string | undefined;
300
+ to?: string | undefined;
301
+ } | {
302
+ id: string;
303
+ type: "template";
304
+ timestamp: number;
305
+ templateName: string;
306
+ from?: string | undefined;
307
+ to?: string | undefined;
308
+ };
309
+ created_at: Date;
310
+ state: "SENT" | "RECEIVED" | "SEEN";
311
+ }[];
312
+ }[];
313
+ }, {
314
+ profiles: {
315
+ id: string;
316
+ phoneNumber: string;
317
+ secondaryPhoneNumber: string | null;
318
+ fullName: string;
319
+ profilePictureUrl: string | null;
320
+ created_at: Date;
321
+ updated_at: Date;
322
+ tags: {
323
+ id: string;
324
+ name: string;
325
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
326
+ created_at: Date;
327
+ updated_at: Date;
328
+ groupId: string;
329
+ }[];
330
+ shortId: number;
331
+ firstName: string | null;
332
+ gender: string | null;
333
+ birthDate: string | null;
334
+ instagram: string | null;
335
+ mail: string | null;
336
+ dni: string | null;
337
+ alternativeNames: string[];
338
+ birthLocationId: string | null;
339
+ residenceLocationId: string | null;
340
+ isInTrash: boolean;
341
+ movedToTrashDate: Date | null;
342
+ inChat: boolean;
343
+ messages: {
344
+ message: {
345
+ id: string;
346
+ type: "text";
347
+ timestamp: number;
348
+ text: {
349
+ body: string;
350
+ };
351
+ from?: string | undefined;
352
+ to?: string | undefined;
353
+ } | {
354
+ id: string;
355
+ type: "template";
356
+ timestamp: number;
357
+ templateName: string;
358
+ from?: string | undefined;
359
+ to?: string | undefined;
360
+ };
361
+ created_at: Date;
362
+ state: "SENT" | "RECEIVED" | "SEEN";
363
+ }[];
364
+ }[];
365
+ }>;
366
+ declare const FindWithActiveChatResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
367
+ profiles: z.ZodArray<z.ZodObject<{
368
+ id: z.ZodString;
369
+ shortId: z.ZodNumber;
370
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
371
+ secondaryPhoneNumber: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
372
+ fullName: z.ZodString;
373
+ firstName: z.ZodNullable<z.ZodString>;
374
+ gender: z.ZodNullable<z.ZodString>;
375
+ birthDate: z.ZodNullable<z.ZodPipeline<z.ZodString, z.ZodDate>>;
376
+ profilePictureUrl: z.ZodNullable<z.ZodString>;
377
+ instagram: z.ZodNullable<z.ZodString>;
378
+ mail: z.ZodNullable<z.ZodString>;
379
+ dni: z.ZodNullable<z.ZodString>;
380
+ alternativeNames: z.ZodArray<z.ZodString, "many">;
381
+ birthLocationId: z.ZodNullable<z.ZodString>;
382
+ residenceLocationId: z.ZodNullable<z.ZodString>;
383
+ isInTrash: z.ZodBoolean;
384
+ movedToTrashDate: z.ZodNullable<z.ZodString>;
385
+ created_at: z.ZodString;
386
+ updated_at: z.ZodString;
387
+ tags: z.ZodArray<z.ZodObject<{
388
+ id: z.ZodString;
389
+ name: z.ZodString;
390
+ groupId: z.ZodString;
391
+ type: z.ZodNativeEnum<{
392
+ PROFILE: "PROFILE";
393
+ EVENT: "EVENT";
394
+ PARTICIPANT: "PARTICIPANT";
395
+ NOT_IN_SYSTEM: "NOT_IN_SYSTEM";
396
+ }>;
397
+ created_at: z.ZodString;
398
+ updated_at: z.ZodString;
399
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
400
+ id: string;
401
+ name: string;
402
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
403
+ created_at: string;
404
+ updated_at: string;
405
+ groupId: string;
406
+ }, {
407
+ id: string;
408
+ name: string;
409
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
410
+ created_at: string;
411
+ updated_at: string;
412
+ groupId: string;
413
+ }>, "many">;
414
+ inChat: z.ZodBoolean;
415
+ messages: z.ZodArray<z.ZodObject<{
416
+ message: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
417
+ id: z.ZodString;
418
+ from: z.ZodOptional<z.ZodString>;
419
+ to: z.ZodOptional<z.ZodString>;
420
+ timestamp: z.ZodNumber;
421
+ }, {
422
+ text: z.ZodObject<{
423
+ body: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ body: string;
426
+ }, {
427
+ body: string;
428
+ }>;
429
+ }>, {
430
+ type: z.ZodLiteral<"text">;
431
+ }>, "strip", z.ZodTypeAny, {
432
+ id: string;
433
+ type: "text";
434
+ timestamp: number;
435
+ text: {
436
+ body: string;
437
+ };
438
+ from?: string | undefined;
439
+ to?: string | undefined;
440
+ }, {
441
+ id: string;
442
+ type: "text";
443
+ timestamp: number;
444
+ text: {
445
+ body: string;
446
+ };
447
+ from?: string | undefined;
448
+ to?: string | undefined;
449
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
450
+ id: z.ZodString;
451
+ from: z.ZodOptional<z.ZodString>;
452
+ to: z.ZodOptional<z.ZodString>;
453
+ timestamp: z.ZodNumber;
454
+ }, {
455
+ templateName: z.ZodString;
456
+ }>, {
457
+ type: z.ZodLiteral<"template">;
458
+ }>, "strip", z.ZodTypeAny, {
459
+ id: string;
460
+ type: "template";
461
+ timestamp: number;
462
+ templateName: string;
463
+ from?: string | undefined;
464
+ to?: string | undefined;
465
+ }, {
466
+ id: string;
467
+ type: "template";
468
+ timestamp: number;
469
+ templateName: string;
470
+ from?: string | undefined;
471
+ to?: string | undefined;
472
+ }>]>;
473
+ created_at: z.ZodString;
474
+ state: z.ZodNativeEnum<{
475
+ SENT: "SENT";
476
+ RECEIVED: "RECEIVED";
477
+ SEEN: "SEEN";
478
+ }>;
479
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
480
+ message: {
481
+ id: string;
482
+ type: "text";
483
+ timestamp: number;
484
+ text: {
485
+ body: string;
486
+ };
487
+ from?: string | undefined;
488
+ to?: string | undefined;
489
+ } | {
490
+ id: string;
491
+ type: "template";
492
+ timestamp: number;
493
+ templateName: string;
494
+ from?: string | undefined;
495
+ to?: string | undefined;
496
+ };
497
+ created_at: string;
498
+ state: "SENT" | "RECEIVED" | "SEEN";
499
+ }, {
500
+ message: {
501
+ id: string;
502
+ type: "text";
503
+ timestamp: number;
504
+ text: {
505
+ body: string;
506
+ };
507
+ from?: string | undefined;
508
+ to?: string | undefined;
509
+ } | {
510
+ id: string;
511
+ type: "template";
512
+ timestamp: number;
513
+ templateName: string;
514
+ from?: string | undefined;
515
+ to?: string | undefined;
516
+ };
517
+ created_at: string;
518
+ state: "SENT" | "RECEIVED" | "SEEN";
519
+ }>, "many">;
520
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
521
+ id: string;
522
+ phoneNumber: string;
523
+ secondaryPhoneNumber: string | null;
524
+ fullName: string;
525
+ profilePictureUrl: string | null;
526
+ created_at: string;
527
+ updated_at: string;
528
+ tags: {
529
+ id: string;
530
+ name: string;
531
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
532
+ created_at: string;
533
+ updated_at: string;
534
+ groupId: string;
535
+ }[];
536
+ shortId: number;
537
+ firstName: string | null;
538
+ gender: string | null;
539
+ birthDate: Date | null;
540
+ instagram: string | null;
541
+ mail: string | null;
542
+ dni: string | null;
543
+ alternativeNames: string[];
544
+ birthLocationId: string | null;
545
+ residenceLocationId: string | null;
546
+ isInTrash: boolean;
547
+ movedToTrashDate: string | null;
548
+ inChat: boolean;
549
+ messages: {
550
+ message: {
551
+ id: string;
552
+ type: "text";
553
+ timestamp: number;
554
+ text: {
555
+ body: string;
556
+ };
557
+ from?: string | undefined;
558
+ to?: string | undefined;
559
+ } | {
560
+ id: string;
561
+ type: "template";
562
+ timestamp: number;
563
+ templateName: string;
564
+ from?: string | undefined;
565
+ to?: string | undefined;
566
+ };
567
+ created_at: string;
568
+ state: "SENT" | "RECEIVED" | "SEEN";
569
+ }[];
570
+ }, {
571
+ id: string;
572
+ phoneNumber: string;
573
+ secondaryPhoneNumber: string | null;
574
+ fullName: string;
575
+ profilePictureUrl: string | null;
576
+ created_at: string;
577
+ updated_at: string;
578
+ tags: {
579
+ id: string;
580
+ name: string;
581
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
582
+ created_at: string;
583
+ updated_at: string;
584
+ groupId: string;
585
+ }[];
586
+ shortId: number;
587
+ firstName: string | null;
588
+ gender: string | null;
589
+ birthDate: string | null;
590
+ instagram: string | null;
591
+ mail: string | null;
592
+ dni: string | null;
593
+ alternativeNames: string[];
594
+ birthLocationId: string | null;
595
+ residenceLocationId: string | null;
596
+ isInTrash: boolean;
597
+ movedToTrashDate: string | null;
598
+ inChat: boolean;
599
+ messages: {
600
+ message: {
601
+ id: string;
602
+ type: "text";
603
+ timestamp: number;
604
+ text: {
605
+ body: string;
606
+ };
607
+ from?: string | undefined;
608
+ to?: string | undefined;
609
+ } | {
610
+ id: string;
611
+ type: "template";
612
+ timestamp: number;
613
+ templateName: string;
614
+ from?: string | undefined;
615
+ to?: string | undefined;
616
+ };
617
+ created_at: string;
618
+ state: "SENT" | "RECEIVED" | "SEEN";
619
+ }[];
620
+ }>, "many">;
621
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
622
+ profiles: {
623
+ id: string;
624
+ phoneNumber: string;
625
+ secondaryPhoneNumber: string | null;
626
+ fullName: string;
627
+ profilePictureUrl: string | null;
628
+ created_at: string;
629
+ updated_at: string;
630
+ tags: {
631
+ id: string;
632
+ name: string;
633
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
634
+ created_at: string;
635
+ updated_at: string;
636
+ groupId: string;
637
+ }[];
638
+ shortId: number;
639
+ firstName: string | null;
640
+ gender: string | null;
641
+ birthDate: Date | null;
642
+ instagram: string | null;
643
+ mail: string | null;
644
+ dni: string | null;
645
+ alternativeNames: string[];
646
+ birthLocationId: string | null;
647
+ residenceLocationId: string | null;
648
+ isInTrash: boolean;
649
+ movedToTrashDate: string | null;
650
+ inChat: boolean;
651
+ messages: {
652
+ message: {
653
+ id: string;
654
+ type: "text";
655
+ timestamp: number;
656
+ text: {
657
+ body: string;
658
+ };
659
+ from?: string | undefined;
660
+ to?: string | undefined;
661
+ } | {
662
+ id: string;
663
+ type: "template";
664
+ timestamp: number;
665
+ templateName: string;
666
+ from?: string | undefined;
667
+ to?: string | undefined;
668
+ };
669
+ created_at: string;
670
+ state: "SENT" | "RECEIVED" | "SEEN";
671
+ }[];
672
+ }[];
673
+ }, {
674
+ profiles: {
675
+ id: string;
676
+ phoneNumber: string;
677
+ secondaryPhoneNumber: string | null;
678
+ fullName: string;
679
+ profilePictureUrl: string | null;
680
+ created_at: string;
681
+ updated_at: string;
682
+ tags: {
683
+ id: string;
684
+ name: string;
685
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
686
+ created_at: string;
687
+ updated_at: string;
688
+ groupId: string;
689
+ }[];
690
+ shortId: number;
691
+ firstName: string | null;
692
+ gender: string | null;
693
+ birthDate: string | null;
694
+ instagram: string | null;
695
+ mail: string | null;
696
+ dni: string | null;
697
+ alternativeNames: string[];
698
+ birthLocationId: string | null;
699
+ residenceLocationId: string | null;
700
+ isInTrash: boolean;
701
+ movedToTrashDate: string | null;
702
+ inChat: boolean;
703
+ messages: {
704
+ message: {
705
+ id: string;
706
+ type: "text";
707
+ timestamp: number;
708
+ text: {
709
+ body: string;
710
+ };
711
+ from?: string | undefined;
712
+ to?: string | undefined;
713
+ } | {
714
+ id: string;
715
+ type: "template";
716
+ timestamp: number;
717
+ templateName: string;
718
+ from?: string | undefined;
719
+ to?: string | undefined;
720
+ };
721
+ created_at: string;
722
+ state: "SENT" | "RECEIVED" | "SEEN";
723
+ }[];
724
+ }[];
725
+ }>>;
726
+ export declare class FindWithActiveChatResponseDto extends FindWithActiveChatResponseDto_base {
727
+ }
728
+ export {};
@@ -0,0 +1,26 @@
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.FindWithActiveChatResponseDto = exports.findWithActiveChatResponseSchema = void 0;
7
+ const message_dto_1 = require("../../message/dto/message.dto");
8
+ const profile_dto_1 = require("./profile.dto");
9
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
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_dto_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) {
24
+ }
25
+ exports.FindWithActiveChatResponseDto = FindWithActiveChatResponseDto;
26
+ //# sourceMappingURL=find-with-active-chat.dto.js.map
@@ -7,5 +7,6 @@ export * from './dto/find-by-phone-number.dto';
7
7
  export * from './dto/find-by-tag-groups-profile.dto';
8
8
  export * from './dto/find-by-tags-profile.dto';
9
9
  export * from './dto/find-trash.dto';
10
+ export * from './dto/find-with-active-chat.dto';
10
11
  export * from './dto/profile.dto';
11
12
  export * from './dto/update-profile.dto';
@@ -23,6 +23,7 @@ __exportStar(require("./dto/find-by-phone-number.dto"), exports);
23
23
  __exportStar(require("./dto/find-by-tag-groups-profile.dto"), exports);
24
24
  __exportStar(require("./dto/find-by-tags-profile.dto"), exports);
25
25
  __exportStar(require("./dto/find-trash.dto"), exports);
26
+ __exportStar(require("./dto/find-with-active-chat.dto"), exports);
26
27
  __exportStar(require("./dto/profile.dto"), exports);
27
28
  __exportStar(require("./dto/update-profile.dto"), exports);
28
29
  //# sourceMappingURL=exports.js.map
@@ -322,8 +322,8 @@ const config = {
322
322
  }
323
323
  }
324
324
  },
325
- "inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Account {\n id String @id @default(uuid())\n username String @unique\n password String\n role Role @default(USER)\n\n comments Comment[] @relation(\"ACCOUNT_X_COMMENT\")\n solvableComments Comment[] @relation(\"ACCOUNT_X_SOLVED_COMMENT\")\n tags Tag[] @relation(\"ACCOUNT_X_TAG\")\n\n globalFilter Tag[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n isGlobalFilterActive Boolean @default(false) @map(\"is_global_filter_active\")\n fcmToken String[] @map(\"fcm_token\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ACCOUNT\")\n}\n\nenum Role {\n USER\n ADMIN\n FORM\n}\n\nmodel Profile {\n id String @id @default(uuid())\n shortId Int @map(\"short_id\")\n\n phoneNumber String @unique @map(\"phone_number\")\n secondaryPhoneNumber String? @unique @map(\"secondary_phone_number\")\n fullName String @map(\"full_name\")\n firstName String? @map(\"first_name\")\n gender String?\n birthDate DateTime? @map(\"birth_date\")\n profilePictureUrl String? @map(\"profile_picture_url\")\n instagram String?\n mail String?\n dni String?\n alternativeNames String[] @map(\"alternative_names\")\n\n comments Comment[] @relation(\"PROFILE_X_COMMENT\")\n messages Message[] @relation(\"PROFILE_X_MESSAGE\")\n tags Tag[] @relation(\"PROFILE_X_TAG\")\n\n birthLocationId String? @map(\"birth_location_id\")\n birthLocation Location? @relation(\"PROFILE_X_BIRTH_LOCATION\", fields: [birthLocationId], references: [id])\n\n residenceLocationId String? @map(\"residence_location_id\")\n residenceLocation Location? @relation(\"PROFILE_X_RESIDENCE_LOCATION\", fields: [residenceLocationId], references: [id])\n\n isInTrash Boolean @default(false) @map(\"is_in_trash\")\n movedToTrashDate DateTime? @map(\"moved_to_trash_date\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PROFILE\")\n}\n\nmodel Location {\n id String @id @default(uuid())\n latitude Float\n longitude Float\n country String\n state String\n city String\n\n birthProfiles Profile[] @relation(\"PROFILE_X_BIRTH_LOCATION\")\n residenceProfiles Profile[] @relation(\"PROFILE_X_RESIDENCE_LOCATION\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@unique([latitude, longitude])\n @@map(\"LOCATION\")\n}\n\nmodel Comment {\n id String @id @default(uuid())\n content String\n\n createdBy String @map(\"created_by\")\n account Account @relation(\"ACCOUNT_X_COMMENT\", fields: [createdBy], references: [id])\n\n profileId String @map(\"perfil_id\")\n profile Profile @relation(\"PROFILE_X_COMMENT\", fields: [profileId], references: [id], onDelete: Cascade)\n\n isSolvable Boolean @default(false) @map(\"is_solvable\")\n isSolved Boolean @default(false) @map(\"is_solved\")\n solvedAt DateTime? @map(\"solved_at\")\n\n solvedById String? @map(\"solved_by\")\n solvedBy Account? @relation(\"ACCOUNT_X_SOLVED_COMMENT\", fields: [solvedById], references: [id])\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMMENT\")\n}\n\nmodel Tag {\n id String @id @default(uuid())\n name String\n type TagType @default(PROFILE)\n\n groupId String @map(\"group_id\")\n group TagGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)\n\n assistedEvent Event? @relation(\"EVENT_X_TAG_ASISTED\")\n confirmedEvent Event? @relation(\"EVENT_X_TAG_CONFIRMED\")\n\n accounts Account[] @relation(\"ACCOUNT_X_TAG\")\n profiles Profile[] @relation(\"PROFILE_X_TAG\")\n accountsGlobalFilter Account[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG\")\n}\n\nmodel TagGroup {\n id String @id @default(uuid())\n name String\n color String\n isExclusive Boolean @map(\"is_exclusive\")\n tags Tag[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG_GROUP\")\n}\n\nmodel Event {\n id String @id @default(uuid())\n name String\n date DateTime\n location String\n\n folderId String? @map(\"folder_id\")\n folder EventFolder? @relation(\"EVENT_FOLDER_X_EVENT\", fields: [folderId], references: [id], onDelete: Cascade)\n\n tagAssistedId String @unique @map(\"tag_assisted\")\n tagAssisted Tag @relation(\"EVENT_X_TAG_ASISTED\", fields: [tagAssistedId], references: [id])\n\n tagConfirmedId String @unique @map(\"tag_confirmed\")\n tagConfirmed Tag @relation(\"EVENT_X_TAG_CONFIRMED\", fields: [tagConfirmedId], references: [id])\n\n supraEventId String? @map(\"supra_event_id\")\n supraEvent Event? @relation(\"SubEvents\", fields: [supraEventId], references: [id], onDelete: Cascade)\n\n subEvents Event[] @relation(\"SubEvents\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT\")\n}\n\nmodel EventFolder {\n id String @id @default(uuid())\n name String\n color String\n events Event[] @relation(\"EVENT_FOLDER_X_EVENT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT_FOLDER\")\n}\n\nmodel Message {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json\n\n profilePhoneNumber String @map(\"profile_phone_number\")\n profile Profile @relation(\"PROFILE_X_MESSAGE\", fields: [profilePhoneNumber], references: [phoneNumber], onDelete: Cascade)\n\n state MessageState @default(SENT)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MESSAGE\")\n}\n\nmodel CannedResponse {\n id String @id @default(uuid())\n name String\n content String\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"CANNED_RESPONSE\")\n}\n\nmodel Enums {\n id String @id\n templateStatus TemplateStatus\n templateCategory TemplateCategory\n}\n\nenum TemplateStatus {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum TemplateCategory {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TagType {\n PROFILE\n EVENT\n PARTICIPANT\n NOT_IN_SYSTEM\n}\n\nenum MessageState {\n SENT\n RECEIVED\n SEEN\n}\n",
326
- "inlineSchemaHash": "60c48a393c3b4b9e93bb9a36d4fa70424c19748a34deb61b5a9f51d4fcaa16b1",
325
+ "inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Account {\n id String @id @default(uuid())\n username String @unique\n password String\n role Role @default(USER)\n\n comments Comment[] @relation(\"ACCOUNT_X_COMMENT\")\n solvableComments Comment[] @relation(\"ACCOUNT_X_SOLVED_COMMENT\")\n tags Tag[] @relation(\"ACCOUNT_X_TAG\")\n\n globalFilter Tag[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n isGlobalFilterActive Boolean @default(false) @map(\"is_global_filter_active\")\n fcmToken String[] @map(\"fcm_token\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ACCOUNT\")\n}\n\nenum Role {\n USER\n ADMIN\n FORM\n}\n\nmodel Profile {\n id String @id @default(uuid())\n shortId Int @map(\"short_id\")\n\n phoneNumber String @unique @map(\"phone_number\")\n secondaryPhoneNumber String? @unique @map(\"secondary_phone_number\")\n fullName String @map(\"full_name\")\n firstName String? @map(\"first_name\")\n gender String?\n birthDate DateTime? @map(\"birth_date\")\n profilePictureUrl String? @map(\"profile_picture_url\")\n instagram String?\n mail String?\n dni String?\n alternativeNames String[] @map(\"alternative_names\")\n\n comments Comment[] @relation(\"PROFILE_X_COMMENT\")\n messages Message[] @relation(\"PROFILE_X_MESSAGE\")\n tags Tag[] @relation(\"PROFILE_X_TAG\")\n\n birthLocationId String? @map(\"birth_location_id\")\n birthLocation Location? @relation(\"PROFILE_X_BIRTH_LOCATION\", fields: [birthLocationId], references: [id])\n\n residenceLocationId String? @map(\"residence_location_id\")\n residenceLocation Location? @relation(\"PROFILE_X_RESIDENCE_LOCATION\", fields: [residenceLocationId], references: [id])\n\n isInTrash Boolean @default(false) @map(\"is_in_trash\")\n movedToTrashDate DateTime? @map(\"moved_to_trash_date\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PROFILE\")\n}\n\nmodel Location {\n id String @id @default(uuid())\n latitude Float\n longitude Float\n country String\n state String\n city String\n\n birthProfiles Profile[] @relation(\"PROFILE_X_BIRTH_LOCATION\")\n residenceProfiles Profile[] @relation(\"PROFILE_X_RESIDENCE_LOCATION\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@unique([latitude, longitude])\n @@map(\"LOCATION\")\n}\n\nmodel Comment {\n id String @id @default(uuid())\n content String\n\n createdBy String @map(\"created_by\")\n account Account @relation(\"ACCOUNT_X_COMMENT\", fields: [createdBy], references: [id])\n\n profileId String @map(\"perfil_id\")\n profile Profile @relation(\"PROFILE_X_COMMENT\", fields: [profileId], references: [id], onDelete: Cascade)\n\n isSolvable Boolean @default(false) @map(\"is_solvable\")\n isSolved Boolean @default(false) @map(\"is_solved\")\n solvedAt DateTime? @map(\"solved_at\")\n\n solvedById String? @map(\"solved_by\")\n solvedBy Account? @relation(\"ACCOUNT_X_SOLVED_COMMENT\", fields: [solvedById], references: [id])\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMMENT\")\n}\n\nmodel Tag {\n id String @id @default(uuid())\n name String\n type TagType @default(PROFILE)\n\n groupId String @map(\"group_id\")\n group TagGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)\n\n assistedEvent Event? @relation(\"EVENT_X_TAG_ASISTED\")\n confirmedEvent Event? @relation(\"EVENT_X_TAG_CONFIRMED\")\n\n accounts Account[] @relation(\"ACCOUNT_X_TAG\")\n profiles Profile[] @relation(\"PROFILE_X_TAG\")\n accountsGlobalFilter Account[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG\")\n}\n\nmodel TagGroup {\n id String @id @default(uuid())\n name String\n color String\n isExclusive Boolean @map(\"is_exclusive\")\n tags Tag[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG_GROUP\")\n}\n\nmodel Event {\n id String @id @default(uuid())\n name String\n date DateTime\n location String\n\n folderId String? @map(\"folder_id\")\n folder EventFolder? @relation(\"EVENT_FOLDER_X_EVENT\", fields: [folderId], references: [id], onDelete: Cascade)\n\n tagAssistedId String @unique @map(\"tag_assisted\")\n tagAssisted Tag @relation(\"EVENT_X_TAG_ASISTED\", fields: [tagAssistedId], references: [id])\n\n tagConfirmedId String @unique @map(\"tag_confirmed\")\n tagConfirmed Tag @relation(\"EVENT_X_TAG_CONFIRMED\", fields: [tagConfirmedId], references: [id])\n\n supraEventId String? @map(\"supra_event_id\")\n supraEvent Event? @relation(\"SubEvents\", fields: [supraEventId], references: [id], onDelete: Cascade)\n\n subEvents Event[] @relation(\"SubEvents\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT\")\n}\n\nmodel EventFolder {\n id String @id @default(uuid())\n name String\n color String\n events Event[] @relation(\"EVENT_FOLDER_X_EVENT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT_FOLDER\")\n}\n\nmodel Message {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json @db.JsonB\n\n profilePhoneNumber String @map(\"profile_phone_number\")\n profile Profile @relation(\"PROFILE_X_MESSAGE\", fields: [profilePhoneNumber], references: [phoneNumber], onDelete: Cascade)\n\n state MessageState @default(SENT)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MESSAGE\")\n}\n\nmodel CannedResponse {\n id String @id @default(uuid())\n name String\n content String\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"CANNED_RESPONSE\")\n}\n\nmodel Enums {\n id String @id\n templateStatus TemplateStatus\n templateCategory TemplateCategory\n}\n\nenum TemplateStatus {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum TemplateCategory {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TagType {\n PROFILE\n EVENT\n PARTICIPANT\n NOT_IN_SYSTEM\n}\n\nenum MessageState {\n SENT\n RECEIVED\n SEEN\n}\n",
326
+ "inlineSchemaHash": "368728e10a2fb61d59cca722c157f9345777f32b15fae0e2eedacfc62aa61899",
327
327
  "copyEngine": true
328
328
  }
329
329
  config.dirname = '/'
@@ -323,8 +323,8 @@ const config = {
323
323
  }
324
324
  }
325
325
  },
326
- "inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Account {\n id String @id @default(uuid())\n username String @unique\n password String\n role Role @default(USER)\n\n comments Comment[] @relation(\"ACCOUNT_X_COMMENT\")\n solvableComments Comment[] @relation(\"ACCOUNT_X_SOLVED_COMMENT\")\n tags Tag[] @relation(\"ACCOUNT_X_TAG\")\n\n globalFilter Tag[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n isGlobalFilterActive Boolean @default(false) @map(\"is_global_filter_active\")\n fcmToken String[] @map(\"fcm_token\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ACCOUNT\")\n}\n\nenum Role {\n USER\n ADMIN\n FORM\n}\n\nmodel Profile {\n id String @id @default(uuid())\n shortId Int @map(\"short_id\")\n\n phoneNumber String @unique @map(\"phone_number\")\n secondaryPhoneNumber String? @unique @map(\"secondary_phone_number\")\n fullName String @map(\"full_name\")\n firstName String? @map(\"first_name\")\n gender String?\n birthDate DateTime? @map(\"birth_date\")\n profilePictureUrl String? @map(\"profile_picture_url\")\n instagram String?\n mail String?\n dni String?\n alternativeNames String[] @map(\"alternative_names\")\n\n comments Comment[] @relation(\"PROFILE_X_COMMENT\")\n messages Message[] @relation(\"PROFILE_X_MESSAGE\")\n tags Tag[] @relation(\"PROFILE_X_TAG\")\n\n birthLocationId String? @map(\"birth_location_id\")\n birthLocation Location? @relation(\"PROFILE_X_BIRTH_LOCATION\", fields: [birthLocationId], references: [id])\n\n residenceLocationId String? @map(\"residence_location_id\")\n residenceLocation Location? @relation(\"PROFILE_X_RESIDENCE_LOCATION\", fields: [residenceLocationId], references: [id])\n\n isInTrash Boolean @default(false) @map(\"is_in_trash\")\n movedToTrashDate DateTime? @map(\"moved_to_trash_date\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PROFILE\")\n}\n\nmodel Location {\n id String @id @default(uuid())\n latitude Float\n longitude Float\n country String\n state String\n city String\n\n birthProfiles Profile[] @relation(\"PROFILE_X_BIRTH_LOCATION\")\n residenceProfiles Profile[] @relation(\"PROFILE_X_RESIDENCE_LOCATION\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@unique([latitude, longitude])\n @@map(\"LOCATION\")\n}\n\nmodel Comment {\n id String @id @default(uuid())\n content String\n\n createdBy String @map(\"created_by\")\n account Account @relation(\"ACCOUNT_X_COMMENT\", fields: [createdBy], references: [id])\n\n profileId String @map(\"perfil_id\")\n profile Profile @relation(\"PROFILE_X_COMMENT\", fields: [profileId], references: [id], onDelete: Cascade)\n\n isSolvable Boolean @default(false) @map(\"is_solvable\")\n isSolved Boolean @default(false) @map(\"is_solved\")\n solvedAt DateTime? @map(\"solved_at\")\n\n solvedById String? @map(\"solved_by\")\n solvedBy Account? @relation(\"ACCOUNT_X_SOLVED_COMMENT\", fields: [solvedById], references: [id])\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMMENT\")\n}\n\nmodel Tag {\n id String @id @default(uuid())\n name String\n type TagType @default(PROFILE)\n\n groupId String @map(\"group_id\")\n group TagGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)\n\n assistedEvent Event? @relation(\"EVENT_X_TAG_ASISTED\")\n confirmedEvent Event? @relation(\"EVENT_X_TAG_CONFIRMED\")\n\n accounts Account[] @relation(\"ACCOUNT_X_TAG\")\n profiles Profile[] @relation(\"PROFILE_X_TAG\")\n accountsGlobalFilter Account[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG\")\n}\n\nmodel TagGroup {\n id String @id @default(uuid())\n name String\n color String\n isExclusive Boolean @map(\"is_exclusive\")\n tags Tag[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG_GROUP\")\n}\n\nmodel Event {\n id String @id @default(uuid())\n name String\n date DateTime\n location String\n\n folderId String? @map(\"folder_id\")\n folder EventFolder? @relation(\"EVENT_FOLDER_X_EVENT\", fields: [folderId], references: [id], onDelete: Cascade)\n\n tagAssistedId String @unique @map(\"tag_assisted\")\n tagAssisted Tag @relation(\"EVENT_X_TAG_ASISTED\", fields: [tagAssistedId], references: [id])\n\n tagConfirmedId String @unique @map(\"tag_confirmed\")\n tagConfirmed Tag @relation(\"EVENT_X_TAG_CONFIRMED\", fields: [tagConfirmedId], references: [id])\n\n supraEventId String? @map(\"supra_event_id\")\n supraEvent Event? @relation(\"SubEvents\", fields: [supraEventId], references: [id], onDelete: Cascade)\n\n subEvents Event[] @relation(\"SubEvents\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT\")\n}\n\nmodel EventFolder {\n id String @id @default(uuid())\n name String\n color String\n events Event[] @relation(\"EVENT_FOLDER_X_EVENT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT_FOLDER\")\n}\n\nmodel Message {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json\n\n profilePhoneNumber String @map(\"profile_phone_number\")\n profile Profile @relation(\"PROFILE_X_MESSAGE\", fields: [profilePhoneNumber], references: [phoneNumber], onDelete: Cascade)\n\n state MessageState @default(SENT)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MESSAGE\")\n}\n\nmodel CannedResponse {\n id String @id @default(uuid())\n name String\n content String\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"CANNED_RESPONSE\")\n}\n\nmodel Enums {\n id String @id\n templateStatus TemplateStatus\n templateCategory TemplateCategory\n}\n\nenum TemplateStatus {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum TemplateCategory {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TagType {\n PROFILE\n EVENT\n PARTICIPANT\n NOT_IN_SYSTEM\n}\n\nenum MessageState {\n SENT\n RECEIVED\n SEEN\n}\n",
327
- "inlineSchemaHash": "60c48a393c3b4b9e93bb9a36d4fa70424c19748a34deb61b5a9f51d4fcaa16b1",
326
+ "inlineSchema": "generator toDist {\n output = \"../dist/types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ngenerator client {\n output = \"../types/prisma-schema\"\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Account {\n id String @id @default(uuid())\n username String @unique\n password String\n role Role @default(USER)\n\n comments Comment[] @relation(\"ACCOUNT_X_COMMENT\")\n solvableComments Comment[] @relation(\"ACCOUNT_X_SOLVED_COMMENT\")\n tags Tag[] @relation(\"ACCOUNT_X_TAG\")\n\n globalFilter Tag[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n isGlobalFilterActive Boolean @default(false) @map(\"is_global_filter_active\")\n fcmToken String[] @map(\"fcm_token\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ACCOUNT\")\n}\n\nenum Role {\n USER\n ADMIN\n FORM\n}\n\nmodel Profile {\n id String @id @default(uuid())\n shortId Int @map(\"short_id\")\n\n phoneNumber String @unique @map(\"phone_number\")\n secondaryPhoneNumber String? @unique @map(\"secondary_phone_number\")\n fullName String @map(\"full_name\")\n firstName String? @map(\"first_name\")\n gender String?\n birthDate DateTime? @map(\"birth_date\")\n profilePictureUrl String? @map(\"profile_picture_url\")\n instagram String?\n mail String?\n dni String?\n alternativeNames String[] @map(\"alternative_names\")\n\n comments Comment[] @relation(\"PROFILE_X_COMMENT\")\n messages Message[] @relation(\"PROFILE_X_MESSAGE\")\n tags Tag[] @relation(\"PROFILE_X_TAG\")\n\n birthLocationId String? @map(\"birth_location_id\")\n birthLocation Location? @relation(\"PROFILE_X_BIRTH_LOCATION\", fields: [birthLocationId], references: [id])\n\n residenceLocationId String? @map(\"residence_location_id\")\n residenceLocation Location? @relation(\"PROFILE_X_RESIDENCE_LOCATION\", fields: [residenceLocationId], references: [id])\n\n isInTrash Boolean @default(false) @map(\"is_in_trash\")\n movedToTrashDate DateTime? @map(\"moved_to_trash_date\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PROFILE\")\n}\n\nmodel Location {\n id String @id @default(uuid())\n latitude Float\n longitude Float\n country String\n state String\n city String\n\n birthProfiles Profile[] @relation(\"PROFILE_X_BIRTH_LOCATION\")\n residenceProfiles Profile[] @relation(\"PROFILE_X_RESIDENCE_LOCATION\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@unique([latitude, longitude])\n @@map(\"LOCATION\")\n}\n\nmodel Comment {\n id String @id @default(uuid())\n content String\n\n createdBy String @map(\"created_by\")\n account Account @relation(\"ACCOUNT_X_COMMENT\", fields: [createdBy], references: [id])\n\n profileId String @map(\"perfil_id\")\n profile Profile @relation(\"PROFILE_X_COMMENT\", fields: [profileId], references: [id], onDelete: Cascade)\n\n isSolvable Boolean @default(false) @map(\"is_solvable\")\n isSolved Boolean @default(false) @map(\"is_solved\")\n solvedAt DateTime? @map(\"solved_at\")\n\n solvedById String? @map(\"solved_by\")\n solvedBy Account? @relation(\"ACCOUNT_X_SOLVED_COMMENT\", fields: [solvedById], references: [id])\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMMENT\")\n}\n\nmodel Tag {\n id String @id @default(uuid())\n name String\n type TagType @default(PROFILE)\n\n groupId String @map(\"group_id\")\n group TagGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)\n\n assistedEvent Event? @relation(\"EVENT_X_TAG_ASISTED\")\n confirmedEvent Event? @relation(\"EVENT_X_TAG_CONFIRMED\")\n\n accounts Account[] @relation(\"ACCOUNT_X_TAG\")\n profiles Profile[] @relation(\"PROFILE_X_TAG\")\n accountsGlobalFilter Account[] @relation(\"GLOBAL_FILTER_X_ACCOUNT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG\")\n}\n\nmodel TagGroup {\n id String @id @default(uuid())\n name String\n color String\n isExclusive Boolean @map(\"is_exclusive\")\n tags Tag[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"TAG_GROUP\")\n}\n\nmodel Event {\n id String @id @default(uuid())\n name String\n date DateTime\n location String\n\n folderId String? @map(\"folder_id\")\n folder EventFolder? @relation(\"EVENT_FOLDER_X_EVENT\", fields: [folderId], references: [id], onDelete: Cascade)\n\n tagAssistedId String @unique @map(\"tag_assisted\")\n tagAssisted Tag @relation(\"EVENT_X_TAG_ASISTED\", fields: [tagAssistedId], references: [id])\n\n tagConfirmedId String @unique @map(\"tag_confirmed\")\n tagConfirmed Tag @relation(\"EVENT_X_TAG_CONFIRMED\", fields: [tagConfirmedId], references: [id])\n\n supraEventId String? @map(\"supra_event_id\")\n supraEvent Event? @relation(\"SubEvents\", fields: [supraEventId], references: [id], onDelete: Cascade)\n\n subEvents Event[] @relation(\"SubEvents\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT\")\n}\n\nmodel EventFolder {\n id String @id @default(uuid())\n name String\n color String\n events Event[] @relation(\"EVENT_FOLDER_X_EVENT\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENT_FOLDER\")\n}\n\nmodel Message {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json @db.JsonB\n\n profilePhoneNumber String @map(\"profile_phone_number\")\n profile Profile @relation(\"PROFILE_X_MESSAGE\", fields: [profilePhoneNumber], references: [phoneNumber], onDelete: Cascade)\n\n state MessageState @default(SENT)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MESSAGE\")\n}\n\nmodel CannedResponse {\n id String @id @default(uuid())\n name String\n content String\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"CANNED_RESPONSE\")\n}\n\nmodel Enums {\n id String @id\n templateStatus TemplateStatus\n templateCategory TemplateCategory\n}\n\nenum TemplateStatus {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum TemplateCategory {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TagType {\n PROFILE\n EVENT\n PARTICIPANT\n NOT_IN_SYSTEM\n}\n\nenum MessageState {\n SENT\n RECEIVED\n SEEN\n}\n",
327
+ "inlineSchemaHash": "368728e10a2fb61d59cca722c157f9345777f32b15fae0e2eedacfc62aa61899",
328
328
  "copyEngine": true
329
329
  }
330
330
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-c3c96bee47bcb2e2ad398bd01efd6c58dc55104d9aa5d15693c9b00c59b19c96",
2
+ "name": "prisma-client-4380651465c66ad5e966f54e40416183b884ad5d8dff1b50bb831b311ca83830",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -191,7 +191,7 @@ model EventFolder {
191
191
  model Message {
192
192
  id String @id @default(uuid())
193
193
  wamId String @unique @map("wam_id")
194
- message Json
194
+ message Json @db.JsonB
195
195
 
196
196
  profilePhoneNumber String @map("profile_phone_number")
197
197
  profile Profile @relation("PROFILE_X_MESSAGE", fields: [profilePhoneNumber], references: [phoneNumber], onDelete: Cascade)
@@ -527,6 +527,22 @@ export interface paths {
527
527
  patch?: never;
528
528
  trace?: never;
529
529
  };
530
+ "/profile/all-with-active-chat": {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ get: operations["ProfileController_findAllWithActiveChat"];
538
+ put?: never;
539
+ post?: never;
540
+ delete?: never;
541
+ options?: never;
542
+ head?: never;
543
+ patch?: never;
544
+ trace?: never;
545
+ };
530
546
  "/profile/find-by-tags": {
531
547
  parameters: {
532
548
  query?: never;
@@ -1208,6 +1224,59 @@ export interface components {
1208
1224
  }[];
1209
1225
  }[];
1210
1226
  };
1227
+ FindWithActiveChatResponseDto: {
1228
+ profiles: {
1229
+ id: string;
1230
+ shortId: number;
1231
+ phoneNumber: string;
1232
+ secondaryPhoneNumber: null;
1233
+ fullName: string;
1234
+ firstName: null;
1235
+ gender: null;
1236
+ birthDate: null;
1237
+ profilePictureUrl: null;
1238
+ instagram: null;
1239
+ mail: null;
1240
+ dni: null;
1241
+ alternativeNames: string[];
1242
+ birthLocationId: null;
1243
+ residenceLocationId: null;
1244
+ isInTrash: boolean;
1245
+ movedToTrashDate: null;
1246
+ created_at: string;
1247
+ updated_at: string;
1248
+ tags: {
1249
+ id: string;
1250
+ name: string;
1251
+ groupId: string;
1252
+ type: "PROFILE" | "EVENT" | "PARTICIPANT" | "NOT_IN_SYSTEM";
1253
+ created_at: string;
1254
+ updated_at: string;
1255
+ }[];
1256
+ inChat: boolean;
1257
+ messages: {
1258
+ state: "SENT" | "RECEIVED" | "SEEN";
1259
+ message: {
1260
+ id: string;
1261
+ from?: string;
1262
+ to?: string;
1263
+ timestamp: number;
1264
+ text: {
1265
+ body: string;
1266
+ };
1267
+ type: "text";
1268
+ } | {
1269
+ id: string;
1270
+ from?: string;
1271
+ to?: string;
1272
+ timestamp: number;
1273
+ templateName: string;
1274
+ type: "template";
1275
+ };
1276
+ created_at: string;
1277
+ }[];
1278
+ }[];
1279
+ };
1211
1280
  FindByTagsProfileResponseDto: {
1212
1281
  profiles: {
1213
1282
  id: string;
@@ -2463,6 +2532,25 @@ export interface operations {
2463
2532
  };
2464
2533
  };
2465
2534
  };
2535
+ ProfileController_findAllWithActiveChat: {
2536
+ parameters: {
2537
+ query?: never;
2538
+ header?: never;
2539
+ path?: never;
2540
+ cookie?: never;
2541
+ };
2542
+ requestBody?: never;
2543
+ responses: {
2544
+ 200: {
2545
+ headers: {
2546
+ [name: string]: unknown;
2547
+ };
2548
+ content: {
2549
+ "application/json": components["schemas"]["FindWithActiveChatResponseDto"];
2550
+ };
2551
+ };
2552
+ };
2553
+ };
2466
2554
  ProfileController_findByTag: {
2467
2555
  parameters: {
2468
2556
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-EXPO-249-EB-Modelo.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -49,6 +49,7 @@
49
49
  "class-transformer": "^0.5.1",
50
50
  "class-validator": "^0.14.1",
51
51
  "country-state-city": "^3.2.1",
52
+ "date-fns": "^4.1.0",
52
53
  "i18n-js": "^4.4.3",
53
54
  "json-to-pretty-yaml": "^1.2.2",
54
55
  "openapi3-ts": "^4.4.0",