@unified-api/typescript-sdk 2.85.37 → 2.85.38

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 (350) hide show
  1. package/README.md +12 -0
  2. package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.d.ts +15 -0
  3. package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.js +125 -0
  5. package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.js.map +1 -0
  6. package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.d.ts +15 -0
  7. package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.js +126 -0
  9. package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.js.map +1 -0
  10. package/dist/commonjs/funcs/accountingListAccountingPaymentterms.d.ts +15 -0
  11. package/dist/commonjs/funcs/accountingListAccountingPaymentterms.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/accountingListAccountingPaymentterms.js +131 -0
  13. package/dist/commonjs/funcs/accountingListAccountingPaymentterms.js.map +1 -0
  14. package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.d.ts +15 -0
  15. package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.js +129 -0
  17. package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.js.map +1 -0
  18. package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.d.ts +14 -0
  19. package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.js +123 -0
  21. package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.js.map +1 -0
  22. package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.d.ts +15 -0
  23. package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.js +129 -0
  25. package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.js.map +1 -0
  26. package/dist/commonjs/lib/config.d.ts +2 -2
  27. package/dist/commonjs/lib/config.js +2 -2
  28. package/dist/commonjs/sdk/accounting.d.ts +24 -0
  29. package/dist/commonjs/sdk/accounting.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/accounting.js +42 -0
  31. package/dist/commonjs/sdk/accounting.js.map +1 -1
  32. package/dist/commonjs/sdk/models/operations/createaccountingbill.d.ts +1 -0
  33. package/dist/commonjs/sdk/models/operations/createaccountingbill.d.ts.map +1 -1
  34. package/dist/commonjs/sdk/models/operations/createaccountingbill.js +1 -0
  35. package/dist/commonjs/sdk/models/operations/createaccountingbill.js.map +1 -1
  36. package/dist/commonjs/sdk/models/operations/createaccountingcontact.d.ts +1 -0
  37. package/dist/commonjs/sdk/models/operations/createaccountingcontact.d.ts.map +1 -1
  38. package/dist/commonjs/sdk/models/operations/createaccountingcontact.js +1 -0
  39. package/dist/commonjs/sdk/models/operations/createaccountingcontact.js.map +1 -1
  40. package/dist/commonjs/sdk/models/operations/createaccountinginvoice.d.ts +1 -0
  41. package/dist/commonjs/sdk/models/operations/createaccountinginvoice.d.ts.map +1 -1
  42. package/dist/commonjs/sdk/models/operations/createaccountinginvoice.js +1 -0
  43. package/dist/commonjs/sdk/models/operations/createaccountinginvoice.js.map +1 -1
  44. package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.d.ts +51 -0
  45. package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.d.ts.map +1 -0
  46. package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.js +82 -0
  47. package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.js.map +1 -0
  48. package/dist/commonjs/sdk/models/operations/getaccountingbill.d.ts +1 -0
  49. package/dist/commonjs/sdk/models/operations/getaccountingbill.d.ts.map +1 -1
  50. package/dist/commonjs/sdk/models/operations/getaccountingbill.js +1 -0
  51. package/dist/commonjs/sdk/models/operations/getaccountingbill.js.map +1 -1
  52. package/dist/commonjs/sdk/models/operations/getaccountingcontact.d.ts +1 -0
  53. package/dist/commonjs/sdk/models/operations/getaccountingcontact.d.ts.map +1 -1
  54. package/dist/commonjs/sdk/models/operations/getaccountingcontact.js +1 -0
  55. package/dist/commonjs/sdk/models/operations/getaccountingcontact.js.map +1 -1
  56. package/dist/commonjs/sdk/models/operations/getaccountinginvoice.d.ts +1 -0
  57. package/dist/commonjs/sdk/models/operations/getaccountinginvoice.d.ts.map +1 -1
  58. package/dist/commonjs/sdk/models/operations/getaccountinginvoice.js +1 -0
  59. package/dist/commonjs/sdk/models/operations/getaccountinginvoice.js.map +1 -1
  60. package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.d.ts +53 -0
  61. package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.d.ts.map +1 -0
  62. package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.js +80 -0
  63. package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.js.map +1 -0
  64. package/dist/commonjs/sdk/models/operations/index.d.ts +6 -0
  65. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  66. package/dist/commonjs/sdk/models/operations/index.js +6 -0
  67. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  68. package/dist/commonjs/sdk/models/operations/listaccountingbills.d.ts +1 -0
  69. package/dist/commonjs/sdk/models/operations/listaccountingbills.d.ts.map +1 -1
  70. package/dist/commonjs/sdk/models/operations/listaccountingbills.js +1 -0
  71. package/dist/commonjs/sdk/models/operations/listaccountingbills.js.map +1 -1
  72. package/dist/commonjs/sdk/models/operations/listaccountingcontacts.d.ts +1 -0
  73. package/dist/commonjs/sdk/models/operations/listaccountingcontacts.d.ts.map +1 -1
  74. package/dist/commonjs/sdk/models/operations/listaccountingcontacts.js +1 -0
  75. package/dist/commonjs/sdk/models/operations/listaccountingcontacts.js.map +1 -1
  76. package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts +1 -0
  77. package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
  78. package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js +1 -0
  79. package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js.map +1 -1
  80. package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.d.ts +73 -0
  81. package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.d.ts.map +1 -0
  82. package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.js +89 -0
  83. package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.js.map +1 -0
  84. package/dist/commonjs/sdk/models/operations/patchaccountingbill.d.ts +1 -0
  85. package/dist/commonjs/sdk/models/operations/patchaccountingbill.d.ts.map +1 -1
  86. package/dist/commonjs/sdk/models/operations/patchaccountingbill.js +1 -0
  87. package/dist/commonjs/sdk/models/operations/patchaccountingbill.js.map +1 -1
  88. package/dist/commonjs/sdk/models/operations/patchaccountingcontact.d.ts +1 -0
  89. package/dist/commonjs/sdk/models/operations/patchaccountingcontact.d.ts.map +1 -1
  90. package/dist/commonjs/sdk/models/operations/patchaccountingcontact.js +1 -0
  91. package/dist/commonjs/sdk/models/operations/patchaccountingcontact.js.map +1 -1
  92. package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.d.ts +1 -0
  93. package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.d.ts.map +1 -1
  94. package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.js +1 -0
  95. package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.js.map +1 -1
  96. package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.d.ts +56 -0
  97. package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.d.ts.map +1 -0
  98. package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.js +83 -0
  99. package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.js.map +1 -0
  100. package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.d.ts +30 -0
  101. package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.d.ts.map +1 -0
  102. package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.js +68 -0
  103. package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.js.map +1 -0
  104. package/dist/commonjs/sdk/models/operations/updateaccountingbill.d.ts +1 -0
  105. package/dist/commonjs/sdk/models/operations/updateaccountingbill.d.ts.map +1 -1
  106. package/dist/commonjs/sdk/models/operations/updateaccountingbill.js +1 -0
  107. package/dist/commonjs/sdk/models/operations/updateaccountingbill.js.map +1 -1
  108. package/dist/commonjs/sdk/models/operations/updateaccountingcontact.d.ts +1 -0
  109. package/dist/commonjs/sdk/models/operations/updateaccountingcontact.d.ts.map +1 -1
  110. package/dist/commonjs/sdk/models/operations/updateaccountingcontact.js +1 -0
  111. package/dist/commonjs/sdk/models/operations/updateaccountingcontact.js.map +1 -1
  112. package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.d.ts +1 -0
  113. package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.d.ts.map +1 -1
  114. package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.js +1 -0
  115. package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.js.map +1 -1
  116. package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.d.ts +56 -0
  117. package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.d.ts.map +1 -0
  118. package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.js +83 -0
  119. package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.js.map +1 -0
  120. package/dist/commonjs/sdk/models/shared/accountingbill.d.ts +2 -0
  121. package/dist/commonjs/sdk/models/shared/accountingbill.d.ts.map +1 -1
  122. package/dist/commonjs/sdk/models/shared/accountingbill.js +4 -0
  123. package/dist/commonjs/sdk/models/shared/accountingbill.js.map +1 -1
  124. package/dist/commonjs/sdk/models/shared/accountingcontact.d.ts +2 -0
  125. package/dist/commonjs/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  126. package/dist/commonjs/sdk/models/shared/accountingcontact.js +4 -0
  127. package/dist/commonjs/sdk/models/shared/accountingcontact.js.map +1 -1
  128. package/dist/commonjs/sdk/models/shared/accountinginvoice.d.ts +2 -0
  129. package/dist/commonjs/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  130. package/dist/commonjs/sdk/models/shared/accountinginvoice.js +4 -0
  131. package/dist/commonjs/sdk/models/shared/accountinginvoice.js.map +1 -1
  132. package/dist/commonjs/sdk/models/shared/accountingpaymentterm.d.ts +83 -0
  133. package/dist/commonjs/sdk/models/shared/accountingpaymentterm.d.ts.map +1 -0
  134. package/dist/commonjs/sdk/models/shared/accountingpaymentterm.js +147 -0
  135. package/dist/commonjs/sdk/models/shared/accountingpaymentterm.js.map +1 -0
  136. package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
  137. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  138. package/dist/commonjs/sdk/models/shared/index.js +1 -0
  139. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  140. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  141. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  142. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  143. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  144. package/dist/commonjs/sdk/models/shared/webhook.d.ts +1 -0
  145. package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
  146. package/dist/commonjs/sdk/models/shared/webhook.js +1 -0
  147. package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
  148. package/dist/commonjs/sdk/paymentterm.d.ts +30 -0
  149. package/dist/commonjs/sdk/paymentterm.d.ts.map +1 -0
  150. package/dist/commonjs/sdk/paymentterm.js +54 -0
  151. package/dist/commonjs/sdk/paymentterm.js.map +1 -0
  152. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  153. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  154. package/dist/commonjs/sdk/sdk.js +4 -0
  155. package/dist/commonjs/sdk/sdk.js.map +1 -1
  156. package/dist/esm/funcs/accountingCreateAccountingPaymentterm.d.ts +15 -0
  157. package/dist/esm/funcs/accountingCreateAccountingPaymentterm.d.ts.map +1 -0
  158. package/dist/esm/funcs/accountingCreateAccountingPaymentterm.js +89 -0
  159. package/dist/esm/funcs/accountingCreateAccountingPaymentterm.js.map +1 -0
  160. package/dist/esm/funcs/accountingGetAccountingPaymentterm.d.ts +15 -0
  161. package/dist/esm/funcs/accountingGetAccountingPaymentterm.d.ts.map +1 -0
  162. package/dist/esm/funcs/accountingGetAccountingPaymentterm.js +90 -0
  163. package/dist/esm/funcs/accountingGetAccountingPaymentterm.js.map +1 -0
  164. package/dist/esm/funcs/accountingListAccountingPaymentterms.d.ts +15 -0
  165. package/dist/esm/funcs/accountingListAccountingPaymentterms.d.ts.map +1 -0
  166. package/dist/esm/funcs/accountingListAccountingPaymentterms.js +95 -0
  167. package/dist/esm/funcs/accountingListAccountingPaymentterms.js.map +1 -0
  168. package/dist/esm/funcs/accountingPatchAccountingPaymentterm.d.ts +15 -0
  169. package/dist/esm/funcs/accountingPatchAccountingPaymentterm.d.ts.map +1 -0
  170. package/dist/esm/funcs/accountingPatchAccountingPaymentterm.js +93 -0
  171. package/dist/esm/funcs/accountingPatchAccountingPaymentterm.js.map +1 -0
  172. package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.d.ts +14 -0
  173. package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.d.ts.map +1 -0
  174. package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.js +87 -0
  175. package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.js.map +1 -0
  176. package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.d.ts +15 -0
  177. package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.d.ts.map +1 -0
  178. package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.js +93 -0
  179. package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.js.map +1 -0
  180. package/dist/esm/lib/config.d.ts +2 -2
  181. package/dist/esm/lib/config.js +2 -2
  182. package/dist/esm/sdk/accounting.d.ts +24 -0
  183. package/dist/esm/sdk/accounting.d.ts.map +1 -1
  184. package/dist/esm/sdk/accounting.js +42 -0
  185. package/dist/esm/sdk/accounting.js.map +1 -1
  186. package/dist/esm/sdk/models/operations/createaccountingbill.d.ts +1 -0
  187. package/dist/esm/sdk/models/operations/createaccountingbill.d.ts.map +1 -1
  188. package/dist/esm/sdk/models/operations/createaccountingbill.js +1 -0
  189. package/dist/esm/sdk/models/operations/createaccountingbill.js.map +1 -1
  190. package/dist/esm/sdk/models/operations/createaccountingcontact.d.ts +1 -0
  191. package/dist/esm/sdk/models/operations/createaccountingcontact.d.ts.map +1 -1
  192. package/dist/esm/sdk/models/operations/createaccountingcontact.js +1 -0
  193. package/dist/esm/sdk/models/operations/createaccountingcontact.js.map +1 -1
  194. package/dist/esm/sdk/models/operations/createaccountinginvoice.d.ts +1 -0
  195. package/dist/esm/sdk/models/operations/createaccountinginvoice.d.ts.map +1 -1
  196. package/dist/esm/sdk/models/operations/createaccountinginvoice.js +1 -0
  197. package/dist/esm/sdk/models/operations/createaccountinginvoice.js.map +1 -1
  198. package/dist/esm/sdk/models/operations/createaccountingpaymentterm.d.ts +51 -0
  199. package/dist/esm/sdk/models/operations/createaccountingpaymentterm.d.ts.map +1 -0
  200. package/dist/esm/sdk/models/operations/createaccountingpaymentterm.js +45 -0
  201. package/dist/esm/sdk/models/operations/createaccountingpaymentterm.js.map +1 -0
  202. package/dist/esm/sdk/models/operations/getaccountingbill.d.ts +1 -0
  203. package/dist/esm/sdk/models/operations/getaccountingbill.d.ts.map +1 -1
  204. package/dist/esm/sdk/models/operations/getaccountingbill.js +1 -0
  205. package/dist/esm/sdk/models/operations/getaccountingbill.js.map +1 -1
  206. package/dist/esm/sdk/models/operations/getaccountingcontact.d.ts +1 -0
  207. package/dist/esm/sdk/models/operations/getaccountingcontact.d.ts.map +1 -1
  208. package/dist/esm/sdk/models/operations/getaccountingcontact.js +1 -0
  209. package/dist/esm/sdk/models/operations/getaccountingcontact.js.map +1 -1
  210. package/dist/esm/sdk/models/operations/getaccountinginvoice.d.ts +1 -0
  211. package/dist/esm/sdk/models/operations/getaccountinginvoice.d.ts.map +1 -1
  212. package/dist/esm/sdk/models/operations/getaccountinginvoice.js +1 -0
  213. package/dist/esm/sdk/models/operations/getaccountinginvoice.js.map +1 -1
  214. package/dist/esm/sdk/models/operations/getaccountingpaymentterm.d.ts +53 -0
  215. package/dist/esm/sdk/models/operations/getaccountingpaymentterm.d.ts.map +1 -0
  216. package/dist/esm/sdk/models/operations/getaccountingpaymentterm.js +43 -0
  217. package/dist/esm/sdk/models/operations/getaccountingpaymentterm.js.map +1 -0
  218. package/dist/esm/sdk/models/operations/index.d.ts +6 -0
  219. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  220. package/dist/esm/sdk/models/operations/index.js +6 -0
  221. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  222. package/dist/esm/sdk/models/operations/listaccountingbills.d.ts +1 -0
  223. package/dist/esm/sdk/models/operations/listaccountingbills.d.ts.map +1 -1
  224. package/dist/esm/sdk/models/operations/listaccountingbills.js +1 -0
  225. package/dist/esm/sdk/models/operations/listaccountingbills.js.map +1 -1
  226. package/dist/esm/sdk/models/operations/listaccountingcontacts.d.ts +1 -0
  227. package/dist/esm/sdk/models/operations/listaccountingcontacts.d.ts.map +1 -1
  228. package/dist/esm/sdk/models/operations/listaccountingcontacts.js +1 -0
  229. package/dist/esm/sdk/models/operations/listaccountingcontacts.js.map +1 -1
  230. package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts +1 -0
  231. package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
  232. package/dist/esm/sdk/models/operations/listaccountinginvoices.js +1 -0
  233. package/dist/esm/sdk/models/operations/listaccountinginvoices.js.map +1 -1
  234. package/dist/esm/sdk/models/operations/listaccountingpaymentterms.d.ts +73 -0
  235. package/dist/esm/sdk/models/operations/listaccountingpaymentterms.d.ts.map +1 -0
  236. package/dist/esm/sdk/models/operations/listaccountingpaymentterms.js +52 -0
  237. package/dist/esm/sdk/models/operations/listaccountingpaymentterms.js.map +1 -0
  238. package/dist/esm/sdk/models/operations/patchaccountingbill.d.ts +1 -0
  239. package/dist/esm/sdk/models/operations/patchaccountingbill.d.ts.map +1 -1
  240. package/dist/esm/sdk/models/operations/patchaccountingbill.js +1 -0
  241. package/dist/esm/sdk/models/operations/patchaccountingbill.js.map +1 -1
  242. package/dist/esm/sdk/models/operations/patchaccountingcontact.d.ts +1 -0
  243. package/dist/esm/sdk/models/operations/patchaccountingcontact.d.ts.map +1 -1
  244. package/dist/esm/sdk/models/operations/patchaccountingcontact.js +1 -0
  245. package/dist/esm/sdk/models/operations/patchaccountingcontact.js.map +1 -1
  246. package/dist/esm/sdk/models/operations/patchaccountinginvoice.d.ts +1 -0
  247. package/dist/esm/sdk/models/operations/patchaccountinginvoice.d.ts.map +1 -1
  248. package/dist/esm/sdk/models/operations/patchaccountinginvoice.js +1 -0
  249. package/dist/esm/sdk/models/operations/patchaccountinginvoice.js.map +1 -1
  250. package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.d.ts +56 -0
  251. package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.d.ts.map +1 -0
  252. package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.js +46 -0
  253. package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.js.map +1 -0
  254. package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.d.ts +30 -0
  255. package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.d.ts.map +1 -0
  256. package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.js +30 -0
  257. package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.js.map +1 -0
  258. package/dist/esm/sdk/models/operations/updateaccountingbill.d.ts +1 -0
  259. package/dist/esm/sdk/models/operations/updateaccountingbill.d.ts.map +1 -1
  260. package/dist/esm/sdk/models/operations/updateaccountingbill.js +1 -0
  261. package/dist/esm/sdk/models/operations/updateaccountingbill.js.map +1 -1
  262. package/dist/esm/sdk/models/operations/updateaccountingcontact.d.ts +1 -0
  263. package/dist/esm/sdk/models/operations/updateaccountingcontact.d.ts.map +1 -1
  264. package/dist/esm/sdk/models/operations/updateaccountingcontact.js +1 -0
  265. package/dist/esm/sdk/models/operations/updateaccountingcontact.js.map +1 -1
  266. package/dist/esm/sdk/models/operations/updateaccountinginvoice.d.ts +1 -0
  267. package/dist/esm/sdk/models/operations/updateaccountinginvoice.d.ts.map +1 -1
  268. package/dist/esm/sdk/models/operations/updateaccountinginvoice.js +1 -0
  269. package/dist/esm/sdk/models/operations/updateaccountinginvoice.js.map +1 -1
  270. package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.d.ts +56 -0
  271. package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.d.ts.map +1 -0
  272. package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.js +46 -0
  273. package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.js.map +1 -0
  274. package/dist/esm/sdk/models/shared/accountingbill.d.ts +2 -0
  275. package/dist/esm/sdk/models/shared/accountingbill.d.ts.map +1 -1
  276. package/dist/esm/sdk/models/shared/accountingbill.js +4 -0
  277. package/dist/esm/sdk/models/shared/accountingbill.js.map +1 -1
  278. package/dist/esm/sdk/models/shared/accountingcontact.d.ts +2 -0
  279. package/dist/esm/sdk/models/shared/accountingcontact.d.ts.map +1 -1
  280. package/dist/esm/sdk/models/shared/accountingcontact.js +4 -0
  281. package/dist/esm/sdk/models/shared/accountingcontact.js.map +1 -1
  282. package/dist/esm/sdk/models/shared/accountinginvoice.d.ts +2 -0
  283. package/dist/esm/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  284. package/dist/esm/sdk/models/shared/accountinginvoice.js +4 -0
  285. package/dist/esm/sdk/models/shared/accountinginvoice.js.map +1 -1
  286. package/dist/esm/sdk/models/shared/accountingpaymentterm.d.ts +83 -0
  287. package/dist/esm/sdk/models/shared/accountingpaymentterm.d.ts.map +1 -0
  288. package/dist/esm/sdk/models/shared/accountingpaymentterm.js +109 -0
  289. package/dist/esm/sdk/models/shared/accountingpaymentterm.js.map +1 -0
  290. package/dist/esm/sdk/models/shared/index.d.ts +1 -0
  291. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  292. package/dist/esm/sdk/models/shared/index.js +1 -0
  293. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  294. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  295. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  296. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  297. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  298. package/dist/esm/sdk/models/shared/webhook.d.ts +1 -0
  299. package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
  300. package/dist/esm/sdk/models/shared/webhook.js +1 -0
  301. package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
  302. package/dist/esm/sdk/paymentterm.d.ts +30 -0
  303. package/dist/esm/sdk/paymentterm.d.ts.map +1 -0
  304. package/dist/esm/sdk/paymentterm.js +50 -0
  305. package/dist/esm/sdk/paymentterm.js.map +1 -0
  306. package/dist/esm/sdk/sdk.d.ts +3 -0
  307. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  308. package/dist/esm/sdk/sdk.js +4 -0
  309. package/dist/esm/sdk/sdk.js.map +1 -1
  310. package/jsr.json +1 -1
  311. package/package.json +1 -1
  312. package/src/funcs/accountingCreateAccountingPaymentterm.ts +176 -0
  313. package/src/funcs/accountingGetAccountingPaymentterm.ts +177 -0
  314. package/src/funcs/accountingListAccountingPaymentterms.ts +182 -0
  315. package/src/funcs/accountingPatchAccountingPaymentterm.ts +180 -0
  316. package/src/funcs/accountingRemoveAccountingPaymentterm.ts +182 -0
  317. package/src/funcs/accountingUpdateAccountingPaymentterm.ts +180 -0
  318. package/src/lib/config.ts +2 -2
  319. package/src/sdk/accounting.ts +90 -0
  320. package/src/sdk/models/operations/createaccountingbill.ts +1 -0
  321. package/src/sdk/models/operations/createaccountingcontact.ts +1 -0
  322. package/src/sdk/models/operations/createaccountinginvoice.ts +1 -0
  323. package/src/sdk/models/operations/createaccountingpaymentterm.ts +88 -0
  324. package/src/sdk/models/operations/getaccountingbill.ts +1 -0
  325. package/src/sdk/models/operations/getaccountingcontact.ts +1 -0
  326. package/src/sdk/models/operations/getaccountinginvoice.ts +1 -0
  327. package/src/sdk/models/operations/getaccountingpaymentterm.ts +89 -0
  328. package/src/sdk/models/operations/index.ts +6 -0
  329. package/src/sdk/models/operations/listaccountingbills.ts +1 -0
  330. package/src/sdk/models/operations/listaccountingcontacts.ts +1 -0
  331. package/src/sdk/models/operations/listaccountinginvoices.ts +1 -0
  332. package/src/sdk/models/operations/listaccountingpaymentterms.ts +118 -0
  333. package/src/sdk/models/operations/patchaccountingbill.ts +1 -0
  334. package/src/sdk/models/operations/patchaccountingcontact.ts +1 -0
  335. package/src/sdk/models/operations/patchaccountinginvoice.ts +1 -0
  336. package/src/sdk/models/operations/patchaccountingpaymentterm.ts +94 -0
  337. package/src/sdk/models/operations/removeaccountingpaymentterm.ts +78 -0
  338. package/src/sdk/models/operations/updateaccountingbill.ts +1 -0
  339. package/src/sdk/models/operations/updateaccountingcontact.ts +1 -0
  340. package/src/sdk/models/operations/updateaccountinginvoice.ts +1 -0
  341. package/src/sdk/models/operations/updateaccountingpaymentterm.ts +94 -0
  342. package/src/sdk/models/shared/accountingbill.ts +6 -0
  343. package/src/sdk/models/shared/accountingcontact.ts +6 -0
  344. package/src/sdk/models/shared/accountinginvoice.ts +6 -0
  345. package/src/sdk/models/shared/accountingpaymentterm.ts +202 -0
  346. package/src/sdk/models/shared/index.ts +1 -0
  347. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  348. package/src/sdk/models/shared/webhook.ts +1 -0
  349. package/src/sdk/paymentterm.ts +100 -0
  350. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,182 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import { APICall, APIPromise } from "../sdk/types/async.js";
