@kl1/contracts 1.0.10 → 1.0.12

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 +1474 -1068
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1470 -1067
  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/channel/index.d.ts +1357 -0
  10. package/dist/src/channel/index.d.ts.map +1 -0
  11. package/dist/src/channel/schema.d.ts +385 -0
  12. package/dist/src/channel/schema.d.ts.map +1 -0
  13. package/dist/src/channel/validation.d.ts +337 -0
  14. package/dist/src/channel/validation.d.ts.map +1 -0
  15. package/dist/src/chat/index.d.ts +25911 -10496
  16. package/dist/src/chat/index.d.ts.map +1 -1
  17. package/dist/src/chat/schema.d.ts +6196 -1168
  18. package/dist/src/chat/schema.d.ts.map +1 -1
  19. package/dist/src/chat/validation.d.ts +7755 -479
  20. package/dist/src/chat/validation.d.ts.map +1 -1
  21. package/dist/src/company/schema.d.ts +197 -12
  22. package/dist/src/company/schema.d.ts.map +1 -1
  23. package/dist/src/contact/index.d.ts +2667 -0
  24. package/dist/src/contact/index.d.ts.map +1 -0
  25. package/dist/src/contact/schema.d.ts +1070 -6
  26. package/dist/src/contact/schema.d.ts.map +1 -1
  27. package/dist/src/contact/validation.d.ts +1029 -0
  28. package/dist/src/contact/validation.d.ts.map +1 -0
  29. package/dist/src/contract.d.ts +51287 -23157
  30. package/dist/src/contract.d.ts.map +1 -1
  31. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  32. package/dist/src/cx-log/index.d.ts +4 -4
  33. package/dist/src/cx-log/schema.d.ts +2 -2
  34. package/dist/src/extension/index.d.ts +220 -54
  35. package/dist/src/extension/index.d.ts.map +1 -1
  36. package/dist/src/extension/schema.d.ts +6 -6
  37. package/dist/src/extension/schema.d.ts.map +1 -1
  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 +2865 -3701
  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 +2854 -3690
  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 +64 -64
  52. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  53. package/dist/src/messenger/index.d.ts +7617 -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/permission/schema.d.ts.map +1 -1
  62. package/dist/src/role/schema.d.ts.map +1 -1
  63. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  64. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  65. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  66. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  67. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  68. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  69. package/dist/src/telephony-extension/index.d.ts +5 -5
  70. package/dist/src/telephony-extension/schema.d.ts +5 -5
  71. package/dist/src/tenant/schema.d.ts +36 -0
  72. package/dist/src/tenant/schema.d.ts.map +1 -0
  73. package/dist/src/upload/schema.d.ts +4 -4
  74. package/dist/src/user/index.d.ts +119 -85
  75. package/dist/src/user/index.d.ts.map +1 -1
  76. package/dist/src/user/schema.d.ts +22 -16
  77. package/dist/src/user/schema.d.ts.map +1 -1
  78. package/dist/src/user/validation.d.ts +5 -5
  79. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  80. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  81. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  82. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  83. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  84. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  85. package/dist/src/widget/index.d.ts +28 -26
  86. package/dist/src/widget/index.d.ts.map +1 -1
  87. package/dist/src/widget/schema.d.ts +3 -3
  88. package/dist/src/wrap-up-form/index.d.ts +3 -3
  89. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  90. package/package.json +46 -46
  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,368 @@
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
+ id: z.ZodString;
286
+ createdAt: z.ZodDate;
287
+ updatedAt: z.ZodDate;
288
+ deletedAt: z.ZodNullable<z.ZodDate>;
289
+ entity: z.ZodString;
290
+ description: z.ZodNullable<z.ZodString>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ id: string;
293
+ description: string | null;
294
+ createdAt: Date;
295
+ updatedAt: Date;
296
+ deletedAt: Date | null;
297
+ entity: string;
298
+ }, {
299
+ id: string;
300
+ description: string | null;
301
+ createdAt: Date;
302
+ updatedAt: Date;
303
+ deletedAt: Date | null;
304
+ entity: string;
305
+ }>;
306
+ export declare const ContactActivitySchema: z.ZodObject<{
307
+ id: z.ZodString;
308
+ createdAt: z.ZodDate;
309
+ updatedAt: z.ZodDate;
310
+ deletedAt: z.ZodNullable<z.ZodDate>;
311
+ entityId: z.ZodString;
312
+ description: z.ZodString;
313
+ entityType: z.ZodObject<{
314
+ id: z.ZodString;
315
+ createdAt: z.ZodDate;
316
+ updatedAt: z.ZodDate;
317
+ deletedAt: z.ZodNullable<z.ZodDate>;
318
+ entity: z.ZodString;
319
+ description: z.ZodNullable<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ id: string;
322
+ description: string | null;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ deletedAt: Date | null;
326
+ entity: string;
327
+ }, {
328
+ id: string;
329
+ description: string | null;
330
+ createdAt: Date;
331
+ updatedAt: Date;
332
+ deletedAt: Date | null;
333
+ entity: string;
334
+ }>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ id: string;
337
+ description: string;
338
+ createdAt: Date;
339
+ updatedAt: Date;
340
+ deletedAt: Date | null;
341
+ entityId: string;
342
+ entityType: {
343
+ id: string;
344
+ description: string | null;
345
+ createdAt: Date;
346
+ updatedAt: Date;
347
+ deletedAt: Date | null;
348
+ entity: string;
349
+ };
350
+ }, {
351
+ id: string;
352
+ description: string;
353
+ createdAt: Date;
354
+ updatedAt: Date;
355
+ deletedAt: Date | null;
356
+ entityId: string;
357
+ entityType: {
358
+ id: string;
359
+ description: string | null;
360
+ createdAt: Date;
361
+ updatedAt: Date;
362
+ deletedAt: Date | null;
363
+ entity: string;
364
+ };
365
+ }>;
2
366
  export declare const ContactSchema: z.ZodObject<{
3
367
  id: z.ZodString;
4
368
  createdAt: z.ZodDate;
@@ -8,10 +372,534 @@ export declare const ContactSchema: z.ZodObject<{
8
372
  address: z.ZodNullable<z.ZodString>;
9
373
  channel: z.ZodNullable<z.ZodString>;
10
374
  notes: z.ZodNullable<z.ZodString>;
11
- contactNumber: z.ZodNullable<z.ZodString>;
12
- companyId: z.ZodNullable<z.ZodString>;
13
375
  contactProfile: z.ZodNullable<z.ZodString>;
14
376
  socialProfileUrl: z.ZodNullable<z.ZodString>;
377
+ tags: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodString;
379
+ createdAt: z.ZodDate;
380
+ updatedAt: z.ZodDate;
381
+ deletedAt: z.ZodNullable<z.ZodDate>;
382
+ name: z.ZodString;
383
+ }, "strip", z.ZodTypeAny, {
384
+ id: string;
385
+ name: string;
386
+ createdAt: Date;
387
+ updatedAt: Date;
388
+ deletedAt: Date | null;
389
+ }, {
390
+ id: string;
391
+ name: string;
392
+ createdAt: Date;
393
+ updatedAt: Date;
394
+ deletedAt: Date | null;
395
+ }>, "many">;
396
+ company: z.ZodNullable<z.ZodObject<Omit<{
397
+ id: z.ZodString;
398
+ createdAt: z.ZodDate;
399
+ updatedAt: z.ZodDate;
400
+ deletedAt: z.ZodNullable<z.ZodDate>;
401
+ name: z.ZodOptional<z.ZodString>;
402
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
+ id: z.ZodString;
407
+ createdAt: z.ZodDate;
408
+ updatedAt: z.ZodDate;
409
+ deletedAt: z.ZodNullable<z.ZodDate>;
410
+ textValue: z.ZodNullable<z.ZodString>;
411
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
412
+ numberValue: z.ZodNullable<z.ZodNumber>;
413
+ dateValue: z.ZodNullable<z.ZodString>;
414
+ attribute: z.ZodObject<Omit<{
415
+ id: z.ZodString;
416
+ createdAt: z.ZodDate;
417
+ updatedAt: z.ZodDate;
418
+ deletedAt: z.ZodNullable<z.ZodDate>;
419
+ systemName: z.ZodString;
420
+ displayName: z.ZodString;
421
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
422
+ position: z.ZodNumber;
423
+ isDefault: z.ZodBoolean;
424
+ isArchived: z.ZodBoolean;
425
+ isRequired: z.ZodBoolean;
426
+ isUnique: z.ZodBoolean;
427
+ options: z.ZodArray<z.ZodObject<{
428
+ position: z.ZodNumber;
429
+ value: z.ZodString;
430
+ label: z.ZodString;
431
+ isDefault: z.ZodBoolean;
432
+ id: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ id: string;
435
+ position: number;
436
+ value: string;
437
+ label: string;
438
+ isDefault: boolean;
439
+ }, {
440
+ id: string;
441
+ position: number;
442
+ value: string;
443
+ label: string;
444
+ isDefault: boolean;
445
+ }>, "many">;
446
+ group: z.ZodObject<{
447
+ id: z.ZodString;
448
+ createdAt: z.ZodDate;
449
+ updatedAt: z.ZodDate;
450
+ deletedAt: z.ZodNullable<z.ZodDate>;
451
+ systemName: z.ZodString;
452
+ displayName: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ id: string;
455
+ createdAt: Date;
456
+ updatedAt: Date;
457
+ deletedAt: Date | null;
458
+ systemName: string;
459
+ displayName: string;
460
+ }, {
461
+ id: string;
462
+ createdAt: Date;
463
+ updatedAt: Date;
464
+ deletedAt: Date | null;
465
+ systemName: string;
466
+ displayName: string;
467
+ }>;
468
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
469
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
470
+ id: string;
471
+ position: number;
472
+ createdAt: Date;
473
+ updatedAt: Date;
474
+ deletedAt: Date | null;
475
+ isDefault: boolean;
476
+ systemName: string;
477
+ displayName: string;
478
+ isArchived: boolean;
479
+ isRequired: boolean;
480
+ isUnique: boolean;
481
+ }, {
482
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
483
+ id: string;
484
+ position: number;
485
+ createdAt: Date;
486
+ updatedAt: Date;
487
+ deletedAt: Date | null;
488
+ isDefault: boolean;
489
+ systemName: string;
490
+ displayName: string;
491
+ isArchived: boolean;
492
+ isRequired: boolean;
493
+ isUnique: boolean;
494
+ }>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ id: string;
497
+ createdAt: Date;
498
+ updatedAt: Date;
499
+ deletedAt: Date | null;
500
+ attribute: {
501
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
502
+ id: string;
503
+ position: number;
504
+ createdAt: Date;
505
+ updatedAt: Date;
506
+ deletedAt: Date | null;
507
+ isDefault: boolean;
508
+ systemName: string;
509
+ displayName: string;
510
+ isArchived: boolean;
511
+ isRequired: boolean;
512
+ isUnique: boolean;
513
+ };
514
+ textValue: string | null;
515
+ booleanValue: boolean | null;
516
+ numberValue: number | null;
517
+ dateValue: string | null;
518
+ }, {
519
+ id: string;
520
+ createdAt: Date;
521
+ updatedAt: Date;
522
+ deletedAt: Date | null;
523
+ attribute: {
524
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
525
+ id: string;
526
+ position: number;
527
+ createdAt: Date;
528
+ updatedAt: Date;
529
+ deletedAt: Date | null;
530
+ isDefault: boolean;
531
+ systemName: string;
532
+ displayName: string;
533
+ isArchived: boolean;
534
+ isRequired: boolean;
535
+ isUnique: boolean;
536
+ };
537
+ textValue: string | null;
538
+ booleanValue: boolean | null;
539
+ numberValue: number | null;
540
+ dateValue: string | null;
541
+ }>, "many">>;
542
+ }, "customFields">, "strip", z.ZodTypeAny, {
543
+ id: string;
544
+ createdAt: Date;
545
+ updatedAt: Date;
546
+ deletedAt: Date | null;
547
+ address?: string | null | undefined;
548
+ name?: string | undefined;
549
+ phone?: string | null | undefined;
550
+ industry?: string | null | undefined;
551
+ }, {
552
+ id: string;
553
+ createdAt: Date;
554
+ updatedAt: Date;
555
+ deletedAt: Date | null;
556
+ address?: string | null | undefined;
557
+ name?: string | undefined;
558
+ phone?: string | null | undefined;
559
+ industry?: string | null | undefined;
560
+ }>>;
561
+ customFields: z.ZodArray<z.ZodObject<{
562
+ id: z.ZodString;
563
+ createdAt: z.ZodDate;
564
+ updatedAt: z.ZodDate;
565
+ deletedAt: z.ZodNullable<z.ZodDate>;
566
+ textValue: z.ZodNullable<z.ZodString>;
567
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
568
+ numberValue: z.ZodNullable<z.ZodNumber>;
569
+ dateValue: z.ZodNullable<z.ZodDate>;
570
+ attribute: z.ZodObject<Omit<{
571
+ id: z.ZodString;
572
+ createdAt: z.ZodDate;
573
+ updatedAt: z.ZodDate;
574
+ deletedAt: z.ZodNullable<z.ZodDate>;
575
+ systemName: z.ZodString;
576
+ displayName: z.ZodString;
577
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
578
+ position: z.ZodNumber;
579
+ isDefault: z.ZodBoolean;
580
+ isArchived: z.ZodBoolean;
581
+ isRequired: z.ZodBoolean;
582
+ isUnique: z.ZodBoolean;
583
+ options: z.ZodArray<z.ZodObject<{
584
+ position: z.ZodNumber;
585
+ value: z.ZodString;
586
+ label: z.ZodString;
587
+ isDefault: z.ZodBoolean;
588
+ id: z.ZodString;
589
+ }, "strip", z.ZodTypeAny, {
590
+ id: string;
591
+ position: number;
592
+ value: string;
593
+ label: string;
594
+ isDefault: boolean;
595
+ }, {
596
+ id: string;
597
+ position: number;
598
+ value: string;
599
+ label: string;
600
+ isDefault: boolean;
601
+ }>, "many">;
602
+ group: z.ZodObject<{
603
+ id: z.ZodString;
604
+ createdAt: z.ZodDate;
605
+ updatedAt: z.ZodDate;
606
+ deletedAt: z.ZodNullable<z.ZodDate>;
607
+ systemName: z.ZodString;
608
+ displayName: z.ZodString;
609
+ }, "strip", z.ZodTypeAny, {
610
+ id: string;
611
+ createdAt: Date;
612
+ updatedAt: Date;
613
+ deletedAt: Date | null;
614
+ systemName: string;
615
+ displayName: string;
616
+ }, {
617
+ id: string;
618
+ createdAt: Date;
619
+ updatedAt: Date;
620
+ deletedAt: Date | null;
621
+ systemName: string;
622
+ displayName: string;
623
+ }>;
624
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
625
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
626
+ id: string;
627
+ position: number;
628
+ createdAt: Date;
629
+ updatedAt: Date;
630
+ deletedAt: Date | null;
631
+ isDefault: boolean;
632
+ systemName: string;
633
+ displayName: string;
634
+ isArchived: boolean;
635
+ isRequired: boolean;
636
+ isUnique: boolean;
637
+ }, {
638
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
639
+ id: string;
640
+ position: number;
641
+ createdAt: Date;
642
+ updatedAt: Date;
643
+ deletedAt: Date | null;
644
+ isDefault: boolean;
645
+ systemName: string;
646
+ displayName: string;
647
+ isArchived: boolean;
648
+ isRequired: boolean;
649
+ isUnique: boolean;
650
+ }>;
651
+ uploads: z.ZodArray<z.ZodObject<{
652
+ id: z.ZodString;
653
+ createdAt: z.ZodDate;
654
+ updatedAt: z.ZodDate;
655
+ deletedAt: z.ZodNullable<z.ZodDate>;
656
+ customFieldId: z.ZodString;
657
+ upload: z.ZodObject<{
658
+ id: z.ZodString;
659
+ createdAt: z.ZodDate;
660
+ updatedAt: z.ZodDate;
661
+ deletedAt: z.ZodNullable<z.ZodDate>;
662
+ bucketName: z.ZodString;
663
+ fileName: z.ZodString;
664
+ fileSize: z.ZodNumber;
665
+ fileKey: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ id: string;
668
+ createdAt: Date;
669
+ updatedAt: Date;
670
+ deletedAt: Date | null;
671
+ fileName: string;
672
+ fileKey: string;
673
+ bucketName: string;
674
+ fileSize: number;
675
+ }, {
676
+ id: string;
677
+ createdAt: Date;
678
+ updatedAt: Date;
679
+ deletedAt: Date | null;
680
+ fileName: string;
681
+ fileKey: string;
682
+ bucketName: string;
683
+ fileSize: number;
684
+ }>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ id: string;
687
+ createdAt: Date;
688
+ updatedAt: Date;
689
+ deletedAt: Date | null;
690
+ customFieldId: string;
691
+ upload: {
692
+ id: string;
693
+ createdAt: Date;
694
+ updatedAt: Date;
695
+ deletedAt: Date | null;
696
+ fileName: string;
697
+ fileKey: string;
698
+ bucketName: string;
699
+ fileSize: number;
700
+ };
701
+ }, {
702
+ id: string;
703
+ createdAt: Date;
704
+ updatedAt: Date;
705
+ deletedAt: Date | null;
706
+ customFieldId: string;
707
+ upload: {
708
+ id: string;
709
+ createdAt: Date;
710
+ updatedAt: Date;
711
+ deletedAt: Date | null;
712
+ fileName: string;
713
+ fileKey: string;
714
+ bucketName: string;
715
+ fileSize: number;
716
+ };
717
+ }>, "many">;
718
+ }, "strip", z.ZodTypeAny, {
719
+ id: string;
720
+ createdAt: Date;
721
+ updatedAt: Date;
722
+ deletedAt: Date | null;
723
+ attribute: {
724
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
725
+ id: string;
726
+ position: number;
727
+ createdAt: Date;
728
+ updatedAt: Date;
729
+ deletedAt: Date | null;
730
+ isDefault: boolean;
731
+ systemName: string;
732
+ displayName: string;
733
+ isArchived: boolean;
734
+ isRequired: boolean;
735
+ isUnique: boolean;
736
+ };
737
+ textValue: string | null;
738
+ booleanValue: boolean | null;
739
+ numberValue: number | null;
740
+ dateValue: Date | null;
741
+ uploads: {
742
+ id: string;
743
+ createdAt: Date;
744
+ updatedAt: Date;
745
+ deletedAt: Date | null;
746
+ customFieldId: string;
747
+ upload: {
748
+ id: string;
749
+ createdAt: Date;
750
+ updatedAt: Date;
751
+ deletedAt: Date | null;
752
+ fileName: string;
753
+ fileKey: string;
754
+ bucketName: string;
755
+ fileSize: number;
756
+ };
757
+ }[];
758
+ }, {
759
+ id: string;
760
+ createdAt: Date;
761
+ updatedAt: Date;
762
+ deletedAt: Date | null;
763
+ attribute: {
764
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
765
+ id: string;
766
+ position: number;
767
+ createdAt: Date;
768
+ updatedAt: Date;
769
+ deletedAt: Date | null;
770
+ isDefault: boolean;
771
+ systemName: string;
772
+ displayName: string;
773
+ isArchived: boolean;
774
+ isRequired: boolean;
775
+ isUnique: boolean;
776
+ };
777
+ textValue: string | null;
778
+ booleanValue: boolean | null;
779
+ numberValue: number | null;
780
+ dateValue: Date | null;
781
+ uploads: {
782
+ id: string;
783
+ createdAt: Date;
784
+ updatedAt: Date;
785
+ deletedAt: Date | null;
786
+ customFieldId: string;
787
+ upload: {
788
+ id: string;
789
+ createdAt: Date;
790
+ updatedAt: Date;
791
+ deletedAt: Date | null;
792
+ fileName: string;
793
+ fileKey: string;
794
+ bucketName: string;
795
+ fileSize: number;
796
+ };
797
+ }[];
798
+ }>, "many">;
799
+ contactEmails: z.ZodArray<z.ZodObject<{
800
+ id: z.ZodString;
801
+ createdAt: z.ZodDate;
802
+ updatedAt: z.ZodDate;
803
+ deletedAt: z.ZodNullable<z.ZodDate>;
804
+ email: z.ZodString;
805
+ isPrimary: z.ZodBoolean;
806
+ }, "strip", z.ZodTypeAny, {
807
+ id: string;
808
+ isPrimary: boolean;
809
+ email: string;
810
+ createdAt: Date;
811
+ updatedAt: Date;
812
+ deletedAt: Date | null;
813
+ }, {
814
+ id: string;
815
+ isPrimary: boolean;
816
+ email: string;
817
+ createdAt: Date;
818
+ updatedAt: Date;
819
+ deletedAt: Date | null;
820
+ }>, "many">;
821
+ contactPhones: z.ZodArray<z.ZodObject<{
822
+ id: z.ZodString;
823
+ createdAt: z.ZodDate;
824
+ updatedAt: z.ZodDate;
825
+ deletedAt: z.ZodNullable<z.ZodDate>;
826
+ phone: z.ZodString;
827
+ isPrimary: z.ZodBoolean;
828
+ }, "strip", z.ZodTypeAny, {
829
+ id: string;
830
+ isPrimary: boolean;
831
+ createdAt: Date;
832
+ updatedAt: Date;
833
+ deletedAt: Date | null;
834
+ phone: string;
835
+ }, {
836
+ id: string;
837
+ isPrimary: boolean;
838
+ createdAt: Date;
839
+ updatedAt: Date;
840
+ deletedAt: Date | null;
841
+ phone: string;
842
+ }>, "many">;
843
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
844
+ id: z.ZodString;
845
+ createdAt: z.ZodDate;
846
+ updatedAt: z.ZodDate;
847
+ deletedAt: z.ZodNullable<z.ZodDate>;
848
+ entityId: z.ZodString;
849
+ description: z.ZodString;
850
+ entityType: z.ZodObject<{
851
+ id: z.ZodString;
852
+ createdAt: z.ZodDate;
853
+ updatedAt: z.ZodDate;
854
+ deletedAt: z.ZodNullable<z.ZodDate>;
855
+ entity: z.ZodString;
856
+ description: z.ZodNullable<z.ZodString>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ id: string;
859
+ description: string | null;
860
+ createdAt: Date;
861
+ updatedAt: Date;
862
+ deletedAt: Date | null;
863
+ entity: string;
864
+ }, {
865
+ id: string;
866
+ description: string | null;
867
+ createdAt: Date;
868
+ updatedAt: Date;
869
+ deletedAt: Date | null;
870
+ entity: string;
871
+ }>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ id: string;
874
+ description: string;
875
+ createdAt: Date;
876
+ updatedAt: Date;
877
+ deletedAt: Date | null;
878
+ entityId: string;
879
+ entityType: {
880
+ id: string;
881
+ description: string | null;
882
+ createdAt: Date;
883
+ updatedAt: Date;
884
+ deletedAt: Date | null;
885
+ entity: string;
886
+ };
887
+ }, {
888
+ id: string;
889
+ description: string;
890
+ createdAt: Date;
891
+ updatedAt: Date;
892
+ deletedAt: Date | null;
893
+ entityId: string;
894
+ entityType: {
895
+ id: string;
896
+ description: string | null;
897
+ createdAt: Date;
898
+ updatedAt: Date;
899
+ deletedAt: Date | null;
900
+ entity: string;
901
+ };
902
+ }>, "many">>;
15
903
  }, "strip", z.ZodTypeAny, {
16
904
  id: string;
17
905
  channel: string | null;
@@ -20,11 +908,99 @@ export declare const ContactSchema: z.ZodObject<{
20
908
  createdAt: Date;
21
909
  updatedAt: Date;
22
910
  deletedAt: Date | null;
911
+ customFields: {
912
+ id: string;
913
+ createdAt: Date;
914
+ updatedAt: Date;
915
+ deletedAt: Date | null;
916
+ attribute: {
917
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
918
+ id: string;
919
+ position: number;
920
+ createdAt: Date;
921
+ updatedAt: Date;
922
+ deletedAt: Date | null;
923
+ isDefault: boolean;
924
+ systemName: string;
925
+ displayName: string;
926
+ isArchived: boolean;
927
+ isRequired: boolean;
928
+ isUnique: boolean;
929
+ };
930
+ textValue: string | null;
931
+ booleanValue: boolean | null;
932
+ numberValue: number | null;
933
+ dateValue: Date | null;
934
+ uploads: {
935
+ id: string;
936
+ createdAt: Date;
937
+ updatedAt: Date;
938
+ deletedAt: Date | null;
939
+ customFieldId: string;
940
+ upload: {
941
+ id: string;
942
+ createdAt: Date;
943
+ updatedAt: Date;
944
+ deletedAt: Date | null;
945
+ fileName: string;
946
+ fileKey: string;
947
+ bucketName: string;
948
+ fileSize: number;
949
+ };
950
+ }[];
951
+ }[];
23
952
  notes: string | null;
24
- contactNumber: string | null;
25
- companyId: string | null;
26
953
  contactProfile: string | null;
27
954
  socialProfileUrl: string | null;
955
+ tags: {
956
+ id: string;
957
+ name: string;
958
+ createdAt: Date;
959
+ updatedAt: Date;
960
+ deletedAt: Date | null;
961
+ }[];
962
+ company: {
963
+ id: string;
964
+ createdAt: Date;
965
+ updatedAt: Date;
966
+ deletedAt: Date | null;
967
+ address?: string | null | undefined;
968
+ name?: string | undefined;
969
+ phone?: string | null | undefined;
970
+ industry?: string | null | undefined;
971
+ } | null;
972
+ contactEmails: {
973
+ id: string;
974
+ isPrimary: boolean;
975
+ email: string;
976
+ createdAt: Date;
977
+ updatedAt: Date;
978
+ deletedAt: Date | null;
979
+ }[];
980
+ contactPhones: {
981
+ id: string;
982
+ isPrimary: boolean;
983
+ createdAt: Date;
984
+ updatedAt: Date;
985
+ deletedAt: Date | null;
986
+ phone: string;
987
+ }[];
988
+ activityLogs?: {
989
+ id: string;
990
+ description: string;
991
+ createdAt: Date;
992
+ updatedAt: Date;
993
+ deletedAt: Date | null;
994
+ entityId: string;
995
+ entityType: {
996
+ id: string;
997
+ description: string | null;
998
+ createdAt: Date;
999
+ updatedAt: Date;
1000
+ deletedAt: Date | null;
1001
+ entity: string;
1002
+ };
1003
+ }[] | undefined;
28
1004
  }, {
29
1005
  id: string;
30
1006
  channel: string | null;
@@ -33,10 +1009,98 @@ export declare const ContactSchema: z.ZodObject<{
33
1009
  createdAt: Date;
34
1010
  updatedAt: Date;
35
1011
  deletedAt: Date | null;
1012
+ customFields: {
1013
+ id: string;
1014
+ createdAt: Date;
1015
+ updatedAt: Date;
1016
+ deletedAt: Date | null;
1017
+ attribute: {
1018
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1019
+ id: string;
1020
+ position: number;
1021
+ createdAt: Date;
1022
+ updatedAt: Date;
1023
+ deletedAt: Date | null;
1024
+ isDefault: boolean;
1025
+ systemName: string;
1026
+ displayName: string;
1027
+ isArchived: boolean;
1028
+ isRequired: boolean;
1029
+ isUnique: boolean;
1030
+ };
1031
+ textValue: string | null;
1032
+ booleanValue: boolean | null;
1033
+ numberValue: number | null;
1034
+ dateValue: Date | null;
1035
+ uploads: {
1036
+ id: string;
1037
+ createdAt: Date;
1038
+ updatedAt: Date;
1039
+ deletedAt: Date | null;
1040
+ customFieldId: string;
1041
+ upload: {
1042
+ id: string;
1043
+ createdAt: Date;
1044
+ updatedAt: Date;
1045
+ deletedAt: Date | null;
1046
+ fileName: string;
1047
+ fileKey: string;
1048
+ bucketName: string;
1049
+ fileSize: number;
1050
+ };
1051
+ }[];
1052
+ }[];
36
1053
  notes: string | null;
37
- contactNumber: string | null;
38
- companyId: string | null;
39
1054
  contactProfile: string | null;
40
1055
  socialProfileUrl: string | null;
1056
+ tags: {
1057
+ id: string;
1058
+ name: string;
1059
+ createdAt: Date;
1060
+ updatedAt: Date;
1061
+ deletedAt: Date | null;
1062
+ }[];
1063
+ company: {
1064
+ id: string;
1065
+ createdAt: Date;
1066
+ updatedAt: Date;
1067
+ deletedAt: Date | null;
1068
+ address?: string | null | undefined;
1069
+ name?: string | undefined;
1070
+ phone?: string | null | undefined;
1071
+ industry?: string | null | undefined;
1072
+ } | null;
1073
+ contactEmails: {
1074
+ id: string;
1075
+ isPrimary: boolean;
1076
+ email: string;
1077
+ createdAt: Date;
1078
+ updatedAt: Date;
1079
+ deletedAt: Date | null;
1080
+ }[];
1081
+ contactPhones: {
1082
+ id: string;
1083
+ isPrimary: boolean;
1084
+ createdAt: Date;
1085
+ updatedAt: Date;
1086
+ deletedAt: Date | null;
1087
+ phone: string;
1088
+ }[];
1089
+ activityLogs?: {
1090
+ id: string;
1091
+ description: string;
1092
+ createdAt: Date;
1093
+ updatedAt: Date;
1094
+ deletedAt: Date | null;
1095
+ entityId: string;
1096
+ entityType: {
1097
+ id: string;
1098
+ description: string | null;
1099
+ createdAt: Date;
1100
+ updatedAt: Date;
1101
+ deletedAt: Date | null;
1102
+ entity: string;
1103
+ };
1104
+ }[] | undefined;
41
1105
  }>;
42
1106
  //# sourceMappingURL=schema.d.ts.map