@apideck/unify 0.20.0 → 0.21.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 (514) hide show
  1. package/README.md +68 -51
  2. package/docs/sdks/agedcreditors/README.md +115 -0
  3. package/docs/sdks/attachments/README.md +97 -0
  4. package/docs/sdks/bills/README.md +24 -20
  5. package/docs/sdks/connections/README.md +100 -80
  6. package/docs/sdks/connectionsettings/README.md +100 -80
  7. package/docs/sdks/creditnotes/README.md +20 -20
  8. package/docs/sdks/expenses/README.md +8 -0
  9. package/docs/sdks/invoiceitems/README.md +16 -0
  10. package/docs/sdks/invoices/README.md +16 -16
  11. package/docs/sdks/journalentries/README.md +20 -0
  12. package/docs/sdks/pipelines/README.md +632 -0
  13. package/docs/sdks/purchaseorders/README.md +106 -186
  14. package/docs/sdks/uploadsessions/README.md +95 -0
  15. package/funcs/accountingAgedCreditorsGet.d.ts +17 -0
  16. package/funcs/accountingAgedCreditorsGet.d.ts.map +1 -0
  17. package/funcs/accountingAgedCreditorsGet.js +128 -0
  18. package/funcs/accountingAgedCreditorsGet.js.map +1 -0
  19. package/funcs/accountingAttachmentsUpload.d.ts +17 -0
  20. package/funcs/accountingAttachmentsUpload.d.ts.map +1 -0
  21. package/funcs/accountingAttachmentsUpload.js +141 -0
  22. package/funcs/accountingAttachmentsUpload.js.map +1 -0
  23. package/funcs/crmPipelinesCreate.d.ts +17 -0
  24. package/funcs/crmPipelinesCreate.d.ts.map +1 -0
  25. package/funcs/crmPipelinesCreate.js +127 -0
  26. package/funcs/crmPipelinesCreate.js.map +1 -0
  27. package/funcs/crmPipelinesDelete.d.ts +17 -0
  28. package/funcs/crmPipelinesDelete.d.ts.map +1 -0
  29. package/funcs/crmPipelinesDelete.js +132 -0
  30. package/funcs/crmPipelinesDelete.js.map +1 -0
  31. package/funcs/crmPipelinesGet.d.ts +17 -0
  32. package/funcs/crmPipelinesGet.d.ts.map +1 -0
  33. package/funcs/crmPipelinesGet.js +133 -0
  34. package/funcs/crmPipelinesGet.js.map +1 -0
  35. package/funcs/crmPipelinesUpdate.d.ts +17 -0
  36. package/funcs/crmPipelinesUpdate.d.ts.map +1 -0
  37. package/funcs/crmPipelinesUpdate.js +133 -0
  38. package/funcs/crmPipelinesUpdate.js.map +1 -0
  39. package/funcs/fileStorageUploadSessionsUpload.d.ts +17 -0
  40. package/funcs/fileStorageUploadSessionsUpload.d.ts.map +1 -0
  41. package/funcs/fileStorageUploadSessionsUpload.js +139 -0
  42. package/funcs/fileStorageUploadSessionsUpload.js.map +1 -0
  43. package/hooks/types.d.ts +1 -1
  44. package/hooks/types.d.ts.map +1 -1
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +4 -4
  47. package/lib/config.js +4 -4
  48. package/lib/security.d.ts +4 -3
  49. package/lib/security.d.ts.map +1 -1
  50. package/lib/security.js +6 -1
  51. package/lib/security.js.map +1 -1
  52. package/models/components/{accountinglocation.d.ts → accountinglocationinput.d.ts} +58 -58
  53. package/models/components/accountinglocationinput.d.ts.map +1 -0
  54. package/models/components/{accountinglocation.js → accountinglocationinput.js} +56 -56
  55. package/models/components/accountinglocationinput.js.map +1 -0
  56. package/models/components/address.d.ts +8 -8
  57. package/models/components/address.d.ts.map +1 -1
  58. package/models/components/address.js +13 -14
  59. package/models/components/address.js.map +1 -1
  60. package/models/components/agedcreditors.d.ts +51 -0
  61. package/models/components/agedcreditors.d.ts.map +1 -0
  62. package/models/components/agedcreditors.js +88 -0
  63. package/models/components/agedcreditors.js.map +1 -0
  64. package/models/components/{applicant.d.ts → applicantinput.d.ts} +79 -79
  65. package/models/components/applicantinput.d.ts.map +1 -0
  66. package/models/components/{applicant.js → applicantinput.js} +85 -85
  67. package/models/components/applicantinput.js.map +1 -0
  68. package/models/components/billlineitem.d.ts +4 -4
  69. package/models/components/{billpayment.d.ts → billpaymentinput.d.ts} +102 -102
  70. package/models/components/billpaymentinput.d.ts.map +1 -0
  71. package/models/components/{billpayment.js → billpaymentinput.js} +100 -100
  72. package/models/components/billpaymentinput.js.map +1 -0
  73. package/models/components/connectionimportdata.d.ts +15 -15
  74. package/models/components/connectionimportdata.d.ts.map +1 -1
  75. package/models/components/connectionimportdata.js +18 -19
  76. package/models/components/connectionimportdata.js.map +1 -1
  77. package/models/components/{connection.d.ts → connectioninput.d.ts} +139 -139
  78. package/models/components/connectioninput.d.ts.map +1 -0
  79. package/models/components/{connection.js → connectioninput.js} +150 -150
  80. package/models/components/connectioninput.js.map +1 -0
  81. package/models/components/consumerconnection.d.ts +6 -26
  82. package/models/components/consumerconnection.d.ts.map +1 -1
  83. package/models/components/consumerconnection.js +3 -26
  84. package/models/components/consumerconnection.js.map +1 -1
  85. package/models/components/{contact.d.ts → contactinput.d.ts} +71 -71
  86. package/models/components/contactinput.d.ts.map +1 -0
  87. package/models/components/{contact.js → contactinput.js} +72 -71
  88. package/models/components/{contact.js.map → contactinput.js.map} +1 -1
  89. package/models/components/createattachmentresponse.d.ts +70 -0
  90. package/models/components/createattachmentresponse.d.ts.map +1 -0
  91. package/models/components/createattachmentresponse.js +83 -0
  92. package/models/components/createattachmentresponse.js.map +1 -0
  93. package/models/components/createconnectionresponse.d.ts +1 -1
  94. package/models/components/createconnectionresponse.d.ts.map +1 -1
  95. package/models/components/createconnectionresponse.js +3 -3
  96. package/models/components/createconnectionresponse.js.map +1 -1
  97. package/models/components/createpipelineresponse.d.ts +70 -0
  98. package/models/components/createpipelineresponse.d.ts.map +1 -0
  99. package/models/components/createpipelineresponse.js +83 -0
  100. package/models/components/createpipelineresponse.js.map +1 -0
  101. package/models/components/{creditnote.d.ts → creditnoteinput.d.ts} +74 -74
  102. package/models/components/creditnoteinput.d.ts.map +1 -0
  103. package/models/components/{creditnote.js → creditnoteinput.js} +69 -69
  104. package/models/components/creditnoteinput.js.map +1 -0
  105. package/models/components/{customer.d.ts → customerinput.d.ts} +70 -70
  106. package/models/components/customerinput.d.ts.map +1 -0
  107. package/models/components/{customer.js → customerinput.js} +64 -64
  108. package/models/components/customerinput.js.map +1 -0
  109. package/models/components/deletepipelineresponse.d.ts +70 -0
  110. package/models/components/deletepipelineresponse.d.ts.map +1 -0
  111. package/models/components/deletepipelineresponse.js +83 -0
  112. package/models/components/deletepipelineresponse.js.map +1 -0
  113. package/models/components/{employeecompensation.d.ts → employeecompensationinput.d.ts} +37 -37
  114. package/models/components/employeecompensationinput.d.ts.map +1 -0
  115. package/models/components/{employeecompensation.js → employeecompensationinput.js} +36 -36
  116. package/models/components/employeecompensationinput.js.map +1 -0
  117. package/models/components/{employee.d.ts → employeeinput.d.ts} +70 -65
  118. package/models/components/employeeinput.d.ts.map +1 -0
  119. package/models/components/{employee.js → employeeinput.js} +67 -63
  120. package/models/components/employeeinput.js.map +1 -0
  121. package/models/components/employeeschedules.d.ts +1 -1
  122. package/models/components/employeeschedules.d.ts.map +1 -1
  123. package/models/components/employeeschedules.js +3 -3
  124. package/models/components/employeeschedules.js.map +1 -1
  125. package/models/components/employeesfilter.d.ts +5 -0
  126. package/models/components/employeesfilter.d.ts.map +1 -1
  127. package/models/components/employeesfilter.js +2 -0
  128. package/models/components/employeesfilter.js.map +1 -1
  129. package/models/components/{expense.d.ts → expenseinput.d.ts} +61 -61
  130. package/models/components/expenseinput.d.ts.map +1 -0
  131. package/models/components/{expense.js → expenseinput.js} +56 -56
  132. package/models/components/expenseinput.js.map +1 -0
  133. package/models/components/expenselineitem.d.ts +11 -6
  134. package/models/components/expenselineitem.d.ts.map +1 -1
  135. package/models/components/expenselineitem.js +8 -4
  136. package/models/components/expenselineitem.js.map +1 -1
  137. package/models/components/expenselineiteminput.d.ts +11 -6
  138. package/models/components/expenselineiteminput.d.ts.map +1 -1
  139. package/models/components/expenselineiteminput.js +8 -4
  140. package/models/components/expenselineiteminput.js.map +1 -1
  141. package/models/components/formfieldoption.d.ts +10 -2
  142. package/models/components/formfieldoption.d.ts.map +1 -1
  143. package/models/components/formfieldoption.js +12 -4
  144. package/models/components/formfieldoption.js.map +1 -1
  145. package/models/components/formfieldoptiongroup.d.ts +29 -4
  146. package/models/components/formfieldoptiongroup.d.ts.map +1 -1
  147. package/models/components/formfieldoptiongroup.js +34 -5
  148. package/models/components/formfieldoptiongroup.js.map +1 -1
  149. package/models/components/getaccountinglocationresponse.d.ts +1 -1
  150. package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
  151. package/models/components/getaccountinglocationresponse.js +3 -3
  152. package/models/components/getaccountinglocationresponse.js.map +1 -1
  153. package/models/components/getaccountinglocationsresponse.d.ts +1 -1
  154. package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
  155. package/models/components/getaccountinglocationsresponse.js +3 -3
  156. package/models/components/getaccountinglocationsresponse.js.map +1 -1
  157. package/models/components/getagedcreditorsresponse.d.ts +67 -0
  158. package/models/components/getagedcreditorsresponse.d.ts.map +1 -0
  159. package/models/components/getagedcreditorsresponse.js +83 -0
  160. package/models/components/getagedcreditorsresponse.js.map +1 -0
  161. package/models/components/getapplicantresponse.d.ts +1 -1
  162. package/models/components/getapplicantresponse.d.ts.map +1 -1
  163. package/models/components/getapplicantresponse.js +3 -3
  164. package/models/components/getapplicantresponse.js.map +1 -1
  165. package/models/components/getapplicantsresponse.d.ts +1 -1
  166. package/models/components/getapplicantsresponse.d.ts.map +1 -1
  167. package/models/components/getapplicantsresponse.js +3 -3
  168. package/models/components/getapplicantsresponse.js.map +1 -1
  169. package/models/components/getbillpaymentresponse.d.ts +1 -1
  170. package/models/components/getbillpaymentresponse.d.ts.map +1 -1
  171. package/models/components/getbillpaymentresponse.js +3 -3
  172. package/models/components/getbillpaymentresponse.js.map +1 -1
  173. package/models/components/getbillpaymentsresponse.d.ts +1 -1
  174. package/models/components/getbillpaymentsresponse.d.ts.map +1 -1
  175. package/models/components/getbillpaymentsresponse.js +3 -3
  176. package/models/components/getbillpaymentsresponse.js.map +1 -1
  177. package/models/components/getconnectionresponse.d.ts +1 -1
  178. package/models/components/getconnectionresponse.d.ts.map +1 -1
  179. package/models/components/getconnectionresponse.js +3 -3
  180. package/models/components/getconnectionresponse.js.map +1 -1
  181. package/models/components/getconnectionsresponse.d.ts +1 -1
  182. package/models/components/getconnectionsresponse.d.ts.map +1 -1
  183. package/models/components/getconnectionsresponse.js +3 -3
  184. package/models/components/getconnectionsresponse.js.map +1 -1
  185. package/models/components/getcontactresponse.d.ts +1 -1
  186. package/models/components/getcontactresponse.d.ts.map +1 -1
  187. package/models/components/getcontactresponse.js +3 -3
  188. package/models/components/getcontactresponse.js.map +1 -1
  189. package/models/components/getcontactsresponse.d.ts +1 -1
  190. package/models/components/getcontactsresponse.d.ts.map +1 -1
  191. package/models/components/getcontactsresponse.js +3 -3
  192. package/models/components/getcontactsresponse.js.map +1 -1
  193. package/models/components/getcreditnoteresponse.d.ts +1 -1
  194. package/models/components/getcreditnoteresponse.d.ts.map +1 -1
  195. package/models/components/getcreditnoteresponse.js +3 -3
  196. package/models/components/getcreditnoteresponse.js.map +1 -1
  197. package/models/components/getcreditnotesresponse.d.ts +1 -1
  198. package/models/components/getcreditnotesresponse.d.ts.map +1 -1
  199. package/models/components/getcreditnotesresponse.js +3 -3
  200. package/models/components/getcreditnotesresponse.js.map +1 -1
  201. package/models/components/getcustomerresponse.d.ts +1 -1
  202. package/models/components/getcustomerresponse.d.ts.map +1 -1
  203. package/models/components/getcustomerresponse.js +3 -3
  204. package/models/components/getcustomerresponse.js.map +1 -1
  205. package/models/components/getcustomersresponse.d.ts +1 -1
  206. package/models/components/getcustomersresponse.d.ts.map +1 -1
  207. package/models/components/getcustomersresponse.js +3 -3
  208. package/models/components/getcustomersresponse.js.map +1 -1
  209. package/models/components/getemployeeresponse.d.ts +1 -1
  210. package/models/components/getemployeeresponse.d.ts.map +1 -1
  211. package/models/components/getemployeeresponse.js +3 -3
  212. package/models/components/getemployeeresponse.js.map +1 -1
  213. package/models/components/getemployeesresponse.d.ts +1 -1
  214. package/models/components/getemployeesresponse.d.ts.map +1 -1
  215. package/models/components/getemployeesresponse.js +3 -3
  216. package/models/components/getemployeesresponse.js.map +1 -1
  217. package/models/components/getexpenseresponse.d.ts +1 -1
  218. package/models/components/getexpenseresponse.d.ts.map +1 -1
  219. package/models/components/getexpenseresponse.js +3 -3
  220. package/models/components/getexpenseresponse.js.map +1 -1
  221. package/models/components/getexpensesresponse.d.ts +1 -1
  222. package/models/components/getexpensesresponse.d.ts.map +1 -1
  223. package/models/components/getexpensesresponse.js +3 -3
  224. package/models/components/getexpensesresponse.js.map +1 -1
  225. package/models/components/gethriscompaniesresponse.d.ts +1 -1
  226. package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
  227. package/models/components/gethriscompaniesresponse.js +3 -3
  228. package/models/components/gethriscompaniesresponse.js.map +1 -1
  229. package/models/components/gethriscompanyresponse.d.ts +1 -1
  230. package/models/components/gethriscompanyresponse.d.ts.map +1 -1
  231. package/models/components/gethriscompanyresponse.js +3 -3
  232. package/models/components/gethriscompanyresponse.js.map +1 -1
  233. package/models/components/getinvoiceresponse.d.ts +1 -1
  234. package/models/components/getinvoiceresponse.d.ts.map +1 -1
  235. package/models/components/getinvoiceresponse.js +3 -3
  236. package/models/components/getinvoiceresponse.js.map +1 -1
  237. package/models/components/getinvoicesresponse.d.ts +1 -1
  238. package/models/components/getinvoicesresponse.d.ts.map +1 -1
  239. package/models/components/getinvoicesresponse.js +3 -3
  240. package/models/components/getinvoicesresponse.js.map +1 -1
  241. package/models/components/getledgeraccountresponse.d.ts +1 -1
  242. package/models/components/getledgeraccountresponse.d.ts.map +1 -1
  243. package/models/components/getledgeraccountresponse.js +3 -3
  244. package/models/components/getledgeraccountresponse.js.map +1 -1
  245. package/models/components/getledgeraccountsresponse.d.ts +1 -1
  246. package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
  247. package/models/components/getledgeraccountsresponse.js +3 -3
  248. package/models/components/getledgeraccountsresponse.js.map +1 -1
  249. package/models/components/getpipelineresponse.d.ts +67 -0
  250. package/models/components/getpipelineresponse.d.ts.map +1 -0
  251. package/models/components/getpipelineresponse.js +83 -0
  252. package/models/components/getpipelineresponse.js.map +1 -0
  253. package/models/components/getsupplierresponse.d.ts +1 -1
  254. package/models/components/getsupplierresponse.d.ts.map +1 -1
  255. package/models/components/getsupplierresponse.js +3 -3
  256. package/models/components/getsupplierresponse.js.map +1 -1
  257. package/models/components/getsuppliersresponse.d.ts +1 -1
  258. package/models/components/getsuppliersresponse.d.ts.map +1 -1
  259. package/models/components/getsuppliersresponse.js +3 -3
  260. package/models/components/getsuppliersresponse.js.map +1 -1
  261. package/models/components/getticketresponse.d.ts +1 -1
  262. package/models/components/getticketresponse.d.ts.map +1 -1
  263. package/models/components/getticketresponse.js +3 -3
  264. package/models/components/getticketresponse.js.map +1 -1
  265. package/models/components/getticketsresponse.d.ts +1 -1
  266. package/models/components/getticketsresponse.d.ts.map +1 -1
  267. package/models/components/getticketsresponse.js +3 -3
  268. package/models/components/getticketsresponse.js.map +1 -1
  269. package/models/components/{hriscompany.d.ts → hriscompanyinput.d.ts} +55 -55
  270. package/models/components/hriscompanyinput.d.ts.map +1 -0
  271. package/models/components/{hriscompany.js → hriscompanyinput.js} +54 -54
  272. package/models/components/hriscompanyinput.js.map +1 -0
  273. package/models/components/index.d.ts +26 -16
  274. package/models/components/index.d.ts.map +1 -1
  275. package/models/components/index.js +26 -16
  276. package/models/components/index.js.map +1 -1
  277. package/models/components/{invoice.d.ts → invoiceinput.d.ts} +74 -74
  278. package/models/components/invoiceinput.d.ts.map +1 -0
  279. package/models/components/{invoice.js → invoiceinput.js} +72 -72
  280. package/models/components/{invoice.js.map → invoiceinput.js.map} +1 -1
  281. package/models/components/invoiceitem.d.ts +46 -0
  282. package/models/components/invoiceitem.d.ts.map +1 -1
  283. package/models/components/invoiceitem.js +34 -0
  284. package/models/components/invoiceitem.js.map +1 -1
  285. package/models/components/{invoicelineitem.d.ts → invoicelineiteminput.d.ts} +59 -59
  286. package/models/components/invoicelineiteminput.d.ts.map +1 -0
  287. package/models/components/{invoicelineitem.js → invoicelineiteminput.js} +54 -54
  288. package/models/components/invoicelineiteminput.js.map +1 -0
  289. package/models/components/journalentrylineitem.d.ts +16 -6
  290. package/models/components/journalentrylineitem.d.ts.map +1 -1
  291. package/models/components/journalentrylineitem.js +12 -4
  292. package/models/components/journalentrylineitem.js.map +1 -1
  293. package/models/components/{ledgeraccount.d.ts → ledgeraccountinput.d.ts} +129 -129
  294. package/models/components/ledgeraccountinput.d.ts.map +1 -0
  295. package/models/components/{ledgeraccount.js → ledgeraccountinput.js} +128 -128
  296. package/models/components/ledgeraccountinput.js.map +1 -0
  297. package/models/components/linkedecommercecustomer.d.ts +6 -6
  298. package/models/components/linkedecommercecustomer.d.ts.map +1 -1
  299. package/models/components/linkedecommercecustomer.js +6 -6
  300. package/models/components/linkedecommercecustomer.js.map +1 -1
  301. package/models/components/outstandingbalancebysupplier.d.ts +40 -0
  302. package/models/components/outstandingbalancebysupplier.d.ts.map +1 -0
  303. package/models/components/outstandingbalancebysupplier.js +77 -0
  304. package/models/components/outstandingbalancebysupplier.js.map +1 -0
  305. package/models/components/pipelineinput.d.ts +117 -0
  306. package/models/components/pipelineinput.d.ts.map +1 -0
  307. package/models/components/pipelineinput.js +133 -0
  308. package/models/components/pipelineinput.js.map +1 -0
  309. package/models/components/purchaseorder.d.ts +6 -1
  310. package/models/components/purchaseorder.d.ts.map +1 -1
  311. package/models/components/purchaseorder.js +14 -5
  312. package/models/components/purchaseorder.js.map +1 -1
  313. package/models/components/simpleformfieldoption.d.ts +27 -2
  314. package/models/components/simpleformfieldoption.d.ts.map +1 -1
  315. package/models/components/simpleformfieldoption.js +33 -3
  316. package/models/components/simpleformfieldoption.js.map +1 -1
  317. package/models/components/{supplier.d.ts → supplierinput.d.ts} +70 -70
  318. package/models/components/supplierinput.d.ts.map +1 -0
  319. package/models/components/{supplier.js → supplierinput.js} +64 -64
  320. package/models/components/supplierinput.js.map +1 -0
  321. package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
  322. package/models/components/ticketinput.d.ts.map +1 -0
  323. package/models/components/{ticket.js → ticketinput.js} +59 -59
  324. package/models/components/ticketinput.js.map +1 -0
  325. package/models/components/updateconnectionresponse.d.ts +1 -1
  326. package/models/components/updateconnectionresponse.d.ts.map +1 -1
  327. package/models/components/updateconnectionresponse.js +3 -3
  328. package/models/components/updateconnectionresponse.js.map +1 -1
  329. package/models/components/updatepipelineresponse.d.ts +70 -0
  330. package/models/components/updatepipelineresponse.d.ts.map +1 -0
  331. package/models/components/updatepipelineresponse.js +83 -0
  332. package/models/components/updatepipelineresponse.js.map +1 -0
  333. package/models/components/updateuploadsessionresponse.d.ts +70 -0
  334. package/models/components/updateuploadsessionresponse.d.ts.map +1 -0
  335. package/models/components/updateuploadsessionresponse.js +83 -0
  336. package/models/components/updateuploadsessionresponse.js.map +1 -0
  337. package/models/operations/accountingagedcreditorsone.d.ts +135 -0
  338. package/models/operations/accountingagedcreditorsone.d.ts.map +1 -0
  339. package/models/operations/accountingagedcreditorsone.js +157 -0
  340. package/models/operations/accountingagedcreditorsone.js.map +1 -0
  341. package/models/operations/accountingattachmentsupload.d.ts +134 -0
  342. package/models/operations/accountingattachmentsupload.d.ts.map +1 -0
  343. package/models/operations/accountingattachmentsupload.js +178 -0
  344. package/models/operations/accountingattachmentsupload.js.map +1 -0
  345. package/models/operations/crmpipelinesadd.d.ts +118 -0
  346. package/models/operations/crmpipelinesadd.d.ts.map +1 -0
  347. package/models/operations/crmpipelinesadd.js +153 -0
  348. package/models/operations/crmpipelinesadd.js.map +1 -0
  349. package/models/operations/crmpipelinesdelete.d.ts +121 -0
  350. package/models/operations/crmpipelinesdelete.d.ts.map +1 -0
  351. package/models/operations/crmpipelinesdelete.js +145 -0
  352. package/models/operations/crmpipelinesdelete.js.map +1 -0
  353. package/models/operations/crmpipelinesone.d.ts +126 -0
  354. package/models/operations/crmpipelinesone.d.ts.map +1 -0
  355. package/models/operations/crmpipelinesone.js +145 -0
  356. package/models/operations/crmpipelinesone.js.map +1 -0
  357. package/models/operations/crmpipelinesupdate.d.ts +123 -0
  358. package/models/operations/crmpipelinesupdate.d.ts.map +1 -0
  359. package/models/operations/crmpipelinesupdate.js +155 -0
  360. package/models/operations/crmpipelinesupdate.js.map +1 -0
  361. package/models/operations/filestorageuploadsessionsupload.d.ts +134 -0
  362. package/models/operations/filestorageuploadsessionsupload.d.ts.map +1 -0
  363. package/models/operations/filestorageuploadsessionsupload.js +174 -0
  364. package/models/operations/filestorageuploadsessionsupload.js.map +1 -0
  365. package/models/operations/index.d.ts +7 -0
  366. package/models/operations/index.d.ts.map +1 -1
  367. package/models/operations/index.js +7 -0
  368. package/models/operations/index.js.map +1 -1
  369. package/package.json +1 -1
  370. package/sdk/accounting.d.ts +3 -0
  371. package/sdk/accounting.d.ts.map +1 -1
  372. package/sdk/accounting.js +4 -0
  373. package/sdk/accounting.js.map +1 -1
  374. package/sdk/agedcreditors.d.ts +12 -0
  375. package/sdk/agedcreditors.d.ts.map +1 -0
  376. package/sdk/agedcreditors.js +22 -0
  377. package/sdk/agedcreditors.js.map +1 -0
  378. package/sdk/attachments.d.ts +7 -0
  379. package/sdk/attachments.d.ts.map +1 -1
  380. package/sdk/attachments.js +10 -0
  381. package/sdk/attachments.js.map +1 -1
  382. package/sdk/pipelines.d.ts +28 -0
  383. package/sdk/pipelines.d.ts.map +1 -1
  384. package/sdk/pipelines.js +41 -0
  385. package/sdk/pipelines.js.map +1 -1
  386. package/sdk/uploadsessions.d.ts +7 -0
  387. package/sdk/uploadsessions.d.ts.map +1 -1
  388. package/sdk/uploadsessions.js +10 -0
  389. package/sdk/uploadsessions.js.map +1 -1
  390. package/src/funcs/accountingAgedCreditorsGet.ts +228 -0
  391. package/src/funcs/accountingAttachmentsUpload.ts +241 -0
  392. package/src/funcs/crmPipelinesCreate.ts +214 -0
  393. package/src/funcs/crmPipelinesDelete.ts +220 -0
  394. package/src/funcs/crmPipelinesGet.ts +221 -0
  395. package/src/funcs/crmPipelinesUpdate.ts +221 -0
  396. package/src/funcs/fileStorageUploadSessionsUpload.ts +239 -0
  397. package/src/hooks/types.ts +1 -1
  398. package/src/lib/config.ts +4 -4
  399. package/src/lib/security.ts +11 -3
  400. package/src/models/components/address.ts +15 -14
  401. package/src/models/components/agedcreditors.ts +120 -0
  402. package/src/models/components/billlineitem.ts +4 -4
  403. package/src/models/components/connectionimportdata.ts +24 -33
  404. package/src/models/components/consumerconnection.ts +4 -53
  405. package/src/models/components/{contact.ts → contactinput.ts} +232 -233
  406. package/src/models/components/createattachmentresponse.ts +131 -0
  407. package/src/models/components/createconnectionresponse.ts +1 -1
  408. package/src/models/components/createpipelineresponse.ts +131 -0
  409. package/src/models/components/{creditnote.ts → creditnoteinput.ts} +131 -131
  410. package/src/models/components/deletepipelineresponse.ts +131 -0
  411. package/src/models/components/{employee.ts → employeeinput.ts} +123 -114
  412. package/src/models/components/employeeschedules.ts +1 -1
  413. package/src/models/components/employeesfilter.ts +7 -0
  414. package/src/models/components/{expense.ts → expenseinput.ts} +166 -166
  415. package/src/models/components/expenselineitem.ts +19 -10
  416. package/src/models/components/expenselineiteminput.ts +19 -10
  417. package/src/models/components/formfieldoption.ts +25 -7
  418. package/src/models/components/formfieldoptiongroup.ts +50 -8
  419. package/src/models/components/getaccountinglocationresponse.ts +1 -1
  420. package/src/models/components/getaccountinglocationsresponse.ts +1 -1
  421. package/src/models/components/getagedcreditorsresponse.ts +128 -0
  422. package/src/models/components/getapplicantresponse.ts +1 -1
  423. package/src/models/components/getapplicantsresponse.ts +1 -1
  424. package/src/models/components/getbillpaymentresponse.ts +1 -1
  425. package/src/models/components/getbillpaymentsresponse.ts +1 -1
  426. package/src/models/components/getconnectionresponse.ts +1 -1
  427. package/src/models/components/getconnectionsresponse.ts +1 -1
  428. package/src/models/components/getcontactresponse.ts +1 -1
  429. package/src/models/components/getcontactsresponse.ts +1 -1
  430. package/src/models/components/getcreditnoteresponse.ts +1 -1
  431. package/src/models/components/getcreditnotesresponse.ts +1 -1
  432. package/src/models/components/getcustomerresponse.ts +1 -1
  433. package/src/models/components/getcustomersresponse.ts +1 -1
  434. package/src/models/components/getemployeeresponse.ts +1 -1
  435. package/src/models/components/getemployeesresponse.ts +1 -1
  436. package/src/models/components/getexpenseresponse.ts +1 -1
  437. package/src/models/components/getexpensesresponse.ts +1 -1
  438. package/src/models/components/gethriscompaniesresponse.ts +1 -1
  439. package/src/models/components/gethriscompanyresponse.ts +1 -1
  440. package/src/models/components/getinvoiceresponse.ts +1 -1
  441. package/src/models/components/getinvoicesresponse.ts +1 -1
  442. package/src/models/components/getledgeraccountresponse.ts +1 -1
  443. package/src/models/components/getledgeraccountsresponse.ts +1 -1
  444. package/src/models/components/getpipelineresponse.ts +128 -0
  445. package/src/models/components/getsupplierresponse.ts +1 -1
  446. package/src/models/components/getsuppliersresponse.ts +1 -1
  447. package/src/models/components/getticketresponse.ts +1 -1
  448. package/src/models/components/getticketsresponse.ts +1 -1
  449. package/src/models/components/index.ts +26 -16
  450. package/src/models/components/{invoice.ts → invoiceinput.ts} +274 -274
  451. package/src/models/components/invoiceitem.ts +74 -0
  452. package/src/models/components/{invoicelineitem.ts → invoicelineiteminput.ts} +104 -104
  453. package/src/models/components/journalentrylineitem.ts +28 -10
  454. package/src/models/components/linkedecommercecustomer.ts +12 -12
  455. package/src/models/components/outstandingbalancebysupplier.ts +109 -0
  456. package/src/models/components/pipelineinput.ts +233 -0
  457. package/src/models/components/purchaseorder.ts +19 -1
  458. package/src/models/components/simpleformfieldoption.ts +42 -4
  459. package/src/models/components/updateconnectionresponse.ts +1 -1
  460. package/src/models/components/updatepipelineresponse.ts +131 -0
  461. package/src/models/components/updateuploadsessionresponse.ts +133 -0
  462. package/src/models/operations/accountingagedcreditorsone.ts +291 -0
  463. package/src/models/operations/accountingattachmentsupload.ts +318 -0
  464. package/src/models/operations/crmpipelinesadd.ts +264 -0
  465. package/src/models/operations/crmpipelinesdelete.ts +259 -0
  466. package/src/models/operations/crmpipelinesone.ts +262 -0
  467. package/src/models/operations/crmpipelinesupdate.ts +271 -0
  468. package/src/models/operations/filestorageuploadsessionsupload.ts +326 -0
  469. package/src/models/operations/index.ts +7 -0
  470. package/src/sdk/accounting.ts +6 -0
  471. package/src/sdk/agedcreditors.ts +27 -0
  472. package/src/sdk/attachments.ts +18 -0
  473. package/src/sdk/pipelines.ts +73 -0
  474. package/src/sdk/uploadsessions.ts +18 -0
  475. package/models/components/accountinglocation.d.ts.map +0 -1
  476. package/models/components/accountinglocation.js.map +0 -1
  477. package/models/components/applicant.d.ts.map +0 -1
  478. package/models/components/applicant.js.map +0 -1
  479. package/models/components/billpayment.d.ts.map +0 -1
  480. package/models/components/billpayment.js.map +0 -1
  481. package/models/components/connection.d.ts.map +0 -1
  482. package/models/components/connection.js.map +0 -1
  483. package/models/components/contact.d.ts.map +0 -1
  484. package/models/components/creditnote.d.ts.map +0 -1
  485. package/models/components/creditnote.js.map +0 -1
  486. package/models/components/customer.d.ts.map +0 -1
  487. package/models/components/customer.js.map +0 -1
  488. package/models/components/employee.d.ts.map +0 -1
  489. package/models/components/employee.js.map +0 -1
  490. package/models/components/employeecompensation.d.ts.map +0 -1
  491. package/models/components/employeecompensation.js.map +0 -1
  492. package/models/components/expense.d.ts.map +0 -1
  493. package/models/components/expense.js.map +0 -1
  494. package/models/components/hriscompany.d.ts.map +0 -1
  495. package/models/components/hriscompany.js.map +0 -1
  496. package/models/components/invoice.d.ts.map +0 -1
  497. package/models/components/invoicelineitem.d.ts.map +0 -1
  498. package/models/components/invoicelineitem.js.map +0 -1
  499. package/models/components/ledgeraccount.d.ts.map +0 -1
  500. package/models/components/ledgeraccount.js.map +0 -1
  501. package/models/components/supplier.d.ts.map +0 -1
  502. package/models/components/supplier.js.map +0 -1
  503. package/models/components/ticket.d.ts.map +0 -1
  504. package/models/components/ticket.js.map +0 -1
  505. package/src/models/components/{accountinglocation.ts → accountinglocationinput.ts} +106 -106
  506. package/src/models/components/{applicant.ts → applicantinput.ts} +157 -157
  507. package/src/models/components/{billpayment.ts → billpaymentinput.ts} +183 -183
  508. package/src/models/components/{connection.ts → connectioninput.ts} +347 -347
  509. package/src/models/components/{customer.ts → customerinput.ts} +121 -121
  510. package/src/models/components/{employeecompensation.ts → employeecompensationinput.ts} +58 -58
  511. package/src/models/components/{hriscompany.ts → hriscompanyinput.ts} +101 -101
  512. package/src/models/components/{ledgeraccount.ts → ledgeraccountinput.ts} +253 -253
  513. package/src/models/components/{supplier.ts → supplierinput.ts} +121 -121
  514. package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ UnifiedId,
