@clientcasa/sdk 0.3.0 → 0.4.1

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 (387) hide show
  1. package/README.md +19 -24
  2. package/esm/funcs/catalog-items-list.js +1 -0
  3. package/esm/funcs/catalog-items-list.js.map +1 -1
  4. package/esm/funcs/{inquiries-get.d.ts → form-submissions-get.d.ts} +3 -3
  5. package/esm/funcs/form-submissions-get.d.ts.map +1 -0
  6. package/esm/funcs/{inquiries-delete.js → form-submissions-get.js} +9 -8
  7. package/esm/funcs/form-submissions-get.js.map +1 -0
  8. package/esm/funcs/form-submissions-list.d.ts +21 -0
  9. package/esm/funcs/form-submissions-list.d.ts.map +1 -0
  10. package/esm/funcs/{inquiries-list.js → form-submissions-list.js} +14 -9
  11. package/esm/funcs/form-submissions-list.js.map +1 -0
  12. package/esm/funcs/{proposals-get.d.ts → forms-and-agreements-get.d.ts} +2 -2
  13. package/esm/funcs/forms-and-agreements-get.d.ts.map +1 -0
  14. package/esm/funcs/{proposals-get.js → forms-and-agreements-get.js} +6 -6
  15. package/esm/funcs/forms-and-agreements-get.js.map +1 -0
  16. package/esm/funcs/{inquiries-delete.d.ts → forms-and-agreements-list.d.ts} +6 -3
  17. package/esm/funcs/forms-and-agreements-list.d.ts.map +1 -0
  18. package/esm/funcs/{proposals-list.js → forms-and-agreements-list.js} +8 -8
  19. package/esm/funcs/forms-and-agreements-list.js.map +1 -0
  20. package/esm/funcs/{proposals-list.d.ts → forms-get.d.ts} +4 -6
  21. package/esm/funcs/forms-get.d.ts.map +1 -0
  22. package/esm/funcs/{inquiries-get.js → forms-get.js} +7 -7
  23. package/esm/funcs/forms-get.js.map +1 -0
  24. package/esm/funcs/{inquiries-list.d.ts → forms-list.d.ts} +3 -3
  25. package/esm/funcs/forms-list.d.ts.map +1 -0
  26. package/esm/funcs/forms-list.js +138 -0
  27. package/esm/funcs/forms-list.js.map +1 -0
  28. package/esm/funcs/invoices-create.d.ts +1 -1
  29. package/esm/funcs/invoices-create.js +1 -1
  30. package/esm/funcs/invoices-list.js +1 -0
  31. package/esm/funcs/invoices-list.js.map +1 -1
  32. package/esm/funcs/milestones-create.d.ts +1 -1
  33. package/esm/funcs/milestones-create.js +1 -1
  34. package/esm/hooks/types.d.ts +1 -0
  35. package/esm/hooks/types.d.ts.map +1 -1
  36. package/esm/lib/config.d.ts +3 -3
  37. package/esm/lib/config.js +3 -3
  38. package/esm/lib/sdks.d.ts.map +1 -1
  39. package/esm/lib/sdks.js +13 -4
  40. package/esm/lib/sdks.js.map +1 -1
  41. package/esm/models/api-error.d.ts +1 -0
  42. package/esm/models/api-error.d.ts.map +1 -1
  43. package/esm/models/api-error.js +1 -0
  44. package/esm/models/api-error.js.map +1 -1
  45. package/esm/models/catalog-item.d.ts +17 -0
  46. package/esm/models/catalog-item.d.ts.map +1 -1
  47. package/esm/models/catalog-item.js +15 -0
  48. package/esm/models/catalog-item.js.map +1 -1
  49. package/esm/models/client-create.d.ts +5 -1
  50. package/esm/models/client-create.d.ts.map +1 -1
  51. package/esm/models/client-create.js +5 -1
  52. package/esm/models/client-create.js.map +1 -1
  53. package/esm/models/client-document-list.d.ts +13 -0
  54. package/esm/models/client-document-list.d.ts.map +1 -0
  55. package/esm/models/client-document-list.js +16 -0
  56. package/esm/models/client-document-list.js.map +1 -0
  57. package/esm/models/client-document.d.ts +70 -0
  58. package/esm/models/client-document.d.ts.map +1 -0
  59. package/esm/models/client-document.js +45 -0
  60. package/esm/models/client-document.js.map +1 -0
  61. package/esm/models/client-update.d.ts +5 -1
  62. package/esm/models/client-update.d.ts.map +1 -1
  63. package/esm/models/client-update.js +5 -1
  64. package/esm/models/client-update.js.map +1 -1
  65. package/esm/models/client.d.ts +5 -1
  66. package/esm/models/client.d.ts.map +1 -1
  67. package/esm/models/client.js +5 -1
  68. package/esm/models/client.js.map +1 -1
  69. package/esm/models/contact.d.ts +1 -1
  70. package/esm/models/contact.d.ts.map +1 -1
  71. package/esm/models/contact.js +1 -1
  72. package/esm/models/contact.js.map +1 -1
  73. package/esm/models/contract-create.d.ts +0 -5
  74. package/esm/models/contract-create.d.ts.map +1 -1
  75. package/esm/models/contract-create.js +0 -1
  76. package/esm/models/contract-create.js.map +1 -1
  77. package/esm/models/contract.d.ts +0 -4
  78. package/esm/models/contract.d.ts.map +1 -1
  79. package/esm/models/contract.js +0 -1
  80. package/esm/models/contract.js.map +1 -1
  81. package/esm/models/form-list.d.ts +13 -0
  82. package/esm/models/form-list.d.ts.map +1 -0
  83. package/esm/models/form-list.js +17 -0
  84. package/esm/models/form-list.js.map +1 -0
  85. package/esm/models/form-submission-answer.d.ts +12 -0
  86. package/esm/models/form-submission-answer.d.ts.map +1 -0
  87. package/esm/models/form-submission-answer.js +16 -0
  88. package/esm/models/form-submission-answer.js.map +1 -0
  89. package/esm/models/form-submission-list.d.ts +13 -0
  90. package/esm/models/form-submission-list.d.ts.map +1 -0
  91. package/esm/models/form-submission-list.js +16 -0
  92. package/esm/models/form-submission-list.js.map +1 -0
  93. package/esm/models/form-submission.d.ts +54 -0
  94. package/esm/models/form-submission.d.ts.map +1 -0
  95. package/esm/models/form-submission.js +38 -0
  96. package/esm/models/form-submission.js.map +1 -0
  97. package/esm/models/form.d.ts +36 -0
  98. package/esm/models/form.d.ts.map +1 -0
  99. package/esm/models/form.js +30 -0
  100. package/esm/models/form.js.map +1 -0
  101. package/esm/models/index.d.ts +7 -8
  102. package/esm/models/index.d.ts.map +1 -1
  103. package/esm/models/index.js +7 -8
  104. package/esm/models/index.js.map +1 -1
  105. package/esm/models/invoice.d.ts +4 -1
  106. package/esm/models/invoice.d.ts.map +1 -1
  107. package/esm/models/invoice.js +1 -1
  108. package/esm/models/invoice.js.map +1 -1
  109. package/esm/models/milestone-create.d.ts +1 -1
  110. package/esm/models/milestone-create.js +1 -1
  111. package/esm/models/milestone-create.js.map +1 -1
  112. package/esm/models/milestone.d.ts +1 -1
  113. package/esm/models/milestone.js +1 -1
  114. package/esm/models/milestone.js.map +1 -1
  115. package/esm/models/operations/get-client-document.d.ts +27 -0
  116. package/esm/models/operations/get-client-document.d.ts.map +1 -0
  117. package/esm/models/operations/get-client-document.js +20 -0
  118. package/esm/models/operations/get-client-document.js.map +1 -0
  119. package/esm/models/operations/get-form-submission.d.ts +27 -0
  120. package/esm/models/operations/get-form-submission.d.ts.map +1 -0
  121. package/esm/models/operations/get-form-submission.js +20 -0
  122. package/esm/models/operations/get-form-submission.js.map +1 -0
  123. package/esm/models/operations/get-form.d.ts +27 -0
  124. package/esm/models/operations/get-form.d.ts.map +1 -0
  125. package/esm/models/operations/get-form.js +20 -0
  126. package/esm/models/operations/get-form.js.map +1 -0
  127. package/esm/models/operations/index.d.ts +6 -10
  128. package/esm/models/operations/index.d.ts.map +1 -1
  129. package/esm/models/operations/index.js +6 -10
  130. package/esm/models/operations/index.js.map +1 -1
  131. package/esm/models/operations/list-catalog-items.d.ts +9 -0
  132. package/esm/models/operations/list-catalog-items.d.ts.map +1 -1
  133. package/esm/models/operations/list-catalog-items.js +8 -0
  134. package/esm/models/operations/list-catalog-items.js.map +1 -1
  135. package/esm/models/operations/list-client-documents.d.ts +61 -0
  136. package/esm/models/operations/list-client-documents.d.ts.map +1 -0
  137. package/esm/models/operations/list-client-documents.js +50 -0
  138. package/esm/models/operations/list-client-documents.js.map +1 -0
  139. package/esm/models/operations/list-clients.d.ts +5 -1
  140. package/esm/models/operations/list-clients.d.ts.map +1 -1
  141. package/esm/models/operations/list-clients.js +5 -1
  142. package/esm/models/operations/list-clients.js.map +1 -1
  143. package/esm/models/operations/list-form-submissions.d.ts +64 -0
  144. package/esm/models/operations/list-form-submissions.d.ts.map +1 -0
  145. package/esm/models/operations/list-form-submissions.js +51 -0
  146. package/esm/models/operations/list-form-submissions.js.map +1 -0
  147. package/esm/models/operations/list-forms.d.ts +47 -0
  148. package/esm/models/operations/list-forms.d.ts.map +1 -0
  149. package/esm/models/operations/list-forms.js +43 -0
  150. package/esm/models/operations/list-forms.js.map +1 -0
  151. package/esm/models/operations/list-invoices.d.ts +18 -1
  152. package/esm/models/operations/list-invoices.d.ts.map +1 -1
  153. package/esm/models/operations/list-invoices.js +10 -1
  154. package/esm/models/operations/list-invoices.js.map +1 -1
  155. package/esm/models/operations/list-milestones.d.ts +1 -1
  156. package/esm/models/operations/list-milestones.js +1 -1
  157. package/esm/models/operations/list-milestones.js.map +1 -1
  158. package/esm/models/operations/list-payments.d.ts +4 -4
  159. package/esm/models/operations/list-payments.d.ts.map +1 -1
  160. package/esm/models/operations/list-payments.js +3 -3
  161. package/esm/models/operations/list-payments.js.map +1 -1
  162. package/esm/models/operations/list-webhooks.d.ts +10 -11
  163. package/esm/models/operations/list-webhooks.d.ts.map +1 -1
  164. package/esm/models/operations/list-webhooks.js +10 -11
  165. package/esm/models/operations/list-webhooks.js.map +1 -1
  166. package/esm/models/webhook-create.d.ts +10 -11
  167. package/esm/models/webhook-create.d.ts.map +1 -1
  168. package/esm/models/webhook-create.js +10 -11
  169. package/esm/models/webhook-create.js.map +1 -1
  170. package/esm/models/webhook-update.d.ts +10 -11
  171. package/esm/models/webhook-update.d.ts.map +1 -1
  172. package/esm/models/webhook-update.js +10 -11
  173. package/esm/models/webhook-update.js.map +1 -1
  174. package/esm/models/webhook.d.ts +10 -11
  175. package/esm/models/webhook.d.ts.map +1 -1
  176. package/esm/models/webhook.js +10 -11
  177. package/esm/models/webhook.js.map +1 -1
  178. package/esm/sdk/form-submissions.d.ts +20 -0
  179. package/esm/sdk/form-submissions.d.ts.map +1 -0
  180. package/esm/sdk/form-submissions.js +26 -0
  181. package/esm/sdk/form-submissions.js.map +1 -0
  182. package/esm/sdk/forms-and-agreements.d.ts +17 -0
  183. package/esm/sdk/forms-and-agreements.d.ts.map +1 -0
  184. package/esm/sdk/forms-and-agreements.js +23 -0
  185. package/esm/sdk/forms-and-agreements.js.map +1 -0
  186. package/esm/sdk/forms.d.ts +17 -0
  187. package/esm/sdk/forms.d.ts.map +1 -0
  188. package/esm/sdk/forms.js +23 -0
  189. package/esm/sdk/forms.js.map +1 -0
  190. package/esm/sdk/invoices.d.ts +1 -1
  191. package/esm/sdk/invoices.js +1 -1
  192. package/esm/sdk/milestones.d.ts +1 -1
  193. package/esm/sdk/milestones.js +1 -1
  194. package/esm/sdk/sdk.d.ts +9 -6
  195. package/esm/sdk/sdk.d.ts.map +1 -1
  196. package/esm/sdk/sdk.js +15 -10
  197. package/esm/sdk/sdk.js.map +1 -1
  198. package/jsr.json +1 -1
  199. package/package.json +1 -1
  200. package/src/funcs/catalog-items-list.ts +1 -0
  201. package/src/funcs/{proposals-delete.ts → form-submissions-get.ts} +16 -14
  202. package/src/funcs/form-submissions-list.ts +284 -0
  203. package/src/funcs/{proposals-get.ts → forms-and-agreements-get.ts} +13 -12
  204. package/src/funcs/{proposals-list.ts → forms-and-agreements-list.ts} +15 -15
  205. package/src/funcs/{inquiries-get.ts → forms-get.ts} +13 -13
  206. package/src/funcs/{inquiries-list.ts → forms-list.ts} +17 -22
  207. package/src/funcs/invoices-create.ts +1 -1
  208. package/src/funcs/invoices-list.ts +1 -0
  209. package/src/funcs/milestones-create.ts +1 -1
  210. package/src/hooks/types.ts +1 -0
  211. package/src/lib/config.ts +3 -3
  212. package/src/lib/sdks.ts +13 -4
  213. package/src/models/api-error.ts +1 -0
  214. package/src/models/catalog-item.ts +28 -0
  215. package/src/models/client-create.ts +5 -1
  216. package/src/models/client-document-list.ts +40 -0
  217. package/src/models/client-document.ts +114 -0
  218. package/src/models/client-update.ts +5 -1
  219. package/src/models/client.ts +5 -1
  220. package/src/models/contact.ts +2 -2
  221. package/src/models/contract-create.ts +0 -6
  222. package/src/models/contract.ts +0 -5
  223. package/src/models/{inquiry-list.ts → form-list.ts} +9 -9
  224. package/src/models/form-submission-answer.ts +35 -0
  225. package/src/models/form-submission-list.ts +40 -0
  226. package/src/models/form-submission.ts +99 -0
  227. package/src/models/form.ts +67 -0
  228. package/src/models/index.ts +7 -8
  229. package/src/models/invoice.ts +5 -1
  230. package/src/models/milestone-create.ts +1 -1
  231. package/src/models/milestone.ts +1 -1
  232. package/src/models/operations/get-client-document.ts +61 -0
  233. package/src/models/operations/get-form-submission.ts +61 -0
  234. package/src/models/operations/get-form.ts +55 -0
  235. package/src/models/operations/index.ts +6 -10
  236. package/src/models/operations/list-catalog-items.ts +13 -0
  237. package/src/models/operations/list-client-documents.ts +132 -0
  238. package/src/models/operations/list-clients.ts +5 -1
  239. package/src/models/operations/list-form-submissions.ts +142 -0
  240. package/src/models/operations/list-forms.ts +112 -0
  241. package/src/models/operations/list-invoices.ts +23 -1
  242. package/src/models/operations/list-milestones.ts +1 -1
  243. package/src/models/operations/list-payments.ts +7 -5
  244. package/src/models/operations/list-webhooks.ts +10 -11
  245. package/src/models/webhook-create.ts +10 -11
  246. package/src/models/webhook-update.ts +10 -11
  247. package/src/models/webhook.ts +10 -11
  248. package/src/sdk/form-submissions.ts +50 -0
  249. package/src/sdk/forms-and-agreements.ts +47 -0
  250. package/src/sdk/forms.ts +45 -0
  251. package/src/sdk/invoices.ts +1 -1
  252. package/src/sdk/milestones.ts +1 -1
  253. package/src/sdk/sdk.ts +18 -12
  254. package/esm/funcs/inquiries-create.d.ts +0 -19
  255. package/esm/funcs/inquiries-create.d.ts.map +0 -1
  256. package/esm/funcs/inquiries-create.js +0 -96
  257. package/esm/funcs/inquiries-create.js.map +0 -1
  258. package/esm/funcs/inquiries-delete.d.ts.map +0 -1
  259. package/esm/funcs/inquiries-delete.js.map +0 -1
  260. package/esm/funcs/inquiries-get.d.ts.map +0 -1
  261. package/esm/funcs/inquiries-get.js.map +0 -1
  262. package/esm/funcs/inquiries-list.d.ts.map +0 -1
  263. package/esm/funcs/inquiries-list.js.map +0 -1
  264. package/esm/funcs/inquiries-update.d.ts +0 -19
  265. package/esm/funcs/inquiries-update.d.ts.map +0 -1
  266. package/esm/funcs/inquiries-update.js +0 -111
  267. package/esm/funcs/inquiries-update.js.map +0 -1
  268. package/esm/funcs/proposals-create.d.ts +0 -19
  269. package/esm/funcs/proposals-create.d.ts.map +0 -1
  270. package/esm/funcs/proposals-create.js +0 -96
  271. package/esm/funcs/proposals-create.js.map +0 -1
  272. package/esm/funcs/proposals-delete.d.ts +0 -15
  273. package/esm/funcs/proposals-delete.d.ts.map +0 -1
  274. package/esm/funcs/proposals-delete.js +0 -106
  275. package/esm/funcs/proposals-delete.js.map +0 -1
  276. package/esm/funcs/proposals-get.d.ts.map +0 -1
  277. package/esm/funcs/proposals-get.js.map +0 -1
  278. package/esm/funcs/proposals-list.d.ts.map +0 -1
  279. package/esm/funcs/proposals-list.js.map +0 -1
  280. package/esm/funcs/proposals-update.d.ts +0 -19
  281. package/esm/funcs/proposals-update.d.ts.map +0 -1
  282. package/esm/funcs/proposals-update.js +0 -111
  283. package/esm/funcs/proposals-update.js.map +0 -1
  284. package/esm/models/inquiry-create.d.ts +0 -45
  285. package/esm/models/inquiry-create.d.ts.map +0 -1
  286. package/esm/models/inquiry-create.js +0 -28
  287. package/esm/models/inquiry-create.js.map +0 -1
  288. package/esm/models/inquiry-list.d.ts +0 -13
  289. package/esm/models/inquiry-list.d.ts.map +0 -1
  290. package/esm/models/inquiry-list.js +0 -17
  291. package/esm/models/inquiry-list.js.map +0 -1
  292. package/esm/models/inquiry-update.d.ts +0 -45
  293. package/esm/models/inquiry-update.d.ts.map +0 -1
  294. package/esm/models/inquiry-update.js +0 -29
  295. package/esm/models/inquiry-update.js.map +0 -1
  296. package/esm/models/inquiry.d.ts +0 -78
  297. package/esm/models/inquiry.d.ts.map +0 -1
  298. package/esm/models/inquiry.js +0 -51
  299. package/esm/models/inquiry.js.map +0 -1
  300. package/esm/models/operations/create-inquiry.d.ts +0 -30
  301. package/esm/models/operations/create-inquiry.d.ts.map +0 -1
  302. package/esm/models/operations/create-inquiry.js +0 -27
  303. package/esm/models/operations/create-inquiry.js.map +0 -1
  304. package/esm/models/operations/create-proposal.d.ts +0 -30
  305. package/esm/models/operations/create-proposal.d.ts.map +0 -1
  306. package/esm/models/operations/create-proposal.js +0 -27
  307. package/esm/models/operations/create-proposal.js.map +0 -1
  308. package/esm/models/operations/delete-inquiry.d.ts +0 -27
  309. package/esm/models/operations/delete-inquiry.d.ts.map +0 -1
  310. package/esm/models/operations/delete-inquiry.js +0 -20
  311. package/esm/models/operations/delete-inquiry.js.map +0 -1
  312. package/esm/models/operations/delete-proposal.d.ts +0 -27
  313. package/esm/models/operations/delete-proposal.d.ts.map +0 -1
  314. package/esm/models/operations/delete-proposal.js +0 -20
  315. package/esm/models/operations/delete-proposal.js.map +0 -1
  316. package/esm/models/operations/get-inquiry.d.ts +0 -27
  317. package/esm/models/operations/get-inquiry.d.ts.map +0 -1
  318. package/esm/models/operations/get-inquiry.js +0 -20
  319. package/esm/models/operations/get-inquiry.js.map +0 -1
  320. package/esm/models/operations/get-proposal.d.ts +0 -27
  321. package/esm/models/operations/get-proposal.d.ts.map +0 -1
  322. package/esm/models/operations/get-proposal.js +0 -20
  323. package/esm/models/operations/get-proposal.js.map +0 -1
  324. package/esm/models/operations/list-inquiries.d.ts +0 -60
  325. package/esm/models/operations/list-inquiries.d.ts.map +0 -1
  326. package/esm/models/operations/list-inquiries.js +0 -55
  327. package/esm/models/operations/list-inquiries.js.map +0 -1
  328. package/esm/models/operations/list-proposals.d.ts +0 -56
  329. package/esm/models/operations/list-proposals.d.ts.map +0 -1
  330. package/esm/models/operations/list-proposals.js +0 -48
  331. package/esm/models/operations/list-proposals.js.map +0 -1
  332. package/esm/models/operations/update-inquiry.d.ts +0 -30
  333. package/esm/models/operations/update-inquiry.d.ts.map +0 -1
  334. package/esm/models/operations/update-inquiry.js +0 -22
  335. package/esm/models/operations/update-inquiry.js.map +0 -1
  336. package/esm/models/operations/update-proposal.d.ts +0 -30
  337. package/esm/models/operations/update-proposal.d.ts.map +0 -1
  338. package/esm/models/operations/update-proposal.js +0 -22
  339. package/esm/models/operations/update-proposal.js.map +0 -1
  340. package/esm/models/proposal-create.d.ts +0 -45
  341. package/esm/models/proposal-create.d.ts.map +0 -1
  342. package/esm/models/proposal-create.js +0 -26
  343. package/esm/models/proposal-create.js.map +0 -1
  344. package/esm/models/proposal-list.d.ts +0 -13
  345. package/esm/models/proposal-list.d.ts.map +0 -1
  346. package/esm/models/proposal-list.js +0 -16
  347. package/esm/models/proposal-list.js.map +0 -1
  348. package/esm/models/proposal-update.d.ts +0 -43
  349. package/esm/models/proposal-update.d.ts.map +0 -1
  350. package/esm/models/proposal-update.js +0 -27
  351. package/esm/models/proposal-update.js.map +0 -1
  352. package/esm/models/proposal.d.ts +0 -70
  353. package/esm/models/proposal.d.ts.map +0 -1
  354. package/esm/models/proposal.js +0 -52
  355. package/esm/models/proposal.js.map +0 -1
  356. package/esm/sdk/inquiries.d.ts +0 -35
  357. package/esm/sdk/inquiries.d.ts.map +0 -1
  358. package/esm/sdk/inquiries.js +0 -50
  359. package/esm/sdk/inquiries.js.map +0 -1
  360. package/esm/sdk/proposals.d.ts +0 -35
  361. package/esm/sdk/proposals.d.ts.map +0 -1
  362. package/esm/sdk/proposals.js +0 -50
  363. package/esm/sdk/proposals.js.map +0 -1
  364. package/src/funcs/inquiries-create.ts +0 -195
  365. package/src/funcs/inquiries-delete.ts +0 -201
  366. package/src/funcs/inquiries-update.ts +0 -206
  367. package/src/funcs/proposals-create.ts +0 -195
  368. package/src/funcs/proposals-update.ts +0 -206
  369. package/src/models/inquiry-create.ts +0 -72
  370. package/src/models/inquiry-update.ts +0 -80
  371. package/src/models/inquiry.ts +0 -123
  372. package/src/models/operations/create-inquiry.ts +0 -73
  373. package/src/models/operations/create-proposal.ts +0 -73
  374. package/src/models/operations/delete-inquiry.ts +0 -61
  375. package/src/models/operations/delete-proposal.ts +0 -61
  376. package/src/models/operations/get-inquiry.ts +0 -61
  377. package/src/models/operations/get-proposal.ts +0 -61
  378. package/src/models/operations/list-inquiries.ts +0 -130
  379. package/src/models/operations/list-proposals.ts +0 -123
  380. package/src/models/operations/update-inquiry.ts +0 -65
  381. package/src/models/operations/update-proposal.ts +0 -65
  382. package/src/models/proposal-create.ts +0 -86
  383. package/src/models/proposal-list.ts +0 -35
  384. package/src/models/proposal-update.ts +0 -84
  385. package/src/models/proposal.ts +0 -120
  386. package/src/sdk/inquiries.ts +0 -102
  387. package/src/sdk/proposals.ts +0 -102
