@apideck/unify 0.20.1 → 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 (475) 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 +64 -192
  6. package/docs/sdks/connectionsettings/README.md +64 -192
  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/models/components/{accountinglocation.d.ts → accountinglocationinput.d.ts} +58 -58
  49. package/models/components/accountinglocationinput.d.ts.map +1 -0
  50. package/models/components/{accountinglocation.js → accountinglocationinput.js} +56 -56
  51. package/models/components/accountinglocationinput.js.map +1 -0
  52. package/models/components/agedcreditors.d.ts +51 -0
  53. package/models/components/agedcreditors.d.ts.map +1 -0
  54. package/models/components/agedcreditors.js +88 -0
  55. package/models/components/agedcreditors.js.map +1 -0
  56. package/models/components/{applicant.d.ts → applicantinput.d.ts} +79 -79
  57. package/models/components/applicantinput.d.ts.map +1 -0
  58. package/models/components/{applicant.js → applicantinput.js} +85 -85
  59. package/models/components/applicantinput.js.map +1 -0
  60. package/models/components/billlineitem.d.ts +4 -4
  61. package/models/components/{billpayment.d.ts → billpaymentinput.d.ts} +102 -102
  62. package/models/components/billpaymentinput.d.ts.map +1 -0
  63. package/models/components/{billpayment.js → billpaymentinput.js} +100 -100
  64. package/models/components/billpaymentinput.js.map +1 -0
  65. package/models/components/{connection.d.ts → connectioninput.d.ts} +139 -139
  66. package/models/components/connectioninput.d.ts.map +1 -0
  67. package/models/components/{connection.js → connectioninput.js} +150 -150
  68. package/models/components/connectioninput.js.map +1 -0
  69. package/models/components/{contact.d.ts → contactinput.d.ts} +62 -62
  70. package/models/components/contactinput.d.ts.map +1 -0
  71. package/models/components/{contact.js → contactinput.js} +57 -57
  72. package/models/components/contactinput.js.map +1 -0
  73. package/models/components/createattachmentresponse.d.ts +70 -0
  74. package/models/components/createattachmentresponse.d.ts.map +1 -0
  75. package/models/components/createattachmentresponse.js +83 -0
  76. package/models/components/createattachmentresponse.js.map +1 -0
  77. package/models/components/createconnectionresponse.d.ts +1 -1
  78. package/models/components/createconnectionresponse.d.ts.map +1 -1
  79. package/models/components/createconnectionresponse.js +3 -3
  80. package/models/components/createconnectionresponse.js.map +1 -1
  81. package/models/components/createpipelineresponse.d.ts +70 -0
  82. package/models/components/createpipelineresponse.d.ts.map +1 -0
  83. package/models/components/createpipelineresponse.js +83 -0
  84. package/models/components/createpipelineresponse.js.map +1 -0
  85. package/models/components/{creditnote.d.ts → creditnoteinput.d.ts} +74 -74
  86. package/models/components/creditnoteinput.d.ts.map +1 -0
  87. package/models/components/{creditnote.js → creditnoteinput.js} +69 -69
  88. package/models/components/creditnoteinput.js.map +1 -0
  89. package/models/components/{customer.d.ts → customerinput.d.ts} +70 -70
  90. package/models/components/customerinput.d.ts.map +1 -0
  91. package/models/components/{customer.js → customerinput.js} +64 -64
  92. package/models/components/customerinput.js.map +1 -0
  93. package/models/components/deletepipelineresponse.d.ts +70 -0
  94. package/models/components/deletepipelineresponse.d.ts.map +1 -0
  95. package/models/components/deletepipelineresponse.js +83 -0
  96. package/models/components/deletepipelineresponse.js.map +1 -0
  97. package/models/components/{employeecompensation.d.ts → employeecompensationinput.d.ts} +37 -37
  98. package/models/components/employeecompensationinput.d.ts.map +1 -0
  99. package/models/components/{employeecompensation.js → employeecompensationinput.js} +36 -36
  100. package/models/components/employeecompensationinput.js.map +1 -0
  101. package/models/components/{employee.d.ts → employeeinput.d.ts} +70 -70
  102. package/models/components/employeeinput.d.ts.map +1 -0
  103. package/models/components/{employee.js → employeeinput.js} +67 -67
  104. package/models/components/employeeinput.js.map +1 -0
  105. package/models/components/employeeschedules.d.ts +1 -1
  106. package/models/components/employeeschedules.d.ts.map +1 -1
  107. package/models/components/employeeschedules.js +3 -3
  108. package/models/components/employeeschedules.js.map +1 -1
  109. package/models/components/{expense.d.ts → expenseinput.d.ts} +61 -61
  110. package/models/components/expenseinput.d.ts.map +1 -0
  111. package/models/components/{expense.js → expenseinput.js} +56 -56
  112. package/models/components/expenseinput.js.map +1 -0
  113. package/models/components/expenselineitem.d.ts +11 -6
  114. package/models/components/expenselineitem.d.ts.map +1 -1
  115. package/models/components/expenselineitem.js +8 -4
  116. package/models/components/expenselineitem.js.map +1 -1
  117. package/models/components/expenselineiteminput.d.ts +11 -6
  118. package/models/components/expenselineiteminput.d.ts.map +1 -1
  119. package/models/components/expenselineiteminput.js +8 -4
  120. package/models/components/expenselineiteminput.js.map +1 -1
  121. package/models/components/getaccountinglocationresponse.d.ts +1 -1
  122. package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
  123. package/models/components/getaccountinglocationresponse.js +3 -3
  124. package/models/components/getaccountinglocationresponse.js.map +1 -1
  125. package/models/components/getaccountinglocationsresponse.d.ts +1 -1
  126. package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
  127. package/models/components/getaccountinglocationsresponse.js +3 -3
  128. package/models/components/getaccountinglocationsresponse.js.map +1 -1
  129. package/models/components/getagedcreditorsresponse.d.ts +67 -0
  130. package/models/components/getagedcreditorsresponse.d.ts.map +1 -0
  131. package/models/components/getagedcreditorsresponse.js +83 -0
  132. package/models/components/getagedcreditorsresponse.js.map +1 -0
  133. package/models/components/getapplicantresponse.d.ts +1 -1
  134. package/models/components/getapplicantresponse.d.ts.map +1 -1
  135. package/models/components/getapplicantresponse.js +3 -3
  136. package/models/components/getapplicantresponse.js.map +1 -1
  137. package/models/components/getapplicantsresponse.d.ts +1 -1
  138. package/models/components/getapplicantsresponse.d.ts.map +1 -1
  139. package/models/components/getapplicantsresponse.js +3 -3
  140. package/models/components/getapplicantsresponse.js.map +1 -1
  141. package/models/components/getbillpaymentresponse.d.ts +1 -1
  142. package/models/components/getbillpaymentresponse.d.ts.map +1 -1
  143. package/models/components/getbillpaymentresponse.js +3 -3
  144. package/models/components/getbillpaymentresponse.js.map +1 -1
  145. package/models/components/getbillpaymentsresponse.d.ts +1 -1
  146. package/models/components/getbillpaymentsresponse.d.ts.map +1 -1
  147. package/models/components/getbillpaymentsresponse.js +3 -3
  148. package/models/components/getbillpaymentsresponse.js.map +1 -1
  149. package/models/components/getconnectionresponse.d.ts +1 -1
  150. package/models/components/getconnectionresponse.d.ts.map +1 -1
  151. package/models/components/getconnectionresponse.js +3 -3
  152. package/models/components/getconnectionresponse.js.map +1 -1
  153. package/models/components/getconnectionsresponse.d.ts +1 -1
  154. package/models/components/getconnectionsresponse.d.ts.map +1 -1
  155. package/models/components/getconnectionsresponse.js +3 -3
  156. package/models/components/getconnectionsresponse.js.map +1 -1
  157. package/models/components/getcontactresponse.d.ts +1 -1
  158. package/models/components/getcontactresponse.d.ts.map +1 -1
  159. package/models/components/getcontactresponse.js +3 -3
  160. package/models/components/getcontactresponse.js.map +1 -1
  161. package/models/components/getcontactsresponse.d.ts +1 -1
  162. package/models/components/getcontactsresponse.d.ts.map +1 -1
  163. package/models/components/getcontactsresponse.js +3 -3
  164. package/models/components/getcontactsresponse.js.map +1 -1
  165. package/models/components/getcreditnoteresponse.d.ts +1 -1
  166. package/models/components/getcreditnoteresponse.d.ts.map +1 -1
  167. package/models/components/getcreditnoteresponse.js +3 -3
  168. package/models/components/getcreditnoteresponse.js.map +1 -1
  169. package/models/components/getcreditnotesresponse.d.ts +1 -1
  170. package/models/components/getcreditnotesresponse.d.ts.map +1 -1
  171. package/models/components/getcreditnotesresponse.js +3 -3
  172. package/models/components/getcreditnotesresponse.js.map +1 -1
  173. package/models/components/getcustomerresponse.d.ts +1 -1
  174. package/models/components/getcustomerresponse.d.ts.map +1 -1
  175. package/models/components/getcustomerresponse.js +3 -3
  176. package/models/components/getcustomerresponse.js.map +1 -1
  177. package/models/components/getcustomersresponse.d.ts +1 -1
  178. package/models/components/getcustomersresponse.d.ts.map +1 -1
  179. package/models/components/getcustomersresponse.js +3 -3
  180. package/models/components/getcustomersresponse.js.map +1 -1
  181. package/models/components/getemployeeresponse.d.ts +1 -1
  182. package/models/components/getemployeeresponse.d.ts.map +1 -1
  183. package/models/components/getemployeeresponse.js +3 -3
  184. package/models/components/getemployeeresponse.js.map +1 -1
  185. package/models/components/getemployeesresponse.d.ts +1 -1
  186. package/models/components/getemployeesresponse.d.ts.map +1 -1
  187. package/models/components/getemployeesresponse.js +3 -3
  188. package/models/components/getemployeesresponse.js.map +1 -1
  189. package/models/components/getexpenseresponse.d.ts +1 -1
  190. package/models/components/getexpenseresponse.d.ts.map +1 -1
  191. package/models/components/getexpenseresponse.js +3 -3
  192. package/models/components/getexpenseresponse.js.map +1 -1
  193. package/models/components/getexpensesresponse.d.ts +1 -1
  194. package/models/components/getexpensesresponse.d.ts.map +1 -1
  195. package/models/components/getexpensesresponse.js +3 -3
  196. package/models/components/getexpensesresponse.js.map +1 -1
  197. package/models/components/gethriscompaniesresponse.d.ts +1 -1
  198. package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
  199. package/models/components/gethriscompaniesresponse.js +3 -3
  200. package/models/components/gethriscompaniesresponse.js.map +1 -1
  201. package/models/components/gethriscompanyresponse.d.ts +1 -1
  202. package/models/components/gethriscompanyresponse.d.ts.map +1 -1
  203. package/models/components/gethriscompanyresponse.js +3 -3
  204. package/models/components/gethriscompanyresponse.js.map +1 -1
  205. package/models/components/getinvoiceresponse.d.ts +1 -1
  206. package/models/components/getinvoiceresponse.d.ts.map +1 -1
  207. package/models/components/getinvoiceresponse.js +3 -3
  208. package/models/components/getinvoiceresponse.js.map +1 -1
  209. package/models/components/getinvoicesresponse.d.ts +1 -1
  210. package/models/components/getinvoicesresponse.d.ts.map +1 -1
  211. package/models/components/getinvoicesresponse.js +3 -3
  212. package/models/components/getinvoicesresponse.js.map +1 -1
  213. package/models/components/getledgeraccountresponse.d.ts +1 -1
  214. package/models/components/getledgeraccountresponse.d.ts.map +1 -1
  215. package/models/components/getledgeraccountresponse.js +3 -3
  216. package/models/components/getledgeraccountresponse.js.map +1 -1
  217. package/models/components/getledgeraccountsresponse.d.ts +1 -1
  218. package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
  219. package/models/components/getledgeraccountsresponse.js +3 -3
  220. package/models/components/getledgeraccountsresponse.js.map +1 -1
  221. package/models/components/getpipelineresponse.d.ts +67 -0
  222. package/models/components/getpipelineresponse.d.ts.map +1 -0
  223. package/models/components/getpipelineresponse.js +83 -0
  224. package/models/components/getpipelineresponse.js.map +1 -0
  225. package/models/components/getsupplierresponse.d.ts +1 -1
  226. package/models/components/getsupplierresponse.d.ts.map +1 -1
  227. package/models/components/getsupplierresponse.js +3 -3
  228. package/models/components/getsupplierresponse.js.map +1 -1
  229. package/models/components/getsuppliersresponse.d.ts +1 -1
  230. package/models/components/getsuppliersresponse.d.ts.map +1 -1
  231. package/models/components/getsuppliersresponse.js +3 -3
  232. package/models/components/getsuppliersresponse.js.map +1 -1
  233. package/models/components/getticketresponse.d.ts +1 -1
  234. package/models/components/getticketresponse.d.ts.map +1 -1
  235. package/models/components/getticketresponse.js +3 -3
  236. package/models/components/getticketresponse.js.map +1 -1
  237. package/models/components/getticketsresponse.d.ts +1 -1
  238. package/models/components/getticketsresponse.d.ts.map +1 -1
  239. package/models/components/getticketsresponse.js +3 -3
  240. package/models/components/getticketsresponse.js.map +1 -1
  241. package/models/components/{hriscompany.d.ts → hriscompanyinput.d.ts} +55 -55
  242. package/models/components/hriscompanyinput.d.ts.map +1 -0
  243. package/models/components/{hriscompany.js → hriscompanyinput.js} +54 -54
  244. package/models/components/hriscompanyinput.js.map +1 -0
  245. package/models/components/index.d.ts +26 -16
  246. package/models/components/index.d.ts.map +1 -1
  247. package/models/components/index.js +26 -16
  248. package/models/components/index.js.map +1 -1
  249. package/models/components/{invoice.d.ts → invoiceinput.d.ts} +74 -74
  250. package/models/components/invoiceinput.d.ts.map +1 -0
  251. package/models/components/{invoice.js → invoiceinput.js} +72 -72
  252. package/models/components/{invoice.js.map → invoiceinput.js.map} +1 -1
  253. package/models/components/invoiceitem.d.ts +46 -0
  254. package/models/components/invoiceitem.d.ts.map +1 -1
  255. package/models/components/invoiceitem.js +34 -0
  256. package/models/components/invoiceitem.js.map +1 -1
  257. package/models/components/{invoicelineitem.d.ts → invoicelineiteminput.d.ts} +59 -59
  258. package/models/components/invoicelineiteminput.d.ts.map +1 -0
  259. package/models/components/{invoicelineitem.js → invoicelineiteminput.js} +54 -54
  260. package/models/components/invoicelineiteminput.js.map +1 -0
  261. package/models/components/journalentrylineitem.d.ts +16 -6
  262. package/models/components/journalentrylineitem.d.ts.map +1 -1
  263. package/models/components/journalentrylineitem.js +12 -4
  264. package/models/components/journalentrylineitem.js.map +1 -1
  265. package/models/components/{ledgeraccount.d.ts → ledgeraccountinput.d.ts} +129 -129
  266. package/models/components/ledgeraccountinput.d.ts.map +1 -0
  267. package/models/components/{ledgeraccount.js → ledgeraccountinput.js} +128 -128
  268. package/models/components/ledgeraccountinput.js.map +1 -0
  269. package/models/components/linkedecommercecustomer.d.ts +6 -6
  270. package/models/components/linkedecommercecustomer.d.ts.map +1 -1
  271. package/models/components/linkedecommercecustomer.js +6 -6
  272. package/models/components/linkedecommercecustomer.js.map +1 -1
  273. package/models/components/outstandingbalancebysupplier.d.ts +40 -0
  274. package/models/components/outstandingbalancebysupplier.d.ts.map +1 -0
  275. package/models/components/outstandingbalancebysupplier.js +77 -0
  276. package/models/components/outstandingbalancebysupplier.js.map +1 -0
  277. package/models/components/pipelineinput.d.ts +117 -0
  278. package/models/components/pipelineinput.d.ts.map +1 -0
  279. package/models/components/pipelineinput.js +133 -0
  280. package/models/components/pipelineinput.js.map +1 -0
  281. package/models/components/purchaseorder.d.ts +6 -1
  282. package/models/components/purchaseorder.d.ts.map +1 -1
  283. package/models/components/purchaseorder.js +14 -5
  284. package/models/components/purchaseorder.js.map +1 -1
  285. package/models/components/{supplier.d.ts → supplierinput.d.ts} +70 -70
  286. package/models/components/supplierinput.d.ts.map +1 -0
  287. package/models/components/{supplier.js → supplierinput.js} +64 -64
  288. package/models/components/supplierinput.js.map +1 -0
  289. package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
  290. package/models/components/ticketinput.d.ts.map +1 -0
  291. package/models/components/{ticket.js → ticketinput.js} +59 -59
  292. package/models/components/ticketinput.js.map +1 -0
  293. package/models/components/updateconnectionresponse.d.ts +1 -1
  294. package/models/components/updateconnectionresponse.d.ts.map +1 -1
  295. package/models/components/updateconnectionresponse.js +3 -3
  296. package/models/components/updateconnectionresponse.js.map +1 -1
  297. package/models/components/updatepipelineresponse.d.ts +70 -0
  298. package/models/components/updatepipelineresponse.d.ts.map +1 -0
  299. package/models/components/updatepipelineresponse.js +83 -0
  300. package/models/components/updatepipelineresponse.js.map +1 -0
  301. package/models/components/updateuploadsessionresponse.d.ts +70 -0
  302. package/models/components/updateuploadsessionresponse.d.ts.map +1 -0
  303. package/models/components/updateuploadsessionresponse.js +83 -0
  304. package/models/components/updateuploadsessionresponse.js.map +1 -0
  305. package/models/operations/accountingagedcreditorsone.d.ts +135 -0
  306. package/models/operations/accountingagedcreditorsone.d.ts.map +1 -0
  307. package/models/operations/accountingagedcreditorsone.js +157 -0
  308. package/models/operations/accountingagedcreditorsone.js.map +1 -0
  309. package/models/operations/accountingattachmentsupload.d.ts +134 -0
  310. package/models/operations/accountingattachmentsupload.d.ts.map +1 -0
  311. package/models/operations/accountingattachmentsupload.js +178 -0
  312. package/models/operations/accountingattachmentsupload.js.map +1 -0
  313. package/models/operations/crmpipelinesadd.d.ts +118 -0
  314. package/models/operations/crmpipelinesadd.d.ts.map +1 -0
  315. package/models/operations/crmpipelinesadd.js +153 -0
  316. package/models/operations/crmpipelinesadd.js.map +1 -0
  317. package/models/operations/crmpipelinesdelete.d.ts +121 -0
  318. package/models/operations/crmpipelinesdelete.d.ts.map +1 -0
  319. package/models/operations/crmpipelinesdelete.js +145 -0
  320. package/models/operations/crmpipelinesdelete.js.map +1 -0
  321. package/models/operations/crmpipelinesone.d.ts +126 -0
  322. package/models/operations/crmpipelinesone.d.ts.map +1 -0
  323. package/models/operations/crmpipelinesone.js +145 -0
  324. package/models/operations/crmpipelinesone.js.map +1 -0
  325. package/models/operations/crmpipelinesupdate.d.ts +123 -0
  326. package/models/operations/crmpipelinesupdate.d.ts.map +1 -0
  327. package/models/operations/crmpipelinesupdate.js +155 -0
  328. package/models/operations/crmpipelinesupdate.js.map +1 -0
  329. package/models/operations/filestorageuploadsessionsupload.d.ts +134 -0
  330. package/models/operations/filestorageuploadsessionsupload.d.ts.map +1 -0
  331. package/models/operations/filestorageuploadsessionsupload.js +174 -0
  332. package/models/operations/filestorageuploadsessionsupload.js.map +1 -0
  333. package/models/operations/index.d.ts +7 -0
  334. package/models/operations/index.d.ts.map +1 -1
  335. package/models/operations/index.js +7 -0
  336. package/models/operations/index.js.map +1 -1
  337. package/package.json +1 -1
  338. package/sdk/accounting.d.ts +3 -0
  339. package/sdk/accounting.d.ts.map +1 -1
  340. package/sdk/accounting.js +4 -0
  341. package/sdk/accounting.js.map +1 -1
  342. package/sdk/agedcreditors.d.ts +12 -0
  343. package/sdk/agedcreditors.d.ts.map +1 -0
  344. package/sdk/agedcreditors.js +22 -0
  345. package/sdk/agedcreditors.js.map +1 -0
  346. package/sdk/attachments.d.ts +7 -0
  347. package/sdk/attachments.d.ts.map +1 -1
  348. package/sdk/attachments.js +10 -0
  349. package/sdk/attachments.js.map +1 -1
  350. package/sdk/pipelines.d.ts +28 -0
  351. package/sdk/pipelines.d.ts.map +1 -1
  352. package/sdk/pipelines.js +41 -0
  353. package/sdk/pipelines.js.map +1 -1
  354. package/sdk/uploadsessions.d.ts +7 -0
  355. package/sdk/uploadsessions.d.ts.map +1 -1
  356. package/sdk/uploadsessions.js +10 -0
  357. package/sdk/uploadsessions.js.map +1 -1
  358. package/src/funcs/accountingAgedCreditorsGet.ts +228 -0
  359. package/src/funcs/accountingAttachmentsUpload.ts +241 -0
  360. package/src/funcs/crmPipelinesCreate.ts +214 -0
  361. package/src/funcs/crmPipelinesDelete.ts +220 -0
  362. package/src/funcs/crmPipelinesGet.ts +221 -0
  363. package/src/funcs/crmPipelinesUpdate.ts +221 -0
  364. package/src/funcs/fileStorageUploadSessionsUpload.ts +239 -0
  365. package/src/hooks/types.ts +1 -1
  366. package/src/lib/config.ts +4 -4
  367. package/src/models/components/agedcreditors.ts +120 -0
  368. package/src/models/components/billlineitem.ts +4 -4
  369. package/src/models/components/createattachmentresponse.ts +131 -0
  370. package/src/models/components/createconnectionresponse.ts +1 -1
  371. package/src/models/components/createpipelineresponse.ts +131 -0
  372. package/src/models/components/{creditnote.ts → creditnoteinput.ts} +131 -131
  373. package/src/models/components/deletepipelineresponse.ts +131 -0
  374. package/src/models/components/{employee.ts → employeeinput.ts} +123 -123
  375. package/src/models/components/employeeschedules.ts +1 -1
  376. package/src/models/components/{expense.ts → expenseinput.ts} +166 -166
  377. package/src/models/components/expenselineitem.ts +19 -10
  378. package/src/models/components/expenselineiteminput.ts +19 -10
  379. package/src/models/components/getaccountinglocationresponse.ts +1 -1
  380. package/src/models/components/getaccountinglocationsresponse.ts +1 -1
  381. package/src/models/components/getagedcreditorsresponse.ts +128 -0
  382. package/src/models/components/getapplicantresponse.ts +1 -1
  383. package/src/models/components/getapplicantsresponse.ts +1 -1
  384. package/src/models/components/getbillpaymentresponse.ts +1 -1
  385. package/src/models/components/getbillpaymentsresponse.ts +1 -1
  386. package/src/models/components/getconnectionresponse.ts +1 -1
  387. package/src/models/components/getconnectionsresponse.ts +1 -1
  388. package/src/models/components/getcontactresponse.ts +1 -1
  389. package/src/models/components/getcontactsresponse.ts +1 -1
  390. package/src/models/components/getcreditnoteresponse.ts +1 -1
  391. package/src/models/components/getcreditnotesresponse.ts +1 -1
  392. package/src/models/components/getcustomerresponse.ts +1 -1
  393. package/src/models/components/getcustomersresponse.ts +1 -1
  394. package/src/models/components/getemployeeresponse.ts +1 -1
  395. package/src/models/components/getemployeesresponse.ts +1 -1
  396. package/src/models/components/getexpenseresponse.ts +1 -1
  397. package/src/models/components/getexpensesresponse.ts +1 -1
  398. package/src/models/components/gethriscompaniesresponse.ts +1 -1
  399. package/src/models/components/gethriscompanyresponse.ts +1 -1
  400. package/src/models/components/getinvoiceresponse.ts +1 -1
  401. package/src/models/components/getinvoicesresponse.ts +1 -1
  402. package/src/models/components/getledgeraccountresponse.ts +1 -1
  403. package/src/models/components/getledgeraccountsresponse.ts +1 -1
  404. package/src/models/components/getpipelineresponse.ts +128 -0
  405. package/src/models/components/getsupplierresponse.ts +1 -1
  406. package/src/models/components/getsuppliersresponse.ts +1 -1
  407. package/src/models/components/getticketresponse.ts +1 -1
  408. package/src/models/components/getticketsresponse.ts +1 -1
  409. package/src/models/components/index.ts +26 -16
  410. package/src/models/components/{invoice.ts → invoiceinput.ts} +274 -274
  411. package/src/models/components/invoiceitem.ts +74 -0
  412. package/src/models/components/{invoicelineitem.ts → invoicelineiteminput.ts} +104 -104
  413. package/src/models/components/journalentrylineitem.ts +28 -10
  414. package/src/models/components/linkedecommercecustomer.ts +12 -12
  415. package/src/models/components/outstandingbalancebysupplier.ts +109 -0
  416. package/src/models/components/pipelineinput.ts +233 -0
  417. package/src/models/components/purchaseorder.ts +19 -1
  418. package/src/models/components/updateconnectionresponse.ts +1 -1
  419. package/src/models/components/updatepipelineresponse.ts +131 -0
  420. package/src/models/components/updateuploadsessionresponse.ts +133 -0
  421. package/src/models/operations/accountingagedcreditorsone.ts +291 -0
  422. package/src/models/operations/accountingattachmentsupload.ts +318 -0
  423. package/src/models/operations/crmpipelinesadd.ts +264 -0
  424. package/src/models/operations/crmpipelinesdelete.ts +259 -0
  425. package/src/models/operations/crmpipelinesone.ts +262 -0
  426. package/src/models/operations/crmpipelinesupdate.ts +271 -0
  427. package/src/models/operations/filestorageuploadsessionsupload.ts +326 -0
  428. package/src/models/operations/index.ts +7 -0
  429. package/src/sdk/accounting.ts +6 -0
  430. package/src/sdk/agedcreditors.ts +27 -0
  431. package/src/sdk/attachments.ts +18 -0
  432. package/src/sdk/pipelines.ts +73 -0
  433. package/src/sdk/uploadsessions.ts +18 -0
  434. package/models/components/accountinglocation.d.ts.map +0 -1
  435. package/models/components/accountinglocation.js.map +0 -1
  436. package/models/components/applicant.d.ts.map +0 -1
  437. package/models/components/applicant.js.map +0 -1
  438. package/models/components/billpayment.d.ts.map +0 -1
  439. package/models/components/billpayment.js.map +0 -1
  440. package/models/components/connection.d.ts.map +0 -1
  441. package/models/components/connection.js.map +0 -1
  442. package/models/components/contact.d.ts.map +0 -1
  443. package/models/components/contact.js.map +0 -1
  444. package/models/components/creditnote.d.ts.map +0 -1
  445. package/models/components/creditnote.js.map +0 -1
  446. package/models/components/customer.d.ts.map +0 -1
  447. package/models/components/customer.js.map +0 -1
  448. package/models/components/employee.d.ts.map +0 -1
  449. package/models/components/employee.js.map +0 -1
  450. package/models/components/employeecompensation.d.ts.map +0 -1
  451. package/models/components/employeecompensation.js.map +0 -1
  452. package/models/components/expense.d.ts.map +0 -1
  453. package/models/components/expense.js.map +0 -1
  454. package/models/components/hriscompany.d.ts.map +0 -1
  455. package/models/components/hriscompany.js.map +0 -1
  456. package/models/components/invoice.d.ts.map +0 -1
  457. package/models/components/invoicelineitem.d.ts.map +0 -1
  458. package/models/components/invoicelineitem.js.map +0 -1
  459. package/models/components/ledgeraccount.d.ts.map +0 -1
  460. package/models/components/ledgeraccount.js.map +0 -1
  461. package/models/components/supplier.d.ts.map +0 -1
  462. package/models/components/supplier.js.map +0 -1
  463. package/models/components/ticket.d.ts.map +0 -1
  464. package/models/components/ticket.js.map +0 -1
  465. package/src/models/components/{accountinglocation.ts → accountinglocationinput.ts} +106 -106
  466. package/src/models/components/{applicant.ts → applicantinput.ts} +157 -157
  467. package/src/models/components/{billpayment.ts → billpaymentinput.ts} +183 -183
  468. package/src/models/components/{connection.ts → connectioninput.ts} +347 -347
  469. package/src/models/components/{contact.ts → contactinput.ts} +217 -217
  470. package/src/models/components/{customer.ts → customerinput.ts} +121 -121
  471. package/src/models/components/{employeecompensation.ts → employeecompensationinput.ts} +58 -58
  472. package/src/models/components/{hriscompany.ts → hriscompanyinput.ts} +101 -101
  473. package/src/models/components/{ledgeraccount.ts → ledgeraccountinput.ts} +253 -253
  474. package/src/models/components/{supplier.ts → supplierinput.ts} +121 -121
  475. package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