12
+ UnifiedId$inboundSchema,
13
+ UnifiedId$Outbound,
14
+ UnifiedId$outboundSchema,
15
+ } from "./unifiedid.js";
16
+
17
+ /**
18
+ * Pipeline created
19
+ */
20
+ export type CreatePipelineResponse = {
21
+ /**
22
+ * HTTP Response Status Code
23
+ */
24
+ statusCode: number;
25
+ /**
26
+ * HTTP Response Status
27
+ */
28
+ status: string;
29
+ /**
30
+ * Apideck ID of service provider
31
+ */
32
+ service: string;
33
+ /**
34
+ * Unified API resource name
35
+ */
36
+ resource: string;
37
+ /**
38
+ * Operation performed
39
+ */
40
+ operation: string;
41
+ /**
42
+ * A object containing a unique identifier for the resource that was created, updated, or deleted.
43
+ */
44
+ data: UnifiedId;
45
+ /**
46
+ * Raw response from the integration when raw=true query param is provided
47
+ */
48
+ raw?: { [k: string]: any } | null | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export const CreatePipelineResponse$inboundSchema: z.ZodType<
53
+ CreatePipelineResponse,
54
+ z.ZodTypeDef,
55
+ unknown
56
+ > = z.object({
57
+ status_code: z.number().int(),
58
+ status: z.string(),
59
+ service: z.string(),
60
+ resource: z.string(),
61
+ operation: z.string(),
62
+ data: UnifiedId$inboundSchema,
63
+ _raw: z.nullable(z.record(z.any())).optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ "status_code": "statusCode",
67
+ "_raw": "raw",
68
+ });
69
+ });
70
+
71
+ /** @internal */
72
+ export type CreatePipelineResponse$Outbound = {
73
+ status_code: number;
74
+ status: string;
75
+ service: string;
76
+ resource: string;
77
+ operation: string;
78
+ data: UnifiedId$Outbound;
79
+ _raw?: { [k: string]: any } | null | undefined;
80
+ };
81
+
82
+ /** @internal */
83
+ export const CreatePipelineResponse$outboundSchema: z.ZodType<
84
+ CreatePipelineResponse$Outbound,
85
+ z.ZodTypeDef,
86
+ CreatePipelineResponse
87
+ > = z.object({
88
+ statusCode: z.number().int(),
89
+ status: z.string(),
90
+ service: z.string(),
91
+ resource: z.string(),
92
+ operation: z.string(),
93
+ data: UnifiedId$outboundSchema,
94
+ raw: z.nullable(z.record(z.any())).optional(),
95
+ }).transform((v) => {
96
+ return remap$(v, {
97
+ statusCode: "status_code",
98
+ raw: "_raw",
99
+ });
100
+ });
101
+
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export namespace CreatePipelineResponse$ {
107
+ /** @deprecated use `CreatePipelineResponse$inboundSchema` instead. */
108
+ export const inboundSchema = CreatePipelineResponse$inboundSchema;
109
+ /** @deprecated use `CreatePipelineResponse$outboundSchema` instead. */
110
+ export const outboundSchema = CreatePipelineResponse$outboundSchema;
111
+ /** @deprecated use `CreatePipelineResponse$Outbound` instead. */
112
+ export type Outbound = CreatePipelineResponse$Outbound;
113
+ }
114
+
115
+ export function createPipelineResponseToJSON(
116
+ createPipelineResponse: CreatePipelineResponse,
117
+ ): string {
118
+ return JSON.stringify(
119
+ CreatePipelineResponse$outboundSchema.parse(createPipelineResponse),
120
+ );
121
+ }
122
+
123
+ export function createPipelineResponseFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<CreatePipelineResponse, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => CreatePipelineResponse$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'CreatePipelineResponse' from JSON`,
130
+ );
131
+ }
@@ -50,7 +50,7 @@ import {
50
50
  InvoiceLineItemInput$inboundSchema,
51
51
  InvoiceLineItemInput$Outbound,
52
52
  InvoiceLineItemInput$outboundSchema,
53
- } from "./invoicelineitem.js";
53
+ } from "./invoicelineiteminput.js";
54
54
  import {
55
55
  LinkedCustomer,
56
56
  LinkedCustomer$inboundSchema,
@@ -115,11 +115,7 @@ export const CreditNoteType = {
115
115
  */
116
116
  export type CreditNoteType = ClosedEnum<typeof CreditNoteType>;
117
117
 
118
- export type CreditNote = {
119
- /**
120
- * Unique identifier representing the entity
121
- */
122
- id: string;
118
+ export type CreditNoteInput = {
123
119
  /**
124
120
  * Credit note number.
125
121
  */
@@ -127,7 +123,7 @@ export type CreditNote = {
127
123
  /**
128
124
  * The customer this entity is linked to.
129
125
  */
130
- customer?: LinkedCustomer | null | undefined;
126
+ customer?: LinkedCustomerInput | null | undefined;
131
127
  /**
132
128
  * The company or subsidiary id the transaction belongs to
133
129
  */
@@ -188,9 +184,9 @@ export type CreditNote = {
188
184
  * Type of payment
189
185
  */
190
186
  type?: CreditNoteType | undefined;
191
- account?: LinkedLedgerAccount | null | undefined;
192
- lineItems?: Array<InvoiceLineItem> | undefined;
193
- allocations?: Array<Allocation> | undefined;
187
+ account?: LinkedLedgerAccountInput | null | undefined;
188
+ lineItems?: Array<InvoiceLineItemInput> | undefined;
189
+ allocations?: Array<AllocationInput> | undefined;
194
190
  /**
195
191
  * Optional note to be associated with the credit note.
196
192
  */
@@ -205,38 +201,22 @@ export type CreditNote = {
205
201
  * A list of linked tracking categories.
206
202
  */
207
203
  trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
208
- /**
209
- * When custom mappings are configured on the resource, the result is included here.
210
- */
211
- customMappings?: CustomMappings | null | undefined;
212
204
  customFields?: Array<CustomField> | undefined;
213
205
  /**
214
206
  * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
215
207
  */
216
208
  rowVersion?: string | null | undefined;
217
- /**
218
- * The user who last updated the object.
219
- */
220
- updatedBy?: string | null | undefined;
221
- /**
222
- * The user who created the object.
223
- */
224
- createdBy?: string | null | undefined;
225
- /**
226
- * The date and time when the object was last updated.
227
- */
228
- updatedAt?: Date | null | undefined;
229
- /**
230
- * The date and time when the object was created.
231
- */
232
- createdAt?: Date | null | undefined;
233
209
  /**
234
210
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
235
211
  */
236
212
  passThrough?: Array<PassThroughBody> | undefined;
237
213
  };
238
214
 
239
- export type CreditNoteInput = {
215
+ export type CreditNote = {
216
+ /**
217
+ * Unique identifier representing the entity
218
+ */
219
+ id: string;
240
220
  /**
241
221
  * Credit note number.
242
222
  */
@@ -244,7 +224,7 @@ export type CreditNoteInput = {
244
224
  /**
245
225
  * The customer this entity is linked to.
246
226
  */
247
- customer?: LinkedCustomerInput | null | undefined;
227
+ customer?: LinkedCustomer | null | undefined;
248
228
  /**
249
229
  * The company or subsidiary id the transaction belongs to
250
230
  */
@@ -305,9 +285,9 @@ export type CreditNoteInput = {
305
285
  * Type of payment
306
286
  */
307
287
  type?: CreditNoteType | undefined;
308
- account?: LinkedLedgerAccountInput | null | undefined;
309
- lineItems?: Array<InvoiceLineItemInput> | undefined;
310
- allocations?: Array<AllocationInput> | undefined;
288
+ account?: LinkedLedgerAccount | null | undefined;
289
+ lineItems?: Array<InvoiceLineItem> | undefined;
290
+ allocations?: Array<Allocation> | undefined;
311
291
  /**
312
292
  * Optional note to be associated with the credit note.
313
293
  */
@@ -322,11 +302,31 @@ export type CreditNoteInput = {
322
302
  * A list of linked tracking categories.
323
303
  */
324
304
  trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
305
+ /**
306
+ * When custom mappings are configured on the resource, the result is included here.
307
+ */
308
+ customMappings?: CustomMappings | null | undefined;
325
309
  customFields?: Array<CustomField> | undefined;
326
310
  /**
327
311
  * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
328
312
  */
329
313
  rowVersion?: string | null | undefined;
314
+ /**
315
+ * The user who last updated the object.
316
+ */
317
+ updatedBy?: string | null | undefined;
318
+ /**
319
+ * The user who created the object.
320
+ */
321
+ createdBy?: string | null | undefined;
322
+ /**
323
+ * The date and time when the object was last updated.
324
+ */
325
+ updatedAt?: Date | null | undefined;
326
+ /**
327
+ * The date and time when the object was created.
328
+ */
329
+ createdAt?: Date | null | undefined;
330
330
  /**
331
331
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
332
332
  */
@@ -376,14 +376,13 @@ export namespace CreditNoteType$ {
376
376
  }
377
377
 
378
378
  /** @internal */
379
- export const CreditNote$inboundSchema: z.ZodType<
380
- CreditNote,
379
+ export const CreditNoteInput$inboundSchema: z.ZodType<
380
+ CreditNoteInput,
381
381
  z.ZodTypeDef,
382
382
  unknown
383
383
  > = z.object({
384
- id: z.string(),
385
384
  number: z.nullable(z.string()).optional(),
386
- customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
385
+ customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
387
386
  company_id: z.nullable(z.string()).optional(),
388
387
  currency: z.nullable(Currency$inboundSchema).optional(),
389
388
  currency_rate: z.nullable(z.number()).optional(),
@@ -402,9 +401,9 @@ export const CreditNote$inboundSchema: z.ZodType<
402
401
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
403
402
  ).optional(),
404
403
  type: CreditNoteType$inboundSchema.optional(),
405
- account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
406
- line_items: z.array(InvoiceLineItem$inboundSchema).optional(),
407
- allocations: z.array(Allocation$inboundSchema).optional(),
404
+ account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
405
+ line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(),
406
+ allocations: z.array(AllocationInput$inboundSchema).optional(),
408
407
  note: z.nullable(z.string()).optional(),
409
408
  terms: z.nullable(z.string()).optional(),
410
409
  billing_address: Address$inboundSchema.optional(),
@@ -412,17 +411,8 @@ export const CreditNote$inboundSchema: z.ZodType<
412
411
  tracking_categories: z.nullable(
413
412
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
414
413
  ).optional(),
415
- custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
416
414
  custom_fields: z.array(CustomField$inboundSchema).optional(),
417
415
  row_version: z.nullable(z.string()).optional(),
418
- updated_by: z.nullable(z.string()).optional(),
419
- created_by: z.nullable(z.string()).optional(),
420
- updated_at: z.nullable(
421
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
422
- ).optional(),
423
- created_at: z.nullable(
424
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
425
- ).optional(),
426
416
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
427
417
  }).transform((v) => {
428
418
  return remap$(v, {
@@ -440,22 +430,16 @@ export const CreditNote$inboundSchema: z.ZodType<
440
430
  "billing_address": "billingAddress",
441
431
  "shipping_address": "shippingAddress",
442
432
  "tracking_categories": "trackingCategories",
443
- "custom_mappings": "customMappings",
444
433
  "custom_fields": "customFields",
445
434
  "row_version": "rowVersion",
446
- "updated_by": "updatedBy",
447
- "created_by": "createdBy",
448
- "updated_at": "updatedAt",
449
- "created_at": "createdAt",
450
435
  "pass_through": "passThrough",
451
436
  });
452
437
  });
453
438
 
454
439
  /** @internal */
455
- export type CreditNote$Outbound = {
456
- id: string;
440
+ export type CreditNoteInput$Outbound = {
457
441
  number?: string | null | undefined;
458
- customer?: LinkedCustomer$Outbound | null | undefined;
442
+ customer?: LinkedCustomerInput$Outbound | null | undefined;
459
443
  company_id?: string | null | undefined;
460
444
  currency?: string | null | undefined;
461
445
  currency_rate?: number | null | undefined;
@@ -471,9 +455,9 @@ export type CreditNote$Outbound = {
471
455
  date_issued?: string | undefined;
472
456
  date_paid?: string | null | undefined;
473
457
  type?: string | undefined;
474
- account?: LinkedLedgerAccount$Outbound | null | undefined;
475
- line_items?: Array<InvoiceLineItem$Outbound> | undefined;
476
- allocations?: Array<Allocation$Outbound> | undefined;
458
+ account?: LinkedLedgerAccountInput$Outbound | null | undefined;
459
+ line_items?: Array<InvoiceLineItemInput$Outbound> | undefined;
460
+ allocations?: Array<AllocationInput$Outbound> | undefined;
477
461
  note?: string | null | undefined;
478
462
  terms?: string | null | undefined;
479
463
  billing_address?: Address$Outbound | undefined;
@@ -482,25 +466,19 @@ export type CreditNote$Outbound = {
482
466
  | Array<LinkedTrackingCategory$Outbound | null>
483
467
  | null
484
468
  | undefined;
485
- custom_mappings?: CustomMappings$Outbound | null | undefined;
486
469
  custom_fields?: Array<CustomField$Outbound> | undefined;
487
470
  row_version?: string | null | undefined;
488
- updated_by?: string | null | undefined;
489
- created_by?: string | null | undefined;
490
- updated_at?: string | null | undefined;
491
- created_at?: string | null | undefined;
492
471
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
493
472
  };
494
473
 
495
474
  /** @internal */
496
- export const CreditNote$outboundSchema: z.ZodType<
497
- CreditNote$Outbound,
475
+ export const CreditNoteInput$outboundSchema: z.ZodType<
476
+ CreditNoteInput$Outbound,
498
477
  z.ZodTypeDef,
499
- CreditNote
478
+ CreditNoteInput
500
479
  > = z.object({
501
- id: z.string(),
502
480
  number: z.nullable(z.string()).optional(),
503
- customer: z.nullable(LinkedCustomer$outboundSchema).optional(),
481
+ customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
504
482
  companyId: z.nullable(z.string()).optional(),
505
483
  currency: z.nullable(Currency$outboundSchema).optional(),
506
484
  currencyRate: z.nullable(z.number()).optional(),
@@ -516,9 +494,9 @@ export const CreditNote$outboundSchema: z.ZodType<
516
494
  dateIssued: z.date().transform(v => v.toISOString()).optional(),
517
495
  datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(),
518
496
  type: CreditNoteType$outboundSchema.optional(),
519
- account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
520
- lineItems: z.array(InvoiceLineItem$outboundSchema).optional(),
521
- allocations: z.array(Allocation$outboundSchema).optional(),
497
+ account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
498
+ lineItems: z.array(InvoiceLineItemInput$outboundSchema).optional(),
499
+ allocations: z.array(AllocationInput$outboundSchema).optional(),
522
500
  note: z.nullable(z.string()).optional(),
523
501
  terms: z.nullable(z.string()).optional(),
524
502
  billingAddress: Address$outboundSchema.optional(),
@@ -526,13 +504,8 @@ export const CreditNote$outboundSchema: z.ZodType<
526
504
  trackingCategories: z.nullable(
527
505
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
528
506
  ).optional(),
529
- customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
530
507
  customFields: z.array(CustomField$outboundSchema).optional(),
531
508
  rowVersion: z.nullable(z.string()).optional(),
532
- updatedBy: z.nullable(z.string()).optional(),
533
- createdBy: z.nullable(z.string()).optional(),
534
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
535
- createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
536
509
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
537
510
  }).transform((v) => {
538
511
  return remap$(v, {
@@ -550,13 +523,8 @@ export const CreditNote$outboundSchema: z.ZodType<
550
523
  billingAddress: "billing_address",
551
524
  shippingAddress: "shipping_address",
552
525
  trackingCategories: "tracking_categories",
553
- customMappings: "custom_mappings",
554
526
  customFields: "custom_fields",
555
527
  rowVersion: "row_version",
556
- updatedBy: "updated_by",
557
- createdBy: "created_by",
558
- updatedAt: "updated_at",
559
- createdAt: "created_at",
560
528
  passThrough: "pass_through",
561
529
  });
562
530
  });
@@ -565,37 +533,40 @@ export const CreditNote$outboundSchema: z.ZodType<
565
533
  * @internal
566
534
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
567
535
  */
568
- export namespace CreditNote$ {
569
- /** @deprecated use `CreditNote$inboundSchema` instead. */
570
- export const inboundSchema = CreditNote$inboundSchema;
571
- /** @deprecated use `CreditNote$outboundSchema` instead. */
572
- export const outboundSchema = CreditNote$outboundSchema;
573
- /** @deprecated use `CreditNote$Outbound` instead. */
574
- export type Outbound = CreditNote$Outbound;
536
+ export namespace CreditNoteInput$ {
537
+ /** @deprecated use `CreditNoteInput$inboundSchema` instead. */
538
+ export const inboundSchema = CreditNoteInput$inboundSchema;
539
+ /** @deprecated use `CreditNoteInput$outboundSchema` instead. */
540
+ export const outboundSchema = CreditNoteInput$outboundSchema;
541
+ /** @deprecated use `CreditNoteInput$Outbound` instead. */
542
+ export type Outbound = CreditNoteInput$Outbound;
575
543
  }
576
544
 
577
- export function creditNoteToJSON(creditNote: CreditNote): string {
578
- return JSON.stringify(CreditNote$outboundSchema.parse(creditNote));
545
+ export function creditNoteInputToJSON(
546
+ creditNoteInput: CreditNoteInput,
547
+ ): string {
548
+ return JSON.stringify(CreditNoteInput$outboundSchema.parse(creditNoteInput));
579
549
  }
580
550
 
581
- export function creditNoteFromJSON(
551
+ export function creditNoteInputFromJSON(
582
552
  jsonString: string,
583
- ): SafeParseResult<CreditNote, SDKValidationError> {
553
+ ): SafeParseResult<CreditNoteInput, SDKValidationError> {
584
554
  return safeParse(
585
555
  jsonString,
586
- (x) => CreditNote$inboundSchema.parse(JSON.parse(x)),
587
- `Failed to parse 'CreditNote' from JSON`,
556
+ (x) => CreditNoteInput$inboundSchema.parse(JSON.parse(x)),
557
+ `Failed to parse 'CreditNoteInput' from JSON`,
588
558
  );
589
559
  }
590
560
 
591
561
  /** @internal */
592
- export const CreditNoteInput$inboundSchema: z.ZodType<
593
- CreditNoteInput,
562
+ export const CreditNote$inboundSchema: z.ZodType<
563
+ CreditNote,
594
564
  z.ZodTypeDef,
595
565
  unknown
596
566
  > = z.object({
567
+ id: z.string(),
597
568
  number: z.nullable(z.string()).optional(),
598
- customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
569
+ customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
599
570
  company_id: z.nullable(z.string()).optional(),
600
571
  currency: z.nullable(Currency$inboundSchema).optional(),
601
572
  currency_rate: z.nullable(z.number()).optional(),
@@ -614,9 +585,9 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
614
585
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
615
586
  ).optional(),
616
587
  type: CreditNoteType$inboundSchema.optional(),
617
- account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
618
- line_items: z.array(InvoiceLineItemInput$inboundSchema).optional(),
619
- allocations: z.array(AllocationInput$inboundSchema).optional(),
588
+ account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
589
+ line_items: z.array(InvoiceLineItem$inboundSchema).optional(),
590
+ allocations: z.array(Allocation$inboundSchema).optional(),
620
591
  note: z.nullable(z.string()).optional(),
621
592
  terms: z.nullable(z.string()).optional(),
622
593
  billing_address: Address$inboundSchema.optional(),
@@ -624,8 +595,17 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
624
595
  tracking_categories: z.nullable(
625
596
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
626
597
  ).optional(),
598
+ custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
627
599
  custom_fields: z.array(CustomField$inboundSchema).optional(),
628
600
  row_version: z.nullable(z.string()).optional(),
601
+ updated_by: z.nullable(z.string()).optional(),
602
+ created_by: z.nullable(z.string()).optional(),
603
+ updated_at: z.nullable(
604
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
605
+ ).optional(),
606
+ created_at: z.nullable(
607
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
608
+ ).optional(),
629
609
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
630
610
  }).transform((v) => {
631
611
  return remap$(v, {
@@ -643,16 +623,22 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
643
623
  "billing_address": "billingAddress",
644
624
  "shipping_address": "shippingAddress",
645
625
  "tracking_categories": "trackingCategories",
626
+ "custom_mappings": "customMappings",
646
627
  "custom_fields": "customFields",
647
628
  "row_version": "rowVersion",
629
+ "updated_by": "updatedBy",
630
+ "created_by": "createdBy",
631
+ "updated_at": "updatedAt",
632
+ "created_at": "createdAt",
648
633
  "pass_through": "passThrough",
649
634
  });
650
635
  });
651
636
 
652
637
  /** @internal */
653
- export type CreditNoteInput$Outbound = {
638
+ export type CreditNote$Outbound = {
639
+ id: string;
654
640
  number?: string | null | undefined;
655
- customer?: LinkedCustomerInput$Outbound | null | undefined;
641
+ customer?: LinkedCustomer$Outbound | null | undefined;
656
642
  company_id?: string | null | undefined;
657
643
  currency?: string | null | undefined;
658
644
  currency_rate?: number | null | undefined;
@@ -668,9 +654,9 @@ export type CreditNoteInput$Outbound = {
668
654
  date_issued?: string | undefined;
669
655
  date_paid?: string | null | undefined;
670
656
  type?: string | undefined;
671
- account?: LinkedLedgerAccountInput$Outbound | null | undefined;
672
- line_items?: Array<InvoiceLineItemInput$Outbound> | undefined;
673
- allocations?: Array<AllocationInput$Outbound> | undefined;
657
+ account?: LinkedLedgerAccount$Outbound | null | undefined;
658
+ line_items?: Array<InvoiceLineItem$Outbound> | undefined;
659
+ allocations?: Array<Allocation$Outbound> | undefined;
674
660
  note?: string | null | undefined;
675
661
  terms?: string | null | undefined;
676
662
  billing_address?: Address$Outbound | undefined;
@@ -679,19 +665,25 @@ export type CreditNoteInput$Outbound = {
679
665
  | Array<LinkedTrackingCategory$Outbound | null>
680
666
  | null
681
667
  | undefined;
668
+ custom_mappings?: CustomMappings$Outbound | null | undefined;
682
669
  custom_fields?: Array<CustomField$Outbound> | undefined;
683
670
  row_version?: string | null | undefined;
671
+ updated_by?: string | null | undefined;
672
+ created_by?: string | null | undefined;
673
+ updated_at?: string | null | undefined;
674
+ created_at?: string | null | undefined;
684
675
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
685
676
  };
686
677
 
687
678
  /** @internal */
688
- export const CreditNoteInput$outboundSchema: z.ZodType<
689
- CreditNoteInput$Outbound,
679
+ export const CreditNote$outboundSchema: z.ZodType<
680
+ CreditNote$Outbound,
690
681
  z.ZodTypeDef,
691
- CreditNoteInput
682
+ CreditNote
692
683
  > = z.object({
684
+ id: z.string(),
693
685
  number: z.nullable(z.string()).optional(),
694
- customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
686
+ customer: z.nullable(LinkedCustomer$outboundSchema).optional(),
695
687
  companyId: z.nullable(z.string()).optional(),
696
688
  currency: z.nullable(Currency$outboundSchema).optional(),
697
689
  currencyRate: z.nullable(z.number()).optional(),
@@ -707,9 +699,9 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
707
699
  dateIssued: z.date().transform(v => v.toISOString()).optional(),
708
700
  datePaid: z.nullable(z.date().transform(v => v.toISOString())).optional(),
709
701
  type: CreditNoteType$outboundSchema.optional(),
710
- account: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
711
- lineItems: z.array(InvoiceLineItemInput$outboundSchema).optional(),
712
- allocations: z.array(AllocationInput$outboundSchema).optional(),
702
+ account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
703
+ lineItems: z.array(InvoiceLineItem$outboundSchema).optional(),
704
+ allocations: z.array(Allocation$outboundSchema).optional(),
713
705
  note: z.nullable(z.string()).optional(),
714
706
  terms: z.nullable(z.string()).optional(),
715
707
  billingAddress: Address$outboundSchema.optional(),
@@ -717,8 +709,13 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
717
709
  trackingCategories: z.nullable(
718
710
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
719
711
  ).optional(),
712
+ customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
720
713
  customFields: z.array(CustomField$outboundSchema).optional(),
721
714
  rowVersion: z.nullable(z.string()).optional(),
715
+ updatedBy: z.nullable(z.string()).optional(),
716
+ createdBy: z.nullable(z.string()).optional(),
717
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
718
+ createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
722
719
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
723
720
  }).transform((v) => {
724
721
  return remap$(v, {
@@ -736,8 +733,13 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
736
733
  billingAddress: "billing_address",
737
734
  shippingAddress: "shipping_address",
738
735
  trackingCategories: "tracking_categories",
736
+ customMappings: "custom_mappings",
739
737
  customFields: "custom_fields",
740
738
  rowVersion: "row_version",
739
+ updatedBy: "updated_by",
740
+ createdBy: "created_by",
741
+ updatedAt: "updated_at",
742
+ createdAt: "created_at",
741
743
  passThrough: "pass_through",
742
744
  });
743
745
  });
@@ -746,27 +748,25 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
746
748
  * @internal
747
749
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
748
750
  */
749
- export namespace CreditNoteInput$ {
750
- /** @deprecated use `CreditNoteInput$inboundSchema` instead. */
751
- export const inboundSchema = CreditNoteInput$inboundSchema;
752
- /** @deprecated use `CreditNoteInput$outboundSchema` instead. */
753
- export const outboundSchema = CreditNoteInput$outboundSchema;
754
- /** @deprecated use `CreditNoteInput$Outbound` instead. */
755
- export type Outbound = CreditNoteInput$Outbound;
751
+ export namespace CreditNote$ {
752
+ /** @deprecated use `CreditNote$inboundSchema` instead. */
753
+ export const inboundSchema = CreditNote$inboundSchema;
754
+ /** @deprecated use `CreditNote$outboundSchema` instead. */
755
+ export const outboundSchema = CreditNote$outboundSchema;
756
+ /** @deprecated use `CreditNote$Outbound` instead. */
757
+ export type Outbound = CreditNote$Outbound;
756
758
  }
757
759
 
758
- export function creditNoteInputToJSON(
759
- creditNoteInput: CreditNoteInput,
760
- ): string {
761
- return JSON.stringify(CreditNoteInput$outboundSchema.parse(creditNoteInput));
760
+ export function creditNoteToJSON(creditNote: CreditNote): string {
761
+ return JSON.stringify(CreditNote$outboundSchema.parse(creditNote));
762
762
  }
763
763
 
764
- export function creditNoteInputFromJSON(
764
+ export function creditNoteFromJSON(
765
765
  jsonString: string,
766
- ): SafeParseResult<CreditNoteInput, SDKValidationError> {
766
+ ): SafeParseResult<CreditNote, SDKValidationError> {
767
767
  return safeParse(
768
768
  jsonString,
769
- (x) => CreditNoteInput$inboundSchema.parse(JSON.parse(x)),
770
- `Failed to parse 'CreditNoteInput' from JSON`,
769
+ (x) => CreditNote$inboundSchema.parse(JSON.parse(x)),
770
+ `Failed to parse 'CreditNote' from JSON`,
771
771
  );
772
772
  }