@unified-api/typescript-sdk 2.73.5 → 2.73.7

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 (650) hide show
  1. package/README.md +60 -0
  2. package/bin/mcp-server.js +9519 -3972
  3. package/bin/mcp-server.js.map +121 -20
  4. package/docs/sdks/accounting/README.md +2759 -387
  5. package/docs/sdks/balancesheet/README.md +163 -0
  6. package/docs/sdks/bill/README.md +483 -0
  7. package/docs/sdks/creditmemo/README.md +483 -0
  8. package/docs/sdks/profitloss/README.md +163 -0
  9. package/docs/sdks/purchaseorder/README.md +483 -0
  10. package/docs/sdks/salesorder/README.md +483 -0
  11. package/docs/sdks/trialbalance/README.md +163 -0
  12. package/examples/README.md +26 -0
  13. package/examples/accountingCreateAccountingAccount.example.ts +29 -0
  14. package/examples/package-lock.json +626 -0
  15. package/examples/package.json +18 -0
  16. package/funcs/accountingCreateAccountingBill.d.ts +15 -0
  17. package/funcs/accountingCreateAccountingBill.d.ts.map +1 -0
  18. package/funcs/accountingCreateAccountingBill.js +112 -0
  19. package/funcs/accountingCreateAccountingBill.js.map +1 -0
  20. package/funcs/accountingCreateAccountingCreditmemo.d.ts +15 -0
  21. package/funcs/accountingCreateAccountingCreditmemo.d.ts.map +1 -0
  22. package/funcs/accountingCreateAccountingCreditmemo.js +114 -0
  23. package/funcs/accountingCreateAccountingCreditmemo.js.map +1 -0
  24. package/funcs/accountingCreateAccountingPurchaseorder.d.ts +15 -0
  25. package/funcs/accountingCreateAccountingPurchaseorder.d.ts.map +1 -0
  26. package/funcs/accountingCreateAccountingPurchaseorder.js +114 -0
  27. package/funcs/accountingCreateAccountingPurchaseorder.js.map +1 -0
  28. package/funcs/accountingCreateAccountingSalesorder.d.ts +15 -0
  29. package/funcs/accountingCreateAccountingSalesorder.d.ts.map +1 -0
  30. package/funcs/accountingCreateAccountingSalesorder.js +114 -0
  31. package/funcs/accountingCreateAccountingSalesorder.js.map +1 -0
  32. package/funcs/accountingGetAccountingBalancesheet.d.ts +15 -0
  33. package/funcs/accountingGetAccountingBalancesheet.d.ts.map +1 -0
  34. package/funcs/accountingGetAccountingBalancesheet.js +115 -0
  35. package/funcs/accountingGetAccountingBalancesheet.js.map +1 -0
  36. package/funcs/accountingGetAccountingBill.d.ts +15 -0
  37. package/funcs/accountingGetAccountingBill.d.ts.map +1 -0
  38. package/funcs/accountingGetAccountingBill.js +115 -0
  39. package/funcs/accountingGetAccountingBill.js.map +1 -0
  40. package/funcs/accountingGetAccountingCreditmemo.d.ts +15 -0
  41. package/funcs/accountingGetAccountingCreditmemo.d.ts.map +1 -0
  42. package/funcs/accountingGetAccountingCreditmemo.js +115 -0
  43. package/funcs/accountingGetAccountingCreditmemo.js.map +1 -0
  44. package/funcs/accountingGetAccountingProfitloss.d.ts +15 -0
  45. package/funcs/accountingGetAccountingProfitloss.d.ts.map +1 -0
  46. package/funcs/accountingGetAccountingProfitloss.js +115 -0
  47. package/funcs/accountingGetAccountingProfitloss.js.map +1 -0
  48. package/funcs/accountingGetAccountingPurchaseorder.d.ts +15 -0
  49. package/funcs/accountingGetAccountingPurchaseorder.d.ts.map +1 -0
  50. package/funcs/accountingGetAccountingPurchaseorder.js +115 -0
  51. package/funcs/accountingGetAccountingPurchaseorder.js.map +1 -0
  52. package/funcs/accountingGetAccountingSalesorder.d.ts +15 -0
  53. package/funcs/accountingGetAccountingSalesorder.d.ts.map +1 -0
  54. package/funcs/accountingGetAccountingSalesorder.js +115 -0
  55. package/funcs/accountingGetAccountingSalesorder.js.map +1 -0
  56. package/funcs/accountingGetAccountingTrialbalance.d.ts +15 -0
  57. package/funcs/accountingGetAccountingTrialbalance.d.ts.map +1 -0
  58. package/funcs/accountingGetAccountingTrialbalance.js +115 -0
  59. package/funcs/accountingGetAccountingTrialbalance.js.map +1 -0
  60. package/funcs/accountingListAccountingBalancesheets.d.ts +15 -0
  61. package/funcs/accountingListAccountingBalancesheets.d.ts.map +1 -0
  62. package/funcs/accountingListAccountingBalancesheets.js +120 -0
  63. package/funcs/accountingListAccountingBalancesheets.js.map +1 -0
  64. package/funcs/accountingListAccountingBills.d.ts +15 -0
  65. package/funcs/accountingListAccountingBills.d.ts.map +1 -0
  66. package/funcs/accountingListAccountingBills.js +120 -0
  67. package/funcs/accountingListAccountingBills.js.map +1 -0
  68. package/funcs/accountingListAccountingCreditmemoes.d.ts +15 -0
  69. package/funcs/accountingListAccountingCreditmemoes.d.ts.map +1 -0
  70. package/funcs/accountingListAccountingCreditmemoes.js +120 -0
  71. package/funcs/accountingListAccountingCreditmemoes.js.map +1 -0
  72. package/funcs/accountingListAccountingProfitlosses.d.ts +15 -0
  73. package/funcs/accountingListAccountingProfitlosses.d.ts.map +1 -0
  74. package/funcs/accountingListAccountingProfitlosses.js +120 -0
  75. package/funcs/accountingListAccountingProfitlosses.js.map +1 -0
  76. package/funcs/accountingListAccountingPurchaseorders.d.ts +15 -0
  77. package/funcs/accountingListAccountingPurchaseorders.d.ts.map +1 -0
  78. package/funcs/accountingListAccountingPurchaseorders.js +119 -0
  79. package/funcs/accountingListAccountingPurchaseorders.js.map +1 -0
  80. package/funcs/accountingListAccountingSalesorders.d.ts +15 -0
  81. package/funcs/accountingListAccountingSalesorders.d.ts.map +1 -0
  82. package/funcs/accountingListAccountingSalesorders.js +119 -0
  83. package/funcs/accountingListAccountingSalesorders.js.map +1 -0
  84. package/funcs/accountingListAccountingTrialbalances.d.ts +15 -0
  85. package/funcs/accountingListAccountingTrialbalances.d.ts.map +1 -0
  86. package/funcs/accountingListAccountingTrialbalances.js +120 -0
  87. package/funcs/accountingListAccountingTrialbalances.js.map +1 -0
  88. package/funcs/accountingPatchAccountingBill.d.ts +15 -0
  89. package/funcs/accountingPatchAccountingBill.d.ts.map +1 -0
  90. package/funcs/accountingPatchAccountingBill.js +116 -0
  91. package/funcs/accountingPatchAccountingBill.js.map +1 -0
  92. package/funcs/accountingPatchAccountingCreditmemo.d.ts +15 -0
  93. package/funcs/accountingPatchAccountingCreditmemo.d.ts.map +1 -0
  94. package/funcs/accountingPatchAccountingCreditmemo.js +118 -0
  95. package/funcs/accountingPatchAccountingCreditmemo.js.map +1 -0
  96. package/funcs/accountingPatchAccountingPurchaseorder.d.ts +15 -0
  97. package/funcs/accountingPatchAccountingPurchaseorder.d.ts.map +1 -0
  98. package/funcs/accountingPatchAccountingPurchaseorder.js +118 -0
  99. package/funcs/accountingPatchAccountingPurchaseorder.js.map +1 -0
  100. package/funcs/accountingPatchAccountingSalesorder.d.ts +15 -0
  101. package/funcs/accountingPatchAccountingSalesorder.d.ts.map +1 -0
  102. package/funcs/accountingPatchAccountingSalesorder.js +118 -0
  103. package/funcs/accountingPatchAccountingSalesorder.js.map +1 -0
  104. package/funcs/accountingRemoveAccountingBill.d.ts +14 -0
  105. package/funcs/accountingRemoveAccountingBill.d.ts.map +1 -0
  106. package/funcs/accountingRemoveAccountingBill.js +112 -0
  107. package/funcs/accountingRemoveAccountingBill.js.map +1 -0
  108. package/funcs/accountingRemoveAccountingCreditmemo.d.ts +14 -0
  109. package/funcs/accountingRemoveAccountingCreditmemo.d.ts.map +1 -0
  110. package/funcs/accountingRemoveAccountingCreditmemo.js +112 -0
  111. package/funcs/accountingRemoveAccountingCreditmemo.js.map +1 -0
  112. package/funcs/accountingRemoveAccountingPurchaseorder.d.ts +14 -0
  113. package/funcs/accountingRemoveAccountingPurchaseorder.d.ts.map +1 -0
  114. package/funcs/accountingRemoveAccountingPurchaseorder.js +112 -0
  115. package/funcs/accountingRemoveAccountingPurchaseorder.js.map +1 -0
  116. package/funcs/accountingRemoveAccountingSalesorder.d.ts +14 -0
  117. package/funcs/accountingRemoveAccountingSalesorder.d.ts.map +1 -0
  118. package/funcs/accountingRemoveAccountingSalesorder.js +112 -0
  119. package/funcs/accountingRemoveAccountingSalesorder.js.map +1 -0
  120. package/funcs/accountingUpdateAccountingBill.d.ts +15 -0
  121. package/funcs/accountingUpdateAccountingBill.d.ts.map +1 -0
  122. package/funcs/accountingUpdateAccountingBill.js +116 -0
  123. package/funcs/accountingUpdateAccountingBill.js.map +1 -0
  124. package/funcs/accountingUpdateAccountingCreditmemo.d.ts +15 -0
  125. package/funcs/accountingUpdateAccountingCreditmemo.d.ts.map +1 -0
  126. package/funcs/accountingUpdateAccountingCreditmemo.js +118 -0
  127. package/funcs/accountingUpdateAccountingCreditmemo.js.map +1 -0
  128. package/funcs/accountingUpdateAccountingPurchaseorder.d.ts +15 -0
  129. package/funcs/accountingUpdateAccountingPurchaseorder.d.ts.map +1 -0
  130. package/funcs/accountingUpdateAccountingPurchaseorder.js +118 -0
  131. package/funcs/accountingUpdateAccountingPurchaseorder.js.map +1 -0
  132. package/funcs/accountingUpdateAccountingSalesorder.d.ts +15 -0
  133. package/funcs/accountingUpdateAccountingSalesorder.d.ts.map +1 -0
  134. package/funcs/accountingUpdateAccountingSalesorder.js +118 -0
  135. package/funcs/accountingUpdateAccountingSalesorder.js.map +1 -0
  136. package/jsr.json +1 -1
  137. package/lib/config.d.ts +3 -3
  138. package/lib/config.js +3 -3
  139. package/mcp-server/mcp-server.js +1 -1
  140. package/mcp-server/server.d.ts.map +1 -1
  141. package/mcp-server/server.js +61 -1
  142. package/mcp-server/server.js.map +1 -1
  143. package/mcp-server/tools/accountingCreateAccountingBill.d.ts +8 -0
  144. package/mcp-server/tools/accountingCreateAccountingBill.d.ts.map +1 -0
  145. package/mcp-server/tools/accountingCreateAccountingBill.js +52 -0
  146. package/mcp-server/tools/accountingCreateAccountingBill.js.map +1 -0
  147. package/mcp-server/tools/accountingCreateAccountingCreditmemo.d.ts +8 -0
  148. package/mcp-server/tools/accountingCreateAccountingCreditmemo.d.ts.map +1 -0
  149. package/mcp-server/tools/accountingCreateAccountingCreditmemo.js +52 -0
  150. package/mcp-server/tools/accountingCreateAccountingCreditmemo.js.map +1 -0
  151. package/mcp-server/tools/accountingCreateAccountingPurchaseorder.d.ts +8 -0
  152. package/mcp-server/tools/accountingCreateAccountingPurchaseorder.d.ts.map +1 -0
  153. package/mcp-server/tools/accountingCreateAccountingPurchaseorder.js +52 -0
  154. package/mcp-server/tools/accountingCreateAccountingPurchaseorder.js.map +1 -0
  155. package/mcp-server/tools/accountingCreateAccountingSalesorder.d.ts +8 -0
  156. package/mcp-server/tools/accountingCreateAccountingSalesorder.d.ts.map +1 -0
  157. package/mcp-server/tools/accountingCreateAccountingSalesorder.js +52 -0
  158. package/mcp-server/tools/accountingCreateAccountingSalesorder.js.map +1 -0
  159. package/mcp-server/tools/accountingGetAccountingBalancesheet.d.ts +8 -0
  160. package/mcp-server/tools/accountingGetAccountingBalancesheet.d.ts.map +1 -0
  161. package/mcp-server/tools/accountingGetAccountingBalancesheet.js +52 -0
  162. package/mcp-server/tools/accountingGetAccountingBalancesheet.js.map +1 -0
  163. package/mcp-server/tools/accountingGetAccountingBill.d.ts +8 -0
  164. package/mcp-server/tools/accountingGetAccountingBill.d.ts.map +1 -0
  165. package/mcp-server/tools/accountingGetAccountingBill.js +52 -0
  166. package/mcp-server/tools/accountingGetAccountingBill.js.map +1 -0
  167. package/mcp-server/tools/accountingGetAccountingCreditmemo.d.ts +8 -0
  168. package/mcp-server/tools/accountingGetAccountingCreditmemo.d.ts.map +1 -0
  169. package/mcp-server/tools/accountingGetAccountingCreditmemo.js +52 -0
  170. package/mcp-server/tools/accountingGetAccountingCreditmemo.js.map +1 -0
  171. package/mcp-server/tools/accountingGetAccountingProfitloss.d.ts +8 -0
  172. package/mcp-server/tools/accountingGetAccountingProfitloss.d.ts.map +1 -0
  173. package/mcp-server/tools/accountingGetAccountingProfitloss.js +52 -0
  174. package/mcp-server/tools/accountingGetAccountingProfitloss.js.map +1 -0
  175. package/mcp-server/tools/accountingGetAccountingPurchaseorder.d.ts +8 -0
  176. package/mcp-server/tools/accountingGetAccountingPurchaseorder.d.ts.map +1 -0
  177. package/mcp-server/tools/accountingGetAccountingPurchaseorder.js +52 -0
  178. package/mcp-server/tools/accountingGetAccountingPurchaseorder.js.map +1 -0
  179. package/mcp-server/tools/accountingGetAccountingSalesorder.d.ts +8 -0
  180. package/mcp-server/tools/accountingGetAccountingSalesorder.d.ts.map +1 -0
  181. package/mcp-server/tools/accountingGetAccountingSalesorder.js +52 -0
  182. package/mcp-server/tools/accountingGetAccountingSalesorder.js.map +1 -0
  183. package/mcp-server/tools/accountingGetAccountingTrialbalance.d.ts +8 -0
  184. package/mcp-server/tools/accountingGetAccountingTrialbalance.d.ts.map +1 -0
  185. package/mcp-server/tools/accountingGetAccountingTrialbalance.js +52 -0
  186. package/mcp-server/tools/accountingGetAccountingTrialbalance.js.map +1 -0
  187. package/mcp-server/tools/accountingListAccountingBalancesheets.d.ts +8 -0
  188. package/mcp-server/tools/accountingListAccountingBalancesheets.d.ts.map +1 -0
  189. package/mcp-server/tools/accountingListAccountingBalancesheets.js +52 -0
  190. package/mcp-server/tools/accountingListAccountingBalancesheets.js.map +1 -0
  191. package/mcp-server/tools/accountingListAccountingBills.d.ts +8 -0
  192. package/mcp-server/tools/accountingListAccountingBills.d.ts.map +1 -0
  193. package/mcp-server/tools/accountingListAccountingBills.js +52 -0
  194. package/mcp-server/tools/accountingListAccountingBills.js.map +1 -0
  195. package/mcp-server/tools/accountingListAccountingCreditmemoes.d.ts +8 -0
  196. package/mcp-server/tools/accountingListAccountingCreditmemoes.d.ts.map +1 -0
  197. package/mcp-server/tools/accountingListAccountingCreditmemoes.js +52 -0
  198. package/mcp-server/tools/accountingListAccountingCreditmemoes.js.map +1 -0
  199. package/mcp-server/tools/accountingListAccountingProfitlosses.d.ts +8 -0
  200. package/mcp-server/tools/accountingListAccountingProfitlosses.d.ts.map +1 -0
  201. package/mcp-server/tools/accountingListAccountingProfitlosses.js +52 -0
  202. package/mcp-server/tools/accountingListAccountingProfitlosses.js.map +1 -0
  203. package/mcp-server/tools/accountingListAccountingPurchaseorders.d.ts +8 -0
  204. package/mcp-server/tools/accountingListAccountingPurchaseorders.d.ts.map +1 -0
  205. package/mcp-server/tools/accountingListAccountingPurchaseorders.js +52 -0
  206. package/mcp-server/tools/accountingListAccountingPurchaseorders.js.map +1 -0
  207. package/mcp-server/tools/accountingListAccountingSalesorders.d.ts +8 -0
  208. package/mcp-server/tools/accountingListAccountingSalesorders.d.ts.map +1 -0
  209. package/mcp-server/tools/accountingListAccountingSalesorders.js +52 -0
  210. package/mcp-server/tools/accountingListAccountingSalesorders.js.map +1 -0
  211. package/mcp-server/tools/accountingListAccountingTrialbalances.d.ts +8 -0
  212. package/mcp-server/tools/accountingListAccountingTrialbalances.d.ts.map +1 -0
  213. package/mcp-server/tools/accountingListAccountingTrialbalances.js +52 -0
  214. package/mcp-server/tools/accountingListAccountingTrialbalances.js.map +1 -0
  215. package/mcp-server/tools/accountingPatchAccountingBill.d.ts +8 -0
  216. package/mcp-server/tools/accountingPatchAccountingBill.d.ts.map +1 -0
  217. package/mcp-server/tools/accountingPatchAccountingBill.js +52 -0
  218. package/mcp-server/tools/accountingPatchAccountingBill.js.map +1 -0
  219. package/mcp-server/tools/accountingPatchAccountingCreditmemo.d.ts +8 -0
  220. package/mcp-server/tools/accountingPatchAccountingCreditmemo.d.ts.map +1 -0
  221. package/mcp-server/tools/accountingPatchAccountingCreditmemo.js +52 -0
  222. package/mcp-server/tools/accountingPatchAccountingCreditmemo.js.map +1 -0
  223. package/mcp-server/tools/accountingPatchAccountingPurchaseorder.d.ts +8 -0
  224. package/mcp-server/tools/accountingPatchAccountingPurchaseorder.d.ts.map +1 -0
  225. package/mcp-server/tools/accountingPatchAccountingPurchaseorder.js +52 -0
  226. package/mcp-server/tools/accountingPatchAccountingPurchaseorder.js.map +1 -0
  227. package/mcp-server/tools/accountingPatchAccountingSalesorder.d.ts +8 -0
  228. package/mcp-server/tools/accountingPatchAccountingSalesorder.d.ts.map +1 -0
  229. package/mcp-server/tools/accountingPatchAccountingSalesorder.js +52 -0
  230. package/mcp-server/tools/accountingPatchAccountingSalesorder.js.map +1 -0
  231. package/mcp-server/tools/accountingRemoveAccountingBill.d.ts +8 -0
  232. package/mcp-server/tools/accountingRemoveAccountingBill.d.ts.map +1 -0
  233. package/mcp-server/tools/accountingRemoveAccountingBill.js +51 -0
  234. package/mcp-server/tools/accountingRemoveAccountingBill.js.map +1 -0
  235. package/mcp-server/tools/accountingRemoveAccountingCreditmemo.d.ts +8 -0
  236. package/mcp-server/tools/accountingRemoveAccountingCreditmemo.d.ts.map +1 -0
  237. package/mcp-server/tools/accountingRemoveAccountingCreditmemo.js +51 -0
  238. package/mcp-server/tools/accountingRemoveAccountingCreditmemo.js.map +1 -0
  239. package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.d.ts +8 -0
  240. package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.d.ts.map +1 -0
  241. package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.js +51 -0
  242. package/mcp-server/tools/accountingRemoveAccountingPurchaseorder.js.map +1 -0
  243. package/mcp-server/tools/accountingRemoveAccountingSalesorder.d.ts +8 -0
  244. package/mcp-server/tools/accountingRemoveAccountingSalesorder.d.ts.map +1 -0
  245. package/mcp-server/tools/accountingRemoveAccountingSalesorder.js +51 -0
  246. package/mcp-server/tools/accountingRemoveAccountingSalesorder.js.map +1 -0
  247. package/mcp-server/tools/accountingUpdateAccountingBill.d.ts +8 -0
  248. package/mcp-server/tools/accountingUpdateAccountingBill.d.ts.map +1 -0
  249. package/mcp-server/tools/accountingUpdateAccountingBill.js +52 -0
  250. package/mcp-server/tools/accountingUpdateAccountingBill.js.map +1 -0
  251. package/mcp-server/tools/accountingUpdateAccountingCreditmemo.d.ts +8 -0
  252. package/mcp-server/tools/accountingUpdateAccountingCreditmemo.d.ts.map +1 -0
  253. package/mcp-server/tools/accountingUpdateAccountingCreditmemo.js +52 -0
  254. package/mcp-server/tools/accountingUpdateAccountingCreditmemo.js.map +1 -0
  255. package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.d.ts +8 -0
  256. package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.d.ts.map +1 -0
  257. package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.js +52 -0
  258. package/mcp-server/tools/accountingUpdateAccountingPurchaseorder.js.map +1 -0
  259. package/mcp-server/tools/accountingUpdateAccountingSalesorder.d.ts +8 -0
  260. package/mcp-server/tools/accountingUpdateAccountingSalesorder.d.ts.map +1 -0
  261. package/mcp-server/tools/accountingUpdateAccountingSalesorder.js +52 -0
  262. package/mcp-server/tools/accountingUpdateAccountingSalesorder.js.map +1 -0
  263. package/package.json +2 -2
  264. package/sdk/accounting.d.ts +120 -0
  265. package/sdk/accounting.d.ts.map +1 -1
  266. package/sdk/accounting.js +210 -0
  267. package/sdk/accounting.js.map +1 -1
  268. package/sdk/balancesheet.d.ts +14 -0
  269. package/sdk/balancesheet.d.ts.map +1 -0
  270. package/sdk/balancesheet.js +26 -0
  271. package/sdk/balancesheet.js.map +1 -0
  272. package/sdk/bill.d.ts +30 -0
  273. package/sdk/bill.d.ts.map +1 -0
  274. package/sdk/bill.js +54 -0
  275. package/sdk/bill.js.map +1 -0
  276. package/sdk/creditmemo.d.ts +30 -0
  277. package/sdk/creditmemo.d.ts.map +1 -0
  278. package/sdk/creditmemo.js +54 -0
  279. package/sdk/creditmemo.js.map +1 -0
  280. package/sdk/models/operations/createaccountingbill.d.ts +45 -0
  281. package/sdk/models/operations/createaccountingbill.d.ts.map +1 -0
  282. package/sdk/models/operations/createaccountingbill.js +77 -0
  283. package/sdk/models/operations/createaccountingbill.js.map +1 -0
  284. package/sdk/models/operations/createaccountingcreditmemo.d.ts +45 -0
  285. package/sdk/models/operations/createaccountingcreditmemo.d.ts.map +1 -0
  286. package/sdk/models/operations/createaccountingcreditmemo.js +77 -0
  287. package/sdk/models/operations/createaccountingcreditmemo.js.map +1 -0
  288. package/sdk/models/operations/createaccountingpurchaseorder.d.ts +45 -0
  289. package/sdk/models/operations/createaccountingpurchaseorder.d.ts.map +1 -0
  290. package/sdk/models/operations/createaccountingpurchaseorder.js +77 -0
  291. package/sdk/models/operations/createaccountingpurchaseorder.js.map +1 -0
  292. package/sdk/models/operations/createaccountingsalesorder.d.ts +45 -0
  293. package/sdk/models/operations/createaccountingsalesorder.d.ts.map +1 -0
  294. package/sdk/models/operations/createaccountingsalesorder.js +77 -0
  295. package/sdk/models/operations/createaccountingsalesorder.js.map +1 -0
  296. package/sdk/models/operations/getaccountingbalancesheet.d.ts +47 -0
  297. package/sdk/models/operations/getaccountingbalancesheet.d.ts.map +1 -0
  298. package/sdk/models/operations/getaccountingbalancesheet.js +74 -0
  299. package/sdk/models/operations/getaccountingbalancesheet.js.map +1 -0
  300. package/sdk/models/operations/getaccountingbill.d.ts +47 -0
  301. package/sdk/models/operations/getaccountingbill.d.ts.map +1 -0
  302. package/sdk/models/operations/getaccountingbill.js +74 -0
  303. package/sdk/models/operations/getaccountingbill.js.map +1 -0
  304. package/sdk/models/operations/getaccountingcreditmemo.d.ts +47 -0
  305. package/sdk/models/operations/getaccountingcreditmemo.d.ts.map +1 -0
  306. package/sdk/models/operations/getaccountingcreditmemo.js +74 -0
  307. package/sdk/models/operations/getaccountingcreditmemo.js.map +1 -0
  308. package/sdk/models/operations/getaccountingprofitloss.d.ts +47 -0
  309. package/sdk/models/operations/getaccountingprofitloss.d.ts.map +1 -0
  310. package/sdk/models/operations/getaccountingprofitloss.js +74 -0
  311. package/sdk/models/operations/getaccountingprofitloss.js.map +1 -0
  312. package/sdk/models/operations/getaccountingpurchaseorder.d.ts +47 -0
  313. package/sdk/models/operations/getaccountingpurchaseorder.d.ts.map +1 -0
  314. package/sdk/models/operations/getaccountingpurchaseorder.js +74 -0
  315. package/sdk/models/operations/getaccountingpurchaseorder.js.map +1 -0
  316. package/sdk/models/operations/getaccountingsalesorder.d.ts +47 -0
  317. package/sdk/models/operations/getaccountingsalesorder.d.ts.map +1 -0
  318. package/sdk/models/operations/getaccountingsalesorder.js +74 -0
  319. package/sdk/models/operations/getaccountingsalesorder.js.map +1 -0
  320. package/sdk/models/operations/getaccountingtrialbalance.d.ts +47 -0
  321. package/sdk/models/operations/getaccountingtrialbalance.d.ts.map +1 -0
  322. package/sdk/models/operations/getaccountingtrialbalance.js +74 -0
  323. package/sdk/models/operations/getaccountingtrialbalance.js.map +1 -0
  324. package/sdk/models/operations/index.d.ts +30 -0
  325. package/sdk/models/operations/index.d.ts.map +1 -1
  326. package/sdk/models/operations/index.js +30 -0
  327. package/sdk/models/operations/index.js.map +1 -1
  328. package/sdk/models/operations/listaccountingbalancesheets.d.ts +70 -0
  329. package/sdk/models/operations/listaccountingbalancesheets.d.ts.map +1 -0
  330. package/sdk/models/operations/listaccountingbalancesheets.js +94 -0
  331. package/sdk/models/operations/listaccountingbalancesheets.js.map +1 -0
  332. package/sdk/models/operations/listaccountingbills.d.ts +70 -0
  333. package/sdk/models/operations/listaccountingbills.d.ts.map +1 -0
  334. package/sdk/models/operations/listaccountingbills.js +94 -0
  335. package/sdk/models/operations/listaccountingbills.js.map +1 -0
  336. package/sdk/models/operations/listaccountingcreditmemoes.d.ts +70 -0
  337. package/sdk/models/operations/listaccountingcreditmemoes.d.ts.map +1 -0
  338. package/sdk/models/operations/listaccountingcreditmemoes.js +94 -0
  339. package/sdk/models/operations/listaccountingcreditmemoes.js.map +1 -0
  340. package/sdk/models/operations/listaccountingprofitlosses.d.ts +70 -0
  341. package/sdk/models/operations/listaccountingprofitlosses.d.ts.map +1 -0
  342. package/sdk/models/operations/listaccountingprofitlosses.js +94 -0
  343. package/sdk/models/operations/listaccountingprofitlosses.js.map +1 -0
  344. package/sdk/models/operations/listaccountingpurchaseorders.d.ts +65 -0
  345. package/sdk/models/operations/listaccountingpurchaseorders.d.ts.map +1 -0
  346. package/sdk/models/operations/listaccountingpurchaseorders.js +90 -0
  347. package/sdk/models/operations/listaccountingpurchaseorders.js.map +1 -0
  348. package/sdk/models/operations/listaccountingsalesorders.d.ts +65 -0
  349. package/sdk/models/operations/listaccountingsalesorders.d.ts.map +1 -0
  350. package/sdk/models/operations/listaccountingsalesorders.js +90 -0
  351. package/sdk/models/operations/listaccountingsalesorders.js.map +1 -0
  352. package/sdk/models/operations/listaccountingtrialbalances.d.ts +70 -0
  353. package/sdk/models/operations/listaccountingtrialbalances.d.ts.map +1 -0
  354. package/sdk/models/operations/listaccountingtrialbalances.js +94 -0
  355. package/sdk/models/operations/listaccountingtrialbalances.js.map +1 -0
  356. package/sdk/models/operations/patchaccountingbill.d.ts +50 -0
  357. package/sdk/models/operations/patchaccountingbill.d.ts.map +1 -0
  358. package/sdk/models/operations/patchaccountingbill.js +79 -0
  359. package/sdk/models/operations/patchaccountingbill.js.map +1 -0
  360. package/sdk/models/operations/patchaccountingcreditmemo.d.ts +50 -0
  361. package/sdk/models/operations/patchaccountingcreditmemo.d.ts.map +1 -0
  362. package/sdk/models/operations/patchaccountingcreditmemo.js +79 -0
  363. package/sdk/models/operations/patchaccountingcreditmemo.js.map +1 -0
  364. package/sdk/models/operations/patchaccountingpurchaseorder.d.ts +50 -0
  365. package/sdk/models/operations/patchaccountingpurchaseorder.d.ts.map +1 -0
  366. package/sdk/models/operations/patchaccountingpurchaseorder.js +79 -0
  367. package/sdk/models/operations/patchaccountingpurchaseorder.js.map +1 -0
  368. package/sdk/models/operations/patchaccountingsalesorder.d.ts +50 -0
  369. package/sdk/models/operations/patchaccountingsalesorder.d.ts.map +1 -0
  370. package/sdk/models/operations/patchaccountingsalesorder.js +79 -0
  371. package/sdk/models/operations/patchaccountingsalesorder.js.map +1 -0
  372. package/sdk/models/operations/removeaccountingbill.d.ts +66 -0
  373. package/sdk/models/operations/removeaccountingbill.d.ts.map +1 -0
  374. package/sdk/models/operations/removeaccountingbill.js +105 -0
  375. package/sdk/models/operations/removeaccountingbill.js.map +1 -0
  376. package/sdk/models/operations/removeaccountingcreditmemo.d.ts +66 -0
  377. package/sdk/models/operations/removeaccountingcreditmemo.d.ts.map +1 -0
  378. package/sdk/models/operations/removeaccountingcreditmemo.js +105 -0
  379. package/sdk/models/operations/removeaccountingcreditmemo.js.map +1 -0
  380. package/sdk/models/operations/removeaccountingpurchaseorder.d.ts +66 -0
  381. package/sdk/models/operations/removeaccountingpurchaseorder.d.ts.map +1 -0
  382. package/sdk/models/operations/removeaccountingpurchaseorder.js +105 -0
  383. package/sdk/models/operations/removeaccountingpurchaseorder.js.map +1 -0
  384. package/sdk/models/operations/removeaccountingsalesorder.d.ts +66 -0
  385. package/sdk/models/operations/removeaccountingsalesorder.d.ts.map +1 -0
  386. package/sdk/models/operations/removeaccountingsalesorder.js +105 -0
  387. package/sdk/models/operations/removeaccountingsalesorder.js.map +1 -0
  388. package/sdk/models/operations/updateaccountingbill.d.ts +50 -0
  389. package/sdk/models/operations/updateaccountingbill.d.ts.map +1 -0
  390. package/sdk/models/operations/updateaccountingbill.js +79 -0
  391. package/sdk/models/operations/updateaccountingbill.js.map +1 -0
  392. package/sdk/models/operations/updateaccountingcreditmemo.d.ts +50 -0
  393. package/sdk/models/operations/updateaccountingcreditmemo.d.ts.map +1 -0
  394. package/sdk/models/operations/updateaccountingcreditmemo.js +79 -0
  395. package/sdk/models/operations/updateaccountingcreditmemo.js.map +1 -0
  396. package/sdk/models/operations/updateaccountingpurchaseorder.d.ts +50 -0
  397. package/sdk/models/operations/updateaccountingpurchaseorder.d.ts.map +1 -0
  398. package/sdk/models/operations/updateaccountingpurchaseorder.js +79 -0
  399. package/sdk/models/operations/updateaccountingpurchaseorder.js.map +1 -0
  400. package/sdk/models/operations/updateaccountingsalesorder.d.ts +50 -0
  401. package/sdk/models/operations/updateaccountingsalesorder.d.ts.map +1 -0
  402. package/sdk/models/operations/updateaccountingsalesorder.js +79 -0
  403. package/sdk/models/operations/updateaccountingsalesorder.js.map +1 -0
  404. package/sdk/models/shared/accountingbalancesheet.d.ts +56 -0
  405. package/sdk/models/shared/accountingbalancesheet.d.ts.map +1 -0
  406. package/sdk/models/shared/accountingbalancesheet.js +103 -0
  407. package/sdk/models/shared/accountingbalancesheet.js.map +1 -0
  408. package/sdk/models/shared/accountingbalancesheetitem.d.ts +16 -16
  409. package/sdk/models/shared/accountingbalancesheetitem.js +18 -18
  410. package/sdk/models/shared/accountingbill.d.ts +129 -0
  411. package/sdk/models/shared/accountingbill.d.ts.map +1 -0
  412. package/sdk/models/shared/accountingbill.js +216 -0
  413. package/sdk/models/shared/accountingbill.js.map +1 -0
  414. package/sdk/models/shared/accountingcreditmemo.d.ts +129 -0
  415. package/sdk/models/shared/accountingcreditmemo.d.ts.map +1 -0
  416. package/sdk/models/shared/accountingcreditmemo.js +216 -0
  417. package/sdk/models/shared/accountingcreditmemo.js.map +1 -0
  418. package/sdk/models/shared/accountinginvoice.d.ts +10 -10
  419. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  420. package/sdk/models/shared/accountinginvoice.js +15 -15
  421. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  422. package/sdk/models/shared/accountingprofitloss.d.ts +82 -0
  423. package/sdk/models/shared/accountingprofitloss.d.ts.map +1 -0
  424. package/sdk/models/shared/accountingprofitloss.js +145 -0
  425. package/sdk/models/shared/accountingprofitloss.js.map +1 -0
  426. package/sdk/models/shared/accountingprofitlossaccount.d.ts +35 -0
  427. package/sdk/models/shared/accountingprofitlossaccount.d.ts.map +1 -0
  428. package/sdk/models/shared/{accountingprofitandlossaccount.js → accountingprofitlossaccount.js} +17 -17
  429. package/sdk/models/shared/accountingprofitlossaccount.js.map +1 -0
  430. package/sdk/models/shared/accountingprofitlosscategory.d.ts +37 -0
  431. package/sdk/models/shared/accountingprofitlosscategory.d.ts.map +1 -0
  432. package/sdk/models/shared/{accountingprofitandlosscategory.js → accountingprofitlosscategory.js} +20 -22
  433. package/sdk/models/shared/accountingprofitlosscategory.js.map +1 -0
  434. package/sdk/models/shared/accountingprofitlosssection.d.ts +36 -0
  435. package/sdk/models/shared/accountingprofitlosssection.d.ts.map +1 -0
  436. package/sdk/models/shared/{accountingprofitandlosssection.js → accountingprofitlosssection.js} +20 -20
  437. package/sdk/models/shared/accountingprofitlosssection.js.map +1 -0
  438. package/sdk/models/shared/accountingprofitlosssubcategory.d.ts +36 -0
  439. package/sdk/models/shared/accountingprofitlosssubcategory.d.ts.map +1 -0
  440. package/sdk/models/shared/{accountingprofitandlosssubcategory.js → accountingprofitlosssubcategory.js} +17 -17
  441. package/sdk/models/shared/accountingprofitlosssubcategory.js.map +1 -0
  442. package/sdk/models/shared/accountingpurchaseorder.d.ts +85 -0
  443. package/sdk/models/shared/accountingpurchaseorder.d.ts.map +1 -0
  444. package/sdk/models/shared/accountingpurchaseorder.js +148 -0
  445. package/sdk/models/shared/accountingpurchaseorder.js.map +1 -0
  446. package/sdk/models/shared/accountingsalesorder.d.ts +85 -0
  447. package/sdk/models/shared/accountingsalesorder.d.ts.map +1 -0
  448. package/sdk/models/shared/accountingsalesorder.js +148 -0
  449. package/sdk/models/shared/accountingsalesorder.js.map +1 -0
  450. package/sdk/models/shared/accountingtrialbalance.d.ts +54 -0
  451. package/sdk/models/shared/accountingtrialbalance.d.ts.map +1 -0
  452. package/sdk/models/shared/accountingtrialbalance.js +105 -0
  453. package/sdk/models/shared/accountingtrialbalance.js.map +1 -0
  454. package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +13 -13
  455. package/sdk/models/shared/accountingtrialbalancesubitem.js +16 -16
  456. package/sdk/models/shared/index.d.ts +15 -4
  457. package/sdk/models/shared/index.d.ts.map +1 -1
  458. package/sdk/models/shared/index.js +15 -4
  459. package/sdk/models/shared/index.js.map +1 -1
  460. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +13 -13
  461. package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +16 -16
  462. package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.d.ts +43 -0
  463. package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.d.ts.map +1 -0
  464. package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.js +86 -0
  465. package/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.js.map +1 -0
  466. package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.d.ts +43 -0
  467. package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.d.ts.map +1 -0
  468. package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.js +86 -0
  469. package/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.js.map +1 -0
  470. package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +27 -7
  471. package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -1
  472. package/sdk/models/shared/propertyaccountingreportbalancesheet.js +34 -6
  473. package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -1
  474. package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +34 -14
  475. package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -1
  476. package/sdk/models/shared/propertyaccountingreportprofitandloss.js +43 -14
  477. package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -1
  478. package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +23 -3
  479. package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -1
  480. package/sdk/models/shared/propertyaccountingreporttrialbalance.js +30 -2
  481. package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -1
  482. package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.d.ts +43 -0
  483. package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.d.ts.map +1 -0
  484. package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.js +86 -0
  485. package/sdk/models/shared/propertyaccountingsalesorderbillingaddress.js.map +1 -0
  486. package/sdk/models/shared/propertyaccountingsalesordershippingaddress.d.ts +43 -0
  487. package/sdk/models/shared/propertyaccountingsalesordershippingaddress.d.ts.map +1 -0
  488. package/sdk/models/shared/propertyaccountingsalesordershippingaddress.js +86 -0
  489. package/sdk/models/shared/propertyaccountingsalesordershippingaddress.js.map +1 -0
  490. package/sdk/profitloss.d.ts +14 -0
  491. package/sdk/profitloss.d.ts.map +1 -0
  492. package/sdk/profitloss.js +26 -0
  493. package/sdk/profitloss.js.map +1 -0
  494. package/sdk/purchaseorder.d.ts +30 -0
  495. package/sdk/purchaseorder.d.ts.map +1 -0
  496. package/sdk/purchaseorder.js +54 -0
  497. package/sdk/purchaseorder.js.map +1 -0
  498. package/sdk/salesorder.d.ts +30 -0
  499. package/sdk/salesorder.d.ts.map +1 -0
  500. package/sdk/salesorder.js +54 -0
  501. package/sdk/salesorder.js.map +1 -0
  502. package/sdk/sdk.d.ts +21 -0
  503. package/sdk/sdk.d.ts.map +1 -1
  504. package/sdk/sdk.js +28 -0
  505. package/sdk/sdk.js.map +1 -1
  506. package/sdk/trialbalance.d.ts +14 -0
  507. package/sdk/trialbalance.d.ts.map +1 -0
  508. package/sdk/trialbalance.js +26 -0
  509. package/sdk/trialbalance.js.map +1 -0
  510. package/src/funcs/accountingCreateAccountingBill.ts +171 -0
  511. package/src/funcs/accountingCreateAccountingCreditmemo.ts +173 -0
  512. package/src/funcs/accountingCreateAccountingPurchaseorder.ts +177 -0
  513. package/src/funcs/accountingCreateAccountingSalesorder.ts +173 -0
  514. package/src/funcs/accountingGetAccountingBalancesheet.ts +176 -0
  515. package/src/funcs/accountingGetAccountingBill.ts +173 -0
  516. package/src/funcs/accountingGetAccountingCreditmemo.ts +176 -0
  517. package/src/funcs/accountingGetAccountingProfitloss.ts +176 -0
  518. package/src/funcs/accountingGetAccountingPurchaseorder.ts +176 -0
  519. package/src/funcs/accountingGetAccountingSalesorder.ts +176 -0
  520. package/src/funcs/accountingGetAccountingTrialbalance.ts +176 -0
  521. package/src/funcs/accountingListAccountingBalancesheets.ts +181 -0
  522. package/src/funcs/accountingListAccountingBills.ts +179 -0
  523. package/src/funcs/accountingListAccountingCreditmemoes.ts +179 -0
  524. package/src/funcs/accountingListAccountingProfitlosses.ts +179 -0
  525. package/src/funcs/accountingListAccountingPurchaseorders.ts +182 -0
  526. package/src/funcs/accountingListAccountingSalesorders.ts +178 -0
  527. package/src/funcs/accountingListAccountingTrialbalances.ts +181 -0
  528. package/src/funcs/accountingPatchAccountingBill.ts +175 -0
  529. package/src/funcs/accountingPatchAccountingCreditmemo.ts +179 -0
  530. package/src/funcs/accountingPatchAccountingPurchaseorder.ts +181 -0
  531. package/src/funcs/accountingPatchAccountingSalesorder.ts +179 -0
  532. package/src/funcs/accountingRemoveAccountingBill.ts +179 -0
  533. package/src/funcs/accountingRemoveAccountingCreditmemo.ts +181 -0
  534. package/src/funcs/accountingRemoveAccountingPurchaseorder.ts +183 -0
  535. package/src/funcs/accountingRemoveAccountingSalesorder.ts +181 -0
  536. package/src/funcs/accountingUpdateAccountingBill.ts +175 -0
  537. package/src/funcs/accountingUpdateAccountingCreditmemo.ts +179 -0
  538. package/src/funcs/accountingUpdateAccountingPurchaseorder.ts +181 -0
  539. package/src/funcs/accountingUpdateAccountingSalesorder.ts +179 -0
  540. package/src/lib/config.ts +3 -3
  541. package/src/mcp-server/mcp-server.ts +1 -1
  542. package/src/mcp-server/server.ts +61 -1
  543. package/src/mcp-server/tools/accountingCreateAccountingBill.ts +36 -0
  544. package/src/mcp-server/tools/accountingCreateAccountingCreditmemo.ts +37 -0
  545. package/src/mcp-server/tools/accountingCreateAccountingPurchaseorder.ts +37 -0
  546. package/src/mcp-server/tools/accountingCreateAccountingSalesorder.ts +37 -0
  547. package/src/mcp-server/tools/accountingGetAccountingBalancesheet.ts +37 -0
  548. package/src/mcp-server/tools/accountingGetAccountingBill.ts +35 -0
  549. package/src/mcp-server/tools/accountingGetAccountingCreditmemo.ts +37 -0
  550. package/src/mcp-server/tools/accountingGetAccountingProfitloss.ts +37 -0
  551. package/src/mcp-server/tools/accountingGetAccountingPurchaseorder.ts +37 -0
  552. package/src/mcp-server/tools/accountingGetAccountingSalesorder.ts +37 -0
  553. package/src/mcp-server/tools/accountingGetAccountingTrialbalance.ts +37 -0
  554. package/src/mcp-server/tools/accountingListAccountingBalancesheets.ts +37 -0
  555. package/src/mcp-server/tools/accountingListAccountingBills.ts +35 -0
  556. package/src/mcp-server/tools/accountingListAccountingCreditmemoes.ts +37 -0
  557. package/src/mcp-server/tools/accountingListAccountingProfitlosses.ts +37 -0
  558. package/src/mcp-server/tools/accountingListAccountingPurchaseorders.ts +37 -0
  559. package/src/mcp-server/tools/accountingListAccountingSalesorders.ts +37 -0
  560. package/src/mcp-server/tools/accountingListAccountingTrialbalances.ts +37 -0
  561. package/src/mcp-server/tools/accountingPatchAccountingBill.ts +35 -0
  562. package/src/mcp-server/tools/accountingPatchAccountingCreditmemo.ts +37 -0
  563. package/src/mcp-server/tools/accountingPatchAccountingPurchaseorder.ts +37 -0
  564. package/src/mcp-server/tools/accountingPatchAccountingSalesorder.ts +37 -0
  565. package/src/mcp-server/tools/accountingRemoveAccountingBill.ts +34 -0
  566. package/src/mcp-server/tools/accountingRemoveAccountingCreditmemo.ts +35 -0
  567. package/src/mcp-server/tools/accountingRemoveAccountingPurchaseorder.ts +35 -0
  568. package/src/mcp-server/tools/accountingRemoveAccountingSalesorder.ts +35 -0
  569. package/src/mcp-server/tools/accountingUpdateAccountingBill.ts +36 -0
  570. package/src/mcp-server/tools/accountingUpdateAccountingCreditmemo.ts +37 -0
  571. package/src/mcp-server/tools/accountingUpdateAccountingPurchaseorder.ts +37 -0
  572. package/src/mcp-server/tools/accountingUpdateAccountingSalesorder.ts +37 -0
  573. package/src/sdk/accounting.ts +450 -0
  574. package/src/sdk/balancesheet.ts +40 -0
  575. package/src/sdk/bill.ts +100 -0
  576. package/src/sdk/creditmemo.ts +100 -0
  577. package/src/sdk/models/operations/createaccountingbill.ts +101 -0
  578. package/src/sdk/models/operations/createaccountingcreditmemo.ts +102 -0
  579. package/src/sdk/models/operations/createaccountingpurchaseorder.ts +104 -0
  580. package/src/sdk/models/operations/createaccountingsalesorder.ts +102 -0
  581. package/src/sdk/models/operations/getaccountingbalancesheet.ts +101 -0
  582. package/src/sdk/models/operations/getaccountingbill.ts +99 -0
  583. package/src/sdk/models/operations/getaccountingcreditmemo.ts +101 -0
  584. package/src/sdk/models/operations/getaccountingprofitloss.ts +101 -0
  585. package/src/sdk/models/operations/getaccountingpurchaseorder.ts +102 -0
  586. package/src/sdk/models/operations/getaccountingsalesorder.ts +101 -0
  587. package/src/sdk/models/operations/getaccountingtrialbalance.ts +101 -0
  588. package/src/sdk/models/operations/index.ts +30 -0
  589. package/src/sdk/models/operations/listaccountingbalancesheets.ts +146 -0
  590. package/src/sdk/models/operations/listaccountingbills.ts +142 -0
  591. package/src/sdk/models/operations/listaccountingcreditmemoes.ts +145 -0
  592. package/src/sdk/models/operations/listaccountingprofitlosses.ts +145 -0
  593. package/src/sdk/models/operations/listaccountingpurchaseorders.ts +138 -0
  594. package/src/sdk/models/operations/listaccountingsalesorders.ts +135 -0
  595. package/src/sdk/models/operations/listaccountingtrialbalances.ts +146 -0
  596. package/src/sdk/models/operations/patchaccountingbill.ts +106 -0
  597. package/src/sdk/models/operations/patchaccountingcreditmemo.ts +108 -0
  598. package/src/sdk/models/operations/patchaccountingpurchaseorder.ts +111 -0
  599. package/src/sdk/models/operations/patchaccountingsalesorder.ts +108 -0
  600. package/src/sdk/models/operations/removeaccountingbill.ts +155 -0
  601. package/src/sdk/models/operations/removeaccountingcreditmemo.ts +158 -0
  602. package/src/sdk/models/operations/removeaccountingpurchaseorder.ts +161 -0
  603. package/src/sdk/models/operations/removeaccountingsalesorder.ts +158 -0
  604. package/src/sdk/models/operations/updateaccountingbill.ts +108 -0
  605. package/src/sdk/models/operations/updateaccountingcreditmemo.ts +109 -0
  606. package/src/sdk/models/operations/updateaccountingpurchaseorder.ts +111 -0
  607. package/src/sdk/models/operations/updateaccountingsalesorder.ts +109 -0
  608. package/src/sdk/models/shared/accountingbalancesheet.ts +137 -0
  609. package/src/sdk/models/shared/accountingbalancesheetitem.ts +29 -29
  610. package/src/sdk/models/shared/accountingbill.ts +309 -0
  611. package/src/sdk/models/shared/accountingcreditmemo.ts +325 -0
  612. package/src/sdk/models/shared/accountinginvoice.ts +25 -17
  613. package/src/sdk/models/shared/accountingprofitloss.ts +213 -0
  614. package/src/sdk/models/shared/{accountingprofitandlossaccount.ts → accountingprofitlossaccount.ts} +22 -22
  615. package/src/sdk/models/shared/accountingprofitlosscategory.ts +94 -0
  616. package/src/sdk/models/shared/accountingprofitlosssection.ts +99 -0
  617. package/src/sdk/models/shared/accountingprofitlosssubcategory.ts +88 -0
  618. package/src/sdk/models/shared/accountingpurchaseorder.ts +216 -0
  619. package/src/sdk/models/shared/accountingsalesorder.ts +216 -0
  620. package/src/sdk/models/shared/accountingtrialbalance.ts +137 -0
  621. package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +22 -22
  622. package/src/sdk/models/shared/index.ts +15 -4
  623. package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +23 -23
  624. package/src/sdk/models/shared/propertyaccountingpurchaseorderbillingaddress.ts +120 -0
  625. package/src/sdk/models/shared/propertyaccountingpurchaseordershippingaddress.ts +121 -0
  626. package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +60 -16
  627. package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +79 -40
  628. package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +52 -8
  629. package/src/sdk/models/shared/propertyaccountingsalesorderbillingaddress.ts +117 -0
  630. package/src/sdk/models/shared/propertyaccountingsalesordershippingaddress.ts +120 -0
  631. package/src/sdk/profitloss.ts +40 -0
  632. package/src/sdk/purchaseorder.ts +100 -0
  633. package/src/sdk/salesorder.ts +100 -0
  634. package/src/sdk/sdk.ts +42 -0
  635. package/src/sdk/trialbalance.ts +40 -0
  636. package/sdk/models/shared/accountingprofitandlossaccount.d.ts +0 -35
  637. package/sdk/models/shared/accountingprofitandlossaccount.d.ts.map +0 -1
  638. package/sdk/models/shared/accountingprofitandlossaccount.js.map +0 -1
  639. package/sdk/models/shared/accountingprofitandlosscategory.d.ts +0 -37
  640. package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +0 -1
  641. package/sdk/models/shared/accountingprofitandlosscategory.js.map +0 -1
  642. package/sdk/models/shared/accountingprofitandlosssection.d.ts +0 -36
  643. package/sdk/models/shared/accountingprofitandlosssection.d.ts.map +0 -1
  644. package/sdk/models/shared/accountingprofitandlosssection.js.map +0 -1
  645. package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +0 -36
  646. package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +0 -1
  647. package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +0 -1
  648. package/src/sdk/models/shared/accountingprofitandlosscategory.ts +0 -96
  649. package/src/sdk/models/shared/accountingprofitandlosssection.ts +0 -99
  650. package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +0 -90