26
+ import { Result } from "../sdk/types/fp.js";
27
+
28
+ /**
29
+ * Remove a paymentterm
30
+ */
31
+ export function accountingRemoveAccountingPaymentterm(
32
+ client: UnifiedToCore,
33
+ request: operations.RemoveAccountingPaymenttermRequest,
34
+ options?: RequestOptions,
35
+ ): APIPromise<
36
+ Result<
37
+ operations.RemoveAccountingPaymenttermResponse | undefined,
38
+ | UnifiedToError
39
+ | ResponseValidationError
40
+ | ConnectionError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | InvalidRequestError
44
+ | UnexpectedClientError
45
+ | SDKValidationError
46
+ >
47
+ > {
48
+ return new APIPromise($do(
49
+ client,
50
+ request,
51
+ options,
52
+ ));
53
+ }
54
+
55
+ async function $do(
56
+ client: UnifiedToCore,
57
+ request: operations.RemoveAccountingPaymenttermRequest,
58
+ options?: RequestOptions,
59
+ ): Promise<
60
+ [
61
+ Result<
62
+ operations.RemoveAccountingPaymenttermResponse | undefined,
63
+ | UnifiedToError
64
+ | ResponseValidationError
65
+ | ConnectionError
66
+ | RequestAbortedError
67
+ | RequestTimeoutError
68
+ | InvalidRequestError
69
+ | UnexpectedClientError
70
+ | SDKValidationError
71
+ >,
72
+ APICall,
73
+ ]
74
+ > {
75
+ const parsed = safeParse(
76
+ request,
77
+ (value) =>
78
+ operations.RemoveAccountingPaymenttermRequest$outboundSchema.parse(value),
79
+ "Input validation failed",
80
+ );
81
+ if (!parsed.ok) {
82
+ return [parsed, { status: "invalid" }];
83
+ }
84
+ const payload = parsed.value;
85
+ const body = null;
86
+
87
+ const pathParams = {
88
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
89
+ explode: false,
90
+ charEncoding: "percent",
91
+ }),
92
+ id: encodeSimple("id", payload.id, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+ const path = pathToFunc("/accounting/{connection_id}/paymentterm/{id}")(
98
+ pathParams,
99
+ );
100
+
101
+ const headers = new Headers(compactMap({
102
+ Accept: "*/*",
103
+ }));
104
+
105
+ const securityInput = await extractSecurity(client._options.security);
106
+ const requestSecurity = resolveGlobalSecurity(securityInput);
107
+
108
+ const context = {
109
+ options: client._options,
110
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
111
+ operationID: "removeAccountingPaymentterm",
112
+ oAuth2Scopes: null,
113
+
114
+ resolvedSecurity: requestSecurity,
115
+
116
+ securitySource: client._options.security,
117
+ retryConfig: options?.retries
118
+ || client._options.retryConfig
119
+ || { strategy: "none" },
120
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
121
+ };
122
+
123
+ const requestRes = client._createRequest(context, {
124
+ security: requestSecurity,
125
+ method: "DELETE",
126
+ baseURL: options?.serverURL,
127
+ path: path,
128
+ headers: headers,
129
+ body: body,
130
+ userAgent: client._options.userAgent,
131
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
132
+ }, options);
133
+ if (!requestRes.ok) {
134
+ return [requestRes, { status: "invalid" }];
135
+ }
136
+ const req = requestRes.value;
137
+
138
+ const doResult = await client._do(req, {
139
+ context,
140
+ isErrorStatusCode: (statusCode: number) =>
141
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
142
+ retryConfig: context.retryConfig,
143
+ retryCodes: context.retryCodes,
144
+ });
145
+ if (!doResult.ok) {
146
+ return [doResult, { status: "request-error", request: req }];
147
+ }
148
+ const response = doResult.value;
149
+
150
+ const responseFields = {
151
+ HttpMeta: { Response: response, Request: req },
152
+ };
153
+
154
+ const [result] = await M.match<
155
+ operations.RemoveAccountingPaymenttermResponse | undefined,
156
+ | UnifiedToError
157
+ | ResponseValidationError
158
+ | ConnectionError
159
+ | RequestAbortedError
160
+ | RequestTimeoutError
161
+ | InvalidRequestError
162
+ | UnexpectedClientError
163
+ | SDKValidationError
164
+ >(
165
+ M.nil(
166
+ 200,
167
+ operations.RemoveAccountingPaymenttermResponse$inboundSchema.optional(),
168
+ ),
169
+ M.fail("4XX"),
170
+ M.fail("5XX"),
171
+ M.nil(
172
+ "default",
173
+ operations.RemoveAccountingPaymenttermResponse$inboundSchema.optional(),
174
+ { hdrs: true },
175
+ ),
176
+ )(response, req, { extraFields: responseFields });
177
+ if (!result.ok) {
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
180
+
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Update a paymentterm
31
+ */
32
+ export function accountingUpdateAccountingPaymentterm(
33
+ client: UnifiedToCore,
34
+ request: operations.UpdateAccountingPaymenttermRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ shared.AccountingPaymentterm,
39
+ | UnifiedToError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError
47
+ >
48
+ > {
49
+ return new APIPromise($do(
50
+ client,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: UnifiedToCore,
58
+ request: operations.UpdateAccountingPaymenttermRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ shared.AccountingPaymentterm,
64
+ | UnifiedToError
65
+ | ResponseValidationError
66
+ | ConnectionError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | InvalidRequestError
70
+ | UnexpectedClientError
71
+ | SDKValidationError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed = safeParse(
77
+ request,
78
+ (value) =>
79
+ operations.UpdateAccountingPaymenttermRequest$outboundSchema.parse(value),
80
+ "Input validation failed",
81
+ );
82
+ if (!parsed.ok) {
83
+ return [parsed, { status: "invalid" }];
84
+ }
85
+ const payload = parsed.value;
86
+ const body = encodeJSON("body", payload.AccountingPaymentterm, {
87
+ explode: true,
88
+ });
89
+
90
+ const pathParams = {
91
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ id: encodeSimple("id", payload.id, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ };
100
+ const path = pathToFunc("/accounting/{connection_id}/paymentterm/{id}")(
101
+ pathParams,
102
+ );
103
+
104
+ const query = encodeFormQuery({
105
+ "fields": payload.fields,
106
+ "raw": payload.raw,
107
+ });
108
+
109
+ const headers = new Headers(compactMap({
110
+ "Content-Type": "application/json",
111
+ Accept: "application/json",
112
+ }));
113
+
114
+ const securityInput = await extractSecurity(client._options.security);
115
+ const requestSecurity = resolveGlobalSecurity(securityInput);
116
+
117
+ const context = {
118
+ options: client._options,
119
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
120
+ operationID: "updateAccountingPaymentterm",
121
+ oAuth2Scopes: null,
122
+
123
+ resolvedSecurity: requestSecurity,
124
+
125
+ securitySource: client._options.security,
126
+ retryConfig: options?.retries
127
+ || client._options.retryConfig
128
+ || { strategy: "none" },
129
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
130
+ };
131
+
132
+ const requestRes = client._createRequest(context, {
133
+ security: requestSecurity,
134
+ method: "PUT",
135
+ baseURL: options?.serverURL,
136
+ path: path,
137
+ headers: headers,
138
+ query: query,
139
+ body: body,
140
+ userAgent: client._options.userAgent,
141
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
142
+ }, options);
143
+ if (!requestRes.ok) {
144
+ return [requestRes, { status: "invalid" }];
145
+ }
146
+ const req = requestRes.value;
147
+
148
+ const doResult = await client._do(req, {
149
+ context,
150
+ isErrorStatusCode: (statusCode: number) =>
151
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
152
+ retryConfig: context.retryConfig,
153
+ retryCodes: context.retryCodes,
154
+ });
155
+ if (!doResult.ok) {
156
+ return [doResult, { status: "request-error", request: req }];
157
+ }
158
+ const response = doResult.value;
159
+
160
+ const [result] = await M.match<
161
+ shared.AccountingPaymentterm,
162
+ | UnifiedToError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.json(200, shared.AccountingPaymentterm$inboundSchema),
172
+ M.fail("4XX"),
173
+ M.fail("5XX"),
174
+ )(response, req);
175
+ if (!result.ok) {
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
178
+
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "1.0",
76
- sdkVersion: "2.85.37",
76
+ sdkVersion: "2.85.38",
77
77
  genVersion: "2.932.9",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 2.85.37 2.932.9 1.0 @unified-api/typescript-sdk",
79
+ "speakeasy-sdk/typescript 2.85.38 2.932.9 1.0 @unified-api/typescript-sdk",
80
80
  } as const;
@@ -13,6 +13,7 @@ import { accountingCreateAccountingExpense } from "../funcs/accountingCreateAcco
13
13
  import { accountingCreateAccountingInvoice } from "../funcs/accountingCreateAccountingInvoice.js";
14
14
  import { accountingCreateAccountingJournal } from "../funcs/accountingCreateAccountingJournal.js";
15
15
  import { accountingCreateAccountingOrder } from "../funcs/accountingCreateAccountingOrder.js";
16
+ import { accountingCreateAccountingPaymentterm } from "../funcs/accountingCreateAccountingPaymentterm.js";
16
17
  import { accountingCreateAccountingProject } from "../funcs/accountingCreateAccountingProject.js";
17
18
  import { accountingCreateAccountingPurchaseorder } from "../funcs/accountingCreateAccountingPurchaseorder.js";
18
19
  import { accountingCreateAccountingQuote } from "../funcs/accountingCreateAccountingQuote.js";
@@ -36,6 +37,7 @@ import { accountingGetAccountingInvoice } from "../funcs/accountingGetAccounting
36
37
  import { accountingGetAccountingJournal } from "../funcs/accountingGetAccountingJournal.js";
37
38
  import { accountingGetAccountingOrder } from "../funcs/accountingGetAccountingOrder.js";
38
39
  import { accountingGetAccountingOrganization } from "../funcs/accountingGetAccountingOrganization.js";
40
+ import { accountingGetAccountingPaymentterm } from "../funcs/accountingGetAccountingPaymentterm.js";
39
41
  import { accountingGetAccountingProfitloss } from "../funcs/accountingGetAccountingProfitloss.js";
40
42
  import { accountingGetAccountingProject } from "../funcs/accountingGetAccountingProject.js";
41
43
  import { accountingGetAccountingPurchaseorder } from "../funcs/accountingGetAccountingPurchaseorder.js";
@@ -62,6 +64,7 @@ import { accountingListAccountingInvoices } from "../funcs/accountingListAccount
62
64
  import { accountingListAccountingJournals } from "../funcs/accountingListAccountingJournals.js";
63
65
  import { accountingListAccountingOrders } from "../funcs/accountingListAccountingOrders.js";
64
66
  import { accountingListAccountingOrganizations } from "../funcs/accountingListAccountingOrganizations.js";
67
+ import { accountingListAccountingPaymentterms } from "../funcs/accountingListAccountingPaymentterms.js";
65
68
  import { accountingListAccountingProfitlosses } from "../funcs/accountingListAccountingProfitlosses.js";
66
69
  import { accountingListAccountingProjects } from "../funcs/accountingListAccountingProjects.js";
67
70
  import { accountingListAccountingPurchaseorders } from "../funcs/accountingListAccountingPurchaseorders.js";
@@ -83,6 +86,7 @@ import { accountingPatchAccountingExpense } from "../funcs/accountingPatchAccoun
83
86
  import { accountingPatchAccountingInvoice } from "../funcs/accountingPatchAccountingInvoice.js";
84
87
  import { accountingPatchAccountingJournal } from "../funcs/accountingPatchAccountingJournal.js";
85
88
  import { accountingPatchAccountingOrder } from "../funcs/accountingPatchAccountingOrder.js";
89
+ import { accountingPatchAccountingPaymentterm } from "../funcs/accountingPatchAccountingPaymentterm.js";
86
90
  import { accountingPatchAccountingProject } from "../funcs/accountingPatchAccountingProject.js";
87
91
  import { accountingPatchAccountingPurchaseorder } from "../funcs/accountingPatchAccountingPurchaseorder.js";
88
92
  import { accountingPatchAccountingQuote } from "../funcs/accountingPatchAccountingQuote.js";
@@ -101,6 +105,7 @@ import { accountingRemoveAccountingExpense } from "../funcs/accountingRemoveAcco
101
105
  import { accountingRemoveAccountingInvoice } from "../funcs/accountingRemoveAccountingInvoice.js";
102
106
  import { accountingRemoveAccountingJournal } from "../funcs/accountingRemoveAccountingJournal.js";
103
107
  import { accountingRemoveAccountingOrder } from "../funcs/accountingRemoveAccountingOrder.js";
108
+ import { accountingRemoveAccountingPaymentterm } from "../funcs/accountingRemoveAccountingPaymentterm.js";
104
109
  import { accountingRemoveAccountingProject } from "../funcs/accountingRemoveAccountingProject.js";
105
110
  import { accountingRemoveAccountingPurchaseorder } from "../funcs/accountingRemoveAccountingPurchaseorder.js";
106
111
  import { accountingRemoveAccountingQuote } from "../funcs/accountingRemoveAccountingQuote.js";
@@ -119,6 +124,7 @@ import { accountingUpdateAccountingExpense } from "../funcs/accountingUpdateAcco
119
124
  import { accountingUpdateAccountingInvoice } from "../funcs/accountingUpdateAccountingInvoice.js";
120
125
  import { accountingUpdateAccountingJournal } from "../funcs/accountingUpdateAccountingJournal.js";
121
126
  import { accountingUpdateAccountingOrder } from "../funcs/accountingUpdateAccountingOrder.js";
127
+ import { accountingUpdateAccountingPaymentterm } from "../funcs/accountingUpdateAccountingPaymentterm.js";
122
128
  import { accountingUpdateAccountingProject } from "../funcs/accountingUpdateAccountingProject.js";
123
129
  import { accountingUpdateAccountingPurchaseorder } from "../funcs/accountingUpdateAccountingPurchaseorder.js";
124
130
  import { accountingUpdateAccountingQuote } from "../funcs/accountingUpdateAccountingQuote.js";
@@ -286,6 +292,20 @@ export class Accounting extends ClientSDK {
286
292
  ));
287
293
  }
288
294
 
295
+ /**
296
+ * Create a paymentterm
297
+ */
298
+ async createAccountingPaymentterm(
299
+ request: operations.CreateAccountingPaymenttermRequest,
300
+ options?: RequestOptions,
301
+ ): Promise<shared.AccountingPaymentterm> {
302
+ return unwrapAsync(accountingCreateAccountingPaymentterm(
303
+ this,
304
+ request,
305
+ options,
306
+ ));
307
+ }
308
+
289
309
  /**
290
310
  * Create a project
291
311
  */
@@ -608,6 +628,20 @@ export class Accounting extends ClientSDK {
608
628
  ));
609
629
  }
610
630
 
631
+ /**
632
+ * Retrieve a paymentterm
633
+ */
634
+ async getAccountingPaymentterm(
635
+ request: operations.GetAccountingPaymenttermRequest,
636
+ options?: RequestOptions,
637
+ ): Promise<shared.AccountingPaymentterm> {
638
+ return unwrapAsync(accountingGetAccountingPaymentterm(
639
+ this,
640
+ request,
641
+ options,
642
+ ));
643
+ }
644
+
611
645
  /**
612
646
  * Retrieve a profitloss
613
647
  */
@@ -972,6 +1006,20 @@ export class Accounting extends ClientSDK {
972
1006
  ));
973
1007
  }