@@ -12,6 +12,8 @@ export * from "./catalog-item-list.js";
12
12
  export * from "./catalog-item-update.js";
13
13
  export * from "./catalog-item.js";
14
14
  export * from "./client-create.js";
15
+ export * from "./client-document-list.js";
16
+ export * from "./client-document.js";
15
17
  export * from "./client-list.js";
16
18
  export * from "./client-update.js";
17
19
  export * from "./client.js";
@@ -23,10 +25,11 @@ export * from "./contract-create.js";
23
25
  export * from "./contract-list.js";
24
26
  export * from "./contract-update.js";
25
27
  export * from "./contract.js";
26
- export * from "./inquiry-create.js";
27
- export * from "./inquiry-list.js";
28
- export * from "./inquiry-update.js";
29
- export * from "./inquiry.js";
28
+ export * from "./form-list.js";
29
+ export * from "./form-submission-answer.js";
30
+ export * from "./form-submission-list.js";
31
+ export * from "./form-submission.js";
32
+ export * from "./form.js";
30
33
  export * from "./invoice-create.js";
31
34
  export * from "./invoice-line-item.js";
32
35
  export * from "./invoice-list.js";
@@ -47,10 +50,6 @@ export * from "./project-create.js";
47
50
  export * from "./project-list.js";