@@ -18,11 +18,7 @@ export declare const LocationStatus: {
18
18
  * Based on the status some functionality is enabled or disabled.
19
19
  */
20
20
  export type LocationStatus = ClosedEnum<typeof LocationStatus>;
21
- export type AccountingLocation = {
22
- /**
23
- * A unique identifier for an object.
24
- */
25
- id?: string | undefined;
21
+ export type AccountingLocationInput = {
26
22
  /**
27
23
  * A unique identifier for an object.
28
24
  */
@@ -40,37 +36,21 @@ export type AccountingLocation = {
40
36
  */
41
37
  status?: LocationStatus | undefined;
42
38
  addresses?: Array<Address> | undefined;
43
- subsidiaries?: Array<SubsidiaryReference> | undefined;
44
- /**
45
- * When custom mappings are configured on the resource, the result is included here.
46
- */
47
- customMappings?: CustomMappings | null | undefined;
39
+ subsidiaries?: Array<SubsidiaryReferenceInput> | undefined;
48
40
  /**
49
41
  * 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.
50
42
  */
51
43
  rowVersion?: string | null | undefined;
52
- /**
53
- * The user who last updated the object.
54
- */
55
- updatedBy?: string | null | undefined;
56
- /**
57
- * The user who created the object.
58
- */
59
- createdBy?: string | null | undefined;
60
- /**
61
- * The date and time when the object was last updated.
62
- */
63
- updatedAt?: Date | null | undefined;
64
- /**
65
- * The date and time when the object was created.
66
- */
67
- createdAt?: Date | null | undefined;
68
44
  /**
69
45
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
70
46
  */
71
47
  passThrough?: Array<PassThroughBody> | undefined;
72
48
  };
73
- export type AccountingLocationInput = {
49
+ export type AccountingLocation = {
50
+ /**
51
+ * A unique identifier for an object.
52
+ */
53
+ id?: string | undefined;
74
54
  /**
75
55
  * A unique identifier for an object.
76
56
  */
@@ -88,11 +68,31 @@ export type AccountingLocationInput = {
88
68
  */
89
69
  status?: LocationStatus | undefined;
90
70
  addresses?: Array<Address> | undefined;
91
- subsidiaries?: Array<SubsidiaryReferenceInput> | undefined;
71
+ subsidiaries?: Array<SubsidiaryReference> | undefined;
72
+ /**
73
+ * When custom mappings are configured on the resource, the result is included here.
74
+ */
75
+ customMappings?: CustomMappings | null | undefined;
92
76
  /**
93
77
  * 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.
94
78
  */
95
79
  rowVersion?: string | null | undefined;
80
+ /**
81
+ * The user who last updated the object.
82
+ */
83
+ updatedBy?: string | null | undefined;
84
+ /**
85
+ * The user who created the object.
86
+ */
87
+ createdBy?: string | null | undefined;
88
+ /**
89
+ * The date and time when the object was last updated.
90
+ */
91
+ updatedAt?: Date | null | undefined;
92
+ /**
93
+ * The date and time when the object was created.
94
+ */
95
+ createdAt?: Date | null | undefined;
96
96
  /**
97
97
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
98
98
  */
@@ -119,6 +119,35 @@ export declare namespace LocationStatus$ {
119
119
  }>;
120
120
  }
121
121
  /** @internal */
122
+ export declare const AccountingLocationInput$inboundSchema: z.ZodType<AccountingLocationInput, z.ZodTypeDef, unknown>;
123
+ /** @internal */
124
+ export type AccountingLocationInput$Outbound = {
125
+ parent_id?: string | null | undefined;
126
+ company_name?: string | null | undefined;
127
+ display_name?: string | null | undefined;
128
+ status?: string | undefined;
129
+ addresses?: Array<Address$Outbound> | undefined;
130
+ subsidiaries?: Array<SubsidiaryReferenceInput$Outbound> | undefined;
131
+ row_version?: string | null | undefined;
132
+ pass_through?: Array<PassThroughBody$Outbound> | undefined;
133
+ };
134
+ /** @internal */
135
+ export declare const AccountingLocationInput$outboundSchema: z.ZodType<AccountingLocationInput$Outbound, z.ZodTypeDef, AccountingLocationInput>;
136
+ /**
137
+ * @internal
138
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
139
+ */
140
+ export declare namespace AccountingLocationInput$ {
141
+ /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
142
+ const inboundSchema: z.ZodType<AccountingLocationInput, z.ZodTypeDef, unknown>;
143
+ /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
144
+ const outboundSchema: z.ZodType<AccountingLocationInput$Outbound, z.ZodTypeDef, AccountingLocationInput>;
145
+ /** @deprecated use `AccountingLocationInput$Outbound` instead. */
146
+ type Outbound = AccountingLocationInput$Outbound;
147
+ }
148
+ export declare function accountingLocationInputToJSON(accountingLocationInput: AccountingLocationInput): string;
149
+ export declare function accountingLocationInputFromJSON(jsonString: string): SafeParseResult<AccountingLocationInput, SDKValidationError>;
150
+ /** @internal */
122
151
  export declare const AccountingLocation$inboundSchema: z.ZodType<AccountingLocation, z.ZodTypeDef, unknown>;
123
152
  /** @internal */
124
153
  export type AccountingLocation$Outbound = {
@@ -153,33 +182,4 @@ export declare namespace AccountingLocation$ {
153
182
  }
154
183
  export declare function accountingLocationToJSON(accountingLocation: AccountingLocation): string;
155
184
  export declare function accountingLocationFromJSON(jsonString: string): SafeParseResult<AccountingLocation, SDKValidationError>;
156
- /** @internal */
157
- export declare const AccountingLocationInput$inboundSchema: z.ZodType<AccountingLocationInput, z.ZodTypeDef, unknown>;
158
- /** @internal */
159
- export type AccountingLocationInput$Outbound = {
160
- parent_id?: string | null | undefined;
161
- company_name?: string | null | undefined;
162
- display_name?: string | null | undefined;
163
- status?: string | undefined;
164
- addresses?: Array<Address$Outbound> | undefined;
165
- subsidiaries?: Array<SubsidiaryReferenceInput$Outbound> | undefined;
166
- row_version?: string | null | undefined;
167
- pass_through?: Array<PassThroughBody$Outbound> | undefined;
168
- };
169
- /** @internal */
170
- export declare const AccountingLocationInput$outboundSchema: z.ZodType<AccountingLocationInput$Outbound, z.ZodTypeDef, AccountingLocationInput>;
171
- /**
172
- * @internal
173
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
174
- */
175
- export declare namespace AccountingLocationInput$ {
176
- /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
177
- const inboundSchema: z.ZodType<AccountingLocationInput, z.ZodTypeDef, unknown>;
178
- /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
179
- const outboundSchema: z.ZodType<AccountingLocationInput$Outbound, z.ZodTypeDef, AccountingLocationInput>;
180
- /** @deprecated use `AccountingLocationInput$Outbound` instead. */
181
- type Outbound = AccountingLocationInput$Outbound;
182
- }
183
- export declare function accountingLocationInputToJSON(accountingLocationInput: AccountingLocationInput): string;
184
- export declare function accountingLocationInputFromJSON(jsonString: string): SafeParseResult<AccountingLocationInput, SDKValidationError>;
185
- //# sourceMappingURL=accountinglocation.d.ts.map
185
+ //# sourceMappingURL=accountinglocationinput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountinglocationinput.d.ts","sourceRoot":"","sources":["../../src/models/components/accountinglocationinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wBAAwB,EAExB,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
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.AccountingLocationInput$ = exports.AccountingLocationInput$outboundSchema = exports.AccountingLocationInput$inboundSchema = exports.AccountingLocation$ = exports.AccountingLocation$outboundSchema = exports.AccountingLocation$inboundSchema = exports.LocationStatus$ = exports.LocationStatus$outboundSchema = exports.LocationStatus$inboundSchema = exports.LocationStatus = void 0;
30
- exports.accountingLocationToJSON = accountingLocationToJSON;
31
- exports.accountingLocationFromJSON = accountingLocationFromJSON;
29
+ exports.AccountingLocation$ = exports.AccountingLocation$outboundSchema = exports.AccountingLocation$inboundSchema = exports.AccountingLocationInput$ = exports.AccountingLocationInput$outboundSchema = exports.AccountingLocationInput$inboundSchema = exports.LocationStatus$ = exports.LocationStatus$outboundSchema = exports.LocationStatus$inboundSchema = exports.LocationStatus = void 0;
32
30
  exports.accountingLocationInputToJSON = accountingLocationInputToJSON;
33
31
  exports.accountingLocationInputFromJSON = accountingLocationInputFromJSON;
32
+ exports.accountingLocationToJSON = accountingLocationToJSON;
33
+ exports.accountingLocationFromJSON = accountingLocationFromJSON;
34
34
  const z = __importStar(require("zod"));
35
35
  const primitives_js_1 = require("../../lib/primitives.js");
36
36
  const schemas_js_1 = require("../../lib/schemas.js");
@@ -62,62 +62,40 @@ var LocationStatus$;
62
62
  LocationStatus$.outboundSchema = exports.LocationStatus$outboundSchema;
63
63
  })(LocationStatus$ || (exports.LocationStatus$ = LocationStatus$ = {}));
64
64
  /** @internal */
65
- exports.AccountingLocation$inboundSchema = z.object({
66
- id: z.string().optional(),
65
+ exports.AccountingLocationInput$inboundSchema = z.object({
67
66
  parent_id: z.nullable(z.string()).optional(),
68
67
  company_name: z.nullable(z.string()).optional(),
69
68
  display_name: z.nullable(z.string()).optional(),
70
69
  status: exports.LocationStatus$inboundSchema.optional(),
71
70
  addresses: z.array(address_js_1.Address$inboundSchema).optional(),
72
- subsidiaries: z.array(subsidiaryreference_js_1.SubsidiaryReference$inboundSchema).optional(),
73
- custom_mappings: z.nullable(custommappings_js_1.CustomMappings$inboundSchema).optional(),
71
+ subsidiaries: z.array(subsidiaryreferenceinput_js_1.SubsidiaryReferenceInput$inboundSchema).optional(),
74
72
  row_version: z.nullable(z.string()).optional(),
75
- updated_by: z.nullable(z.string()).optional(),
76
- created_by: z.nullable(z.string()).optional(),
77
- updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
78
- created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
79
73
  pass_through: z.array(passthroughbody_js_1.PassThroughBody$inboundSchema).optional(),
80
74
  }).transform((v) => {
81
75
  return (0, primitives_js_1.remap)(v, {
82
76
  "parent_id": "parentId",
83
77
  "company_name": "companyName",
84
78
  "display_name": "displayName",
85
- "custom_mappings": "customMappings",
86
79
  "row_version": "rowVersion",
87
- "updated_by": "updatedBy",
88
- "created_by": "createdBy",
89
- "updated_at": "updatedAt",
90
- "created_at": "createdAt",
91
80
  "pass_through": "passThrough",
92
81
  });
93
82
  });
94
83
  /** @internal */
95
- exports.AccountingLocation$outboundSchema = z.object({
96
- id: z.string().optional(),
84
+ exports.AccountingLocationInput$outboundSchema = z.object({
97
85
  parentId: z.nullable(z.string()).optional(),
98
86
  companyName: z.nullable(z.string()).optional(),
99
87
  displayName: z.nullable(z.string()).optional(),
100
88
  status: exports.LocationStatus$outboundSchema.optional(),
101
89
  addresses: z.array(address_js_1.Address$outboundSchema).optional(),
102
- subsidiaries: z.array(subsidiaryreference_js_1.SubsidiaryReference$outboundSchema).optional(),
103
- customMappings: z.nullable(custommappings_js_1.CustomMappings$outboundSchema).optional(),
90
+ subsidiaries: z.array(subsidiaryreferenceinput_js_1.SubsidiaryReferenceInput$outboundSchema).optional(),
104
91
  rowVersion: z.nullable(z.string()).optional(),
105
- updatedBy: z.nullable(z.string()).optional(),
106
- createdBy: z.nullable(z.string()).optional(),
107
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
108
- createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
109
92
  passThrough: z.array(passthroughbody_js_1.PassThroughBody$outboundSchema).optional(),
110
93
  }).transform((v) => {
111
94
  return (0, primitives_js_1.remap)(v, {
112
95
  parentId: "parent_id",
113
96
  companyName: "company_name",
114
97
  displayName: "display_name",
115
- customMappings: "custom_mappings",
116
98
  rowVersion: "row_version",
117
- updatedBy: "updated_by",
118
- createdBy: "created_by",
119
- updatedAt: "updated_at",
120
- createdAt: "created_at",
121
99
  passThrough: "pass_through",
122
100
  });
123
101
  });
@@ -125,54 +103,76 @@ exports.AccountingLocation$outboundSchema = z.object({
125
103
  * @internal
126
104
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
127
105
  */
128
- var AccountingLocation$;
129
- (function (AccountingLocation$) {
130
- /** @deprecated use `AccountingLocation$inboundSchema` instead. */
131
- AccountingLocation$.inboundSchema = exports.AccountingLocation$inboundSchema;
132
- /** @deprecated use `AccountingLocation$outboundSchema` instead. */
133
- AccountingLocation$.outboundSchema = exports.AccountingLocation$outboundSchema;
134
- })(AccountingLocation$ || (exports.AccountingLocation$ = AccountingLocation$ = {}));
135
- function accountingLocationToJSON(accountingLocation) {
136
- return JSON.stringify(exports.AccountingLocation$outboundSchema.parse(accountingLocation));
106
+ var AccountingLocationInput$;
107
+ (function (AccountingLocationInput$) {
108
+ /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
109
+ AccountingLocationInput$.inboundSchema = exports.AccountingLocationInput$inboundSchema;
110
+ /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
111
+ AccountingLocationInput$.outboundSchema = exports.AccountingLocationInput$outboundSchema;
112
+ })(AccountingLocationInput$ || (exports.AccountingLocationInput$ = AccountingLocationInput$ = {}));
113
+ function accountingLocationInputToJSON(accountingLocationInput) {
114
+ return JSON.stringify(exports.AccountingLocationInput$outboundSchema.parse(accountingLocationInput));
137
115
  }
138
- function accountingLocationFromJSON(jsonString) {
139
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingLocation' from JSON`);
116
+ function accountingLocationInputFromJSON(jsonString) {
117
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingLocationInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingLocationInput' from JSON`);
140
118
  }
141
119
  /** @internal */
142
- exports.AccountingLocationInput$inboundSchema = z.object({
120
+ exports.AccountingLocation$inboundSchema = z.object({
121
+ id: z.string().optional(),
143
122
  parent_id: z.nullable(z.string()).optional(),
144
123
  company_name: z.nullable(z.string()).optional(),
145
124
  display_name: z.nullable(z.string()).optional(),
146
125
  status: exports.LocationStatus$inboundSchema.optional(),
147
126
  addresses: z.array(address_js_1.Address$inboundSchema).optional(),
148
- subsidiaries: z.array(subsidiaryreferenceinput_js_1.SubsidiaryReferenceInput$inboundSchema).optional(),
127
+ subsidiaries: z.array(subsidiaryreference_js_1.SubsidiaryReference$inboundSchema).optional(),
128
+ custom_mappings: z.nullable(custommappings_js_1.CustomMappings$inboundSchema).optional(),
149
129
  row_version: z.nullable(z.string()).optional(),
130
+ updated_by: z.nullable(z.string()).optional(),
131
+ created_by: z.nullable(z.string()).optional(),
132
+ updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
133
+ created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
150
134
  pass_through: z.array(passthroughbody_js_1.PassThroughBody$inboundSchema).optional(),
151
135
  }).transform((v) => {
152
136
  return (0, primitives_js_1.remap)(v, {
153
137
  "parent_id": "parentId",
154
138
  "company_name": "companyName",
155
139
  "display_name": "displayName",
140
+ "custom_mappings": "customMappings",
156
141
  "row_version": "rowVersion",
142
+ "updated_by": "updatedBy",
143
+ "created_by": "createdBy",
144
+ "updated_at": "updatedAt",
145
+ "created_at": "createdAt",
157
146
  "pass_through": "passThrough",
158
147
  });
159
148
  });
160
149
  /** @internal */
161
- exports.AccountingLocationInput$outboundSchema = z.object({
150
+ exports.AccountingLocation$outboundSchema = z.object({
151
+ id: z.string().optional(),
162
152
  parentId: z.nullable(z.string()).optional(),
163
153
  companyName: z.nullable(z.string()).optional(),
164
154
  displayName: z.nullable(z.string()).optional(),
165
155
  status: exports.LocationStatus$outboundSchema.optional(),
166
156
  addresses: z.array(address_js_1.Address$outboundSchema).optional(),
167
- subsidiaries: z.array(subsidiaryreferenceinput_js_1.SubsidiaryReferenceInput$outboundSchema).optional(),
157
+ subsidiaries: z.array(subsidiaryreference_js_1.SubsidiaryReference$outboundSchema).optional(),
158
+ customMappings: z.nullable(custommappings_js_1.CustomMappings$outboundSchema).optional(),
168
159
  rowVersion: z.nullable(z.string()).optional(),
160
+ updatedBy: z.nullable(z.string()).optional(),
161
+ createdBy: z.nullable(z.string()).optional(),
162
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
163
+ createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
169
164
  passThrough: z.array(passthroughbody_js_1.PassThroughBody$outboundSchema).optional(),
170
165
  }).transform((v) => {
171
166
  return (0, primitives_js_1.remap)(v, {
172
167
  parentId: "parent_id",
173
168
  companyName: "company_name",
174
169
  displayName: "display_name",
170
+ customMappings: "custom_mappings",
175
171
  rowVersion: "row_version",
172
+ updatedBy: "updated_by",
173
+ createdBy: "created_by",
174
+ updatedAt: "updated_at",
175
+ createdAt: "created_at",
176
176
  passThrough: "pass_through",
177
177
  });
178
178
  });
@@ -180,17 +180,17 @@ exports.AccountingLocationInput$outboundSchema = z.object({
180
180
  * @internal
181
181
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
182
182
  */
183
- var AccountingLocationInput$;
184
- (function (AccountingLocationInput$) {
185
- /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
186
- AccountingLocationInput$.inboundSchema = exports.AccountingLocationInput$inboundSchema;
187
- /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
188
- AccountingLocationInput$.outboundSchema = exports.AccountingLocationInput$outboundSchema;
189
- })(AccountingLocationInput$ || (exports.AccountingLocationInput$ = AccountingLocationInput$ = {}));
190
- function accountingLocationInputToJSON(accountingLocationInput) {
191
- return JSON.stringify(exports.AccountingLocationInput$outboundSchema.parse(accountingLocationInput));
183
+ var AccountingLocation$;
184
+ (function (AccountingLocation$) {
185
+ /** @deprecated use `AccountingLocation$inboundSchema` instead. */
186
+ AccountingLocation$.inboundSchema = exports.AccountingLocation$inboundSchema;
187
+ /** @deprecated use `AccountingLocation$outboundSchema` instead. */
188
+ AccountingLocation$.outboundSchema = exports.AccountingLocation$outboundSchema;
189
+ })(AccountingLocation$ || (exports.AccountingLocation$ = AccountingLocation$ = {}));
190
+ function accountingLocationToJSON(accountingLocation) {
191
+ return JSON.stringify(exports.AccountingLocation$outboundSchema.parse(accountingLocation));
192
192
  }
193
- function accountingLocationInputFromJSON(jsonString) {
194
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingLocationInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingLocationInput' from JSON`);
193
+ function accountingLocationFromJSON(jsonString) {
194
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingLocation' from JSON`);
195
195
  }
196
- //# sourceMappingURL=accountinglocation.js.map
196
+ //# sourceMappingURL=accountinglocationinput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountinglocationinput.js","sourceRoot":"","sources":["../../src/models/components/accountinglocationinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmOH,sEAMC;AAED,0EAQC;AA2GD,4DAMC;AAED,gEAQC;AA5WD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,6CAKsB;AACtB,2DAK6B;AAC7B,6DAK8B;AAC9B,qEAKkC;AAClC,+EAKuC;AAEvC;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,M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,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,cAAc;QAC3B,cAAc,EAAE,iBAAiB;QACjC,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,51 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { RFCDate } from "../../types/rfcdate.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { OutstandingBalanceBySupplier, OutstandingBalanceBySupplier$Outbound } from "./outstandingbalancebysupplier.js";
6
+ export type AgedCreditors = {
7
+ /**
8
+ * The exact date and time the report was generated.
9
+ */
10
+ reportGeneratedAt?: Date | undefined;
11
+ /**
12
+ * The cutoff date for transactions included in the report.
13
+ */
14
+ reportAsOfDate?: RFCDate | undefined;
15
+ /**
16
+ * Number of aging periods shown in the report.
17
+ */
18
+ periodCount?: number | undefined;
19
+ /**
20
+ * Length of each aging period in days.
21
+ */
22
+ periodLength?: number | undefined;
23
+ outstandingBalances?: Array<OutstandingBalanceBySupplier> | undefined;
24
+ };
25
+ /** @internal */
26
+ export declare const AgedCreditors$inboundSchema: z.ZodType<AgedCreditors, z.ZodTypeDef, unknown>;
27
+ /** @internal */
28
+ export type AgedCreditors$Outbound = {
29
+ report_generated_at?: string | undefined;
30
+ report_as_of_date?: string | undefined;
31
+ period_count: number;
32
+ period_length: number;
33
+ outstanding_balances?: Array<OutstandingBalanceBySupplier$Outbound> | undefined;
34
+ };
35
+ /** @internal */
36
+ export declare const AgedCreditors$outboundSchema: z.ZodType<AgedCreditors$Outbound, z.ZodTypeDef, AgedCreditors>;
37
+ /**
38
+ * @internal
39
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
+ */
41
+ export declare namespace AgedCreditors$ {
42
+ /** @deprecated use `AgedCreditors$inboundSchema` instead. */
43
+ const inboundSchema: z.ZodType<AgedCreditors, z.ZodTypeDef, unknown>;
44
+ /** @deprecated use `AgedCreditors$outboundSchema` instead. */
45
+ const outboundSchema: z.ZodType<AgedCreditors$Outbound, z.ZodTypeDef, AgedCreditors>;
46
+ /** @deprecated use `AgedCreditors$Outbound` instead. */
47
+ type Outbound = AgedCreditors$Outbound;
48
+ }
49
+ export declare function agedCreditorsToJSON(agedCreditors: AgedCreditors): string;
50
+ export declare function agedCreditorsFromJSON(jsonString: string): SafeParseResult<AgedCreditors, SDKValidationError>;
51
+ //# sourceMappingURL=agedcreditors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agedcreditors.d.ts","sourceRoot":"","sources":["../../src/models/components/agedcreditors.ts"],"names":[],"mappings":"AAIA,OAAO,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MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.AgedCreditors$ = exports.AgedCreditors$outboundSchema = exports.AgedCreditors$inboundSchema = void 0;
30
+ exports.agedCreditorsToJSON = agedCreditorsToJSON;
31
+ exports.agedCreditorsFromJSON = agedCreditorsFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ const rfcdate_js_1 = require("../../types/rfcdate.js");
36
+ const outstandingbalancebysupplier_js_1 = require("./outstandingbalancebysupplier.js");
37
+ /** @internal */
38
+ exports.AgedCreditors$inboundSchema = z.object({
39
+ report_generated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
40
+ report_as_of_date: z.string().transform(v => new rfcdate_js_1.RFCDate(v)).optional(),
41
+ period_count: z.number().int().default(4),
42
+ period_length: z.number().int().default(30),
43
+ outstanding_balances: z.array(outstandingbalancebysupplier_js_1.OutstandingBalanceBySupplier$inboundSchema)
44
+ .optional(),
45
+ }).transform((v) => {
46
+ return (0, primitives_js_1.remap)(v, {
47
+ "report_generated_at": "reportGeneratedAt",
48
+ "report_as_of_date": "reportAsOfDate",
49
+ "period_count": "periodCount",
50
+ "period_length": "periodLength",
51
+ "outstanding_balances": "outstandingBalances",
52
+ });
53
+ });
54
+ /** @internal */
55
+ exports.AgedCreditors$outboundSchema = z.object({
56
+ reportGeneratedAt: z.date().transform(v => v.toISOString()).optional(),
57
+ reportAsOfDate: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString()).optional(),
58
+ periodCount: z.number().int().default(4),
59
+ periodLength: z.number().int().default(30),
60
+ outstandingBalances: z.array(outstandingbalancebysupplier_js_1.OutstandingBalanceBySupplier$outboundSchema)
61
+ .optional(),
62
+ }).transform((v) => {
63
+ return (0, primitives_js_1.remap)(v, {
64
+ reportGeneratedAt: "report_generated_at",
65
+ reportAsOfDate: "report_as_of_date",
66
+ periodCount: "period_count",
67
+ periodLength: "period_length",
68
+ outstandingBalances: "outstanding_balances",
69
+ });
70
+ });
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ var AgedCreditors$;
76
+ (function (AgedCreditors$) {
77
+ /** @deprecated use `AgedCreditors$inboundSchema` instead. */
78
+ AgedCreditors$.inboundSchema = exports.AgedCreditors$inboundSchema;
79
+ /** @deprecated use `AgedCreditors$outboundSchema` instead. */
80
+ AgedCreditors$.outboundSchema = exports.AgedCreditors$outboundSchema;
81
+ })(AgedCreditors$ || (exports.AgedCreditors$ = AgedCreditors$ = {}));
82
+ function agedCreditorsToJSON(agedCreditors) {
83
+ return JSON.stringify(exports.AgedCreditors$outboundSchema.parse(agedCreditors));
84
+ }
85
+ function agedCreditorsFromJSON(jsonString) {
86
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgedCreditors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgedCreditors' from JSON`);
87
+ }
88
+ //# sourceMappingURL=agedcreditors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agedcreditors.js","sourceRoot":"","sources":["../../src/models/components/agedcreditors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGH,kDAEC;AAED,sDAQC;AAnHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,uDAAiD;AAEjD,uFAK2C;AAsB3C,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACvE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;IACZ,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,oBAAO,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACzC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAA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