@kl1/contracts 1.0.10 → 1.0.11

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