@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,1726 @@
1
+ import z from 'zod';
2
+ import { CompanyContractsValidationSchema } from './validation';
3
+ import { CompanyCustomFieldSchema, CompanySchema } from './schema';
4
+ export type Company = z.infer<typeof CompanySchema>;
5
+ export type CompanyCustomField = z.infer<typeof CompanyCustomFieldSchema>;
6
+ export type CreateCompanyRequest = z.infer<typeof CompanyContractsValidationSchema.create.request>;
7
+ export type UpdateCompanyRequest = Partial<CreateCompanyRequest>;
8
+ export type GetAllCompanyRequest = z.infer<typeof CompanyContractsValidationSchema.getAll.request>;
9
+ export declare const companyContract: {
10
+ create: {
11
+ body: z.ZodObject<{
12
+ name: z.ZodObject<{
13
+ value: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ value: string;
16
+ }, {
17
+ value: string;
18
+ }>;
19
+ phone: z.ZodObject<{
20
+ value: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ value: string;
23
+ }, {
24
+ value: string;
25
+ }>;
26
+ address: z.ZodObject<{
27
+ value: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ value: string;
30
+ }, {
31
+ value: string;
32
+ }>;
33
+ industry: z.ZodObject<{
34
+ value: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ value: string;
37
+ }, {
38
+ value: string;
39
+ }>;
40
+ customFields: z.ZodArray<z.ZodObject<{
41
+ isRequired: z.ZodBoolean;
42
+ attributeId: z.ZodString;
43
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
44
+ type: z.ZodString;
45
+ isDefaultAttribute: z.ZodBoolean;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: string;
48
+ value: (string | string[]) & (string | string[] | undefined);
49
+ isRequired: boolean;
50
+ attributeId: string;
51
+ isDefaultAttribute: boolean;
52
+ }, {
53
+ type: string;
54
+ value: (string | string[]) & (string | string[] | undefined);
55
+ isRequired: boolean;
56
+ attributeId: string;
57
+ isDefaultAttribute: boolean;
58
+ }>, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ address: {
61
+ value: string;
62
+ };
63
+ name: {
64
+ value: string;
65
+ };
66
+ phone: {
67
+ value: string;
68
+ };
69
+ industry: {
70
+ value: string;
71
+ };
72
+ customFields: {
73
+ type: string;
74
+ value: (string | string[]) & (string | string[] | undefined);
75
+ isRequired: boolean;
76
+ attributeId: string;
77
+ isDefaultAttribute: boolean;
78
+ }[];
79
+ }, {
80
+ address: {
81
+ value: string;
82
+ };
83
+ name: {
84
+ value: string;
85
+ };
86
+ phone: {
87
+ value: string;
88
+ };
89
+ industry: {
90
+ value: string;
91
+ };
92
+ customFields: {
93
+ type: string;
94
+ value: (string | string[]) & (string | string[] | undefined);
95
+ isRequired: boolean;
96
+ attributeId: string;
97
+ isDefaultAttribute: boolean;
98
+ }[];
99
+ }>;
100
+ summary: "Create a new company";
101
+ method: "POST";
102
+ responses: {
103
+ 201: z.ZodObject<{
104
+ requestId: z.ZodString;
105
+ data: z.ZodObject<{
106
+ id: z.ZodString;
107
+ createdAt: z.ZodDate;
108
+ updatedAt: z.ZodDate;
109
+ deletedAt: z.ZodNullable<z.ZodDate>;
110
+ name: z.ZodOptional<z.ZodString>;
111
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ id: z.ZodString;
116
+ createdAt: z.ZodDate;
117
+ updatedAt: z.ZodDate;
118
+ deletedAt: z.ZodNullable<z.ZodDate>;
119
+ textValue: z.ZodNullable<z.ZodString>;
120
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
121
+ numberValue: z.ZodNullable<z.ZodNumber>;
122
+ dateValue: z.ZodNullable<z.ZodDate>;
123
+ attribute: z.ZodObject<Omit<{
124
+ id: z.ZodString;
125
+ createdAt: z.ZodDate;
126
+ updatedAt: z.ZodDate;
127
+ deletedAt: z.ZodNullable<z.ZodDate>;
128
+ systemName: z.ZodString;
129
+ displayName: z.ZodString;
130
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
131
+ position: z.ZodNumber;
132
+ isDefault: z.ZodBoolean;
133
+ isArchived: z.ZodBoolean;
134
+ isRequired: z.ZodBoolean;
135
+ isUnique: z.ZodBoolean;
136
+ options: z.ZodArray<z.ZodObject<{
137
+ position: z.ZodNumber;
138
+ value: z.ZodString;
139
+ label: z.ZodString;
140
+ isDefault: z.ZodBoolean;
141
+ id: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ position: number;
145
+ value: string;
146
+ label: string;
147
+ isDefault: boolean;
148
+ }, {
149
+ id: string;
150
+ position: number;
151
+ value: string;
152
+ label: string;
153
+ isDefault: boolean;
154
+ }>, "many">;
155
+ group: z.ZodObject<{
156
+ id: z.ZodString;
157
+ createdAt: z.ZodDate;
158
+ updatedAt: z.ZodDate;
159
+ deletedAt: z.ZodNullable<z.ZodDate>;
160
+ systemName: z.ZodString;
161
+ displayName: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ id: string;
164
+ createdAt: Date;
165
+ updatedAt: Date;
166
+ deletedAt: Date | null;
167
+ systemName: string;
168
+ displayName: string;
169
+ }, {
170
+ id: string;
171
+ createdAt: Date;
172
+ updatedAt: Date;
173
+ deletedAt: Date | null;
174
+ systemName: string;
175
+ displayName: string;
176
+ }>;
177
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
178
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
179
+ id: string;
180
+ position: number;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ deletedAt: Date | null;
184
+ systemName: string;
185
+ displayName: string;
186
+ isDefault: boolean;
187
+ isArchived: boolean;
188
+ isRequired: boolean;
189
+ isUnique: boolean;
190
+ }, {
191
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
192
+ id: string;
193
+ position: number;
194
+ createdAt: Date;
195
+ updatedAt: Date;
196
+ deletedAt: Date | null;
197
+ systemName: string;
198
+ displayName: string;
199
+ isDefault: boolean;
200
+ isArchived: boolean;
201
+ isRequired: boolean;
202
+ isUnique: boolean;
203
+ }>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ createdAt: Date;
207
+ updatedAt: Date;
208
+ deletedAt: Date | null;
209
+ attribute: {
210
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
211
+ id: string;
212
+ position: number;
213
+ createdAt: Date;
214
+ updatedAt: Date;
215
+ deletedAt: Date | null;
216
+ systemName: string;
217
+ displayName: string;
218
+ isDefault: boolean;
219
+ isArchived: boolean;
220
+ isRequired: boolean;
221
+ isUnique: boolean;
222
+ };
223
+ textValue: string | null;
224
+ booleanValue: boolean | null;
225
+ numberValue: number | null;
226
+ dateValue: Date | null;
227
+ }, {
228
+ id: string;
229
+ createdAt: Date;
230
+ updatedAt: Date;
231
+ deletedAt: Date | null;
232
+ attribute: {
233
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
234
+ id: string;
235
+ position: number;
236
+ createdAt: Date;
237
+ updatedAt: Date;
238
+ deletedAt: Date | null;
239
+ systemName: string;
240
+ displayName: string;
241
+ isDefault: boolean;
242
+ isArchived: boolean;
243
+ isRequired: boolean;
244
+ isUnique: boolean;
245
+ };
246
+ textValue: string | null;
247
+ booleanValue: boolean | null;
248
+ numberValue: number | null;
249
+ dateValue: Date | null;
250
+ }>, "many">>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ id: string;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ deletedAt: Date | null;
256
+ name?: string | undefined;
257
+ phone?: string | null | undefined;
258
+ address?: string | null | undefined;
259
+ industry?: string | null | undefined;
260
+ customFields?: {
261
+ id: string;
262
+ createdAt: Date;
263
+ updatedAt: Date;
264
+ deletedAt: Date | null;
265
+ attribute: {
266
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
267
+ id: string;
268
+ position: number;
269
+ createdAt: Date;
270
+ updatedAt: Date;
271
+ deletedAt: Date | null;
272
+ systemName: string;
273
+ displayName: string;
274
+ isDefault: boolean;
275
+ isArchived: boolean;
276
+ isRequired: boolean;
277
+ isUnique: boolean;
278
+ };
279
+ textValue: string | null;
280
+ booleanValue: boolean | null;
281
+ numberValue: number | null;
282
+ dateValue: Date | null;
283
+ }[] | undefined;
284
+ }, {
285
+ id: string;
286
+ createdAt: Date;
287
+ updatedAt: Date;
288
+ deletedAt: Date | null;
289
+ name?: string | undefined;
290
+ phone?: string | null | undefined;
291
+ address?: string | null | undefined;
292
+ industry?: string | null | undefined;
293
+ customFields?: {
294
+ id: string;
295
+ createdAt: Date;
296
+ updatedAt: Date;
297
+ deletedAt: Date | null;
298
+ attribute: {
299
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
300
+ id: string;
301
+ position: number;
302
+ createdAt: Date;
303
+ updatedAt: Date;
304
+ deletedAt: Date | null;
305
+ systemName: string;
306
+ displayName: string;
307
+ isDefault: boolean;
308
+ isArchived: boolean;
309
+ isRequired: boolean;
310
+ isUnique: boolean;
311
+ };
312
+ textValue: string | null;
313
+ booleanValue: boolean | null;
314
+ numberValue: number | null;
315
+ dateValue: Date | null;
316
+ }[] | undefined;
317
+ }>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ data: {
320
+ id: string;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ deletedAt: Date | null;
324
+ name?: string | undefined;
325
+ phone?: string | null | undefined;
326
+ address?: string | null | undefined;
327
+ industry?: string | null | undefined;
328
+ customFields?: {
329
+ id: string;
330
+ createdAt: Date;
331
+ updatedAt: Date;
332
+ deletedAt: Date | null;
333
+ attribute: {
334
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
335
+ id: string;
336
+ position: number;
337
+ createdAt: Date;
338
+ updatedAt: Date;
339
+ deletedAt: Date | null;
340
+ systemName: string;
341
+ displayName: string;
342
+ isDefault: boolean;
343
+ isArchived: boolean;
344
+ isRequired: boolean;
345
+ isUnique: boolean;
346
+ };
347
+ textValue: string | null;
348
+ booleanValue: boolean | null;
349
+ numberValue: number | null;
350
+ dateValue: Date | null;
351
+ }[] | undefined;
352
+ };
353
+ requestId: string;
354
+ }, {
355
+ data: {
356
+ id: string;
357
+ createdAt: Date;
358
+ updatedAt: Date;
359
+ deletedAt: Date | null;
360
+ name?: string | undefined;
361
+ phone?: string | null | undefined;
362
+ address?: string | null | undefined;
363
+ industry?: string | null | undefined;
364
+ customFields?: {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ deletedAt: Date | null;
369
+ attribute: {
370
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
371
+ id: string;
372
+ position: number;
373
+ createdAt: Date;
374
+ updatedAt: Date;
375
+ deletedAt: Date | null;
376
+ systemName: string;
377
+ displayName: string;
378
+ isDefault: boolean;
379
+ isArchived: boolean;
380
+ isRequired: boolean;
381
+ isUnique: boolean;
382
+ };
383
+ textValue: string | null;
384
+ booleanValue: boolean | null;
385
+ numberValue: number | null;
386
+ dateValue: Date | null;
387
+ }[] | undefined;
388
+ };
389
+ requestId: string;
390
+ }>;
391
+ 400: z.ZodObject<{
392
+ message: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ message: string;
395
+ }, {
396
+ message: string;
397
+ }>;
398
+ 409: z.ZodObject<{
399
+ message: z.ZodString;
400
+ }, "strip", z.ZodTypeAny, {
401
+ message: string;
402
+ }, {
403
+ message: string;
404
+ }>;
405
+ 500: z.ZodObject<{
406
+ message: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ message: string;
409
+ }, {
410
+ message: string;
411
+ }>;
412
+ 401: z.ZodObject<{
413
+ message: z.ZodString;
414
+ error: z.ZodAny;
415
+ }, "strip", z.ZodTypeAny, {
416
+ message: string;
417
+ error?: any;
418
+ }, {
419
+ message: string;
420
+ error?: any;
421
+ }>;
422
+ 404: z.ZodObject<{
423
+ message: z.ZodString;
424
+ error: z.ZodAny;
425
+ }, "strip", z.ZodTypeAny, {
426
+ message: string;
427
+ error?: any;
428
+ }, {
429
+ message: string;
430
+ error?: any;
431
+ }>;
432
+ 422: z.ZodObject<{
433
+ message: z.ZodString;
434
+ error: z.ZodAny;
435
+ }, "strip", z.ZodTypeAny, {
436
+ message: string;
437
+ error?: any;
438
+ }, {
439
+ message: string;
440
+ error?: any;
441
+ }>;
442
+ };
443
+ path: "companies";
444
+ };
445
+ update: {
446
+ body: z.ZodObject<{
447
+ name: z.ZodOptional<z.ZodObject<{
448
+ value: z.ZodString;
449
+ }, "strip", z.ZodTypeAny, {
450
+ value: string;
451
+ }, {
452
+ value: string;
453
+ }>>;
454
+ phone: z.ZodOptional<z.ZodObject<{
455
+ value: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ value: string;
458
+ }, {
459
+ value: string;
460
+ }>>;
461
+ address: z.ZodOptional<z.ZodObject<{
462
+ value: z.ZodString;
463
+ }, "strip", z.ZodTypeAny, {
464
+ value: string;
465
+ }, {
466
+ value: string;
467
+ }>>;
468
+ industry: z.ZodOptional<z.ZodObject<{
469
+ value: z.ZodString;
470
+ }, "strip", z.ZodTypeAny, {
471
+ value: string;
472
+ }, {
473
+ value: string;
474
+ }>>;
475
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
476
+ isRequired: z.ZodBoolean;
477
+ attributeId: z.ZodString;
478
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
479
+ type: z.ZodString;
480
+ isDefaultAttribute: z.ZodBoolean;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: string;
483
+ value: (string | string[]) & (string | string[] | undefined);
484
+ isRequired: boolean;
485
+ attributeId: string;
486
+ isDefaultAttribute: boolean;
487
+ }, {
488
+ type: string;
489
+ value: (string | string[]) & (string | string[] | undefined);
490
+ isRequired: boolean;
491
+ attributeId: string;
492
+ isDefaultAttribute: boolean;
493
+ }>, "many">>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ name?: {
496
+ value: string;
497
+ } | undefined;
498
+ phone?: {
499
+ value: string;
500
+ } | undefined;
501
+ address?: {
502
+ value: string;
503
+ } | undefined;
504
+ industry?: {
505
+ value: string;
506
+ } | undefined;
507
+ customFields?: {
508
+ type: string;
509
+ value: (string | string[]) & (string | string[] | undefined);
510
+ isRequired: boolean;
511
+ attributeId: string;
512
+ isDefaultAttribute: boolean;
513
+ }[] | undefined;
514
+ }, {
515
+ name?: {
516
+ value: string;
517
+ } | undefined;
518
+ phone?: {
519
+ value: string;
520
+ } | undefined;
521
+ address?: {
522
+ value: string;
523
+ } | undefined;
524
+ industry?: {
525
+ value: string;
526
+ } | undefined;
527
+ customFields?: {
528
+ type: string;
529
+ value: (string | string[]) & (string | string[] | undefined);
530
+ isRequired: boolean;
531
+ attributeId: string;
532
+ isDefaultAttribute: boolean;
533
+ }[] | undefined;
534
+ }>;
535
+ summary: "Update a company";
536
+ method: "PATCH";
537
+ pathParams: z.ZodObject<{
538
+ id: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ id: string;
541
+ }, {
542
+ id: string;
543
+ }>;
544
+ responses: {
545
+ 201: z.ZodObject<{
546
+ requestId: z.ZodString;
547
+ data: z.ZodObject<{
548
+ id: z.ZodString;
549
+ createdAt: z.ZodDate;
550
+ updatedAt: z.ZodDate;
551
+ deletedAt: z.ZodNullable<z.ZodDate>;
552
+ name: z.ZodOptional<z.ZodString>;
553
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ id: z.ZodString;
558
+ createdAt: z.ZodDate;
559
+ updatedAt: z.ZodDate;
560
+ deletedAt: z.ZodNullable<z.ZodDate>;
561
+ textValue: z.ZodNullable<z.ZodString>;
562
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
563
+ numberValue: z.ZodNullable<z.ZodNumber>;
564
+ dateValue: z.ZodNullable<z.ZodDate>;
565
+ attribute: z.ZodObject<Omit<{
566
+ id: z.ZodString;
567
+ createdAt: z.ZodDate;
568
+ updatedAt: z.ZodDate;
569
+ deletedAt: z.ZodNullable<z.ZodDate>;
570
+ systemName: z.ZodString;
571
+ displayName: z.ZodString;
572
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
573
+ position: z.ZodNumber;
574
+ isDefault: z.ZodBoolean;
575
+ isArchived: z.ZodBoolean;
576
+ isRequired: z.ZodBoolean;
577
+ isUnique: z.ZodBoolean;
578
+ options: z.ZodArray<z.ZodObject<{
579
+ position: z.ZodNumber;
580
+ value: z.ZodString;
581
+ label: z.ZodString;
582
+ isDefault: z.ZodBoolean;
583
+ id: z.ZodString;
584
+ }, "strip", z.ZodTypeAny, {
585
+ id: string;
586
+ position: number;
587
+ value: string;
588
+ label: string;
589
+ isDefault: boolean;
590
+ }, {
591
+ id: string;
592
+ position: number;
593
+ value: string;
594
+ label: string;
595
+ isDefault: boolean;
596
+ }>, "many">;
597
+ group: z.ZodObject<{
598
+ id: z.ZodString;
599
+ createdAt: z.ZodDate;
600
+ updatedAt: z.ZodDate;
601
+ deletedAt: z.ZodNullable<z.ZodDate>;
602
+ systemName: z.ZodString;
603
+ displayName: z.ZodString;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ createdAt: Date;
607
+ updatedAt: Date;
608
+ deletedAt: Date | null;
609
+ systemName: string;
610
+ displayName: string;
611
+ }, {
612
+ id: string;
613
+ createdAt: Date;
614
+ updatedAt: Date;
615
+ deletedAt: Date | null;
616
+ systemName: string;
617
+ displayName: string;
618
+ }>;
619
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
620
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
621
+ id: string;
622
+ position: number;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ deletedAt: Date | null;
626
+ systemName: string;
627
+ displayName: string;
628
+ isDefault: boolean;
629
+ isArchived: boolean;
630
+ isRequired: boolean;
631
+ isUnique: boolean;
632
+ }, {
633
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
634
+ id: string;
635
+ position: number;
636
+ createdAt: Date;
637
+ updatedAt: Date;
638
+ deletedAt: Date | null;
639
+ systemName: string;
640
+ displayName: string;
641
+ isDefault: boolean;
642
+ isArchived: boolean;
643
+ isRequired: boolean;
644
+ isUnique: boolean;
645
+ }>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ id: string;
648
+ createdAt: Date;
649
+ updatedAt: Date;
650
+ deletedAt: Date | null;
651
+ attribute: {
652
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
653
+ id: string;
654
+ position: number;
655
+ createdAt: Date;
656
+ updatedAt: Date;
657
+ deletedAt: Date | null;
658
+ systemName: string;
659
+ displayName: string;
660
+ isDefault: boolean;
661
+ isArchived: boolean;
662
+ isRequired: boolean;
663
+ isUnique: boolean;
664
+ };
665
+ textValue: string | null;
666
+ booleanValue: boolean | null;
667
+ numberValue: number | null;
668
+ dateValue: Date | null;
669
+ }, {
670
+ id: string;
671
+ createdAt: Date;
672
+ updatedAt: Date;
673
+ deletedAt: Date | null;
674
+ attribute: {
675
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
676
+ id: string;
677
+ position: number;
678
+ createdAt: Date;
679
+ updatedAt: Date;
680
+ deletedAt: Date | null;
681
+ systemName: string;
682
+ displayName: string;
683
+ isDefault: boolean;
684
+ isArchived: boolean;
685
+ isRequired: boolean;
686
+ isUnique: boolean;
687
+ };
688
+ textValue: string | null;
689
+ booleanValue: boolean | null;
690
+ numberValue: number | null;
691
+ dateValue: Date | null;
692
+ }>, "many">>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ id: string;
695
+ createdAt: Date;
696
+ updatedAt: Date;
697
+ deletedAt: Date | null;
698
+ name?: string | undefined;
699
+ phone?: string | null | undefined;
700
+ address?: string | null | undefined;
701
+ industry?: string | null | undefined;
702
+ customFields?: {
703
+ id: string;
704
+ createdAt: Date;
705
+ updatedAt: Date;
706
+ deletedAt: Date | null;
707
+ attribute: {
708
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
709
+ id: string;
710
+ position: number;
711
+ createdAt: Date;
712
+ updatedAt: Date;
713
+ deletedAt: Date | null;
714
+ systemName: string;
715
+ displayName: string;
716
+ isDefault: boolean;
717
+ isArchived: boolean;
718
+ isRequired: boolean;
719
+ isUnique: boolean;
720
+ };
721
+ textValue: string | null;
722
+ booleanValue: boolean | null;
723
+ numberValue: number | null;
724
+ dateValue: Date | null;
725
+ }[] | undefined;
726
+ }, {
727
+ id: string;
728
+ createdAt: Date;
729
+ updatedAt: Date;
730
+ deletedAt: Date | null;
731
+ name?: string | undefined;
732
+ phone?: string | null | undefined;
733
+ address?: string | null | undefined;
734
+ industry?: string | null | undefined;
735
+ customFields?: {
736
+ id: string;
737
+ createdAt: Date;
738
+ updatedAt: Date;
739
+ deletedAt: Date | null;
740
+ attribute: {
741
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
742
+ id: string;
743
+ position: number;
744
+ createdAt: Date;
745
+ updatedAt: Date;
746
+ deletedAt: Date | null;
747
+ systemName: string;
748
+ displayName: string;
749
+ isDefault: boolean;
750
+ isArchived: boolean;
751
+ isRequired: boolean;
752
+ isUnique: boolean;
753
+ };
754
+ textValue: string | null;
755
+ booleanValue: boolean | null;
756
+ numberValue: number | null;
757
+ dateValue: Date | null;
758
+ }[] | undefined;
759
+ }>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ data: {
762
+ id: string;
763
+ createdAt: Date;
764
+ updatedAt: Date;
765
+ deletedAt: Date | null;
766
+ name?: string | undefined;
767
+ phone?: string | null | undefined;
768
+ address?: string | null | undefined;
769
+ industry?: string | null | undefined;
770
+ customFields?: {
771
+ id: string;
772
+ createdAt: Date;
773
+ updatedAt: Date;
774
+ deletedAt: Date | null;
775
+ attribute: {
776
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
777
+ id: string;
778
+ position: number;
779
+ createdAt: Date;
780
+ updatedAt: Date;
781
+ deletedAt: Date | null;
782
+ systemName: string;
783
+ displayName: string;
784
+ isDefault: boolean;
785
+ isArchived: boolean;
786
+ isRequired: boolean;
787
+ isUnique: boolean;
788
+ };
789
+ textValue: string | null;
790
+ booleanValue: boolean | null;
791
+ numberValue: number | null;
792
+ dateValue: Date | null;
793
+ }[] | undefined;
794
+ };
795
+ requestId: string;
796
+ }, {
797
+ data: {
798
+ id: string;
799
+ createdAt: Date;
800
+ updatedAt: Date;
801
+ deletedAt: Date | null;
802
+ name?: string | undefined;
803
+ phone?: string | null | undefined;
804
+ address?: string | null | undefined;
805
+ industry?: string | null | undefined;
806
+ customFields?: {
807
+ id: string;
808
+ createdAt: Date;
809
+ updatedAt: Date;
810
+ deletedAt: Date | null;
811
+ attribute: {
812
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
813
+ id: string;
814
+ position: number;
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ deletedAt: Date | null;
818
+ systemName: string;
819
+ displayName: string;
820
+ isDefault: boolean;
821
+ isArchived: boolean;
822
+ isRequired: boolean;
823
+ isUnique: boolean;
824
+ };
825
+ textValue: string | null;
826
+ booleanValue: boolean | null;
827
+ numberValue: number | null;
828
+ dateValue: Date | null;
829
+ }[] | undefined;
830
+ };
831
+ requestId: string;
832
+ }>;
833
+ 400: z.ZodObject<{
834
+ message: z.ZodString;
835
+ }, "strip", z.ZodTypeAny, {
836
+ message: string;
837
+ }, {
838
+ message: string;
839
+ }>;
840
+ 409: z.ZodObject<{
841
+ message: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ message: string;
844
+ }, {
845
+ message: string;
846
+ }>;
847
+ 500: z.ZodObject<{
848
+ message: z.ZodString;
849
+ }, "strip", z.ZodTypeAny, {
850
+ message: string;
851
+ }, {
852
+ message: string;
853
+ }>;
854
+ 401: z.ZodObject<{
855
+ message: z.ZodString;
856
+ error: z.ZodAny;
857
+ }, "strip", z.ZodTypeAny, {
858
+ message: string;
859
+ error?: any;
860
+ }, {
861
+ message: string;
862
+ error?: any;
863
+ }>;
864
+ 404: z.ZodObject<{
865
+ message: z.ZodString;
866
+ error: z.ZodAny;
867
+ }, "strip", z.ZodTypeAny, {
868
+ message: string;
869
+ error?: any;
870
+ }, {
871
+ message: string;
872
+ error?: any;
873
+ }>;
874
+ 422: z.ZodObject<{
875
+ message: z.ZodString;
876
+ error: z.ZodAny;
877
+ }, "strip", z.ZodTypeAny, {
878
+ message: string;
879
+ error?: any;
880
+ }, {
881
+ message: string;
882
+ error?: any;
883
+ }>;
884
+ };
885
+ path: "companies/:id";
886
+ };
887
+ delete: {
888
+ body: null;
889
+ summary: "Delete a company";
890
+ method: "DELETE";
891
+ pathParams: z.ZodObject<{
892
+ id: z.ZodString;
893
+ }, "strip", z.ZodTypeAny, {
894
+ id: string;
895
+ }, {
896
+ id: string;
897
+ }>;
898
+ responses: {
899
+ 201: z.ZodObject<{
900
+ requestId: z.ZodString;
901
+ message: z.ZodString;
902
+ }, "strip", z.ZodTypeAny, {
903
+ message: string;
904
+ requestId: string;
905
+ }, {
906
+ message: string;
907
+ requestId: string;
908
+ }>;
909
+ 400: z.ZodObject<{
910
+ message: z.ZodString;
911
+ }, "strip", z.ZodTypeAny, {
912
+ message: string;
913
+ }, {
914
+ message: string;
915
+ }>;
916
+ 409: z.ZodObject<{
917
+ message: z.ZodString;
918
+ }, "strip", z.ZodTypeAny, {
919
+ message: string;
920
+ }, {
921
+ message: string;
922
+ }>;
923
+ 500: z.ZodObject<{
924
+ message: z.ZodString;
925
+ }, "strip", z.ZodTypeAny, {
926
+ message: string;
927
+ }, {
928
+ message: string;
929
+ }>;
930
+ 401: z.ZodObject<{
931
+ message: z.ZodString;
932
+ error: z.ZodAny;
933
+ }, "strip", z.ZodTypeAny, {
934
+ message: string;
935
+ error?: any;
936
+ }, {
937
+ message: string;
938
+ error?: any;
939
+ }>;
940
+ 404: z.ZodObject<{
941
+ message: z.ZodString;
942
+ error: z.ZodAny;
943
+ }, "strip", z.ZodTypeAny, {
944
+ message: string;
945
+ error?: any;
946
+ }, {
947
+ message: string;
948
+ error?: any;
949
+ }>;
950
+ 422: z.ZodObject<{
951
+ message: z.ZodString;
952
+ error: z.ZodAny;
953
+ }, "strip", z.ZodTypeAny, {
954
+ message: string;
955
+ error?: any;
956
+ }, {
957
+ message: string;
958
+ error?: any;
959
+ }>;
960
+ };
961
+ path: "companies/:id";
962
+ };
963
+ getById: {
964
+ summary: "Get a company by id";
965
+ method: "GET";
966
+ pathParams: z.ZodObject<{
967
+ id: z.ZodString;
968
+ }, "strip", z.ZodTypeAny, {
969
+ id: string;
970
+ }, {
971
+ id: string;
972
+ }>;
973
+ responses: {
974
+ 200: z.ZodObject<{
975
+ requestId: z.ZodString;
976
+ data: z.ZodObject<{
977
+ id: z.ZodString;
978
+ createdAt: z.ZodDate;
979
+ updatedAt: z.ZodDate;
980
+ deletedAt: z.ZodNullable<z.ZodDate>;
981
+ name: z.ZodOptional<z.ZodString>;
982
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
983
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
985
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ createdAt: z.ZodDate;
988
+ updatedAt: z.ZodDate;
989
+ deletedAt: z.ZodNullable<z.ZodDate>;
990
+ textValue: z.ZodNullable<z.ZodString>;
991
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
992
+ numberValue: z.ZodNullable<z.ZodNumber>;
993
+ dateValue: z.ZodNullable<z.ZodDate>;
994
+ attribute: z.ZodObject<Omit<{
995
+ id: z.ZodString;
996
+ createdAt: z.ZodDate;
997
+ updatedAt: z.ZodDate;
998
+ deletedAt: z.ZodNullable<z.ZodDate>;
999
+ systemName: z.ZodString;
1000
+ displayName: z.ZodString;
1001
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1002
+ position: z.ZodNumber;
1003
+ isDefault: z.ZodBoolean;
1004
+ isArchived: z.ZodBoolean;
1005
+ isRequired: z.ZodBoolean;
1006
+ isUnique: z.ZodBoolean;
1007
+ options: z.ZodArray<z.ZodObject<{
1008
+ position: z.ZodNumber;
1009
+ value: z.ZodString;
1010
+ label: z.ZodString;
1011
+ isDefault: z.ZodBoolean;
1012
+ id: z.ZodString;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ id: string;
1015
+ position: number;
1016
+ value: string;
1017
+ label: string;
1018
+ isDefault: boolean;
1019
+ }, {
1020
+ id: string;
1021
+ position: number;
1022
+ value: string;
1023
+ label: string;
1024
+ isDefault: boolean;
1025
+ }>, "many">;
1026
+ group: z.ZodObject<{
1027
+ id: z.ZodString;
1028
+ createdAt: z.ZodDate;
1029
+ updatedAt: z.ZodDate;
1030
+ deletedAt: z.ZodNullable<z.ZodDate>;
1031
+ systemName: z.ZodString;
1032
+ displayName: z.ZodString;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ id: string;
1035
+ createdAt: Date;
1036
+ updatedAt: Date;
1037
+ deletedAt: Date | null;
1038
+ systemName: string;
1039
+ displayName: string;
1040
+ }, {
1041
+ id: string;
1042
+ createdAt: Date;
1043
+ updatedAt: Date;
1044
+ deletedAt: Date | null;
1045
+ systemName: string;
1046
+ displayName: string;
1047
+ }>;
1048
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1049
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1050
+ id: string;
1051
+ position: number;
1052
+ createdAt: Date;
1053
+ updatedAt: Date;
1054
+ deletedAt: Date | null;
1055
+ systemName: string;
1056
+ displayName: string;
1057
+ isDefault: boolean;
1058
+ isArchived: boolean;
1059
+ isRequired: boolean;
1060
+ isUnique: boolean;
1061
+ }, {
1062
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1063
+ id: string;
1064
+ position: number;
1065
+ createdAt: Date;
1066
+ updatedAt: Date;
1067
+ deletedAt: Date | null;
1068
+ systemName: string;
1069
+ displayName: string;
1070
+ isDefault: boolean;
1071
+ isArchived: boolean;
1072
+ isRequired: boolean;
1073
+ isUnique: boolean;
1074
+ }>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ id: string;
1077
+ createdAt: Date;
1078
+ updatedAt: Date;
1079
+ deletedAt: Date | null;
1080
+ attribute: {
1081
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1082
+ id: string;
1083
+ position: number;
1084
+ createdAt: Date;
1085
+ updatedAt: Date;
1086
+ deletedAt: Date | null;
1087
+ systemName: string;
1088
+ displayName: string;
1089
+ isDefault: boolean;
1090
+ isArchived: boolean;
1091
+ isRequired: boolean;
1092
+ isUnique: boolean;
1093
+ };
1094
+ textValue: string | null;
1095
+ booleanValue: boolean | null;
1096
+ numberValue: number | null;
1097
+ dateValue: Date | null;
1098
+ }, {
1099
+ id: string;
1100
+ createdAt: Date;
1101
+ updatedAt: Date;
1102
+ deletedAt: Date | null;
1103
+ attribute: {
1104
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1105
+ id: string;
1106
+ position: number;
1107
+ createdAt: Date;
1108
+ updatedAt: Date;
1109
+ deletedAt: Date | null;
1110
+ systemName: string;
1111
+ displayName: string;
1112
+ isDefault: boolean;
1113
+ isArchived: boolean;
1114
+ isRequired: boolean;
1115
+ isUnique: boolean;
1116
+ };
1117
+ textValue: string | null;
1118
+ booleanValue: boolean | null;
1119
+ numberValue: number | null;
1120
+ dateValue: Date | null;
1121
+ }>, "many">>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ id: string;
1124
+ createdAt: Date;
1125
+ updatedAt: Date;
1126
+ deletedAt: Date | null;
1127
+ name?: string | undefined;
1128
+ phone?: string | null | undefined;
1129
+ address?: string | null | undefined;
1130
+ industry?: string | null | undefined;
1131
+ customFields?: {
1132
+ id: string;
1133
+ createdAt: Date;
1134
+ updatedAt: Date;
1135
+ deletedAt: Date | null;
1136
+ attribute: {
1137
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1138
+ id: string;
1139
+ position: number;
1140
+ createdAt: Date;
1141
+ updatedAt: Date;
1142
+ deletedAt: Date | null;
1143
+ systemName: string;
1144
+ displayName: string;
1145
+ isDefault: boolean;
1146
+ isArchived: boolean;
1147
+ isRequired: boolean;
1148
+ isUnique: boolean;
1149
+ };
1150
+ textValue: string | null;
1151
+ booleanValue: boolean | null;
1152
+ numberValue: number | null;
1153
+ dateValue: Date | null;
1154
+ }[] | undefined;
1155
+ }, {
1156
+ id: string;
1157
+ createdAt: Date;
1158
+ updatedAt: Date;
1159
+ deletedAt: Date | null;
1160
+ name?: string | undefined;
1161
+ phone?: string | null | undefined;
1162
+ address?: string | null | undefined;
1163
+ industry?: string | null | undefined;
1164
+ customFields?: {
1165
+ id: string;
1166
+ createdAt: Date;
1167
+ updatedAt: Date;
1168
+ deletedAt: Date | null;
1169
+ attribute: {
1170
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1171
+ id: string;
1172
+ position: number;
1173
+ createdAt: Date;
1174
+ updatedAt: Date;
1175
+ deletedAt: Date | null;
1176
+ systemName: string;
1177
+ displayName: string;
1178
+ isDefault: boolean;
1179
+ isArchived: boolean;
1180
+ isRequired: boolean;
1181
+ isUnique: boolean;
1182
+ };
1183
+ textValue: string | null;
1184
+ booleanValue: boolean | null;
1185
+ numberValue: number | null;
1186
+ dateValue: Date | null;
1187
+ }[] | undefined;
1188
+ }>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ data: {
1191
+ id: string;
1192
+ createdAt: Date;
1193
+ updatedAt: Date;
1194
+ deletedAt: Date | null;
1195
+ name?: string | undefined;
1196
+ phone?: string | null | undefined;
1197
+ address?: string | null | undefined;
1198
+ industry?: string | null | undefined;
1199
+ customFields?: {
1200
+ id: string;
1201
+ createdAt: Date;
1202
+ updatedAt: Date;
1203
+ deletedAt: Date | null;
1204
+ attribute: {
1205
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1206
+ id: string;
1207
+ position: number;
1208
+ createdAt: Date;
1209
+ updatedAt: Date;
1210
+ deletedAt: Date | null;
1211
+ systemName: string;
1212
+ displayName: string;
1213
+ isDefault: boolean;
1214
+ isArchived: boolean;
1215
+ isRequired: boolean;
1216
+ isUnique: boolean;
1217
+ };
1218
+ textValue: string | null;
1219
+ booleanValue: boolean | null;
1220
+ numberValue: number | null;
1221
+ dateValue: Date | null;
1222
+ }[] | undefined;
1223
+ };
1224
+ requestId: string;
1225
+ }, {
1226
+ data: {
1227
+ id: string;
1228
+ createdAt: Date;
1229
+ updatedAt: Date;
1230
+ deletedAt: Date | null;
1231
+ name?: string | undefined;
1232
+ phone?: string | null | undefined;
1233
+ address?: string | null | undefined;
1234
+ industry?: string | null | undefined;
1235
+ customFields?: {
1236
+ id: string;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ deletedAt: Date | null;
1240
+ attribute: {
1241
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1242
+ id: string;
1243
+ position: number;
1244
+ createdAt: Date;
1245
+ updatedAt: Date;
1246
+ deletedAt: Date | null;
1247
+ systemName: string;
1248
+ displayName: string;
1249
+ isDefault: boolean;
1250
+ isArchived: boolean;
1251
+ isRequired: boolean;
1252
+ isUnique: boolean;
1253
+ };
1254
+ textValue: string | null;
1255
+ booleanValue: boolean | null;
1256
+ numberValue: number | null;
1257
+ dateValue: Date | null;
1258
+ }[] | undefined;
1259
+ };
1260
+ requestId: string;
1261
+ }>;
1262
+ 400: z.ZodObject<{
1263
+ message: z.ZodString;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ message: string;
1266
+ }, {
1267
+ message: string;
1268
+ }>;
1269
+ 409: z.ZodObject<{
1270
+ message: z.ZodString;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ message: string;
1273
+ }, {
1274
+ message: string;
1275
+ }>;
1276
+ 500: z.ZodObject<{
1277
+ message: z.ZodString;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ message: string;
1280
+ }, {
1281
+ message: string;
1282
+ }>;
1283
+ 401: z.ZodObject<{
1284
+ message: z.ZodString;
1285
+ error: z.ZodAny;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ message: string;
1288
+ error?: any;
1289
+ }, {
1290
+ message: string;
1291
+ error?: any;
1292
+ }>;
1293
+ 404: z.ZodObject<{
1294
+ message: z.ZodString;
1295
+ error: z.ZodAny;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ message: string;
1298
+ error?: any;
1299
+ }, {
1300
+ message: string;
1301
+ error?: any;
1302
+ }>;
1303
+ 422: z.ZodObject<{
1304
+ message: z.ZodString;
1305
+ error: z.ZodAny;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ message: string;
1308
+ error?: any;
1309
+ }, {
1310
+ message: string;
1311
+ error?: any;
1312
+ }>;
1313
+ };
1314
+ path: "companies/:id";
1315
+ };
1316
+ getAll: {
1317
+ summary: "Get all companies";
1318
+ method: "GET";
1319
+ query: z.ZodObject<{
1320
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1321
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1322
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1323
+ industry: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1324
+ name: z.ZodOptional<z.ZodString>;
1325
+ address: z.ZodOptional<z.ZodString>;
1326
+ phone: z.ZodOptional<z.ZodString>;
1327
+ selectedDate: z.ZodOptional<z.ZodString>;
1328
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1329
+ attributeId: z.ZodString;
1330
+ type: z.ZodString;
1331
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ type: string;
1334
+ value: (string | string[]) & (string | string[] | undefined);
1335
+ attributeId: string;
1336
+ }, {
1337
+ type: string;
1338
+ value: (string | string[]) & (string | string[] | undefined);
1339
+ attributeId: string;
1340
+ }>, "many">>;
1341
+ }, "strip", z.ZodTypeAny, {
1342
+ page?: number | undefined;
1343
+ pageSize?: number | undefined;
1344
+ keyword?: string | undefined;
1345
+ industry?: string[] | undefined;
1346
+ name?: string | undefined;
1347
+ address?: string | undefined;
1348
+ phone?: string | undefined;
1349
+ selectedDate?: string | undefined;
1350
+ customFields?: {
1351
+ type: string;
1352
+ value: (string | string[]) & (string | string[] | undefined);
1353
+ attributeId: string;
1354
+ }[] | undefined;
1355
+ }, {
1356
+ page?: number | undefined;
1357
+ pageSize?: number | undefined;
1358
+ keyword?: string | undefined;
1359
+ industry?: string[] | undefined;
1360
+ name?: string | undefined;
1361
+ address?: string | undefined;
1362
+ phone?: string | undefined;
1363
+ selectedDate?: string | undefined;
1364
+ customFields?: {
1365
+ type: string;
1366
+ value: (string | string[]) & (string | string[] | undefined);
1367
+ attributeId: string;
1368
+ }[] | undefined;
1369
+ }>;
1370
+ responses: {
1371
+ 200: z.ZodObject<{
1372
+ requestId: z.ZodString;
1373
+ page: z.ZodNumber;
1374
+ pageSize: z.ZodNumber;
1375
+ total: z.ZodNumber;
1376
+ lastPage: z.ZodNumber;
1377
+ data: z.ZodArray<z.ZodObject<{
1378
+ id: z.ZodString;
1379
+ createdAt: z.ZodDate;
1380
+ updatedAt: z.ZodDate;
1381
+ deletedAt: z.ZodNullable<z.ZodDate>;
1382
+ name: z.ZodOptional<z.ZodString>;
1383
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1384
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1385
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1386
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1387
+ id: z.ZodString;
1388
+ createdAt: z.ZodDate;
1389
+ updatedAt: z.ZodDate;
1390
+ deletedAt: z.ZodNullable<z.ZodDate>;
1391
+ textValue: z.ZodNullable<z.ZodString>;
1392
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1393
+ numberValue: z.ZodNullable<z.ZodNumber>;
1394
+ dateValue: z.ZodNullable<z.ZodDate>;
1395
+ attribute: z.ZodObject<Omit<{
1396
+ id: z.ZodString;
1397
+ createdAt: z.ZodDate;
1398
+ updatedAt: z.ZodDate;
1399
+ deletedAt: z.ZodNullable<z.ZodDate>;
1400
+ systemName: z.ZodString;
1401
+ displayName: z.ZodString;
1402
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1403
+ position: z.ZodNumber;
1404
+ isDefault: z.ZodBoolean;
1405
+ isArchived: z.ZodBoolean;
1406
+ isRequired: z.ZodBoolean;
1407
+ isUnique: z.ZodBoolean;
1408
+ options: z.ZodArray<z.ZodObject<{
1409
+ position: z.ZodNumber;
1410
+ value: z.ZodString;
1411
+ label: z.ZodString;
1412
+ isDefault: z.ZodBoolean;
1413
+ id: z.ZodString;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ id: string;
1416
+ position: number;
1417
+ value: string;
1418
+ label: string;
1419
+ isDefault: boolean;
1420
+ }, {
1421
+ id: string;
1422
+ position: number;
1423
+ value: string;
1424
+ label: string;
1425
+ isDefault: boolean;
1426
+ }>, "many">;
1427
+ group: z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ createdAt: z.ZodDate;
1430
+ updatedAt: z.ZodDate;
1431
+ deletedAt: z.ZodNullable<z.ZodDate>;
1432
+ systemName: z.ZodString;
1433
+ displayName: z.ZodString;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ id: string;
1436
+ createdAt: Date;
1437
+ updatedAt: Date;
1438
+ deletedAt: Date | null;
1439
+ systemName: string;
1440
+ displayName: string;
1441
+ }, {
1442
+ id: string;
1443
+ createdAt: Date;
1444
+ updatedAt: Date;
1445
+ deletedAt: Date | null;
1446
+ systemName: string;
1447
+ displayName: string;
1448
+ }>;
1449
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1450
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1451
+ id: string;
1452
+ position: number;
1453
+ createdAt: Date;
1454
+ updatedAt: Date;
1455
+ deletedAt: Date | null;
1456
+ systemName: string;
1457
+ displayName: string;
1458
+ isDefault: boolean;
1459
+ isArchived: boolean;
1460
+ isRequired: boolean;
1461
+ isUnique: boolean;
1462
+ }, {
1463
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1464
+ id: string;
1465
+ position: number;
1466
+ createdAt: Date;
1467
+ updatedAt: Date;
1468
+ deletedAt: Date | null;
1469
+ systemName: string;
1470
+ displayName: string;
1471
+ isDefault: boolean;
1472
+ isArchived: boolean;
1473
+ isRequired: boolean;
1474
+ isUnique: boolean;
1475
+ }>;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ id: string;
1478
+ createdAt: Date;
1479
+ updatedAt: Date;
1480
+ deletedAt: Date | null;
1481
+ attribute: {
1482
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1483
+ id: string;
1484
+ position: number;
1485
+ createdAt: Date;
1486
+ updatedAt: Date;
1487
+ deletedAt: Date | null;
1488
+ systemName: string;
1489
+ displayName: string;
1490
+ isDefault: boolean;
1491
+ isArchived: boolean;
1492
+ isRequired: boolean;
1493
+ isUnique: boolean;
1494
+ };
1495
+ textValue: string | null;
1496
+ booleanValue: boolean | null;
1497
+ numberValue: number | null;
1498
+ dateValue: Date | null;
1499
+ }, {
1500
+ id: string;
1501
+ createdAt: Date;
1502
+ updatedAt: Date;
1503
+ deletedAt: Date | null;
1504
+ attribute: {
1505
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1506
+ id: string;
1507
+ position: number;
1508
+ createdAt: Date;
1509
+ updatedAt: Date;
1510
+ deletedAt: Date | null;
1511
+ systemName: string;
1512
+ displayName: string;
1513
+ isDefault: boolean;
1514
+ isArchived: boolean;
1515
+ isRequired: boolean;
1516
+ isUnique: boolean;
1517
+ };
1518
+ textValue: string | null;
1519
+ booleanValue: boolean | null;
1520
+ numberValue: number | null;
1521
+ dateValue: Date | null;
1522
+ }>, "many">>;
1523
+ }, "strip", z.ZodTypeAny, {
1524
+ id: string;
1525
+ createdAt: Date;
1526
+ updatedAt: Date;
1527
+ deletedAt: Date | null;
1528
+ name?: string | undefined;
1529
+ phone?: string | null | undefined;
1530
+ address?: string | null | undefined;
1531
+ industry?: string | null | undefined;
1532
+ customFields?: {
1533
+ id: string;
1534
+ createdAt: Date;
1535
+ updatedAt: Date;
1536
+ deletedAt: Date | null;
1537
+ attribute: {
1538
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1539
+ id: string;
1540
+ position: number;
1541
+ createdAt: Date;
1542
+ updatedAt: Date;
1543
+ deletedAt: Date | null;
1544
+ systemName: string;
1545
+ displayName: string;
1546
+ isDefault: boolean;
1547
+ isArchived: boolean;
1548
+ isRequired: boolean;
1549
+ isUnique: boolean;
1550
+ };
1551
+ textValue: string | null;
1552
+ booleanValue: boolean | null;
1553
+ numberValue: number | null;
1554
+ dateValue: Date | null;
1555
+ }[] | undefined;
1556
+ }, {
1557
+ id: string;
1558
+ createdAt: Date;
1559
+ updatedAt: Date;
1560
+ deletedAt: Date | null;
1561
+ name?: string | undefined;
1562
+ phone?: string | null | undefined;
1563
+ address?: string | null | undefined;
1564
+ industry?: string | null | undefined;
1565
+ customFields?: {
1566
+ id: string;
1567
+ createdAt: Date;
1568
+ updatedAt: Date;
1569
+ deletedAt: Date | null;
1570
+ attribute: {
1571
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1572
+ id: string;
1573
+ position: number;
1574
+ createdAt: Date;
1575
+ updatedAt: Date;
1576
+ deletedAt: Date | null;
1577
+ systemName: string;
1578
+ displayName: string;
1579
+ isDefault: boolean;
1580
+ isArchived: boolean;
1581
+ isRequired: boolean;
1582
+ isUnique: boolean;
1583
+ };
1584
+ textValue: string | null;
1585
+ booleanValue: boolean | null;
1586
+ numberValue: number | null;
1587
+ dateValue: Date | null;
1588
+ }[] | undefined;
1589
+ }>, "many">;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ data: {
1592
+ id: string;
1593
+ createdAt: Date;
1594
+ updatedAt: Date;
1595
+ deletedAt: Date | null;
1596
+ name?: string | undefined;
1597
+ phone?: string | null | undefined;
1598
+ address?: string | null | undefined;
1599
+ industry?: string | null | undefined;
1600
+ customFields?: {
1601
+ id: string;
1602
+ createdAt: Date;
1603
+ updatedAt: Date;
1604
+ deletedAt: Date | null;
1605
+ attribute: {
1606
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1607
+ id: string;
1608
+ position: number;
1609
+ createdAt: Date;
1610
+ updatedAt: Date;
1611
+ deletedAt: Date | null;
1612
+ systemName: string;
1613
+ displayName: string;
1614
+ isDefault: boolean;
1615
+ isArchived: boolean;
1616
+ isRequired: boolean;
1617
+ isUnique: boolean;
1618
+ };
1619
+ textValue: string | null;
1620
+ booleanValue: boolean | null;
1621
+ numberValue: number | null;
1622
+ dateValue: Date | null;
1623
+ }[] | undefined;
1624
+ }[];
1625
+ total: number;
1626
+ page: number;
1627
+ pageSize: number;
1628
+ lastPage: number;
1629
+ requestId: string;
1630
+ }, {
1631
+ data: {
1632
+ id: string;
1633
+ createdAt: Date;
1634
+ updatedAt: Date;
1635
+ deletedAt: Date | null;
1636
+ name?: string | undefined;
1637
+ phone?: string | null | undefined;
1638
+ address?: string | null | undefined;
1639
+ industry?: string | null | undefined;
1640
+ customFields?: {
1641
+ id: string;
1642
+ createdAt: Date;
1643
+ updatedAt: Date;
1644
+ deletedAt: Date | null;
1645
+ attribute: {
1646
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1647
+ id: string;
1648
+ position: number;
1649
+ createdAt: Date;
1650
+ updatedAt: Date;
1651
+ deletedAt: Date | null;
1652
+ systemName: string;
1653
+ displayName: string;
1654
+ isDefault: boolean;
1655
+ isArchived: boolean;
1656
+ isRequired: boolean;
1657
+ isUnique: boolean;
1658
+ };
1659
+ textValue: string | null;
1660
+ booleanValue: boolean | null;
1661
+ numberValue: number | null;
1662
+ dateValue: Date | null;
1663
+ }[] | undefined;
1664
+ }[];
1665
+ total: number;
1666
+ page: number;
1667
+ pageSize: number;
1668
+ lastPage: number;
1669
+ requestId: string;
1670
+ }>;
1671
+ 400: z.ZodObject<{
1672
+ message: z.ZodString;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ message: string;
1675
+ }, {
1676
+ message: string;
1677
+ }>;
1678
+ 409: z.ZodObject<{
1679
+ message: z.ZodString;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ message: string;
1682
+ }, {
1683
+ message: string;
1684
+ }>;
1685
+ 500: z.ZodObject<{
1686
+ message: z.ZodString;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ message: string;
1689
+ }, {
1690
+ message: string;
1691
+ }>;
1692
+ 401: z.ZodObject<{
1693
+ message: z.ZodString;
1694
+ error: z.ZodAny;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ message: string;
1697
+ error?: any;
1698
+ }, {
1699
+ message: string;
1700
+ error?: any;
1701
+ }>;
1702
+ 404: z.ZodObject<{
1703
+ message: z.ZodString;
1704
+ error: z.ZodAny;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ message: string;
1707
+ error?: any;
1708
+ }, {
1709
+ message: string;
1710
+ error?: any;
1711
+ }>;
1712
+ 422: z.ZodObject<{
1713
+ message: z.ZodString;
1714
+ error: z.ZodAny;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ message: string;
1717
+ error?: any;
1718
+ }, {
1719
+ message: string;
1720
+ error?: any;
1721
+ }>;
1722
+ };
1723
+ path: "companies";
1724
+ };
1725
+ };
1726
+ //# sourceMappingURL=index.d.ts.map