@kl1/contracts 1.1.5 → 1.1.16-uat

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 (36) hide show
  1. package/dist/index.js +455 -17
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +454 -17
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/contract.d.ts +6433 -8
  6. package/dist/src/contract.d.ts.map +1 -1
  7. package/dist/src/line/schema.d.ts.map +1 -1
  8. package/dist/src/line/validation.d.ts.map +1 -1
  9. package/dist/src/mail/account-contract.d.ts +71 -1
  10. package/dist/src/mail/account-contract.d.ts.map +1 -1
  11. package/dist/src/mail/mail-contract.d.ts +602 -8
  12. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  13. package/dist/src/mail/message-contract.d.ts +495 -1
  14. package/dist/src/mail/message-contract.d.ts.map +1 -1
  15. package/dist/src/mail/room-contract.d.ts +36 -6
  16. package/dist/src/mail/room-contract.d.ts.map +1 -1
  17. package/dist/src/mail/schemas/room-validation.schema.d.ts +36 -6
  18. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  19. package/dist/src/public-api/index.d.ts +5843 -0
  20. package/dist/src/{chatwoot → public-api}/index.d.ts.map +1 -1
  21. package/dist/src/public-api/schema.d.ts +1010 -0
  22. package/dist/src/public-api/schema.d.ts.map +1 -0
  23. package/dist/src/public-api/validation.d.ts +1822 -0
  24. package/dist/src/public-api/validation.d.ts.map +1 -0
  25. package/package.json +1 -1
  26. package/dist/src/app/index.d.ts +0 -17
  27. package/dist/src/app/index.d.ts.map +0 -1
  28. package/dist/src/chatwoot/index.d.ts +0 -7527
  29. package/dist/src/chatwoot/schema.d.ts +0 -79
  30. package/dist/src/chatwoot/schema.d.ts.map +0 -1
  31. package/dist/src/chatwoot/validation.d.ts +0 -53
  32. package/dist/src/chatwoot/validation.d.ts.map +0 -1
  33. package/dist/src/mail/mail-server.d.ts +0 -216
  34. package/dist/src/mail/mail-server.d.ts.map +0 -1
  35. package/dist/src/platform-contact/schema.d.ts +0 -30
  36. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -0,0 +1,1010 @@
