@kl1/contracts 0.0.0-prod-testing

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 (287) hide show
  1. package/dist/index.js +7761 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/index.mjs +7692 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/dist/src/activity-log/index.d.ts +406 -0
  6. package/dist/src/activity-log/index.d.ts.map +1 -0
  7. package/dist/src/activity-log/schema.d.ts +376 -0
  8. package/dist/src/activity-log/schema.d.ts.map +1 -0
  9. package/dist/src/activity-log/validation.d.ts +2 -0
  10. package/dist/src/activity-log/validation.d.ts.map +1 -0
  11. package/dist/src/attribute/index.d.ts +973 -0
  12. package/dist/src/attribute/index.d.ts.map +1 -0
  13. package/dist/src/attribute/schema.d.ts +130 -0
  14. package/dist/src/attribute/schema.d.ts.map +1 -0
  15. package/dist/src/attribute/validation.d.ts +128 -0
  16. package/dist/src/attribute/validation.d.ts.map +1 -0
  17. package/dist/src/attribute-option/schema.d.ts +33 -0
  18. package/dist/src/attribute-option/schema.d.ts.map +1 -0
  19. package/dist/src/auth/index.d.ts +595 -0
  20. package/dist/src/auth/index.d.ts.map +1 -0
  21. package/dist/src/aws/index.d.ts +177 -0
  22. package/dist/src/aws/index.d.ts.map +1 -0
  23. package/dist/src/aws/validation.d.ts +58 -0
  24. package/dist/src/aws/validation.d.ts.map +1 -0
  25. package/dist/src/base-contract.d.ts +123 -0
  26. package/dist/src/base-contract.d.ts.map +1 -0
  27. package/dist/src/botpress/index.d.ts +547 -0
  28. package/dist/src/botpress/index.d.ts.map +1 -0
  29. package/dist/src/botpress/schema.d.ts +81 -0
  30. package/dist/src/botpress/schema.d.ts.map +1 -0
  31. package/dist/src/botpress/validation.d.ts +229 -0
  32. package/dist/src/botpress/validation.d.ts.map +1 -0
  33. package/dist/src/business-calendar/index.d.ts +820 -0
  34. package/dist/src/business-calendar/index.d.ts.map +1 -0
  35. package/dist/src/business-calendar/schema.d.ts +180 -0
  36. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  37. package/dist/src/business-calendar/validation.d.ts +210 -0
  38. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  39. package/dist/src/call-log/index.d.ts +4 -0
  40. package/dist/src/call-log/index.d.ts.map +1 -0
  41. package/dist/src/call-log/schema.d.ts +57 -0
  42. package/dist/src/call-log/schema.d.ts.map +1 -0
  43. package/dist/src/call-log/validation.d.ts +24 -0
  44. package/dist/src/call-log/validation.d.ts.map +1 -0
  45. package/dist/src/category/index.d.ts +797 -0
  46. package/dist/src/category/index.d.ts.map +1 -0
  47. package/dist/src/category/schema.d.ts +116 -0
  48. package/dist/src/category/schema.d.ts.map +1 -0
  49. package/dist/src/category/validation.d.ts +42 -0
  50. package/dist/src/category/validation.d.ts.map +1 -0
  51. package/dist/src/channel/index.d.ts +5751 -0
  52. package/dist/src/channel/index.d.ts.map +1 -0
  53. package/dist/src/channel/schema.d.ts +400 -0
  54. package/dist/src/channel/schema.d.ts.map +1 -0
  55. package/dist/src/channel/validation.d.ts +153 -0
  56. package/dist/src/channel/validation.d.ts.map +1 -0
  57. package/dist/src/chat/index.d.ts +52481 -0
  58. package/dist/src/chat/index.d.ts.map +1 -0
  59. package/dist/src/chat/schema.d.ts +10848 -0
  60. package/dist/src/chat/schema.d.ts.map +1 -0
  61. package/dist/src/chat/validation.d.ts +14033 -0
  62. package/dist/src/chat/validation.d.ts.map +1 -0
  63. package/dist/src/comment/index.d.ts +13617 -0
  64. package/dist/src/comment/index.d.ts.map +1 -0
  65. package/dist/src/comment/schema.d.ts +3872 -0
  66. package/dist/src/comment/schema.d.ts.map +1 -0
  67. package/dist/src/comment/validation.d.ts +38 -0
  68. package/dist/src/comment/validation.d.ts.map +1 -0
  69. package/dist/src/company/index.d.ts +1726 -0
  70. package/dist/src/company/index.d.ts.map +1 -0
  71. package/dist/src/company/schema.d.ts +352 -0
  72. package/dist/src/company/schema.d.ts.map +1 -0
  73. package/dist/src/company/validation.d.ts +812 -0
  74. package/dist/src/company/validation.d.ts.map +1 -0
  75. package/dist/src/contact/index.d.ts +8915 -0
  76. package/dist/src/contact/index.d.ts.map +1 -0
  77. package/dist/src/contact/schema.d.ts +1166 -0
  78. package/dist/src/contact/schema.d.ts.map +1 -0
  79. package/dist/src/contact/validation.d.ts +5252 -0
  80. package/dist/src/contact/validation.d.ts.map +1 -0
  81. package/dist/src/contact-email/schema.d.ts +27 -0
  82. package/dist/src/contact-email/schema.d.ts.map +1 -0
  83. package/dist/src/contact-phone/schema.d.ts +27 -0
  84. package/dist/src/contact-phone/schema.d.ts.map +1 -0
  85. package/dist/src/contract.d.ts +151960 -0
  86. package/dist/src/contract.d.ts.map +1 -0
  87. package/dist/src/contract2.d.ts +2 -0
  88. package/dist/src/contract2.d.ts.map +1 -0
  89. package/dist/src/custom-field/index.d.ts +4 -0
  90. package/dist/src/custom-field/index.d.ts.map +1 -0
  91. package/dist/src/custom-field/schema.d.ts +36 -0
  92. package/dist/src/custom-field/schema.d.ts.map +1 -0
  93. package/dist/src/custom-field/validation.d.ts +15 -0
  94. package/dist/src/custom-field/validation.d.ts.map +1 -0
  95. package/dist/src/custom-field-upload/schema.d.ts +24 -0
  96. package/dist/src/custom-field-upload/schema.d.ts.map +1 -0
  97. package/dist/src/cx-log/index.d.ts +8949 -0
  98. package/dist/src/cx-log/index.d.ts.map +1 -0
  99. package/dist/src/cx-log/schema.d.ts +7563 -0
  100. package/dist/src/cx-log/schema.d.ts.map +1 -0
  101. package/dist/src/cx-log/validation.d.ts +98 -0
  102. package/dist/src/cx-log/validation.d.ts.map +1 -0
  103. package/dist/src/dashboard/index.d.ts +1957 -0
  104. package/dist/src/dashboard/index.d.ts.map +1 -0
  105. package/dist/src/dashboard/schema.d.ts +1064 -0
  106. package/dist/src/dashboard/schema.d.ts.map +1 -0
  107. package/dist/src/dashboard/validation.d.ts +29 -0
  108. package/dist/src/dashboard/validation.d.ts.map +1 -0
  109. package/dist/src/evaluate-form/index.d.ts +47 -0
  110. package/dist/src/evaluate-form/index.d.ts.map +1 -0
  111. package/dist/src/evaluate-form/schema.d.ts +27 -0
  112. package/dist/src/evaluate-form/schema.d.ts.map +1 -0
  113. package/dist/src/evaluate-form/validation.d.ts +28 -0
  114. package/dist/src/evaluate-form/validation.d.ts.map +1 -0
  115. package/dist/src/extension/index.d.ts +900 -0
  116. package/dist/src/extension/index.d.ts.map +1 -0
  117. package/dist/src/extension/schema.d.ts +39 -0
  118. package/dist/src/extension/schema.d.ts.map +1 -0
  119. package/dist/src/extension/validation.d.ts +52 -0
  120. package/dist/src/extension/validation.d.ts.map +1 -0
  121. package/dist/src/group/schema.d.ts +24 -0
  122. package/dist/src/group/schema.d.ts.map +1 -0
  123. package/dist/src/index.d.ts +26 -0
  124. package/dist/src/index.d.ts.map +1 -0
  125. package/dist/src/instagram/index.d.ts +9318 -0
  126. package/dist/src/instagram/index.d.ts.map +1 -0
  127. package/dist/src/instagram/schema.d.ts +2 -0
  128. package/dist/src/instagram/schema.d.ts.map +1 -0
  129. package/dist/src/instagram/validation.d.ts +113 -0
  130. package/dist/src/instagram/validation.d.ts.map +1 -0
  131. package/dist/src/line/index.d.ts +9485 -0
  132. package/dist/src/line/index.d.ts.map +1 -0
  133. package/dist/src/line/schema.d.ts +54 -0
  134. package/dist/src/line/schema.d.ts.map +1 -0
  135. package/dist/src/line/validation.d.ts +583 -0
  136. package/dist/src/line/validation.d.ts.map +1 -0
  137. package/dist/src/log-form/schema.d.ts +24 -0
  138. package/dist/src/log-form/schema.d.ts.map +1 -0
  139. package/dist/src/mail/account-contract.d.ts +1615 -0
  140. package/dist/src/mail/account-contract.d.ts.map +1 -0
  141. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts +22 -0
  142. package/dist/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -0
  143. package/dist/src/mail/index.d.ts +23 -0
  144. package/dist/src/mail/index.d.ts.map +1 -0
  145. package/dist/src/mail/mail-contract.d.ts +16337 -0
  146. package/dist/src/mail/mail-contract.d.ts.map +1 -0
  147. package/dist/src/mail/mail-server-contract.d.ts +675 -0
  148. package/dist/src/mail/mail-server-contract.d.ts.map +1 -0
  149. package/dist/src/mail/message-contract.d.ts +832 -0
  150. package/dist/src/mail/message-contract.d.ts.map +1 -0
  151. package/dist/src/mail/room-contract.d.ts +13222 -0
  152. package/dist/src/mail/room-contract.d.ts.map +1 -0
  153. package/dist/src/mail/schemas/account-validation.schema.d.ts +790 -0
  154. package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -0
  155. package/dist/src/mail/schemas/account.schema.d.ts +149 -0
  156. package/dist/src/mail/schemas/account.schema.d.ts.map +1 -0
  157. package/dist/src/mail/schemas/message-validation.schema.d.ts +163 -0
  158. package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -0
  159. package/dist/src/mail/schemas/message.schema.d.ts +349 -0
  160. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -0
  161. package/dist/src/mail/schemas/room-validation.schema.d.ts +4154 -0
  162. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -0
  163. package/dist/src/mail/schemas/room.schema.d.ts +3683 -0
  164. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -0
  165. package/dist/src/mail/schemas/servers-validation.schema.d.ts +33 -0
  166. package/dist/src/mail/schemas/servers-validation.schema.d.ts.map +1 -0
  167. package/dist/src/messenger/index.d.ts +9339 -0
  168. package/dist/src/messenger/index.d.ts.map +1 -0
  169. package/dist/src/messenger/schema.d.ts +2 -0
  170. package/dist/src/messenger/schema.d.ts.map +1 -0
  171. package/dist/src/messenger/validation.d.ts +1632 -0
  172. package/dist/src/messenger/validation.d.ts.map +1 -0
  173. package/dist/src/notification/index.d.ts +2217 -0
  174. package/dist/src/notification/index.d.ts.map +1 -0
  175. package/dist/src/notification/schema.d.ts +1348 -0
  176. package/dist/src/notification/schema.d.ts.map +1 -0
  177. package/dist/src/notification/validation.d.ts +766 -0
  178. package/dist/src/notification/validation.d.ts.map +1 -0
  179. package/dist/src/permission/index.d.ts +103 -0
  180. package/dist/src/permission/index.d.ts.map +1 -0
  181. package/dist/src/permission/schema.d.ts +27 -0
  182. package/dist/src/permission/schema.d.ts.map +1 -0
  183. package/dist/src/public-api/index.d.ts +5843 -0
  184. package/dist/src/public-api/index.d.ts.map +1 -0
  185. package/dist/src/public-api/schema.d.ts +1010 -0
  186. package/dist/src/public-api/schema.d.ts.map +1 -0
  187. package/dist/src/public-api/validation.d.ts +1822 -0
  188. package/dist/src/public-api/validation.d.ts.map +1 -0
  189. package/dist/src/role/index.d.ts +566 -0
  190. package/dist/src/role/index.d.ts.map +1 -0
  191. package/dist/src/role/schema.d.ts +70 -0
  192. package/dist/src/role/schema.d.ts.map +1 -0
  193. package/dist/src/role/validation.d.ts +34 -0
  194. package/dist/src/role/validation.d.ts.map +1 -0
  195. package/dist/src/snippet/index.d.ts +1188 -0
  196. package/dist/src/snippet/index.d.ts.map +1 -0
  197. package/dist/src/snippet/schema.d.ts +332 -0
  198. package/dist/src/snippet/schema.d.ts.map +1 -0
  199. package/dist/src/snippet/validation.d.ts +80 -0
  200. package/dist/src/snippet/validation.d.ts.map +1 -0
  201. package/dist/src/tag/index.d.ts +310 -0
  202. package/dist/src/tag/index.d.ts.map +1 -0
  203. package/dist/src/tag/schema.d.ts +22 -0
  204. package/dist/src/tag/schema.d.ts.map +1 -0
  205. package/dist/src/tag/validation.d.ts +29 -0
  206. package/dist/src/tag/validation.d.ts.map +1 -0
  207. package/dist/src/tag-group/schema.d.ts +24 -0
  208. package/dist/src/tag-group/schema.d.ts.map +1 -0
  209. package/dist/src/telephony-agent-presence-status/index.d.ts +1423 -0
  210. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  211. package/dist/src/telephony-agent-presence-status/schema.d.ts +373 -0
  212. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  213. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  214. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  215. package/dist/src/telephony-cdr/call-report.schema.d.ts +1753 -0
  216. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -0
  217. package/dist/src/telephony-cdr/index.d.ts +9144 -0
  218. package/dist/src/telephony-cdr/index.d.ts.map +1 -0
  219. package/dist/src/telephony-cdr/schema.d.ts +3021 -0
  220. package/dist/src/telephony-cdr/schema.d.ts.map +1 -0
  221. package/dist/src/telephony-cdr/validation.d.ts +236 -0
  222. package/dist/src/telephony-cdr/validation.d.ts.map +1 -0
  223. package/dist/src/telephony-extension/index.d.ts +263 -0
  224. package/dist/src/telephony-extension/index.d.ts.map +1 -0
  225. package/dist/src/telephony-extension/schema.d.ts +208 -0
  226. package/dist/src/telephony-extension/schema.d.ts.map +1 -0
  227. package/dist/src/telephony-live-queue-call/schema.d.ts +27 -0
  228. package/dist/src/telephony-live-queue-call/schema.d.ts.map +1 -0
  229. package/dist/src/telephony-queue-call-count/schema.d.ts +51 -0
  230. package/dist/src/telephony-queue-call-count/schema.d.ts.map +1 -0
  231. package/dist/src/tenant/schema.d.ts +36 -0
  232. package/dist/src/tenant/schema.d.ts.map +1 -0
  233. package/dist/src/ticket/index.d.ts +18513 -0
  234. package/dist/src/ticket/index.d.ts.map +1 -0
  235. package/dist/src/ticket/schema.d.ts +2728 -0
  236. package/dist/src/ticket/schema.d.ts.map +1 -0
  237. package/dist/src/ticket/validation.d.ts +559 -0
  238. package/dist/src/ticket/validation.d.ts.map +1 -0
  239. package/dist/src/upload/index.d.ts +197 -0
  240. package/dist/src/upload/index.d.ts.map +1 -0
  241. package/dist/src/upload/schema.d.ts +50 -0
  242. package/dist/src/upload/schema.d.ts.map +1 -0
  243. package/dist/src/upload/validation.d.ts +2 -0
  244. package/dist/src/upload/validation.d.ts.map +1 -0
  245. package/dist/src/user/index.d.ts +1767 -0
  246. package/dist/src/user/index.d.ts.map +1 -0
  247. package/dist/src/user/schema.d.ts +206 -0
  248. package/dist/src/user/schema.d.ts.map +1 -0
  249. package/dist/src/user/validation.d.ts +62 -0
  250. package/dist/src/user/validation.d.ts.map +1 -0
  251. package/dist/src/user-presence-status-log/index.d.ts +412 -0
  252. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  253. package/dist/src/user-presence-status-log/schema.d.ts +389 -0
  254. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  255. package/dist/src/user-presence-status-log/validation.d.ts +22 -0
  256. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  257. package/dist/src/viber/index.d.ts +9832 -0
  258. package/dist/src/viber/index.d.ts.map +1 -0
  259. package/dist/src/viber/schema.d.ts +2 -0
  260. package/dist/src/viber/schema.d.ts.map +1 -0
  261. package/dist/src/viber/validation.d.ts +45 -0
  262. package/dist/src/viber/validation.d.ts.map +1 -0
  263. package/dist/src/webchat/index.d.ts +8644 -0
  264. package/dist/src/webchat/index.d.ts.map +1 -0
  265. package/dist/src/webchat/schema.d.ts +95 -0
  266. package/dist/src/webchat/schema.d.ts.map +1 -0
  267. package/dist/src/webchat/validation.d.ts +36 -0
  268. package/dist/src/webchat/validation.d.ts.map +1 -0
  269. package/dist/src/widget/index.d.ts +925 -0
  270. package/dist/src/widget/index.d.ts.map +1 -0
  271. package/dist/src/widget/schema.d.ts +44 -0
  272. package/dist/src/widget/schema.d.ts.map +1 -0
  273. package/dist/src/widget/validation.d.ts +70 -0
  274. package/dist/src/widget/validation.d.ts.map +1 -0
  275. package/dist/src/workflow-rule/index.d.ts +7305 -0
  276. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  277. package/dist/src/workflow-rule/schema.d.ts +27 -0
  278. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  279. package/dist/src/wrap-up-form/index.d.ts +2088 -0
  280. package/dist/src/wrap-up-form/index.d.ts.map +1 -0
  281. package/dist/src/wrap-up-form/schema.d.ts +268 -0
  282. package/dist/src/wrap-up-form/schema.d.ts.map +1 -0
  283. package/dist/src/wrap-up-form/validation.d.ts +88 -0
  284. package/dist/src/wrap-up-form/validation.d.ts.map +1 -0
  285. package/dist/utils.d.ts +37 -0
  286. package/dist/utils.d.ts.map +1 -0
  287. package/package.json +50 -0
