@kl1/contracts 1.1.49 → 1.1.50
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.
- package/dist/api-contracts/src/channel/index.d.ts +663 -1
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/validation.d.ts +10 -0
- package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +5 -2
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/index.d.ts +12 -0
- package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contact/validation.d.ts +6 -0
- package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +21113 -667
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/account-contract.d.ts +11 -11
- package/dist/api-contracts/src/mail/index.d.ts +2 -1
- package/dist/api-contracts/src/mail/index.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +29000 -7921
- package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-server-contract.d.ts +6 -6
- package/dist/api-contracts/src/mail/message-contract.d.ts +5033 -67
- package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/room-contract.d.ts +18048 -1933
- package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +7 -4
- package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/message.schema.d.ts +762 -40
- package/dist/api-contracts/src/mail/schemas/message.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +5639 -347
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +5635 -304
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telegram/index.d.ts +216 -1430
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
- package/dist/index.js +1095 -880
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1094 -880
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -16,94 +16,628 @@ export declare const MessageSchema: z.ZodObject<{
|
|
16
16
|
date: z.ZodDate;
|
17
17
|
action: z.ZodString;
|
18
18
|
unseen: z.ZodBoolean;
|
19
|
+
sendAt: z.ZodDate;
|
20
|
+
starred: z.ZodBoolean;
|
19
21
|
seemsLikeNew: z.ZodBoolean;
|
20
22
|
from: z.ZodArray<z.ZodObject<{
|
21
23
|
id: z.ZodString;
|
22
24
|
createdAt: z.ZodDate;
|
23
25
|
updatedAt: z.ZodDate;
|
24
26
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
25
|
-
|
26
|
-
|
27
|
+
roomId: z.ZodString;
|
28
|
+
messageId: z.ZodString;
|
29
|
+
mailUserId: z.ZodString;
|
30
|
+
mailUser: z.ZodObject<{
|
31
|
+
id: z.ZodString;
|
32
|
+
createdAt: z.ZodDate;
|
33
|
+
updatedAt: z.ZodDate;
|
34
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
35
|
+
name: z.ZodString;
|
36
|
+
address: z.ZodString;
|
37
|
+
contactId: z.ZodString;
|
38
|
+
contact: z.ZodObject<{
|
39
|
+
id: z.ZodString;
|
40
|
+
createdAt: z.ZodDate;
|
41
|
+
updatedAt: z.ZodDate;
|
42
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
43
|
+
name: z.ZodString;
|
44
|
+
address: z.ZodNullable<z.ZodString>;
|
45
|
+
channel: z.ZodNullable<z.ZodString>;
|
46
|
+
notes: z.ZodNullable<z.ZodString>;
|
47
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
48
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
50
|
+
id: string;
|
51
|
+
channel: string | null;
|
52
|
+
address: string | null;
|
53
|
+
name: string;
|
54
|
+
createdAt: Date;
|
55
|
+
updatedAt: Date;
|
56
|
+
deletedAt: Date | null;
|
57
|
+
notes: string | null;
|
58
|
+
contactProfile: string | null;
|
59
|
+
socialProfileUrl: string | null;
|
60
|
+
}, {
|
61
|
+
id: string;
|
62
|
+
channel: string | null;
|
63
|
+
address: string | null;
|
64
|
+
name: string;
|
65
|
+
createdAt: Date;
|
66
|
+
updatedAt: Date;
|
67
|
+
deletedAt: Date | null;
|
68
|
+
notes: string | null;
|
69
|
+
contactProfile: string | null;
|
70
|
+
socialProfileUrl: string | null;
|
71
|
+
}>;
|
72
|
+
isNewContact: z.ZodBoolean;
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
74
|
+
id: string;
|
75
|
+
address: string;
|
76
|
+
name: string;
|
77
|
+
createdAt: Date;
|
78
|
+
updatedAt: Date;
|
79
|
+
deletedAt: Date | null;
|
80
|
+
contact: {
|
81
|
+
id: string;
|
82
|
+
channel: string | null;
|
83
|
+
address: string | null;
|
84
|
+
name: string;
|
85
|
+
createdAt: Date;
|
86
|
+
updatedAt: Date;
|
87
|
+
deletedAt: Date | null;
|
88
|
+
notes: string | null;
|
89
|
+
contactProfile: string | null;
|
90
|
+
socialProfileUrl: string | null;
|
91
|
+
};
|
92
|
+
contactId: string;
|
93
|
+
isNewContact: boolean;
|
94
|
+
}, {
|
95
|
+
id: string;
|
96
|
+
address: string;
|
97
|
+
name: string;
|
98
|
+
createdAt: Date;
|
99
|
+
updatedAt: Date;
|
100
|
+
deletedAt: Date | null;
|
101
|
+
contact: {
|
102
|
+
id: string;
|
103
|
+
channel: string | null;
|
104
|
+
address: string | null;
|
105
|
+
name: string;
|
106
|
+
createdAt: Date;
|
107
|
+
updatedAt: Date;
|
108
|
+
deletedAt: Date | null;
|
109
|
+
notes: string | null;
|
110
|
+
contactProfile: string | null;
|
111
|
+
socialProfileUrl: string | null;
|
112
|
+
};
|
113
|
+
contactId: string;
|
114
|
+
isNewContact: boolean;
|
115
|
+
}>;
|
27
116
|
}, "strip", z.ZodTypeAny, {
|
28
117
|
id: string;
|
29
|
-
address: string;
|
30
|
-
name: string;
|
31
118
|
createdAt: Date;
|
32
119
|
updatedAt: Date;
|
33
120
|
deletedAt: Date | null;
|
121
|
+
roomId: string;
|
122
|
+
messageId: string;
|
123
|
+
mailUserId: string;
|
124
|
+
mailUser: {
|
125
|
+
id: string;
|
126
|
+
address: string;
|
127
|
+
name: string;
|
128
|
+
createdAt: Date;
|
129
|
+
updatedAt: Date;
|
130
|
+
deletedAt: Date | null;
|
131
|
+
contact: {
|
132
|
+
id: string;
|
133
|
+
channel: string | null;
|
134
|
+
address: string | null;
|
135
|
+
name: string;
|
136
|
+
createdAt: Date;
|
137
|
+
updatedAt: Date;
|
138
|
+
deletedAt: Date | null;
|
139
|
+
notes: string | null;
|
140
|
+
contactProfile: string | null;
|
141
|
+
socialProfileUrl: string | null;
|
142
|
+
};
|
143
|
+
contactId: string;
|
144
|
+
isNewContact: boolean;
|
145
|
+
};
|
34
146
|
}, {
|
35
147
|
id: string;
|
36
|
-
address: string;
|
37
|
-
name: string;
|
38
148
|
createdAt: Date;
|
39
149
|
updatedAt: Date;
|
40
150
|
deletedAt: Date | null;
|
151
|
+
roomId: string;
|
152
|
+
messageId: string;
|
153
|
+
mailUserId: string;
|
154
|
+
mailUser: {
|
155
|
+
id: string;
|
156
|
+
address: string;
|
157
|
+
name: string;
|
158
|
+
createdAt: Date;
|
159
|
+
updatedAt: Date;
|
160
|
+
deletedAt: Date | null;
|
161
|
+
contact: {
|
162
|
+
id: string;
|
163
|
+
channel: string | null;
|
164
|
+
address: string | null;
|
165
|
+
name: string;
|
166
|
+
createdAt: Date;
|
167
|
+
updatedAt: Date;
|
168
|
+
deletedAt: Date | null;
|
169
|
+
notes: string | null;
|
170
|
+
contactProfile: string | null;
|
171
|
+
socialProfileUrl: string | null;
|
172
|
+
};
|
173
|
+
contactId: string;
|
174
|
+
isNewContact: boolean;
|
175
|
+
};
|
41
176
|
}>, "many">;
|
42
177
|
to: z.ZodArray<z.ZodObject<{
|
43
178
|
id: z.ZodString;
|
44
179
|
createdAt: z.ZodDate;
|
45
180
|
updatedAt: z.ZodDate;
|
46
181
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
47
|
-
|
48
|
-
|
182
|
+
roomId: z.ZodString;
|
183
|
+
messageId: z.ZodString;
|
184
|
+
mailUserId: z.ZodString;
|
185
|
+
mailUser: z.ZodObject<{
|
186
|
+
id: z.ZodString;
|
187
|
+
createdAt: z.ZodDate;
|
188
|
+
updatedAt: z.ZodDate;
|
189
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
190
|
+
name: z.ZodString;
|
191
|
+
address: z.ZodString;
|
192
|
+
contactId: z.ZodString;
|
193
|
+
contact: z.ZodObject<{
|
194
|
+
id: z.ZodString;
|
195
|
+
createdAt: z.ZodDate;
|
196
|
+
updatedAt: z.ZodDate;
|
197
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
198
|
+
name: z.ZodString;
|
199
|
+
address: z.ZodNullable<z.ZodString>;
|
200
|
+
channel: z.ZodNullable<z.ZodString>;
|
201
|
+
notes: z.ZodNullable<z.ZodString>;
|
202
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
203
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
205
|
+
id: string;
|
206
|
+
channel: string | null;
|
207
|
+
address: string | null;
|
208
|
+
name: string;
|
209
|
+
createdAt: Date;
|
210
|
+
updatedAt: Date;
|
211
|
+
deletedAt: Date | null;
|
212
|
+
notes: string | null;
|
213
|
+
contactProfile: string | null;
|
214
|
+
socialProfileUrl: string | null;
|
215
|
+
}, {
|
216
|
+
id: string;
|
217
|
+
channel: string | null;
|
218
|
+
address: string | null;
|
219
|
+
name: string;
|
220
|
+
createdAt: Date;
|
221
|
+
updatedAt: Date;
|
222
|
+
deletedAt: Date | null;
|
223
|
+
notes: string | null;
|
224
|
+
contactProfile: string | null;
|
225
|
+
socialProfileUrl: string | null;
|
226
|
+
}>;
|
227
|
+
isNewContact: z.ZodBoolean;
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
229
|
+
id: string;
|
230
|
+
address: string;
|
231
|
+
name: string;
|
232
|
+
createdAt: Date;
|
233
|
+
updatedAt: Date;
|
234
|
+
deletedAt: Date | null;
|
235
|
+
contact: {
|
236
|
+
id: string;
|
237
|
+
channel: string | null;
|
238
|
+
address: string | null;
|
239
|
+
name: string;
|
240
|
+
createdAt: Date;
|
241
|
+
updatedAt: Date;
|
242
|
+
deletedAt: Date | null;
|
243
|
+
notes: string | null;
|
244
|
+
contactProfile: string | null;
|
245
|
+
socialProfileUrl: string | null;
|
246
|
+
};
|
247
|
+
contactId: string;
|
248
|
+
isNewContact: boolean;
|
249
|
+
}, {
|
250
|
+
id: string;
|
251
|
+
address: string;
|
252
|
+
name: string;
|
253
|
+
createdAt: Date;
|
254
|
+
updatedAt: Date;
|
255
|
+
deletedAt: Date | null;
|
256
|
+
contact: {
|
257
|
+
id: string;
|
258
|
+
channel: string | null;
|
259
|
+
address: string | null;
|
260
|
+
name: string;
|
261
|
+
createdAt: Date;
|
262
|
+
updatedAt: Date;
|
263
|
+
deletedAt: Date | null;
|
264
|
+
notes: string | null;
|
265
|
+
contactProfile: string | null;
|
266
|
+
socialProfileUrl: string | null;
|
267
|
+
};
|
268
|
+
contactId: string;
|
269
|
+
isNewContact: boolean;
|
270
|
+
}>;
|
49
271
|
}, "strip", z.ZodTypeAny, {
|
50
272
|
id: string;
|
51
|
-
address: string;
|
52
|
-
name: string;
|
53
273
|
createdAt: Date;
|
54
274
|
updatedAt: Date;
|
55
275
|
deletedAt: Date | null;
|
276
|
+
roomId: string;
|
277
|
+
messageId: string;
|
278
|
+
mailUserId: string;
|
279
|
+
mailUser: {
|
280
|
+
id: string;
|
281
|
+
address: string;
|
282
|
+
name: string;
|
283
|
+
createdAt: Date;
|
284
|
+
updatedAt: Date;
|
285
|
+
deletedAt: Date | null;
|
286
|
+
contact: {
|
287
|
+
id: string;
|
288
|
+
channel: string | null;
|
289
|
+
address: string | null;
|
290
|
+
name: string;
|
291
|
+
createdAt: Date;
|
292
|
+
updatedAt: Date;
|
293
|
+
deletedAt: Date | null;
|
294
|
+
notes: string | null;
|
295
|
+
contactProfile: string | null;
|
296
|
+
socialProfileUrl: string | null;
|
297
|
+
};
|
298
|
+
contactId: string;
|
299
|
+
isNewContact: boolean;
|
300
|
+
};
|
56
301
|
}, {
|
57
302
|
id: string;
|
58
|
-
address: string;
|
59
|
-
name: string;
|
60
303
|
createdAt: Date;
|
61
304
|
updatedAt: Date;
|
62
305
|
deletedAt: Date | null;
|
306
|
+
roomId: string;
|
307
|
+
messageId: string;
|
308
|
+
mailUserId: string;
|
309
|
+
mailUser: {
|
310
|
+
id: string;
|
311
|
+
address: string;
|
312
|
+
name: string;
|
313
|
+
createdAt: Date;
|
314
|
+
updatedAt: Date;
|
315
|
+
deletedAt: Date | null;
|
316
|
+
contact: {
|
317
|
+
id: string;
|
318
|
+
channel: string | null;
|
319
|
+
address: string | null;
|
320
|
+
name: string;
|
321
|
+
createdAt: Date;
|
322
|
+
updatedAt: Date;
|
323
|
+
deletedAt: Date | null;
|
324
|
+
notes: string | null;
|
325
|
+
contactProfile: string | null;
|
326
|
+
socialProfileUrl: string | null;
|
327
|
+
};
|
328
|
+
contactId: string;
|
329
|
+
isNewContact: boolean;
|
330
|
+
};
|
63
331
|
}>, "many">;
|
64
332
|
cc: z.ZodArray<z.ZodObject<{
|
65
333
|
id: z.ZodString;
|
66
334
|
createdAt: z.ZodDate;
|
67
335
|
updatedAt: z.ZodDate;
|
68
336
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
69
|
-
|
70
|
-
|
337
|
+
roomId: z.ZodString;
|
338
|
+
messageId: z.ZodString;
|
339
|
+
mailUserId: z.ZodString;
|
340
|
+
mailUser: z.ZodObject<{
|
341
|
+
id: z.ZodString;
|
342
|
+
createdAt: z.ZodDate;
|
343
|
+
updatedAt: z.ZodDate;
|
344
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
345
|
+
name: z.ZodString;
|
346
|
+
address: z.ZodString;
|
347
|
+
contactId: z.ZodString;
|
348
|
+
contact: z.ZodObject<{
|
349
|
+
id: z.ZodString;
|
350
|
+
createdAt: z.ZodDate;
|
351
|
+
updatedAt: z.ZodDate;
|
352
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
353
|
+
name: z.ZodString;
|
354
|
+
address: z.ZodNullable<z.ZodString>;
|
355
|
+
channel: z.ZodNullable<z.ZodString>;
|
356
|
+
notes: z.ZodNullable<z.ZodString>;
|
357
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
358
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
360
|
+
id: string;
|
361
|
+
channel: string | null;
|
362
|
+
address: string | null;
|
363
|
+
name: string;
|
364
|
+
createdAt: Date;
|
365
|
+
updatedAt: Date;
|
366
|
+
deletedAt: Date | null;
|
367
|
+
notes: string | null;
|
368
|
+
contactProfile: string | null;
|
369
|
+
socialProfileUrl: string | null;
|
370
|
+
}, {
|
371
|
+
id: string;
|
372
|
+
channel: string | null;
|
373
|
+
address: string | null;
|
374
|
+
name: string;
|
375
|
+
createdAt: Date;
|
376
|
+
updatedAt: Date;
|
377
|
+
deletedAt: Date | null;
|
378
|
+
notes: string | null;
|
379
|
+
contactProfile: string | null;
|
380
|
+
socialProfileUrl: string | null;
|
381
|
+
}>;
|
382
|
+
isNewContact: z.ZodBoolean;
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
384
|
+
id: string;
|
385
|
+
address: string;
|
386
|
+
name: string;
|
387
|
+
createdAt: Date;
|
388
|
+
updatedAt: Date;
|
389
|
+
deletedAt: Date | null;
|
390
|
+
contact: {
|
391
|
+
id: string;
|
392
|
+
channel: string | null;
|
393
|
+
address: string | null;
|
394
|
+
name: string;
|
395
|
+
createdAt: Date;
|
396
|
+
updatedAt: Date;
|
397
|
+
deletedAt: Date | null;
|
398
|
+
notes: string | null;
|
399
|
+
contactProfile: string | null;
|
400
|
+
socialProfileUrl: string | null;
|
401
|
+
};
|
402
|
+
contactId: string;
|
403
|
+
isNewContact: boolean;
|
404
|
+
}, {
|
405
|
+
id: string;
|
406
|
+
address: string;
|
407
|
+
name: string;
|
408
|
+
createdAt: Date;
|
409
|
+
updatedAt: Date;
|
410
|
+
deletedAt: Date | null;
|
411
|
+
contact: {
|
412
|
+
id: string;
|
413
|
+
channel: string | null;
|
414
|
+
address: string | null;
|
415
|
+
name: string;
|
416
|
+
createdAt: Date;
|
417
|
+
updatedAt: Date;
|
418
|
+
deletedAt: Date | null;
|
419
|
+
notes: string | null;
|
420
|
+
contactProfile: string | null;
|
421
|
+
socialProfileUrl: string | null;
|
422
|
+
};
|
423
|
+
contactId: string;
|
424
|
+
isNewContact: boolean;
|
425
|
+
}>;
|
71
426
|
}, "strip", z.ZodTypeAny, {
|
72
427
|
id: string;
|
73
|
-
address: string;
|
74
|
-
name: string;
|
75
428
|
createdAt: Date;
|
76
429
|
updatedAt: Date;
|
77
430
|
deletedAt: Date | null;
|
431
|
+
roomId: string;
|
432
|
+
messageId: string;
|
433
|
+
mailUserId: string;
|
434
|
+
mailUser: {
|
435
|
+
id: string;
|
436
|
+
address: string;
|
437
|
+
name: string;
|
438
|
+
createdAt: Date;
|
439
|
+
updatedAt: Date;
|
440
|
+
deletedAt: Date | null;
|
441
|
+
contact: {
|
442
|
+
id: string;
|
443
|
+
channel: string | null;
|
444
|
+
address: string | null;
|
445
|
+
name: string;
|
446
|
+
createdAt: Date;
|
447
|
+
updatedAt: Date;
|
448
|
+
deletedAt: Date | null;
|
449
|
+
notes: string | null;
|
450
|
+
contactProfile: string | null;
|
451
|
+
socialProfileUrl: string | null;
|
452
|
+
};
|
453
|
+
contactId: string;
|
454
|
+
isNewContact: boolean;
|
455
|
+
};
|
78
456
|
}, {
|
79
457
|
id: string;
|
80
|
-
address: string;
|
81
|
-
name: string;
|
82
458
|
createdAt: Date;
|
83
459
|
updatedAt: Date;
|
84
460
|
deletedAt: Date | null;
|
461
|
+
roomId: string;
|
462
|
+
messageId: string;
|
463
|
+
mailUserId: string;
|
464
|
+
mailUser: {
|
465
|
+
id: string;
|
466
|
+
address: string;
|
467
|
+
name: string;
|
468
|
+
createdAt: Date;
|
469
|
+
updatedAt: Date;
|
470
|
+
deletedAt: Date | null;
|
471
|
+
contact: {
|
472
|
+
id: string;
|
473
|
+
channel: string | null;
|
474
|
+
address: string | null;
|
475
|
+
name: string;
|
476
|
+
createdAt: Date;
|
477
|
+
updatedAt: Date;
|
478
|
+
deletedAt: Date | null;
|
479
|
+
notes: string | null;
|
480
|
+
contactProfile: string | null;
|
481
|
+
socialProfileUrl: string | null;
|
482
|
+
};
|
483
|
+
contactId: string;
|
484
|
+
isNewContact: boolean;
|
485
|
+
};
|
85
486
|
}>, "many">;
|
86
487
|
bcc: z.ZodArray<z.ZodObject<{
|
87
488
|
id: z.ZodString;
|
88
489
|
createdAt: z.ZodDate;
|
89
490
|
updatedAt: z.ZodDate;
|
90
491
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
91
|
-
|
92
|
-
|
492
|
+
roomId: z.ZodString;
|
493
|
+
messageId: z.ZodString;
|
494
|
+
mailUserId: z.ZodString;
|
495
|
+
mailUser: z.ZodObject<{
|
496
|
+
id: z.ZodString;
|
497
|
+
createdAt: z.ZodDate;
|
498
|
+
updatedAt: z.ZodDate;
|
499
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
500
|
+
name: z.ZodString;
|
501
|
+
address: z.ZodString;
|
502
|
+
contactId: z.ZodString;
|
503
|
+
contact: z.ZodObject<{
|
504
|
+
id: z.ZodString;
|
505
|
+
createdAt: z.ZodDate;
|
506
|
+
updatedAt: z.ZodDate;
|
507
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
508
|
+
name: z.ZodString;
|
509
|
+
address: z.ZodNullable<z.ZodString>;
|
510
|
+
channel: z.ZodNullable<z.ZodString>;
|
511
|
+
notes: z.ZodNullable<z.ZodString>;
|
512
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
513
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
515
|
+
id: string;
|
516
|
+
channel: string | null;
|
517
|
+
address: string | null;
|
518
|
+
name: string;
|
519
|
+
createdAt: Date;
|
520
|
+
updatedAt: Date;
|
521
|
+
deletedAt: Date | null;
|
522
|
+
notes: string | null;
|
523
|
+
contactProfile: string | null;
|
524
|
+
socialProfileUrl: string | null;
|
525
|
+
}, {
|
526
|
+
id: string;
|
527
|
+
channel: string | null;
|
528
|
+
address: string | null;
|
529
|
+
name: string;
|
530
|
+
createdAt: Date;
|
531
|
+
updatedAt: Date;
|
532
|
+
deletedAt: Date | null;
|
533
|
+
notes: string | null;
|
534
|
+
contactProfile: string | null;
|
535
|
+
socialProfileUrl: string | null;
|
536
|
+
}>;
|
537
|
+
isNewContact: z.ZodBoolean;
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
539
|
+
id: string;
|
540
|
+
address: string;
|
541
|
+
name: string;
|
542
|
+
createdAt: Date;
|
543
|
+
updatedAt: Date;
|
544
|
+
deletedAt: Date | null;
|
545
|
+
contact: {
|
546
|
+
id: string;
|
547
|
+
channel: string | null;
|
548
|
+
address: string | null;
|
549
|
+
name: string;
|
550
|
+
createdAt: Date;
|
551
|
+
updatedAt: Date;
|
552
|
+
deletedAt: Date | null;
|
553
|
+
notes: string | null;
|
554
|
+
contactProfile: string | null;
|
555
|
+
socialProfileUrl: string | null;
|
556
|
+
};
|
557
|
+
contactId: string;
|
558
|
+
isNewContact: boolean;
|
559
|
+
}, {
|
560
|
+
id: string;
|
561
|
+
address: string;
|
562
|
+
name: string;
|
563
|
+
createdAt: Date;
|
564
|
+
updatedAt: Date;
|
565
|
+
deletedAt: Date | null;
|
566
|
+
contact: {
|
567
|
+
id: string;
|
568
|
+
channel: string | null;
|
569
|
+
address: string | null;
|
570
|
+
name: string;
|
571
|
+
createdAt: Date;
|
572
|
+
updatedAt: Date;
|
573
|
+
deletedAt: Date | null;
|
574
|
+
notes: string | null;
|
575
|
+
contactProfile: string | null;
|
576
|
+
socialProfileUrl: string | null;
|
577
|
+
};
|
578
|
+
contactId: string;
|
579
|
+
isNewContact: boolean;
|
580
|
+
}>;
|
93
581
|
}, "strip", z.ZodTypeAny, {
|
94
582
|
id: string;
|
95
|
-
address: string;
|
96
|
-
name: string;
|
97
583
|
createdAt: Date;
|
98
584
|
updatedAt: Date;
|
99
585
|
deletedAt: Date | null;
|
586
|
+
roomId: string;
|
587
|
+
messageId: string;
|
588
|
+
mailUserId: string;
|
589
|
+
mailUser: {
|
590
|
+
id: string;
|
591
|
+
address: string;
|
592
|
+
name: string;
|
593
|
+
createdAt: Date;
|
594
|
+
updatedAt: Date;
|
595
|
+
deletedAt: Date | null;
|
596
|
+
contact: {
|
597
|
+
id: string;
|
598
|
+
channel: string | null;
|
599
|
+
address: string | null;
|
600
|
+
name: string;
|
601
|
+
createdAt: Date;
|
602
|
+
updatedAt: Date;
|
603
|
+
deletedAt: Date | null;
|
604
|
+
notes: string | null;
|
605
|
+
contactProfile: string | null;
|
606
|
+
socialProfileUrl: string | null;
|
607
|
+
};
|
608
|
+
contactId: string;
|
609
|
+
isNewContact: boolean;
|
610
|
+
};
|
100
611
|
}, {
|
101
612
|
id: string;
|
102
|
-
address: string;
|
103
|
-
name: string;
|
104
613
|
createdAt: Date;
|
105
614
|
updatedAt: Date;
|
106
615
|
deletedAt: Date | null;
|
616
|
+
roomId: string;
|
617
|
+
messageId: string;
|
618
|
+
mailUserId: string;
|
619
|
+
mailUser: {
|
620
|
+
id: string;
|
621
|
+
address: string;
|
622
|
+
name: string;
|
623
|
+
createdAt: Date;
|
624
|
+
updatedAt: Date;
|
625
|
+
deletedAt: Date | null;
|
626
|
+
contact: {
|
627
|
+
id: string;
|
628
|
+
channel: string | null;
|
629
|
+
address: string | null;
|
630
|
+
name: string;
|
631
|
+
createdAt: Date;
|
632
|
+
updatedAt: Date;
|
633
|
+
deletedAt: Date | null;
|
634
|
+
notes: string | null;
|
635
|
+
contactProfile: string | null;
|
636
|
+
socialProfileUrl: string | null;
|
637
|
+
};
|
638
|
+
contactId: string;
|
639
|
+
isNewContact: boolean;
|
640
|
+
};
|
107
641
|
}>, "many">;
|
108
642
|
attachments: z.ZodArray<z.ZodObject<{
|
109
643
|
id: z.ZodString;
|
@@ -208,11 +742,34 @@ export declare const MessageSchema: z.ZodObject<{
|
|
208
742
|
roomId: string;
|
209
743
|
from: {
|
210
744
|
id: string;
|
211
|
-
address: string;
|
212
|
-
name: string;
|
213
745
|
createdAt: Date;
|
214
746
|
updatedAt: Date;
|
215
747
|
deletedAt: Date | null;
|
748
|
+
roomId: string;
|
749
|
+
messageId: string;
|
750
|
+
mailUserId: string;
|
751
|
+
mailUser: {
|
752
|
+
id: string;
|
753
|
+
address: string;
|
754
|
+
name: string;
|
755
|
+
createdAt: Date;
|
756
|
+
updatedAt: Date;
|
757
|
+
deletedAt: Date | null;
|
758
|
+
contact: {
|
759
|
+
id: string;
|
760
|
+
channel: string | null;
|
761
|
+
address: string | null;
|
762
|
+
name: string;
|
763
|
+
createdAt: Date;
|
764
|
+
updatedAt: Date;
|
765
|
+
deletedAt: Date | null;
|
766
|
+
notes: string | null;
|
767
|
+
contactProfile: string | null;
|
768
|
+
socialProfileUrl: string | null;
|
769
|
+
};
|
770
|
+
contactId: string;
|
771
|
+
isNewContact: boolean;
|
772
|
+
};
|
216
773
|
}[];
|
217
774
|
attachments: {
|
218
775
|
id: string;
|
@@ -241,28 +798,98 @@ export declare const MessageSchema: z.ZodObject<{
|
|
241
798
|
subject: string;
|
242
799
|
to: {
|
243
800
|
id: string;
|
244
|
-
address: string;
|
245
|
-
name: string;
|
246
801
|
createdAt: Date;
|
247
802
|
updatedAt: Date;
|
248
803
|
deletedAt: Date | null;
|
804
|
+
roomId: string;
|
805
|
+
messageId: string;
|
806
|
+
mailUserId: string;
|
807
|
+
mailUser: {
|
808
|
+
id: string;
|
809
|
+
address: string;
|
810
|
+
name: string;
|
811
|
+
createdAt: Date;
|
812
|
+
updatedAt: Date;
|
813
|
+
deletedAt: Date | null;
|
814
|
+
contact: {
|
815
|
+
id: string;
|
816
|
+
channel: string | null;
|
817
|
+
address: string | null;
|
818
|
+
name: string;
|
819
|
+
createdAt: Date;
|
820
|
+
updatedAt: Date;
|
821
|
+
deletedAt: Date | null;
|
822
|
+
notes: string | null;
|
823
|
+
contactProfile: string | null;
|
824
|
+
socialProfileUrl: string | null;
|
825
|
+
};
|
826
|
+
contactId: string;
|
827
|
+
isNewContact: boolean;
|
828
|
+
};
|
249
829
|
}[];
|
250
830
|
cc: {
|
251
831
|
id: string;
|
252
|
-
address: string;
|
253
|
-
name: string;
|
254
832
|
createdAt: Date;
|
255
833
|
updatedAt: Date;
|
256
834
|
deletedAt: Date | null;
|
835
|
+
roomId: string;
|
836
|
+
messageId: string;
|
837
|
+
mailUserId: string;
|
838
|
+
mailUser: {
|
839
|
+
id: string;
|
840
|
+
address: string;
|
841
|
+
name: string;
|
842
|
+
createdAt: Date;
|
843
|
+
updatedAt: Date;
|
844
|
+
deletedAt: Date | null;
|
845
|
+
contact: {
|
846
|
+
id: string;
|
847
|
+
channel: string | null;
|
848
|
+
address: string | null;
|
849
|
+
name: string;
|
850
|
+
createdAt: Date;
|
851
|
+
updatedAt: Date;
|
852
|
+
deletedAt: Date | null;
|
853
|
+
notes: string | null;
|
854
|
+
contactProfile: string | null;
|
855
|
+
socialProfileUrl: string | null;
|
856
|
+
};
|
857
|
+
contactId: string;
|
858
|
+
isNewContact: boolean;
|
859
|
+
};
|
257
860
|
}[];
|
258
861
|
bcc: {
|
259
862
|
id: string;
|
260
|
-
address: string;
|
261
|
-
name: string;
|
262
863
|
createdAt: Date;
|
263
864
|
updatedAt: Date;
|
264
865
|
deletedAt: Date | null;
|
866
|
+
roomId: string;
|
867
|
+
messageId: string;
|
868
|
+
mailUserId: string;
|
869
|
+
mailUser: {
|
870
|
+
id: string;
|
871
|
+
address: string;
|
872
|
+
name: string;
|
873
|
+
createdAt: Date;
|
874
|
+
updatedAt: Date;
|
875
|
+
deletedAt: Date | null;
|
876
|
+
contact: {
|
877
|
+
id: string;
|
878
|
+
channel: string | null;
|
879
|
+
address: string | null;
|
880
|
+
name: string;
|
881
|
+
createdAt: Date;
|
882
|
+
updatedAt: Date;
|
883
|
+
deletedAt: Date | null;
|
884
|
+
notes: string | null;
|
885
|
+
contactProfile: string | null;
|
886
|
+
socialProfileUrl: string | null;
|
887
|
+
};
|
888
|
+
contactId: string;
|
889
|
+
isNewContact: boolean;
|
890
|
+
};
|
265
891
|
}[];
|
892
|
+
sendAt: Date;
|
266
893
|
textPlain: string;
|
267
894
|
textHtml: string;
|
268
895
|
textId: string;
|
@@ -270,6 +897,7 @@ export declare const MessageSchema: z.ZodObject<{
|
|
270
897
|
emailEngineMessageId: string;
|
271
898
|
emailEngineReplyTo: string | null;
|
272
899
|
unseen: boolean;
|
900
|
+
starred: boolean;
|
273
901
|
seemsLikeNew: boolean;
|
274
902
|
}, {
|
275
903
|
id: string;
|
@@ -282,11 +910,34 @@ export declare const MessageSchema: z.ZodObject<{
|
|
282
910
|
roomId: string;
|
283
911
|
from: {
|
284
912
|
id: string;
|
285
|
-
address: string;
|
286
|
-
name: string;
|
287
913
|
createdAt: Date;
|
288
914
|
updatedAt: Date;
|
289
915
|
deletedAt: Date | null;
|
916
|
+
roomId: string;
|
917
|
+
messageId: string;
|
918
|
+
mailUserId: string;
|
919
|
+
mailUser: {
|
920
|
+
id: string;
|
921
|
+
address: string;
|
922
|
+
name: string;
|
923
|
+
createdAt: Date;
|
924
|
+
updatedAt: Date;
|
925
|
+
deletedAt: Date | null;
|
926
|
+
contact: {
|
927
|
+
id: string;
|
928
|
+
channel: string | null;
|
929
|
+
address: string | null;
|
930
|
+
name: string;
|
931
|
+
createdAt: Date;
|
932
|
+
updatedAt: Date;
|
933
|
+
deletedAt: Date | null;
|
934
|
+
notes: string | null;
|
935
|
+
contactProfile: string | null;
|
936
|
+
socialProfileUrl: string | null;
|
937
|
+
};
|
938
|
+
contactId: string;
|
939
|
+
isNewContact: boolean;
|
940
|
+
};
|
290
941
|
}[];
|
291
942
|
attachments: {
|
292
943
|
id: string;
|
@@ -315,28 +966,98 @@ export declare const MessageSchema: z.ZodObject<{
|
|
315
966
|
subject: string;
|
316
967
|
to: {
|
317
968
|
id: string;
|
318
|
-
address: string;
|
319
|
-
name: string;
|
320
969
|
createdAt: Date;
|
321
970
|
updatedAt: Date;
|
322
971
|
deletedAt: Date | null;
|
972
|
+
roomId: string;
|
973
|
+
messageId: string;
|
974
|
+
mailUserId: string;
|
975
|
+
mailUser: {
|
976
|
+
id: string;
|
977
|
+
address: string;
|
978
|
+
name: string;
|
979
|
+
createdAt: Date;
|
980
|
+
updatedAt: Date;
|
981
|
+
deletedAt: Date | null;
|
982
|
+
contact: {
|
983
|
+
id: string;
|
984
|
+
channel: string | null;
|
985
|
+
address: string | null;
|
986
|
+
name: string;
|
987
|
+
createdAt: Date;
|
988
|
+
updatedAt: Date;
|
989
|
+
deletedAt: Date | null;
|
990
|
+
notes: string | null;
|
991
|
+
contactProfile: string | null;
|
992
|
+
socialProfileUrl: string | null;
|
993
|
+
};
|
994
|
+
contactId: string;
|
995
|
+
isNewContact: boolean;
|
996
|
+
};
|
323
997
|
}[];
|
324
998
|
cc: {
|
325
999
|
id: string;
|
326
|
-
address: string;
|
327
|
-
name: string;
|
328
1000
|
createdAt: Date;
|
329
1001
|
updatedAt: Date;
|
330
1002
|
deletedAt: Date | null;
|
1003
|
+
roomId: string;
|
1004
|
+
messageId: string;
|
1005
|
+
mailUserId: string;
|
1006
|
+
mailUser: {
|
1007
|
+
id: string;
|
1008
|
+
address: string;
|
1009
|
+
name: string;
|
1010
|
+
createdAt: Date;
|
1011
|
+
updatedAt: Date;
|
1012
|
+
deletedAt: Date | null;
|
1013
|
+
contact: {
|
1014
|
+
id: string;
|
1015
|
+
channel: string | null;
|
1016
|
+
address: string | null;
|
1017
|
+
name: string;
|
1018
|
+
createdAt: Date;
|
1019
|
+
updatedAt: Date;
|
1020
|
+
deletedAt: Date | null;
|
1021
|
+
notes: string | null;
|
1022
|
+
contactProfile: string | null;
|
1023
|
+
socialProfileUrl: string | null;
|
1024
|
+
};
|
1025
|
+
contactId: string;
|
1026
|
+
isNewContact: boolean;
|
1027
|
+
};
|
331
1028
|
}[];
|
332
1029
|
bcc: {
|
333
1030
|
id: string;
|
334
|
-
address: string;
|
335
|
-
name: string;
|
336
1031
|
createdAt: Date;
|
337
1032
|
updatedAt: Date;
|
338
1033
|
deletedAt: Date | null;
|
1034
|
+
roomId: string;
|
1035
|
+
messageId: string;
|
1036
|
+
mailUserId: string;
|
1037
|
+
mailUser: {
|
1038
|
+
id: string;
|
1039
|
+
address: string;
|
1040
|
+
name: string;
|
1041
|
+
createdAt: Date;
|
1042
|
+
updatedAt: Date;
|
1043
|
+
deletedAt: Date | null;
|
1044
|
+
contact: {
|
1045
|
+
id: string;
|
1046
|
+
channel: string | null;
|
1047
|
+
address: string | null;
|
1048
|
+
name: string;
|
1049
|
+
createdAt: Date;
|
1050
|
+
updatedAt: Date;
|
1051
|
+
deletedAt: Date | null;
|
1052
|
+
notes: string | null;
|
1053
|
+
contactProfile: string | null;
|
1054
|
+
socialProfileUrl: string | null;
|
1055
|
+
};
|
1056
|
+
contactId: string;
|
1057
|
+
isNewContact: boolean;
|
1058
|
+
};
|
339
1059
|
}[];
|
1060
|
+
sendAt: Date;
|
340
1061
|
textPlain: string;
|
341
1062
|
textHtml: string;
|
342
1063
|
textId: string;
|
@@ -344,6 +1065,7 @@ export declare const MessageSchema: z.ZodObject<{
|
|
344
1065
|
emailEngineMessageId: string;
|
345
1066
|
emailEngineReplyTo: string | null;
|
346
1067
|
unseen: boolean;
|
1068
|
+
starred: boolean;
|
347
1069
|
seemsLikeNew: boolean;
|
348
1070
|
}>;
|
349
1071
|
//# sourceMappingURL=message.schema.d.ts.map
|