974
1008
 
1009
+ /**
1010
+ * List all paymentterms
1011
+ */
1012
+ async listAccountingPaymentterms(
1013
+ request: operations.ListAccountingPaymenttermsRequest,
1014
+ options?: RequestOptions,
1015
+ ): Promise<Array<shared.AccountingPaymentterm>> {
1016
+ return unwrapAsync(accountingListAccountingPaymentterms(
1017
+ this,
1018
+ request,
1019
+ options,
1020
+ ));
1021
+ }
1022
+
975
1023
  /**
976
1024
  * List all profitlosses
977
1025
  */
@@ -1266,6 +1314,20 @@ export class Accounting extends ClientSDK {
1266
1314
  ));
1267
1315
  }
1268
1316
 
1317
+ /**
1318
+ * Update a paymentterm
1319
+ */
1320
+ async patchAccountingPaymentterm(
1321
+ request: operations.PatchAccountingPaymenttermRequest,
1322
+ options?: RequestOptions,
1323
+ ): Promise<shared.AccountingPaymentterm> {
1324
+ return unwrapAsync(accountingPatchAccountingPaymentterm(
1325
+ this,
1326
+ request,
1327
+ options,
1328
+ ));
1329
+ }
1330
+
1269
1331
  /**
1270
1332
  * Update a project
1271
1333
  */
