@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
@@ -1,73 +0,0 @@
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 * as models from "../index.js";
8
-
9
- export type CreateInquirySecurity = {
10
- apiKey?: string | undefined;
11
- bearer?: string | undefined;
12
- };
13
-
14
- export type CreateInquiryRequest = {
15
- /**
16
- * Optional unique key that makes this create safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
17
- */
18
- idempotencyKey?: string | undefined;
19
- body: models.InquiryCreate;
20
- };
21
-
22
- /** @internal */
23
- export type CreateInquirySecurity$Outbound = {
24
- apiKey?: string | undefined;
25
- bearer?: string | undefined;
26
- };
27
-
28
- /** @internal */
29
- export const CreateInquirySecurity$outboundSchema: z.ZodMiniType<
30
- CreateInquirySecurity$Outbound,
31
- CreateInquirySecurity
32
- > = z.object({
33
- apiKey: z.optional(z.string()),
34
- bearer: z.optional(z.string()),
35
- });
36
-
37
- export function createInquirySecurityToJSON(
38
- createInquirySecurity: CreateInquirySecurity,
39
- ): string {
40
- return JSON.stringify(
41
- CreateInquirySecurity$outboundSchema.parse(createInquirySecurity),
42
- );
43
- }
44
-
45
- /** @internal */
46
- export type CreateInquiryRequest$Outbound = {
47
- "Idempotency-Key"?: string | undefined;
48
- body: models.InquiryCreate$Outbound;
49
- };
50
-
51
- /** @internal */
52
- export const CreateInquiryRequest$outboundSchema: z.ZodMiniType<
53
- CreateInquiryRequest$Outbound,
54
- CreateInquiryRequest
55
- > = z.pipe(
56
- z.object({
57
- idempotencyKey: z.optional(z.string()),
58
- body: models.InquiryCreate$outboundSchema,
59
- }),
60
- z.transform((v) => {
61
- return remap$(v, {
62
- idempotencyKey: "Idempotency-Key",
63
- });
64
- }),
65
- );
66
-
67
- export function createInquiryRequestToJSON(
68
- createInquiryRequest: CreateInquiryRequest,
69
- ): string {
70
- return JSON.stringify(
71
- CreateInquiryRequest$outboundSchema.parse(createInquiryRequest),
72
- );
73
- }
@@ -1,73 +0,0 @@
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 * as models from "../index.js";
8
-
9
- export type CreateProposalSecurity = {
10
- apiKey?: string | undefined;
11
- bearer?: string | undefined;
12
- };
13
-
14
- export type CreateProposalRequest = {
15
- /**
16
- * Optional unique key that makes this create safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
17
- */
18
- idempotencyKey?: string | undefined;
19
- body: models.ProposalCreate;
20
- };
21
-
22
- /** @internal */
23
- export type CreateProposalSecurity$Outbound = {
24
- apiKey?: string | undefined;
25
- bearer?: string | undefined;
26
- };
27
-
28
- /** @internal */
29
- export const CreateProposalSecurity$outboundSchema: z.ZodMiniType<
30
- CreateProposalSecurity$Outbound,
31
- CreateProposalSecurity
32
- > = z.object({
33
- apiKey: z.optional(z.string()),
34
- bearer: z.optional(z.string()),
35
- });
36
-
37
- export function createProposalSecurityToJSON(
38
- createProposalSecurity: CreateProposalSecurity,
39
- ): string {
40
- return JSON.stringify(
41
- CreateProposalSecurity$outboundSchema.parse(createProposalSecurity),
42
- );
43
- }
44
-
45
- /** @internal */
46
- export type CreateProposalRequest$Outbound = {
47
- "Idempotency-Key"?: string | undefined;
48
- body: models.ProposalCreate$Outbound;
49
- };
50
-
51
- /** @internal */
52
- export const CreateProposalRequest$outboundSchema: z.ZodMiniType<
53
- CreateProposalRequest$Outbound,
54
- CreateProposalRequest
55
- > = z.pipe(
56
- z.object({
57
- idempotencyKey: z.optional(z.string()),
58
- body: models.ProposalCreate$outboundSchema,
59
- }),
60
- z.transform((v) => {
61
- return remap$(v, {
62
- idempotencyKey: "Idempotency-Key",
63
- });
64
- }),
65
- );
66
-
67
- export function createProposalRequestToJSON(
68
- createProposalRequest: CreateProposalRequest,
69
- ): string {
70
- return JSON.stringify(
71
- CreateProposalRequest$outboundSchema.parse(createProposalRequest),
72
- );
73
- }
@@ -1,61 +0,0 @@
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 DeleteInquirySecurity = {
8
- apiKey?: string | undefined;
9
- bearer?: string | undefined;
10
- };
11
-
12
- export type DeleteInquiryRequest = {
13
- /**
14
- * UUID v4
15
- */
16
- id: string;
17
- };
18
-
19
- /** @internal */
20
- export type DeleteInquirySecurity$Outbound = {
21
- apiKey?: string | undefined;
22
- bearer?: string | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const DeleteInquirySecurity$outboundSchema: z.ZodMiniType<
27
- DeleteInquirySecurity$Outbound,
28
- DeleteInquirySecurity
29
- > = z.object({
30
- apiKey: z.optional(z.string()),
31
- bearer: z.optional(z.string()),
32
- });
33
-
34
- export function deleteInquirySecurityToJSON(
35
- deleteInquirySecurity: DeleteInquirySecurity,
36
- ): string {
37
- return JSON.stringify(
38
- DeleteInquirySecurity$outboundSchema.parse(deleteInquirySecurity),
39
- );
40
- }
41
-
42
- /** @internal */
43
- export type DeleteInquiryRequest$Outbound = {
44
- id: string;
45
- };
46
-
47
- /** @internal */
48
- export const DeleteInquiryRequest$outboundSchema: z.ZodMiniType<
49
- DeleteInquiryRequest$Outbound,
50
- DeleteInquiryRequest
51
- > = z.object({
52
- id: z.string(),
53
- });
54
-
55
- export function deleteInquiryRequestToJSON(
56
- deleteInquiryRequest: DeleteInquiryRequest,
57
- ): string {
58
- return JSON.stringify(
59
- DeleteInquiryRequest$outboundSchema.parse(deleteInquiryRequest),
60
- );
61
- }
@@ -1,61 +0,0 @@
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 DeleteProposalSecurity = {
8
- apiKey?: string | undefined;
9
- bearer?: string | undefined;
10
- };
11
-
12
- export type DeleteProposalRequest = {
13
- /**
14
- * UUID v4
15
- */
16
- id: string;
17
- };
18
-
19
- /** @internal */
20
- export type DeleteProposalSecurity$Outbound = {
21
- apiKey?: string | undefined;
22
- bearer?: string | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const DeleteProposalSecurity$outboundSchema: z.ZodMiniType<
27
- DeleteProposalSecurity$Outbound,
28
- DeleteProposalSecurity
29
- > = z.object({
30
- apiKey: z.optional(z.string()),
31
- bearer: z.optional(z.string()),
32
- });
33
-
34
- export function deleteProposalSecurityToJSON(
35
- deleteProposalSecurity: DeleteProposalSecurity,
36
- ): string {
37
- return JSON.stringify(
38
- DeleteProposalSecurity$outboundSchema.parse(deleteProposalSecurity),
39
- );
40
- }
41
-
42
- /** @internal */
43
- export type DeleteProposalRequest$Outbound = {
44
- id: string;
45
- };
46
-
47
- /** @internal */
48
- export const DeleteProposalRequest$outboundSchema: z.ZodMiniType<
49
- DeleteProposalRequest$Outbound,
50
- DeleteProposalRequest
51
- > = z.object({
52
- id: z.string(),
53
- });
54
-
55
- export function deleteProposalRequestToJSON(
56
- deleteProposalRequest: DeleteProposalRequest,
57
- ): string {
58
- return JSON.stringify(
59
- DeleteProposalRequest$outboundSchema.parse(deleteProposalRequest),
60
- );
61
- }
@@ -1,61 +0,0 @@
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 GetInquirySecurity = {
8
- apiKey?: string | undefined;
9
- bearer?: string | undefined;
10
- };
11
-
12
- export type GetInquiryRequest = {
13
- /**
14
- * UUID v4
15
- */
16
- id: string;
17
- };
18
-
19
- /** @internal */
20
- export type GetInquirySecurity$Outbound = {
21
- apiKey?: string | undefined;
22
- bearer?: string | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const GetInquirySecurity$outboundSchema: z.ZodMiniType<
27
- GetInquirySecurity$Outbound,
28
- GetInquirySecurity
29
- > = z.object({
30
- apiKey: z.optional(z.string()),
31
- bearer: z.optional(z.string()),
32
- });
33
-
34
- export function getInquirySecurityToJSON(
35
- getInquirySecurity: GetInquirySecurity,
36
- ): string {
37
- return JSON.stringify(
38
- GetInquirySecurity$outboundSchema.parse(getInquirySecurity),
39
- );
40
- }
41
-
42
- /** @internal */
43
- export type GetInquiryRequest$Outbound = {
44
- id: string;
45
- };
46
-
47
- /** @internal */
48
- export const GetInquiryRequest$outboundSchema: z.ZodMiniType<
49
- GetInquiryRequest$Outbound,
50
- GetInquiryRequest
51
- > = z.object({
52
- id: z.string(),
53
- });
54
-
55
- export function getInquiryRequestToJSON(
56
- getInquiryRequest: GetInquiryRequest,
57
- ): string {
58
- return JSON.stringify(
59
- GetInquiryRequest$outboundSchema.parse(getInquiryRequest),
60
- );
61
- }
@@ -1,61 +0,0 @@
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 GetProposalSecurity = {
8
- apiKey?: string | undefined;
9
- bearer?: string | undefined;
10
- };
11
-
12
- export type GetProposalRequest = {
13
- /**
14
- * UUID v4
15
- */
16
- id: string;
17
- };
18
-
19
- /** @internal */
20
- export type GetProposalSecurity$Outbound = {
21
- apiKey?: string | undefined;
22
- bearer?: string | undefined;
23
- };
24
-
25
- /** @internal */
26
- export const GetProposalSecurity$outboundSchema: z.ZodMiniType<
27
- GetProposalSecurity$Outbound,
28
- GetProposalSecurity
29
- > = z.object({
30
- apiKey: z.optional(z.string()),
31
- bearer: z.optional(z.string()),
32
- });
33
-
34
- export function getProposalSecurityToJSON(
35
- getProposalSecurity: GetProposalSecurity,
36
- ): string {
37
- return JSON.stringify(
38
- GetProposalSecurity$outboundSchema.parse(getProposalSecurity),
39
- );
40
- }
41
-
42
- /** @internal */
43
- export type GetProposalRequest$Outbound = {
44
- id: string;
45
- };
46
-
47
- /** @internal */
48
- export const GetProposalRequest$outboundSchema: z.ZodMiniType<
49
- GetProposalRequest$Outbound,
50
- GetProposalRequest
51
- > = z.object({
52
- id: z.string(),
53
- });
54
-
55
- export function getProposalRequestToJSON(
56
- getProposalRequest: GetProposalRequest,
57
- ): string {
58
- return JSON.stringify(
59
- GetProposalRequest$outboundSchema.parse(getProposalRequest),
60
- );
61
- }
@@ -1,130 +0,0 @@
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 ListInquiriesSecurity = {
14
- apiKey?: string | undefined;
15
- bearer?: string | undefined;
16
- };
17
-
18
- export const ListInquiriesStatus = {
19
- New: "new",
20
- Contacted: "contacted",
21
- Qualified: "qualified",
22
- Converted: "converted",
23
- Declined: "declined",
24
- Spam: "spam",
25
- } as const;
26
- export type ListInquiriesStatus = ClosedEnum<typeof ListInquiriesStatus>;
27
-
28
- export const Source = {
29
- InquiryForm: "inquiry_form",
30
- Manual: "manual",
31
- Referral: "referral",
32
- Other: "other",
33
- } as const;
34
- export type Source = ClosedEnum<typeof Source>;
35
-
36
- export type ListInquiriesRequest = {
37
- page?: number | undefined;
38
- pageSize?: number | undefined;
39
- status?: ListInquiriesStatus | undefined;
40
- source?: Source | undefined;
41
- };
42
-
43
- export type ListInquiriesResponse = {
44
- result: models.InquiryList;
45
- };
46
-
47
- /** @internal */
48
- export type ListInquiriesSecurity$Outbound = {
49
- apiKey?: string | undefined;
50
- bearer?: string | undefined;
51
- };
52
-
53
- /** @internal */
54
- export const ListInquiriesSecurity$outboundSchema: z.ZodMiniType<
55
- ListInquiriesSecurity$Outbound,
56
- ListInquiriesSecurity
57
- > = z.object({
58
- apiKey: z.optional(z.string()),
59
- bearer: z.optional(z.string()),
60
- });
61
-
62
- export function listInquiriesSecurityToJSON(
63
- listInquiriesSecurity: ListInquiriesSecurity,
64
- ): string {
65
- return JSON.stringify(
66
- ListInquiriesSecurity$outboundSchema.parse(listInquiriesSecurity),
67
- );
68
- }
69
-
70
- /** @internal */
71
- export const ListInquiriesStatus$outboundSchema: z.ZodMiniEnum<
72
- typeof ListInquiriesStatus
73
- > = z.enum(ListInquiriesStatus);
74
-
75
- /** @internal */
76
- export const Source$outboundSchema: z.ZodMiniEnum<typeof Source> = z.enum(
77
- Source,
78
- );
79
-
80
- /** @internal */
81
- export type ListInquiriesRequest$Outbound = {
82
- page: number;
83
- pageSize: number;
84
- status?: string | undefined;
85
- source?: string | undefined;
86
- };
87
-
88
- /** @internal */
89
- export const ListInquiriesRequest$outboundSchema: z.ZodMiniType<
90
- ListInquiriesRequest$Outbound,
91
- ListInquiriesRequest
92
- > = z.object({
93
- page: z._default(z.int(), 1),
94
- pageSize: z._default(z.int(), 25),
95
- status: z.optional(ListInquiriesStatus$outboundSchema),
96
- source: z.optional(Source$outboundSchema),
97
- });
98
-
99
- export function listInquiriesRequestToJSON(
100
- listInquiriesRequest: ListInquiriesRequest,
101
- ): string {
102
- return JSON.stringify(
103
- ListInquiriesRequest$outboundSchema.parse(listInquiriesRequest),
104
- );
105
- }
106
-
107
- /** @internal */
108
- export const ListInquiriesResponse$inboundSchema: z.ZodMiniType<
109
- ListInquiriesResponse,
110
- unknown
111
- > = z.pipe(
112
- z.object({
113
- Result: models.InquiryList$inboundSchema,
114
- }),
115
- z.transform((v) => {
116
- return remap$(v, {
117
- "Result": "result",
118
- });
119
- }),
120
- );
121
-
122
- export function listInquiriesResponseFromJSON(
123
- jsonString: string,
124
- ): SafeParseResult<ListInquiriesResponse, SDKValidationError> {
125
- return safeParse(
126
- jsonString,
127
- (x) => ListInquiriesResponse$inboundSchema.parse(JSON.parse(x)),
128
- `Failed to parse 'ListInquiriesResponse' from JSON`,
129
- );
130
- }
@@ -1,123 +0,0 @@
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 ListProposalsSecurity = {
14
- apiKey?: string | undefined;
15
- bearer?: string | undefined;
16
- };
17
-
18
- export const ListProposalsStatus = {
19
- Draft: "draft",
20
- Sent: "sent",
21
- Accepted: "accepted",
22
- Rejected: "rejected",
23
- Expired: "expired",
24
- Void: "void",
25
- } as const;
26
- export type ListProposalsStatus = ClosedEnum<typeof ListProposalsStatus>;
27
-
28
- export type ListProposalsRequest = {
29
- page?: number | undefined;
30
- pageSize?: number | undefined;
31
- /**
32
- * UUID v4
33
- */
34
- clientId?: string | undefined;
35
- status?: ListProposalsStatus | undefined;
36
- archived?: boolean | null | undefined;
37
- };
38
-
39
- export type ListProposalsResponse = {
40
- result: models.ProposalList;
41
- };
42
-
43
- /** @internal */
44
- export type ListProposalsSecurity$Outbound = {
45
- apiKey?: string | undefined;
46
- bearer?: string | undefined;
47
- };
48
-
49
- /** @internal */
50
- export const ListProposalsSecurity$outboundSchema: z.ZodMiniType<
51
- ListProposalsSecurity$Outbound,
52
- ListProposalsSecurity
53
- > = z.object({
54
- apiKey: z.optional(z.string()),
55
- bearer: z.optional(z.string()),
56
- });
57
-
58
- export function listProposalsSecurityToJSON(
59
- listProposalsSecurity: ListProposalsSecurity,
60
- ): string {
61
- return JSON.stringify(
62
- ListProposalsSecurity$outboundSchema.parse(listProposalsSecurity),
63
- );
64
- }
65
-
66
- /** @internal */
67
- export const ListProposalsStatus$outboundSchema: z.ZodMiniEnum<
68
- typeof ListProposalsStatus
69
- > = z.enum(ListProposalsStatus);
70
-
71
- /** @internal */
72
- export type ListProposalsRequest$Outbound = {
73
- page: number;
74
- pageSize: number;
75
- clientId?: string | undefined;
76
- status?: string | undefined;
77
- archived?: boolean | null | undefined;
78
- };
79
-
80
- /** @internal */
81
- export const ListProposalsRequest$outboundSchema: z.ZodMiniType<
82
- ListProposalsRequest$Outbound,
83
- ListProposalsRequest
84
- > = z.object({
85
- page: z._default(z.int(), 1),
86
- pageSize: z._default(z.int(), 25),
87
- clientId: z.optional(z.string()),
88
- status: z.optional(ListProposalsStatus$outboundSchema),
89
- archived: z.optional(z.nullable(z.boolean())),
90
- });
91
-
92
- export function listProposalsRequestToJSON(
93
- listProposalsRequest: ListProposalsRequest,
94
- ): string {
95
- return JSON.stringify(
96
- ListProposalsRequest$outboundSchema.parse(listProposalsRequest),
97
- );
98
- }
99
-
100
- /** @internal */
101
- export const ListProposalsResponse$inboundSchema: z.ZodMiniType<
102
- ListProposalsResponse,
103
- unknown
104
- > = z.pipe(
105
- z.object({
106
- Result: models.ProposalList$inboundSchema,
107
- }),
108
- z.transform((v) => {
109
- return remap$(v, {
110
- "Result": "result",
111
- });
112
- }),
113
- );
114
-
115
- export function listProposalsResponseFromJSON(
116
- jsonString: string,
117
- ): SafeParseResult<ListProposalsResponse, SDKValidationError> {
118
- return safeParse(
119
- jsonString,
120
- (x) => ListProposalsResponse$inboundSchema.parse(JSON.parse(x)),
121
- `Failed to parse 'ListProposalsResponse' from JSON`,
122
- );
123
- }
@@ -1,65 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as models from "../index.js";
7
-
8
- export type UpdateInquirySecurity = {
9
- apiKey?: string | undefined;
10
- bearer?: string | undefined;
11
- };
12
-
13
- export type UpdateInquiryRequest = {
14
- /**
15
- * UUID v4
16
- */
17
- id: string;
18
- body: models.InquiryUpdate;
19
- };
20
-
21
- /** @internal */
22
- export type UpdateInquirySecurity$Outbound = {
23
- apiKey?: string | undefined;
24
- bearer?: string | undefined;
25
- };
26
-
27
- /** @internal */
28
- export const UpdateInquirySecurity$outboundSchema: z.ZodMiniType<
29
- UpdateInquirySecurity$Outbound,
30
- UpdateInquirySecurity
31
- > = z.object({
32
- apiKey: z.optional(z.string()),
33
- bearer: z.optional(z.string()),
34
- });
35
-
36
- export function updateInquirySecurityToJSON(
37
- updateInquirySecurity: UpdateInquirySecurity,
38
- ): string {
39
- return JSON.stringify(
40
- UpdateInquirySecurity$outboundSchema.parse(updateInquirySecurity),
41
- );
42
- }
43
-
44
- /** @internal */
45
- export type UpdateInquiryRequest$Outbound = {
46
- id: string;
47
- body: models.InquiryUpdate$Outbound;
48
- };
49
-
50
- /** @internal */
51
- export const UpdateInquiryRequest$outboundSchema: z.ZodMiniType<
52
- UpdateInquiryRequest$Outbound,
53
- UpdateInquiryRequest
54
- > = z.object({
55
- id: z.string(),
56
- body: models.InquiryUpdate$outboundSchema,
57
- });
58
-
59
- export function updateInquiryRequestToJSON(
60
- updateInquiryRequest: UpdateInquiryRequest,
61
- ): string {
62
- return JSON.stringify(
63
- UpdateInquiryRequest$outboundSchema.parse(updateInquiryRequest),
64
- );
65
- }