@@ -0,0 +1,3872 @@
1
+ import z from 'zod';
2
+ export declare const CommentSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ activityLogs: z.ZodArray<z.ZodObject<{
8
+ id: z.ZodString;
9
+ createdAt: z.ZodDate;
10
+ updatedAt: z.ZodDate;
11
+ deletedAt: z.ZodNullable<z.ZodDate>;
12
+ actor: z.ZodObject<{
13
+ id: z.ZodString;
14
+ createdAt: z.ZodDate;
15
+ updatedAt: z.ZodDate;
16
+ deletedAt: z.ZodNullable<z.ZodDate>;
17
+ name: z.ZodString;
18
+ email: z.ZodString;
19
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
20
+ password: z.ZodString;
21
+ address: z.ZodNullable<z.ZodString>;
22
+ phone: z.ZodNullable<z.ZodString>;
23
+ notificationCount: z.ZodNullable<z.ZodNumber>;
24
+ roles: z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ deletedAt: z.ZodNullable<z.ZodDate>;
29
+ systemName: z.ZodString;
30
+ displayName: z.ZodString;
31
+ description: z.ZodNullable<z.ZodString>;
32
+ permissions: z.ZodArray<z.ZodObject<{
33
+ id: z.ZodString;
34
+ createdAt: z.ZodDate;
35
+ updatedAt: z.ZodDate;
36
+ deletedAt: z.ZodNullable<z.ZodDate>;
37
+ systemName: z.ZodString;
38
+ displayName: z.ZodString;
39
+ description: z.ZodNullable<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ description: string | null;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ deletedAt: Date | null;
46
+ systemName: string;
47
+ displayName: string;
48
+ }, {
49
+ id: string;
50
+ description: string | null;
51
+ createdAt: Date;
52
+ updatedAt: Date;
53
+ deletedAt: Date | null;
54
+ systemName: string;
55
+ displayName: string;
56
+ }>, "many">;
57
+ }, "strip", z.ZodTypeAny, {
58
+ id: string;
59
+ description: string | null;
60
+ createdAt: Date;
61
+ updatedAt: Date;
62
+ deletedAt: Date | null;
63
+ systemName: string;
64
+ displayName: string;
65
+ permissions: {
66
+ id: string;
67
+ description: string | null;
68
+ createdAt: Date;
69
+ updatedAt: Date;
70
+ deletedAt: Date | null;
71
+ systemName: string;
72
+ displayName: string;
73
+ }[];
74
+ }, {
75
+ id: string;
76
+ description: string | null;
77
+ createdAt: Date;
78
+ updatedAt: Date;
79
+ deletedAt: Date | null;
80
+ systemName: string;
81
+ displayName: string;
82
+ permissions: {
83
+ id: string;
84
+ description: string | null;
85
+ createdAt: Date;
86
+ updatedAt: Date;
87
+ deletedAt: Date | null;
88
+ systemName: string;
89
+ displayName: string;
90
+ }[];
91
+ }>, "many">;
92
+ extension: z.ZodObject<{
93
+ id: z.ZodString;
94
+ createdAt: z.ZodDate;
95
+ updatedAt: z.ZodDate;
96
+ deletedAt: z.ZodNullable<z.ZodDate>;
97
+ userId: z.ZodNullable<z.ZodString>;
98
+ sipServerUrl: z.ZodString;
99
+ sipUserName: z.ZodString;
100
+ webphoneLoginUser: z.ZodString;
101
+ extensionId: z.ZodNullable<z.ZodString>;
102
+ extensionName: z.ZodString;
103
+ telephonySignature: z.ZodNullable<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ id: string;
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ deletedAt: Date | null;
109
+ userId: string | null;
110
+ sipServerUrl: string;
111
+ sipUserName: string;
112
+ webphoneLoginUser: string;
113
+ extensionId: string | null;
114
+ extensionName: string;
115
+ telephonySignature: string | null;
116
+ }, {
117
+ id: string;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ deletedAt: Date | null;
121
+ userId: string | null;
122
+ sipServerUrl: string;
123
+ sipUserName: string;
124
+ webphoneLoginUser: string;
125
+ extensionId: string | null;
126
+ extensionName: string;
127
+ telephonySignature: string | null;
128
+ }>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: string;
131
+ address: string | null;
132
+ name: string;
133
+ email: string;
134
+ createdAt: Date;
135
+ updatedAt: Date;
136
+ deletedAt: Date | null;
137
+ emailVerifiedAt: Date | null;
138
+ password: string;
139
+ phone: string | null;
140
+ notificationCount: number | null;
141
+ roles: {
142
+ id: string;
143
+ description: string | null;
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ deletedAt: Date | null;
147
+ systemName: string;
148
+ displayName: string;
149
+ permissions: {
150
+ id: string;
151
+ description: string | null;
152
+ createdAt: Date;
153
+ updatedAt: Date;
154
+ deletedAt: Date | null;
155
+ systemName: string;
156
+ displayName: string;
157
+ }[];
158
+ }[];
159
+ extension: {
160
+ id: string;
161
+ createdAt: Date;
162
+ updatedAt: Date;
163
+ deletedAt: Date | null;
164
+ userId: string | null;
165
+ sipServerUrl: string;
166
+ sipUserName: string;
167
+ webphoneLoginUser: string;
168
+ extensionId: string | null;
169
+ extensionName: string;
170
+ telephonySignature: string | null;
171
+ };
172
+ }, {
173
+ id: string;
174
+ address: string | null;
175
+ name: string;
176
+ email: string;
177
+ createdAt: Date;
178
+ updatedAt: Date;
179
+ deletedAt: Date | null;
180
+ emailVerifiedAt: Date | null;
181
+ password: string;
182
+ phone: string | null;
183
+ notificationCount: number | null;
184
+ roles: {
185
+ id: string;
186
+ description: string | null;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ deletedAt: Date | null;
190
+ systemName: string;
191
+ displayName: string;
192
+ permissions: {
193
+ id: string;
194
+ description: string | null;
195
+ createdAt: Date;
196
+ updatedAt: Date;
197
+ deletedAt: Date | null;
198
+ systemName: string;
199
+ displayName: string;
200
+ }[];
201
+ }[];
202
+ extension: {
203
+ id: string;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ deletedAt: Date | null;
207
+ userId: string | null;
208
+ sipServerUrl: string;
209
+ sipUserName: string;
210
+ webphoneLoginUser: string;
211
+ extensionId: string | null;
212
+ extensionName: string;
213
+ telephonySignature: string | null;
214
+ };
215
+ }>;
216
+ entityId: z.ZodString;
217
+ description: z.ZodString;
218
+ entityType: z.ZodObject<{
219
+ id: z.ZodString;
220
+ createdAt: z.ZodDate;
221
+ updatedAt: z.ZodDate;
222
+ deletedAt: z.ZodNullable<z.ZodDate>;
223
+ entity: z.ZodString;
224
+ description: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ id: string;
227
+ description: string;
228
+ createdAt: Date;
229
+ updatedAt: Date;
230
+ deletedAt: Date | null;
231
+ entity: string;
232
+ }, {
233
+ id: string;
234
+ description: string;
235
+ createdAt: Date;
236
+ updatedAt: Date;
237
+ deletedAt: Date | null;
238
+ entity: string;
239
+ }>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ id: string;
242
+ description: string;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ deletedAt: Date | null;
246
+ actor: {
247
+ id: string;
248
+ address: string | null;
249
+ name: string;
250
+ email: string;
251
+ createdAt: Date;
252
+ updatedAt: Date;
253
+ deletedAt: Date | null;
254
+ emailVerifiedAt: Date | null;
255
+ password: string;
256
+ phone: string | null;
257
+ notificationCount: number | null;
258
+ roles: {
259
+ id: string;
260
+ description: string | null;
261
+ createdAt: Date;
262
+ updatedAt: Date;
263
+ deletedAt: Date | null;
264
+ systemName: string;
265
+ displayName: string;
266
+ permissions: {
267
+ id: string;
268
+ description: string | null;
269
+ createdAt: Date;
270
+ updatedAt: Date;
271
+ deletedAt: Date | null;
272
+ systemName: string;
273
+ displayName: string;
274
+ }[];
275
+ }[];
276
+ extension: {
277
+ id: string;
278
+ createdAt: Date;
279
+ updatedAt: Date;
280
+ deletedAt: Date | null;
281
+ userId: string | null;
282
+ sipServerUrl: string;
283
+ sipUserName: string;
284
+ webphoneLoginUser: string;
285
+ extensionId: string | null;
286
+ extensionName: string;
287
+ telephonySignature: string | null;
288
+ };
289
+ };
290
+ entityId: string;
291
+ entityType: {
292
+ id: string;
293
+ description: string;
294
+ createdAt: Date;
295
+ updatedAt: Date;
296
+ deletedAt: Date | null;
297
+ entity: string;
298
+ };
299
+ }, {
300
+ id: string;
301
+ description: string;
302
+ createdAt: Date;
303
+ updatedAt: Date;
304
+ deletedAt: Date | null;
305
+ actor: {
306
+ id: string;
307
+ address: string | null;
308
+ name: string;
309
+ email: string;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ deletedAt: Date | null;
313
+ emailVerifiedAt: Date | null;
314
+ password: string;
315
+ phone: string | null;
316
+ notificationCount: number | null;
317
+ roles: {
318
+ id: string;
319
+ description: string | null;
320
+ createdAt: Date;
321
+ updatedAt: Date;
322
+ deletedAt: Date | null;
323
+ systemName: string;
324
+ displayName: string;
325
+ permissions: {
326
+ id: string;
327
+ description: string | null;
328
+ createdAt: Date;
329
+ updatedAt: Date;
330
+ deletedAt: Date | null;
331
+ systemName: string;
332
+ displayName: string;
333
+ }[];
334
+ }[];
335
+ extension: {
336
+ id: string;
337
+ createdAt: Date;
338
+ updatedAt: Date;
339
+ deletedAt: Date | null;
340
+ userId: string | null;
341
+ sipServerUrl: string;
342
+ sipUserName: string;
343
+ webphoneLoginUser: string;
344
+ extensionId: string | null;
345
+ extensionName: string;
346
+ telephonySignature: string | null;
347
+ };
348
+ };
349
+ entityId: string;
350
+ entityType: {
351
+ id: string;
352
+ description: string;
353
+ createdAt: Date;
354
+ updatedAt: Date;
355
+ deletedAt: Date | null;
356
+ entity: string;
357
+ };
358
+ }>, "many">;
359
+ comment: z.ZodString;
360
+ mentions: z.ZodArray<z.ZodString, "many">;
361
+ ticket: z.ZodObject<{
362
+ id: z.ZodString;
363
+ createdAt: z.ZodDate;
364
+ updatedAt: z.ZodDate;
365
+ deletedAt: z.ZodNullable<z.ZodDate>;
366
+ title: z.ZodString;
367
+ description: z.ZodNullable<z.ZodString>;
368
+ type: z.ZodString;
369
+ channel: z.ZodString;
370
+ priority: z.ZodString;
371
+ status: z.ZodString;
372
+ contactId: z.ZodString;
373
+ creatorId: z.ZodString;
374
+ creator: z.ZodNullable<z.ZodOptional<z.ZodObject<{
375
+ id: z.ZodString;
376
+ createdAt: z.ZodDate;
377
+ updatedAt: z.ZodDate;
378
+ deletedAt: z.ZodNullable<z.ZodDate>;
379
+ name: z.ZodString;
380
+ email: z.ZodString;
381
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
382
+ password: z.ZodString;
383
+ address: z.ZodNullable<z.ZodString>;
384
+ phone: z.ZodNullable<z.ZodString>;
385
+ notificationCount: z.ZodNullable<z.ZodNumber>;
386
+ roles: z.ZodArray<z.ZodObject<{
387
+ id: z.ZodString;
388
+ createdAt: z.ZodDate;
389
+ updatedAt: z.ZodDate;
390
+ deletedAt: z.ZodNullable<z.ZodDate>;
391
+ systemName: z.ZodString;
392
+ displayName: z.ZodString;
393
+ description: z.ZodNullable<z.ZodString>;
394
+ permissions: z.ZodArray<z.ZodObject<{
395
+ id: z.ZodString;
396
+ createdAt: z.ZodDate;
397
+ updatedAt: z.ZodDate;
398
+ deletedAt: z.ZodNullable<z.ZodDate>;
399
+ systemName: z.ZodString;
400
+ displayName: z.ZodString;
401
+ description: z.ZodNullable<z.ZodString>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ id: string;
404
+ description: string | null;
405
+ createdAt: Date;
406
+ updatedAt: Date;
407
+ deletedAt: Date | null;
408
+ systemName: string;
409
+ displayName: string;
410
+ }, {
411
+ id: string;
412
+ description: string | null;
413
+ createdAt: Date;
414
+ updatedAt: Date;
415
+ deletedAt: Date | null;
416
+ systemName: string;
417
+ displayName: string;
418
+ }>, "many">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ id: string;
421
+ description: string | null;
422
+ createdAt: Date;
423
+ updatedAt: Date;
424
+ deletedAt: Date | null;
425
+ systemName: string;
426
+ displayName: string;
427
+ permissions: {
428
+ id: string;
429
+ description: string | null;
430
+ createdAt: Date;
431
+ updatedAt: Date;
432
+ deletedAt: Date | null;
433
+ systemName: string;
434
+ displayName: string;
435
+ }[];
436
+ }, {
437
+ id: string;
438
+ description: string | null;
439
+ createdAt: Date;
440
+ updatedAt: Date;
441
+ deletedAt: Date | null;
442
+ systemName: string;
443
+ displayName: string;
444
+ permissions: {
445
+ id: string;
446
+ description: string | null;
447
+ createdAt: Date;
448
+ updatedAt: Date;
449
+ deletedAt: Date | null;
450
+ systemName: string;
451
+ displayName: string;
452
+ }[];
453
+ }>, "many">;
454
+ extension: z.ZodObject<{
455
+ id: z.ZodString;
456
+ createdAt: z.ZodDate;
457
+ updatedAt: z.ZodDate;
458
+ deletedAt: z.ZodNullable<z.ZodDate>;
459
+ userId: z.ZodNullable<z.ZodString>;
460
+ sipServerUrl: z.ZodString;
461
+ sipUserName: z.ZodString;
462
+ webphoneLoginUser: z.ZodString;
463
+ extensionId: z.ZodNullable<z.ZodString>;
464
+ extensionName: z.ZodString;
465
+ telephonySignature: z.ZodNullable<z.ZodString>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ id: string;
468
+ createdAt: Date;
469
+ updatedAt: Date;
470
+ deletedAt: Date | null;
471
+ userId: string | null;
472
+ sipServerUrl: string;
473
+ sipUserName: string;
474
+ webphoneLoginUser: string;
475
+ extensionId: string | null;
476
+ extensionName: string;
477
+ telephonySignature: string | null;
478
+ }, {
479
+ id: string;
480
+ createdAt: Date;
481
+ updatedAt: Date;
482
+ deletedAt: Date | null;
483
+ userId: string | null;
484
+ sipServerUrl: string;
485
+ sipUserName: string;
486
+ webphoneLoginUser: string;
487
+ extensionId: string | null;
488
+ extensionName: string;
489
+ telephonySignature: string | null;
490
+ }>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: string;
493
+ address: string | null;
494
+ name: string;
495
+ email: string;
496
+ createdAt: Date;
497
+ updatedAt: Date;
498
+ deletedAt: Date | null;
499
+ emailVerifiedAt: Date | null;
500
+ password: string;
501
+ phone: string | null;
502
+ notificationCount: number | null;
503
+ roles: {
504
+ id: string;
505
+ description: string | null;
506
+ createdAt: Date;
507
+ updatedAt: Date;
508
+ deletedAt: Date | null;
509
+ systemName: string;
510
+ displayName: string;
511
+ permissions: {
512
+ id: string;
513
+ description: string | null;
514
+ createdAt: Date;
515
+ updatedAt: Date;
516
+ deletedAt: Date | null;
517
+ systemName: string;
518
+ displayName: string;
519
+ }[];
520
+ }[];
521
+ extension: {
522
+ id: string;
523
+ createdAt: Date;
524
+ updatedAt: Date;
525
+ deletedAt: Date | null;
526
+ userId: string | null;
527
+ sipServerUrl: string;
528
+ sipUserName: string;
529
+ webphoneLoginUser: string;
530
+ extensionId: string | null;
531
+ extensionName: string;
532
+ telephonySignature: string | null;
533
+ };
534
+ }, {
535
+ id: string;
536
+ address: string | null;
537
+ name: string;
538
+ email: string;
539
+ createdAt: Date;
540
+ updatedAt: Date;
541
+ deletedAt: Date | null;
542
+ emailVerifiedAt: Date | null;
543
+ password: string;
544
+ phone: string | null;
545
+ notificationCount: number | null;
546
+ roles: {
547
+ id: string;
548
+ description: string | null;
549
+ createdAt: Date;
550
+ updatedAt: Date;
551
+ deletedAt: Date | null;
552
+ systemName: string;
553
+ displayName: string;
554
+ permissions: {
555
+ id: string;
556
+ description: string | null;
557
+ createdAt: Date;
558
+ updatedAt: Date;
559
+ deletedAt: Date | null;
560
+ systemName: string;
561
+ displayName: string;
562
+ }[];
563
+ }[];
564
+ extension: {
565
+ id: string;
566
+ createdAt: Date;
567
+ updatedAt: Date;
568
+ deletedAt: Date | null;
569
+ userId: string | null;
570
+ sipServerUrl: string;
571
+ sipUserName: string;
572
+ webphoneLoginUser: string;
573
+ extensionId: string | null;
574
+ extensionName: string;
575
+ telephonySignature: string | null;
576
+ };
577
+ }>>>;
578
+ assigneeId: z.ZodString;
579
+ assignee: z.ZodNullable<z.ZodOptional<z.ZodObject<{
580
+ id: z.ZodString;
581
+ createdAt: z.ZodDate;
582
+ updatedAt: z.ZodDate;
583
+ deletedAt: z.ZodNullable<z.ZodDate>;
584
+ name: z.ZodString;
585
+ email: z.ZodString;
586
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
587
+ password: z.ZodString;
588
+ address: z.ZodNullable<z.ZodString>;
589
+ phone: z.ZodNullable<z.ZodString>;
590
+ notificationCount: z.ZodNullable<z.ZodNumber>;
591
+ roles: z.ZodArray<z.ZodObject<{
592
+ id: z.ZodString;
593
+ createdAt: z.ZodDate;
594
+ updatedAt: z.ZodDate;
595
+ deletedAt: z.ZodNullable<z.ZodDate>;
596
+ systemName: z.ZodString;
597
+ displayName: z.ZodString;
598
+ description: z.ZodNullable<z.ZodString>;
599
+ permissions: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ createdAt: z.ZodDate;
602
+ updatedAt: z.ZodDate;
603
+ deletedAt: z.ZodNullable<z.ZodDate>;
604
+ systemName: z.ZodString;
605
+ displayName: z.ZodString;
606
+ description: z.ZodNullable<z.ZodString>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ id: string;
609
+ description: string | null;
610
+ createdAt: Date;
611
+ updatedAt: Date;
612
+ deletedAt: Date | null;
613
+ systemName: string;
614
+ displayName: string;
615
+ }, {
616
+ id: string;
617
+ description: string | null;
618
+ createdAt: Date;
619
+ updatedAt: Date;
620
+ deletedAt: Date | null;
621
+ systemName: string;
622
+ displayName: string;
623
+ }>, "many">;
624
+ }, "strip", z.ZodTypeAny, {
625
+ id: string;
626
+ description: string | null;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ deletedAt: Date | null;
630
+ systemName: string;
631
+ displayName: string;
632
+ permissions: {
633
+ id: string;
634
+ description: string | null;
635
+ createdAt: Date;
636
+ updatedAt: Date;
637
+ deletedAt: Date | null;
638
+ systemName: string;
639
+ displayName: string;
640
+ }[];
641
+ }, {
642
+ id: string;
643
+ description: string | null;
644
+ createdAt: Date;
645
+ updatedAt: Date;
646
+ deletedAt: Date | null;
647
+ systemName: string;
648
+ displayName: string;
649
+ permissions: {
650
+ id: string;
651
+ description: string | null;
652
+ createdAt: Date;
653
+ updatedAt: Date;
654
+ deletedAt: Date | null;
655
+ systemName: string;
656
+ displayName: string;
657
+ }[];
658
+ }>, "many">;
659
+ extension: z.ZodObject<{
660
+ id: z.ZodString;
661
+ createdAt: z.ZodDate;
662
+ updatedAt: z.ZodDate;
663
+ deletedAt: z.ZodNullable<z.ZodDate>;
664
+ userId: z.ZodNullable<z.ZodString>;
665
+ sipServerUrl: z.ZodString;
666
+ sipUserName: z.ZodString;
667
+ webphoneLoginUser: z.ZodString;
668
+ extensionId: z.ZodNullable<z.ZodString>;
669
+ extensionName: z.ZodString;
670
+ telephonySignature: z.ZodNullable<z.ZodString>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ id: string;
673
+ createdAt: Date;
674
+ updatedAt: Date;
675
+ deletedAt: Date | null;
676
+ userId: string | null;
677
+ sipServerUrl: string;
678
+ sipUserName: string;
679
+ webphoneLoginUser: string;
680
+ extensionId: string | null;
681
+ extensionName: string;
682
+ telephonySignature: string | null;
683
+ }, {
684
+ id: string;
685
+ createdAt: Date;
686
+ updatedAt: Date;
687
+ deletedAt: Date | null;
688
+ userId: string | null;
689
+ sipServerUrl: string;
690
+ sipUserName: string;
691
+ webphoneLoginUser: string;
692
+ extensionId: string | null;
693
+ extensionName: string;
694
+ telephonySignature: string | null;
695
+ }>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ id: string;
698
+ address: string | null;
699
+ name: string;
700
+ email: string;
701
+ createdAt: Date;
702
+ updatedAt: Date;
703
+ deletedAt: Date | null;
704
+ emailVerifiedAt: Date | null;
705
+ password: string;
706
+ phone: string | null;
707
+ notificationCount: number | null;
708
+ roles: {
709
+ id: string;
710
+ description: string | null;
711
+ createdAt: Date;
712
+ updatedAt: Date;
713
+ deletedAt: Date | null;
714
+ systemName: string;
715
+ displayName: string;
716
+ permissions: {
717
+ id: string;
718
+ description: string | null;
719
+ createdAt: Date;
720
+ updatedAt: Date;
721
+ deletedAt: Date | null;
722
+ systemName: string;
723
+ displayName: string;
724
+ }[];
725
+ }[];
726
+ extension: {
727
+ id: string;
728
+ createdAt: Date;
729
+ updatedAt: Date;
730
+ deletedAt: Date | null;
731
+ userId: string | null;
732
+ sipServerUrl: string;
733
+ sipUserName: string;
734
+ webphoneLoginUser: string;
735
+ extensionId: string | null;
736
+ extensionName: string;
737
+ telephonySignature: string | null;
738
+ };
739
+ }, {
740
+ id: string;
741
+ address: string | null;
742
+ name: string;
743
+ email: string;
744
+ createdAt: Date;
745
+ updatedAt: Date;
746
+ deletedAt: Date | null;
747
+ emailVerifiedAt: Date | null;
748
+ password: string;
749
+ phone: string | null;
750
+ notificationCount: number | null;
751
+ roles: {
752
+ id: string;
753
+ description: string | null;
754
+ createdAt: Date;
755
+ updatedAt: Date;
756
+ deletedAt: Date | null;
757
+ systemName: string;
758
+ displayName: string;
759
+ permissions: {
760
+ id: string;
761
+ description: string | null;
762
+ createdAt: Date;
763
+ updatedAt: Date;
764
+ deletedAt: Date | null;
765
+ systemName: string;
766
+ displayName: string;
767
+ }[];
768
+ }[];
769
+ extension: {
770
+ id: string;
771
+ createdAt: Date;
772
+ updatedAt: Date;
773
+ deletedAt: Date | null;
774
+ userId: string | null;
775
+ sipServerUrl: string;
776
+ sipUserName: string;
777
+ webphoneLoginUser: string;
778
+ extensionId: string | null;
779
+ extensionName: string;
780
+ telephonySignature: string | null;
781
+ };
782
+ }>>>;
783
+ reasonToAssign: z.ZodNullable<z.ZodString>;
784
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
785
+ customFields: z.ZodArray<z.ZodObject<{
786
+ id: z.ZodString;
787
+ createdAt: z.ZodDate;
788
+ updatedAt: z.ZodDate;
789
+ deletedAt: z.ZodNullable<z.ZodDate>;
790
+ textValue: z.ZodNullable<z.ZodString>;
791
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
792
+ numberValue: z.ZodNullable<z.ZodNumber>;
793
+ dateValue: z.ZodNullable<z.ZodDate>;
794
+ attribute: z.ZodObject<Omit<{
795
+ id: z.ZodString;
796
+ createdAt: z.ZodDate;
797
+ updatedAt: z.ZodDate;
798
+ deletedAt: z.ZodNullable<z.ZodDate>;
799
+ systemName: z.ZodString;
800
+ displayName: z.ZodString;
801
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
802
+ position: z.ZodNumber;
803
+ isDefault: z.ZodBoolean;
804
+ isArchived: z.ZodBoolean;
805
+ isRequired: z.ZodBoolean;
806
+ isUnique: z.ZodBoolean;
807
+ options: z.ZodArray<z.ZodObject<{
808
+ position: z.ZodNumber;
809
+ value: z.ZodString;
810
+ label: z.ZodString;
811
+ isDefault: z.ZodBoolean;
812
+ id: z.ZodString;
813
+ }, "strip", z.ZodTypeAny, {
814
+ id: string;
815
+ position: number;
816
+ value: string;
817
+ label: string;
818
+ isDefault: boolean;
819
+ }, {
820
+ id: string;
821
+ position: number;
822
+ value: string;
823
+ label: string;
824
+ isDefault: boolean;
825
+ }>, "many">;
826
+ group: z.ZodObject<{
827
+ id: z.ZodString;
828
+ createdAt: z.ZodDate;
829
+ updatedAt: z.ZodDate;
830
+ deletedAt: z.ZodNullable<z.ZodDate>;
831
+ systemName: z.ZodString;
832
+ displayName: z.ZodString;
833
+ }, "strip", z.ZodTypeAny, {
834
+ id: string;
835
+ createdAt: Date;
836
+ updatedAt: Date;
837
+ deletedAt: Date | null;
838
+ systemName: string;
839
+ displayName: string;
840
+ }, {
841
+ id: string;
842
+ createdAt: Date;
843
+ updatedAt: Date;
844
+ deletedAt: Date | null;
845
+ systemName: string;
846
+ displayName: string;
847
+ }>;
848
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
849
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
850
+ id: string;
851
+ position: number;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ deletedAt: Date | null;
855
+ systemName: string;
856
+ displayName: string;
857
+ isDefault: boolean;
858
+ isArchived: boolean;
859
+ isRequired: boolean;
860
+ isUnique: boolean;
861
+ }, {
862
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
863
+ id: string;
864
+ position: number;
865
+ createdAt: Date;
866
+ updatedAt: Date;
867
+ deletedAt: Date | null;
868
+ systemName: string;
869
+ displayName: string;
870
+ isDefault: boolean;
871
+ isArchived: boolean;
872
+ isRequired: boolean;
873
+ isUnique: boolean;
874
+ }>;
875
+ uploads: z.ZodArray<z.ZodObject<{
876
+ id: z.ZodString;
877
+ createdAt: z.ZodDate;
878
+ updatedAt: z.ZodDate;
879
+ deletedAt: z.ZodNullable<z.ZodDate>;
880
+ bucketName: z.ZodString;
881
+ fileName: z.ZodString;
882
+ fileSize: z.ZodNumber;
883
+ fileKey: z.ZodString;
884
+ fileUrl: z.ZodNullable<z.ZodString>;
885
+ status: z.ZodOptional<z.ZodString>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ id: string;
888
+ createdAt: Date;
889
+ updatedAt: Date;
890
+ deletedAt: Date | null;
891
+ fileName: string;
892
+ fileKey: string;
893
+ bucketName: string;
894
+ fileSize: number;
895
+ fileUrl: string | null;
896
+ status?: string | undefined;
897
+ }, {
898
+ id: string;
899
+ createdAt: Date;
900
+ updatedAt: Date;
901
+ deletedAt: Date | null;
902
+ fileName: string;
903
+ fileKey: string;
904
+ bucketName: string;
905
+ fileSize: number;
906
+ fileUrl: string | null;
907
+ status?: string | undefined;
908
+ }>, "many">;
909
+ }, "strip", z.ZodTypeAny, {
910
+ id: string;
911
+ createdAt: Date;
912
+ updatedAt: Date;
913
+ deletedAt: Date | null;
914
+ attribute: {
915
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
916
+ id: string;
917
+ position: number;
918
+ createdAt: Date;
919
+ updatedAt: Date;
920
+ deletedAt: Date | null;
921
+ systemName: string;
922
+ displayName: string;
923
+ isDefault: boolean;
924
+ isArchived: boolean;
925
+ isRequired: boolean;
926
+ isUnique: boolean;
927
+ };
928
+ textValue: string | null;
929
+ booleanValue: boolean | null;
930
+ numberValue: number | null;
931
+ dateValue: Date | null;
932
+ uploads: {
933
+ id: string;
934
+ createdAt: Date;
935
+ updatedAt: Date;
936
+ deletedAt: Date | null;
937
+ fileName: string;
938
+ fileKey: string;
939
+ bucketName: string;
940
+ fileSize: number;
941
+ fileUrl: string | null;
942
+ status?: string | undefined;
943
+ }[];
944
+ }, {
945
+ id: string;
946
+ createdAt: Date;
947
+ updatedAt: Date;
948
+ deletedAt: Date | null;
949
+ attribute: {
950
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
951
+ id: string;
952
+ position: number;
953
+ createdAt: Date;
954
+ updatedAt: Date;
955
+ deletedAt: Date | null;
956
+ systemName: string;
957
+ displayName: string;
958
+ isDefault: boolean;
959
+ isArchived: boolean;
960
+ isRequired: boolean;
961
+ isUnique: boolean;
962
+ };
963
+ textValue: string | null;
964
+ booleanValue: boolean | null;
965
+ numberValue: number | null;
966
+ dateValue: Date | null;
967
+ uploads: {
968
+ id: string;
969
+ createdAt: Date;
970
+ updatedAt: Date;
971
+ deletedAt: Date | null;
972
+ fileName: string;
973
+ fileKey: string;
974
+ bucketName: string;
975
+ fileSize: number;
976
+ fileUrl: string | null;
977
+ status?: string | undefined;
978
+ }[];
979
+ }>, "many">;
980
+ tags: z.ZodArray<z.ZodObject<{
981
+ id: z.ZodString;
982
+ createdAt: z.ZodDate;
983
+ updatedAt: z.ZodDate;
984
+ deletedAt: z.ZodNullable<z.ZodDate>;
985
+ name: z.ZodString;
986
+ }, "strip", z.ZodTypeAny, {
987
+ id: string;
988
+ name: string;
989
+ createdAt: Date;
990
+ updatedAt: Date;
991
+ deletedAt: Date | null;
992
+ }, {
993
+ id: string;
994
+ name: string;
995
+ createdAt: Date;
996
+ updatedAt: Date;
997
+ deletedAt: Date | null;
998
+ }>, "many">;
999
+ categories: z.ZodArray<z.ZodObject<{
1000
+ id: z.ZodString;
1001
+ createdAt: z.ZodDate;
1002
+ updatedAt: z.ZodDate;
1003
+ deletedAt: z.ZodNullable<z.ZodDate>;
1004
+ value: z.ZodString;
1005
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1006
+ parentId: z.ZodNullable<z.ZodString>;
1007
+ childCategoryList: z.ZodArray<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ value: z.ZodString;
1010
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1011
+ parentId: z.ZodNullable<z.ZodString>;
1012
+ childCategoryList: z.ZodArray<z.ZodObject<{
1013
+ id: z.ZodString;
1014
+ value: z.ZodString;
1015
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1016
+ parentId: z.ZodNullable<z.ZodString>;
1017
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ id: string;
1020
+ value: string;
1021
+ level: 2 | 1 | 3;
1022
+ parentId: string | null;
1023
+ childCategoryList: any[];
1024
+ }, {
1025
+ id: string;
1026
+ value: string;
1027
+ level: 2 | 1 | 3;
1028
+ parentId: string | null;
1029
+ childCategoryList: any[];
1030
+ }>, "many">;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ id: string;
1033
+ value: string;
1034
+ level: 2 | 1 | 3;
1035
+ parentId: string | null;
1036
+ childCategoryList: {
1037
+ id: string;
1038
+ value: string;
1039
+ level: 2 | 1 | 3;
1040
+ parentId: string | null;
1041
+ childCategoryList: any[];
1042
+ }[];
1043
+ }, {
1044
+ id: string;
1045
+ value: string;
1046
+ level: 2 | 1 | 3;
1047
+ parentId: string | null;
1048
+ childCategoryList: {
1049
+ id: string;
1050
+ value: string;
1051
+ level: 2 | 1 | 3;
1052
+ parentId: string | null;
1053
+ childCategoryList: any[];
1054
+ }[];
1055
+ }>, "many">;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ id: string;
1058
+ value: string;
1059
+ createdAt: Date;
1060
+ updatedAt: Date;
1061
+ deletedAt: Date | null;
1062
+ level: 2 | 1 | 3;
1063
+ parentId: string | null;
1064
+ childCategoryList: {
1065
+ id: string;
1066
+ value: string;
1067
+ level: 2 | 1 | 3;
1068
+ parentId: string | null;
1069
+ childCategoryList: {
1070
+ id: string;
1071
+ value: string;
1072
+ level: 2 | 1 | 3;
1073
+ parentId: string | null;
1074
+ childCategoryList: any[];
1075
+ }[];
1076
+ }[];
1077
+ }, {
1078
+ id: string;
1079
+ value: string;
1080
+ createdAt: Date;
1081
+ updatedAt: Date;
1082
+ deletedAt: Date | null;
1083
+ level: 2 | 1 | 3;
1084
+ parentId: string | null;
1085
+ childCategoryList: {
1086
+ id: string;
1087
+ value: string;
1088
+ level: 2 | 1 | 3;
1089
+ parentId: string | null;
1090
+ childCategoryList: {
1091
+ id: string;
1092
+ value: string;
1093
+ level: 2 | 1 | 3;
1094
+ parentId: string | null;
1095
+ childCategoryList: any[];
1096
+ }[];
1097
+ }[];
1098
+ }>, "many">;
1099
+ contact: z.ZodObject<{
1100
+ id: z.ZodString;
1101
+ createdAt: z.ZodDate;
1102
+ updatedAt: z.ZodDate;
1103
+ deletedAt: z.ZodNullable<z.ZodDate>;
1104
+ name: z.ZodString;
1105
+ address: z.ZodNullable<z.ZodString>;
1106
+ channel: z.ZodNullable<z.ZodString>;
1107
+ notes: z.ZodNullable<z.ZodString>;
1108
+ contactProfile: z.ZodNullable<z.ZodString>;
1109
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1110
+ tags: z.ZodArray<z.ZodObject<{
1111
+ id: z.ZodString;
1112
+ createdAt: z.ZodDate;
1113
+ updatedAt: z.ZodDate;
1114
+ deletedAt: z.ZodNullable<z.ZodDate>;
1115
+ name: z.ZodString;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ id: string;
1118
+ name: string;
1119
+ createdAt: Date;
1120
+ updatedAt: Date;
1121
+ deletedAt: Date | null;
1122
+ }, {
1123
+ id: string;
1124
+ name: string;
1125
+ createdAt: Date;
1126
+ updatedAt: Date;
1127
+ deletedAt: Date | null;
1128
+ }>, "many">;
1129
+ company: z.ZodNullable<z.ZodObject<Omit<{
1130
+ id: z.ZodString;
1131
+ createdAt: z.ZodDate;
1132
+ updatedAt: z.ZodDate;
1133
+ deletedAt: z.ZodNullable<z.ZodDate>;
1134
+ name: z.ZodOptional<z.ZodString>;
1135
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1136
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1137
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1139
+ id: z.ZodString;
1140
+ createdAt: z.ZodDate;
1141
+ updatedAt: z.ZodDate;
1142
+ deletedAt: z.ZodNullable<z.ZodDate>;
1143
+ textValue: z.ZodNullable<z.ZodString>;
1144
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1145
+ numberValue: z.ZodNullable<z.ZodNumber>;
1146
+ dateValue: z.ZodNullable<z.ZodDate>;
1147
+ attribute: z.ZodObject<Omit<{
1148
+ id: z.ZodString;
1149
+ createdAt: z.ZodDate;
1150
+ updatedAt: z.ZodDate;
1151
+ deletedAt: z.ZodNullable<z.ZodDate>;
1152
+ systemName: z.ZodString;
1153
+ displayName: z.ZodString;
1154
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1155
+ position: z.ZodNumber;
1156
+ isDefault: z.ZodBoolean;
1157
+ isArchived: z.ZodBoolean;
1158
+ isRequired: z.ZodBoolean;
1159
+ isUnique: z.ZodBoolean;
1160
+ options: z.ZodArray<z.ZodObject<{
1161
+ position: z.ZodNumber;
1162
+ value: z.ZodString;
1163
+ label: z.ZodString;
1164
+ isDefault: z.ZodBoolean;
1165
+ id: z.ZodString;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ id: string;
1168
+ position: number;
1169
+ value: string;
1170
+ label: string;
1171
+ isDefault: boolean;
1172
+ }, {
1173
+ id: string;
1174
+ position: number;
1175
+ value: string;
1176
+ label: string;
1177
+ isDefault: boolean;
1178
+ }>, "many">;
1179
+ group: z.ZodObject<{
1180
+ id: z.ZodString;
1181
+ createdAt: z.ZodDate;
1182
+ updatedAt: z.ZodDate;
1183
+ deletedAt: z.ZodNullable<z.ZodDate>;
1184
+ systemName: z.ZodString;
1185
+ displayName: z.ZodString;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ id: string;
1188
+ createdAt: Date;
1189
+ updatedAt: Date;
1190
+ deletedAt: Date | null;
1191
+ systemName: string;
1192
+ displayName: string;
1193
+ }, {
1194
+ id: string;
1195
+ createdAt: Date;
1196
+ updatedAt: Date;
1197
+ deletedAt: Date | null;
1198
+ systemName: string;
1199
+ displayName: string;
1200
+ }>;
1201
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1202
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1203
+ id: string;
1204
+ position: number;
1205
+ createdAt: Date;
1206
+ updatedAt: Date;
1207
+ deletedAt: Date | null;
1208
+ systemName: string;
1209
+ displayName: string;
1210
+ isDefault: boolean;
1211
+ isArchived: boolean;
1212
+ isRequired: boolean;
1213
+ isUnique: boolean;
1214
+ }, {
1215
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1216
+ id: string;
1217
+ position: number;
1218
+ createdAt: Date;
1219
+ updatedAt: Date;
1220
+ deletedAt: Date | null;
1221
+ systemName: string;
1222
+ displayName: string;
1223
+ isDefault: boolean;
1224
+ isArchived: boolean;
1225
+ isRequired: boolean;
1226
+ isUnique: boolean;
1227
+ }>;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ id: string;
1230
+ createdAt: Date;
1231
+ updatedAt: Date;
1232
+ deletedAt: Date | null;
1233
+ attribute: {
1234
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1235
+ id: string;
1236
+ position: number;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ deletedAt: Date | null;
1240
+ systemName: string;
1241
+ displayName: string;
1242
+ isDefault: boolean;
1243
+ isArchived: boolean;
1244
+ isRequired: boolean;
1245
+ isUnique: boolean;
1246
+ };
1247
+ textValue: string | null;
1248
+ booleanValue: boolean | null;
1249
+ numberValue: number | null;
1250
+ dateValue: Date | null;
1251
+ }, {
1252
+ id: string;
1253
+ createdAt: Date;
1254
+ updatedAt: Date;
1255
+ deletedAt: Date | null;
1256
+ attribute: {
1257
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1258
+ id: string;
1259
+ position: number;
1260
+ createdAt: Date;
1261
+ updatedAt: Date;
1262
+ deletedAt: Date | null;
1263
+ systemName: string;
1264
+ displayName: string;
1265
+ isDefault: boolean;
1266
+ isArchived: boolean;
1267
+ isRequired: boolean;
1268
+ isUnique: boolean;
1269
+ };
1270
+ textValue: string | null;
1271
+ booleanValue: boolean | null;
1272
+ numberValue: number | null;
1273
+ dateValue: Date | null;
1274
+ }>, "many">>;
1275
+ }, "customFields">, "strip", z.ZodTypeAny, {
1276
+ id: string;
1277
+ createdAt: Date;
1278
+ updatedAt: Date;
1279
+ deletedAt: Date | null;
1280
+ address?: string | null | undefined;
1281
+ name?: string | undefined;
1282
+ phone?: string | null | undefined;
1283
+ industry?: string | null | undefined;
1284
+ }, {
1285
+ id: string;
1286
+ createdAt: Date;
1287
+ updatedAt: Date;
1288
+ deletedAt: Date | null;
1289
+ address?: string | null | undefined;
1290
+ name?: string | undefined;
1291
+ phone?: string | null | undefined;
1292
+ industry?: string | null | undefined;
1293
+ }>>;
1294
+ customFields: z.ZodArray<z.ZodObject<{
1295
+ id: z.ZodString;
1296
+ createdAt: z.ZodDate;
1297
+ updatedAt: z.ZodDate;
1298
+ deletedAt: z.ZodNullable<z.ZodDate>;
1299
+ textValue: z.ZodNullable<z.ZodString>;
1300
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1301
+ numberValue: z.ZodNullable<z.ZodNumber>;
1302
+ dateValue: z.ZodNullable<z.ZodDate>;
1303
+ attribute: z.ZodObject<Omit<{
1304
+ id: z.ZodString;
1305
+ createdAt: z.ZodDate;
1306
+ updatedAt: z.ZodDate;
1307
+ deletedAt: z.ZodNullable<z.ZodDate>;
1308
+ systemName: z.ZodString;
1309
+ displayName: z.ZodString;
1310
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1311
+ position: z.ZodNumber;
1312
+ isDefault: z.ZodBoolean;
1313
+ isArchived: z.ZodBoolean;
1314
+ isRequired: z.ZodBoolean;
1315
+ isUnique: z.ZodBoolean;
1316
+ options: z.ZodArray<z.ZodObject<{
1317
+ position: z.ZodNumber;
1318
+ value: z.ZodString;
1319
+ label: z.ZodString;
1320
+ isDefault: z.ZodBoolean;
1321
+ id: z.ZodString;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ id: string;
1324
+ position: number;
1325
+ value: string;
1326
+ label: string;
1327
+ isDefault: boolean;
1328
+ }, {
1329
+ id: string;
1330
+ position: number;
1331
+ value: string;
1332
+ label: string;
1333
+ isDefault: boolean;
1334
+ }>, "many">;
1335
+ group: z.ZodObject<{
1336
+ id: z.ZodString;
1337
+ createdAt: z.ZodDate;
1338
+ updatedAt: z.ZodDate;
1339
+ deletedAt: z.ZodNullable<z.ZodDate>;
1340
+ systemName: z.ZodString;
1341
+ displayName: z.ZodString;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ id: string;
1344
+ createdAt: Date;
1345
+ updatedAt: Date;
1346
+ deletedAt: Date | null;
1347
+ systemName: string;
1348
+ displayName: string;
1349
+ }, {
1350
+ id: string;
1351
+ createdAt: Date;
1352
+ updatedAt: Date;
1353
+ deletedAt: Date | null;
1354
+ systemName: string;
1355
+ displayName: string;
1356
+ }>;
1357
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1358
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1359
+ id: string;
1360
+ position: number;
1361
+ createdAt: Date;
1362
+ updatedAt: Date;
1363
+ deletedAt: Date | null;
1364
+ systemName: string;
1365
+ displayName: string;
1366
+ isDefault: boolean;
1367
+ isArchived: boolean;
1368
+ isRequired: boolean;
1369
+ isUnique: boolean;
1370
+ }, {
1371
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1372
+ id: string;
1373
+ position: number;
1374
+ createdAt: Date;
1375
+ updatedAt: Date;
1376
+ deletedAt: Date | null;
1377
+ systemName: string;
1378
+ displayName: string;
1379
+ isDefault: boolean;
1380
+ isArchived: boolean;
1381
+ isRequired: boolean;
1382
+ isUnique: boolean;
1383
+ }>;
1384
+ uploads: z.ZodArray<z.ZodObject<{
1385
+ id: z.ZodString;
1386
+ createdAt: z.ZodDate;
1387
+ updatedAt: z.ZodDate;
1388
+ deletedAt: z.ZodNullable<z.ZodDate>;
1389
+ bucketName: z.ZodString;
1390
+ fileName: z.ZodString;
1391
+ fileSize: z.ZodNumber;
1392
+ fileKey: z.ZodString;
1393
+ fileUrl: z.ZodNullable<z.ZodString>;
1394
+ status: z.ZodOptional<z.ZodString>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ id: string;
1397
+ createdAt: Date;
1398
+ updatedAt: Date;
1399
+ deletedAt: Date | null;
1400
+ fileName: string;
1401
+ fileKey: string;
1402
+ bucketName: string;
1403
+ fileSize: number;
1404
+ fileUrl: string | null;
1405
+ status?: string | undefined;
1406
+ }, {
1407
+ id: string;
1408
+ createdAt: Date;
1409
+ updatedAt: Date;
1410
+ deletedAt: Date | null;
1411
+ fileName: string;
1412
+ fileKey: string;
1413
+ bucketName: string;
1414
+ fileSize: number;
1415
+ fileUrl: string | null;
1416
+ status?: string | undefined;
1417
+ }>, "many">;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ id: string;
1420
+ createdAt: Date;
1421
+ updatedAt: Date;
1422
+ deletedAt: Date | null;
1423
+ attribute: {
1424
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1425
+ id: string;
1426
+ position: number;
1427
+ createdAt: Date;
1428
+ updatedAt: Date;
1429
+ deletedAt: Date | null;
1430
+ systemName: string;
1431
+ displayName: string;
1432
+ isDefault: boolean;
1433
+ isArchived: boolean;
1434
+ isRequired: boolean;
1435
+ isUnique: boolean;
1436
+ };
1437
+ textValue: string | null;
1438
+ booleanValue: boolean | null;
1439
+ numberValue: number | null;
1440
+ dateValue: Date | null;
1441
+ uploads: {
1442
+ id: string;
1443
+ createdAt: Date;
1444
+ updatedAt: Date;
1445
+ deletedAt: Date | null;
1446
+ fileName: string;
1447
+ fileKey: string;
1448
+ bucketName: string;
1449
+ fileSize: number;
1450
+ fileUrl: string | null;
1451
+ status?: string | undefined;
1452
+ }[];
1453
+ }, {
1454
+ id: string;
1455
+ createdAt: Date;
1456
+ updatedAt: Date;
1457
+ deletedAt: Date | null;
1458
+ attribute: {
1459
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1460
+ id: string;
1461
+ position: number;
1462
+ createdAt: Date;
1463
+ updatedAt: Date;
1464
+ deletedAt: Date | null;
1465
+ systemName: string;
1466
+ displayName: string;
1467
+ isDefault: boolean;
1468
+ isArchived: boolean;
1469
+ isRequired: boolean;
1470
+ isUnique: boolean;
1471
+ };
1472
+ textValue: string | null;
1473
+ booleanValue: boolean | null;
1474
+ numberValue: number | null;
1475
+ dateValue: Date | null;
1476
+ uploads: {
1477
+ id: string;
1478
+ createdAt: Date;
1479
+ updatedAt: Date;
1480
+ deletedAt: Date | null;
1481
+ fileName: string;
1482
+ fileKey: string;
1483
+ bucketName: string;
1484
+ fileSize: number;
1485
+ fileUrl: string | null;
1486
+ status?: string | undefined;
1487
+ }[];
1488
+ }>, "many">;
1489
+ contactEmails: z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodString;
1491
+ createdAt: z.ZodDate;
1492
+ updatedAt: z.ZodDate;
1493
+ deletedAt: z.ZodNullable<z.ZodDate>;
1494
+ email: z.ZodString;
1495
+ isPrimary: z.ZodBoolean;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ id: string;
1498
+ isPrimary: boolean;
1499
+ email: string;
1500
+ createdAt: Date;
1501
+ updatedAt: Date;
1502
+ deletedAt: Date | null;
1503
+ }, {
1504
+ id: string;
1505
+ isPrimary: boolean;
1506
+ email: string;
1507
+ createdAt: Date;
1508
+ updatedAt: Date;
1509
+ deletedAt: Date | null;
1510
+ }>, "many">;
1511
+ contactPhones: z.ZodArray<z.ZodObject<{
1512
+ id: z.ZodString;
1513
+ createdAt: z.ZodDate;
1514
+ updatedAt: z.ZodDate;
1515
+ deletedAt: z.ZodNullable<z.ZodDate>;
1516
+ phone: z.ZodString;
1517
+ isPrimary: z.ZodBoolean;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ id: string;
1520
+ isPrimary: boolean;
1521
+ createdAt: Date;
1522
+ updatedAt: Date;
1523
+ deletedAt: Date | null;
1524
+ phone: string;
1525
+ }, {
1526
+ id: string;
1527
+ isPrimary: boolean;
1528
+ createdAt: Date;
1529
+ updatedAt: Date;
1530
+ deletedAt: Date | null;
1531
+ phone: string;
1532
+ }>, "many">;
1533
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1534
+ id: z.ZodString;
1535
+ createdAt: z.ZodDate;
1536
+ updatedAt: z.ZodDate;
1537
+ deletedAt: z.ZodNullable<z.ZodDate>;
1538
+ entityId: z.ZodString;
1539
+ description: z.ZodString;
1540
+ entityType: z.ZodObject<{
1541
+ id: z.ZodString;
1542
+ createdAt: z.ZodDate;
1543
+ updatedAt: z.ZodDate;
1544
+ deletedAt: z.ZodNullable<z.ZodDate>;
1545
+ entity: z.ZodString;
1546
+ description: z.ZodNullable<z.ZodString>;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ id: string;
1549
+ description: string | null;
1550
+ createdAt: Date;
1551
+ updatedAt: Date;
1552
+ deletedAt: Date | null;
1553
+ entity: string;
1554
+ }, {
1555
+ id: string;
1556
+ description: string | null;
1557
+ createdAt: Date;
1558
+ updatedAt: Date;
1559
+ deletedAt: Date | null;
1560
+ entity: string;
1561
+ }>;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ id: string;
1564
+ description: string;
1565
+ createdAt: Date;
1566
+ updatedAt: Date;
1567
+ deletedAt: Date | null;
1568
+ entityId: string;
1569
+ entityType: {
1570
+ id: string;
1571
+ description: string | null;
1572
+ createdAt: Date;
1573
+ updatedAt: Date;
1574
+ deletedAt: Date | null;
1575
+ entity: string;
1576
+ };
1577
+ }, {
1578
+ id: string;
1579
+ description: string;
1580
+ createdAt: Date;
1581
+ updatedAt: Date;
1582
+ deletedAt: Date | null;
1583
+ entityId: string;
1584
+ entityType: {
1585
+ id: string;
1586
+ description: string | null;
1587
+ createdAt: Date;
1588
+ updatedAt: Date;
1589
+ deletedAt: Date | null;
1590
+ entity: string;
1591
+ };
1592
+ }>, "many">>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ id: string;
1595
+ channel: string | null;
1596
+ address: string | null;
1597
+ name: string;
1598
+ createdAt: Date;
1599
+ updatedAt: Date;
1600
+ deletedAt: Date | null;
1601
+ customFields: {
1602
+ id: string;
1603
+ createdAt: Date;
1604
+ updatedAt: Date;
1605
+ deletedAt: Date | null;
1606
+ attribute: {
1607
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1608
+ id: string;
1609
+ position: number;
1610
+ createdAt: Date;
1611
+ updatedAt: Date;
1612
+ deletedAt: Date | null;
1613
+ systemName: string;
1614
+ displayName: string;
1615
+ isDefault: boolean;
1616
+ isArchived: boolean;
1617
+ isRequired: boolean;
1618
+ isUnique: boolean;
1619
+ };
1620
+ textValue: string | null;
1621
+ booleanValue: boolean | null;
1622
+ numberValue: number | null;
1623
+ dateValue: Date | null;
1624
+ uploads: {
1625
+ id: string;
1626
+ createdAt: Date;
1627
+ updatedAt: Date;
1628
+ deletedAt: Date | null;
1629
+ fileName: string;
1630
+ fileKey: string;
1631
+ bucketName: string;
1632
+ fileSize: number;
1633
+ fileUrl: string | null;
1634
+ status?: string | undefined;
1635
+ }[];
1636
+ }[];
1637
+ company: {
1638
+ id: string;
1639
+ createdAt: Date;
1640
+ updatedAt: Date;
1641
+ deletedAt: Date | null;
1642
+ address?: string | null | undefined;
1643
+ name?: string | undefined;
1644
+ phone?: string | null | undefined;
1645
+ industry?: string | null | undefined;
1646
+ } | null;
1647
+ notes: string | null;
1648
+ contactProfile: string | null;
1649
+ socialProfileUrl: string | null;
1650
+ tags: {
1651
+ id: string;
1652
+ name: string;
1653
+ createdAt: Date;
1654
+ updatedAt: Date;
1655
+ deletedAt: Date | null;
1656
+ }[];
1657
+ contactEmails: {
1658
+ id: string;
1659
+ isPrimary: boolean;
1660
+ email: string;
1661
+ createdAt: Date;
1662
+ updatedAt: Date;
1663
+ deletedAt: Date | null;
1664
+ }[];
1665
+ contactPhones: {
1666
+ id: string;
1667
+ isPrimary: boolean;
1668
+ createdAt: Date;
1669
+ updatedAt: Date;
1670
+ deletedAt: Date | null;
1671
+ phone: string;
1672
+ }[];
1673
+ activityLogs?: {
1674
+ id: string;
1675
+ description: string;
1676
+ createdAt: Date;
1677
+ updatedAt: Date;
1678
+ deletedAt: Date | null;
1679
+ entityId: string;
1680
+ entityType: {
1681
+ id: string;
1682
+ description: string | null;
1683
+ createdAt: Date;
1684
+ updatedAt: Date;
1685
+ deletedAt: Date | null;
1686
+ entity: string;
1687
+ };
1688
+ }[] | undefined;
1689
+ }, {
1690
+ id: string;
1691
+ channel: string | null;
1692
+ address: string | null;
1693
+ name: string;
1694
+ createdAt: Date;
1695
+ updatedAt: Date;
1696
+ deletedAt: Date | null;
1697
+ customFields: {
1698
+ id: string;
1699
+ createdAt: Date;
1700
+ updatedAt: Date;
1701
+ deletedAt: Date | null;
1702
+ attribute: {
1703
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1704
+ id: string;
1705
+ position: number;
1706
+ createdAt: Date;
1707
+ updatedAt: Date;
1708
+ deletedAt: Date | null;
1709
+ systemName: string;
1710
+ displayName: string;
1711
+ isDefault: boolean;
1712
+ isArchived: boolean;
1713
+ isRequired: boolean;
1714
+ isUnique: boolean;
1715
+ };
1716
+ textValue: string | null;
1717
+ booleanValue: boolean | null;
1718
+ numberValue: number | null;
1719
+ dateValue: Date | null;
1720
+ uploads: {
1721
+ id: string;
1722
+ createdAt: Date;
1723
+ updatedAt: Date;
1724
+ deletedAt: Date | null;
1725
+ fileName: string;
1726
+ fileKey: string;
1727
+ bucketName: string;
1728
+ fileSize: number;
1729
+ fileUrl: string | null;
1730
+ status?: string | undefined;
1731
+ }[];
1732
+ }[];
1733
+ company: {
1734
+ id: string;
1735
+ createdAt: Date;
1736
+ updatedAt: Date;
1737
+ deletedAt: Date | null;
1738
+ address?: string | null | undefined;
1739
+ name?: string | undefined;
1740
+ phone?: string | null | undefined;
1741
+ industry?: string | null | undefined;
1742
+ } | null;
1743
+ notes: string | null;
1744
+ contactProfile: string | null;
1745
+ socialProfileUrl: string | null;
1746
+ tags: {
1747
+ id: string;
1748
+ name: string;
1749
+ createdAt: Date;
1750
+ updatedAt: Date;
1751
+ deletedAt: Date | null;
1752
+ }[];
1753
+ contactEmails: {
1754
+ id: string;
1755
+ isPrimary: boolean;
1756
+ email: string;
1757
+ createdAt: Date;
1758
+ updatedAt: Date;
1759
+ deletedAt: Date | null;
1760
+ }[];
1761
+ contactPhones: {
1762
+ id: string;
1763
+ isPrimary: boolean;
1764
+ createdAt: Date;
1765
+ updatedAt: Date;
1766
+ deletedAt: Date | null;
1767
+ phone: string;
1768
+ }[];
1769
+ activityLogs?: {
1770
+ id: string;
1771
+ description: string;
1772
+ createdAt: Date;
1773
+ updatedAt: Date;
1774
+ deletedAt: Date | null;
1775
+ entityId: string;
1776
+ entityType: {
1777
+ id: string;
1778
+ description: string | null;
1779
+ createdAt: Date;
1780
+ updatedAt: Date;
1781
+ deletedAt: Date | null;
1782
+ entity: string;
1783
+ };
1784
+ }[] | undefined;
1785
+ }>;
1786
+ activityLogs: z.ZodArray<z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ createdAt: z.ZodDate;
1789
+ updatedAt: z.ZodDate;
1790
+ deletedAt: z.ZodNullable<z.ZodDate>;
1791
+ actor: z.ZodObject<{
1792
+ id: z.ZodString;
1793
+ createdAt: z.ZodDate;
1794
+ updatedAt: z.ZodDate;
1795
+ deletedAt: z.ZodNullable<z.ZodDate>;
1796
+ name: z.ZodString;
1797
+ email: z.ZodString;
1798
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1799
+ password: z.ZodString;
1800
+ address: z.ZodNullable<z.ZodString>;
1801
+ phone: z.ZodNullable<z.ZodString>;
1802
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1803
+ roles: z.ZodArray<z.ZodObject<{
1804
+ id: z.ZodString;
1805
+ createdAt: z.ZodDate;
1806
+ updatedAt: z.ZodDate;
1807
+ deletedAt: z.ZodNullable<z.ZodDate>;
1808
+ systemName: z.ZodString;
1809
+ displayName: z.ZodString;
1810
+ description: z.ZodNullable<z.ZodString>;
1811
+ permissions: z.ZodArray<z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ createdAt: z.ZodDate;
1814
+ updatedAt: z.ZodDate;
1815
+ deletedAt: z.ZodNullable<z.ZodDate>;
1816
+ systemName: z.ZodString;
1817
+ displayName: z.ZodString;
1818
+ description: z.ZodNullable<z.ZodString>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ id: string;
1821
+ description: string | null;
1822
+ createdAt: Date;
1823
+ updatedAt: Date;
1824
+ deletedAt: Date | null;
1825
+ systemName: string;
1826
+ displayName: string;
1827
+ }, {
1828
+ id: string;
1829
+ description: string | null;
1830
+ createdAt: Date;
1831
+ updatedAt: Date;
1832
+ deletedAt: Date | null;
1833
+ systemName: string;
1834
+ displayName: string;
1835
+ }>, "many">;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ id: string;
1838
+ description: string | null;
1839
+ createdAt: Date;
1840
+ updatedAt: Date;
1841
+ deletedAt: Date | null;
1842
+ systemName: string;
1843
+ displayName: string;
1844
+ permissions: {
1845
+ id: string;
1846
+ description: string | null;
1847
+ createdAt: Date;
1848
+ updatedAt: Date;
1849
+ deletedAt: Date | null;
1850
+ systemName: string;
1851
+ displayName: string;
1852
+ }[];
1853
+ }, {
1854
+ id: string;
1855
+ description: string | null;
1856
+ createdAt: Date;
1857
+ updatedAt: Date;
1858
+ deletedAt: Date | null;
1859
+ systemName: string;
1860
+ displayName: string;
1861
+ permissions: {
1862
+ id: string;
1863
+ description: string | null;
1864
+ createdAt: Date;
1865
+ updatedAt: Date;
1866
+ deletedAt: Date | null;
1867
+ systemName: string;
1868
+ displayName: string;
1869
+ }[];
1870
+ }>, "many">;
1871
+ extension: z.ZodObject<{
1872
+ id: z.ZodString;
1873
+ createdAt: z.ZodDate;
1874
+ updatedAt: z.ZodDate;
1875
+ deletedAt: z.ZodNullable<z.ZodDate>;
1876
+ userId: z.ZodNullable<z.ZodString>;
1877
+ sipServerUrl: z.ZodString;
1878
+ sipUserName: z.ZodString;
1879
+ webphoneLoginUser: z.ZodString;
1880
+ extensionId: z.ZodNullable<z.ZodString>;
1881
+ extensionName: z.ZodString;
1882
+ telephonySignature: z.ZodNullable<z.ZodString>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ id: string;
1885
+ createdAt: Date;
1886
+ updatedAt: Date;
1887
+ deletedAt: Date | null;
1888
+ userId: string | null;
1889
+ sipServerUrl: string;
1890
+ sipUserName: string;
1891
+ webphoneLoginUser: string;
1892
+ extensionId: string | null;
1893
+ extensionName: string;
1894
+ telephonySignature: string | null;
1895
+ }, {
1896
+ id: string;
1897
+ createdAt: Date;
1898
+ updatedAt: Date;
1899
+ deletedAt: Date | null;
1900
+ userId: string | null;
1901
+ sipServerUrl: string;
1902
+ sipUserName: string;
1903
+ webphoneLoginUser: string;
1904
+ extensionId: string | null;
1905
+ extensionName: string;
1906
+ telephonySignature: string | null;
1907
+ }>;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ id: string;
1910
+ address: string | null;
1911
+ name: string;
1912
+ email: string;
1913
+ createdAt: Date;
1914
+ updatedAt: Date;
1915
+ deletedAt: Date | null;
1916
+ emailVerifiedAt: Date | null;
1917
+ password: string;
1918
+ phone: string | null;
1919
+ notificationCount: number | null;
1920
+ roles: {
1921
+ id: string;
1922
+ description: string | null;
1923
+ createdAt: Date;
1924
+ updatedAt: Date;
1925
+ deletedAt: Date | null;
1926
+ systemName: string;
1927
+ displayName: string;
1928
+ permissions: {
1929
+ id: string;
1930
+ description: string | null;
1931
+ createdAt: Date;
1932
+ updatedAt: Date;
1933
+ deletedAt: Date | null;
1934
+ systemName: string;
1935
+ displayName: string;
1936
+ }[];
1937
+ }[];
1938
+ extension: {
1939
+ id: string;
1940
+ createdAt: Date;
1941
+ updatedAt: Date;
1942
+ deletedAt: Date | null;
1943
+ userId: string | null;
1944
+ sipServerUrl: string;
1945
+ sipUserName: string;
1946
+ webphoneLoginUser: string;
1947
+ extensionId: string | null;
1948
+ extensionName: string;
1949
+ telephonySignature: string | null;
1950
+ };
1951
+ }, {
1952
+ id: string;
1953
+ address: string | null;
1954
+ name: string;
1955
+ email: string;
1956
+ createdAt: Date;
1957
+ updatedAt: Date;
1958
+ deletedAt: Date | null;
1959
+ emailVerifiedAt: Date | null;
1960
+ password: string;
1961
+ phone: string | null;
1962
+ notificationCount: number | null;
1963
+ roles: {
1964
+ id: string;
1965
+ description: string | null;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ systemName: string;
1970
+ displayName: string;
1971
+ permissions: {
1972
+ id: string;
1973
+ description: string | null;
1974
+ createdAt: Date;
1975
+ updatedAt: Date;
1976
+ deletedAt: Date | null;
1977
+ systemName: string;
1978
+ displayName: string;
1979
+ }[];
1980
+ }[];
1981
+ extension: {
1982
+ id: string;
1983
+ createdAt: Date;
1984
+ updatedAt: Date;
1985
+ deletedAt: Date | null;
1986
+ userId: string | null;
1987
+ sipServerUrl: string;
1988
+ sipUserName: string;
1989
+ webphoneLoginUser: string;
1990
+ extensionId: string | null;
1991
+ extensionName: string;
1992
+ telephonySignature: string | null;
1993
+ };
1994
+ }>;
1995
+ entityId: z.ZodString;
1996
+ description: z.ZodString;
1997
+ entityType: z.ZodObject<{
1998
+ id: z.ZodString;
1999
+ createdAt: z.ZodDate;
2000
+ updatedAt: z.ZodDate;
2001
+ deletedAt: z.ZodNullable<z.ZodDate>;
2002
+ entity: z.ZodString;
2003
+ description: z.ZodString;
2004
+ }, "strip", z.ZodTypeAny, {
2005
+ id: string;
2006
+ description: string;
2007
+ createdAt: Date;
2008
+ updatedAt: Date;
2009
+ deletedAt: Date | null;
2010
+ entity: string;
2011
+ }, {
2012
+ id: string;
2013
+ description: string;
2014
+ createdAt: Date;
2015
+ updatedAt: Date;
2016
+ deletedAt: Date | null;
2017
+ entity: string;
2018
+ }>;
2019
+ }, "strip", z.ZodTypeAny, {
2020
+ id: string;
2021
+ description: string;
2022
+ createdAt: Date;
2023
+ updatedAt: Date;
2024
+ deletedAt: Date | null;
2025
+ actor: {
2026
+ id: string;
2027
+ address: string | null;
2028
+ name: string;
2029
+ email: string;
2030
+ createdAt: Date;
2031
+ updatedAt: Date;
2032
+ deletedAt: Date | null;
2033
+ emailVerifiedAt: Date | null;
2034
+ password: string;
2035
+ phone: string | null;
2036
+ notificationCount: number | null;
2037
+ roles: {
2038
+ id: string;
2039
+ description: string | null;
2040
+ createdAt: Date;
2041
+ updatedAt: Date;
2042
+ deletedAt: Date | null;
2043
+ systemName: string;
2044
+ displayName: string;
2045
+ permissions: {
2046
+ id: string;
2047
+ description: string | null;
2048
+ createdAt: Date;
2049
+ updatedAt: Date;
2050
+ deletedAt: Date | null;
2051
+ systemName: string;
2052
+ displayName: string;
2053
+ }[];
2054
+ }[];
2055
+ extension: {
2056
+ id: string;
2057
+ createdAt: Date;
2058
+ updatedAt: Date;
2059
+ deletedAt: Date | null;
2060
+ userId: string | null;
2061
+ sipServerUrl: string;
2062
+ sipUserName: string;
2063
+ webphoneLoginUser: string;
2064
+ extensionId: string | null;
2065
+ extensionName: string;
2066
+ telephonySignature: string | null;
2067
+ };
2068
+ };
2069
+ entityId: string;
2070
+ entityType: {
2071
+ id: string;
2072
+ description: string;
2073
+ createdAt: Date;
2074
+ updatedAt: Date;
2075
+ deletedAt: Date | null;
2076
+ entity: string;
2077
+ };
2078
+ }, {
2079
+ id: string;
2080
+ description: string;
2081
+ createdAt: Date;
2082
+ updatedAt: Date;
2083
+ deletedAt: Date | null;
2084
+ actor: {
2085
+ id: string;
2086
+ address: string | null;
2087
+ name: string;
2088
+ email: string;
2089
+ createdAt: Date;
2090
+ updatedAt: Date;
2091
+ deletedAt: Date | null;
2092
+ emailVerifiedAt: Date | null;
2093
+ password: string;
2094
+ phone: string | null;
2095
+ notificationCount: number | null;
2096
+ roles: {
2097
+ id: string;
2098
+ description: string | null;
2099
+ createdAt: Date;
2100
+ updatedAt: Date;
2101
+ deletedAt: Date | null;
2102
+ systemName: string;
2103
+ displayName: string;
2104
+ permissions: {
2105
+ id: string;
2106
+ description: string | null;
2107
+ createdAt: Date;
2108
+ updatedAt: Date;
2109
+ deletedAt: Date | null;
2110
+ systemName: string;
2111
+ displayName: string;
2112
+ }[];
2113
+ }[];
2114
+ extension: {
2115
+ id: string;
2116
+ createdAt: Date;
2117
+ updatedAt: Date;
2118
+ deletedAt: Date | null;
2119
+ userId: string | null;
2120
+ sipServerUrl: string;
2121
+ sipUserName: string;
2122
+ webphoneLoginUser: string;
2123
+ extensionId: string | null;
2124
+ extensionName: string;
2125
+ telephonySignature: string | null;
2126
+ };
2127
+ };
2128
+ entityId: string;
2129
+ entityType: {
2130
+ id: string;
2131
+ description: string;
2132
+ createdAt: Date;
2133
+ updatedAt: Date;
2134
+ deletedAt: Date | null;
2135
+ entity: string;
2136
+ };
2137
+ }>, "many">;
2138
+ }, "strip", z.ZodTypeAny, {
2139
+ type: string;
2140
+ id: string;
2141
+ channel: string;
2142
+ priority: string;
2143
+ title: string;
2144
+ description: string | null;
2145
+ status: string;
2146
+ createdAt: Date;
2147
+ updatedAt: Date;
2148
+ deletedAt: Date | null;
2149
+ categories: {
2150
+ id: string;
2151
+ value: string;
2152
+ createdAt: Date;
2153
+ updatedAt: Date;
2154
+ deletedAt: Date | null;
2155
+ level: 2 | 1 | 3;
2156
+ parentId: string | null;
2157
+ childCategoryList: {
2158
+ id: string;
2159
+ value: string;
2160
+ level: 2 | 1 | 3;
2161
+ parentId: string | null;
2162
+ childCategoryList: {
2163
+ id: string;
2164
+ value: string;
2165
+ level: 2 | 1 | 3;
2166
+ parentId: string | null;
2167
+ childCategoryList: any[];
2168
+ }[];
2169
+ }[];
2170
+ }[];
2171
+ contact: {
2172
+ id: string;
2173
+ channel: string | null;
2174
+ address: string | null;
2175
+ name: string;
2176
+ createdAt: Date;
2177
+ updatedAt: Date;
2178
+ deletedAt: Date | null;
2179
+ customFields: {
2180
+ id: string;
2181
+ createdAt: Date;
2182
+ updatedAt: Date;
2183
+ deletedAt: Date | null;
2184
+ attribute: {
2185
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2186
+ id: string;
2187
+ position: number;
2188
+ createdAt: Date;
2189
+ updatedAt: Date;
2190
+ deletedAt: Date | null;
2191
+ systemName: string;
2192
+ displayName: string;
2193
+ isDefault: boolean;
2194
+ isArchived: boolean;
2195
+ isRequired: boolean;
2196
+ isUnique: boolean;
2197
+ };
2198
+ textValue: string | null;
2199
+ booleanValue: boolean | null;
2200
+ numberValue: number | null;
2201
+ dateValue: Date | null;
2202
+ uploads: {
2203
+ id: string;
2204
+ createdAt: Date;
2205
+ updatedAt: Date;
2206
+ deletedAt: Date | null;
2207
+ fileName: string;
2208
+ fileKey: string;
2209
+ bucketName: string;
2210
+ fileSize: number;
2211
+ fileUrl: string | null;
2212
+ status?: string | undefined;
2213
+ }[];
2214
+ }[];
2215
+ company: {
2216
+ id: string;
2217
+ createdAt: Date;
2218
+ updatedAt: Date;
2219
+ deletedAt: Date | null;
2220
+ address?: string | null | undefined;
2221
+ name?: string | undefined;
2222
+ phone?: string | null | undefined;
2223
+ industry?: string | null | undefined;
2224
+ } | null;
2225
+ notes: string | null;
2226
+ contactProfile: string | null;
2227
+ socialProfileUrl: string | null;
2228
+ tags: {
2229
+ id: string;
2230
+ name: string;
2231
+ createdAt: Date;
2232
+ updatedAt: Date;
2233
+ deletedAt: Date | null;
2234
+ }[];
2235
+ contactEmails: {
2236
+ id: string;
2237
+ isPrimary: boolean;
2238
+ email: string;
2239
+ createdAt: Date;
2240
+ updatedAt: Date;
2241
+ deletedAt: Date | null;
2242
+ }[];
2243
+ contactPhones: {
2244
+ id: string;
2245
+ isPrimary: boolean;
2246
+ createdAt: Date;
2247
+ updatedAt: Date;
2248
+ deletedAt: Date | null;
2249
+ phone: string;
2250
+ }[];
2251
+ activityLogs?: {
2252
+ id: string;
2253
+ description: string;
2254
+ createdAt: Date;
2255
+ updatedAt: Date;
2256
+ deletedAt: Date | null;
2257
+ entityId: string;
2258
+ entityType: {
2259
+ id: string;
2260
+ description: string | null;
2261
+ createdAt: Date;
2262
+ updatedAt: Date;
2263
+ deletedAt: Date | null;
2264
+ entity: string;
2265
+ };
2266
+ }[] | undefined;
2267
+ };
2268
+ customFields: {
2269
+ id: string;
2270
+ createdAt: Date;
2271
+ updatedAt: Date;
2272
+ deletedAt: Date | null;
2273
+ attribute: {
2274
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2275
+ id: string;
2276
+ position: number;
2277
+ createdAt: Date;
2278
+ updatedAt: Date;
2279
+ deletedAt: Date | null;
2280
+ systemName: string;
2281
+ displayName: string;
2282
+ isDefault: boolean;
2283
+ isArchived: boolean;
2284
+ isRequired: boolean;
2285
+ isUnique: boolean;
2286
+ };
2287
+ textValue: string | null;
2288
+ booleanValue: boolean | null;
2289
+ numberValue: number | null;
2290
+ dateValue: Date | null;
2291
+ uploads: {
2292
+ id: string;
2293
+ createdAt: Date;
2294
+ updatedAt: Date;
2295
+ deletedAt: Date | null;
2296
+ fileName: string;
2297
+ fileKey: string;
2298
+ bucketName: string;
2299
+ fileSize: number;
2300
+ fileUrl: string | null;
2301
+ status?: string | undefined;
2302
+ }[];
2303
+ }[];
2304
+ tags: {
2305
+ id: string;
2306
+ name: string;
2307
+ createdAt: Date;
2308
+ updatedAt: Date;
2309
+ deletedAt: Date | null;
2310
+ }[];
2311
+ activityLogs: {
2312
+ id: string;
2313
+ description: string;
2314
+ createdAt: Date;
2315
+ updatedAt: Date;
2316
+ deletedAt: Date | null;
2317
+ actor: {
2318
+ id: string;
2319
+ address: string | null;
2320
+ name: string;
2321
+ email: string;
2322
+ createdAt: Date;
2323
+ updatedAt: Date;
2324
+ deletedAt: Date | null;
2325
+ emailVerifiedAt: Date | null;
2326
+ password: string;
2327
+ phone: string | null;
2328
+ notificationCount: number | null;
2329
+ roles: {
2330
+ id: string;
2331
+ description: string | null;
2332
+ createdAt: Date;
2333
+ updatedAt: Date;
2334
+ deletedAt: Date | null;
2335
+ systemName: string;
2336
+ displayName: string;
2337
+ permissions: {
2338
+ id: string;
2339
+ description: string | null;
2340
+ createdAt: Date;
2341
+ updatedAt: Date;
2342
+ deletedAt: Date | null;
2343
+ systemName: string;
2344
+ displayName: string;
2345
+ }[];
2346
+ }[];
2347
+ extension: {
2348
+ id: string;
2349
+ createdAt: Date;
2350
+ updatedAt: Date;
2351
+ deletedAt: Date | null;
2352
+ userId: string | null;
2353
+ sipServerUrl: string;
2354
+ sipUserName: string;
2355
+ webphoneLoginUser: string;
2356
+ extensionId: string | null;
2357
+ extensionName: string;
2358
+ telephonySignature: string | null;
2359
+ };
2360
+ };
2361
+ entityId: string;
2362
+ entityType: {
2363
+ id: string;
2364
+ description: string;
2365
+ createdAt: Date;
2366
+ updatedAt: Date;
2367
+ deletedAt: Date | null;
2368
+ entity: string;
2369
+ };
2370
+ }[];
2371
+ contactId: string;
2372
+ assigneeId: string;
2373
+ creatorId: string;
2374
+ reasonToAssign: string | null;
2375
+ creator?: {
2376
+ id: string;
2377
+ address: string | null;
2378
+ name: string;
2379
+ email: string;
2380
+ createdAt: Date;
2381
+ updatedAt: Date;
2382
+ deletedAt: Date | null;
2383
+ emailVerifiedAt: Date | null;
2384
+ password: string;
2385
+ phone: string | null;
2386
+ notificationCount: number | null;
2387
+ roles: {
2388
+ id: string;
2389
+ description: string | null;
2390
+ createdAt: Date;
2391
+ updatedAt: Date;
2392
+ deletedAt: Date | null;
2393
+ systemName: string;
2394
+ displayName: string;
2395
+ permissions: {
2396
+ id: string;
2397
+ description: string | null;
2398
+ createdAt: Date;
2399
+ updatedAt: Date;
2400
+ deletedAt: Date | null;
2401
+ systemName: string;
2402
+ displayName: string;
2403
+ }[];
2404
+ }[];
2405
+ extension: {
2406
+ id: string;
2407
+ createdAt: Date;
2408
+ updatedAt: Date;
2409
+ deletedAt: Date | null;
2410
+ userId: string | null;
2411
+ sipServerUrl: string;
2412
+ sipUserName: string;
2413
+ webphoneLoginUser: string;
2414
+ extensionId: string | null;
2415
+ extensionName: string;
2416
+ telephonySignature: string | null;
2417
+ };
2418
+ } | null | undefined;
2419
+ assignee?: {
2420
+ id: string;
2421
+ address: string | null;
2422
+ name: string;
2423
+ email: string;
2424
+ createdAt: Date;
2425
+ updatedAt: Date;
2426
+ deletedAt: Date | null;
2427
+ emailVerifiedAt: Date | null;
2428
+ password: string;
2429
+ phone: string | null;
2430
+ notificationCount: number | null;
2431
+ roles: {
2432
+ id: string;
2433
+ description: string | null;
2434
+ createdAt: Date;
2435
+ updatedAt: Date;
2436
+ deletedAt: Date | null;
2437
+ systemName: string;
2438
+ displayName: string;
2439
+ permissions: {
2440
+ id: string;
2441
+ description: string | null;
2442
+ createdAt: Date;
2443
+ updatedAt: Date;
2444
+ deletedAt: Date | null;
2445
+ systemName: string;
2446
+ displayName: string;
2447
+ }[];
2448
+ }[];
2449
+ extension: {
2450
+ id: string;
2451
+ createdAt: Date;
2452
+ updatedAt: Date;
2453
+ deletedAt: Date | null;
2454
+ userId: string | null;
2455
+ sipServerUrl: string;
2456
+ sipUserName: string;
2457
+ webphoneLoginUser: string;
2458
+ extensionId: string | null;
2459
+ extensionName: string;
2460
+ telephonySignature: string | null;
2461
+ };
2462
+ } | null | undefined;
2463
+ ticketNumber?: number | undefined;
2464
+ }, {
2465
+ type: string;
2466
+ id: string;
2467
+ channel: string;
2468
+ priority: string;
2469
+ title: string;
2470
+ description: string | null;
2471
+ status: string;
2472
+ createdAt: Date;
2473
+ updatedAt: Date;
2474
+ deletedAt: Date | null;
2475
+ categories: {
2476
+ id: string;
2477
+ value: string;
2478
+ createdAt: Date;
2479
+ updatedAt: Date;
2480
+ deletedAt: Date | null;
2481
+ level: 2 | 1 | 3;
2482
+ parentId: string | null;
2483
+ childCategoryList: {
2484
+ id: string;
2485
+ value: string;
2486
+ level: 2 | 1 | 3;
2487
+ parentId: string | null;
2488
+ childCategoryList: {
2489
+ id: string;
2490
+ value: string;
2491
+ level: 2 | 1 | 3;
2492
+ parentId: string | null;
2493
+ childCategoryList: any[];
2494
+ }[];
2495
+ }[];
2496
+ }[];
2497
+ contact: {
2498
+ id: string;
2499
+ channel: string | null;
2500
+ address: string | null;
2501
+ name: string;
2502
+ createdAt: Date;
2503
+ updatedAt: Date;
2504
+ deletedAt: Date | null;
2505
+ customFields: {
2506
+ id: string;
2507
+ createdAt: Date;
2508
+ updatedAt: Date;
2509
+ deletedAt: Date | null;
2510
+ attribute: {
2511
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2512
+ id: string;
2513
+ position: number;
2514
+ createdAt: Date;
2515
+ updatedAt: Date;
2516
+ deletedAt: Date | null;
2517
+ systemName: string;
2518
+ displayName: string;
2519
+ isDefault: boolean;
2520
+ isArchived: boolean;
2521
+ isRequired: boolean;
2522
+ isUnique: boolean;
2523
+ };
2524
+ textValue: string | null;
2525
+ booleanValue: boolean | null;
2526
+ numberValue: number | null;
2527
+ dateValue: Date | null;
2528
+ uploads: {
2529
+ id: string;
2530
+ createdAt: Date;
2531
+ updatedAt: Date;
2532
+ deletedAt: Date | null;
2533
+ fileName: string;
2534
+ fileKey: string;
2535
+ bucketName: string;
2536
+ fileSize: number;
2537
+ fileUrl: string | null;
2538
+ status?: string | undefined;
2539
+ }[];
2540
+ }[];
2541
+ company: {
2542
+ id: string;
2543
+ createdAt: Date;
2544
+ updatedAt: Date;
2545
+ deletedAt: Date | null;
2546
+ address?: string | null | undefined;
2547
+ name?: string | undefined;
2548
+ phone?: string | null | undefined;
2549
+ industry?: string | null | undefined;
2550
+ } | null;
2551
+ notes: string | null;
2552
+ contactProfile: string | null;
2553
+ socialProfileUrl: string | null;
2554
+ tags: {
2555
+ id: string;
2556
+ name: string;
2557
+ createdAt: Date;
2558
+ updatedAt: Date;
2559
+ deletedAt: Date | null;
2560
+ }[];
2561
+ contactEmails: {
2562
+ id: string;
2563
+ isPrimary: boolean;
2564
+ email: string;
2565
+ createdAt: Date;
2566
+ updatedAt: Date;
2567
+ deletedAt: Date | null;
2568
+ }[];
2569
+ contactPhones: {
2570
+ id: string;
2571
+ isPrimary: boolean;
2572
+ createdAt: Date;
2573
+ updatedAt: Date;
2574
+ deletedAt: Date | null;
2575
+ phone: string;
2576
+ }[];
2577
+ activityLogs?: {
2578
+ id: string;
2579
+ description: string;
2580
+ createdAt: Date;
2581
+ updatedAt: Date;
2582
+ deletedAt: Date | null;
2583
+ entityId: string;
2584
+ entityType: {
2585
+ id: string;
2586
+ description: string | null;
2587
+ createdAt: Date;
2588
+ updatedAt: Date;
2589
+ deletedAt: Date | null;
2590
+ entity: string;
2591
+ };
2592
+ }[] | undefined;
2593
+ };
2594
+ customFields: {
2595
+ id: string;
2596
+ createdAt: Date;
2597
+ updatedAt: Date;
2598
+ deletedAt: Date | null;
2599
+ attribute: {
2600
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2601
+ id: string;
2602
+ position: number;
2603
+ createdAt: Date;
2604
+ updatedAt: Date;
2605
+ deletedAt: Date | null;
2606
+ systemName: string;
2607
+ displayName: string;
2608
+ isDefault: boolean;
2609
+ isArchived: boolean;
2610
+ isRequired: boolean;
2611
+ isUnique: boolean;
2612
+ };
2613
+ textValue: string | null;
2614
+ booleanValue: boolean | null;
2615
+ numberValue: number | null;
2616
+ dateValue: Date | null;
2617
+ uploads: {
2618
+ id: string;
2619
+ createdAt: Date;
2620
+ updatedAt: Date;
2621
+ deletedAt: Date | null;
2622
+ fileName: string;
2623
+ fileKey: string;
2624
+ bucketName: string;
2625
+ fileSize: number;
2626
+ fileUrl: string | null;
2627
+ status?: string | undefined;
2628
+ }[];
2629
+ }[];
2630
+ tags: {
2631
+ id: string;
2632
+ name: string;
2633
+ createdAt: Date;
2634
+ updatedAt: Date;
2635
+ deletedAt: Date | null;
2636
+ }[];
2637
+ activityLogs: {
2638
+ id: string;
2639
+ description: string;
2640
+ createdAt: Date;
2641
+ updatedAt: Date;
2642
+ deletedAt: Date | null;
2643
+ actor: {
2644
+ id: string;
2645
+ address: string | null;
2646
+ name: string;
2647
+ email: string;
2648
+ createdAt: Date;
2649
+ updatedAt: Date;
2650
+ deletedAt: Date | null;
2651
+ emailVerifiedAt: Date | null;
2652
+ password: string;
2653
+ phone: string | null;
2654
+ notificationCount: number | null;
2655
+ roles: {
2656
+ id: string;
2657
+ description: string | null;
2658
+ createdAt: Date;
2659
+ updatedAt: Date;
2660
+ deletedAt: Date | null;
2661
+ systemName: string;
2662
+ displayName: string;
2663
+ permissions: {
2664
+ id: string;
2665
+ description: string | null;
2666
+ createdAt: Date;
2667
+ updatedAt: Date;
2668
+ deletedAt: Date | null;
2669
+ systemName: string;
2670
+ displayName: string;
2671
+ }[];
2672
+ }[];
2673
+ extension: {
2674
+ id: string;
2675
+ createdAt: Date;
2676
+ updatedAt: Date;
2677
+ deletedAt: Date | null;
2678
+ userId: string | null;
2679
+ sipServerUrl: string;
2680
+ sipUserName: string;
2681
+ webphoneLoginUser: string;
2682
+ extensionId: string | null;
2683
+ extensionName: string;
2684
+ telephonySignature: string | null;
2685
+ };
2686
+ };
2687
+ entityId: string;
2688
+ entityType: {
2689
+ id: string;
2690
+ description: string;
2691
+ createdAt: Date;
2692
+ updatedAt: Date;
2693
+ deletedAt: Date | null;
2694
+ entity: string;
2695
+ };
2696
+ }[];
2697
+ contactId: string;
2698
+ assigneeId: string;
2699
+ creatorId: string;
2700
+ reasonToAssign: string | null;
2701
+ creator?: {
2702
+ id: string;
2703
+ address: string | null;
2704
+ name: string;
2705
+ email: string;
2706
+ createdAt: Date;
2707
+ updatedAt: Date;
2708
+ deletedAt: Date | null;
2709
+ emailVerifiedAt: Date | null;
2710
+ password: string;
2711
+ phone: string | null;
2712
+ notificationCount: number | null;
2713
+ roles: {
2714
+ id: string;
2715
+ description: string | null;
2716
+ createdAt: Date;
2717
+ updatedAt: Date;
2718
+ deletedAt: Date | null;
2719
+ systemName: string;
2720
+ displayName: string;
2721
+ permissions: {
2722
+ id: string;
2723
+ description: string | null;
2724
+ createdAt: Date;
2725
+ updatedAt: Date;
2726
+ deletedAt: Date | null;
2727
+ systemName: string;
2728
+ displayName: string;
2729
+ }[];
2730
+ }[];
2731
+ extension: {
2732
+ id: string;
2733
+ createdAt: Date;
2734
+ updatedAt: Date;
2735
+ deletedAt: Date | null;
2736
+ userId: string | null;
2737
+ sipServerUrl: string;
2738
+ sipUserName: string;
2739
+ webphoneLoginUser: string;
2740
+ extensionId: string | null;
2741
+ extensionName: string;
2742
+ telephonySignature: string | null;
2743
+ };
2744
+ } | null | undefined;
2745
+ assignee?: {
2746
+ id: string;
2747
+ address: string | null;
2748
+ name: string;
2749
+ email: string;
2750
+ createdAt: Date;
2751
+ updatedAt: Date;
2752
+ deletedAt: Date | null;
2753
+ emailVerifiedAt: Date | null;
2754
+ password: string;
2755
+ phone: string | null;
2756
+ notificationCount: number | null;
2757
+ roles: {
2758
+ id: string;
2759
+ description: string | null;
2760
+ createdAt: Date;
2761
+ updatedAt: Date;
2762
+ deletedAt: Date | null;
2763
+ systemName: string;
2764
+ displayName: string;
2765
+ permissions: {
2766
+ id: string;
2767
+ description: string | null;
2768
+ createdAt: Date;
2769
+ updatedAt: Date;
2770
+ deletedAt: Date | null;
2771
+ systemName: string;
2772
+ displayName: string;
2773
+ }[];
2774
+ }[];
2775
+ extension: {
2776
+ id: string;
2777
+ createdAt: Date;
2778
+ updatedAt: Date;
2779
+ deletedAt: Date | null;
2780
+ userId: string | null;
2781
+ sipServerUrl: string;
2782
+ sipUserName: string;
2783
+ webphoneLoginUser: string;
2784
+ extensionId: string | null;
2785
+ extensionName: string;
2786
+ telephonySignature: string | null;
2787
+ };
2788
+ } | null | undefined;
2789
+ ticketNumber?: number | undefined;
2790
+ }>;
2791
+ agent: z.ZodObject<{
2792
+ id: z.ZodString;
2793
+ createdAt: z.ZodDate;
2794
+ updatedAt: z.ZodDate;
2795
+ deletedAt: z.ZodNullable<z.ZodDate>;
2796
+ name: z.ZodString;
2797
+ email: z.ZodString;
2798
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2799
+ password: z.ZodString;
2800
+ address: z.ZodNullable<z.ZodString>;
2801
+ phone: z.ZodNullable<z.ZodString>;
2802
+ notificationCount: z.ZodNullable<z.ZodNumber>;
2803
+ roles: z.ZodArray<z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ createdAt: z.ZodDate;
2806
+ updatedAt: z.ZodDate;
2807
+ deletedAt: z.ZodNullable<z.ZodDate>;
2808
+ systemName: z.ZodString;
2809
+ displayName: z.ZodString;
2810
+ description: z.ZodNullable<z.ZodString>;
2811
+ permissions: z.ZodArray<z.ZodObject<{
2812
+ id: z.ZodString;
2813
+ createdAt: z.ZodDate;
2814
+ updatedAt: z.ZodDate;
2815
+ deletedAt: z.ZodNullable<z.ZodDate>;
2816
+ systemName: z.ZodString;
2817
+ displayName: z.ZodString;
2818
+ description: z.ZodNullable<z.ZodString>;
2819
+ }, "strip", z.ZodTypeAny, {
2820
+ id: string;
2821
+ description: string | null;
2822
+ createdAt: Date;
2823
+ updatedAt: Date;
2824
+ deletedAt: Date | null;
2825
+ systemName: string;
2826
+ displayName: string;
2827
+ }, {
2828
+ id: string;
2829
+ description: string | null;
2830
+ createdAt: Date;
2831
+ updatedAt: Date;
2832
+ deletedAt: Date | null;
2833
+ systemName: string;
2834
+ displayName: string;
2835
+ }>, "many">;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ id: string;
2838
+ description: string | null;
2839
+ createdAt: Date;
2840
+ updatedAt: Date;
2841
+ deletedAt: Date | null;
2842
+ systemName: string;
2843
+ displayName: string;
2844
+ permissions: {
2845
+ id: string;
2846
+ description: string | null;
2847
+ createdAt: Date;
2848
+ updatedAt: Date;
2849
+ deletedAt: Date | null;
2850
+ systemName: string;
2851
+ displayName: string;
2852
+ }[];
2853
+ }, {
2854
+ id: string;
2855
+ description: string | null;
2856
+ createdAt: Date;
2857
+ updatedAt: Date;
2858
+ deletedAt: Date | null;
2859
+ systemName: string;
2860
+ displayName: string;
2861
+ permissions: {
2862
+ id: string;
2863
+ description: string | null;
2864
+ createdAt: Date;
2865
+ updatedAt: Date;
2866
+ deletedAt: Date | null;
2867
+ systemName: string;
2868
+ displayName: string;
2869
+ }[];
2870
+ }>, "many">;
2871
+ extension: z.ZodObject<{
2872
+ id: z.ZodString;
2873
+ createdAt: z.ZodDate;
2874
+ updatedAt: z.ZodDate;
2875
+ deletedAt: z.ZodNullable<z.ZodDate>;
2876
+ userId: z.ZodNullable<z.ZodString>;
2877
+ sipServerUrl: z.ZodString;
2878
+ sipUserName: z.ZodString;
2879
+ webphoneLoginUser: z.ZodString;
2880
+ extensionId: z.ZodNullable<z.ZodString>;
2881
+ extensionName: z.ZodString;
2882
+ telephonySignature: z.ZodNullable<z.ZodString>;
2883
+ }, "strip", z.ZodTypeAny, {
2884
+ id: string;
2885
+ createdAt: Date;
2886
+ updatedAt: Date;
2887
+ deletedAt: Date | null;
2888
+ userId: string | null;
2889
+ sipServerUrl: string;
2890
+ sipUserName: string;
2891
+ webphoneLoginUser: string;
2892
+ extensionId: string | null;
2893
+ extensionName: string;
2894
+ telephonySignature: string | null;
2895
+ }, {
2896
+ id: string;
2897
+ createdAt: Date;
2898
+ updatedAt: Date;
2899
+ deletedAt: Date | null;
2900
+ userId: string | null;
2901
+ sipServerUrl: string;
2902
+ sipUserName: string;
2903
+ webphoneLoginUser: string;
2904
+ extensionId: string | null;
2905
+ extensionName: string;
2906
+ telephonySignature: string | null;
2907
+ }>;
2908
+ }, "strip", z.ZodTypeAny, {
2909
+ id: string;
2910
+ address: string | null;
2911
+ name: string;
2912
+ email: string;
2913
+ createdAt: Date;
2914
+ updatedAt: Date;
2915
+ deletedAt: Date | null;
2916
+ emailVerifiedAt: Date | null;
2917
+ password: string;
2918
+ phone: string | null;
2919
+ notificationCount: number | null;
2920
+ roles: {
2921
+ id: string;
2922
+ description: string | null;
2923
+ createdAt: Date;
2924
+ updatedAt: Date;
2925
+ deletedAt: Date | null;
2926
+ systemName: string;
2927
+ displayName: string;
2928
+ permissions: {
2929
+ id: string;
2930
+ description: string | null;
2931
+ createdAt: Date;
2932
+ updatedAt: Date;
2933
+ deletedAt: Date | null;
2934
+ systemName: string;
2935
+ displayName: string;
2936
+ }[];
2937
+ }[];
2938
+ extension: {
2939
+ id: string;
2940
+ createdAt: Date;
2941
+ updatedAt: Date;
2942
+ deletedAt: Date | null;
2943
+ userId: string | null;
2944
+ sipServerUrl: string;
2945
+ sipUserName: string;
2946
+ webphoneLoginUser: string;
2947
+ extensionId: string | null;
2948
+ extensionName: string;
2949
+ telephonySignature: string | null;
2950
+ };
2951
+ }, {
2952
+ id: string;
2953
+ address: string | null;
2954
+ name: string;
2955
+ email: string;
2956
+ createdAt: Date;
2957
+ updatedAt: Date;
2958
+ deletedAt: Date | null;
2959
+ emailVerifiedAt: Date | null;
2960
+ password: string;
2961
+ phone: string | null;
2962
+ notificationCount: number | null;
2963
+ roles: {
2964
+ id: string;
2965
+ description: string | null;
2966
+ createdAt: Date;
2967
+ updatedAt: Date;
2968
+ deletedAt: Date | null;
2969
+ systemName: string;
2970
+ displayName: string;
2971
+ permissions: {
2972
+ id: string;
2973
+ description: string | null;
2974
+ createdAt: Date;
2975
+ updatedAt: Date;
2976
+ deletedAt: Date | null;
2977
+ systemName: string;
2978
+ displayName: string;
2979
+ }[];
2980
+ }[];
2981
+ extension: {
2982
+ id: string;
2983
+ createdAt: Date;
2984
+ updatedAt: Date;
2985
+ deletedAt: Date | null;
2986
+ userId: string | null;
2987
+ sipServerUrl: string;
2988
+ sipUserName: string;
2989
+ webphoneLoginUser: string;
2990
+ extensionId: string | null;
2991
+ extensionName: string;
2992
+ telephonySignature: string | null;
2993
+ };
2994
+ }>;
2995
+ }, "strip", z.ZodTypeAny, {
2996
+ id: string;
2997
+ createdAt: Date;
2998
+ updatedAt: Date;
2999
+ deletedAt: Date | null;
3000
+ ticket: {
3001
+ type: string;
3002
+ id: string;
3003
+ channel: string;
3004
+ priority: string;
3005
+ title: string;
3006
+ description: string | null;
3007
+ status: string;
3008
+ createdAt: Date;
3009
+ updatedAt: Date;
3010
+ deletedAt: Date | null;
3011
+ categories: {
3012
+ id: string;
3013
+ value: string;
3014
+ createdAt: Date;
3015
+ updatedAt: Date;
3016
+ deletedAt: Date | null;
3017
+ level: 2 | 1 | 3;
3018
+ parentId: string | null;
3019
+ childCategoryList: {
3020
+ id: string;
3021
+ value: string;
3022
+ level: 2 | 1 | 3;
3023
+ parentId: string | null;
3024
+ childCategoryList: {
3025
+ id: string;
3026
+ value: string;
3027
+ level: 2 | 1 | 3;
3028
+ parentId: string | null;
3029
+ childCategoryList: any[];
3030
+ }[];
3031
+ }[];
3032
+ }[];
3033
+ contact: {
3034
+ id: string;
3035
+ channel: string | null;
3036
+ address: string | null;
3037
+ name: string;
3038
+ createdAt: Date;
3039
+ updatedAt: Date;
3040
+ deletedAt: Date | null;
3041
+ customFields: {
3042
+ id: string;
3043
+ createdAt: Date;
3044
+ updatedAt: Date;
3045
+ deletedAt: Date | null;
3046
+ attribute: {
3047
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3048
+ id: string;
3049
+ position: number;
3050
+ createdAt: Date;
3051
+ updatedAt: Date;
3052
+ deletedAt: Date | null;
3053
+ systemName: string;
3054
+ displayName: string;
3055
+ isDefault: boolean;
3056
+ isArchived: boolean;
3057
+ isRequired: boolean;
3058
+ isUnique: boolean;
3059
+ };
3060
+ textValue: string | null;
3061
+ booleanValue: boolean | null;
3062
+ numberValue: number | null;
3063
+ dateValue: Date | null;
3064
+ uploads: {
3065
+ id: string;
3066
+ createdAt: Date;
3067
+ updatedAt: Date;
3068
+ deletedAt: Date | null;
3069
+ fileName: string;
3070
+ fileKey: string;
3071
+ bucketName: string;
3072
+ fileSize: number;
3073
+ fileUrl: string | null;
3074
+ status?: string | undefined;
3075
+ }[];
3076
+ }[];
3077
+ company: {
3078
+ id: string;
3079
+ createdAt: Date;
3080
+ updatedAt: Date;
3081
+ deletedAt: Date | null;
3082
+ address?: string | null | undefined;
3083
+ name?: string | undefined;
3084
+ phone?: string | null | undefined;
3085
+ industry?: string | null | undefined;
3086
+ } | null;
3087
+ notes: string | null;
3088
+ contactProfile: string | null;
3089
+ socialProfileUrl: string | null;
3090
+ tags: {
3091
+ id: string;
3092
+ name: string;
3093
+ createdAt: Date;
3094
+ updatedAt: Date;
3095
+ deletedAt: Date | null;
3096
+ }[];
3097
+ contactEmails: {
3098
+ id: string;
3099
+ isPrimary: boolean;
3100
+ email: string;
3101
+ createdAt: Date;
3102
+ updatedAt: Date;
3103
+ deletedAt: Date | null;
3104
+ }[];
3105
+ contactPhones: {
3106
+ id: string;
3107
+ isPrimary: boolean;
3108
+ createdAt: Date;
3109
+ updatedAt: Date;
3110
+ deletedAt: Date | null;
3111
+ phone: string;
3112
+ }[];
3113
+ activityLogs?: {
3114
+ id: string;
3115
+ description: string;
3116
+ createdAt: Date;
3117
+ updatedAt: Date;
3118
+ deletedAt: Date | null;
3119
+ entityId: string;
3120
+ entityType: {
3121
+ id: string;
3122
+ description: string | null;
3123
+ createdAt: Date;
3124
+ updatedAt: Date;
3125
+ deletedAt: Date | null;
3126
+ entity: string;
3127
+ };
3128
+ }[] | undefined;
3129
+ };
3130
+ customFields: {
3131
+ id: string;
3132
+ createdAt: Date;
3133
+ updatedAt: Date;
3134
+ deletedAt: Date | null;
3135
+ attribute: {
3136
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3137
+ id: string;
3138
+ position: number;
3139
+ createdAt: Date;
3140
+ updatedAt: Date;
3141
+ deletedAt: Date | null;
3142
+ systemName: string;
3143
+ displayName: string;
3144
+ isDefault: boolean;
3145
+ isArchived: boolean;
3146
+ isRequired: boolean;
3147
+ isUnique: boolean;
3148
+ };
3149
+ textValue: string | null;
3150
+ booleanValue: boolean | null;
3151
+ numberValue: number | null;
3152
+ dateValue: Date | null;
3153
+ uploads: {
3154
+ id: string;
3155
+ createdAt: Date;
3156
+ updatedAt: Date;
3157
+ deletedAt: Date | null;
3158
+ fileName: string;
3159
+ fileKey: string;
3160
+ bucketName: string;
3161
+ fileSize: number;
3162
+ fileUrl: string | null;
3163
+ status?: string | undefined;
3164
+ }[];
3165
+ }[];
3166
+ tags: {
3167
+ id: string;
3168
+ name: string;
3169
+ createdAt: Date;
3170
+ updatedAt: Date;
3171
+ deletedAt: Date | null;
3172
+ }[];
3173
+ activityLogs: {
3174
+ id: string;
3175
+ description: string;
3176
+ createdAt: Date;
3177
+ updatedAt: Date;
3178
+ deletedAt: Date | null;
3179
+ actor: {
3180
+ id: string;
3181
+ address: string | null;
3182
+ name: string;
3183
+ email: string;
3184
+ createdAt: Date;
3185
+ updatedAt: Date;
3186
+ deletedAt: Date | null;
3187
+ emailVerifiedAt: Date | null;
3188
+ password: string;
3189
+ phone: string | null;
3190
+ notificationCount: number | null;
3191
+ roles: {
3192
+ id: string;
3193
+ description: string | null;
3194
+ createdAt: Date;
3195
+ updatedAt: Date;
3196
+ deletedAt: Date | null;
3197
+ systemName: string;
3198
+ displayName: string;
3199
+ permissions: {
3200
+ id: string;
3201
+ description: string | null;
3202
+ createdAt: Date;
3203
+ updatedAt: Date;
3204
+ deletedAt: Date | null;
3205
+ systemName: string;
3206
+ displayName: string;
3207
+ }[];
3208
+ }[];
3209
+ extension: {
3210
+ id: string;
3211
+ createdAt: Date;
3212
+ updatedAt: Date;
3213
+ deletedAt: Date | null;
3214
+ userId: string | null;
3215
+ sipServerUrl: string;
3216
+ sipUserName: string;
3217
+ webphoneLoginUser: string;
3218
+ extensionId: string | null;
3219
+ extensionName: string;
3220
+ telephonySignature: string | null;
3221
+ };
3222
+ };
3223
+ entityId: string;
3224
+ entityType: {
3225
+ id: string;
3226
+ description: string;
3227
+ createdAt: Date;
3228
+ updatedAt: Date;
3229
+ deletedAt: Date | null;
3230
+ entity: string;
3231
+ };
3232
+ }[];
3233
+ contactId: string;
3234
+ assigneeId: string;
3235
+ creatorId: string;
3236
+ reasonToAssign: string | null;
3237
+ creator?: {
3238
+ id: string;
3239
+ address: string | null;
3240
+ name: string;
3241
+ email: string;
3242
+ createdAt: Date;
3243
+ updatedAt: Date;
3244
+ deletedAt: Date | null;
3245
+ emailVerifiedAt: Date | null;
3246
+ password: string;
3247
+ phone: string | null;
3248
+ notificationCount: number | null;
3249
+ roles: {
3250
+ id: string;
3251
+ description: string | null;
3252
+ createdAt: Date;
3253
+ updatedAt: Date;
3254
+ deletedAt: Date | null;
3255
+ systemName: string;
3256
+ displayName: string;
3257
+ permissions: {
3258
+ id: string;
3259
+ description: string | null;
3260
+ createdAt: Date;
3261
+ updatedAt: Date;
3262
+ deletedAt: Date | null;
3263
+ systemName: string;
3264
+ displayName: string;
3265
+ }[];
3266
+ }[];
3267
+ extension: {
3268
+ id: string;
3269
+ createdAt: Date;
3270
+ updatedAt: Date;
3271
+ deletedAt: Date | null;
3272
+ userId: string | null;
3273
+ sipServerUrl: string;
3274
+ sipUserName: string;
3275
+ webphoneLoginUser: string;
3276
+ extensionId: string | null;
3277
+ extensionName: string;
3278
+ telephonySignature: string | null;
3279
+ };
3280
+ } | null | undefined;
3281
+ assignee?: {
3282
+ id: string;
3283
+ address: string | null;
3284
+ name: string;
3285
+ email: string;
3286
+ createdAt: Date;
3287
+ updatedAt: Date;
3288
+ deletedAt: Date | null;
3289
+ emailVerifiedAt: Date | null;
3290
+ password: string;
3291
+ phone: string | null;
3292
+ notificationCount: number | null;
3293
+ roles: {
3294
+ id: string;
3295
+ description: string | null;
3296
+ createdAt: Date;
3297
+ updatedAt: Date;
3298
+ deletedAt: Date | null;
3299
+ systemName: string;
3300
+ displayName: string;
3301
+ permissions: {
3302
+ id: string;
3303
+ description: string | null;
3304
+ createdAt: Date;
3305
+ updatedAt: Date;
3306
+ deletedAt: Date | null;
3307
+ systemName: string;
3308
+ displayName: string;
3309
+ }[];
3310
+ }[];
3311
+ extension: {
3312
+ id: string;
3313
+ createdAt: Date;
3314
+ updatedAt: Date;
3315
+ deletedAt: Date | null;
3316
+ userId: string | null;
3317
+ sipServerUrl: string;
3318
+ sipUserName: string;
3319
+ webphoneLoginUser: string;
3320
+ extensionId: string | null;
3321
+ extensionName: string;
3322
+ telephonySignature: string | null;
3323
+ };
3324
+ } | null | undefined;
3325
+ ticketNumber?: number | undefined;
3326
+ };
3327
+ activityLogs: {
3328
+ id: string;
3329
+ description: string;
3330
+ createdAt: Date;
3331
+ updatedAt: Date;
3332
+ deletedAt: Date | null;
3333
+ actor: {
3334
+ id: string;
3335
+ address: string | null;
3336
+ name: string;
3337
+ email: string;
3338
+ createdAt: Date;
3339
+ updatedAt: Date;
3340
+ deletedAt: Date | null;
3341
+ emailVerifiedAt: Date | null;
3342
+ password: string;
3343
+ phone: string | null;
3344
+ notificationCount: number | null;
3345
+ roles: {
3346
+ id: string;
3347
+ description: string | null;
3348
+ createdAt: Date;
3349
+ updatedAt: Date;
3350
+ deletedAt: Date | null;
3351
+ systemName: string;
3352
+ displayName: string;
3353
+ permissions: {
3354
+ id: string;
3355
+ description: string | null;
3356
+ createdAt: Date;
3357
+ updatedAt: Date;
3358
+ deletedAt: Date | null;
3359
+ systemName: string;
3360
+ displayName: string;
3361
+ }[];
3362
+ }[];
3363
+ extension: {
3364
+ id: string;
3365
+ createdAt: Date;
3366
+ updatedAt: Date;
3367
+ deletedAt: Date | null;
3368
+ userId: string | null;
3369
+ sipServerUrl: string;
3370
+ sipUserName: string;
3371
+ webphoneLoginUser: string;
3372
+ extensionId: string | null;
3373
+ extensionName: string;
3374
+ telephonySignature: string | null;
3375
+ };
3376
+ };
3377
+ entityId: string;
3378
+ entityType: {
3379
+ id: string;
3380
+ description: string;
3381
+ createdAt: Date;
3382
+ updatedAt: Date;
3383
+ deletedAt: Date | null;
3384
+ entity: string;
3385
+ };
3386
+ }[];
3387
+ agent: {
3388
+ id: string;
3389
+ address: string | null;
3390
+ name: string;
3391
+ email: string;
3392
+ createdAt: Date;
3393
+ updatedAt: Date;
3394
+ deletedAt: Date | null;
3395
+ emailVerifiedAt: Date | null;
3396
+ password: string;
3397
+ phone: string | null;
3398
+ notificationCount: number | null;
3399
+ roles: {
3400
+ id: string;
3401
+ description: string | null;
3402
+ createdAt: Date;
3403
+ updatedAt: Date;
3404
+ deletedAt: Date | null;
3405
+ systemName: string;
3406
+ displayName: string;
3407
+ permissions: {
3408
+ id: string;
3409
+ description: string | null;
3410
+ createdAt: Date;
3411
+ updatedAt: Date;
3412
+ deletedAt: Date | null;
3413
+ systemName: string;
3414
+ displayName: string;
3415
+ }[];
3416
+ }[];
3417
+ extension: {
3418
+ id: string;
3419
+ createdAt: Date;
3420
+ updatedAt: Date;
3421
+ deletedAt: Date | null;
3422
+ userId: string | null;
3423
+ sipServerUrl: string;
3424
+ sipUserName: string;
3425
+ webphoneLoginUser: string;
3426
+ extensionId: string | null;
3427
+ extensionName: string;
3428
+ telephonySignature: string | null;
3429
+ };
3430
+ };
3431
+ comment: string;
3432
+ mentions: string[];
3433
+ }, {
3434
+ id: string;
3435
+ createdAt: Date;
3436
+ updatedAt: Date;
3437
+ deletedAt: Date | null;
3438
+ ticket: {
3439
+ type: string;
3440
+ id: string;
3441
+ channel: string;
3442
+ priority: string;
3443
+ title: string;
3444
+ description: string | null;
3445
+ status: string;
3446
+ createdAt: Date;
3447
+ updatedAt: Date;
3448
+ deletedAt: Date | null;
3449
+ categories: {
3450
+ id: string;
3451
+ value: string;
3452
+ createdAt: Date;
3453
+ updatedAt: Date;
3454
+ deletedAt: Date | null;
3455
+ level: 2 | 1 | 3;
3456
+ parentId: string | null;
3457
+ childCategoryList: {
3458
+ id: string;
3459
+ value: string;
3460
+ level: 2 | 1 | 3;
3461
+ parentId: string | null;
3462
+ childCategoryList: {
3463
+ id: string;
3464
+ value: string;
3465
+ level: 2 | 1 | 3;
3466
+ parentId: string | null;
3467
+ childCategoryList: any[];
3468
+ }[];
3469
+ }[];
3470
+ }[];
3471
+ contact: {
3472
+ id: string;
3473
+ channel: string | null;
3474
+ address: string | null;
3475
+ name: string;
3476
+ createdAt: Date;
3477
+ updatedAt: Date;
3478
+ deletedAt: Date | null;
3479
+ customFields: {
3480
+ id: string;
3481
+ createdAt: Date;
3482
+ updatedAt: Date;
3483
+ deletedAt: Date | null;
3484
+ attribute: {
3485
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3486
+ id: string;
3487
+ position: number;
3488
+ createdAt: Date;
3489
+ updatedAt: Date;
3490
+ deletedAt: Date | null;
3491
+ systemName: string;
3492
+ displayName: string;
3493
+ isDefault: boolean;
3494
+ isArchived: boolean;
3495
+ isRequired: boolean;
3496
+ isUnique: boolean;
3497
+ };
3498
+ textValue: string | null;
3499
+ booleanValue: boolean | null;
3500
+ numberValue: number | null;
3501
+ dateValue: Date | null;
3502
+ uploads: {
3503
+ id: string;
3504
+ createdAt: Date;
3505
+ updatedAt: Date;
3506
+ deletedAt: Date | null;
3507
+ fileName: string;
3508
+ fileKey: string;
3509
+ bucketName: string;
3510
+ fileSize: number;
3511
+ fileUrl: string | null;
3512
+ status?: string | undefined;
3513
+ }[];
3514
+ }[];
3515
+ company: {
3516
+ id: string;
3517
+ createdAt: Date;
3518
+ updatedAt: Date;
3519
+ deletedAt: Date | null;
3520
+ address?: string | null | undefined;
3521
+ name?: string | undefined;
3522
+ phone?: string | null | undefined;
3523
+ industry?: string | null | undefined;
3524
+ } | null;
3525
+ notes: string | null;
3526
+ contactProfile: string | null;
3527
+ socialProfileUrl: string | null;
3528
+ tags: {
3529
+ id: string;
3530
+ name: string;
3531
+ createdAt: Date;
3532
+ updatedAt: Date;
3533
+ deletedAt: Date | null;
3534
+ }[];
3535
+ contactEmails: {
3536
+ id: string;
3537
+ isPrimary: boolean;
3538
+ email: string;
3539
+ createdAt: Date;
3540
+ updatedAt: Date;
3541
+ deletedAt: Date | null;
3542
+ }[];
3543
+ contactPhones: {
3544
+ id: string;
3545
+ isPrimary: boolean;
3546
+ createdAt: Date;
3547
+ updatedAt: Date;
3548
+ deletedAt: Date | null;
3549
+ phone: string;
3550
+ }[];
3551
+ activityLogs?: {
3552
+ id: string;
3553
+ description: string;
3554
+ createdAt: Date;
3555
+ updatedAt: Date;
3556
+ deletedAt: Date | null;
3557
+ entityId: string;
3558
+ entityType: {
3559
+ id: string;
3560
+ description: string | null;
3561
+ createdAt: Date;
3562
+ updatedAt: Date;
3563
+ deletedAt: Date | null;
3564
+ entity: string;
3565
+ };
3566
+ }[] | undefined;
3567
+ };
3568
+ customFields: {
3569
+ id: string;
3570
+ createdAt: Date;
3571
+ updatedAt: Date;
3572
+ deletedAt: Date | null;
3573
+ attribute: {
3574
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3575
+ id: string;
3576
+ position: number;
3577
+ createdAt: Date;
3578
+ updatedAt: Date;
3579
+ deletedAt: Date | null;
3580
+ systemName: string;
3581
+ displayName: string;
3582
+ isDefault: boolean;
3583
+ isArchived: boolean;
3584
+ isRequired: boolean;
3585
+ isUnique: boolean;
3586
+ };
3587
+ textValue: string | null;
3588
+ booleanValue: boolean | null;
3589
+ numberValue: number | null;
3590
+ dateValue: Date | null;
3591
+ uploads: {
3592
+ id: string;
3593
+ createdAt: Date;
3594
+ updatedAt: Date;
3595
+ deletedAt: Date | null;
3596
+ fileName: string;
3597
+ fileKey: string;
3598
+ bucketName: string;
3599
+ fileSize: number;
3600
+ fileUrl: string | null;
3601
+ status?: string | undefined;
3602
+ }[];
3603
+ }[];
3604
+ tags: {
3605
+ id: string;
3606
+ name: string;
3607
+ createdAt: Date;
3608
+ updatedAt: Date;
3609
+ deletedAt: Date | null;
3610
+ }[];
3611
+ activityLogs: {
3612
+ id: string;
3613
+ description: string;
3614
+ createdAt: Date;
3615
+ updatedAt: Date;
3616
+ deletedAt: Date | null;
3617
+ actor: {
3618
+ id: string;
3619
+ address: string | null;
3620
+ name: string;
3621
+ email: string;
3622
+ createdAt: Date;
3623
+ updatedAt: Date;
3624
+ deletedAt: Date | null;
3625
+ emailVerifiedAt: Date | null;
3626
+ password: string;
3627
+ phone: string | null;
3628
+ notificationCount: number | null;
3629
+ roles: {
3630
+ id: string;
3631
+ description: string | null;
3632
+ createdAt: Date;
3633
+ updatedAt: Date;
3634
+ deletedAt: Date | null;
3635
+ systemName: string;
3636
+ displayName: string;
3637
+ permissions: {
3638
+ id: string;
3639
+ description: string | null;
3640
+ createdAt: Date;
3641
+ updatedAt: Date;
3642
+ deletedAt: Date | null;
3643
+ systemName: string;
3644
+ displayName: string;
3645
+ }[];
3646
+ }[];
3647
+ extension: {
3648
+ id: string;
3649
+ createdAt: Date;
3650
+ updatedAt: Date;
3651
+ deletedAt: Date | null;
3652
+ userId: string | null;
3653
+ sipServerUrl: string;
3654
+ sipUserName: string;
3655
+ webphoneLoginUser: string;
3656
+ extensionId: string | null;
3657
+ extensionName: string;
3658
+ telephonySignature: string | null;
3659
+ };
3660
+ };
3661
+ entityId: string;
3662
+ entityType: {
3663
+ id: string;
3664
+ description: string;
3665
+ createdAt: Date;
3666
+ updatedAt: Date;
3667
+ deletedAt: Date | null;
3668
+ entity: string;
3669
+ };
3670
+ }[];
3671
+ contactId: string;
3672
+ assigneeId: string;
3673
+ creatorId: string;
3674
+ reasonToAssign: string | null;
3675
+ creator?: {
3676
+ id: string;
3677
+ address: string | null;
3678
+ name: string;
3679
+ email: string;
3680
+ createdAt: Date;
3681
+ updatedAt: Date;
3682
+ deletedAt: Date | null;
3683
+ emailVerifiedAt: Date | null;
3684
+ password: string;
3685
+ phone: string | null;
3686
+ notificationCount: number | null;
3687
+ roles: {
3688
+ id: string;
3689
+ description: string | null;
3690
+ createdAt: Date;
3691
+ updatedAt: Date;
3692
+ deletedAt: Date | null;
3693
+ systemName: string;
3694
+ displayName: string;
3695
+ permissions: {
3696
+ id: string;
3697
+ description: string | null;
3698
+ createdAt: Date;
3699
+ updatedAt: Date;
3700
+ deletedAt: Date | null;
3701
+ systemName: string;
3702
+ displayName: string;
3703
+ }[];
3704
+ }[];
3705
+ extension: {
3706
+ id: string;
3707
+ createdAt: Date;
3708
+ updatedAt: Date;
3709
+ deletedAt: Date | null;
3710
+ userId: string | null;
3711
+ sipServerUrl: string;
3712
+ sipUserName: string;
3713
+ webphoneLoginUser: string;
3714
+ extensionId: string | null;
3715
+ extensionName: string;
3716
+ telephonySignature: string | null;
3717
+ };
3718
+ } | null | undefined;
3719
+ assignee?: {
3720
+ id: string;
3721
+ address: string | null;
3722
+ name: string;
3723
+ email: string;
3724
+ createdAt: Date;
3725
+ updatedAt: Date;
3726
+ deletedAt: Date | null;
3727
+ emailVerifiedAt: Date | null;
3728
+ password: string;
3729
+ phone: string | null;
3730
+ notificationCount: number | null;
3731
+ roles: {
3732
+ id: string;
3733
+ description: string | null;
3734
+ createdAt: Date;
3735
+ updatedAt: Date;
3736
+ deletedAt: Date | null;
3737
+ systemName: string;
3738
+ displayName: string;
3739
+ permissions: {
3740
+ id: string;
3741
+ description: string | null;
3742
+ createdAt: Date;
3743
+ updatedAt: Date;
3744
+ deletedAt: Date | null;
3745
+ systemName: string;
3746
+ displayName: string;
3747
+ }[];
3748
+ }[];
3749
+ extension: {
3750
+ id: string;
3751
+ createdAt: Date;
3752
+ updatedAt: Date;
3753
+ deletedAt: Date | null;
3754
+ userId: string | null;
3755
+ sipServerUrl: string;
3756
+ sipUserName: string;
3757
+ webphoneLoginUser: string;
3758
+ extensionId: string | null;
3759
+ extensionName: string;
3760
+ telephonySignature: string | null;
3761
+ };
3762
+ } | null | undefined;
3763
+ ticketNumber?: number | undefined;
3764
+ };
3765
+ activityLogs: {
3766
+ id: string;
3767
+ description: string;
3768
+ createdAt: Date;
3769
+ updatedAt: Date;
3770
+ deletedAt: Date | null;
3771
+ actor: {
3772
+ id: string;
3773
+ address: string | null;
3774
+ name: string;
3775
+ email: string;
3776
+ createdAt: Date;
3777
+ updatedAt: Date;
3778
+ deletedAt: Date | null;
3779
+ emailVerifiedAt: Date | null;
3780
+ password: string;
3781
+ phone: string | null;
3782
+ notificationCount: number | null;
3783
+ roles: {
3784
+ id: string;
3785
+ description: string | null;
3786
+ createdAt: Date;
3787
+ updatedAt: Date;
3788
+ deletedAt: Date | null;
3789
+ systemName: string;
3790
+ displayName: string;
3791
+ permissions: {
3792
+ id: string;
3793
+ description: string | null;
3794
+ createdAt: Date;
3795
+ updatedAt: Date;
3796
+ deletedAt: Date | null;
3797
+ systemName: string;
3798
+ displayName: string;
3799
+ }[];
3800
+ }[];
3801
+ extension: {
3802
+ id: string;
3803
+ createdAt: Date;
3804
+ updatedAt: Date;
3805
+ deletedAt: Date | null;
3806
+ userId: string | null;
3807
+ sipServerUrl: string;
3808
+ sipUserName: string;
3809
+ webphoneLoginUser: string;
3810
+ extensionId: string | null;
3811
+ extensionName: string;
3812
+ telephonySignature: string | null;
3813
+ };
3814
+ };
3815
+ entityId: string;
3816
+ entityType: {
3817
+ id: string;
3818
+ description: string;
3819
+ createdAt: Date;
3820
+ updatedAt: Date;
3821
+ deletedAt: Date | null;
3822
+ entity: string;
3823
+ };
3824
+ }[];
3825
+ agent: {
3826
+ id: string;
3827
+ address: string | null;
3828
+ name: string;
3829
+ email: string;
3830
+ createdAt: Date;
3831
+ updatedAt: Date;
3832
+ deletedAt: Date | null;
3833
+ emailVerifiedAt: Date | null;
3834
+ password: string;
3835
+ phone: string | null;
3836
+ notificationCount: number | null;
3837
+ roles: {
3838
+ id: string;
3839
+ description: string | null;
3840
+ createdAt: Date;
3841
+ updatedAt: Date;
3842
+ deletedAt: Date | null;
3843
+ systemName: string;
3844
+ displayName: string;
3845
+ permissions: {
3846
+ id: string;
3847
+ description: string | null;
3848
+ createdAt: Date;
3849
+ updatedAt: Date;
3850
+ deletedAt: Date | null;
3851
+ systemName: string;
3852
+ displayName: string;
3853
+ }[];
3854
+ }[];
3855
+ extension: {
3856
+ id: string;
3857
+ createdAt: Date;
3858
+ updatedAt: Date;
3859
+ deletedAt: Date | null;
3860
+ userId: string | null;
3861
+ sipServerUrl: string;
3862
+ sipUserName: string;
3863
+ webphoneLoginUser: string;
3864
+ extensionId: string | null;
3865
+ extensionName: string;
3866
+ telephonySignature: string | null;
3867
+ };
3868
+ };
3869
+ comment: string;
3870
+ mentions: string[];
3871
+ }>;
3872
+ //# sourceMappingURL=schema.d.ts.map