@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,2728 @@
1
+ import z from 'zod';
2
+ export declare const TicketCustomFieldSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
+ textValue: z.ZodNullable<z.ZodString>;
8
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
9
+ numberValue: z.ZodNullable<z.ZodNumber>;
10
+ dateValue: z.ZodNullable<z.ZodDate>;
11
+ attribute: z.ZodObject<Omit<{
12
+ id: z.ZodString;
13
+ createdAt: z.ZodDate;
14
+ updatedAt: z.ZodDate;
15
+ deletedAt: z.ZodNullable<z.ZodDate>;
16
+ systemName: z.ZodString;
17
+ displayName: z.ZodString;
18
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
19
+ position: z.ZodNumber;
20
+ isDefault: z.ZodBoolean;
21
+ isArchived: z.ZodBoolean;
22
+ isRequired: z.ZodBoolean;
23
+ isUnique: z.ZodBoolean;
24
+ options: z.ZodArray<z.ZodObject<{
25
+ position: z.ZodNumber;
26
+ value: z.ZodString;
27
+ label: z.ZodString;
28
+ isDefault: z.ZodBoolean;
29
+ id: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id: string;
32
+ position: number;
33
+ value: string;
34
+ label: string;
35
+ isDefault: boolean;
36
+ }, {
37
+ id: string;
38
+ position: number;
39
+ value: string;
40
+ label: string;
41
+ isDefault: boolean;
42
+ }>, "many">;
43
+ group: z.ZodObject<{
44
+ id: z.ZodString;
45
+ createdAt: z.ZodDate;
46
+ updatedAt: z.ZodDate;
47
+ deletedAt: z.ZodNullable<z.ZodDate>;
48
+ systemName: z.ZodString;
49
+ displayName: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ createdAt: Date;
53
+ updatedAt: Date;
54
+ deletedAt: Date | null;
55
+ systemName: string;
56
+ displayName: string;
57
+ }, {
58
+ id: string;
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ deletedAt: Date | null;
62
+ systemName: string;
63
+ displayName: string;
64
+ }>;
65
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
66
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
67
+ id: string;
68
+ position: number;
69
+ createdAt: Date;
70
+ updatedAt: Date;
71
+ deletedAt: Date | null;
72
+ systemName: string;
73
+ displayName: string;
74
+ isDefault: boolean;
75
+ isArchived: boolean;
76
+ isRequired: boolean;
77
+ isUnique: boolean;
78
+ }, {
79
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
80
+ id: string;
81
+ position: number;
82
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ deletedAt: Date | null;
85
+ systemName: string;
86
+ displayName: string;
87
+ isDefault: boolean;
88
+ isArchived: boolean;
89
+ isRequired: boolean;
90
+ isUnique: boolean;
91
+ }>;
92
+ uploads: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ createdAt: z.ZodDate;
95
+ updatedAt: z.ZodDate;
96
+ deletedAt: z.ZodNullable<z.ZodDate>;
97
+ bucketName: z.ZodString;
98
+ fileName: z.ZodString;
99
+ fileSize: z.ZodNumber;
100
+ fileKey: z.ZodString;
101
+ fileUrl: z.ZodNullable<z.ZodString>;
102
+ status: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ id: string;
105
+ createdAt: Date;
106
+ updatedAt: Date;
107
+ deletedAt: Date | null;
108
+ fileName: string;
109
+ fileKey: string;
110
+ bucketName: string;
111
+ fileSize: number;
112
+ fileUrl: string | null;
113
+ status?: string | undefined;
114
+ }, {
115
+ id: string;
116
+ createdAt: Date;
117
+ updatedAt: Date;
118
+ deletedAt: Date | null;
119
+ fileName: string;
120
+ fileKey: string;
121
+ bucketName: string;
122
+ fileSize: number;
123
+ fileUrl: string | null;
124
+ status?: string | undefined;
125
+ }>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ id: string;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ deletedAt: Date | null;
131
+ attribute: {
132
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
133
+ id: string;
134
+ position: number;
135
+ createdAt: Date;
136
+ updatedAt: Date;
137
+ deletedAt: Date | null;
138
+ systemName: string;
139
+ displayName: string;
140
+ isDefault: boolean;
141
+ isArchived: boolean;
142
+ isRequired: boolean;
143
+ isUnique: boolean;
144
+ };
145
+ textValue: string | null;
146
+ booleanValue: boolean | null;
147
+ numberValue: number | null;
148
+ dateValue: Date | null;
149
+ uploads: {
150
+ id: string;
151
+ createdAt: Date;
152
+ updatedAt: Date;
153
+ deletedAt: Date | null;
154
+ fileName: string;
155
+ fileKey: string;
156
+ bucketName: string;
157
+ fileSize: number;
158
+ fileUrl: string | null;
159
+ status?: string | undefined;
160
+ }[];
161
+ }, {
162
+ id: string;
163
+ createdAt: Date;
164
+ updatedAt: Date;
165
+ deletedAt: Date | null;
166
+ attribute: {
167
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
168
+ id: string;
169
+ position: number;
170
+ createdAt: Date;
171
+ updatedAt: Date;
172
+ deletedAt: Date | null;
173
+ systemName: string;
174
+ displayName: string;
175
+ isDefault: boolean;
176
+ isArchived: boolean;
177
+ isRequired: boolean;
178
+ isUnique: boolean;
179
+ };
180
+ textValue: string | null;
181
+ booleanValue: boolean | null;
182
+ numberValue: number | null;
183
+ dateValue: Date | null;
184
+ uploads: {
185
+ id: string;
186
+ createdAt: Date;
187
+ updatedAt: Date;
188
+ deletedAt: Date | null;
189
+ fileName: string;
190
+ fileKey: string;
191
+ bucketName: string;
192
+ fileSize: number;
193
+ fileUrl: string | null;
194
+ status?: string | undefined;
195
+ }[];
196
+ }>;
197
+ export declare const TicketEntityTypesSchema: z.ZodObject<{
198
+ id: z.ZodString;
199
+ createdAt: z.ZodDate;
200
+ updatedAt: z.ZodDate;
201
+ deletedAt: z.ZodNullable<z.ZodDate>;
202
+ entity: z.ZodString;
203
+ description: z.ZodNullable<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ description: string | null;
207
+ createdAt: Date;
208
+ updatedAt: Date;
209
+ deletedAt: Date | null;
210
+ entity: string;
211
+ }, {
212
+ id: string;
213
+ description: string | null;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ deletedAt: Date | null;
217
+ entity: string;
218
+ }>;
219
+ export declare const TicketActivitySchema: z.ZodObject<{
220
+ id: z.ZodString;
221
+ createdAt: z.ZodDate;
222
+ updatedAt: z.ZodDate;
223
+ deletedAt: z.ZodNullable<z.ZodDate>;
224
+ entityId: z.ZodString;
225
+ description: z.ZodString;
226
+ entityType: z.ZodObject<{
227
+ id: z.ZodString;
228
+ createdAt: z.ZodDate;
229
+ updatedAt: z.ZodDate;
230
+ deletedAt: z.ZodNullable<z.ZodDate>;
231
+ entity: z.ZodString;
232
+ description: z.ZodNullable<z.ZodString>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ id: string;
235
+ description: string | null;
236
+ createdAt: Date;
237
+ updatedAt: Date;
238
+ deletedAt: Date | null;
239
+ entity: string;
240
+ }, {
241
+ id: string;
242
+ description: string | null;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ deletedAt: Date | null;
246
+ entity: string;
247
+ }>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ id: string;
250
+ description: string;
251
+ createdAt: Date;
252
+ updatedAt: Date;
253
+ deletedAt: Date | null;
254
+ entityId: string;
255
+ entityType: {
256
+ id: string;
257
+ description: string | null;
258
+ createdAt: Date;
259
+ updatedAt: Date;
260
+ deletedAt: Date | null;
261
+ entity: string;
262
+ };
263
+ }, {
264
+ id: string;
265
+ description: string;
266
+ createdAt: Date;
267
+ updatedAt: Date;
268
+ deletedAt: Date | null;
269
+ entityId: string;
270
+ entityType: {
271
+ id: string;
272
+ description: string | null;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ deletedAt: Date | null;
276
+ entity: string;
277
+ };
278
+ }>;
279
+ export declare const TicketSchema: z.ZodObject<{
280
+ id: z.ZodString;
281
+ createdAt: z.ZodDate;
282
+ updatedAt: z.ZodDate;
283
+ deletedAt: z.ZodNullable<z.ZodDate>;
284
+ title: z.ZodString;
285
+ description: z.ZodNullable<z.ZodString>;
286
+ type: z.ZodString;
287
+ channel: z.ZodString;
288
+ priority: z.ZodString;
289
+ status: z.ZodString;
290
+ contactId: z.ZodString;
291
+ creatorId: z.ZodString;
292
+ creator: z.ZodNullable<z.ZodOptional<z.ZodObject<{
293
+ id: z.ZodString;
294
+ createdAt: z.ZodDate;
295
+ updatedAt: z.ZodDate;
296
+ deletedAt: z.ZodNullable<z.ZodDate>;
297
+ name: z.ZodString;
298
+ email: z.ZodString;
299
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
300
+ password: z.ZodString;
301
+ address: z.ZodNullable<z.ZodString>;
302
+ phone: z.ZodNullable<z.ZodString>;
303
+ notificationCount: z.ZodNullable<z.ZodNumber>;
304
+ roles: z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ createdAt: z.ZodDate;
307
+ updatedAt: z.ZodDate;
308
+ deletedAt: z.ZodNullable<z.ZodDate>;
309
+ systemName: z.ZodString;
310
+ displayName: z.ZodString;
311
+ description: z.ZodNullable<z.ZodString>;
312
+ permissions: z.ZodArray<z.ZodObject<{
313
+ id: z.ZodString;
314
+ createdAt: z.ZodDate;
315
+ updatedAt: z.ZodDate;
316
+ deletedAt: z.ZodNullable<z.ZodDate>;
317
+ systemName: z.ZodString;
318
+ displayName: z.ZodString;
319
+ description: z.ZodNullable<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ id: string;
322
+ description: string | null;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ deletedAt: Date | null;
326
+ systemName: string;
327
+ displayName: string;
328
+ }, {
329
+ id: string;
330
+ description: string | null;
331
+ createdAt: Date;
332
+ updatedAt: Date;
333
+ deletedAt: Date | null;
334
+ systemName: string;
335
+ displayName: string;
336
+ }>, "many">;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: string;
339
+ description: string | null;
340
+ createdAt: Date;
341
+ updatedAt: Date;
342
+ deletedAt: Date | null;
343
+ systemName: string;
344
+ displayName: string;
345
+ permissions: {
346
+ id: string;
347
+ description: string | null;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ deletedAt: Date | null;
351
+ systemName: string;
352
+ displayName: string;
353
+ }[];
354
+ }, {
355
+ id: string;
356
+ description: string | null;
357
+ createdAt: Date;
358
+ updatedAt: Date;
359
+ deletedAt: Date | null;
360
+ systemName: string;
361
+ displayName: string;
362
+ permissions: {
363
+ id: string;
364
+ description: string | null;
365
+ createdAt: Date;
366
+ updatedAt: Date;
367
+ deletedAt: Date | null;
368
+ systemName: string;
369
+ displayName: string;
370
+ }[];
371
+ }>, "many">;
372
+ extension: z.ZodObject<{
373
+ id: z.ZodString;
374
+ createdAt: z.ZodDate;
375
+ updatedAt: z.ZodDate;
376
+ deletedAt: z.ZodNullable<z.ZodDate>;
377
+ userId: z.ZodNullable<z.ZodString>;
378
+ sipServerUrl: z.ZodString;
379
+ sipUserName: z.ZodString;
380
+ webphoneLoginUser: z.ZodString;
381
+ extensionId: z.ZodNullable<z.ZodString>;
382
+ extensionName: z.ZodString;
383
+ telephonySignature: z.ZodNullable<z.ZodString>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ id: string;
386
+ createdAt: Date;
387
+ updatedAt: Date;
388
+ deletedAt: Date | null;
389
+ userId: string | null;
390
+ sipServerUrl: string;
391
+ sipUserName: string;
392
+ webphoneLoginUser: string;
393
+ extensionId: string | null;
394
+ extensionName: string;
395
+ telephonySignature: string | null;
396
+ }, {
397
+ id: string;
398
+ createdAt: Date;
399
+ updatedAt: Date;
400
+ deletedAt: Date | null;
401
+ userId: string | null;
402
+ sipServerUrl: string;
403
+ sipUserName: string;
404
+ webphoneLoginUser: string;
405
+ extensionId: string | null;
406
+ extensionName: string;
407
+ telephonySignature: string | null;
408
+ }>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ id: string;
411
+ address: string | null;
412
+ name: string;
413
+ email: string;
414
+ createdAt: Date;
415
+ updatedAt: Date;
416
+ deletedAt: Date | null;
417
+ emailVerifiedAt: Date | null;
418
+ password: string;
419
+ phone: string | null;
420
+ notificationCount: number | null;
421
+ roles: {
422
+ id: string;
423
+ description: string | null;
424
+ createdAt: Date;
425
+ updatedAt: Date;
426
+ deletedAt: Date | null;
427
+ systemName: string;
428
+ displayName: string;
429
+ permissions: {
430
+ id: string;
431
+ description: string | null;
432
+ createdAt: Date;
433
+ updatedAt: Date;
434
+ deletedAt: Date | null;
435
+ systemName: string;
436
+ displayName: string;
437
+ }[];
438
+ }[];
439
+ extension: {
440
+ id: string;
441
+ createdAt: Date;
442
+ updatedAt: Date;
443
+ deletedAt: Date | null;
444
+ userId: string | null;
445
+ sipServerUrl: string;
446
+ sipUserName: string;
447
+ webphoneLoginUser: string;
448
+ extensionId: string | null;
449
+ extensionName: string;
450
+ telephonySignature: string | null;
451
+ };
452
+ }, {
453
+ id: string;
454
+ address: string | null;
455
+ name: string;
456
+ email: string;
457
+ createdAt: Date;
458
+ updatedAt: Date;
459
+ deletedAt: Date | null;
460
+ emailVerifiedAt: Date | null;
461
+ password: string;
462
+ phone: string | null;
463
+ notificationCount: number | null;
464
+ roles: {
465
+ id: string;
466
+ description: string | null;
467
+ createdAt: Date;
468
+ updatedAt: Date;
469
+ deletedAt: Date | null;
470
+ systemName: string;
471
+ displayName: string;
472
+ permissions: {
473
+ id: string;
474
+ description: string | null;
475
+ createdAt: Date;
476
+ updatedAt: Date;
477
+ deletedAt: Date | null;
478
+ systemName: string;
479
+ displayName: string;
480
+ }[];
481
+ }[];
482
+ extension: {
483
+ id: string;
484
+ createdAt: Date;
485
+ updatedAt: Date;
486
+ deletedAt: Date | null;
487
+ userId: string | null;
488
+ sipServerUrl: string;
489
+ sipUserName: string;
490
+ webphoneLoginUser: string;
491
+ extensionId: string | null;
492
+ extensionName: string;
493
+ telephonySignature: string | null;
494
+ };
495
+ }>>>;
496
+ assigneeId: z.ZodString;
497
+ assignee: z.ZodNullable<z.ZodOptional<z.ZodObject<{
498
+ id: z.ZodString;
499
+ createdAt: z.ZodDate;
500
+ updatedAt: z.ZodDate;
501
+ deletedAt: z.ZodNullable<z.ZodDate>;
502
+ name: z.ZodString;
503
+ email: z.ZodString;
504
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
505
+ password: z.ZodString;
506
+ address: z.ZodNullable<z.ZodString>;
507
+ phone: z.ZodNullable<z.ZodString>;
508
+ notificationCount: z.ZodNullable<z.ZodNumber>;
509
+ roles: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ createdAt: z.ZodDate;
512
+ updatedAt: z.ZodDate;
513
+ deletedAt: z.ZodNullable<z.ZodDate>;
514
+ systemName: z.ZodString;
515
+ displayName: z.ZodString;
516
+ description: z.ZodNullable<z.ZodString>;
517
+ permissions: z.ZodArray<z.ZodObject<{
518
+ id: z.ZodString;
519
+ createdAt: z.ZodDate;
520
+ updatedAt: z.ZodDate;
521
+ deletedAt: z.ZodNullable<z.ZodDate>;
522
+ systemName: z.ZodString;
523
+ displayName: z.ZodString;
524
+ description: z.ZodNullable<z.ZodString>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ id: string;
527
+ description: string | null;
528
+ createdAt: Date;
529
+ updatedAt: Date;
530
+ deletedAt: Date | null;
531
+ systemName: string;
532
+ displayName: string;
533
+ }, {
534
+ id: string;
535
+ description: string | null;
536
+ createdAt: Date;
537
+ updatedAt: Date;
538
+ deletedAt: Date | null;
539
+ systemName: string;
540
+ displayName: string;
541
+ }>, "many">;
542
+ }, "strip", z.ZodTypeAny, {
543
+ id: string;
544
+ description: string | null;
545
+ createdAt: Date;
546
+ updatedAt: Date;
547
+ deletedAt: Date | null;
548
+ systemName: string;
549
+ displayName: string;
550
+ permissions: {
551
+ id: string;
552
+ description: string | null;
553
+ createdAt: Date;
554
+ updatedAt: Date;
555
+ deletedAt: Date | null;
556
+ systemName: string;
557
+ displayName: string;
558
+ }[];
559
+ }, {
560
+ id: string;
561
+ description: string | null;
562
+ createdAt: Date;
563
+ updatedAt: Date;
564
+ deletedAt: Date | null;
565
+ systemName: string;
566
+ displayName: string;
567
+ permissions: {
568
+ id: string;
569
+ description: string | null;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ deletedAt: Date | null;
573
+ systemName: string;
574
+ displayName: string;
575
+ }[];
576
+ }>, "many">;
577
+ extension: z.ZodObject<{
578
+ id: z.ZodString;
579
+ createdAt: z.ZodDate;
580
+ updatedAt: z.ZodDate;
581
+ deletedAt: z.ZodNullable<z.ZodDate>;
582
+ userId: z.ZodNullable<z.ZodString>;
583
+ sipServerUrl: z.ZodString;
584
+ sipUserName: z.ZodString;
585
+ webphoneLoginUser: z.ZodString;
586
+ extensionId: z.ZodNullable<z.ZodString>;
587
+ extensionName: z.ZodString;
588
+ telephonySignature: z.ZodNullable<z.ZodString>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ id: string;
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ deletedAt: Date | null;
594
+ userId: string | null;
595
+ sipServerUrl: string;
596
+ sipUserName: string;
597
+ webphoneLoginUser: string;
598
+ extensionId: string | null;
599
+ extensionName: string;
600
+ telephonySignature: string | null;
601
+ }, {
602
+ id: string;
603
+ createdAt: Date;
604
+ updatedAt: Date;
605
+ deletedAt: Date | null;
606
+ userId: string | null;
607
+ sipServerUrl: string;
608
+ sipUserName: string;
609
+ webphoneLoginUser: string;
610
+ extensionId: string | null;
611
+ extensionName: string;
612
+ telephonySignature: string | null;
613
+ }>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ id: string;
616
+ address: string | null;
617
+ name: string;
618
+ email: string;
619
+ createdAt: Date;
620
+ updatedAt: Date;
621
+ deletedAt: Date | null;
622
+ emailVerifiedAt: Date | null;
623
+ password: string;
624
+ phone: string | null;
625
+ notificationCount: number | null;
626
+ roles: {
627
+ id: string;
628
+ description: string | null;
629
+ createdAt: Date;
630
+ updatedAt: Date;
631
+ deletedAt: Date | null;
632
+ systemName: string;
633
+ displayName: string;
634
+ permissions: {
635
+ id: string;
636
+ description: string | null;
637
+ createdAt: Date;
638
+ updatedAt: Date;
639
+ deletedAt: Date | null;
640
+ systemName: string;
641
+ displayName: string;
642
+ }[];
643
+ }[];
644
+ extension: {
645
+ id: string;
646
+ createdAt: Date;
647
+ updatedAt: Date;
648
+ deletedAt: Date | null;
649
+ userId: string | null;
650
+ sipServerUrl: string;
651
+ sipUserName: string;
652
+ webphoneLoginUser: string;
653
+ extensionId: string | null;
654
+ extensionName: string;
655
+ telephonySignature: string | null;
656
+ };
657
+ }, {
658
+ id: string;
659
+ address: string | null;
660
+ name: string;
661
+ email: string;
662
+ createdAt: Date;
663
+ updatedAt: Date;
664
+ deletedAt: Date | null;
665
+ emailVerifiedAt: Date | null;
666
+ password: string;
667
+ phone: string | null;
668
+ notificationCount: number | null;
669
+ roles: {
670
+ id: string;
671
+ description: string | null;
672
+ createdAt: Date;
673
+ updatedAt: Date;
674
+ deletedAt: Date | null;
675
+ systemName: string;
676
+ displayName: string;
677
+ permissions: {
678
+ id: string;
679
+ description: string | null;
680
+ createdAt: Date;
681
+ updatedAt: Date;
682
+ deletedAt: Date | null;
683
+ systemName: string;
684
+ displayName: string;
685
+ }[];
686
+ }[];
687
+ extension: {
688
+ id: string;
689
+ createdAt: Date;
690
+ updatedAt: Date;
691
+ deletedAt: Date | null;
692
+ userId: string | null;
693
+ sipServerUrl: string;
694
+ sipUserName: string;
695
+ webphoneLoginUser: string;
696
+ extensionId: string | null;
697
+ extensionName: string;
698
+ telephonySignature: string | null;
699
+ };
700
+ }>>>;
701
+ reasonToAssign: z.ZodNullable<z.ZodString>;
702
+ ticketNumber: z.ZodOptional<z.ZodNumber>;
703
+ customFields: z.ZodArray<z.ZodObject<{
704
+ id: z.ZodString;
705
+ createdAt: z.ZodDate;
706
+ updatedAt: z.ZodDate;
707
+ deletedAt: z.ZodNullable<z.ZodDate>;
708
+ textValue: z.ZodNullable<z.ZodString>;
709
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
710
+ numberValue: z.ZodNullable<z.ZodNumber>;
711
+ dateValue: z.ZodNullable<z.ZodDate>;
712
+ attribute: z.ZodObject<Omit<{
713
+ id: z.ZodString;
714
+ createdAt: z.ZodDate;
715
+ updatedAt: z.ZodDate;
716
+ deletedAt: z.ZodNullable<z.ZodDate>;
717
+ systemName: z.ZodString;
718
+ displayName: z.ZodString;
719
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
720
+ position: z.ZodNumber;
721
+ isDefault: z.ZodBoolean;
722
+ isArchived: z.ZodBoolean;
723
+ isRequired: z.ZodBoolean;
724
+ isUnique: z.ZodBoolean;
725
+ options: z.ZodArray<z.ZodObject<{
726
+ position: z.ZodNumber;
727
+ value: z.ZodString;
728
+ label: z.ZodString;
729
+ isDefault: z.ZodBoolean;
730
+ id: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ id: string;
733
+ position: number;
734
+ value: string;
735
+ label: string;
736
+ isDefault: boolean;
737
+ }, {
738
+ id: string;
739
+ position: number;
740
+ value: string;
741
+ label: string;
742
+ isDefault: boolean;
743
+ }>, "many">;
744
+ group: z.ZodObject<{
745
+ id: z.ZodString;
746
+ createdAt: z.ZodDate;
747
+ updatedAt: z.ZodDate;
748
+ deletedAt: z.ZodNullable<z.ZodDate>;
749
+ systemName: z.ZodString;
750
+ displayName: z.ZodString;
751
+ }, "strip", z.ZodTypeAny, {
752
+ id: string;
753
+ createdAt: Date;
754
+ updatedAt: Date;
755
+ deletedAt: Date | null;
756
+ systemName: string;
757
+ displayName: string;
758
+ }, {
759
+ id: string;
760
+ createdAt: Date;
761
+ updatedAt: Date;
762
+ deletedAt: Date | null;
763
+ systemName: string;
764
+ displayName: string;
765
+ }>;
766
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
767
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
768
+ id: string;
769
+ position: number;
770
+ createdAt: Date;
771
+ updatedAt: Date;
772
+ deletedAt: Date | null;
773
+ systemName: string;
774
+ displayName: string;
775
+ isDefault: boolean;
776
+ isArchived: boolean;
777
+ isRequired: boolean;
778
+ isUnique: boolean;
779
+ }, {
780
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
781
+ id: string;
782
+ position: number;
783
+ createdAt: Date;
784
+ updatedAt: Date;
785
+ deletedAt: Date | null;
786
+ systemName: string;
787
+ displayName: string;
788
+ isDefault: boolean;
789
+ isArchived: boolean;
790
+ isRequired: boolean;
791
+ isUnique: boolean;
792
+ }>;
793
+ uploads: z.ZodArray<z.ZodObject<{
794
+ id: z.ZodString;
795
+ createdAt: z.ZodDate;
796
+ updatedAt: z.ZodDate;
797
+ deletedAt: z.ZodNullable<z.ZodDate>;
798
+ bucketName: z.ZodString;
799
+ fileName: z.ZodString;
800
+ fileSize: z.ZodNumber;
801
+ fileKey: z.ZodString;
802
+ fileUrl: z.ZodNullable<z.ZodString>;
803
+ status: z.ZodOptional<z.ZodString>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ id: string;
806
+ createdAt: Date;
807
+ updatedAt: Date;
808
+ deletedAt: Date | null;
809
+ fileName: string;
810
+ fileKey: string;
811
+ bucketName: string;
812
+ fileSize: number;
813
+ fileUrl: string | null;
814
+ status?: string | undefined;
815
+ }, {
816
+ id: string;
817
+ createdAt: Date;
818
+ updatedAt: Date;
819
+ deletedAt: Date | null;
820
+ fileName: string;
821
+ fileKey: string;
822
+ bucketName: string;
823
+ fileSize: number;
824
+ fileUrl: string | null;
825
+ status?: string | undefined;
826
+ }>, "many">;
827
+ }, "strip", z.ZodTypeAny, {
828
+ id: string;
829
+ createdAt: Date;
830
+ updatedAt: Date;
831
+ deletedAt: Date | null;
832
+ attribute: {
833
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
834
+ id: string;
835
+ position: number;
836
+ createdAt: Date;
837
+ updatedAt: Date;
838
+ deletedAt: Date | null;
839
+ systemName: string;
840
+ displayName: string;
841
+ isDefault: boolean;
842
+ isArchived: boolean;
843
+ isRequired: boolean;
844
+ isUnique: boolean;
845
+ };
846
+ textValue: string | null;
847
+ booleanValue: boolean | null;
848
+ numberValue: number | null;
849
+ dateValue: Date | null;
850
+ uploads: {
851
+ id: string;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ deletedAt: Date | null;
855
+ fileName: string;
856
+ fileKey: string;
857
+ bucketName: string;
858
+ fileSize: number;
859
+ fileUrl: string | null;
860
+ status?: string | undefined;
861
+ }[];
862
+ }, {
863
+ id: string;
864
+ createdAt: Date;
865
+ updatedAt: Date;
866
+ deletedAt: Date | null;
867
+ attribute: {
868
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
869
+ id: string;
870
+ position: number;
871
+ createdAt: Date;
872
+ updatedAt: Date;
873
+ deletedAt: Date | null;
874
+ systemName: string;
875
+ displayName: string;
876
+ isDefault: boolean;
877
+ isArchived: boolean;
878
+ isRequired: boolean;
879
+ isUnique: boolean;
880
+ };
881
+ textValue: string | null;
882
+ booleanValue: boolean | null;
883
+ numberValue: number | null;
884
+ dateValue: Date | null;
885
+ uploads: {
886
+ id: string;
887
+ createdAt: Date;
888
+ updatedAt: Date;
889
+ deletedAt: Date | null;
890
+ fileName: string;
891
+ fileKey: string;
892
+ bucketName: string;
893
+ fileSize: number;
894
+ fileUrl: string | null;
895
+ status?: string | undefined;
896
+ }[];
897
+ }>, "many">;
898
+ tags: z.ZodArray<z.ZodObject<{
899
+ id: z.ZodString;
900
+ createdAt: z.ZodDate;
901
+ updatedAt: z.ZodDate;
902
+ deletedAt: z.ZodNullable<z.ZodDate>;
903
+ name: z.ZodString;
904
+ }, "strip", z.ZodTypeAny, {
905
+ id: string;
906
+ name: string;
907
+ createdAt: Date;
908
+ updatedAt: Date;
909
+ deletedAt: Date | null;
910
+ }, {
911
+ id: string;
912
+ name: string;
913
+ createdAt: Date;
914
+ updatedAt: Date;
915
+ deletedAt: Date | null;
916
+ }>, "many">;
917
+ categories: z.ZodArray<z.ZodObject<{
918
+ id: z.ZodString;
919
+ createdAt: z.ZodDate;
920
+ updatedAt: z.ZodDate;
921
+ deletedAt: z.ZodNullable<z.ZodDate>;
922
+ value: z.ZodString;
923
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
924
+ parentId: z.ZodNullable<z.ZodString>;
925
+ childCategoryList: z.ZodArray<z.ZodObject<{
926
+ id: z.ZodString;
927
+ value: z.ZodString;
928
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
929
+ parentId: z.ZodNullable<z.ZodString>;
930
+ childCategoryList: z.ZodArray<z.ZodObject<{
931
+ id: z.ZodString;
932
+ value: z.ZodString;
933
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
934
+ parentId: z.ZodNullable<z.ZodString>;
935
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
936
+ }, "strip", z.ZodTypeAny, {
937
+ id: string;
938
+ value: string;
939
+ level: 2 | 1 | 3;
940
+ parentId: string | null;
941
+ childCategoryList: any[];
942
+ }, {
943
+ id: string;
944
+ value: string;
945
+ level: 2 | 1 | 3;
946
+ parentId: string | null;
947
+ childCategoryList: any[];
948
+ }>, "many">;
949
+ }, "strip", z.ZodTypeAny, {
950
+ id: string;
951
+ value: string;
952
+ level: 2 | 1 | 3;
953
+ parentId: string | null;
954
+ childCategoryList: {
955
+ id: string;
956
+ value: string;
957
+ level: 2 | 1 | 3;
958
+ parentId: string | null;
959
+ childCategoryList: any[];
960
+ }[];
961
+ }, {
962
+ id: string;
963
+ value: string;
964
+ level: 2 | 1 | 3;
965
+ parentId: string | null;
966
+ childCategoryList: {
967
+ id: string;
968
+ value: string;
969
+ level: 2 | 1 | 3;
970
+ parentId: string | null;
971
+ childCategoryList: any[];
972
+ }[];
973
+ }>, "many">;
974
+ }, "strip", z.ZodTypeAny, {
975
+ id: string;
976
+ value: string;
977
+ createdAt: Date;
978
+ updatedAt: Date;
979
+ deletedAt: Date | null;
980
+ level: 2 | 1 | 3;
981
+ parentId: string | null;
982
+ childCategoryList: {
983
+ id: string;
984
+ value: string;
985
+ level: 2 | 1 | 3;
986
+ parentId: string | null;
987
+ childCategoryList: {
988
+ id: string;
989
+ value: string;
990
+ level: 2 | 1 | 3;
991
+ parentId: string | null;
992
+ childCategoryList: any[];
993
+ }[];
994
+ }[];
995
+ }, {
996
+ id: string;
997
+ value: string;
998
+ createdAt: Date;
999
+ updatedAt: Date;
1000
+ deletedAt: Date | null;
1001
+ level: 2 | 1 | 3;
1002
+ parentId: string | null;
1003
+ childCategoryList: {
1004
+ id: string;
1005
+ value: string;
1006
+ level: 2 | 1 | 3;
1007
+ parentId: string | null;
1008
+ childCategoryList: {
1009
+ id: string;
1010
+ value: string;
1011
+ level: 2 | 1 | 3;
1012
+ parentId: string | null;
1013
+ childCategoryList: any[];
1014
+ }[];
1015
+ }[];
1016
+ }>, "many">;
1017
+ contact: z.ZodObject<{
1018
+ id: z.ZodString;
1019
+ createdAt: z.ZodDate;
1020
+ updatedAt: z.ZodDate;
1021
+ deletedAt: z.ZodNullable<z.ZodDate>;
1022
+ name: z.ZodString;
1023
+ address: z.ZodNullable<z.ZodString>;
1024
+ channel: z.ZodNullable<z.ZodString>;
1025
+ notes: z.ZodNullable<z.ZodString>;
1026
+ contactProfile: z.ZodNullable<z.ZodString>;
1027
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1028
+ tags: z.ZodArray<z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ createdAt: z.ZodDate;
1031
+ updatedAt: z.ZodDate;
1032
+ deletedAt: z.ZodNullable<z.ZodDate>;
1033
+ name: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ id: string;
1036
+ name: string;
1037
+ createdAt: Date;
1038
+ updatedAt: Date;
1039
+ deletedAt: Date | null;
1040
+ }, {
1041
+ id: string;
1042
+ name: string;
1043
+ createdAt: Date;
1044
+ updatedAt: Date;
1045
+ deletedAt: Date | null;
1046
+ }>, "many">;
1047
+ company: z.ZodNullable<z.ZodObject<Omit<{
1048
+ id: z.ZodString;
1049
+ createdAt: z.ZodDate;
1050
+ updatedAt: z.ZodDate;
1051
+ deletedAt: z.ZodNullable<z.ZodDate>;
1052
+ name: z.ZodOptional<z.ZodString>;
1053
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1055
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1056
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ id: z.ZodString;
1058
+ createdAt: z.ZodDate;
1059
+ updatedAt: z.ZodDate;
1060
+ deletedAt: z.ZodNullable<z.ZodDate>;
1061
+ textValue: z.ZodNullable<z.ZodString>;
1062
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1063
+ numberValue: z.ZodNullable<z.ZodNumber>;
1064
+ dateValue: z.ZodNullable<z.ZodDate>;
1065
+ attribute: z.ZodObject<Omit<{
1066
+ id: z.ZodString;
1067
+ createdAt: z.ZodDate;
1068
+ updatedAt: z.ZodDate;
1069
+ deletedAt: z.ZodNullable<z.ZodDate>;
1070
+ systemName: z.ZodString;
1071
+ displayName: z.ZodString;
1072
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1073
+ position: z.ZodNumber;
1074
+ isDefault: z.ZodBoolean;
1075
+ isArchived: z.ZodBoolean;
1076
+ isRequired: z.ZodBoolean;
1077
+ isUnique: z.ZodBoolean;
1078
+ options: z.ZodArray<z.ZodObject<{
1079
+ position: z.ZodNumber;
1080
+ value: z.ZodString;
1081
+ label: z.ZodString;
1082
+ isDefault: z.ZodBoolean;
1083
+ id: z.ZodString;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ id: string;
1086
+ position: number;
1087
+ value: string;
1088
+ label: string;
1089
+ isDefault: boolean;
1090
+ }, {
1091
+ id: string;
1092
+ position: number;
1093
+ value: string;
1094
+ label: string;
1095
+ isDefault: boolean;
1096
+ }>, "many">;
1097
+ group: z.ZodObject<{
1098
+ id: z.ZodString;
1099
+ createdAt: z.ZodDate;
1100
+ updatedAt: z.ZodDate;
1101
+ deletedAt: z.ZodNullable<z.ZodDate>;
1102
+ systemName: z.ZodString;
1103
+ displayName: z.ZodString;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ id: string;
1106
+ createdAt: Date;
1107
+ updatedAt: Date;
1108
+ deletedAt: Date | null;
1109
+ systemName: string;
1110
+ displayName: string;
1111
+ }, {
1112
+ id: string;
1113
+ createdAt: Date;
1114
+ updatedAt: Date;
1115
+ deletedAt: Date | null;
1116
+ systemName: string;
1117
+ displayName: string;
1118
+ }>;
1119
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1120
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1121
+ id: string;
1122
+ position: number;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ deletedAt: Date | null;
1126
+ systemName: string;
1127
+ displayName: string;
1128
+ isDefault: boolean;
1129
+ isArchived: boolean;
1130
+ isRequired: boolean;
1131
+ isUnique: boolean;
1132
+ }, {
1133
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1134
+ id: string;
1135
+ position: number;
1136
+ createdAt: Date;
1137
+ updatedAt: Date;
1138
+ deletedAt: Date | null;
1139
+ systemName: string;
1140
+ displayName: string;
1141
+ isDefault: boolean;
1142
+ isArchived: boolean;
1143
+ isRequired: boolean;
1144
+ isUnique: boolean;
1145
+ }>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ id: string;
1148
+ createdAt: Date;
1149
+ updatedAt: Date;
1150
+ deletedAt: Date | null;
1151
+ attribute: {
1152
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1153
+ id: string;
1154
+ position: number;
1155
+ createdAt: Date;
1156
+ updatedAt: Date;
1157
+ deletedAt: Date | null;
1158
+ systemName: string;
1159
+ displayName: string;
1160
+ isDefault: boolean;
1161
+ isArchived: boolean;
1162
+ isRequired: boolean;
1163
+ isUnique: boolean;
1164
+ };
1165
+ textValue: string | null;
1166
+ booleanValue: boolean | null;
1167
+ numberValue: number | null;
1168
+ dateValue: Date | null;
1169
+ }, {
1170
+ id: string;
1171
+ createdAt: Date;
1172
+ updatedAt: Date;
1173
+ deletedAt: Date | null;
1174
+ attribute: {
1175
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1176
+ id: string;
1177
+ position: number;
1178
+ createdAt: Date;
1179
+ updatedAt: Date;
1180
+ deletedAt: Date | null;
1181
+ systemName: string;
1182
+ displayName: string;
1183
+ isDefault: boolean;
1184
+ isArchived: boolean;
1185
+ isRequired: boolean;
1186
+ isUnique: boolean;
1187
+ };
1188
+ textValue: string | null;
1189
+ booleanValue: boolean | null;
1190
+ numberValue: number | null;
1191
+ dateValue: Date | null;
1192
+ }>, "many">>;
1193
+ }, "customFields">, "strip", z.ZodTypeAny, {
1194
+ id: string;
1195
+ createdAt: Date;
1196
+ updatedAt: Date;
1197
+ deletedAt: Date | null;
1198
+ address?: string | null | undefined;
1199
+ name?: string | undefined;
1200
+ phone?: string | null | undefined;
1201
+ industry?: string | null | undefined;
1202
+ }, {
1203
+ id: string;
1204
+ createdAt: Date;
1205
+ updatedAt: Date;
1206
+ deletedAt: Date | null;
1207
+ address?: string | null | undefined;
1208
+ name?: string | undefined;
1209
+ phone?: string | null | undefined;
1210
+ industry?: string | null | undefined;
1211
+ }>>;
1212
+ customFields: z.ZodArray<z.ZodObject<{
1213
+ id: z.ZodString;
1214
+ createdAt: z.ZodDate;
1215
+ updatedAt: z.ZodDate;
1216
+ deletedAt: z.ZodNullable<z.ZodDate>;
1217
+ textValue: z.ZodNullable<z.ZodString>;
1218
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1219
+ numberValue: z.ZodNullable<z.ZodNumber>;
1220
+ dateValue: z.ZodNullable<z.ZodDate>;
1221
+ attribute: z.ZodObject<Omit<{
1222
+ id: z.ZodString;
1223
+ createdAt: z.ZodDate;
1224
+ updatedAt: z.ZodDate;
1225
+ deletedAt: z.ZodNullable<z.ZodDate>;
1226
+ systemName: z.ZodString;
1227
+ displayName: z.ZodString;
1228
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1229
+ position: z.ZodNumber;
1230
+ isDefault: z.ZodBoolean;
1231
+ isArchived: z.ZodBoolean;
1232
+ isRequired: z.ZodBoolean;
1233
+ isUnique: z.ZodBoolean;
1234
+ options: z.ZodArray<z.ZodObject<{
1235
+ position: z.ZodNumber;
1236
+ value: z.ZodString;
1237
+ label: z.ZodString;
1238
+ isDefault: z.ZodBoolean;
1239
+ id: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ id: string;
1242
+ position: number;
1243
+ value: string;
1244
+ label: string;
1245
+ isDefault: boolean;
1246
+ }, {
1247
+ id: string;
1248
+ position: number;
1249
+ value: string;
1250
+ label: string;
1251
+ isDefault: boolean;
1252
+ }>, "many">;
1253
+ group: z.ZodObject<{
1254
+ id: z.ZodString;
1255
+ createdAt: z.ZodDate;
1256
+ updatedAt: z.ZodDate;
1257
+ deletedAt: z.ZodNullable<z.ZodDate>;
1258
+ systemName: z.ZodString;
1259
+ displayName: z.ZodString;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ id: string;
1262
+ createdAt: Date;
1263
+ updatedAt: Date;
1264
+ deletedAt: Date | null;
1265
+ systemName: string;
1266
+ displayName: string;
1267
+ }, {
1268
+ id: string;
1269
+ createdAt: Date;
1270
+ updatedAt: Date;
1271
+ deletedAt: Date | null;
1272
+ systemName: string;
1273
+ displayName: string;
1274
+ }>;
1275
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1276
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1277
+ id: string;
1278
+ position: number;
1279
+ createdAt: Date;
1280
+ updatedAt: Date;
1281
+ deletedAt: Date | null;
1282
+ systemName: string;
1283
+ displayName: string;
1284
+ isDefault: boolean;
1285
+ isArchived: boolean;
1286
+ isRequired: boolean;
1287
+ isUnique: boolean;
1288
+ }, {
1289
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1290
+ id: string;
1291
+ position: number;
1292
+ createdAt: Date;
1293
+ updatedAt: Date;
1294
+ deletedAt: Date | null;
1295
+ systemName: string;
1296
+ displayName: string;
1297
+ isDefault: boolean;
1298
+ isArchived: boolean;
1299
+ isRequired: boolean;
1300
+ isUnique: boolean;
1301
+ }>;
1302
+ uploads: z.ZodArray<z.ZodObject<{
1303
+ id: z.ZodString;
1304
+ createdAt: z.ZodDate;
1305
+ updatedAt: z.ZodDate;
1306
+ deletedAt: z.ZodNullable<z.ZodDate>;
1307
+ bucketName: z.ZodString;
1308
+ fileName: z.ZodString;
1309
+ fileSize: z.ZodNumber;
1310
+ fileKey: z.ZodString;
1311
+ fileUrl: z.ZodNullable<z.ZodString>;
1312
+ status: z.ZodOptional<z.ZodString>;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ id: string;
1315
+ createdAt: Date;
1316
+ updatedAt: Date;
1317
+ deletedAt: Date | null;
1318
+ fileName: string;
1319
+ fileKey: string;
1320
+ bucketName: string;
1321
+ fileSize: number;
1322
+ fileUrl: string | null;
1323
+ status?: string | undefined;
1324
+ }, {
1325
+ id: string;
1326
+ createdAt: Date;
1327
+ updatedAt: Date;
1328
+ deletedAt: Date | null;
1329
+ fileName: string;
1330
+ fileKey: string;
1331
+ bucketName: string;
1332
+ fileSize: number;
1333
+ fileUrl: string | null;
1334
+ status?: string | undefined;
1335
+ }>, "many">;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ id: string;
1338
+ createdAt: Date;
1339
+ updatedAt: Date;
1340
+ deletedAt: Date | null;
1341
+ attribute: {
1342
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1343
+ id: string;
1344
+ position: number;
1345
+ createdAt: Date;
1346
+ updatedAt: Date;
1347
+ deletedAt: Date | null;
1348
+ systemName: string;
1349
+ displayName: string;
1350
+ isDefault: boolean;
1351
+ isArchived: boolean;
1352
+ isRequired: boolean;
1353
+ isUnique: boolean;
1354
+ };
1355
+ textValue: string | null;
1356
+ booleanValue: boolean | null;
1357
+ numberValue: number | null;
1358
+ dateValue: Date | null;
1359
+ uploads: {
1360
+ id: string;
1361
+ createdAt: Date;
1362
+ updatedAt: Date;
1363
+ deletedAt: Date | null;
1364
+ fileName: string;
1365
+ fileKey: string;
1366
+ bucketName: string;
1367
+ fileSize: number;
1368
+ fileUrl: string | null;
1369
+ status?: string | undefined;
1370
+ }[];
1371
+ }, {
1372
+ id: string;
1373
+ createdAt: Date;
1374
+ updatedAt: Date;
1375
+ deletedAt: Date | null;
1376
+ attribute: {
1377
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1378
+ id: string;
1379
+ position: number;
1380
+ createdAt: Date;
1381
+ updatedAt: Date;
1382
+ deletedAt: Date | null;
1383
+ systemName: string;
1384
+ displayName: string;
1385
+ isDefault: boolean;
1386
+ isArchived: boolean;
1387
+ isRequired: boolean;
1388
+ isUnique: boolean;
1389
+ };
1390
+ textValue: string | null;
1391
+ booleanValue: boolean | null;
1392
+ numberValue: number | null;
1393
+ dateValue: Date | null;
1394
+ uploads: {
1395
+ id: string;
1396
+ createdAt: Date;
1397
+ updatedAt: Date;
1398
+ deletedAt: Date | null;
1399
+ fileName: string;
1400
+ fileKey: string;
1401
+ bucketName: string;
1402
+ fileSize: number;
1403
+ fileUrl: string | null;
1404
+ status?: string | undefined;
1405
+ }[];
1406
+ }>, "many">;
1407
+ contactEmails: z.ZodArray<z.ZodObject<{
1408
+ id: z.ZodString;
1409
+ createdAt: z.ZodDate;
1410
+ updatedAt: z.ZodDate;
1411
+ deletedAt: z.ZodNullable<z.ZodDate>;
1412
+ email: z.ZodString;
1413
+ isPrimary: z.ZodBoolean;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ id: string;
1416
+ isPrimary: boolean;
1417
+ email: string;
1418
+ createdAt: Date;
1419
+ updatedAt: Date;
1420
+ deletedAt: Date | null;
1421
+ }, {
1422
+ id: string;
1423
+ isPrimary: boolean;
1424
+ email: string;
1425
+ createdAt: Date;
1426
+ updatedAt: Date;
1427
+ deletedAt: Date | null;
1428
+ }>, "many">;
1429
+ contactPhones: z.ZodArray<z.ZodObject<{
1430
+ id: z.ZodString;
1431
+ createdAt: z.ZodDate;
1432
+ updatedAt: z.ZodDate;
1433
+ deletedAt: z.ZodNullable<z.ZodDate>;
1434
+ phone: z.ZodString;
1435
+ isPrimary: z.ZodBoolean;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ id: string;
1438
+ isPrimary: boolean;
1439
+ createdAt: Date;
1440
+ updatedAt: Date;
1441
+ deletedAt: Date | null;
1442
+ phone: string;
1443
+ }, {
1444
+ id: string;
1445
+ isPrimary: boolean;
1446
+ createdAt: Date;
1447
+ updatedAt: Date;
1448
+ deletedAt: Date | null;
1449
+ phone: string;
1450
+ }>, "many">;
1451
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1452
+ id: z.ZodString;
1453
+ createdAt: z.ZodDate;
1454
+ updatedAt: z.ZodDate;
1455
+ deletedAt: z.ZodNullable<z.ZodDate>;
1456
+ entityId: z.ZodString;
1457
+ description: z.ZodString;
1458
+ entityType: z.ZodObject<{
1459
+ id: z.ZodString;
1460
+ createdAt: z.ZodDate;
1461
+ updatedAt: z.ZodDate;
1462
+ deletedAt: z.ZodNullable<z.ZodDate>;
1463
+ entity: z.ZodString;
1464
+ description: z.ZodNullable<z.ZodString>;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ id: string;
1467
+ description: string | null;
1468
+ createdAt: Date;
1469
+ updatedAt: Date;
1470
+ deletedAt: Date | null;
1471
+ entity: string;
1472
+ }, {
1473
+ id: string;
1474
+ description: string | null;
1475
+ createdAt: Date;
1476
+ updatedAt: Date;
1477
+ deletedAt: Date | null;
1478
+ entity: string;
1479
+ }>;
1480
+ }, "strip", z.ZodTypeAny, {
1481
+ id: string;
1482
+ description: string;
1483
+ createdAt: Date;
1484
+ updatedAt: Date;
1485
+ deletedAt: Date | null;
1486
+ entityId: string;
1487
+ entityType: {
1488
+ id: string;
1489
+ description: string | null;
1490
+ createdAt: Date;
1491
+ updatedAt: Date;
1492
+ deletedAt: Date | null;
1493
+ entity: string;
1494
+ };
1495
+ }, {
1496
+ id: string;
1497
+ description: string;
1498
+ createdAt: Date;
1499
+ updatedAt: Date;
1500
+ deletedAt: Date | null;
1501
+ entityId: string;
1502
+ entityType: {
1503
+ id: string;
1504
+ description: string | null;
1505
+ createdAt: Date;
1506
+ updatedAt: Date;
1507
+ deletedAt: Date | null;
1508
+ entity: string;
1509
+ };
1510
+ }>, "many">>;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ id: string;
1513
+ channel: string | null;
1514
+ address: string | null;
1515
+ name: string;
1516
+ createdAt: Date;
1517
+ updatedAt: Date;
1518
+ deletedAt: Date | null;
1519
+ customFields: {
1520
+ id: string;
1521
+ createdAt: Date;
1522
+ updatedAt: Date;
1523
+ deletedAt: Date | null;
1524
+ attribute: {
1525
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1526
+ id: string;
1527
+ position: number;
1528
+ createdAt: Date;
1529
+ updatedAt: Date;
1530
+ deletedAt: Date | null;
1531
+ systemName: string;
1532
+ displayName: string;
1533
+ isDefault: boolean;
1534
+ isArchived: boolean;
1535
+ isRequired: boolean;
1536
+ isUnique: boolean;
1537
+ };
1538
+ textValue: string | null;
1539
+ booleanValue: boolean | null;
1540
+ numberValue: number | null;
1541
+ dateValue: Date | null;
1542
+ uploads: {
1543
+ id: string;
1544
+ createdAt: Date;
1545
+ updatedAt: Date;
1546
+ deletedAt: Date | null;
1547
+ fileName: string;
1548
+ fileKey: string;
1549
+ bucketName: string;
1550
+ fileSize: number;
1551
+ fileUrl: string | null;
1552
+ status?: string | undefined;
1553
+ }[];
1554
+ }[];
1555
+ company: {
1556
+ id: string;
1557
+ createdAt: Date;
1558
+ updatedAt: Date;
1559
+ deletedAt: Date | null;
1560
+ address?: string | null | undefined;
1561
+ name?: string | undefined;
1562
+ phone?: string | null | undefined;
1563
+ industry?: string | null | undefined;
1564
+ } | null;
1565
+ notes: string | null;
1566
+ contactProfile: string | null;
1567
+ socialProfileUrl: string | null;
1568
+ tags: {
1569
+ id: string;
1570
+ name: string;
1571
+ createdAt: Date;
1572
+ updatedAt: Date;
1573
+ deletedAt: Date | null;
1574
+ }[];
1575
+ contactEmails: {
1576
+ id: string;
1577
+ isPrimary: boolean;
1578
+ email: string;
1579
+ createdAt: Date;
1580
+ updatedAt: Date;
1581
+ deletedAt: Date | null;
1582
+ }[];
1583
+ contactPhones: {
1584
+ id: string;
1585
+ isPrimary: boolean;
1586
+ createdAt: Date;
1587
+ updatedAt: Date;
1588
+ deletedAt: Date | null;
1589
+ phone: string;
1590
+ }[];
1591
+ activityLogs?: {
1592
+ id: string;
1593
+ description: string;
1594
+ createdAt: Date;
1595
+ updatedAt: Date;
1596
+ deletedAt: Date | null;
1597
+ entityId: string;
1598
+ entityType: {
1599
+ id: string;
1600
+ description: string | null;
1601
+ createdAt: Date;
1602
+ updatedAt: Date;
1603
+ deletedAt: Date | null;
1604
+ entity: string;
1605
+ };
1606
+ }[] | undefined;
1607
+ }, {
1608
+ id: string;
1609
+ channel: string | null;
1610
+ address: string | null;
1611
+ name: string;
1612
+ createdAt: Date;
1613
+ updatedAt: Date;
1614
+ deletedAt: Date | null;
1615
+ customFields: {
1616
+ id: string;
1617
+ createdAt: Date;
1618
+ updatedAt: Date;
1619
+ deletedAt: Date | null;
1620
+ attribute: {
1621
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1622
+ id: string;
1623
+ position: number;
1624
+ createdAt: Date;
1625
+ updatedAt: Date;
1626
+ deletedAt: Date | null;
1627
+ systemName: string;
1628
+ displayName: string;
1629
+ isDefault: boolean;
1630
+ isArchived: boolean;
1631
+ isRequired: boolean;
1632
+ isUnique: boolean;
1633
+ };
1634
+ textValue: string | null;
1635
+ booleanValue: boolean | null;
1636
+ numberValue: number | null;
1637
+ dateValue: Date | null;
1638
+ uploads: {
1639
+ id: string;
1640
+ createdAt: Date;
1641
+ updatedAt: Date;
1642
+ deletedAt: Date | null;
1643
+ fileName: string;
1644
+ fileKey: string;
1645
+ bucketName: string;
1646
+ fileSize: number;
1647
+ fileUrl: string | null;
1648
+ status?: string | undefined;
1649
+ }[];
1650
+ }[];
1651
+ company: {
1652
+ id: string;
1653
+ createdAt: Date;
1654
+ updatedAt: Date;
1655
+ deletedAt: Date | null;
1656
+ address?: string | null | undefined;
1657
+ name?: string | undefined;
1658
+ phone?: string | null | undefined;
1659
+ industry?: string | null | undefined;
1660
+ } | null;
1661
+ notes: string | null;
1662
+ contactProfile: string | null;
1663
+ socialProfileUrl: string | null;
1664
+ tags: {
1665
+ id: string;
1666
+ name: string;
1667
+ createdAt: Date;
1668
+ updatedAt: Date;
1669
+ deletedAt: Date | null;
1670
+ }[];
1671
+ contactEmails: {
1672
+ id: string;
1673
+ isPrimary: boolean;
1674
+ email: string;
1675
+ createdAt: Date;
1676
+ updatedAt: Date;
1677
+ deletedAt: Date | null;
1678
+ }[];
1679
+ contactPhones: {
1680
+ id: string;
1681
+ isPrimary: boolean;
1682
+ createdAt: Date;
1683
+ updatedAt: Date;
1684
+ deletedAt: Date | null;
1685
+ phone: string;
1686
+ }[];
1687
+ activityLogs?: {
1688
+ id: string;
1689
+ description: string;
1690
+ createdAt: Date;
1691
+ updatedAt: Date;
1692
+ deletedAt: Date | null;
1693
+ entityId: string;
1694
+ entityType: {
1695
+ id: string;
1696
+ description: string | null;
1697
+ createdAt: Date;
1698
+ updatedAt: Date;
1699
+ deletedAt: Date | null;
1700
+ entity: string;
1701
+ };
1702
+ }[] | undefined;
1703
+ }>;
1704
+ activityLogs: z.ZodArray<z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ createdAt: z.ZodDate;
1707
+ updatedAt: z.ZodDate;
1708
+ deletedAt: z.ZodNullable<z.ZodDate>;
1709
+ actor: z.ZodObject<{
1710
+ id: z.ZodString;
1711
+ createdAt: z.ZodDate;
1712
+ updatedAt: z.ZodDate;
1713
+ deletedAt: z.ZodNullable<z.ZodDate>;
1714
+ name: z.ZodString;
1715
+ email: z.ZodString;
1716
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1717
+ password: z.ZodString;
1718
+ address: z.ZodNullable<z.ZodString>;
1719
+ phone: z.ZodNullable<z.ZodString>;
1720
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1721
+ roles: z.ZodArray<z.ZodObject<{
1722
+ id: z.ZodString;
1723
+ createdAt: z.ZodDate;
1724
+ updatedAt: z.ZodDate;
1725
+ deletedAt: z.ZodNullable<z.ZodDate>;
1726
+ systemName: z.ZodString;
1727
+ displayName: z.ZodString;
1728
+ description: z.ZodNullable<z.ZodString>;
1729
+ permissions: z.ZodArray<z.ZodObject<{
1730
+ id: z.ZodString;
1731
+ createdAt: z.ZodDate;
1732
+ updatedAt: z.ZodDate;
1733
+ deletedAt: z.ZodNullable<z.ZodDate>;
1734
+ systemName: z.ZodString;
1735
+ displayName: z.ZodString;
1736
+ description: z.ZodNullable<z.ZodString>;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ id: string;
1739
+ description: string | null;
1740
+ createdAt: Date;
1741
+ updatedAt: Date;
1742
+ deletedAt: Date | null;
1743
+ systemName: string;
1744
+ displayName: string;
1745
+ }, {
1746
+ id: string;
1747
+ description: string | null;
1748
+ createdAt: Date;
1749
+ updatedAt: Date;
1750
+ deletedAt: Date | null;
1751
+ systemName: string;
1752
+ displayName: string;
1753
+ }>, "many">;
1754
+ }, "strip", z.ZodTypeAny, {
1755
+ id: string;
1756
+ description: string | null;
1757
+ createdAt: Date;
1758
+ updatedAt: Date;
1759
+ deletedAt: Date | null;
1760
+ systemName: string;
1761
+ displayName: string;
1762
+ permissions: {
1763
+ id: string;
1764
+ description: string | null;
1765
+ createdAt: Date;
1766
+ updatedAt: Date;
1767
+ deletedAt: Date | null;
1768
+ systemName: string;
1769
+ displayName: string;
1770
+ }[];
1771
+ }, {
1772
+ id: string;
1773
+ description: string | null;
1774
+ createdAt: Date;
1775
+ updatedAt: Date;
1776
+ deletedAt: Date | null;
1777
+ systemName: string;
1778
+ displayName: string;
1779
+ permissions: {
1780
+ id: string;
1781
+ description: string | null;
1782
+ createdAt: Date;
1783
+ updatedAt: Date;
1784
+ deletedAt: Date | null;
1785
+ systemName: string;
1786
+ displayName: string;
1787
+ }[];
1788
+ }>, "many">;
1789
+ extension: z.ZodObject<{
1790
+ id: z.ZodString;
1791
+ createdAt: z.ZodDate;
1792
+ updatedAt: z.ZodDate;
1793
+ deletedAt: z.ZodNullable<z.ZodDate>;
1794
+ userId: z.ZodNullable<z.ZodString>;
1795
+ sipServerUrl: z.ZodString;
1796
+ sipUserName: z.ZodString;
1797
+ webphoneLoginUser: z.ZodString;
1798
+ extensionId: z.ZodNullable<z.ZodString>;
1799
+ extensionName: z.ZodString;
1800
+ telephonySignature: z.ZodNullable<z.ZodString>;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ id: string;
1803
+ createdAt: Date;
1804
+ updatedAt: Date;
1805
+ deletedAt: Date | null;
1806
+ userId: string | null;
1807
+ sipServerUrl: string;
1808
+ sipUserName: string;
1809
+ webphoneLoginUser: string;
1810
+ extensionId: string | null;
1811
+ extensionName: string;
1812
+ telephonySignature: string | null;
1813
+ }, {
1814
+ id: string;
1815
+ createdAt: Date;
1816
+ updatedAt: Date;
1817
+ deletedAt: Date | null;
1818
+ userId: string | null;
1819
+ sipServerUrl: string;
1820
+ sipUserName: string;
1821
+ webphoneLoginUser: string;
1822
+ extensionId: string | null;
1823
+ extensionName: string;
1824
+ telephonySignature: string | null;
1825
+ }>;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ id: string;
1828
+ address: string | null;
1829
+ name: string;
1830
+ email: string;
1831
+ createdAt: Date;
1832
+ updatedAt: Date;
1833
+ deletedAt: Date | null;
1834
+ emailVerifiedAt: Date | null;
1835
+ password: string;
1836
+ phone: string | null;
1837
+ notificationCount: number | null;
1838
+ roles: {
1839
+ id: string;
1840
+ description: string | null;
1841
+ createdAt: Date;
1842
+ updatedAt: Date;
1843
+ deletedAt: Date | null;
1844
+ systemName: string;
1845
+ displayName: string;
1846
+ permissions: {
1847
+ id: string;
1848
+ description: string | null;
1849
+ createdAt: Date;
1850
+ updatedAt: Date;
1851
+ deletedAt: Date | null;
1852
+ systemName: string;
1853
+ displayName: string;
1854
+ }[];
1855
+ }[];
1856
+ extension: {
1857
+ id: string;
1858
+ createdAt: Date;
1859
+ updatedAt: Date;
1860
+ deletedAt: Date | null;
1861
+ userId: string | null;
1862
+ sipServerUrl: string;
1863
+ sipUserName: string;
1864
+ webphoneLoginUser: string;
1865
+ extensionId: string | null;
1866
+ extensionName: string;
1867
+ telephonySignature: string | null;
1868
+ };
1869
+ }, {
1870
+ id: string;
1871
+ address: string | null;
1872
+ name: string;
1873
+ email: string;
1874
+ createdAt: Date;
1875
+ updatedAt: Date;
1876
+ deletedAt: Date | null;
1877
+ emailVerifiedAt: Date | null;
1878
+ password: string;
1879
+ phone: string | null;
1880
+ notificationCount: number | null;
1881
+ roles: {
1882
+ id: string;
1883
+ description: string | null;
1884
+ createdAt: Date;
1885
+ updatedAt: Date;
1886
+ deletedAt: Date | null;
1887
+ systemName: string;
1888
+ displayName: string;
1889
+ permissions: {
1890
+ id: string;
1891
+ description: string | null;
1892
+ createdAt: Date;
1893
+ updatedAt: Date;
1894
+ deletedAt: Date | null;
1895
+ systemName: string;
1896
+ displayName: string;
1897
+ }[];
1898
+ }[];
1899
+ extension: {
1900
+ id: string;
1901
+ createdAt: Date;
1902
+ updatedAt: Date;
1903
+ deletedAt: Date | null;
1904
+ userId: string | null;
1905
+ sipServerUrl: string;
1906
+ sipUserName: string;
1907
+ webphoneLoginUser: string;
1908
+ extensionId: string | null;
1909
+ extensionName: string;
1910
+ telephonySignature: string | null;
1911
+ };
1912
+ }>;
1913
+ entityId: z.ZodString;
1914
+ description: z.ZodString;
1915
+ entityType: z.ZodObject<{
1916
+ id: z.ZodString;
1917
+ createdAt: z.ZodDate;
1918
+ updatedAt: z.ZodDate;
1919
+ deletedAt: z.ZodNullable<z.ZodDate>;
1920
+ entity: z.ZodString;
1921
+ description: z.ZodString;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ id: string;
1924
+ description: string;
1925
+ createdAt: Date;
1926
+ updatedAt: Date;
1927
+ deletedAt: Date | null;
1928
+ entity: string;
1929
+ }, {
1930
+ id: string;
1931
+ description: string;
1932
+ createdAt: Date;
1933
+ updatedAt: Date;
1934
+ deletedAt: Date | null;
1935
+ entity: string;
1936
+ }>;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ id: string;
1939
+ description: string;
1940
+ createdAt: Date;
1941
+ updatedAt: Date;
1942
+ deletedAt: Date | null;
1943
+ actor: {
1944
+ id: string;
1945
+ address: string | null;
1946
+ name: string;
1947
+ email: string;
1948
+ createdAt: Date;
1949
+ updatedAt: Date;
1950
+ deletedAt: Date | null;
1951
+ emailVerifiedAt: Date | null;
1952
+ password: string;
1953
+ phone: string | null;
1954
+ notificationCount: number | null;
1955
+ roles: {
1956
+ id: string;
1957
+ description: string | null;
1958
+ createdAt: Date;
1959
+ updatedAt: Date;
1960
+ deletedAt: Date | null;
1961
+ systemName: string;
1962
+ displayName: string;
1963
+ permissions: {
1964
+ id: string;
1965
+ description: string | null;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ systemName: string;
1970
+ displayName: string;
1971
+ }[];
1972
+ }[];
1973
+ extension: {
1974
+ id: string;
1975
+ createdAt: Date;
1976
+ updatedAt: Date;
1977
+ deletedAt: Date | null;
1978
+ userId: string | null;
1979
+ sipServerUrl: string;
1980
+ sipUserName: string;
1981
+ webphoneLoginUser: string;
1982
+ extensionId: string | null;
1983
+ extensionName: string;
1984
+ telephonySignature: string | null;
1985
+ };
1986
+ };
1987
+ entityId: string;
1988
+ entityType: {
1989
+ id: string;
1990
+ description: string;
1991
+ createdAt: Date;
1992
+ updatedAt: Date;
1993
+ deletedAt: Date | null;
1994
+ entity: string;
1995
+ };
1996
+ }, {
1997
+ id: string;
1998
+ description: string;
1999
+ createdAt: Date;
2000
+ updatedAt: Date;
2001
+ deletedAt: Date | null;
2002
+ actor: {
2003
+ id: string;
2004
+ address: string | null;
2005
+ name: string;
2006
+ email: string;
2007
+ createdAt: Date;
2008
+ updatedAt: Date;
2009
+ deletedAt: Date | null;
2010
+ emailVerifiedAt: Date | null;
2011
+ password: string;
2012
+ phone: string | null;
2013
+ notificationCount: number | null;
2014
+ roles: {
2015
+ id: string;
2016
+ description: string | null;
2017
+ createdAt: Date;
2018
+ updatedAt: Date;
2019
+ deletedAt: Date | null;
2020
+ systemName: string;
2021
+ displayName: string;
2022
+ permissions: {
2023
+ id: string;
2024
+ description: string | null;
2025
+ createdAt: Date;
2026
+ updatedAt: Date;
2027
+ deletedAt: Date | null;
2028
+ systemName: string;
2029
+ displayName: string;
2030
+ }[];
2031
+ }[];
2032
+ extension: {
2033
+ id: string;
2034
+ createdAt: Date;
2035
+ updatedAt: Date;
2036
+ deletedAt: Date | null;
2037
+ userId: string | null;
2038
+ sipServerUrl: string;
2039
+ sipUserName: string;
2040
+ webphoneLoginUser: string;
2041
+ extensionId: string | null;
2042
+ extensionName: string;
2043
+ telephonySignature: string | null;
2044
+ };
2045
+ };
2046
+ entityId: string;
2047
+ entityType: {
2048
+ id: string;
2049
+ description: string;
2050
+ createdAt: Date;
2051
+ updatedAt: Date;
2052
+ deletedAt: Date | null;
2053
+ entity: string;
2054
+ };
2055
+ }>, "many">;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ type: string;
2058
+ id: string;
2059
+ channel: string;
2060
+ priority: string;
2061
+ title: string;
2062
+ description: string | null;
2063
+ status: string;
2064
+ createdAt: Date;
2065
+ updatedAt: Date;
2066
+ deletedAt: Date | null;
2067
+ categories: {
2068
+ id: string;
2069
+ value: string;
2070
+ createdAt: Date;
2071
+ updatedAt: Date;
2072
+ deletedAt: Date | null;
2073
+ level: 2 | 1 | 3;
2074
+ parentId: string | null;
2075
+ childCategoryList: {
2076
+ id: string;
2077
+ value: string;
2078
+ level: 2 | 1 | 3;
2079
+ parentId: string | null;
2080
+ childCategoryList: {
2081
+ id: string;
2082
+ value: string;
2083
+ level: 2 | 1 | 3;
2084
+ parentId: string | null;
2085
+ childCategoryList: any[];
2086
+ }[];
2087
+ }[];
2088
+ }[];
2089
+ contact: {
2090
+ id: string;
2091
+ channel: string | null;
2092
+ address: string | null;
2093
+ name: string;
2094
+ createdAt: Date;
2095
+ updatedAt: Date;
2096
+ deletedAt: Date | null;
2097
+ customFields: {
2098
+ id: string;
2099
+ createdAt: Date;
2100
+ updatedAt: Date;
2101
+ deletedAt: Date | null;
2102
+ attribute: {
2103
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2104
+ id: string;
2105
+ position: number;
2106
+ createdAt: Date;
2107
+ updatedAt: Date;
2108
+ deletedAt: Date | null;
2109
+ systemName: string;
2110
+ displayName: string;
2111
+ isDefault: boolean;
2112
+ isArchived: boolean;
2113
+ isRequired: boolean;
2114
+ isUnique: boolean;
2115
+ };
2116
+ textValue: string | null;
2117
+ booleanValue: boolean | null;
2118
+ numberValue: number | null;
2119
+ dateValue: Date | null;
2120
+ uploads: {
2121
+ id: string;
2122
+ createdAt: Date;
2123
+ updatedAt: Date;
2124
+ deletedAt: Date | null;
2125
+ fileName: string;
2126
+ fileKey: string;
2127
+ bucketName: string;
2128
+ fileSize: number;
2129
+ fileUrl: string | null;
2130
+ status?: string | undefined;
2131
+ }[];
2132
+ }[];
2133
+ company: {
2134
+ id: string;
2135
+ createdAt: Date;
2136
+ updatedAt: Date;
2137
+ deletedAt: Date | null;
2138
+ address?: string | null | undefined;
2139
+ name?: string | undefined;
2140
+ phone?: string | null | undefined;
2141
+ industry?: string | null | undefined;
2142
+ } | null;
2143
+ notes: string | null;
2144
+ contactProfile: string | null;
2145
+ socialProfileUrl: string | null;
2146
+ tags: {
2147
+ id: string;
2148
+ name: string;
2149
+ createdAt: Date;
2150
+ updatedAt: Date;
2151
+ deletedAt: Date | null;
2152
+ }[];
2153
+ contactEmails: {
2154
+ id: string;
2155
+ isPrimary: boolean;
2156
+ email: string;
2157
+ createdAt: Date;
2158
+ updatedAt: Date;
2159
+ deletedAt: Date | null;
2160
+ }[];
2161
+ contactPhones: {
2162
+ id: string;
2163
+ isPrimary: boolean;
2164
+ createdAt: Date;
2165
+ updatedAt: Date;
2166
+ deletedAt: Date | null;
2167
+ phone: string;
2168
+ }[];
2169
+ activityLogs?: {
2170
+ id: string;
2171
+ description: string;
2172
+ createdAt: Date;
2173
+ updatedAt: Date;
2174
+ deletedAt: Date | null;
2175
+ entityId: string;
2176
+ entityType: {
2177
+ id: string;
2178
+ description: string | null;
2179
+ createdAt: Date;
2180
+ updatedAt: Date;
2181
+ deletedAt: Date | null;
2182
+ entity: string;
2183
+ };
2184
+ }[] | undefined;
2185
+ };
2186
+ customFields: {
2187
+ id: string;
2188
+ createdAt: Date;
2189
+ updatedAt: Date;
2190
+ deletedAt: Date | null;
2191
+ attribute: {
2192
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2193
+ id: string;
2194
+ position: number;
2195
+ createdAt: Date;
2196
+ updatedAt: Date;
2197
+ deletedAt: Date | null;
2198
+ systemName: string;
2199
+ displayName: string;
2200
+ isDefault: boolean;
2201
+ isArchived: boolean;
2202
+ isRequired: boolean;
2203
+ isUnique: boolean;
2204
+ };
2205
+ textValue: string | null;
2206
+ booleanValue: boolean | null;
2207
+ numberValue: number | null;
2208
+ dateValue: Date | null;
2209
+ uploads: {
2210
+ id: string;
2211
+ createdAt: Date;
2212
+ updatedAt: Date;
2213
+ deletedAt: Date | null;
2214
+ fileName: string;
2215
+ fileKey: string;
2216
+ bucketName: string;
2217
+ fileSize: number;
2218
+ fileUrl: string | null;
2219
+ status?: string | undefined;
2220
+ }[];
2221
+ }[];
2222
+ tags: {
2223
+ id: string;
2224
+ name: string;
2225
+ createdAt: Date;
2226
+ updatedAt: Date;
2227
+ deletedAt: Date | null;
2228
+ }[];
2229
+ activityLogs: {
2230
+ id: string;
2231
+ description: string;
2232
+ createdAt: Date;
2233
+ updatedAt: Date;
2234
+ deletedAt: Date | null;
2235
+ actor: {
2236
+ id: string;
2237
+ address: string | null;
2238
+ name: string;
2239
+ email: string;
2240
+ createdAt: Date;
2241
+ updatedAt: Date;
2242
+ deletedAt: Date | null;
2243
+ emailVerifiedAt: Date | null;
2244
+ password: string;
2245
+ phone: string | null;
2246
+ notificationCount: number | null;
2247
+ roles: {
2248
+ id: string;
2249
+ description: string | null;
2250
+ createdAt: Date;
2251
+ updatedAt: Date;
2252
+ deletedAt: Date | null;
2253
+ systemName: string;
2254
+ displayName: string;
2255
+ permissions: {
2256
+ id: string;
2257
+ description: string | null;
2258
+ createdAt: Date;
2259
+ updatedAt: Date;
2260
+ deletedAt: Date | null;
2261
+ systemName: string;
2262
+ displayName: string;
2263
+ }[];
2264
+ }[];
2265
+ extension: {
2266
+ id: string;
2267
+ createdAt: Date;
2268
+ updatedAt: Date;
2269
+ deletedAt: Date | null;
2270
+ userId: string | null;
2271
+ sipServerUrl: string;
2272
+ sipUserName: string;
2273
+ webphoneLoginUser: string;
2274
+ extensionId: string | null;
2275
+ extensionName: string;
2276
+ telephonySignature: string | null;
2277
+ };
2278
+ };
2279
+ entityId: string;
2280
+ entityType: {
2281
+ id: string;
2282
+ description: string;
2283
+ createdAt: Date;
2284
+ updatedAt: Date;
2285
+ deletedAt: Date | null;
2286
+ entity: string;
2287
+ };
2288
+ }[];
2289
+ contactId: string;
2290
+ assigneeId: string;
2291
+ creatorId: string;
2292
+ reasonToAssign: string | null;
2293
+ creator?: {
2294
+ id: string;
2295
+ address: string | null;
2296
+ name: string;
2297
+ email: string;
2298
+ createdAt: Date;
2299
+ updatedAt: Date;
2300
+ deletedAt: Date | null;
2301
+ emailVerifiedAt: Date | null;
2302
+ password: string;
2303
+ phone: string | null;
2304
+ notificationCount: number | null;
2305
+ roles: {
2306
+ id: string;
2307
+ description: string | null;
2308
+ createdAt: Date;
2309
+ updatedAt: Date;
2310
+ deletedAt: Date | null;
2311
+ systemName: string;
2312
+ displayName: string;
2313
+ permissions: {
2314
+ id: string;
2315
+ description: string | null;
2316
+ createdAt: Date;
2317
+ updatedAt: Date;
2318
+ deletedAt: Date | null;
2319
+ systemName: string;
2320
+ displayName: string;
2321
+ }[];
2322
+ }[];
2323
+ extension: {
2324
+ id: string;
2325
+ createdAt: Date;
2326
+ updatedAt: Date;
2327
+ deletedAt: Date | null;
2328
+ userId: string | null;
2329
+ sipServerUrl: string;
2330
+ sipUserName: string;
2331
+ webphoneLoginUser: string;
2332
+ extensionId: string | null;
2333
+ extensionName: string;
2334
+ telephonySignature: string | null;
2335
+ };
2336
+ } | null | undefined;
2337
+ assignee?: {
2338
+ id: string;
2339
+ address: string | null;
2340
+ name: string;
2341
+ email: string;
2342
+ createdAt: Date;
2343
+ updatedAt: Date;
2344
+ deletedAt: Date | null;
2345
+ emailVerifiedAt: Date | null;
2346
+ password: string;
2347
+ phone: string | null;
2348
+ notificationCount: number | null;
2349
+ roles: {
2350
+ id: string;
2351
+ description: string | null;
2352
+ createdAt: Date;
2353
+ updatedAt: Date;
2354
+ deletedAt: Date | null;
2355
+ systemName: string;
2356
+ displayName: string;
2357
+ permissions: {
2358
+ id: string;
2359
+ description: string | null;
2360
+ createdAt: Date;
2361
+ updatedAt: Date;
2362
+ deletedAt: Date | null;
2363
+ systemName: string;
2364
+ displayName: string;
2365
+ }[];
2366
+ }[];
2367
+ extension: {
2368
+ id: string;
2369
+ createdAt: Date;
2370
+ updatedAt: Date;
2371
+ deletedAt: Date | null;
2372
+ userId: string | null;
2373
+ sipServerUrl: string;
2374
+ sipUserName: string;
2375
+ webphoneLoginUser: string;
2376
+ extensionId: string | null;
2377
+ extensionName: string;
2378
+ telephonySignature: string | null;
2379
+ };
2380
+ } | null | undefined;
2381
+ ticketNumber?: number | undefined;
2382
+ }, {
2383
+ type: string;
2384
+ id: string;
2385
+ channel: string;
2386
+ priority: string;
2387
+ title: string;
2388
+ description: string | null;
2389
+ status: string;
2390
+ createdAt: Date;
2391
+ updatedAt: Date;
2392
+ deletedAt: Date | null;
2393
+ categories: {
2394
+ id: string;
2395
+ value: string;
2396
+ createdAt: Date;
2397
+ updatedAt: Date;
2398
+ deletedAt: Date | null;
2399
+ level: 2 | 1 | 3;
2400
+ parentId: string | null;
2401
+ childCategoryList: {
2402
+ id: string;
2403
+ value: string;
2404
+ level: 2 | 1 | 3;
2405
+ parentId: string | null;
2406
+ childCategoryList: {
2407
+ id: string;
2408
+ value: string;
2409
+ level: 2 | 1 | 3;
2410
+ parentId: string | null;
2411
+ childCategoryList: any[];
2412
+ }[];
2413
+ }[];
2414
+ }[];
2415
+ contact: {
2416
+ id: string;
2417
+ channel: string | null;
2418
+ address: string | null;
2419
+ name: string;
2420
+ createdAt: Date;
2421
+ updatedAt: Date;
2422
+ deletedAt: Date | null;
2423
+ customFields: {
2424
+ id: string;
2425
+ createdAt: Date;
2426
+ updatedAt: Date;
2427
+ deletedAt: Date | null;
2428
+ attribute: {
2429
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2430
+ id: string;
2431
+ position: number;
2432
+ createdAt: Date;
2433
+ updatedAt: Date;
2434
+ deletedAt: Date | null;
2435
+ systemName: string;
2436
+ displayName: string;
2437
+ isDefault: boolean;
2438
+ isArchived: boolean;
2439
+ isRequired: boolean;
2440
+ isUnique: boolean;
2441
+ };
2442
+ textValue: string | null;
2443
+ booleanValue: boolean | null;
2444
+ numberValue: number | null;
2445
+ dateValue: Date | null;
2446
+ uploads: {
2447
+ id: string;
2448
+ createdAt: Date;
2449
+ updatedAt: Date;
2450
+ deletedAt: Date | null;
2451
+ fileName: string;
2452
+ fileKey: string;
2453
+ bucketName: string;
2454
+ fileSize: number;
2455
+ fileUrl: string | null;
2456
+ status?: string | undefined;
2457
+ }[];
2458
+ }[];
2459
+ company: {
2460
+ id: string;
2461
+ createdAt: Date;
2462
+ updatedAt: Date;
2463
+ deletedAt: Date | null;
2464
+ address?: string | null | undefined;
2465
+ name?: string | undefined;
2466
+ phone?: string | null | undefined;
2467
+ industry?: string | null | undefined;
2468
+ } | null;
2469
+ notes: string | null;
2470
+ contactProfile: string | null;
2471
+ socialProfileUrl: string | null;
2472
+ tags: {
2473
+ id: string;
2474
+ name: string;
2475
+ createdAt: Date;
2476
+ updatedAt: Date;
2477
+ deletedAt: Date | null;
2478
+ }[];
2479
+ contactEmails: {
2480
+ id: string;
2481
+ isPrimary: boolean;
2482
+ email: string;
2483
+ createdAt: Date;
2484
+ updatedAt: Date;
2485
+ deletedAt: Date | null;
2486
+ }[];
2487
+ contactPhones: {
2488
+ id: string;
2489
+ isPrimary: boolean;
2490
+ createdAt: Date;
2491
+ updatedAt: Date;
2492
+ deletedAt: Date | null;
2493
+ phone: string;
2494
+ }[];
2495
+ activityLogs?: {
2496
+ id: string;
2497
+ description: string;
2498
+ createdAt: Date;
2499
+ updatedAt: Date;
2500
+ deletedAt: Date | null;
2501
+ entityId: string;
2502
+ entityType: {
2503
+ id: string;
2504
+ description: string | null;
2505
+ createdAt: Date;
2506
+ updatedAt: Date;
2507
+ deletedAt: Date | null;
2508
+ entity: string;
2509
+ };
2510
+ }[] | undefined;
2511
+ };
2512
+ customFields: {
2513
+ id: string;
2514
+ createdAt: Date;
2515
+ updatedAt: Date;
2516
+ deletedAt: Date | null;
2517
+ attribute: {
2518
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2519
+ id: string;
2520
+ position: number;
2521
+ createdAt: Date;
2522
+ updatedAt: Date;
2523
+ deletedAt: Date | null;
2524
+ systemName: string;
2525
+ displayName: string;
2526
+ isDefault: boolean;
2527
+ isArchived: boolean;
2528
+ isRequired: boolean;
2529
+ isUnique: boolean;
2530
+ };
2531
+ textValue: string | null;
2532
+ booleanValue: boolean | null;
2533
+ numberValue: number | null;
2534
+ dateValue: Date | null;
2535
+ uploads: {
2536
+ id: string;
2537
+ createdAt: Date;
2538
+ updatedAt: Date;
2539
+ deletedAt: Date | null;
2540
+ fileName: string;
2541
+ fileKey: string;
2542
+ bucketName: string;
2543
+ fileSize: number;
2544
+ fileUrl: string | null;
2545
+ status?: string | undefined;
2546
+ }[];
2547
+ }[];
2548
+ tags: {
2549
+ id: string;
2550
+ name: string;
2551
+ createdAt: Date;
2552
+ updatedAt: Date;
2553
+ deletedAt: Date | null;
2554
+ }[];
2555
+ activityLogs: {
2556
+ id: string;
2557
+ description: string;
2558
+ createdAt: Date;
2559
+ updatedAt: Date;
2560
+ deletedAt: Date | null;
2561
+ actor: {
2562
+ id: string;
2563
+ address: string | null;
2564
+ name: string;
2565
+ email: string;
2566
+ createdAt: Date;
2567
+ updatedAt: Date;
2568
+ deletedAt: Date | null;
2569
+ emailVerifiedAt: Date | null;
2570
+ password: string;
2571
+ phone: string | null;
2572
+ notificationCount: number | null;
2573
+ roles: {
2574
+ id: string;
2575
+ description: string | null;
2576
+ createdAt: Date;
2577
+ updatedAt: Date;
2578
+ deletedAt: Date | null;
2579
+ systemName: string;
2580
+ displayName: string;
2581
+ permissions: {
2582
+ id: string;
2583
+ description: string | null;
2584
+ createdAt: Date;
2585
+ updatedAt: Date;
2586
+ deletedAt: Date | null;
2587
+ systemName: string;
2588
+ displayName: string;
2589
+ }[];
2590
+ }[];
2591
+ extension: {
2592
+ id: string;
2593
+ createdAt: Date;
2594
+ updatedAt: Date;
2595
+ deletedAt: Date | null;
2596
+ userId: string | null;
2597
+ sipServerUrl: string;
2598
+ sipUserName: string;
2599
+ webphoneLoginUser: string;
2600
+ extensionId: string | null;
2601
+ extensionName: string;
2602
+ telephonySignature: string | null;
2603
+ };
2604
+ };
2605
+ entityId: string;
2606
+ entityType: {
2607
+ id: string;
2608
+ description: string;
2609
+ createdAt: Date;
2610
+ updatedAt: Date;
2611
+ deletedAt: Date | null;
2612
+ entity: string;
2613
+ };
2614
+ }[];
2615
+ contactId: string;
2616
+ assigneeId: string;
2617
+ creatorId: string;
2618
+ reasonToAssign: string | null;
2619
+ creator?: {
2620
+ id: string;
2621
+ address: string | null;
2622
+ name: string;
2623
+ email: string;
2624
+ createdAt: Date;
2625
+ updatedAt: Date;
2626
+ deletedAt: Date | null;
2627
+ emailVerifiedAt: Date | null;
2628
+ password: string;
2629
+ phone: string | null;
2630
+ notificationCount: number | null;
2631
+ roles: {
2632
+ id: string;
2633
+ description: string | null;
2634
+ createdAt: Date;
2635
+ updatedAt: Date;
2636
+ deletedAt: Date | null;
2637
+ systemName: string;
2638
+ displayName: string;
2639
+ permissions: {
2640
+ id: string;
2641
+ description: string | null;
2642
+ createdAt: Date;
2643
+ updatedAt: Date;
2644
+ deletedAt: Date | null;
2645
+ systemName: string;
2646
+ displayName: string;
2647
+ }[];
2648
+ }[];
2649
+ extension: {
2650
+ id: string;
2651
+ createdAt: Date;
2652
+ updatedAt: Date;
2653
+ deletedAt: Date | null;
2654
+ userId: string | null;
2655
+ sipServerUrl: string;
2656
+ sipUserName: string;
2657
+ webphoneLoginUser: string;
2658
+ extensionId: string | null;
2659
+ extensionName: string;
2660
+ telephonySignature: string | null;
2661
+ };
2662
+ } | null | undefined;
2663
+ assignee?: {
2664
+ id: string;
2665
+ address: string | null;
2666
+ name: string;
2667
+ email: string;
2668
+ createdAt: Date;
2669
+ updatedAt: Date;
2670
+ deletedAt: Date | null;
2671
+ emailVerifiedAt: Date | null;
2672
+ password: string;
2673
+ phone: string | null;
2674
+ notificationCount: number | null;
2675
+ roles: {
2676
+ id: string;
2677
+ description: string | null;
2678
+ createdAt: Date;
2679
+ updatedAt: Date;
2680
+ deletedAt: Date | null;
2681
+ systemName: string;
2682
+ displayName: string;
2683
+ permissions: {
2684
+ id: string;
2685
+ description: string | null;
2686
+ createdAt: Date;
2687
+ updatedAt: Date;
2688
+ deletedAt: Date | null;
2689
+ systemName: string;
2690
+ displayName: string;
2691
+ }[];
2692
+ }[];
2693
+ extension: {
2694
+ id: string;
2695
+ createdAt: Date;
2696
+ updatedAt: Date;
2697
+ deletedAt: Date | null;
2698
+ userId: string | null;
2699
+ sipServerUrl: string;
2700
+ sipUserName: string;
2701
+ webphoneLoginUser: string;
2702
+ extensionId: string | null;
2703
+ extensionName: string;
2704
+ telephonySignature: string | null;
2705
+ };
2706
+ } | null | undefined;
2707
+ ticketNumber?: number | undefined;
2708
+ }>;
2709
+ export declare const TicketCountByContactSchema: z.ZodObject<{
2710
+ total: z.ZodNumber;
2711
+ open: z.ZodNumber;
2712
+ pending: z.ZodNumber;
2713
+ closed: z.ZodNumber;
2714
+ solved: z.ZodNumber;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ total: number;
2717
+ closed: number;
2718
+ open: number;
2719
+ pending: number;
2720
+ solved: number;
2721
+ }, {
2722
+ total: number;
2723
+ closed: number;
2724
+ open: number;
2725
+ pending: number;
2726
+ solved: number;
2727
+ }>;
2728
+ //# sourceMappingURL=schema.d.ts.map