@clientcasa/sdk 0.3.0 → 0.4.0

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 (368) 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/milestones-create.d.ts +1 -1
  29. package/esm/funcs/milestones-create.js +1 -1
  30. package/esm/hooks/types.d.ts +1 -0
  31. package/esm/hooks/types.d.ts.map +1 -1
  32. package/esm/lib/config.d.ts +3 -3
  33. package/esm/lib/config.js +3 -3
  34. package/esm/lib/sdks.d.ts.map +1 -1
  35. package/esm/lib/sdks.js +13 -4
  36. package/esm/lib/sdks.js.map +1 -1
  37. package/esm/models/api-error.d.ts +1 -0
  38. package/esm/models/api-error.d.ts.map +1 -1
  39. package/esm/models/api-error.js +1 -0
  40. package/esm/models/api-error.js.map +1 -1
  41. package/esm/models/catalog-item.d.ts +17 -0
  42. package/esm/models/catalog-item.d.ts.map +1 -1
  43. package/esm/models/catalog-item.js +15 -0
  44. package/esm/models/catalog-item.js.map +1 -1
  45. package/esm/models/client-create.d.ts +5 -1
  46. package/esm/models/client-create.d.ts.map +1 -1
  47. package/esm/models/client-create.js +5 -1
  48. package/esm/models/client-create.js.map +1 -1
  49. package/esm/models/client-document-list.d.ts +13 -0
  50. package/esm/models/client-document-list.d.ts.map +1 -0
  51. package/esm/models/client-document-list.js +16 -0
  52. package/esm/models/client-document-list.js.map +1 -0
  53. package/esm/models/client-document.d.ts +70 -0
  54. package/esm/models/client-document.d.ts.map +1 -0
  55. package/esm/models/client-document.js +45 -0
  56. package/esm/models/client-document.js.map +1 -0
  57. package/esm/models/client-update.d.ts +5 -1
  58. package/esm/models/client-update.d.ts.map +1 -1
  59. package/esm/models/client-update.js +5 -1
  60. package/esm/models/client-update.js.map +1 -1
  61. package/esm/models/client.d.ts +5 -1
  62. package/esm/models/client.d.ts.map +1 -1
  63. package/esm/models/client.js +5 -1
  64. package/esm/models/client.js.map +1 -1
  65. package/esm/models/contact.d.ts +1 -1
  66. package/esm/models/contact.d.ts.map +1 -1
  67. package/esm/models/contact.js +1 -1
  68. package/esm/models/contact.js.map +1 -1
  69. package/esm/models/contract-create.d.ts +0 -5
  70. package/esm/models/contract-create.d.ts.map +1 -1
  71. package/esm/models/contract-create.js +0 -1
  72. package/esm/models/contract-create.js.map +1 -1
  73. package/esm/models/contract.d.ts +0 -4
  74. package/esm/models/contract.d.ts.map +1 -1
  75. package/esm/models/contract.js +0 -1
  76. package/esm/models/contract.js.map +1 -1
  77. package/esm/models/form-list.d.ts +13 -0
  78. package/esm/models/form-list.d.ts.map +1 -0
  79. package/esm/models/form-list.js +17 -0
  80. package/esm/models/form-list.js.map +1 -0
  81. package/esm/models/form-submission-answer.d.ts +12 -0
  82. package/esm/models/form-submission-answer.d.ts.map +1 -0
  83. package/esm/models/form-submission-answer.js +16 -0
  84. package/esm/models/form-submission-answer.js.map +1 -0
  85. package/esm/models/form-submission-list.d.ts +13 -0
  86. package/esm/models/form-submission-list.d.ts.map +1 -0
  87. package/esm/models/form-submission-list.js +16 -0
  88. package/esm/models/form-submission-list.js.map +1 -0
  89. package/esm/models/form-submission.d.ts +54 -0
  90. package/esm/models/form-submission.d.ts.map +1 -0
  91. package/esm/models/form-submission.js +38 -0
  92. package/esm/models/form-submission.js.map +1 -0
  93. package/esm/models/form.d.ts +36 -0
  94. package/esm/models/form.d.ts.map +1 -0
  95. package/esm/models/form.js +30 -0
  96. package/esm/models/form.js.map +1 -0
  97. package/esm/models/index.d.ts +7 -8
  98. package/esm/models/index.d.ts.map +1 -1
  99. package/esm/models/index.js +7 -8
  100. package/esm/models/index.js.map +1 -1
  101. package/esm/models/milestone-create.d.ts +1 -1
  102. package/esm/models/milestone-create.js +1 -1
  103. package/esm/models/milestone-create.js.map +1 -1
  104. package/esm/models/milestone.d.ts +1 -1
  105. package/esm/models/milestone.js +1 -1
  106. package/esm/models/milestone.js.map +1 -1
  107. package/esm/models/operations/get-client-document.d.ts +27 -0
  108. package/esm/models/operations/get-client-document.d.ts.map +1 -0
  109. package/esm/models/operations/get-client-document.js +20 -0
  110. package/esm/models/operations/get-client-document.js.map +1 -0
  111. package/esm/models/operations/get-form-submission.d.ts +27 -0
  112. package/esm/models/operations/get-form-submission.d.ts.map +1 -0
  113. package/esm/models/operations/get-form-submission.js +20 -0
  114. package/esm/models/operations/get-form-submission.js.map +1 -0
  115. package/esm/models/operations/get-form.d.ts +27 -0
  116. package/esm/models/operations/get-form.d.ts.map +1 -0
  117. package/esm/models/operations/get-form.js +20 -0
  118. package/esm/models/operations/get-form.js.map +1 -0
  119. package/esm/models/operations/index.d.ts +6 -10
  120. package/esm/models/operations/index.d.ts.map +1 -1
  121. package/esm/models/operations/index.js +6 -10
  122. package/esm/models/operations/index.js.map +1 -1
  123. package/esm/models/operations/list-catalog-items.d.ts +9 -0
  124. package/esm/models/operations/list-catalog-items.d.ts.map +1 -1
  125. package/esm/models/operations/list-catalog-items.js +8 -0
  126. package/esm/models/operations/list-catalog-items.js.map +1 -1
  127. package/esm/models/operations/list-client-documents.d.ts +61 -0
  128. package/esm/models/operations/list-client-documents.d.ts.map +1 -0
  129. package/esm/models/operations/list-client-documents.js +50 -0
  130. package/esm/models/operations/list-client-documents.js.map +1 -0
  131. package/esm/models/operations/list-clients.d.ts +5 -1
  132. package/esm/models/operations/list-clients.d.ts.map +1 -1
  133. package/esm/models/operations/list-clients.js +5 -1
  134. package/esm/models/operations/list-clients.js.map +1 -1
  135. package/esm/models/operations/list-form-submissions.d.ts +64 -0
  136. package/esm/models/operations/list-form-submissions.d.ts.map +1 -0
  137. package/esm/models/operations/list-form-submissions.js +51 -0
  138. package/esm/models/operations/list-form-submissions.js.map +1 -0
  139. package/esm/models/operations/list-forms.d.ts +47 -0
  140. package/esm/models/operations/list-forms.d.ts.map +1 -0
  141. package/esm/models/operations/list-forms.js +43 -0
  142. package/esm/models/operations/list-forms.js.map +1 -0
  143. package/esm/models/operations/list-milestones.d.ts +1 -1
  144. package/esm/models/operations/list-milestones.js +1 -1
  145. package/esm/models/operations/list-milestones.js.map +1 -1
  146. package/esm/models/operations/list-payments.d.ts +4 -4
  147. package/esm/models/operations/list-payments.d.ts.map +1 -1
  148. package/esm/models/operations/list-payments.js +3 -3
  149. package/esm/models/operations/list-payments.js.map +1 -1
  150. package/esm/models/operations/list-webhooks.d.ts +10 -11
  151. package/esm/models/operations/list-webhooks.d.ts.map +1 -1
  152. package/esm/models/operations/list-webhooks.js +10 -11
  153. package/esm/models/operations/list-webhooks.js.map +1 -1
  154. package/esm/models/webhook-create.d.ts +10 -11
  155. package/esm/models/webhook-create.d.ts.map +1 -1
  156. package/esm/models/webhook-create.js +10 -11
  157. package/esm/models/webhook-create.js.map +1 -1
  158. package/esm/models/webhook-update.d.ts +10 -11
  159. package/esm/models/webhook-update.d.ts.map +1 -1
  160. package/esm/models/webhook-update.js +10 -11
  161. package/esm/models/webhook-update.js.map +1 -1
  162. package/esm/models/webhook.d.ts +10 -11
  163. package/esm/models/webhook.d.ts.map +1 -1
  164. package/esm/models/webhook.js +10 -11
  165. package/esm/models/webhook.js.map +1 -1
  166. package/esm/sdk/form-submissions.d.ts +20 -0
  167. package/esm/sdk/form-submissions.d.ts.map +1 -0
  168. package/esm/sdk/form-submissions.js +26 -0
  169. package/esm/sdk/form-submissions.js.map +1 -0
  170. package/esm/sdk/forms-and-agreements.d.ts +17 -0
  171. package/esm/sdk/forms-and-agreements.d.ts.map +1 -0
  172. package/esm/sdk/forms-and-agreements.js +23 -0
  173. package/esm/sdk/forms-and-agreements.js.map +1 -0
  174. package/esm/sdk/forms.d.ts +17 -0
  175. package/esm/sdk/forms.d.ts.map +1 -0
  176. package/esm/sdk/forms.js +23 -0
  177. package/esm/sdk/forms.js.map +1 -0
  178. package/esm/sdk/milestones.d.ts +1 -1
  179. package/esm/sdk/milestones.js +1 -1
  180. package/esm/sdk/sdk.d.ts +9 -6
  181. package/esm/sdk/sdk.d.ts.map +1 -1
  182. package/esm/sdk/sdk.js +15 -10
  183. package/esm/sdk/sdk.js.map +1 -1
  184. package/jsr.json +1 -1
  185. package/package.json +1 -1
  186. package/src/funcs/catalog-items-list.ts +1 -0
  187. package/src/funcs/{proposals-delete.ts → form-submissions-get.ts} +16 -14
  188. package/src/funcs/form-submissions-list.ts +284 -0
  189. package/src/funcs/{proposals-get.ts → forms-and-agreements-get.ts} +13 -12
  190. package/src/funcs/{proposals-list.ts → forms-and-agreements-list.ts} +15 -15
  191. package/src/funcs/{inquiries-get.ts → forms-get.ts} +13 -13
  192. package/src/funcs/{inquiries-list.ts → forms-list.ts} +17 -22
  193. package/src/funcs/milestones-create.ts +1 -1
  194. package/src/hooks/types.ts +1 -0
  195. package/src/lib/config.ts +3 -3
  196. package/src/lib/sdks.ts +13 -4
  197. package/src/models/api-error.ts +1 -0
  198. package/src/models/catalog-item.ts +28 -0
  199. package/src/models/client-create.ts +5 -1
  200. package/src/models/client-document-list.ts +40 -0
  201. package/src/models/client-document.ts +114 -0
  202. package/src/models/client-update.ts +5 -1
  203. package/src/models/client.ts +5 -1
  204. package/src/models/contact.ts +2 -2
  205. package/src/models/contract-create.ts +0 -6
  206. package/src/models/contract.ts +0 -5
  207. package/src/models/{inquiry-list.ts → form-list.ts} +9 -9
  208. package/src/models/form-submission-answer.ts +35 -0
  209. package/src/models/form-submission-list.ts +40 -0
  210. package/src/models/form-submission.ts +99 -0
  211. package/src/models/form.ts +67 -0
  212. package/src/models/index.ts +7 -8
  213. package/src/models/milestone-create.ts +1 -1
  214. package/src/models/milestone.ts +1 -1
  215. package/src/models/operations/get-client-document.ts +61 -0
  216. package/src/models/operations/get-form-submission.ts +61 -0
  217. package/src/models/operations/get-form.ts +55 -0
  218. package/src/models/operations/index.ts +6 -10
  219. package/src/models/operations/list-catalog-items.ts +13 -0
  220. package/src/models/operations/list-client-documents.ts +132 -0
  221. package/src/models/operations/list-clients.ts +5 -1
  222. package/src/models/operations/list-form-submissions.ts +142 -0
  223. package/src/models/operations/list-forms.ts +112 -0
  224. package/src/models/operations/list-milestones.ts +1 -1
  225. package/src/models/operations/list-payments.ts +7 -5
  226. package/src/models/operations/list-webhooks.ts +10 -11
  227. package/src/models/webhook-create.ts +10 -11
  228. package/src/models/webhook-update.ts +10 -11
  229. package/src/models/webhook.ts +10 -11
  230. package/src/sdk/form-submissions.ts +50 -0
  231. package/src/sdk/forms-and-agreements.ts +47 -0
  232. package/src/sdk/forms.ts +45 -0
  233. package/src/sdk/milestones.ts +1 -1
  234. package/src/sdk/sdk.ts +18 -12
  235. package/esm/funcs/inquiries-create.d.ts +0 -19
  236. package/esm/funcs/inquiries-create.d.ts.map +0 -1
  237. package/esm/funcs/inquiries-create.js +0 -96
  238. package/esm/funcs/inquiries-create.js.map +0 -1
  239. package/esm/funcs/inquiries-delete.d.ts.map +0 -1
  240. package/esm/funcs/inquiries-delete.js.map +0 -1
  241. package/esm/funcs/inquiries-get.d.ts.map +0 -1
  242. package/esm/funcs/inquiries-get.js.map +0 -1
  243. package/esm/funcs/inquiries-list.d.ts.map +0 -1
  244. package/esm/funcs/inquiries-list.js.map +0 -1
  245. package/esm/funcs/inquiries-update.d.ts +0 -19
  246. package/esm/funcs/inquiries-update.d.ts.map +0 -1
  247. package/esm/funcs/inquiries-update.js +0 -111
  248. package/esm/funcs/inquiries-update.js.map +0 -1
  249. package/esm/funcs/proposals-create.d.ts +0 -19
  250. package/esm/funcs/proposals-create.d.ts.map +0 -1
  251. package/esm/funcs/proposals-create.js +0 -96
  252. package/esm/funcs/proposals-create.js.map +0 -1
  253. package/esm/funcs/proposals-delete.d.ts +0 -15
  254. package/esm/funcs/proposals-delete.d.ts.map +0 -1
  255. package/esm/funcs/proposals-delete.js +0 -106
  256. package/esm/funcs/proposals-delete.js.map +0 -1
  257. package/esm/funcs/proposals-get.d.ts.map +0 -1
  258. package/esm/funcs/proposals-get.js.map +0 -1
  259. package/esm/funcs/proposals-list.d.ts.map +0 -1
  260. package/esm/funcs/proposals-list.js.map +0 -1
  261. package/esm/funcs/proposals-update.d.ts +0 -19
  262. package/esm/funcs/proposals-update.d.ts.map +0 -1
  263. package/esm/funcs/proposals-update.js +0 -111
  264. package/esm/funcs/proposals-update.js.map +0 -1
  265. package/esm/models/inquiry-create.d.ts +0 -45
  266. package/esm/models/inquiry-create.d.ts.map +0 -1
  267. package/esm/models/inquiry-create.js +0 -28
  268. package/esm/models/inquiry-create.js.map +0 -1
  269. package/esm/models/inquiry-list.d.ts +0 -13
  270. package/esm/models/inquiry-list.d.ts.map +0 -1
  271. package/esm/models/inquiry-list.js +0 -17
  272. package/esm/models/inquiry-list.js.map +0 -1
  273. package/esm/models/inquiry-update.d.ts +0 -45
  274. package/esm/models/inquiry-update.d.ts.map +0 -1
  275. package/esm/models/inquiry-update.js +0 -29
  276. package/esm/models/inquiry-update.js.map +0 -1
  277. package/esm/models/inquiry.d.ts +0 -78
  278. package/esm/models/inquiry.d.ts.map +0 -1
  279. package/esm/models/inquiry.js +0 -51
  280. package/esm/models/inquiry.js.map +0 -1
  281. package/esm/models/operations/create-inquiry.d.ts +0 -30
  282. package/esm/models/operations/create-inquiry.d.ts.map +0 -1
  283. package/esm/models/operations/create-inquiry.js +0 -27
  284. package/esm/models/operations/create-inquiry.js.map +0 -1
  285. package/esm/models/operations/create-proposal.d.ts +0 -30
  286. package/esm/models/operations/create-proposal.d.ts.map +0 -1
  287. package/esm/models/operations/create-proposal.js +0 -27
  288. package/esm/models/operations/create-proposal.js.map +0 -1
  289. package/esm/models/operations/delete-inquiry.d.ts +0 -27
  290. package/esm/models/operations/delete-inquiry.d.ts.map +0 -1
  291. package/esm/models/operations/delete-inquiry.js +0 -20
  292. package/esm/models/operations/delete-inquiry.js.map +0 -1
  293. package/esm/models/operations/delete-proposal.d.ts +0 -27
  294. package/esm/models/operations/delete-proposal.d.ts.map +0 -1
  295. package/esm/models/operations/delete-proposal.js +0 -20
  296. package/esm/models/operations/delete-proposal.js.map +0 -1
  297. package/esm/models/operations/get-inquiry.d.ts +0 -27
  298. package/esm/models/operations/get-inquiry.d.ts.map +0 -1
  299. package/esm/models/operations/get-inquiry.js +0 -20
  300. package/esm/models/operations/get-inquiry.js.map +0 -1
  301. package/esm/models/operations/get-proposal.d.ts +0 -27
  302. package/esm/models/operations/get-proposal.d.ts.map +0 -1
  303. package/esm/models/operations/get-proposal.js +0 -20
  304. package/esm/models/operations/get-proposal.js.map +0 -1
  305. package/esm/models/operations/list-inquiries.d.ts +0 -60
  306. package/esm/models/operations/list-inquiries.d.ts.map +0 -1
  307. package/esm/models/operations/list-inquiries.js +0 -55
  308. package/esm/models/operations/list-inquiries.js.map +0 -1
  309. package/esm/models/operations/list-proposals.d.ts +0 -56
  310. package/esm/models/operations/list-proposals.d.ts.map +0 -1
  311. package/esm/models/operations/list-proposals.js +0 -48
  312. package/esm/models/operations/list-proposals.js.map +0 -1
  313. package/esm/models/operations/update-inquiry.d.ts +0 -30
  314. package/esm/models/operations/update-inquiry.d.ts.map +0 -1
  315. package/esm/models/operations/update-inquiry.js +0 -22
  316. package/esm/models/operations/update-inquiry.js.map +0 -1
  317. package/esm/models/operations/update-proposal.d.ts +0 -30
  318. package/esm/models/operations/update-proposal.d.ts.map +0 -1
  319. package/esm/models/operations/update-proposal.js +0 -22
  320. package/esm/models/operations/update-proposal.js.map +0 -1
  321. package/esm/models/proposal-create.d.ts +0 -45
  322. package/esm/models/proposal-create.d.ts.map +0 -1
  323. package/esm/models/proposal-create.js +0 -26
  324. package/esm/models/proposal-create.js.map +0 -1
  325. package/esm/models/proposal-list.d.ts +0 -13
  326. package/esm/models/proposal-list.d.ts.map +0 -1
  327. package/esm/models/proposal-list.js +0 -16
  328. package/esm/models/proposal-list.js.map +0 -1
  329. package/esm/models/proposal-update.d.ts +0 -43
  330. package/esm/models/proposal-update.d.ts.map +0 -1
  331. package/esm/models/proposal-update.js +0 -27
  332. package/esm/models/proposal-update.js.map +0 -1
  333. package/esm/models/proposal.d.ts +0 -70
  334. package/esm/models/proposal.d.ts.map +0 -1
  335. package/esm/models/proposal.js +0 -52
  336. package/esm/models/proposal.js.map +0 -1
  337. package/esm/sdk/inquiries.d.ts +0 -35
  338. package/esm/sdk/inquiries.d.ts.map +0 -1
  339. package/esm/sdk/inquiries.js +0 -50
  340. package/esm/sdk/inquiries.js.map +0 -1
  341. package/esm/sdk/proposals.d.ts +0 -35
  342. package/esm/sdk/proposals.d.ts.map +0 -1
  343. package/esm/sdk/proposals.js +0 -50
  344. package/esm/sdk/proposals.js.map +0 -1
  345. package/src/funcs/inquiries-create.ts +0 -195
  346. package/src/funcs/inquiries-delete.ts +0 -201
  347. package/src/funcs/inquiries-update.ts +0 -206
  348. package/src/funcs/proposals-create.ts +0 -195
  349. package/src/funcs/proposals-update.ts +0 -206
  350. package/src/models/inquiry-create.ts +0 -72
  351. package/src/models/inquiry-update.ts +0 -80
  352. package/src/models/inquiry.ts +0 -123
  353. package/src/models/operations/create-inquiry.ts +0 -73
  354. package/src/models/operations/create-proposal.ts +0 -73
  355. package/src/models/operations/delete-inquiry.ts +0 -61
  356. package/src/models/operations/delete-proposal.ts +0 -61
  357. package/src/models/operations/get-inquiry.ts +0 -61
  358. package/src/models/operations/get-proposal.ts +0 -61
  359. package/src/models/operations/list-inquiries.ts +0 -130
  360. package/src/models/operations/list-proposals.ts +0 -123
  361. package/src/models/operations/update-inquiry.ts +0 -65
  362. package/src/models/operations/update-proposal.ts +0 -65
  363. package/src/models/proposal-create.ts +0 -86
  364. package/src/models/proposal-list.ts +0 -35
  365. package/src/models/proposal-update.ts +0 -84
  366. package/src/models/proposal.ts +0 -120
  367. package/src/sdk/inquiries.ts +0 -102
  368. package/src/sdk/proposals.ts +0 -102