@@ -1520,6 +1582,20 @@ export class Accounting extends ClientSDK {
1520
1582
  ));
1521
1583
  }
1522
1584
 
1585
+ /**
1586
+ * Remove a paymentterm
1587
+ */
1588
+ async removeAccountingPaymentterm(
1589
+ request: operations.RemoveAccountingPaymenttermRequest,
1590
+ options?: RequestOptions,
1591
+ ): Promise<operations.RemoveAccountingPaymenttermResponse | undefined> {
1592
+ return unwrapAsync(accountingRemoveAccountingPaymentterm(
1593
+ this,
1594
+ request,
1595
+ options,
1596
+ ));
1597
+ }
1598
+
1523
1599
  /**
1524
1600
  * Remove a project
1525
1601
  */
@@ -1772,6 +1848,20 @@ export class Accounting extends ClientSDK {
1772
1848
  ));
1773
1849
  }
1774
1850
 
1851
+ /**
1852
+ * Update a paymentterm
1853
+ */
1854
+ async updateAccountingPaymentterm(
1855
+ request: operations.UpdateAccountingPaymenttermRequest,
1856
+ options?: RequestOptions,
1857
+ ): Promise<shared.AccountingPaymentterm> {
1858
+ return unwrapAsync(accountingUpdateAccountingPaymentterm(
1859
+ this,
1860
+ request,
1861
+ options,
1862
+ ));
1863
+ }
1864
+
1775
1865
  /**
1776
1866
  * Update a project
1777
1867
  */