1
+ import z from 'zod';
2
+ export declare const ContactPhonesSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ phone: z.ZodString;
8
+ isPrimary: z.ZodBoolean;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ isPrimary: boolean;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ deletedAt: Date | null;
15
+ phone: string;
16
+ }, {
17
+ id: string;
18
+ isPrimary: boolean;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ deletedAt: Date | null;
22
+ phone: string;
23
+ }>;
24
+ export declare const ContactEmailsSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ deletedAt: z.ZodNullable<z.ZodDate>;
29
+ email: z.ZodString;
30
+ isPrimary: z.ZodBoolean;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: string;
33
+ isPrimary: boolean;
34
+ email: string;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ deletedAt: Date | null;
38
+ }, {
39
+ id: string;
40
+ isPrimary: boolean;
41
+ email: string;
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ deletedAt: Date | null;
45
+ }>;
46
+ export declare const ContactCustomFieldSchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ createdAt: z.ZodDate;
49
+ updatedAt: z.ZodDate;
50
+ deletedAt: z.ZodNullable<z.ZodDate>;
51
+ textValue: z.ZodNullable<z.ZodString>;
52
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
53
+ numberValue: z.ZodNullable<z.ZodNumber>;
54
+ dateValue: z.ZodNullable<z.ZodDate>;
55
+ attribute: z.ZodObject<Omit<{
56
+ id: z.ZodString;
57
+ createdAt: z.ZodDate;
58
+ updatedAt: z.ZodDate;
59
+ deletedAt: z.ZodNullable<z.ZodDate>;
60
+ systemName: z.ZodString;
61
+ displayName: z.ZodString;
62
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
63
+ position: z.ZodNumber;
64
+ isDefault: z.ZodBoolean;
65
+ isArchived: z.ZodBoolean;
66
+ isRequired: z.ZodBoolean;
67
+ isUnique: z.ZodBoolean;
68
+ options: z.ZodArray<z.ZodObject<{
69
+ position: z.ZodNumber;
70
+ value: z.ZodString;
71
+ label: z.ZodString;
72
+ isDefault: z.ZodBoolean;
73
+ id: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ id: string;
76
+ position: number;
77
+ value: string;
78
+ label: string;
79
+ isDefault: boolean;
80
+ }, {
81
+ id: string;
82
+ position: number;
83
+ value: string;
84
+ label: string;
85
+ isDefault: boolean;
86
+ }>, "many">;
87
+ group: z.ZodObject<{
88
+ id: z.ZodString;
89
+ createdAt: z.ZodDate;
90
+ updatedAt: z.ZodDate;
91
+ deletedAt: z.ZodNullable<z.ZodDate>;
92
+ systemName: z.ZodString;
93
+ displayName: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ id: string;
96
+ createdAt: Date;
97
+ updatedAt: Date;
98
+ deletedAt: Date | null;
99
+ systemName: string;
100
+ displayName: string;
101
+ }, {
102
+ id: string;
103
+ createdAt: Date;
104
+ updatedAt: Date;
105
+ deletedAt: Date | null;
106
+ systemName: string;
107
+ displayName: string;
108
+ }>;
109
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
110
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
111
+ id: string;
112
+ position: number;
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ deletedAt: Date | null;
116
+ systemName: string;
117
+ displayName: string;
118
+ isDefault: boolean;
119
+ isArchived: boolean;
120
+ isRequired: boolean;
121
+ isUnique: boolean;
122
+ }, {
123
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
124
+ id: string;
125
+ position: number;
126
+ createdAt: Date;
127
+ updatedAt: Date;
128
+ deletedAt: Date | null;
129
+ systemName: string;
130
+ displayName: string;
131
+ isDefault: boolean;
132
+ isArchived: boolean;
133
+ isRequired: boolean;
134
+ isUnique: boolean;
135
+ }>;
136
+ uploads: z.ZodArray<z.ZodObject<{
137
+ id: z.ZodString;
138
+ createdAt: z.ZodDate;
139
+ updatedAt: z.ZodDate;
140
+ deletedAt: z.ZodNullable<z.ZodDate>;
141
+ bucketName: z.ZodString;
142
+ fileName: z.ZodString;
143
+ fileSize: z.ZodNumber;
144
+ fileKey: z.ZodString;
145
+ fileUrl: z.ZodNullable<z.ZodString>;
146
+ status: z.ZodOptional<z.ZodString>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ id: string;
149
+ createdAt: Date;
150
+ updatedAt: Date;
151
+ deletedAt: Date | null;
152
+ fileName: string;
153
+ fileKey: string;
154
+ bucketName: string;
155
+ fileSize: number;
156
+ fileUrl: string | null;
157
+ status?: string | undefined;
158
+ }, {
159
+ id: string;
160
+ createdAt: Date;
161
+ updatedAt: Date;
162
+ deletedAt: Date | null;
163
+ fileName: string;
164
+ fileKey: string;
165
+ bucketName: string;
166
+ fileSize: number;
167
+ fileUrl: string | null;
168
+ status?: string | undefined;
169
+ }>, "many">;
170
+ }, "strip", z.ZodTypeAny, {
171
+ id: string;
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ deletedAt: Date | null;
175
+ attribute: {
176
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
177
+ id: string;
178
+ position: number;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ deletedAt: Date | null;
182
+ systemName: string;
183
+ displayName: string;
184
+ isDefault: boolean;
185
+ isArchived: boolean;
186
+ isRequired: boolean;
187
+ isUnique: boolean;
188
+ };
189
+ textValue: string | null;
190
+ booleanValue: boolean | null;
191
+ numberValue: number | null;
192
+ dateValue: Date | null;
193
+ uploads: {
194
+ id: string;
195
+ createdAt: Date;
196
+ updatedAt: Date;
197
+ deletedAt: Date | null;
198
+ fileName: string;
199
+ fileKey: string;
200
+ bucketName: string;
201
+ fileSize: number;
202
+ fileUrl: string | null;
203
+ status?: string | undefined;
204
+ }[];
205
+ }, {
206
+ id: string;
207
+ createdAt: Date;
208
+ updatedAt: Date;
209
+ deletedAt: Date | null;
210
+ attribute: {
211
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
212
+ id: string;
213
+ position: number;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ deletedAt: Date | null;
217
+ systemName: string;
218
+ displayName: string;
219
+ isDefault: boolean;
220
+ isArchived: boolean;
221
+ isRequired: boolean;
222
+ isUnique: boolean;
223
+ };
224
+ textValue: string | null;
225
+ booleanValue: boolean | null;
226
+ numberValue: number | null;
227
+ dateValue: Date | null;
228
+ uploads: {
229
+ id: string;
230
+ createdAt: Date;
231
+ updatedAt: Date;
232
+ deletedAt: Date | null;
233
+ fileName: string;
234
+ fileKey: string;
235
+ bucketName: string;
236
+ fileSize: number;
237
+ fileUrl: string | null;
238
+ status?: string | undefined;
239
+ }[];
240
+ }>;
241
+ export declare const ContactEntityTypesSchema: z.ZodObject<{
242
+ id: z.ZodString;
243
+ createdAt: z.ZodDate;
244
+ updatedAt: z.ZodDate;
245
+ deletedAt: z.ZodNullable<z.ZodDate>;
246
+ entity: z.ZodString;
247
+ description: z.ZodNullable<z.ZodString>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ id: string;
250
+ description: string | null;
251
+ createdAt: Date;
252
+ updatedAt: Date;
253
+ deletedAt: Date | null;
254
+ entity: string;
255
+ }, {
256
+ id: string;
257
+ description: string | null;
258
+ createdAt: Date;
259
+ updatedAt: Date;
260
+ deletedAt: Date | null;
261
+ entity: string;
262
+ }>;
263
+ export declare const ContactActivitySchema: z.ZodObject<{
264
+ id: z.ZodString;
265
+ createdAt: z.ZodDate;
266
+ updatedAt: z.ZodDate;
267
+ deletedAt: z.ZodNullable<z.ZodDate>;
268
+ entityId: z.ZodString;
269
+ description: z.ZodString;
270
+ entityType: z.ZodObject<{
271
+ id: z.ZodString;
272
+ createdAt: z.ZodDate;
273
+ updatedAt: z.ZodDate;
274
+ deletedAt: z.ZodNullable<z.ZodDate>;
275
+ entity: z.ZodString;
276
+ description: z.ZodNullable<z.ZodString>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ id: string;
279
+ description: string | null;
280
+ createdAt: Date;
281
+ updatedAt: Date;
282
+ deletedAt: Date | null;
283
+ entity: string;
284
+ }, {
285
+ id: string;
286
+ description: string | null;
287
+ createdAt: Date;
288
+ updatedAt: Date;
289
+ deletedAt: Date | null;
290
+ entity: string;
291
+ }>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ id: string;
294
+ description: string;
295
+ createdAt: Date;
296
+ updatedAt: Date;
297
+ deletedAt: Date | null;
298
+ entityId: string;
299
+ entityType: {
300
+ id: string;
301
+ description: string | null;
302
+ createdAt: Date;
303
+ updatedAt: Date;
304
+ deletedAt: Date | null;
305
+ entity: string;
306
+ };
307
+ }, {
308
+ id: string;
309
+ description: string;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ deletedAt: Date | null;
313
+ entityId: string;
314
+ entityType: {
315
+ id: string;
316
+ description: string | null;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ deletedAt: Date | null;
320
+ entity: string;
321
+ };
322
+ }>;
323
+ export declare const ContactSchema: z.ZodObject<{
324
+ id: z.ZodString;
325
+ createdAt: z.ZodDate;
326
+ updatedAt: z.ZodDate;
327
+ deletedAt: z.ZodNullable<z.ZodDate>;
328
+ name: z.ZodString;
329
+ address: z.ZodNullable<z.ZodString>;
330
+ channel: z.ZodNullable<z.ZodString>;
331
+ notes: z.ZodNullable<z.ZodString>;
332
+ contactProfile: z.ZodNullable<z.ZodString>;
333
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
334
+ tags: z.ZodArray<z.ZodObject<{
335
+ id: z.ZodString;
336
+ createdAt: z.ZodDate;
337
+ updatedAt: z.ZodDate;
338
+ deletedAt: z.ZodNullable<z.ZodDate>;
339
+ name: z.ZodString;
340
+ }, "strip", z.ZodTypeAny, {
341
+ id: string;
342
+ name: string;
343
+ createdAt: Date;
344
+ updatedAt: Date;
345
+ deletedAt: Date | null;
346
+ }, {
347
+ id: string;
348
+ name: string;
349
+ createdAt: Date;
350
+ updatedAt: Date;
351
+ deletedAt: Date | null;
352
+ }>, "many">;
353
+ company: z.ZodNullable<z.ZodObject<Omit<{
354
+ id: z.ZodString;
355
+ createdAt: z.ZodDate;
356
+ updatedAt: z.ZodDate;
357
+ deletedAt: z.ZodNullable<z.ZodDate>;
358
+ name: z.ZodOptional<z.ZodString>;
359
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
363
+ id: z.ZodString;
364
+ createdAt: z.ZodDate;
365
+ updatedAt: z.ZodDate;
366
+ deletedAt: z.ZodNullable<z.ZodDate>;
367
+ textValue: z.ZodNullable<z.ZodString>;
368
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
369
+ numberValue: z.ZodNullable<z.ZodNumber>;
370
+ dateValue: z.ZodNullable<z.ZodDate>;
371
+ attribute: z.ZodObject<Omit<{
372
+ id: z.ZodString;
373
+ createdAt: z.ZodDate;
374
+ updatedAt: z.ZodDate;
375
+ deletedAt: z.ZodNullable<z.ZodDate>;
376
+ systemName: z.ZodString;
377
+ displayName: z.ZodString;
378
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
379
+ position: z.ZodNumber;
380
+ isDefault: z.ZodBoolean;
381
+ isArchived: z.ZodBoolean;
382
+ isRequired: z.ZodBoolean;
383
+ isUnique: z.ZodBoolean;
384
+ options: z.ZodArray<z.ZodObject<{
385
+ position: z.ZodNumber;
386
+ value: z.ZodString;
387
+ label: z.ZodString;
388
+ isDefault: z.ZodBoolean;
389
+ id: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ id: string;
392
+ position: number;
393
+ value: string;
394
+ label: string;
395
+ isDefault: boolean;
396
+ }, {
397
+ id: string;
398
+ position: number;
399
+ value: string;
400
+ label: string;
401
+ isDefault: boolean;
402
+ }>, "many">;
403
+ group: z.ZodObject<{
404
+ id: z.ZodString;
405
+ createdAt: z.ZodDate;
406
+ updatedAt: z.ZodDate;
407
+ deletedAt: z.ZodNullable<z.ZodDate>;
408
+ systemName: z.ZodString;
409
+ displayName: z.ZodString;
410
+ }, "strip", z.ZodTypeAny, {
411
+ id: string;
412
+ createdAt: Date;
413
+ updatedAt: Date;
414
+ deletedAt: Date | null;
415
+ systemName: string;
416
+ displayName: string;
417
+ }, {
418
+ id: string;
419
+ createdAt: Date;
420
+ updatedAt: Date;
421
+ deletedAt: Date | null;
422
+ systemName: string;
423
+ displayName: string;
424
+ }>;
425
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
426
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
427
+ id: string;
428
+ position: number;
429
+ createdAt: Date;
430
+ updatedAt: Date;
431
+ deletedAt: Date | null;
432
+ systemName: string;
433
+ displayName: string;
434
+ isDefault: boolean;
435
+ isArchived: boolean;
436
+ isRequired: boolean;
437
+ isUnique: boolean;
438
+ }, {
439
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
440
+ id: string;
441
+ position: number;
442
+ createdAt: Date;
443
+ updatedAt: Date;
444
+ deletedAt: Date | null;
445
+ systemName: string;
446
+ displayName: string;
447
+ isDefault: boolean;
448
+ isArchived: boolean;
449
+ isRequired: boolean;
450
+ isUnique: boolean;
451
+ }>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ id: string;
454
+ createdAt: Date;
455
+ updatedAt: Date;
456
+ deletedAt: Date | null;
457
+ attribute: {
458
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
459
+ id: string;
460
+ position: number;
461
+ createdAt: Date;
462
+ updatedAt: Date;
463
+ deletedAt: Date | null;
464
+ systemName: string;
465
+ displayName: string;
466
+ isDefault: boolean;
467
+ isArchived: boolean;
468
+ isRequired: boolean;
469
+ isUnique: boolean;
470
+ };
471
+ textValue: string | null;
472
+ booleanValue: boolean | null;
473
+ numberValue: number | null;
474
+ dateValue: Date | null;
475
+ }, {
476
+ id: string;
477
+ createdAt: Date;
478
+ updatedAt: Date;
479
+ deletedAt: Date | null;
480
+ attribute: {
481
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
482
+ id: string;
483
+ position: number;
484
+ createdAt: Date;
485
+ updatedAt: Date;
486
+ deletedAt: Date | null;
487
+ systemName: string;
488
+ displayName: string;
489
+ isDefault: boolean;
490
+ isArchived: boolean;
491
+ isRequired: boolean;
492
+ isUnique: boolean;
493
+ };
494
+ textValue: string | null;
495
+ booleanValue: boolean | null;
496
+ numberValue: number | null;
497
+ dateValue: Date | null;
498
+ }>, "many">>;
499
+ }, "customFields">, "strip", z.ZodTypeAny, {
500
+ id: string;
501
+ createdAt: Date;
502
+ updatedAt: Date;
503
+ deletedAt: Date | null;
504
+ address?: string | null | undefined;
505
+ name?: string | undefined;
506
+ phone?: string | null | undefined;
507
+ industry?: string | null | undefined;
508
+ }, {
509
+ id: string;
510
+ createdAt: Date;
511
+ updatedAt: Date;
512
+ deletedAt: Date | null;
513
+ address?: string | null | undefined;
514
+ name?: string | undefined;
515
+ phone?: string | null | undefined;
516
+ industry?: string | null | undefined;
517
+ }>>;
518
+ customFields: z.ZodArray<z.ZodObject<{
519
+ id: z.ZodString;
520
+ createdAt: z.ZodDate;
521
+ updatedAt: z.ZodDate;
522
+ deletedAt: z.ZodNullable<z.ZodDate>;
523
+ textValue: z.ZodNullable<z.ZodString>;
524
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
525
+ numberValue: z.ZodNullable<z.ZodNumber>;
526
+ dateValue: z.ZodNullable<z.ZodDate>;
527
+ attribute: z.ZodObject<Omit<{
528
+ id: z.ZodString;
529
+ createdAt: z.ZodDate;
530
+ updatedAt: z.ZodDate;
531
+ deletedAt: z.ZodNullable<z.ZodDate>;
532
+ systemName: z.ZodString;
533
+ displayName: z.ZodString;
534
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
535
+ position: z.ZodNumber;
536
+ isDefault: z.ZodBoolean;
537
+ isArchived: z.ZodBoolean;
538
+ isRequired: z.ZodBoolean;
539
+ isUnique: z.ZodBoolean;
540
+ options: z.ZodArray<z.ZodObject<{
541
+ position: z.ZodNumber;
542
+ value: z.ZodString;
543
+ label: z.ZodString;
544
+ isDefault: z.ZodBoolean;
545
+ id: z.ZodString;
546
+ }, "strip", z.ZodTypeAny, {
547
+ id: string;
548
+ position: number;
549
+ value: string;
550
+ label: string;
551
+ isDefault: boolean;
552
+ }, {
553
+ id: string;
554
+ position: number;
555
+ value: string;
556
+ label: string;
557
+ isDefault: boolean;
558
+ }>, "many">;
559
+ group: z.ZodObject<{
560
+ id: z.ZodString;
561
+ createdAt: z.ZodDate;
562
+ updatedAt: z.ZodDate;
563
+ deletedAt: z.ZodNullable<z.ZodDate>;
564
+ systemName: z.ZodString;
565
+ displayName: z.ZodString;
566
+ }, "strip", z.ZodTypeAny, {
567
+ id: string;
568
+ createdAt: Date;
569
+ updatedAt: Date;
570
+ deletedAt: Date | null;
571
+ systemName: string;
572
+ displayName: string;
573
+ }, {
574
+ id: string;
575
+ createdAt: Date;
576
+ updatedAt: Date;
577
+ deletedAt: Date | null;
578
+ systemName: string;
579
+ displayName: string;
580
+ }>;
581
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
582
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
583
+ id: string;
584
+ position: number;
585
+ createdAt: Date;
586
+ updatedAt: Date;
587
+ deletedAt: Date | null;
588
+ systemName: string;
589
+ displayName: string;
590
+ isDefault: boolean;
591
+ isArchived: boolean;
592
+ isRequired: boolean;
593
+ isUnique: boolean;
594
+ }, {
595
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
596
+ id: string;
597
+ position: number;
598
+ createdAt: Date;
599
+ updatedAt: Date;
600
+ deletedAt: Date | null;
601
+ systemName: string;
602
+ displayName: string;
603
+ isDefault: boolean;
604
+ isArchived: boolean;
605
+ isRequired: boolean;
606
+ isUnique: boolean;
607
+ }>;
608
+ uploads: z.ZodArray<z.ZodObject<{
609
+ id: z.ZodString;
610
+ createdAt: z.ZodDate;
611
+ updatedAt: z.ZodDate;
612
+ deletedAt: z.ZodNullable<z.ZodDate>;
613
+ bucketName: z.ZodString;
614
+ fileName: z.ZodString;
615
+ fileSize: z.ZodNumber;
616
+ fileKey: z.ZodString;
617
+ fileUrl: z.ZodNullable<z.ZodString>;
618
+ status: z.ZodOptional<z.ZodString>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ id: string;
621
+ createdAt: Date;
622
+ updatedAt: Date;
623
+ deletedAt: Date | null;
624
+ fileName: string;
625
+ fileKey: string;
626
+ bucketName: string;
627
+ fileSize: number;
628
+ fileUrl: string | null;
629
+ status?: string | undefined;
630
+ }, {
631
+ id: string;
632
+ createdAt: Date;
633
+ updatedAt: Date;
634
+ deletedAt: Date | null;
635
+ fileName: string;
636
+ fileKey: string;
637
+ bucketName: string;
638
+ fileSize: number;
639
+ fileUrl: string | null;
640
+ status?: string | undefined;
641
+ }>, "many">;
642
+ }, "strip", z.ZodTypeAny, {
643
+ id: string;
644
+ createdAt: Date;
645
+ updatedAt: Date;
646
+ deletedAt: Date | null;
647
+ attribute: {
648
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
649
+ id: string;
650
+ position: number;
651
+ createdAt: Date;
652
+ updatedAt: Date;
653
+ deletedAt: Date | null;
654
+ systemName: string;
655
+ displayName: string;
656
+ isDefault: boolean;
657
+ isArchived: boolean;
658
+ isRequired: boolean;
659
+ isUnique: boolean;
660
+ };
661
+ textValue: string | null;
662
+ booleanValue: boolean | null;
663
+ numberValue: number | null;
664
+ dateValue: Date | null;
665
+ uploads: {
666
+ id: string;
667
+ createdAt: Date;
668
+ updatedAt: Date;
669
+ deletedAt: Date | null;
670
+ fileName: string;
671
+ fileKey: string;
672
+ bucketName: string;
673
+ fileSize: number;
674
+ fileUrl: string | null;
675
+ status?: string | undefined;
676
+ }[];
677
+ }, {
678
+ id: string;
679
+ createdAt: Date;
680
+ updatedAt: Date;
681
+ deletedAt: Date | null;
682
+ attribute: {
683
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
684
+ id: string;
685
+ position: number;
686
+ createdAt: Date;
687
+ updatedAt: Date;
688
+ deletedAt: Date | null;
689
+ systemName: string;
690
+ displayName: string;
691
+ isDefault: boolean;
692
+ isArchived: boolean;
693
+ isRequired: boolean;
694
+ isUnique: boolean;
695
+ };
696
+ textValue: string | null;
697
+ booleanValue: boolean | null;
698
+ numberValue: number | null;
699
+ dateValue: Date | null;
700
+ uploads: {
701
+ id: string;
702
+ createdAt: Date;
703
+ updatedAt: Date;
704
+ deletedAt: Date | null;
705
+ fileName: string;
706
+ fileKey: string;
707
+ bucketName: string;
708
+ fileSize: number;
709
+ fileUrl: string | null;
710
+ status?: string | undefined;
711
+ }[];
712
+ }>, "many">;
713
+ contactEmails: z.ZodArray<z.ZodObject<{
714
+ id: z.ZodString;
715
+ createdAt: z.ZodDate;
716
+ updatedAt: z.ZodDate;
717
+ deletedAt: z.ZodNullable<z.ZodDate>;
718
+ email: z.ZodString;
719
+ isPrimary: z.ZodBoolean;
720
+ }, "strip", z.ZodTypeAny, {
721
+ id: string;
722
+ isPrimary: boolean;
723
+ email: string;
724
+ createdAt: Date;
725
+ updatedAt: Date;
726
+ deletedAt: Date | null;
727
+ }, {
728
+ id: string;
729
+ isPrimary: boolean;
730
+ email: string;
731
+ createdAt: Date;
732
+ updatedAt: Date;
733
+ deletedAt: Date | null;
734
+ }>, "many">;
735
+ contactPhones: z.ZodArray<z.ZodObject<{
736
+ id: z.ZodString;
737
+ createdAt: z.ZodDate;
738
+ updatedAt: z.ZodDate;
739
+ deletedAt: z.ZodNullable<z.ZodDate>;
740
+ phone: z.ZodString;
741
+ isPrimary: z.ZodBoolean;
742
+ }, "strip", z.ZodTypeAny, {
743
+ id: string;
744
+ isPrimary: boolean;
745
+ createdAt: Date;
746
+ updatedAt: Date;
747
+ deletedAt: Date | null;
748
+ phone: string;
749
+ }, {
750
+ id: string;
751
+ isPrimary: boolean;
752
+ createdAt: Date;
753
+ updatedAt: Date;
754
+ deletedAt: Date | null;
755
+ phone: string;
756
+ }>, "many">;
757
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
+ id: z.ZodString;
759
+ createdAt: z.ZodDate;
760
+ updatedAt: z.ZodDate;
761
+ deletedAt: z.ZodNullable<z.ZodDate>;
762
+ entityId: z.ZodString;
763
+ description: z.ZodString;
764
+ entityType: z.ZodObject<{
765
+ id: z.ZodString;
766
+ createdAt: z.ZodDate;
767
+ updatedAt: z.ZodDate;
768
+ deletedAt: z.ZodNullable<z.ZodDate>;
769
+ entity: z.ZodString;
770
+ description: z.ZodNullable<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ id: string;
773
+ description: string | null;
774
+ createdAt: Date;
775
+ updatedAt: Date;
776
+ deletedAt: Date | null;
777
+ entity: string;
778
+ }, {
779
+ id: string;
780
+ description: string | null;
781
+ createdAt: Date;
782
+ updatedAt: Date;
783
+ deletedAt: Date | null;
784
+ entity: string;
785
+ }>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ id: string;
788
+ description: string;
789
+ createdAt: Date;
790
+ updatedAt: Date;
791
+ deletedAt: Date | null;
792
+ entityId: string;
793
+ entityType: {
794
+ id: string;
795
+ description: string | null;
796
+ createdAt: Date;
797
+ updatedAt: Date;
798
+ deletedAt: Date | null;
799
+ entity: string;
800
+ };
801
+ }, {
802
+ id: string;
803
+ description: string;
804
+ createdAt: Date;
805
+ updatedAt: Date;
806
+ deletedAt: Date | null;
807
+ entityId: string;
808
+ entityType: {
809
+ id: string;
810
+ description: string | null;
811
+ createdAt: Date;
812
+ updatedAt: Date;
813
+ deletedAt: Date | null;
814
+ entity: string;
815
+ };
816
+ }>, "many">>;
817
+ }, "strip", z.ZodTypeAny, {
818
+ id: string;
819
+ channel: string | null;
820
+ address: string | null;
821
+ name: string;
822
+ createdAt: Date;
823
+ updatedAt: Date;
824
+ deletedAt: Date | null;
825
+ customFields: {
826
+ id: string;
827
+ createdAt: Date;
828
+ updatedAt: Date;
829
+ deletedAt: Date | null;
830
+ attribute: {
831
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
832
+ id: string;
833
+ position: number;
834
+ createdAt: Date;
835
+ updatedAt: Date;
836
+ deletedAt: Date | null;
837
+ systemName: string;
838
+ displayName: string;
839
+ isDefault: boolean;
840
+ isArchived: boolean;
841
+ isRequired: boolean;
842
+ isUnique: boolean;
843
+ };
844
+ textValue: string | null;
845
+ booleanValue: boolean | null;
846
+ numberValue: number | null;
847
+ dateValue: Date | null;
848
+ uploads: {
849
+ id: string;
850
+ createdAt: Date;
851
+ updatedAt: Date;
852
+ deletedAt: Date | null;
853
+ fileName: string;
854
+ fileKey: string;
855
+ bucketName: string;
856
+ fileSize: number;
857
+ fileUrl: string | null;
858
+ status?: string | undefined;
859
+ }[];
860
+ }[];
861
+ company: {
862
+ id: string;
863
+ createdAt: Date;
864
+ updatedAt: Date;
865
+ deletedAt: Date | null;
866
+ address?: string | null | undefined;
867
+ name?: string | undefined;
868
+ phone?: string | null | undefined;
869
+ industry?: string | null | undefined;
870
+ } | null;
871
+ notes: string | null;
872
+ contactProfile: string | null;
873
+ socialProfileUrl: string | null;
874
+ tags: {
875
+ id: string;
876
+ name: string;
877
+ createdAt: Date;
878
+ updatedAt: Date;
879
+ deletedAt: Date | null;
880
+ }[];
881
+ contactEmails: {
882
+ id: string;
883
+ isPrimary: boolean;
884
+ email: string;
885
+ createdAt: Date;
886
+ updatedAt: Date;
887
+ deletedAt: Date | null;
888
+ }[];
889
+ contactPhones: {
890
+ id: string;
891
+ isPrimary: boolean;
892
+ createdAt: Date;
893
+ updatedAt: Date;
894
+ deletedAt: Date | null;
895
+ phone: string;
896
+ }[];
897
+ activityLogs?: {
898
+ id: string;
899
+ description: string;
900
+ createdAt: Date;
901
+ updatedAt: Date;
902
+ deletedAt: Date | null;
903
+ entityId: string;
904
+ entityType: {
905
+ id: string;
906
+ description: string | null;
907
+ createdAt: Date;
908
+ updatedAt: Date;
909
+ deletedAt: Date | null;
910
+ entity: string;
911
+ };
912
+ }[] | undefined;
913
+ }, {
914
+ id: string;
915
+ channel: string | null;
916
+ address: string | null;
917
+ name: string;
918
+ createdAt: Date;
919
+ updatedAt: Date;
920
+ deletedAt: Date | null;
921
+ customFields: {
922
+ id: string;
923
+ createdAt: Date;
924
+ updatedAt: Date;
925
+ deletedAt: Date | null;
926
+ attribute: {
927
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
928
+ id: string;
929
+ position: number;
930
+ createdAt: Date;
931
+ updatedAt: Date;
932
+ deletedAt: Date | null;
933
+ systemName: string;
934
+ displayName: string;
935
+ isDefault: boolean;
936
+ isArchived: boolean;
937
+ isRequired: boolean;
938
+ isUnique: boolean;
939
+ };
940
+ textValue: string | null;
941
+ booleanValue: boolean | null;
942
+ numberValue: number | null;
943
+ dateValue: Date | null;
944
+ uploads: {
945
+ id: string;
946
+ createdAt: Date;
947
+ updatedAt: Date;
948
+ deletedAt: Date | null;
949
+ fileName: string;
950
+ fileKey: string;
951
+ bucketName: string;
952
+ fileSize: number;
953
+ fileUrl: string | null;
954
+ status?: string | undefined;
955
+ }[];
956
+ }[];
957
+ company: {
958
+ id: string;
959
+ createdAt: Date;
960
+ updatedAt: Date;
961
+ deletedAt: Date | null;
962
+ address?: string | null | undefined;
963
+ name?: string | undefined;
964
+ phone?: string | null | undefined;
965
+ industry?: string | null | undefined;
966
+ } | null;
967
+ notes: string | null;
968
+ contactProfile: string | null;
969
+ socialProfileUrl: string | null;
970
+ tags: {
971
+ id: string;
972
+ name: string;
973
+ createdAt: Date;
974
+ updatedAt: Date;
975
+ deletedAt: Date | null;
976
+ }[];
977
+ contactEmails: {
978
+ id: string;
979
+ isPrimary: boolean;
980
+ email: string;
981
+ createdAt: Date;
982
+ updatedAt: Date;
983
+ deletedAt: Date | null;
984
+ }[];
985
+ contactPhones: {
986
+ id: string;
987
+ isPrimary: boolean;
988
+ createdAt: Date;
989
+ updatedAt: Date;
990
+ deletedAt: Date | null;
991
+ phone: string;
992
+ }[];
993
+ activityLogs?: {
994
+ id: string;
995
+ description: string;
996
+ createdAt: Date;
997
+ updatedAt: Date;
998
+ deletedAt: Date | null;
999
+ entityId: string;
1000
+ entityType: {
1001
+ id: string;
1002
+ description: string | null;
1003
+ createdAt: Date;
1004
+ updatedAt: Date;
1005
+ deletedAt: Date | null;
1006
+ entity: string;
1007
+ };
1008
+ }[] | undefined;
1009
+ }>;
1010
+ //# sourceMappingURL=schema.d.ts.map