@@ -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
+ }
@@ -0,0 +1,112 @@
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 ListFormsSecurity = {
14
+ apiKey?: string | undefined;
15
+ bearer?: string | undefined;
16
+ };
17
+
18
+ export const ListFormsKind = {
19
+ Inquiry: "inquiry",
20
+ Questionnaire: "questionnaire",
21
+ } as const;
22
+ export type ListFormsKind = ClosedEnum<typeof ListFormsKind>;
23
+
24
+ export type ListFormsRequest = {
25
+ page?: number | undefined;
26
+ pageSize?: number | undefined;
27
+ kind?: ListFormsKind | undefined;
28
+ slug?: string | undefined;
29
+ };
30
+
31
+ export type ListFormsResponse = {
32
+ result: models.FormList;
33
+ };
34
+
35
+ /** @internal */
36
+ export type ListFormsSecurity$Outbound = {
37
+ apiKey?: string | undefined;
38
+ bearer?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ListFormsSecurity$outboundSchema: z.ZodMiniType<
43
+ ListFormsSecurity$Outbound,
44
+ ListFormsSecurity
45
+ > = z.object({
46
+ apiKey: z.optional(z.string()),
47
+ bearer: z.optional(z.string()),
48
+ });
49
+
50
+ export function listFormsSecurityToJSON(
51
+ listFormsSecurity: ListFormsSecurity,
52
+ ): string {
53
+ return JSON.stringify(
54
+ ListFormsSecurity$outboundSchema.parse(listFormsSecurity),
55
+ );
56
+ }
57
+
58
+ /** @internal */
59
+ export const ListFormsKind$outboundSchema: z.ZodMiniEnum<typeof ListFormsKind> =
60
+ z.enum(ListFormsKind);
61
+
62
+ /** @internal */
63
+ export type ListFormsRequest$Outbound = {
64
+ page: number;
65
+ pageSize: number;
66
+ kind?: string | undefined;
67
+ slug?: string | undefined;
68
+ };
69
+
70
+ /** @internal */
71
+ export const ListFormsRequest$outboundSchema: z.ZodMiniType<
72
+ ListFormsRequest$Outbound,
73
+ ListFormsRequest
74
+ > = z.object({
75
+ page: z._default(z.int(), 1),
76
+ pageSize: z._default(z.int(), 25),
77
+ kind: z.optional(ListFormsKind$outboundSchema),
78
+ slug: z.optional(z.string()),
79
+ });
80
+
81
+ export function listFormsRequestToJSON(
82
+ listFormsRequest: ListFormsRequest,
83
+ ): string {
84
+ return JSON.stringify(
85
+ ListFormsRequest$outboundSchema.parse(listFormsRequest),
86
+ );
87
+ }
88
+
89
+ /** @internal */
90
+ export const ListFormsResponse$inboundSchema: z.ZodMiniType<
91
+ ListFormsResponse,
92
+ unknown
93
+ > = z.pipe(
94
+ z.object({
95
+ Result: models.FormList$inboundSchema,
96
+ }),
97
+ z.transform((v) => {
98
+ return remap$(v, {
99
+ "Result": "result",
100
+ });
101
+ }),
102
+ );
103
+
104
+ export function listFormsResponseFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<ListFormsResponse, SDKValidationError> {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) => ListFormsResponse$inboundSchema.parse(JSON.parse(x)),
110
+ `Failed to parse 'ListFormsResponse' from JSON`,
111
+ );
112
+ }
@@ -16,8 +16,8 @@ export type ListMilestonesSecurity = {
16
16
  };