@@ -36,6 +36,7 @@ export const CreateAccountingBillQueryParamFields = {
36
36
  OrganizationId: "organization_id",
37
37
  Term: "term",
38
38
  PaymentTerms: "payment_terms",
39
+ PaymenttermId: "paymentterm_id",
39
40
  Payments: "payments",
40
41
  CategoryIds: "category_ids",
41
42
  ProjectId: "project_id",
@@ -31,6 +31,7 @@ export const CreateAccountingContactQueryParamFields = {
31
31
  AssociatedContacts: "associated_contacts",
32
32
  OrganizationId: "organization_id",
33
33
  PaymentTerms: "payment_terms",
34
+ PaymenttermId: "paymentterm_id",
34
35
  Raw: "raw",
35
36
  } as const;
36
37
  export type CreateAccountingContactQueryParamFields = ClosedEnum<
@@ -30,6 +30,7 @@ export const CreateAccountingInvoiceQueryParamFields = {
30
30
  RefundReason: "refund_reason",
31
31
  Term: "term",
32
32
  PaymentTerms: "payment_terms",
33
+ PaymenttermId: "paymentterm_id",
33
34
  Lineitems: "lineitems",
34
35
  Status: "status",
35
36
  Url: "url",
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import * as shared from "../shared/index.js";
9
+
10
+ export const CreateAccountingPaymenttermQueryParamFields = {
11
+ Id: "id",
12
+ CreatedAt: "created_at",
13
+ UpdatedAt: "updated_at",
14
+ Name: "name",
15
+ Description: "description",
16
+ Type: "type",
17
+ Category: "category",
18
+ IsActive: "is_active",
19
+ DueDays: "due_days",
20
+ DiscountDays: "discount_days",
21
+ DiscountPercent: "discount_percent",
22
+ DayOfMonthDue: "day_of_month_due",
23
+ DiscountDayOfMonth: "discount_day_of_month",
24
+ DueNextMonthDays: "due_next_month_days",
25
+ OrganizationId: "organization_id",
26
+ Metadata: "metadata",
27
+ Raw: "raw",
28
+ } as const;
29
+ export type CreateAccountingPaymenttermQueryParamFields = ClosedEnum<
30
+ typeof CreateAccountingPaymenttermQueryParamFields
31
+ >;
32
+
33
+ export type CreateAccountingPaymenttermRequest = {
34
+ accountingPaymentterm: shared.AccountingPaymentterm;
35
+ /**
36
+ * ID of the connection
37
+ */
38
+ connectionId: string;
39
+ /**
40
+ * Fields to return
41
+ */
42
+ fields?: Array<CreateAccountingPaymenttermQueryParamFields> | undefined;
43
+ /**
44
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
45
+ */
46
+ raw?: string | undefined;
47
+ };
48
+
49
+ /** @internal */
50
+ export const CreateAccountingPaymenttermQueryParamFields$outboundSchema:
51
+ z.ZodNativeEnum<typeof CreateAccountingPaymenttermQueryParamFields> = z
52
+ .nativeEnum(CreateAccountingPaymenttermQueryParamFields);
53
+
54
+ /** @internal */
55
+ export type CreateAccountingPaymenttermRequest$Outbound = {
56
+ AccountingPaymentterm: shared.AccountingPaymentterm$Outbound;
57
+ connection_id: string;
58
+ fields?: Array<string> | undefined;
59
+ raw?: string | undefined;
60
+ };
61
+
62
+ /** @internal */
63
+ export const CreateAccountingPaymenttermRequest$outboundSchema: z.ZodType<
64
+ CreateAccountingPaymenttermRequest$Outbound,
65
+ z.ZodTypeDef,
66
+ CreateAccountingPaymenttermRequest
67
+ > = z.object({
68
+ accountingPaymentterm: shared.AccountingPaymentterm$outboundSchema,
69
+ connectionId: z.string(),
70
+ fields: z.array(CreateAccountingPaymenttermQueryParamFields$outboundSchema)
71
+ .optional(),
72
+ raw: z.string().optional(),
73
+ }).transform((v) => {
74
+ return remap$(v, {
75
+ accountingPaymentterm: "AccountingPaymentterm",
76
+ connectionId: "connection_id",
77
+ });
78
+ });
79
+
80
+ export function createAccountingPaymenttermRequestToJSON(
81
+ createAccountingPaymenttermRequest: CreateAccountingPaymenttermRequest,
82
+ ): string {
83
+ return JSON.stringify(
84
+ CreateAccountingPaymenttermRequest$outboundSchema.parse(
85
+ createAccountingPaymenttermRequest,
86
+ ),
87
+ );
88
+ }
@@ -35,6 +35,7 @@ export const GetAccountingBillQueryParamFields = {
35
35
  OrganizationId: "organization_id",
36
36
  Term: "term",
37
37
  PaymentTerms: "payment_terms",
38
+ PaymenttermId: "paymentterm_id",
38
39
  Payments: "payments",
39
40
  CategoryIds: "category_ids",
40
41
  ProjectId: "project_id",
@@ -30,6 +30,7 @@ export const GetAccountingContactQueryParamFields = {
30
30
  AssociatedContacts: "associated_contacts",
31
31
  OrganizationId: "organization_id",
32
32
  PaymentTerms: "payment_terms",
33
+ PaymenttermId: "paymentterm_id",
33
34
  Raw: "raw",
34
35
  } as const;
35
36
  export type GetAccountingContactQueryParamFields = ClosedEnum<
@@ -29,6 +29,7 @@ export const GetAccountingInvoiceQueryParamFields = {
29
29
  RefundReason: "refund_reason",
30
30
  Term: "term",
31
31
  PaymentTerms: "payment_terms",
32
+ PaymenttermId: "paymentterm_id",
32
33
  Lineitems: "lineitems",
33
34
  Status: "status",
34
35
  Url: "url",