@@ -0,0 +1,325 @@
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 {
9
+ catchUnrecognizedEnum,
10
+ OpenEnum,
11
+ Unrecognized,
12
+ } from "../../types/enums.js";
13
+ import { Result as SafeParseResult } from "../../types/fp.js";
14
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
15
+ import {
16
+ AccountingAttachment,
17
+ AccountingAttachment$inboundSchema,
18
+ AccountingAttachment$Outbound,
19
+ AccountingAttachment$outboundSchema,
20
+ } from "./accountingattachment.js";
21
+ import {
22
+ AccountingLineitem,
23
+ AccountingLineitem$inboundSchema,
24
+ AccountingLineitem$Outbound,
25
+ AccountingLineitem$outboundSchema,
26
+ } from "./accountinglineitem.js";
27
+
28
+ export const AccountingCreditmemoPaymentCollectionMethod = {
29
+ SendInvoice: "send_invoice",
30
+ ChargeAutomatically: "charge_automatically",
31
+ } as const;
32
+ export type AccountingCreditmemoPaymentCollectionMethod = OpenEnum<
33
+ typeof AccountingCreditmemoPaymentCollectionMethod
34
+ >;
35
+
36
+ export const AccountingCreditmemoStatus = {
37
+ Draft: "DRAFT",
38
+ Voided: "VOIDED",
39
+ Authorized: "AUTHORIZED",
40
+ Paid: "PAID",
41
+ PartiallyPaid: "PARTIALLY_PAID",
42
+ PartiallyRefunded: "PARTIALLY_REFUNDED",
43
+ Refunded: "REFUNDED",
44
+ } as const;
45
+ export type AccountingCreditmemoStatus = OpenEnum<
46
+ typeof AccountingCreditmemoStatus
47
+ >;
48
+
49
+ export type AccountingCreditmemo = {
50
+ attachments?: Array<AccountingAttachment> | undefined;
51
+ balanceAmount?: number | undefined;
52
+ cancelledAt?: Date | undefined;
53
+ contactId?: string | undefined;
54
+ createdAt?: Date | undefined;
55
+ creditmemoNumber?: string | undefined;
56
+ currency?: string | undefined;
57
+ discountAmount?: number | undefined;
58
+ dueAt?: Date | undefined;
59
+ id?: string | undefined;
60
+ lineitems?: Array<AccountingLineitem> | undefined;
61
+ notes?: string | undefined;
62
+ paidAmount?: number | undefined;
63
+ paidAt?: Date | undefined;
64
+ paymentCollectionMethod?:
65
+ | AccountingCreditmemoPaymentCollectionMethod
66
+ | undefined;
67
+ postedAt?: Date | undefined;
68
+ raw?: { [k: string]: any } | undefined;
69
+ refundAmount?: number | undefined;
70
+ refundReason?: string | undefined;
71
+ refundedAt?: Date | undefined;
72
+ send?: boolean | undefined;
73
+ status?: AccountingCreditmemoStatus | undefined;
74
+ taxAmount?: number | undefined;
75
+ totalAmount?: number | undefined;
76
+ updatedAt?: Date | undefined;
77
+ url?: string | undefined;
78
+ };
79
+
80
+ /** @internal */
81
+ export const AccountingCreditmemoPaymentCollectionMethod$inboundSchema:
82
+ z.ZodType<
83
+ AccountingCreditmemoPaymentCollectionMethod,
84
+ z.ZodTypeDef,
85
+ unknown
86
+ > = z
87
+ .union([
88
+ z.nativeEnum(AccountingCreditmemoPaymentCollectionMethod),
89
+ z.string().transform(catchUnrecognizedEnum),
90
+ ]);
91
+
92
+ /** @internal */
93
+ export const AccountingCreditmemoPaymentCollectionMethod$outboundSchema:
94
+ z.ZodType<
95
+ AccountingCreditmemoPaymentCollectionMethod,
96
+ z.ZodTypeDef,
97
+ AccountingCreditmemoPaymentCollectionMethod
98
+ > = z.union([
99
+ z.nativeEnum(AccountingCreditmemoPaymentCollectionMethod),
100
+ z.string().and(z.custom<Unrecognized<string>>()),
101
+ ]);
102
+
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export namespace AccountingCreditmemoPaymentCollectionMethod$ {
108
+ /** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$inboundSchema` instead. */
109
+ export const inboundSchema =
110
+ AccountingCreditmemoPaymentCollectionMethod$inboundSchema;
111
+ /** @deprecated use `AccountingCreditmemoPaymentCollectionMethod$outboundSchema` instead. */
112
+ export const outboundSchema =
113
+ AccountingCreditmemoPaymentCollectionMethod$outboundSchema;
114
+ }
115
+
116
+ /** @internal */
117
+ export const AccountingCreditmemoStatus$inboundSchema: z.ZodType<
118
+ AccountingCreditmemoStatus,
119
+ z.ZodTypeDef,
120
+ unknown
121
+ > = z
122
+ .union([
123
+ z.nativeEnum(AccountingCreditmemoStatus),
124
+ z.string().transform(catchUnrecognizedEnum),
125
+ ]);
126
+
127
+ /** @internal */
128
+ export const AccountingCreditmemoStatus$outboundSchema: z.ZodType<
129
+ AccountingCreditmemoStatus,
130
+ z.ZodTypeDef,
131
+ AccountingCreditmemoStatus
132
+ > = z.union([
133
+ z.nativeEnum(AccountingCreditmemoStatus),
134
+ z.string().and(z.custom<Unrecognized<string>>()),
135
+ ]);
136
+
137
+ /**
138
+ * @internal
139
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
+ */
141
+ export namespace AccountingCreditmemoStatus$ {
142
+ /** @deprecated use `AccountingCreditmemoStatus$inboundSchema` instead. */
143
+ export const inboundSchema = AccountingCreditmemoStatus$inboundSchema;
144
+ /** @deprecated use `AccountingCreditmemoStatus$outboundSchema` instead. */
145
+ export const outboundSchema = AccountingCreditmemoStatus$outboundSchema;
146
+ }
147
+
148
+ /** @internal */
149
+ export const AccountingCreditmemo$inboundSchema: z.ZodType<
150
+ AccountingCreditmemo,
151
+ z.ZodTypeDef,
152
+ unknown
153
+ > = z.object({
154
+ attachments: z.array(AccountingAttachment$inboundSchema).optional(),
155
+ balance_amount: z.number().optional(),
156
+ cancelled_at: z.string().datetime({ offset: true }).transform(v =>
157
+ new Date(v)
158
+ ).optional(),
159
+ contact_id: z.string().optional(),
160
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
161
+ .optional(),
162
+ creditmemo_number: z.string().optional(),
163
+ currency: z.string().optional(),
164
+ discount_amount: z.number().optional(),
165
+ due_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
166
+ .optional(),
167
+ id: z.string().optional(),
168
+ lineitems: z.array(AccountingLineitem$inboundSchema).optional(),
169
+ notes: z.string().optional(),
170
+ paid_amount: z.number().optional(),
171
+ paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
172
+ .optional(),
173
+ payment_collection_method:
174
+ AccountingCreditmemoPaymentCollectionMethod$inboundSchema.optional(),
175
+ posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
176
+ .optional(),
177
+ raw: z.record(z.any()).optional(),
178
+ refund_amount: z.number().optional(),
179
+ refund_reason: z.string().optional(),
180
+ refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
181
+ .optional(),
182
+ send: z.boolean().optional(),
183
+ status: AccountingCreditmemoStatus$inboundSchema.optional(),
184
+ tax_amount: z.number().optional(),
185
+ total_amount: z.number().optional(),
186
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
+ .optional(),
188
+ url: z.string().optional(),
189
+ }).transform((v) => {
190
+ return remap$(v, {
191
+ "balance_amount": "balanceAmount",
192
+ "cancelled_at": "cancelledAt",
193
+ "contact_id": "contactId",
194
+ "created_at": "createdAt",
195
+ "creditmemo_number": "creditmemoNumber",
196
+ "discount_amount": "discountAmount",
197
+ "due_at": "dueAt",
198
+ "paid_amount": "paidAmount",
199
+ "paid_at": "paidAt",
200
+ "payment_collection_method": "paymentCollectionMethod",
201
+ "posted_at": "postedAt",
202
+ "refund_amount": "refundAmount",
203
+ "refund_reason": "refundReason",
204
+ "refunded_at": "refundedAt",
205
+ "tax_amount": "taxAmount",
206
+ "total_amount": "totalAmount",
207
+ "updated_at": "updatedAt",
208
+ });
209
+ });
210
+
211
+ /** @internal */
212
+ export type AccountingCreditmemo$Outbound = {
213
+ attachments?: Array<AccountingAttachment$Outbound> | undefined;
214
+ balance_amount?: number | undefined;
215
+ cancelled_at?: string | undefined;
216
+ contact_id?: string | undefined;
217
+ created_at?: string | undefined;
218
+ creditmemo_number?: string | undefined;
219
+ currency?: string | undefined;
220
+ discount_amount?: number | undefined;
221
+ due_at?: string | undefined;
222
+ id?: string | undefined;
223
+ lineitems?: Array<AccountingLineitem$Outbound> | undefined;
224
+ notes?: string | undefined;
225
+ paid_amount?: number | undefined;
226
+ paid_at?: string | undefined;
227
+ payment_collection_method?: string | undefined;
228
+ posted_at?: string | undefined;
229
+ raw?: { [k: string]: any } | undefined;
230
+ refund_amount?: number | undefined;
231
+ refund_reason?: string | undefined;
232
+ refunded_at?: string | undefined;
233
+ send?: boolean | undefined;
234
+ status?: string | undefined;
235
+ tax_amount?: number | undefined;
236
+ total_amount?: number | undefined;
237
+ updated_at?: string | undefined;
238
+ url?: string | undefined;
239
+ };
240
+
241
+ /** @internal */
242
+ export const AccountingCreditmemo$outboundSchema: z.ZodType<
243
+ AccountingCreditmemo$Outbound,
244
+ z.ZodTypeDef,
245
+ AccountingCreditmemo
246
+ > = z.object({
247
+ attachments: z.array(AccountingAttachment$outboundSchema).optional(),
248
+ balanceAmount: z.number().optional(),
249
+ cancelledAt: z.date().transform(v => v.toISOString()).optional(),
250
+ contactId: z.string().optional(),
251
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
252
+ creditmemoNumber: z.string().optional(),
253
+ currency: z.string().optional(),
254
+ discountAmount: z.number().optional(),
255
+ dueAt: z.date().transform(v => v.toISOString()).optional(),
256
+ id: z.string().optional(),
257
+ lineitems: z.array(AccountingLineitem$outboundSchema).optional(),
258
+ notes: z.string().optional(),
259
+ paidAmount: z.number().optional(),
260
+ paidAt: z.date().transform(v => v.toISOString()).optional(),
261
+ paymentCollectionMethod:
262
+ AccountingCreditmemoPaymentCollectionMethod$outboundSchema.optional(),
263
+ postedAt: z.date().transform(v => v.toISOString()).optional(),
264
+ raw: z.record(z.any()).optional(),
265
+ refundAmount: z.number().optional(),
266
+ refundReason: z.string().optional(),
267
+ refundedAt: z.date().transform(v => v.toISOString()).optional(),
268
+ send: z.boolean().optional(),
269
+ status: AccountingCreditmemoStatus$outboundSchema.optional(),
270
+ taxAmount: z.number().optional(),
271
+ totalAmount: z.number().optional(),
272
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
273
+ url: z.string().optional(),
274
+ }).transform((v) => {
275
+ return remap$(v, {
276
+ balanceAmount: "balance_amount",
277
+ cancelledAt: "cancelled_at",
278
+ contactId: "contact_id",
279
+ createdAt: "created_at",
280
+ creditmemoNumber: "creditmemo_number",
281
+ discountAmount: "discount_amount",
282
+ dueAt: "due_at",
283
+ paidAmount: "paid_amount",
284
+ paidAt: "paid_at",
285
+ paymentCollectionMethod: "payment_collection_method",
286
+ postedAt: "posted_at",
287
+ refundAmount: "refund_amount",
288
+ refundReason: "refund_reason",
289
+ refundedAt: "refunded_at",
290
+ taxAmount: "tax_amount",
291
+ totalAmount: "total_amount",
292
+ updatedAt: "updated_at",
293
+ });
294
+ });
295
+
296
+ /**
297
+ * @internal
298
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
299
+ */
300
+ export namespace AccountingCreditmemo$ {
301
+ /** @deprecated use `AccountingCreditmemo$inboundSchema` instead. */
302
+ export const inboundSchema = AccountingCreditmemo$inboundSchema;
303
+ /** @deprecated use `AccountingCreditmemo$outboundSchema` instead. */
304
+ export const outboundSchema = AccountingCreditmemo$outboundSchema;
305
+ /** @deprecated use `AccountingCreditmemo$Outbound` instead. */
306
+ export type Outbound = AccountingCreditmemo$Outbound;
307
+ }
308
+
309
+ export function accountingCreditmemoToJSON(
310
+ accountingCreditmemo: AccountingCreditmemo,
311
+ ): string {
312
+ return JSON.stringify(
313
+ AccountingCreditmemo$outboundSchema.parse(accountingCreditmemo),
314
+ );
315
+ }
316
+
317
+ export function accountingCreditmemoFromJSON(
318
+ jsonString: string,
319
+ ): SafeParseResult<AccountingCreditmemo, SDKValidationError> {
320
+ return safeParse(
321
+ jsonString,
322
+ (x) => AccountingCreditmemo$inboundSchema.parse(JSON.parse(x)),
323
+ `Failed to parse 'AccountingCreditmemo' from JSON`,
324
+ );
325
+ }
@@ -25,11 +25,13 @@ import {
25
25
  AccountingLineitem$outboundSchema,
26
26
  } from "./accountinglineitem.js";