17
17
 
18
18
  export const ParentType = {
19
- Proposals: "proposals",
20
19
  Projects: "projects",
20
+ ClientDocuments: "client-documents",
21
21
  } as const;
22
22
  export type ParentType = ClosedEnum<typeof ParentType>;
23
23
 
@@ -23,14 +23,14 @@ export const ListPaymentsStatus = {
23
23
  } as const;
24
24
  export type ListPaymentsStatus = ClosedEnum<typeof ListPaymentsStatus>;
25
25
 
26
- export const Kind = {
26
+ export const ListPaymentsKind = {
27
27
  Payment: "payment",
28
28
  Refund: "refund",
29
29
  Chargeback: "chargeback",
30
30
  DisputeFee: "dispute_fee",
31
31
  Adjustment: "adjustment",
32
32
  } as const;
33
- export type Kind = ClosedEnum<typeof Kind>;
33
+ export type ListPaymentsKind = ClosedEnum<typeof ListPaymentsKind>;
34
34
 
35
35
  export type ListPaymentsRequest = {
36
36
  page?: number | undefined;
@@ -44,7 +44,7 @@ export type ListPaymentsRequest = {
44
44
  */
45
45
  invoiceId?: string | undefined;
46
46
  status?: ListPaymentsStatus | undefined;
47
- kind?: Kind | undefined;
47
+ kind?: ListPaymentsKind | undefined;
48
48
  };
49
49
 
50
50
  export type ListPaymentsResponse = {
@@ -80,7 +80,9 @@ export const ListPaymentsStatus$outboundSchema: z.ZodMiniEnum<
80
80
  > = z.enum(ListPaymentsStatus);
81
81
 
82
82
  /** @internal */
83
- export const Kind$outboundSchema: z.ZodMiniEnum<typeof Kind> = z.enum(Kind);
83
+ export const ListPaymentsKind$outboundSchema: z.ZodMiniEnum<
84
+ typeof ListPaymentsKind
85
+ > = z.enum(ListPaymentsKind);
84
86
 
85
87
  /** @internal */
86
88
  export type ListPaymentsRequest$Outbound = {
@@ -102,7 +104,7 @@ export const ListPaymentsRequest$outboundSchema: z.ZodMiniType<
102
104
  clientId: z.optional(z.string()),
103
105
  invoiceId: z.optional(z.string()),
104
106
  status: z.optional(ListPaymentsStatus$outboundSchema),
105
- kind: z.optional(Kind$outboundSchema),
107
+ kind: z.optional(ListPaymentsKind$outboundSchema),
106
108
  });
107
109
 
108
110
  export function listPaymentsRequestToJSON(
@@ -16,12 +16,6 @@ export type ListWebhooksSecurity = {
16
16
  };
17
17
 
18
18
  export const Event = {
19
- ProposalSent: "proposal_sent",
20
- ProposalExpiring: "proposal_expiring",
21
- ProposalAccepted: "proposal_accepted",
22
- ProposalRejected: "proposal_rejected",
23
- ProposalExpired: "proposal_expired",
24
- ProposalViewed: "proposal_viewed",
25
19
  InvoiceSent: "invoice_sent",
26
20
  InvoiceDueSoon: "invoice_due_soon",
27
21
  InvoiceOverdue: "invoice_overdue",
@@ -50,9 +44,10 @@ export const Event = {
50
44
  ContactCreated: "contact_created",
51
45
  ProjectCreated: "project_created",
52
46
  TimeEntryCreated: "time_entry_created",
53
- InquiryCreated: "inquiry_created",
54
- InquiryStatusChanged: "inquiry_status_changed",
55
- InquiryConverted: "inquiry_converted",
47
+ LeadCreated: "lead_created",
48
+ ClientWon: "client_won",
49
+ ClientLost: "client_lost",
50
+ LeadStatusChanged: "lead_status_changed",
56
51
  MilestoneApproaching: "milestone_approaching",
57
52
  TimerRunningReminder: "timer_running_reminder",
58
53
  ContractSent: "contract_sent",
@@ -63,8 +58,12 @@ export const Event = {
63
58
  ContractCompleted: "contract_completed",
64
59
  ContractExpired: "contract_expired",
65
60
  ContractVoided: "contract_voided",
66
- QuestionnaireSent: "questionnaire_sent",
67
- QuestionnaireCompleted: "questionnaire_completed",
61
+ SmartFileSent: "smart_file_sent",
62
+ SmartFileViewed: "smart_file_viewed",
63
+ SmartFileAccepted: "smart_file_accepted",
64
+ SmartFileCompleted: "smart_file_completed",
65
+ SmartFileExpired: "smart_file_expired",
66
+ FormSubmissionCompleted: "form_submission_completed",
68
67
  SubscriptionPaymentFailed: "subscription_payment_failed",
69
68
  PayoutPaid: "payout_paid",
70
69
  PayoutFailed: "payout_failed",
@@ -6,12 +6,6 @@ import * as z from "zod/v4-mini";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const WebhookCreateEvent = {
9
- ProposalSent: "proposal_sent",
10
- ProposalExpiring: "proposal_expiring",
11
- ProposalAccepted: "proposal_accepted",
12
- ProposalRejected: "proposal_rejected",
13
- ProposalExpired: "proposal_expired",
14
- ProposalViewed: "proposal_viewed",
15
9
  InvoiceSent: "invoice_sent",
16
10
  InvoiceDueSoon: "invoice_due_soon",
17
11
  InvoiceOverdue: "invoice_overdue",
@@ -40,9 +34,10 @@ export const WebhookCreateEvent = {
40
34
  ContactCreated: "contact_created",
41
35
  ProjectCreated: "project_created",
42
36
  TimeEntryCreated: "time_entry_created",
43
- InquiryCreated: "inquiry_created",
44
- InquiryStatusChanged: "inquiry_status_changed",
45
- InquiryConverted: "inquiry_converted",
37
+ LeadCreated: "lead_created",
38
+ ClientWon: "client_won",
39
+ ClientLost: "client_lost",
40
+ LeadStatusChanged: "lead_status_changed",
46
41
  MilestoneApproaching: "milestone_approaching",
47
42
  TimerRunningReminder: "timer_running_reminder",
48
43
  ContractSent: "contract_sent",
@@ -53,8 +48,12 @@ export const WebhookCreateEvent = {
53
48
  ContractCompleted: "contract_completed",
54
49
  ContractExpired: "contract_expired",
55
50
  ContractVoided: "contract_voided",
56
- QuestionnaireSent: "questionnaire_sent",
57
- QuestionnaireCompleted: "questionnaire_completed",
51
+ SmartFileSent: "smart_file_sent",
52
+ SmartFileViewed: "smart_file_viewed",
53
+ SmartFileAccepted: "smart_file_accepted",
54
+ SmartFileCompleted: "smart_file_completed",
55
+ SmartFileExpired: "smart_file_expired",
56
+ FormSubmissionCompleted: "form_submission_completed",
58
57
  SubscriptionPaymentFailed: "subscription_payment_failed",
59
58
  PayoutPaid: "payout_paid",
60
59
  PayoutFailed: "payout_failed",
@@ -6,12 +6,6 @@ import * as z from "zod/v4-mini";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const WebhookUpdateEvent = {
9
- ProposalSent: "proposal_sent",
10
- ProposalExpiring: "proposal_expiring",
11
- ProposalAccepted: "proposal_accepted",
12
- ProposalRejected: "proposal_rejected",
13
- ProposalExpired: "proposal_expired",
14
- ProposalViewed: "proposal_viewed",
15
9
  InvoiceSent: "invoice_sent",
16
10
  InvoiceDueSoon: "invoice_due_soon",
17
11
  InvoiceOverdue: "invoice_overdue",
@@ -40,9 +34,10 @@ export const WebhookUpdateEvent = {
40
34
  ContactCreated: "contact_created",
41
35
  ProjectCreated: "project_created",
42
36
  TimeEntryCreated: "time_entry_created",
43
- InquiryCreated: "inquiry_created",
44
- InquiryStatusChanged: "inquiry_status_changed",
45
- InquiryConverted: "inquiry_converted",
37
+ LeadCreated: "lead_created",
38
+ ClientWon: "client_won",
39
+ ClientLost: "client_lost",
40
+ LeadStatusChanged: "lead_status_changed",
46
41
  MilestoneApproaching: "milestone_approaching",
47
42
  TimerRunningReminder: "timer_running_reminder",
48
43
  ContractSent: "contract_sent",
@@ -53,8 +48,12 @@ export const WebhookUpdateEvent = {
53
48
  ContractCompleted: "contract_completed",
54
49
  ContractExpired: "contract_expired",
55
50
  ContractVoided: "contract_voided",
56
- QuestionnaireSent: "questionnaire_sent",
57
- QuestionnaireCompleted: "questionnaire_completed",
51
+ SmartFileSent: "smart_file_sent",
52
+ SmartFileViewed: "smart_file_viewed",
53
+ SmartFileAccepted: "smart_file_accepted",
54
+ SmartFileCompleted: "smart_file_completed",
55
+ SmartFileExpired: "smart_file_expired",
56
+ FormSubmissionCompleted: "form_submission_completed",
58
57
  SubscriptionPaymentFailed: "subscription_payment_failed",
59
58
  PayoutPaid: "payout_paid",
60
59
  PayoutFailed: "payout_failed",
@@ -11,12 +11,6 @@ import * as types from "../types/primitives.js";
11
11
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
12
 
13
13
  export const WebhookEvent = {
14
- ProposalSent: "proposal_sent",
15
- ProposalExpiring: "proposal_expiring",
16
- ProposalAccepted: "proposal_accepted",
17
- ProposalRejected: "proposal_rejected",
18
- ProposalExpired: "proposal_expired",
19
- ProposalViewed: "proposal_viewed",
20
14
  InvoiceSent: "invoice_sent",
21
15
  InvoiceDueSoon: "invoice_due_soon",
22
16
  InvoiceOverdue: "invoice_overdue",
@@ -45,9 +39,10 @@ export const WebhookEvent = {
45
39
  ContactCreated: "contact_created",
46
40
  ProjectCreated: "project_created",
47
41
  TimeEntryCreated: "time_entry_created",
48
- InquiryCreated: "inquiry_created",
49
- InquiryStatusChanged: "inquiry_status_changed",
50
- InquiryConverted: "inquiry_converted",
42
+ LeadCreated: "lead_created",
43
+ ClientWon: "client_won",
44
+ ClientLost: "client_lost",
45
+ LeadStatusChanged: "lead_status_changed",
51
46
  MilestoneApproaching: "milestone_approaching",
52
47
  TimerRunningReminder: "timer_running_reminder",
53
48
  ContractSent: "contract_sent",
@@ -58,8 +53,12 @@ export const WebhookEvent = {
58
53
  ContractCompleted: "contract_completed",
59
54
  ContractExpired: "contract_expired",
60
55
  ContractVoided: "contract_voided",
61
- QuestionnaireSent: "questionnaire_sent",
62
- QuestionnaireCompleted: "questionnaire_completed",
56
+ SmartFileSent: "smart_file_sent",
57
+ SmartFileViewed: "smart_file_viewed",
58
+ SmartFileAccepted: "smart_file_accepted",
59
+ SmartFileCompleted: "smart_file_completed",
60
+ SmartFileExpired: "smart_file_expired",
61
+ FormSubmissionCompleted: "form_submission_completed",
63
62
  SubscriptionPaymentFailed: "subscription_payment_failed",
64
63
  PayoutPaid: "payout_paid",
65
64
  PayoutFailed: "payout_failed",
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { formSubmissionsGet } from "../funcs/form-submissions-get.js";
6
+ import { formSubmissionsList } from "../funcs/form-submissions-list.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
12
+
13
+ export class FormSubmissions extends ClientSDK {
14
+ /**
15
+ * List form submissions
16
+ *
17
+ * @remarks
18
+ * Answers are omitted from the list (returned as `null`); fetch a single submission to read them.
19
+ */
20
+ async list(
21
+ security: operations.ListFormSubmissionsSecurity,
22
+ request?: operations.ListFormSubmissionsRequest | undefined,
23
+ options?: RequestOptions,
24
+ ): Promise<
25
+ PageIterator<operations.ListFormSubmissionsResponse, { page: number }>
26
+ > {
27
+ return unwrapResultIterator(formSubmissionsList(
28
+ this,
29
+ security,
30
+ request,
31
+ options,
32
+ ));
33
+ }
34
+
35
+ /**
36
+ * Get a form submission (with answers)
37
+ */
38
+ async get(
39
+ security: operations.GetFormSubmissionSecurity,
40
+ request: operations.GetFormSubmissionRequest,
41
+ options?: RequestOptions,
42
+ ): Promise<models.FormSubmission> {
43
+ return unwrapAsync(formSubmissionsGet(
44
+ this,
45
+ security,
46
+ request,
47
+ options,
48
+ ));
49
+ }
50
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { formsAndAgreementsGet } from "../funcs/forms-and-agreements-get.js";
6
+ import { formsAndAgreementsList } from "../funcs/forms-and-agreements-list.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
12
+
13
+ export class FormsAndAgreements extends ClientSDK {
14
+ /**
15
+ * List proposals
16
+ */
17
+ async list(
18
+ security: operations.ListClientDocumentsSecurity,
19
+ request?: operations.ListClientDocumentsRequest | undefined,
20
+ options?: RequestOptions,
21
+ ): Promise<
22
+ PageIterator<operations.ListClientDocumentsResponse, { page: number }>
23
+ > {
24
+ return unwrapResultIterator(formsAndAgreementsList(
25
+ this,
26
+ security,
27
+ request,
28
+ options,
29
+ ));
30
+ }
31
+
32
+ /**
33
+ * Get a proposal
34
+ */
35
+ async get(
36
+ security: operations.GetClientDocumentSecurity,
37
+ request: operations.GetClientDocumentRequest,
38
+ options?: RequestOptions,
39
+ ): Promise<models.ClientDocument> {
40
+ return unwrapAsync(formsAndAgreementsGet(
41
+ this,
42
+ security,
43
+ request,
44
+ options,
45
+ ));
46
+ }
47
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { formsGet } from "../funcs/forms-get.js";
6
+ import { formsList } from "../funcs/forms-list.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
12
+
13
+ export class Forms extends ClientSDK {
14
+ /**
15
+ * List forms
16
+ */
17
+ async list(
18
+ security: operations.ListFormsSecurity,
19
+ request?: operations.ListFormsRequest | undefined,
20
+ options?: RequestOptions,
21
+ ): Promise<PageIterator<operations.ListFormsResponse, { page: number }>> {
22
+ return unwrapResultIterator(formsList(
23
+ this,
24
+ security,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Get a form
32
+ */
33
+ async get(
34
+ security: operations.GetFormSecurity,
35
+ request: operations.GetFormRequest,
36
+ options?: RequestOptions,
37
+ ): Promise<models.Form> {
38
+ return unwrapAsync(formsGet(
39
+ this,
40
+ security,
41
+ request,
42
+ options,
43
+ ));
44
+ }
45
+ }
@@ -36,7 +36,7 @@ export class Milestones extends ClientSDK {
36
36
  * Create a milestone
37
37
  *
38
38
  * @remarks
39
- * Milestones attach to either a project or a proposal — `parentType` + `parentId` are both required.
39
+ * Milestones attach to either a project or a form/agreement — `parentType` + `parentId` are both required.
40
40
  */
41
41
  async create(
42
42
  security: operations.CreateMilestoneSecurity,