48
51
  export * from "./project-update.js";
49
52
  export * from "./project.js";
50
- export * from "./proposal-create.js";
51
- export * from "./proposal-list.js";
52
- export * from "./proposal-update.js";
53
- export * from "./proposal.js";
54
53
  export * from "./security.js";
55
54
  export * from "./time-entry-create.js";
56
55
  export * from "./time-entry-list.js";
@@ -19,7 +19,6 @@ export const InvoiceStatus = {
19
19
  Sent: "sent",
20
20
  Partial: "partial",
21
21
  Paid: "paid",
22
- Overdue: "overdue",
23
22
  Void: "void",
24
23
  } as const;
25
24
  export type InvoiceStatus = OpenEnum<typeof InvoiceStatus>;
@@ -50,6 +49,10 @@ export type Invoice = {
50
49
  total: number;
51
50
  amountPaid: number;
52
51
  balanceDue: number;
52
+ /**
53
+ * Derived (read-only): true when the invoice is past its due date with a balance still owing (status is sent or partial). Not a stored status.
54
+ */
55
+ overdue: boolean;
53
56
  paymentTerms: string | null;
54
57
  notes: string | null;
55
58
  /**
@@ -91,6 +94,7 @@ export const Invoice$inboundSchema: z.ZodMiniType<Invoice, unknown> = z.object({
91
94
  total: types.number(),
92
95
  amountPaid: types.number(),
93
96
  balanceDue: types.number(),
97
+ overdue: types.boolean(),
94
98
  paymentTerms: types.nullable(types.string()),
95
99
  notes: types.nullable(types.string()),
96
100
  paidAt: types.nullable(types.date()),
@@ -6,8 +6,8 @@ import * as z from "zod/v4-mini";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const MilestoneCreateParentType = {
9
- Proposals: "proposals",
10
9
  Projects: "projects",
10
+ ClientDocuments: "client-documents",
11
11
  } as const;
12
12
  export type MilestoneCreateParentType = ClosedEnum<
13
13
  typeof MilestoneCreateParentType
@@ -11,8 +11,8 @@ import * as types from "../types/primitives.js";
11
11
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
12
 
13
13
  export const MilestoneParentType = {
14
- Proposals: "proposals",
15
14
  Projects: "projects",
15
+ ClientDocuments: "client-documents",
16
16
  } as const;
17
17
  export type MilestoneParentType = OpenEnum<typeof MilestoneParentType>;
18
18
 
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetClientDocumentSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetClientDocumentRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetClientDocumentSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetClientDocumentSecurity$outboundSchema: z.ZodMiniType<
27
+ GetClientDocumentSecurity$Outbound,
28
+ GetClientDocumentSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getClientDocumentSecurityToJSON(
35
+ getClientDocumentSecurity: GetClientDocumentSecurity,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetClientDocumentSecurity$outboundSchema.parse(getClientDocumentSecurity),
39
+ );
40
+ }
41
+
42
+ /** @internal */
43
+ export type GetClientDocumentRequest$Outbound = {
44
+ id: string;
45
+ };
46
+
47
+ /** @internal */
48
+ export const GetClientDocumentRequest$outboundSchema: z.ZodMiniType<
49
+ GetClientDocumentRequest$Outbound,
50
+ GetClientDocumentRequest
51
+ > = z.object({
52
+ id: z.string(),
53
+ });
54
+
55
+ export function getClientDocumentRequestToJSON(
56
+ getClientDocumentRequest: GetClientDocumentRequest,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GetClientDocumentRequest$outboundSchema.parse(getClientDocumentRequest),
60
+ );
61
+ }
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetFormSubmissionSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetFormSubmissionRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetFormSubmissionSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetFormSubmissionSecurity$outboundSchema: z.ZodMiniType<
27
+ GetFormSubmissionSecurity$Outbound,
28
+ GetFormSubmissionSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getFormSubmissionSecurityToJSON(
35
+ getFormSubmissionSecurity: GetFormSubmissionSecurity,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetFormSubmissionSecurity$outboundSchema.parse(getFormSubmissionSecurity),
39
+ );
40
+ }
41
+
42
+ /** @internal */
43
+ export type GetFormSubmissionRequest$Outbound = {
44
+ id: string;
45
+ };
46
+
47
+ /** @internal */
48
+ export const GetFormSubmissionRequest$outboundSchema: z.ZodMiniType<
49
+ GetFormSubmissionRequest$Outbound,
50
+ GetFormSubmissionRequest
51
+ > = z.object({
52
+ id: z.string(),
53
+ });
54
+
55
+ export function getFormSubmissionRequestToJSON(
56
+ getFormSubmissionRequest: GetFormSubmissionRequest,
57
+ ): string {
58
+ return JSON.stringify(
59
+ GetFormSubmissionRequest$outboundSchema.parse(getFormSubmissionRequest),
60
+ );
61
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type GetFormSecurity = {
8
+ apiKey?: string | undefined;
9
+ bearer?: string | undefined;
10
+ };
11
+
12
+ export type GetFormRequest = {
13
+ /**
14
+ * UUID v4
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export type GetFormSecurity$Outbound = {
21
+ apiKey?: string | undefined;
22
+ bearer?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const GetFormSecurity$outboundSchema: z.ZodMiniType<
27
+ GetFormSecurity$Outbound,
28
+ GetFormSecurity
29
+ > = z.object({
30
+ apiKey: z.optional(z.string()),
31
+ bearer: z.optional(z.string()),
32
+ });
33
+
34
+ export function getFormSecurityToJSON(
35
+ getFormSecurity: GetFormSecurity,
36
+ ): string {
37
+ return JSON.stringify(GetFormSecurity$outboundSchema.parse(getFormSecurity));
38
+ }
39
+
40
+ /** @internal */
41
+ export type GetFormRequest$Outbound = {
42
+ id: string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const GetFormRequest$outboundSchema: z.ZodMiniType<
47
+ GetFormRequest$Outbound,
48
+ GetFormRequest
49
+ > = z.object({
50
+ id: z.string(),
51
+ });
52
+
53
+ export function getFormRequestToJSON(getFormRequest: GetFormRequest): string {
54
+ return JSON.stringify(GetFormRequest$outboundSchema.parse(getFormRequest));
55
+ }
@@ -7,12 +7,10 @@ export * from "./create-catalog-item.js";
7
7
  export * from "./create-client.js";
8
8
  export * from "./create-contact.js";
9
9
  export * from "./create-contract.js";
10
- export * from "./create-inquiry.js";
11
10
  export * from "./create-invoice.js";
12
11
  export * from "./create-milestone.js";
13
12
  export * from "./create-payment.js";
14
13
  export * from "./create-project.js";
15
- export * from "./create-proposal.js";
16
14
  export * from "./create-time-entry.js";
17
15
  export * from "./create-transaction.js";
18
16
  export * from "./create-webhook.js";
@@ -21,41 +19,41 @@ export * from "./delete-catalog-item.js";
21
19
  export * from "./delete-client.js";
22
20
  export * from "./delete-contact.js";
23
21
  export * from "./delete-contract.js";
24
- export * from "./delete-inquiry.js";
25
22
  export * from "./delete-invoice.js";
26
23
  export * from "./delete-milestone.js";
27
24
  export * from "./delete-project.js";
28
- export * from "./delete-proposal.js";
29
25
  export * from "./delete-time-entry.js";
30
26
  export * from "./delete-transaction.js";
31
27
  export * from "./delete-webhook.js";
32
28
  export * from "./get-calendar-event.js";
33
29
  export * from "./get-catalog-item.js";
30
+ export * from "./get-client-document.js";
34
31
  export * from "./get-client.js";
35
32
  export * from "./get-contact.js";
36
33
  export * from "./get-contract.js";
37
- export * from "./get-inquiry.js";
34
+ export * from "./get-form-submission.js";
35
+ export * from "./get-form.js";
38
36
  export * from "./get-invoice.js";
39
37
  export * from "./get-milestone.js";
40
38
  export * from "./get-payment.js";
41
39
  export * from "./get-payout.js";
42
40
  export * from "./get-project.js";
43
- export * from "./get-proposal.js";
44
41
  export * from "./get-time-entry.js";
45
42
  export * from "./get-transaction.js";
46
43
  export * from "./get-webhook.js";
47
44
  export * from "./list-calendar-events.js";
48
45
  export * from "./list-catalog-items.js";
46
+ export * from "./list-client-documents.js";
49
47
  export * from "./list-clients.js";
50
48
  export * from "./list-contacts.js";
51
49
  export * from "./list-contracts.js";
52
- export * from "./list-inquiries.js";
50
+ export * from "./list-form-submissions.js";
51
+ export * from "./list-forms.js";
53
52
  export * from "./list-invoices.js";
54
53
  export * from "./list-milestones.js";
55
54
  export * from "./list-payments.js";
56
55
  export * from "./list-payouts.js";
57
56
  export * from "./list-projects.js";
58
- export * from "./list-proposals.js";
59
57
  export * from "./list-time-entries.js";
60
58
  export * from "./list-transactions.js";
61
59
  export * from "./list-webhooks.js";
@@ -64,12 +62,10 @@ export * from "./update-catalog-item.js";
64
62
  export * from "./update-client.js";
65
63
  export * from "./update-contact.js";
66
64
  export * from "./update-contract.js";
67
- export * from "./update-inquiry.js";
68
65
  export * from "./update-invoice.js";
69
66
  export * from "./update-milestone.js";
70
67
  export * from "./update-payment.js";
71
68
  export * from "./update-project.js";
72
- export * from "./update-proposal.js";
73
69
  export * from "./update-time-entry.js";
74
70
  export * from "./update-transaction.js";
75
71
  export * from "./update-webhook.js";
@@ -28,11 +28,18 @@ export const ListCatalogItemsStatus = {
28
28
  } as const;
29
29
  export type ListCatalogItemsStatus = ClosedEnum<typeof ListCatalogItemsStatus>;
30
30
 
31
+ export const Composition = {
32
+ Atom: "atom",
33
+ Bundle: "bundle",
34
+ } as const;
35
+ export type Composition = ClosedEnum<typeof Composition>;
36
+
31
37
  export type ListCatalogItemsRequest = {
32
38
  page?: number | undefined;
33
39
  pageSize?: number | undefined;
34
40
  type?: Type | undefined;
35
41
  status?: ListCatalogItemsStatus | undefined;
42
+ composition?: Composition | undefined;
36
43
  /**
37
44
  * UUID v4
38
45
  */
@@ -74,12 +81,17 @@ export const ListCatalogItemsStatus$outboundSchema: z.ZodMiniEnum<
74
81
  typeof ListCatalogItemsStatus
75
82
  > = z.enum(ListCatalogItemsStatus);
76
83
 
84
+ /** @internal */
85
+ export const Composition$outboundSchema: z.ZodMiniEnum<typeof Composition> = z
86
+ .enum(Composition);
87
+
77
88
  /** @internal */
78
89
  export type ListCatalogItemsRequest$Outbound = {
79
90
  page: number;
80
91
  pageSize: number;
81
92
  type?: string | undefined;
82
93
  status?: string | undefined;
94
+ composition?: string | undefined;
83
95
  clientId?: string | undefined;
84
96
  };
85
97
 
@@ -92,6 +104,7 @@ export const ListCatalogItemsRequest$outboundSchema: z.ZodMiniType<
92
104
  pageSize: z._default(z.int(), 25),
93
105
  type: z.optional(Type$outboundSchema),
94
106
  status: z.optional(ListCatalogItemsStatus$outboundSchema),
107
+ composition: z.optional(Composition$outboundSchema),
95
108
  clientId: z.optional(z.string()),
96
109
  });
97
110
 
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
+ import * as models from "../index.js";
12
+
13
+ export type ListClientDocumentsSecurity = {
14
+ apiKey?: string | undefined;
15
+ bearer?: string | undefined;
16
+ };
17
+
18
+ export const ListClientDocumentsStatus = {
19
+ Draft: "draft",
20
+ Sent: "sent",
21
+ Viewed: "viewed",
22
+ InProgress: "in_progress",
23
+ Accepted: "accepted",
24
+ Completed: "completed",
25
+ Expired: "expired",
26
+ Void: "void",
27
+ } as const;
28
+ export type ListClientDocumentsStatus = ClosedEnum<
29
+ typeof ListClientDocumentsStatus
30
+ >;
31
+
32
+ export type ListClientDocumentsRequest = {
33
+ page?: number | undefined;
34
+ pageSize?: number | undefined;
35
+ status?: ListClientDocumentsStatus | undefined;
36
+ /**
37
+ * UUID v4
38
+ */
39
+ clientId?: string | undefined;
40
+ /**
41
+ * UUID v4
42
+ */
43
+ contactId?: string | undefined;
44
+ };
45
+
46
+ export type ListClientDocumentsResponse = {
47
+ result: models.ClientDocumentList;
48
+ };
49
+
50
+ /** @internal */
51
+ export type ListClientDocumentsSecurity$Outbound = {
52
+ apiKey?: string | undefined;
53
+ bearer?: string | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const ListClientDocumentsSecurity$outboundSchema: z.ZodMiniType<
58
+ ListClientDocumentsSecurity$Outbound,
59
+ ListClientDocumentsSecurity
60
+ > = z.object({
61
+ apiKey: z.optional(z.string()),
62
+ bearer: z.optional(z.string()),
63
+ });
64
+
65
+ export function listClientDocumentsSecurityToJSON(
66
+ listClientDocumentsSecurity: ListClientDocumentsSecurity,
67
+ ): string {
68
+ return JSON.stringify(
69
+ ListClientDocumentsSecurity$outboundSchema.parse(
70
+ listClientDocumentsSecurity,
71
+ ),
72
+ );
73
+ }
74
+
75
+ /** @internal */
76
+ export const ListClientDocumentsStatus$outboundSchema: z.ZodMiniEnum<
77
+ typeof ListClientDocumentsStatus
78
+ > = z.enum(ListClientDocumentsStatus);
79
+
80
+ /** @internal */
81
+ export type ListClientDocumentsRequest$Outbound = {
82
+ page: number;
83
+ pageSize: number;
84
+ status?: string | undefined;
85
+ clientId?: string | undefined;
86
+ contactId?: string | undefined;
87
+ };
88
+
89
+ /** @internal */
90
+ export const ListClientDocumentsRequest$outboundSchema: z.ZodMiniType<
91
+ ListClientDocumentsRequest$Outbound,
92
+ ListClientDocumentsRequest
93
+ > = z.object({
94
+ page: z._default(z.int(), 1),
95
+ pageSize: z._default(z.int(), 25),
96
+ status: z.optional(ListClientDocumentsStatus$outboundSchema),
97
+ clientId: z.optional(z.string()),
98
+ contactId: z.optional(z.string()),
99
+ });
100
+
101
+ export function listClientDocumentsRequestToJSON(
102
+ listClientDocumentsRequest: ListClientDocumentsRequest,
103
+ ): string {
104
+ return JSON.stringify(
105
+ ListClientDocumentsRequest$outboundSchema.parse(listClientDocumentsRequest),
106
+ );
107
+ }
108
+
109
+ /** @internal */
110
+ export const ListClientDocumentsResponse$inboundSchema: z.ZodMiniType<
111
+ ListClientDocumentsResponse,
112
+ unknown
113
+ > = z.pipe(
114
+ z.object({
115
+ Result: models.ClientDocumentList$inboundSchema,
116
+ }),
117
+ z.transform((v) => {
118
+ return remap$(v, {
119
+ "Result": "result",
120
+ });
121
+ }),
122
+ );
123
+
124
+ export function listClientDocumentsResponseFromJSON(
125
+ jsonString: string,
126
+ ): SafeParseResult<ListClientDocumentsResponse, SDKValidationError> {
127
+ return safeParse(
128
+ jsonString,
129
+ (x) => ListClientDocumentsResponse$inboundSchema.parse(JSON.parse(x)),
130
+ `Failed to parse 'ListClientDocumentsResponse' from JSON`,
131
+ );
132
+ }
@@ -16,9 +16,13 @@ export type ListClientsSecurity = {
16
16
  };
17
17
 
18
18
  export const ListClientsStatus = {
19
- Prospect: "prospect",
19
+ New: "new",
20
+ Contacted: "contacted",
21
+ Qualified: "qualified",
20
22
  Active: "active",
21
23
  Inactive: "inactive",
24
+ Declined: "declined",
25
+ Spam: "spam",
22
26
  } as const;
23
27
  export type ListClientsStatus = ClosedEnum<typeof ListClientsStatus>;
24
28
 
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
+ import * as models from "../index.js";
12
+
13
+ export type ListFormSubmissionsSecurity = {
14
+ apiKey?: string | undefined;
15
+ bearer?: string | undefined;
16
+ };
17
+
18
+ export const ListFormSubmissionsKind = {
19
+ Inquiry: "inquiry",
20
+ Questionnaire: "questionnaire",
21
+ } as const;
22
+ export type ListFormSubmissionsKind = ClosedEnum<
23
+ typeof ListFormSubmissionsKind
24
+ >;
25
+
26
+ export const ListFormSubmissionsStatus = {
27
+ InProgress: "in_progress",
28
+ Submitted: "submitted",
29
+ } as const;
30
+ export type ListFormSubmissionsStatus = ClosedEnum<
31
+ typeof ListFormSubmissionsStatus
32
+ >;
33
+
34
+ export type ListFormSubmissionsRequest = {
35
+ page?: number | undefined;
36
+ pageSize?: number | undefined;
37
+ /**
38
+ * UUID v4
39
+ */
40
+ formId?: string | undefined;
41
+ kind?: ListFormSubmissionsKind | undefined;
42
+ status?: ListFormSubmissionsStatus | undefined;
43
+ /**
44
+ * UUID v4
45
+ */
46
+ contactId?: string | undefined;
47
+ };
48
+
49
+ export type ListFormSubmissionsResponse = {
50
+ result: models.FormSubmissionList;
51
+ };
52
+
53
+ /** @internal */
54
+ export type ListFormSubmissionsSecurity$Outbound = {
55
+ apiKey?: string | undefined;
56
+ bearer?: string | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const ListFormSubmissionsSecurity$outboundSchema: z.ZodMiniType<
61
+ ListFormSubmissionsSecurity$Outbound,
62
+ ListFormSubmissionsSecurity
63
+ > = z.object({
64
+ apiKey: z.optional(z.string()),
65
+ bearer: z.optional(z.string()),
66
+ });
67
+
68
+ export function listFormSubmissionsSecurityToJSON(
69
+ listFormSubmissionsSecurity: ListFormSubmissionsSecurity,
70
+ ): string {
71
+ return JSON.stringify(
72
+ ListFormSubmissionsSecurity$outboundSchema.parse(
73
+ listFormSubmissionsSecurity,
74
+ ),
75
+ );
76
+ }
77
+
78
+ /** @internal */
79
+ export const ListFormSubmissionsKind$outboundSchema: z.ZodMiniEnum<
80
+ typeof ListFormSubmissionsKind
81
+ > = z.enum(ListFormSubmissionsKind);
82
+
83
+ /** @internal */
84
+ export const ListFormSubmissionsStatus$outboundSchema: z.ZodMiniEnum<
85
+ typeof ListFormSubmissionsStatus
86
+ > = z.enum(ListFormSubmissionsStatus);
87
+
88
+ /** @internal */
89
+ export type ListFormSubmissionsRequest$Outbound = {
90
+ page: number;
91
+ pageSize: number;
92
+ formId?: string | undefined;
93
+ kind?: string | undefined;
94
+ status?: string | undefined;
95
+ contactId?: string | undefined;
96
+ };
97
+
98
+ /** @internal */
99
+ export const ListFormSubmissionsRequest$outboundSchema: z.ZodMiniType<
100
+ ListFormSubmissionsRequest$Outbound,
101
+ ListFormSubmissionsRequest
102
+ > = z.object({
103
+ page: z._default(z.int(), 1),
104
+ pageSize: z._default(z.int(), 25),
105
+ formId: z.optional(z.string()),
106
+ kind: z.optional(ListFormSubmissionsKind$outboundSchema),
107
+ status: z.optional(ListFormSubmissionsStatus$outboundSchema),
108
+ contactId: z.optional(z.string()),
109
+ });
110
+
111
+ export function listFormSubmissionsRequestToJSON(
112
+ listFormSubmissionsRequest: ListFormSubmissionsRequest,
113
+ ): string {
114
+ return JSON.stringify(
115
+ ListFormSubmissionsRequest$outboundSchema.parse(listFormSubmissionsRequest),
116
+ );
117
+ }
118
+
119
+ /** @internal */
120
+ export const ListFormSubmissionsResponse$inboundSchema: z.ZodMiniType<
121
+ ListFormSubmissionsResponse,
122
+ unknown
123
+ > = z.pipe(
124
+ z.object({
125
+ Result: models.FormSubmissionList$inboundSchema,
126
+ }),
127
+ z.transform((v) => {
128
+ return remap$(v, {
129
+ "Result": "result",
130
+ });
131
+ }),
132
+ );
133
+
134
+ export function listFormSubmissionsResponseFromJSON(
135
+ jsonString: string,
136
+ ): SafeParseResult<ListFormSubmissionsResponse, SDKValidationError> {
137
+ return safeParse(
138
+ jsonString,
139
+ (x) => ListFormSubmissionsResponse$inboundSchema.parse(JSON.parse(x)),
140
+ `Failed to parse 'ListFormSubmissionsResponse' from JSON`,
141
+ );
142
+ }