27
27
 
28
- export const PaymentCollectionMethod = {
28
+ export const AccountingInvoicePaymentCollectionMethod = {
29
29
  SendInvoice: "send_invoice",
30
30
  ChargeAutomatically: "charge_automatically",
31
31
  } as const;
32
- export type PaymentCollectionMethod = OpenEnum<typeof PaymentCollectionMethod>;
32
+ export type AccountingInvoicePaymentCollectionMethod = OpenEnum<
33
+ typeof AccountingInvoicePaymentCollectionMethod
34
+ >;
33
35
 
34
36
  export const AccountingInvoiceStatus = {
35
37
  Draft: "DRAFT",
@@ -65,7 +67,9 @@ export type AccountingInvoice = {
65
67
  notes?: string | undefined;
66
68
  paidAmount?: number | undefined;
67
69
  paidAt?: Date | undefined;
68
- paymentCollectionMethod?: PaymentCollectionMethod | undefined;
70
+ paymentCollectionMethod?:
71
+ | AccountingInvoicePaymentCollectionMethod
72
+ | undefined;
69
73
  postedAt?: Date | undefined;
70
74
  raw?: { [k: string]: any } | undefined;
71
75
  refundAmount?: number | undefined;
@@ -81,23 +85,23 @@ export type AccountingInvoice = {
81
85
  };
82
86
 
83
87
  /** @internal */
84
- export const PaymentCollectionMethod$inboundSchema: z.ZodType<
85
- PaymentCollectionMethod,
88
+ export const AccountingInvoicePaymentCollectionMethod$inboundSchema: z.ZodType<
89
+ AccountingInvoicePaymentCollectionMethod,
86
90
  z.ZodTypeDef,
87
91
  unknown
88
92
  > = z
89
93
  .union([
90
- z.nativeEnum(PaymentCollectionMethod),
94
+ z.nativeEnum(AccountingInvoicePaymentCollectionMethod),
91
95
  z.string().transform(catchUnrecognizedEnum),
92
96
  ]);
93
97
 
94
98
  /** @internal */
95
- export const PaymentCollectionMethod$outboundSchema: z.ZodType<
96
- PaymentCollectionMethod,
99
+ export const AccountingInvoicePaymentCollectionMethod$outboundSchema: z.ZodType<
100
+ AccountingInvoicePaymentCollectionMethod,
97
101
  z.ZodTypeDef,
98
- PaymentCollectionMethod
102
+ AccountingInvoicePaymentCollectionMethod
99
103
  > = z.union([
100
- z.nativeEnum(PaymentCollectionMethod),
104
+ z.nativeEnum(AccountingInvoicePaymentCollectionMethod),
101
105
  z.string().and(z.custom<Unrecognized<string>>()),
102
106
  ]);
103
107
 
@@ -105,11 +109,13 @@ export const PaymentCollectionMethod$outboundSchema: z.ZodType<
105
109
  * @internal
106
110
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
111
  */
108
- export namespace PaymentCollectionMethod$ {
109
- /** @deprecated use `PaymentCollectionMethod$inboundSchema` instead. */
110
- export const inboundSchema = PaymentCollectionMethod$inboundSchema;
111
- /** @deprecated use `PaymentCollectionMethod$outboundSchema` instead. */
112
- export const outboundSchema = PaymentCollectionMethod$outboundSchema;
112
+ export namespace AccountingInvoicePaymentCollectionMethod$ {
113
+ /** @deprecated use `AccountingInvoicePaymentCollectionMethod$inboundSchema` instead. */
114
+ export const inboundSchema =
115
+ AccountingInvoicePaymentCollectionMethod$inboundSchema;
116
+ /** @deprecated use `AccountingInvoicePaymentCollectionMethod$outboundSchema` instead. */
117
+ export const outboundSchema =
118
+ AccountingInvoicePaymentCollectionMethod$outboundSchema;
113
119
  }
114
120
 
115
121
  /** @internal */
@@ -203,7 +209,8 @@ export const AccountingInvoice$inboundSchema: z.ZodType<
203
209
  paid_amount: z.number().optional(),
204
210
  paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
205
211
  .optional(),
206
- payment_collection_method: PaymentCollectionMethod$inboundSchema.optional(),
212
+ payment_collection_method:
213
+ AccountingInvoicePaymentCollectionMethod$inboundSchema.optional(),
207
214
  posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
208
215
  .optional(),
209
216
  raw: z.record(z.any()).optional(),
@@ -295,7 +302,8 @@ export const AccountingInvoice$outboundSchema: z.ZodType<
295
302
  notes: z.string().optional(),
296
303
  paidAmount: z.number().optional(),
297
304
  paidAt: z.date().transform(v => v.toISOString()).optional(),
298
- paymentCollectionMethod: PaymentCollectionMethod$outboundSchema.optional(),
305
+ paymentCollectionMethod:
306
+ AccountingInvoicePaymentCollectionMethod$outboundSchema.optional(),
299
307
  postedAt: z.date().transform(v => v.toISOString()).optional(),
300
308
  raw: z.record(z.any()).optional(),
301
309
  refundAmount: z.number().optional(),
@@ -0,0 +1,213 @@
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
+ AccountingProfitlossCategory,
12
+ AccountingProfitlossCategory$inboundSchema,
13
+ AccountingProfitlossCategory$Outbound,
14
+ AccountingProfitlossCategory$outboundSchema,
15
+ } from "./accountingprofitlosscategory.js";
16
+ import {
17
+ AccountingProfitlossSection,
18
+ AccountingProfitlossSection$inboundSchema,
19
+ AccountingProfitlossSection$Outbound,
20
+ AccountingProfitlossSection$outboundSchema,
21
+ } from "./accountingprofitlosssection.js";
22
+
23
+ export type AccountingProfitloss = {
24
+ /**
25
+ * @deprecated
26
+ */
27
+ costOfGoodsSold?: Array<AccountingProfitlossCategory> | undefined;
28
+ costOfGoodsSoldSections?: Array<AccountingProfitlossSection> | undefined;
29
+ costOfGoodsSoldTotalAmount?: number | undefined;
30
+ createdAt?: Date | undefined;
31
+ currency?: string | undefined;
32
+ endAt?: Date | undefined;
33
+ /**
34
+ * @deprecated
35
+ */
36
+ expenses?: Array<AccountingProfitlossCategory> | undefined;
37
+ expensesSections?: Array<AccountingProfitlossSection> | undefined;
38
+ expensesTotalAmount?: number | undefined;
39
+ grossProfitAmount?: number | undefined;
40
+ id?: string | undefined;
41
+ /**
42
+ * @deprecated
43
+ */
44
+ income?: Array<AccountingProfitlossCategory> | undefined;
45
+ incomeSections?: Array<AccountingProfitlossSection> | undefined;
46
+ incomeTotalAmount?: number | undefined;
47
+ name?: string | undefined;
48
+ netIncomeAmount?: number | undefined;
49
+ netProfitAmount?: number | undefined;
50
+ raw?: { [k: string]: any } | undefined;
51
+ startAt?: Date | undefined;
52
+ updatedAt?: Date | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const AccountingProfitloss$inboundSchema: z.ZodType<
57
+ AccountingProfitloss,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({
61
+ cost_of_goods_sold: z.array(AccountingProfitlossCategory$inboundSchema)
62
+ .optional(),
63
+ cost_of_goods_sold_sections: z.array(
64
+ AccountingProfitlossSection$inboundSchema,
65
+ ).optional(),
66
+ cost_of_goods_sold_total_amount: z.number().optional(),
67
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
68
+ .optional(),
69
+ currency: z.string().optional(),
70
+ end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
71
+ .optional(),
72
+ expenses: z.array(AccountingProfitlossCategory$inboundSchema).optional(),
73
+ expenses_sections: z.array(AccountingProfitlossSection$inboundSchema)
74
+ .optional(),
75
+ expenses_total_amount: z.number().optional(),
76
+ gross_profit_amount: z.number().optional(),
77
+ id: z.string().optional(),
78
+ income: z.array(AccountingProfitlossCategory$inboundSchema).optional(),
79
+ income_sections: z.array(AccountingProfitlossSection$inboundSchema)
80
+ .optional(),
81
+ income_total_amount: z.number().optional(),
82
+ name: z.string().optional(),
83
+ net_income_amount: z.number().optional(),
84
+ net_profit_amount: z.number().optional(),
85
+ raw: z.record(z.any()).optional(),
86
+ start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
87
+ .optional(),
88
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
89
+ .optional(),
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ "cost_of_goods_sold": "costOfGoodsSold",
93
+ "cost_of_goods_sold_sections": "costOfGoodsSoldSections",
94
+ "cost_of_goods_sold_total_amount": "costOfGoodsSoldTotalAmount",
95
+ "created_at": "createdAt",
96
+ "end_at": "endAt",
97
+ "expenses_sections": "expensesSections",
98
+ "expenses_total_amount": "expensesTotalAmount",
99
+ "gross_profit_amount": "grossProfitAmount",
100
+ "income_sections": "incomeSections",
101
+ "income_total_amount": "incomeTotalAmount",
102
+ "net_income_amount": "netIncomeAmount",
103
+ "net_profit_amount": "netProfitAmount",
104
+ "start_at": "startAt",
105
+ "updated_at": "updatedAt",
106
+ });
107
+ });
108
+
109
+ /** @internal */
110
+ export type AccountingProfitloss$Outbound = {
111
+ cost_of_goods_sold?: Array<AccountingProfitlossCategory$Outbound> | undefined;
112
+ cost_of_goods_sold_sections?:
113
+ | Array<AccountingProfitlossSection$Outbound>
114
+ | undefined;
115
+ cost_of_goods_sold_total_amount?: number | undefined;
116
+ created_at?: string | undefined;
117
+ currency?: string | undefined;
118
+ end_at?: string | undefined;
119
+ expenses?: Array<AccountingProfitlossCategory$Outbound> | undefined;
120
+ expenses_sections?: Array<AccountingProfitlossSection$Outbound> | undefined;
121
+ expenses_total_amount?: number | undefined;
122
+ gross_profit_amount?: number | undefined;
123
+ id?: string | undefined;
124
+ income?: Array<AccountingProfitlossCategory$Outbound> | undefined;
125
+ income_sections?: Array<AccountingProfitlossSection$Outbound> | undefined;
126
+ income_total_amount?: number | undefined;
127
+ name?: string | undefined;
128
+ net_income_amount?: number | undefined;
129
+ net_profit_amount?: number | undefined;
130
+ raw?: { [k: string]: any } | undefined;
131
+ start_at?: string | undefined;
132
+ updated_at?: string | undefined;
133
+ };
134
+
135
+ /** @internal */
136
+ export const AccountingProfitloss$outboundSchema: z.ZodType<
137
+ AccountingProfitloss$Outbound,
138
+ z.ZodTypeDef,
139
+ AccountingProfitloss
140
+ > = z.object({
141
+ costOfGoodsSold: z.array(AccountingProfitlossCategory$outboundSchema)
142
+ .optional(),
143
+ costOfGoodsSoldSections: z.array(AccountingProfitlossSection$outboundSchema)
144
+ .optional(),
145
+ costOfGoodsSoldTotalAmount: z.number().optional(),
146
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
147
+ currency: z.string().optional(),
148
+ endAt: z.date().transform(v => v.toISOString()).optional(),
149
+ expenses: z.array(AccountingProfitlossCategory$outboundSchema).optional(),
150
+ expensesSections: z.array(AccountingProfitlossSection$outboundSchema)
151
+ .optional(),
152
+ expensesTotalAmount: z.number().optional(),
153
+ grossProfitAmount: z.number().optional(),
154
+ id: z.string().optional(),
155
+ income: z.array(AccountingProfitlossCategory$outboundSchema).optional(),
156
+ incomeSections: z.array(AccountingProfitlossSection$outboundSchema)
157
+ .optional(),
158
+ incomeTotalAmount: z.number().optional(),
159
+ name: z.string().optional(),
160
+ netIncomeAmount: z.number().optional(),
161
+ netProfitAmount: z.number().optional(),
162
+ raw: z.record(z.any()).optional(),
163
+ startAt: z.date().transform(v => v.toISOString()).optional(),
164
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
165
+ }).transform((v) => {
166
+ return remap$(v, {
167
+ costOfGoodsSold: "cost_of_goods_sold",
168
+ costOfGoodsSoldSections: "cost_of_goods_sold_sections",
169
+ costOfGoodsSoldTotalAmount: "cost_of_goods_sold_total_amount",
170
+ createdAt: "created_at",
171
+ endAt: "end_at",
172
+ expensesSections: "expenses_sections",
173
+ expensesTotalAmount: "expenses_total_amount",
174
+ grossProfitAmount: "gross_profit_amount",
175
+ incomeSections: "income_sections",
176
+ incomeTotalAmount: "income_total_amount",
177
+ netIncomeAmount: "net_income_amount",
178
+ netProfitAmount: "net_profit_amount",
179
+ startAt: "start_at",
180
+ updatedAt: "updated_at",
181
+ });
182
+ });
183
+
184
+ /**
185
+ * @internal
186
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
187
+ */
188
+ export namespace AccountingProfitloss$ {
189
+ /** @deprecated use `AccountingProfitloss$inboundSchema` instead. */
190
+ export const inboundSchema = AccountingProfitloss$inboundSchema;
191
+ /** @deprecated use `AccountingProfitloss$outboundSchema` instead. */
192
+ export const outboundSchema = AccountingProfitloss$outboundSchema;
193
+ /** @deprecated use `AccountingProfitloss$Outbound` instead. */
194
+ export type Outbound = AccountingProfitloss$Outbound;
195
+ }
196
+
197
+ export function accountingProfitlossToJSON(
198
+ accountingProfitloss: AccountingProfitloss,
199
+ ): string {
200
+ return JSON.stringify(
201
+ AccountingProfitloss$outboundSchema.parse(accountingProfitloss),
202
+ );
203
+ }
204
+
205
+ export function accountingProfitlossFromJSON(
206
+ jsonString: string,
207
+ ): SafeParseResult<AccountingProfitloss, SDKValidationError> {
208
+ return safeParse(
209
+ jsonString,
210
+ (x) => AccountingProfitloss$inboundSchema.parse(JSON.parse(x)),
211
+ `Failed to parse 'AccountingProfitloss' from JSON`,
212
+ );
213
+ }