@goodsamsoftware/freshbooks-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (647) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +357 -0
  3. package/dist/auth/config.d.ts +57 -0
  4. package/dist/auth/config.d.ts.map +1 -0
  5. package/dist/auth/config.js +118 -0
  6. package/dist/auth/config.js.map +1 -0
  7. package/dist/auth/index.d.ts +47 -0
  8. package/dist/auth/index.d.ts.map +1 -0
  9. package/dist/auth/index.js +46 -0
  10. package/dist/auth/index.js.map +1 -0
  11. package/dist/auth/oauth.d.ts +93 -0
  12. package/dist/auth/oauth.d.ts.map +1 -0
  13. package/dist/auth/oauth.js +279 -0
  14. package/dist/auth/oauth.js.map +1 -0
  15. package/dist/auth/token-store.d.ts +80 -0
  16. package/dist/auth/token-store.d.ts.map +1 -0
  17. package/dist/auth/token-store.js +204 -0
  18. package/dist/auth/token-store.js.map +1 -0
  19. package/dist/auth/types.d.ts +76 -0
  20. package/dist/auth/types.d.ts.map +1 -0
  21. package/dist/auth/types.js +20 -0
  22. package/dist/auth/types.js.map +1 -0
  23. package/dist/client/freshbooks-client.d.ts +99 -0
  24. package/dist/client/freshbooks-client.d.ts.map +1 -0
  25. package/dist/client/freshbooks-client.js +283 -0
  26. package/dist/client/freshbooks-client.js.map +1 -0
  27. package/dist/client/index.d.ts +5 -0
  28. package/dist/client/index.d.ts.map +1 -0
  29. package/dist/client/index.js +5 -0
  30. package/dist/client/index.js.map +1 -0
  31. package/dist/config/index.d.ts +17 -0
  32. package/dist/config/index.d.ts.map +1 -0
  33. package/dist/config/index.js +81 -0
  34. package/dist/config/index.js.map +1 -0
  35. package/dist/errors/documentation.d.ts +57 -0
  36. package/dist/errors/documentation.d.ts.map +1 -0
  37. package/dist/errors/documentation.js +390 -0
  38. package/dist/errors/documentation.js.map +1 -0
  39. package/dist/errors/error-codes.d.ts +45 -0
  40. package/dist/errors/error-codes.d.ts.map +1 -0
  41. package/dist/errors/error-codes.js +94 -0
  42. package/dist/errors/error-codes.js.map +1 -0
  43. package/dist/errors/error-handler.d.ts +127 -0
  44. package/dist/errors/error-handler.d.ts.map +1 -0
  45. package/dist/errors/error-handler.js +283 -0
  46. package/dist/errors/error-handler.js.map +1 -0
  47. package/dist/errors/error-mapper.d.ts +68 -0
  48. package/dist/errors/error-mapper.d.ts.map +1 -0
  49. package/dist/errors/error-mapper.js +449 -0
  50. package/dist/errors/error-mapper.js.map +1 -0
  51. package/dist/errors/index.d.ts +37 -0
  52. package/dist/errors/index.d.ts.map +1 -0
  53. package/dist/errors/index.js +41 -0
  54. package/dist/errors/index.js.map +1 -0
  55. package/dist/errors/response-formatter.d.ts +109 -0
  56. package/dist/errors/response-formatter.d.ts.map +1 -0
  57. package/dist/errors/response-formatter.js +232 -0
  58. package/dist/errors/response-formatter.js.map +1 -0
  59. package/dist/errors/types.d.ts +194 -0
  60. package/dist/errors/types.d.ts.map +1 -0
  61. package/dist/errors/types.js +134 -0
  62. package/dist/errors/types.js.map +1 -0
  63. package/dist/server.d.ts +10 -0
  64. package/dist/server.d.ts.map +1 -0
  65. package/dist/server.js +263 -0
  66. package/dist/server.js.map +1 -0
  67. package/dist/tools/base-tool.d.ts +146 -0
  68. package/dist/tools/base-tool.d.ts.map +1 -0
  69. package/dist/tools/base-tool.js +161 -0
  70. package/dist/tools/base-tool.js.map +1 -0
  71. package/dist/tools/bill/bill-archive.d.ts +40 -0
  72. package/dist/tools/bill/bill-archive.d.ts.map +1 -0
  73. package/dist/tools/bill/bill-archive.js +68 -0
  74. package/dist/tools/bill/bill-archive.js.map +1 -0
  75. package/dist/tools/bill/bill-create.d.ts +178 -0
  76. package/dist/tools/bill/bill-create.d.ts.map +1 -0
  77. package/dist/tools/bill/bill-create.js +70 -0
  78. package/dist/tools/bill/bill-create.js.map +1 -0
  79. package/dist/tools/bill/bill-delete.d.ts +40 -0
  80. package/dist/tools/bill/bill-delete.d.ts.map +1 -0
  81. package/dist/tools/bill/bill-delete.js +67 -0
  82. package/dist/tools/bill/bill-delete.js.map +1 -0
  83. package/dist/tools/bill/bill-list.d.ts +249 -0
  84. package/dist/tools/bill/bill-list.d.ts.map +1 -0
  85. package/dist/tools/bill/bill-list.js +114 -0
  86. package/dist/tools/bill/bill-list.js.map +1 -0
  87. package/dist/tools/bill/bill-single.d.ts +142 -0
  88. package/dist/tools/bill/bill-single.d.ts.map +1 -0
  89. package/dist/tools/bill/bill-single.js +62 -0
  90. package/dist/tools/bill/bill-single.js.map +1 -0
  91. package/dist/tools/bill/index.d.ts +11 -0
  92. package/dist/tools/bill/index.d.ts.map +1 -0
  93. package/dist/tools/bill/index.js +13 -0
  94. package/dist/tools/bill/index.js.map +1 -0
  95. package/dist/tools/bill/schemas.d.ts +609 -0
  96. package/dist/tools/bill/schemas.d.ts.map +1 -0
  97. package/dist/tools/bill/schemas.js +124 -0
  98. package/dist/tools/bill/schemas.js.map +1 -0
  99. package/dist/tools/bill-payment/billpayment-create.d.ts +103 -0
  100. package/dist/tools/bill-payment/billpayment-create.d.ts.map +1 -0
  101. package/dist/tools/bill-payment/billpayment-create.js +67 -0
  102. package/dist/tools/bill-payment/billpayment-create.js.map +1 -0
  103. package/dist/tools/bill-payment/billpayment-delete.d.ts +40 -0
  104. package/dist/tools/bill-payment/billpayment-delete.d.ts.map +1 -0
  105. package/dist/tools/bill-payment/billpayment-delete.js +67 -0
  106. package/dist/tools/bill-payment/billpayment-delete.js.map +1 -0
  107. package/dist/tools/bill-payment/billpayment-list.d.ts +148 -0
  108. package/dist/tools/bill-payment/billpayment-list.d.ts.map +1 -0
  109. package/dist/tools/bill-payment/billpayment-list.js +111 -0
  110. package/dist/tools/bill-payment/billpayment-list.js.map +1 -0
  111. package/dist/tools/bill-payment/billpayment-single.d.ts +76 -0
  112. package/dist/tools/bill-payment/billpayment-single.d.ts.map +1 -0
  113. package/dist/tools/bill-payment/billpayment-single.js +62 -0
  114. package/dist/tools/bill-payment/billpayment-single.js.map +1 -0
  115. package/dist/tools/bill-payment/billpayment-update.d.ts +103 -0
  116. package/dist/tools/bill-payment/billpayment-update.d.ts.map +1 -0
  117. package/dist/tools/bill-payment/billpayment-update.js +67 -0
  118. package/dist/tools/bill-payment/billpayment-update.js.map +1 -0
  119. package/dist/tools/bill-payment/index.d.ts +11 -0
  120. package/dist/tools/bill-payment/index.d.ts.map +1 -0
  121. package/dist/tools/bill-payment/index.js +13 -0
  122. package/dist/tools/bill-payment/index.js.map +1 -0
  123. package/dist/tools/bill-payment/schemas.d.ts +381 -0
  124. package/dist/tools/bill-payment/schemas.d.ts.map +1 -0
  125. package/dist/tools/bill-payment/schemas.js +113 -0
  126. package/dist/tools/bill-payment/schemas.js.map +1 -0
  127. package/dist/tools/bill-vendor/billvendor-create.d.ts +139 -0
  128. package/dist/tools/bill-vendor/billvendor-create.d.ts.map +1 -0
  129. package/dist/tools/bill-vendor/billvendor-create.js +72 -0
  130. package/dist/tools/bill-vendor/billvendor-create.js.map +1 -0
  131. package/dist/tools/bill-vendor/billvendor-delete.d.ts +40 -0
  132. package/dist/tools/bill-vendor/billvendor-delete.d.ts.map +1 -0
  133. package/dist/tools/bill-vendor/billvendor-delete.js +67 -0
  134. package/dist/tools/bill-vendor/billvendor-delete.js.map +1 -0
  135. package/dist/tools/bill-vendor/billvendor-list.d.ts +179 -0
  136. package/dist/tools/bill-vendor/billvendor-list.d.ts.map +1 -0
  137. package/dist/tools/bill-vendor/billvendor-list.js +109 -0
  138. package/dist/tools/bill-vendor/billvendor-list.js.map +1 -0
  139. package/dist/tools/bill-vendor/billvendor-single.d.ts +94 -0
  140. package/dist/tools/bill-vendor/billvendor-single.d.ts.map +1 -0
  141. package/dist/tools/bill-vendor/billvendor-single.js +62 -0
  142. package/dist/tools/bill-vendor/billvendor-single.js.map +1 -0
  143. package/dist/tools/bill-vendor/billvendor-update.d.ts +142 -0
  144. package/dist/tools/bill-vendor/billvendor-update.d.ts.map +1 -0
  145. package/dist/tools/bill-vendor/billvendor-update.js +72 -0
  146. package/dist/tools/bill-vendor/billvendor-update.js.map +1 -0
  147. package/dist/tools/bill-vendor/index.d.ts +11 -0
  148. package/dist/tools/bill-vendor/index.d.ts.map +1 -0
  149. package/dist/tools/bill-vendor/index.js +13 -0
  150. package/dist/tools/bill-vendor/index.js.map +1 -0
  151. package/dist/tools/bill-vendor/schemas.d.ts +483 -0
  152. package/dist/tools/bill-vendor/schemas.d.ts.map +1 -0
  153. package/dist/tools/bill-vendor/schemas.js +136 -0
  154. package/dist/tools/bill-vendor/schemas.js.map +1 -0
  155. package/dist/tools/callback/callback-create.d.ts +52 -0
  156. package/dist/tools/callback/callback-create.d.ts.map +1 -0
  157. package/dist/tools/callback/callback-create.js +73 -0
  158. package/dist/tools/callback/callback-create.js.map +1 -0
  159. package/dist/tools/callback/callback-delete.d.ts +37 -0
  160. package/dist/tools/callback/callback-delete.d.ts.map +1 -0
  161. package/dist/tools/callback/callback-delete.js +57 -0
  162. package/dist/tools/callback/callback-delete.js.map +1 -0
  163. package/dist/tools/callback/callback-list.d.ts +100 -0
  164. package/dist/tools/callback/callback-list.d.ts.map +1 -0
  165. package/dist/tools/callback/callback-list.js +84 -0
  166. package/dist/tools/callback/callback-list.js.map +1 -0
  167. package/dist/tools/callback/callback-resend-verification.d.ts +49 -0
  168. package/dist/tools/callback/callback-resend-verification.d.ts.map +1 -0
  169. package/dist/tools/callback/callback-resend-verification.js +63 -0
  170. package/dist/tools/callback/callback-resend-verification.js.map +1 -0
  171. package/dist/tools/callback/callback-single.d.ts +49 -0
  172. package/dist/tools/callback/callback-single.d.ts.map +1 -0
  173. package/dist/tools/callback/callback-single.js +53 -0
  174. package/dist/tools/callback/callback-single.js.map +1 -0
  175. package/dist/tools/callback/callback-update.d.ts +55 -0
  176. package/dist/tools/callback/callback-update.d.ts.map +1 -0
  177. package/dist/tools/callback/callback-update.js +62 -0
  178. package/dist/tools/callback/callback-update.js.map +1 -0
  179. package/dist/tools/callback/callback-verify.d.ts +43 -0
  180. package/dist/tools/callback/callback-verify.d.ts.map +1 -0
  181. package/dist/tools/callback/callback-verify.js +69 -0
  182. package/dist/tools/callback/callback-verify.js.map +1 -0
  183. package/dist/tools/callback/index.d.ts +13 -0
  184. package/dist/tools/callback/index.d.ts.map +1 -0
  185. package/dist/tools/callback/index.js +15 -0
  186. package/dist/tools/callback/index.js.map +1 -0
  187. package/dist/tools/callback/schemas.d.ts +284 -0
  188. package/dist/tools/callback/schemas.d.ts.map +1 -0
  189. package/dist/tools/callback/schemas.js +114 -0
  190. package/dist/tools/callback/schemas.js.map +1 -0
  191. package/dist/tools/client/client-create.d.ts +211 -0
  192. package/dist/tools/client/client-create.d.ts.map +1 -0
  193. package/dist/tools/client/client-create.js +147 -0
  194. package/dist/tools/client/client-create.js.map +1 -0
  195. package/dist/tools/client/client-delete.d.ts +40 -0
  196. package/dist/tools/client/client-delete.d.ts.map +1 -0
  197. package/dist/tools/client/client-delete.js +73 -0
  198. package/dist/tools/client/client-delete.js.map +1 -0
  199. package/dist/tools/client/client-list.d.ts +264 -0
  200. package/dist/tools/client/client-list.d.ts.map +1 -0
  201. package/dist/tools/client/client-list.js +131 -0
  202. package/dist/tools/client/client-list.js.map +1 -0
  203. package/dist/tools/client/client-single.d.ts +133 -0
  204. package/dist/tools/client/client-single.d.ts.map +1 -0
  205. package/dist/tools/client/client-single.js +67 -0
  206. package/dist/tools/client/client-single.js.map +1 -0
  207. package/dist/tools/client/client-update.d.ts +217 -0
  208. package/dist/tools/client/client-update.d.ts.map +1 -0
  209. package/dist/tools/client/client-update.js +146 -0
  210. package/dist/tools/client/client-update.js.map +1 -0
  211. package/dist/tools/client/index.d.ts +11 -0
  212. package/dist/tools/client/index.d.ts.map +1 -0
  213. package/dist/tools/client/index.js +13 -0
  214. package/dist/tools/client/index.js.map +1 -0
  215. package/dist/tools/client/schemas.d.ts +759 -0
  216. package/dist/tools/client/schemas.d.ts.map +1 -0
  217. package/dist/tools/client/schemas.js +241 -0
  218. package/dist/tools/client/schemas.js.map +1 -0
  219. package/dist/tools/credit-note/creditnote-create.d.ts +448 -0
  220. package/dist/tools/credit-note/creditnote-create.d.ts.map +1 -0
  221. package/dist/tools/credit-note/creditnote-create.js +88 -0
  222. package/dist/tools/credit-note/creditnote-create.js.map +1 -0
  223. package/dist/tools/credit-note/creditnote-delete.d.ts +37 -0
  224. package/dist/tools/credit-note/creditnote-delete.d.ts.map +1 -0
  225. package/dist/tools/credit-note/creditnote-delete.js +57 -0
  226. package/dist/tools/credit-note/creditnote-delete.js.map +1 -0
  227. package/dist/tools/credit-note/creditnote-list.d.ts +627 -0
  228. package/dist/tools/credit-note/creditnote-list.d.ts.map +1 -0
  229. package/dist/tools/credit-note/creditnote-list.js +106 -0
  230. package/dist/tools/credit-note/creditnote-list.js.map +1 -0
  231. package/dist/tools/credit-note/creditnote-single.d.ts +358 -0
  232. package/dist/tools/credit-note/creditnote-single.d.ts.map +1 -0
  233. package/dist/tools/credit-note/creditnote-single.js +60 -0
  234. package/dist/tools/credit-note/creditnote-single.js.map +1 -0
  235. package/dist/tools/credit-note/creditnote-update.d.ts +442 -0
  236. package/dist/tools/credit-note/creditnote-update.d.ts.map +1 -0
  237. package/dist/tools/credit-note/creditnote-update.js +82 -0
  238. package/dist/tools/credit-note/creditnote-update.js.map +1 -0
  239. package/dist/tools/credit-note/index.d.ts +11 -0
  240. package/dist/tools/credit-note/index.d.ts.map +1 -0
  241. package/dist/tools/credit-note/index.js +13 -0
  242. package/dist/tools/credit-note/index.js.map +1 -0
  243. package/dist/tools/credit-note/schemas.d.ts +1599 -0
  244. package/dist/tools/credit-note/schemas.d.ts.map +1 -0
  245. package/dist/tools/credit-note/schemas.js +196 -0
  246. package/dist/tools/credit-note/schemas.js.map +1 -0
  247. package/dist/tools/expense/expense-create.d.ts +196 -0
  248. package/dist/tools/expense/expense-create.d.ts.map +1 -0
  249. package/dist/tools/expense/expense-create.js +103 -0
  250. package/dist/tools/expense/expense-create.js.map +1 -0
  251. package/dist/tools/expense/expense-delete.d.ts +40 -0
  252. package/dist/tools/expense/expense-delete.d.ts.map +1 -0
  253. package/dist/tools/expense/expense-delete.js +73 -0
  254. package/dist/tools/expense/expense-delete.js.map +1 -0
  255. package/dist/tools/expense/expense-list.d.ts +264 -0
  256. package/dist/tools/expense/expense-list.d.ts.map +1 -0
  257. package/dist/tools/expense/expense-list.js +126 -0
  258. package/dist/tools/expense/expense-list.js.map +1 -0
  259. package/dist/tools/expense/expense-single.d.ts +145 -0
  260. package/dist/tools/expense/expense-single.d.ts.map +1 -0
  261. package/dist/tools/expense/expense-single.js +63 -0
  262. package/dist/tools/expense/expense-single.js.map +1 -0
  263. package/dist/tools/expense/expense-update.d.ts +199 -0
  264. package/dist/tools/expense/expense-update.d.ts.map +1 -0
  265. package/dist/tools/expense/expense-update.js +108 -0
  266. package/dist/tools/expense/expense-update.js.map +1 -0
  267. package/dist/tools/expense/index.d.ts +11 -0
  268. package/dist/tools/expense/index.d.ts.map +1 -0
  269. package/dist/tools/expense/index.js +13 -0
  270. package/dist/tools/expense/index.js.map +1 -0
  271. package/dist/tools/expense/schemas.d.ts +667 -0
  272. package/dist/tools/expense/schemas.d.ts.map +1 -0
  273. package/dist/tools/expense/schemas.js +142 -0
  274. package/dist/tools/expense/schemas.js.map +1 -0
  275. package/dist/tools/expense-category/expensecategory-list.d.ts +113 -0
  276. package/dist/tools/expense-category/expensecategory-list.d.ts.map +1 -0
  277. package/dist/tools/expense-category/expensecategory-list.js +113 -0
  278. package/dist/tools/expense-category/expensecategory-list.js.map +1 -0
  279. package/dist/tools/expense-category/expensecategory-single.d.ts +58 -0
  280. package/dist/tools/expense-category/expensecategory-single.d.ts.map +1 -0
  281. package/dist/tools/expense-category/expensecategory-single.js +66 -0
  282. package/dist/tools/expense-category/expensecategory-single.js.map +1 -0
  283. package/dist/tools/expense-category/index.d.ts +9 -0
  284. package/dist/tools/expense-category/index.d.ts.map +1 -0
  285. package/dist/tools/expense-category/index.js +11 -0
  286. package/dist/tools/expense-category/index.js.map +1 -0
  287. package/dist/tools/expense-category/schemas.d.ts +184 -0
  288. package/dist/tools/expense-category/schemas.d.ts.map +1 -0
  289. package/dist/tools/expense-category/schemas.js +58 -0
  290. package/dist/tools/expense-category/schemas.js.map +1 -0
  291. package/dist/tools/index.d.ts +53 -0
  292. package/dist/tools/index.d.ts.map +1 -0
  293. package/dist/tools/index.js +98 -0
  294. package/dist/tools/index.js.map +1 -0
  295. package/dist/tools/invoice/index.d.ts +12 -0
  296. package/dist/tools/invoice/index.d.ts.map +1 -0
  297. package/dist/tools/invoice/index.js +14 -0
  298. package/dist/tools/invoice/index.js.map +1 -0
  299. package/dist/tools/invoice/invoice-create.d.ts +367 -0
  300. package/dist/tools/invoice/invoice-create.d.ts.map +1 -0
  301. package/dist/tools/invoice/invoice-create.js +115 -0
  302. package/dist/tools/invoice/invoice-create.js.map +1 -0
  303. package/dist/tools/invoice/invoice-delete.d.ts +40 -0
  304. package/dist/tools/invoice/invoice-delete.d.ts.map +1 -0
  305. package/dist/tools/invoice/invoice-delete.js +75 -0
  306. package/dist/tools/invoice/invoice-delete.js.map +1 -0
  307. package/dist/tools/invoice/invoice-list.d.ts +439 -0
  308. package/dist/tools/invoice/invoice-list.d.ts.map +1 -0
  309. package/dist/tools/invoice/invoice-list.js +126 -0
  310. package/dist/tools/invoice/invoice-list.js.map +1 -0
  311. package/dist/tools/invoice/invoice-share-link.d.ts +40 -0
  312. package/dist/tools/invoice/invoice-share-link.d.ts.map +1 -0
  313. package/dist/tools/invoice/invoice-share-link.js +89 -0
  314. package/dist/tools/invoice/invoice-share-link.js.map +1 -0
  315. package/dist/tools/invoice/invoice-single.d.ts +265 -0
  316. package/dist/tools/invoice/invoice-single.d.ts.map +1 -0
  317. package/dist/tools/invoice/invoice-single.js +66 -0
  318. package/dist/tools/invoice/invoice-single.js.map +1 -0
  319. package/dist/tools/invoice/invoice-update.d.ts +373 -0
  320. package/dist/tools/invoice/invoice-update.d.ts.map +1 -0
  321. package/dist/tools/invoice/invoice-update.js +122 -0
  322. package/dist/tools/invoice/invoice-update.js.map +1 -0
  323. package/dist/tools/invoice/schemas.d.ts +1414 -0
  324. package/dist/tools/invoice/schemas.d.ts.map +1 -0
  325. package/dist/tools/invoice/schemas.js +269 -0
  326. package/dist/tools/invoice/schemas.js.map +1 -0
  327. package/dist/tools/item/index.d.ts +10 -0
  328. package/dist/tools/item/index.d.ts.map +1 -0
  329. package/dist/tools/item/index.js +12 -0
  330. package/dist/tools/item/index.js.map +1 -0
  331. package/dist/tools/item/item-create.d.ts +136 -0
  332. package/dist/tools/item/item-create.d.ts.map +1 -0
  333. package/dist/tools/item/item-create.js +71 -0
  334. package/dist/tools/item/item-create.js.map +1 -0
  335. package/dist/tools/item/item-list.d.ts +178 -0
  336. package/dist/tools/item/item-list.d.ts.map +1 -0
  337. package/dist/tools/item/item-list.js +112 -0
  338. package/dist/tools/item/item-list.js.map +1 -0
  339. package/dist/tools/item/item-single.d.ts +94 -0
  340. package/dist/tools/item/item-single.d.ts.map +1 -0
  341. package/dist/tools/item/item-single.js +62 -0
  342. package/dist/tools/item/item-single.js.map +1 -0
  343. package/dist/tools/item/item-update.d.ts +139 -0
  344. package/dist/tools/item/item-update.d.ts.map +1 -0
  345. package/dist/tools/item/item-update.js +74 -0
  346. package/dist/tools/item/item-update.js.map +1 -0
  347. package/dist/tools/item/schemas.d.ts +454 -0
  348. package/dist/tools/item/schemas.d.ts.map +1 -0
  349. package/dist/tools/item/schemas.js +116 -0
  350. package/dist/tools/item/schemas.js.map +1 -0
  351. package/dist/tools/journal-entry/index.d.ts +7 -0
  352. package/dist/tools/journal-entry/index.d.ts.map +1 -0
  353. package/dist/tools/journal-entry/index.js +9 -0
  354. package/dist/tools/journal-entry/index.js.map +1 -0
  355. package/dist/tools/journal-entry/journalentry-create.d.ts +114 -0
  356. package/dist/tools/journal-entry/journalentry-create.d.ts.map +1 -0
  357. package/dist/tools/journal-entry/journalentry-create.js +98 -0
  358. package/dist/tools/journal-entry/journalentry-create.js.map +1 -0
  359. package/dist/tools/journal-entry/schemas.d.ts +182 -0
  360. package/dist/tools/journal-entry/schemas.d.ts.map +1 -0
  361. package/dist/tools/journal-entry/schemas.js +43 -0
  362. package/dist/tools/journal-entry/schemas.js.map +1 -0
  363. package/dist/tools/journal-entry-account/index.d.ts +7 -0
  364. package/dist/tools/journal-entry-account/index.d.ts.map +1 -0
  365. package/dist/tools/journal-entry-account/index.js +9 -0
  366. package/dist/tools/journal-entry-account/index.js.map +1 -0
  367. package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts +190 -0
  368. package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts.map +1 -0
  369. package/dist/tools/journal-entry-account/journalentryaccount-list.js +102 -0
  370. package/dist/tools/journal-entry-account/journalentryaccount-list.js.map +1 -0
  371. package/dist/tools/journal-entry-account/schemas.d.ts +344 -0
  372. package/dist/tools/journal-entry-account/schemas.d.ts.map +1 -0
  373. package/dist/tools/journal-entry-account/schemas.js +65 -0
  374. package/dist/tools/journal-entry-account/schemas.js.map +1 -0
  375. package/dist/tools/metadata.d.ts +49 -0
  376. package/dist/tools/metadata.d.ts.map +1 -0
  377. package/dist/tools/metadata.js +317 -0
  378. package/dist/tools/metadata.js.map +1 -0
  379. package/dist/tools/other-income/index.d.ts +11 -0
  380. package/dist/tools/other-income/index.d.ts.map +1 -0
  381. package/dist/tools/other-income/index.js +13 -0
  382. package/dist/tools/other-income/index.js.map +1 -0
  383. package/dist/tools/other-income/otherincome-create.d.ts +152 -0
  384. package/dist/tools/other-income/otherincome-create.d.ts.map +1 -0
  385. package/dist/tools/other-income/otherincome-create.js +89 -0
  386. package/dist/tools/other-income/otherincome-create.js.map +1 -0
  387. package/dist/tools/other-income/otherincome-delete.d.ts +37 -0
  388. package/dist/tools/other-income/otherincome-delete.d.ts.map +1 -0
  389. package/dist/tools/other-income/otherincome-delete.js +57 -0
  390. package/dist/tools/other-income/otherincome-delete.js.map +1 -0
  391. package/dist/tools/other-income/otherincome-list.d.ts +186 -0
  392. package/dist/tools/other-income/otherincome-list.d.ts.map +1 -0
  393. package/dist/tools/other-income/otherincome-list.js +107 -0
  394. package/dist/tools/other-income/otherincome-list.js.map +1 -0
  395. package/dist/tools/other-income/otherincome-single.d.ts +99 -0
  396. package/dist/tools/other-income/otherincome-single.d.ts.map +1 -0
  397. package/dist/tools/other-income/otherincome-single.js +53 -0
  398. package/dist/tools/other-income/otherincome-single.js.map +1 -0
  399. package/dist/tools/other-income/otherincome-update.d.ts +155 -0
  400. package/dist/tools/other-income/otherincome-update.d.ts.map +1 -0
  401. package/dist/tools/other-income/otherincome-update.js +84 -0
  402. package/dist/tools/other-income/otherincome-update.js.map +1 -0
  403. package/dist/tools/other-income/schemas.d.ts +510 -0
  404. package/dist/tools/other-income/schemas.d.ts.map +1 -0
  405. package/dist/tools/other-income/schemas.js +141 -0
  406. package/dist/tools/other-income/schemas.js.map +1 -0
  407. package/dist/tools/payment/index.d.ts +11 -0
  408. package/dist/tools/payment/index.d.ts.map +1 -0
  409. package/dist/tools/payment/index.js +13 -0
  410. package/dist/tools/payment/index.js.map +1 -0
  411. package/dist/tools/payment/payment-create.d.ts +127 -0
  412. package/dist/tools/payment/payment-create.d.ts.map +1 -0
  413. package/dist/tools/payment/payment-create.js +84 -0
  414. package/dist/tools/payment/payment-create.js.map +1 -0
  415. package/dist/tools/payment/payment-delete.d.ts +40 -0
  416. package/dist/tools/payment/payment-delete.d.ts.map +1 -0
  417. package/dist/tools/payment/payment-delete.js +67 -0
  418. package/dist/tools/payment/payment-delete.js.map +1 -0
  419. package/dist/tools/payment/payment-list.d.ts +186 -0
  420. package/dist/tools/payment/payment-list.d.ts.map +1 -0
  421. package/dist/tools/payment/payment-list.js +113 -0
  422. package/dist/tools/payment/payment-list.js.map +1 -0
  423. package/dist/tools/payment/payment-single.d.ts +97 -0
  424. package/dist/tools/payment/payment-single.d.ts.map +1 -0
  425. package/dist/tools/payment/payment-single.js +62 -0
  426. package/dist/tools/payment/payment-single.js.map +1 -0
  427. package/dist/tools/payment/payment-update.d.ts +124 -0
  428. package/dist/tools/payment/payment-update.d.ts.map +1 -0
  429. package/dist/tools/payment/payment-update.js +79 -0
  430. package/dist/tools/payment/payment-update.js.map +1 -0
  431. package/dist/tools/payment/schemas.d.ts +445 -0
  432. package/dist/tools/payment/schemas.d.ts.map +1 -0
  433. package/dist/tools/payment/schemas.js +126 -0
  434. package/dist/tools/payment/schemas.js.map +1 -0
  435. package/dist/tools/payment-options/index.d.ts +9 -0
  436. package/dist/tools/payment-options/index.d.ts.map +1 -0
  437. package/dist/tools/payment-options/index.js +11 -0
  438. package/dist/tools/payment-options/index.js.map +1 -0
  439. package/dist/tools/payment-options/paymentoptions-create.d.ts +91 -0
  440. package/dist/tools/payment-options/paymentoptions-create.d.ts.map +1 -0
  441. package/dist/tools/payment-options/paymentoptions-create.js +71 -0
  442. package/dist/tools/payment-options/paymentoptions-create.js.map +1 -0
  443. package/dist/tools/payment-options/paymentoptions-default.d.ts +43 -0
  444. package/dist/tools/payment-options/paymentoptions-default.d.ts.map +1 -0
  445. package/dist/tools/payment-options/paymentoptions-default.js +64 -0
  446. package/dist/tools/payment-options/paymentoptions-default.js.map +1 -0
  447. package/dist/tools/payment-options/paymentoptions-single.d.ts +76 -0
  448. package/dist/tools/payment-options/paymentoptions-single.d.ts.map +1 -0
  449. package/dist/tools/payment-options/paymentoptions-single.js +58 -0
  450. package/dist/tools/payment-options/paymentoptions-single.js.map +1 -0
  451. package/dist/tools/payment-options/schemas.d.ts +197 -0
  452. package/dist/tools/payment-options/schemas.d.ts.map +1 -0
  453. package/dist/tools/payment-options/schemas.js +69 -0
  454. package/dist/tools/payment-options/schemas.js.map +1 -0
  455. package/dist/tools/project/index.d.ts +11 -0
  456. package/dist/tools/project/index.d.ts.map +1 -0
  457. package/dist/tools/project/index.js +13 -0
  458. package/dist/tools/project/index.js.map +1 -0
  459. package/dist/tools/project/project-create.d.ts +142 -0
  460. package/dist/tools/project/project-create.d.ts.map +1 -0
  461. package/dist/tools/project/project-create.js +100 -0
  462. package/dist/tools/project/project-create.js.map +1 -0
  463. package/dist/tools/project/project-delete.d.ts +44 -0
  464. package/dist/tools/project/project-delete.d.ts.map +1 -0
  465. package/dist/tools/project/project-delete.js +80 -0
  466. package/dist/tools/project/project-delete.js.map +1 -0
  467. package/dist/tools/project/project-list.d.ts +227 -0
  468. package/dist/tools/project/project-list.d.ts.map +1 -0
  469. package/dist/tools/project/project-list.js +118 -0
  470. package/dist/tools/project/project-list.js.map +1 -0
  471. package/dist/tools/project/project-single.d.ts +115 -0
  472. package/dist/tools/project/project-single.d.ts.map +1 -0
  473. package/dist/tools/project/project-single.js +63 -0
  474. package/dist/tools/project/project-single.js.map +1 -0
  475. package/dist/tools/project/project-update.d.ts +151 -0
  476. package/dist/tools/project/project-update.d.ts.map +1 -0
  477. package/dist/tools/project/project-update.js +106 -0
  478. package/dist/tools/project/project-update.js.map +1 -0
  479. package/dist/tools/project/schemas.d.ts +588 -0
  480. package/dist/tools/project/schemas.d.ts.map +1 -0
  481. package/dist/tools/project/schemas.js +196 -0
  482. package/dist/tools/project/schemas.js.map +1 -0
  483. package/dist/tools/report/index.d.ts +9 -0
  484. package/dist/tools/report/index.d.ts.map +1 -0
  485. package/dist/tools/report/index.js +11 -0
  486. package/dist/tools/report/index.js.map +1 -0
  487. package/dist/tools/report/report-payments-collected.d.ts +118 -0
  488. package/dist/tools/report/report-payments-collected.d.ts.map +1 -0
  489. package/dist/tools/report/report-payments-collected.js +89 -0
  490. package/dist/tools/report/report-payments-collected.js.map +1 -0
  491. package/dist/tools/report/report-profit-loss.d.ts +139 -0
  492. package/dist/tools/report/report-profit-loss.d.ts.map +1 -0
  493. package/dist/tools/report/report-profit-loss.js +98 -0
  494. package/dist/tools/report/report-profit-loss.js.map +1 -0
  495. package/dist/tools/report/report-tax-summary.d.ts +155 -0
  496. package/dist/tools/report/report-tax-summary.d.ts.map +1 -0
  497. package/dist/tools/report/report-tax-summary.js +100 -0
  498. package/dist/tools/report/report-tax-summary.js.map +1 -0
  499. package/dist/tools/report/schemas.d.ts +859 -0
  500. package/dist/tools/report/schemas.d.ts.map +1 -0
  501. package/dist/tools/report/schemas.js +126 -0
  502. package/dist/tools/report/schemas.js.map +1 -0
  503. package/dist/tools/service/index.d.ts +12 -0
  504. package/dist/tools/service/index.d.ts.map +1 -0
  505. package/dist/tools/service/index.js +14 -0
  506. package/dist/tools/service/index.js.map +1 -0
  507. package/dist/tools/service/schemas.d.ts +159 -0
  508. package/dist/tools/service/schemas.d.ts.map +1 -0
  509. package/dist/tools/service/schemas.js +62 -0
  510. package/dist/tools/service/schemas.js.map +1 -0
  511. package/dist/tools/service/service-create.d.ts +52 -0
  512. package/dist/tools/service/service-create.d.ts.map +1 -0
  513. package/dist/tools/service/service-create.js +82 -0
  514. package/dist/tools/service/service-create.js.map +1 -0
  515. package/dist/tools/service/service-list.d.ts +119 -0
  516. package/dist/tools/service/service-list.d.ts.map +1 -0
  517. package/dist/tools/service/service-list.js +99 -0
  518. package/dist/tools/service/service-list.js.map +1 -0
  519. package/dist/tools/service/service-rate-get.d.ts +63 -0
  520. package/dist/tools/service/service-rate-get.d.ts.map +1 -0
  521. package/dist/tools/service/service-rate-get.js +66 -0
  522. package/dist/tools/service/service-rate-get.js.map +1 -0
  523. package/dist/tools/service/service-rate-set.d.ts +76 -0
  524. package/dist/tools/service/service-rate-set.d.ts.map +1 -0
  525. package/dist/tools/service/service-rate-set.js +91 -0
  526. package/dist/tools/service/service-rate-set.js.map +1 -0
  527. package/dist/tools/service/service-single.d.ts +45 -0
  528. package/dist/tools/service/service-single.d.ts.map +1 -0
  529. package/dist/tools/service/service-single.js +63 -0
  530. package/dist/tools/service/service-single.js.map +1 -0
  531. package/dist/tools/task/index.d.ts +12 -0
  532. package/dist/tools/task/index.d.ts.map +1 -0
  533. package/dist/tools/task/index.js +14 -0
  534. package/dist/tools/task/index.js.map +1 -0
  535. package/dist/tools/task/schemas.d.ts +299 -0
  536. package/dist/tools/task/schemas.d.ts.map +1 -0
  537. package/dist/tools/task/schemas.js +89 -0
  538. package/dist/tools/task/schemas.js.map +1 -0
  539. package/dist/tools/task/task-create.d.ts +101 -0
  540. package/dist/tools/task/task-create.d.ts.map +1 -0
  541. package/dist/tools/task/task-create.js +77 -0
  542. package/dist/tools/task/task-create.js.map +1 -0
  543. package/dist/tools/task/task-delete.d.ts +39 -0
  544. package/dist/tools/task/task-delete.d.ts.map +1 -0
  545. package/dist/tools/task/task-delete.js +70 -0
  546. package/dist/tools/task/task-delete.js.map +1 -0
  547. package/dist/tools/task/task-list.d.ts +157 -0
  548. package/dist/tools/task/task-list.d.ts.map +1 -0
  549. package/dist/tools/task/task-list.js +78 -0
  550. package/dist/tools/task/task-list.js.map +1 -0
  551. package/dist/tools/task/task-single.d.ts +77 -0
  552. package/dist/tools/task/task-single.d.ts.map +1 -0
  553. package/dist/tools/task/task-single.js +56 -0
  554. package/dist/tools/task/task-single.js.map +1 -0
  555. package/dist/tools/task/task-update.d.ts +107 -0
  556. package/dist/tools/task/task-update.d.ts.map +1 -0
  557. package/dist/tools/task/task-update.js +87 -0
  558. package/dist/tools/task/task-update.js.map +1 -0
  559. package/dist/tools/time-entry/index.d.ts +11 -0
  560. package/dist/tools/time-entry/index.d.ts.map +1 -0
  561. package/dist/tools/time-entry/index.js +11 -0
  562. package/dist/tools/time-entry/index.js.map +1 -0
  563. package/dist/tools/time-entry/schemas.d.ts +598 -0
  564. package/dist/tools/time-entry/schemas.d.ts.map +1 -0
  565. package/dist/tools/time-entry/schemas.js +217 -0
  566. package/dist/tools/time-entry/schemas.js.map +1 -0
  567. package/dist/tools/time-entry/timeentry-create.d.ts +142 -0
  568. package/dist/tools/time-entry/timeentry-create.d.ts.map +1 -0
  569. package/dist/tools/time-entry/timeentry-create.js +137 -0
  570. package/dist/tools/time-entry/timeentry-create.js.map +1 -0
  571. package/dist/tools/time-entry/timeentry-delete.d.ts +43 -0
  572. package/dist/tools/time-entry/timeentry-delete.d.ts.map +1 -0
  573. package/dist/tools/time-entry/timeentry-delete.js +93 -0
  574. package/dist/tools/time-entry/timeentry-delete.js.map +1 -0
  575. package/dist/tools/time-entry/timeentry-list.d.ts +232 -0
  576. package/dist/tools/time-entry/timeentry-list.d.ts.map +1 -0
  577. package/dist/tools/time-entry/timeentry-list.js +154 -0
  578. package/dist/tools/time-entry/timeentry-list.js.map +1 -0
  579. package/dist/tools/time-entry/timeentry-single.d.ts +109 -0
  580. package/dist/tools/time-entry/timeentry-single.d.ts.map +1 -0
  581. package/dist/tools/time-entry/timeentry-single.js +75 -0
  582. package/dist/tools/time-entry/timeentry-single.js.map +1 -0
  583. package/dist/tools/time-entry/timeentry-update.d.ts +145 -0
  584. package/dist/tools/time-entry/timeentry-update.d.ts.map +1 -0
  585. package/dist/tools/time-entry/timeentry-update.js +174 -0
  586. package/dist/tools/time-entry/timeentry-update.js.map +1 -0
  587. package/dist/tools/timer/index.d.ts +16 -0
  588. package/dist/tools/timer/index.d.ts.map +1 -0
  589. package/dist/tools/timer/index.js +19 -0
  590. package/dist/tools/timer/index.js.map +1 -0
  591. package/dist/tools/timer/schemas.d.ts +520 -0
  592. package/dist/tools/timer/schemas.d.ts.map +1 -0
  593. package/dist/tools/timer/schemas.js +109 -0
  594. package/dist/tools/timer/schemas.js.map +1 -0
  595. package/dist/tools/timer/timer-current.d.ts +170 -0
  596. package/dist/tools/timer/timer-current.d.ts.map +1 -0
  597. package/dist/tools/timer/timer-current.js +134 -0
  598. package/dist/tools/timer/timer-current.js.map +1 -0
  599. package/dist/tools/timer/timer-discard.d.ts +54 -0
  600. package/dist/tools/timer/timer-discard.d.ts.map +1 -0
  601. package/dist/tools/timer/timer-discard.js +115 -0
  602. package/dist/tools/timer/timer-discard.js.map +1 -0
  603. package/dist/tools/timer/timer-start.d.ts +135 -0
  604. package/dist/tools/timer/timer-start.d.ts.map +1 -0
  605. package/dist/tools/timer/timer-start.js +129 -0
  606. package/dist/tools/timer/timer-start.js.map +1 -0
  607. package/dist/tools/timer/timer-stop.d.ts +123 -0
  608. package/dist/tools/timer/timer-stop.d.ts.map +1 -0
  609. package/dist/tools/timer/timer-stop.js +165 -0
  610. package/dist/tools/timer/timer-stop.js.map +1 -0
  611. package/dist/tools/types.d.ts +49 -0
  612. package/dist/tools/types.d.ts.map +1 -0
  613. package/dist/tools/types.js +61 -0
  614. package/dist/tools/types.js.map +1 -0
  615. package/dist/tools/user/index.d.ts +7 -0
  616. package/dist/tools/user/index.d.ts.map +1 -0
  617. package/dist/tools/user/index.js +9 -0
  618. package/dist/tools/user/index.js.map +1 -0
  619. package/dist/tools/user/schemas.d.ts +258 -0
  620. package/dist/tools/user/schemas.d.ts.map +1 -0
  621. package/dist/tools/user/schemas.js +51 -0
  622. package/dist/tools/user/schemas.js.map +1 -0
  623. package/dist/tools/user/user-me.d.ts +129 -0
  624. package/dist/tools/user/user-me.d.ts.map +1 -0
  625. package/dist/tools/user/user-me.js +63 -0
  626. package/dist/tools/user/user-me.js.map +1 -0
  627. package/dist/types/freshbooks.d.ts +276 -0
  628. package/dist/types/freshbooks.d.ts.map +1 -0
  629. package/dist/types/freshbooks.js +6 -0
  630. package/dist/types/freshbooks.js.map +1 -0
  631. package/dist/types/index.d.ts +92 -0
  632. package/dist/types/index.d.ts.map +1 -0
  633. package/dist/types/index.js +6 -0
  634. package/dist/types/index.js.map +1 -0
  635. package/dist/utils/index.d.ts +6 -0
  636. package/dist/utils/index.d.ts.map +1 -0
  637. package/dist/utils/index.js +6 -0
  638. package/dist/utils/index.js.map +1 -0
  639. package/dist/utils/logger.d.ts +54 -0
  640. package/dist/utils/logger.d.ts.map +1 -0
  641. package/dist/utils/logger.js +133 -0
  642. package/dist/utils/logger.js.map +1 -0
  643. package/dist/utils/pagination.d.ts +39 -0
  644. package/dist/utils/pagination.d.ts.map +1 -0
  645. package/dist/utils/pagination.js +62 -0
  646. package/dist/utils/pagination.js.map +1 -0
  647. package/package.json +88 -0
@@ -0,0 +1,1414 @@
1
+ /**
2
+ * Zod schemas for Invoice entity
3
+ *
4
+ * Invoice management schemas for FreshBooks API
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Invoice sortable fields
9
+ */
10
+ export declare const INVOICE_SORTABLE_FIELDS: readonly ["create_date", "due_date", "updated", "amount", "outstanding"];
11
+ /**
12
+ * Invoice sort field descriptions
13
+ */
14
+ export declare const INVOICE_SORT_FIELD_DESCRIPTIONS: Record<typeof INVOICE_SORTABLE_FIELDS[number], string>;
15
+ /**
16
+ * Invoice include options
17
+ */
18
+ export declare const INVOICE_INCLUDE_OPTIONS: readonly ["lines", "presentation"];
19
+ /**
20
+ * Invoice include option descriptions
21
+ */
22
+ export declare const INVOICE_INCLUDE_DESCRIPTIONS: Record<typeof INVOICE_INCLUDE_OPTIONS[number], string>;
23
+ /**
24
+ * Invoice sort schema
25
+ */
26
+ export declare const InvoiceSortSchema: z.ZodObject<{
27
+ sortBy: z.ZodOptional<z.ZodEnum<["amount" | "due_date" | "updated" | "create_date" | "outstanding", ...("amount" | "due_date" | "updated" | "create_date" | "outstanding")[]]>>;
28
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["asc", "desc"]>>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ sortBy?: "amount" | "due_date" | "updated" | "create_date" | "outstanding" | undefined;
31
+ sortOrder?: "asc" | "desc" | undefined;
32
+ }, {
33
+ sortBy?: "amount" | "due_date" | "updated" | "create_date" | "outstanding" | undefined;
34
+ sortOrder?: "asc" | "desc" | undefined;
35
+ }>;
36
+ /**
37
+ * Invoice includes schema
38
+ */
39
+ export declare const InvoiceIncludesSchema: z.ZodObject<{
40
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<["lines" | "presentation", ...("lines" | "presentation")[]]>, "many">>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ include?: ("lines" | "presentation")[] | undefined;
43
+ }, {
44
+ include?: ("lines" | "presentation")[] | undefined;
45
+ }>;
46
+ /**
47
+ * Invoice status enum
48
+ */
49
+ export declare const InvoiceStatusEnum: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
50
+ /**
51
+ * Payment status enum
52
+ */
53
+ export declare const PaymentStatusEnum: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
54
+ /**
55
+ * Visibility state enum
56
+ */
57
+ export declare const VisStateEnum: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>;
58
+ /**
59
+ * Money type (amount + currency code)
60
+ */
61
+ export declare const MoneySchema: z.ZodObject<{
62
+ amount: z.ZodString;
63
+ code: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ code: string;
66
+ amount: string;
67
+ }, {
68
+ code: string;
69
+ amount: string;
70
+ }>;
71
+ /**
72
+ * Line Item schema - represents a single line on an invoice
73
+ */
74
+ export declare const LineItemSchema: z.ZodObject<{
75
+ name: z.ZodString;
76
+ description: z.ZodOptional<z.ZodString>;
77
+ qty: z.ZodNumber;
78
+ amount: z.ZodObject<{
79
+ amount: z.ZodString;
80
+ code: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ code: string;
83
+ amount: string;
84
+ }, {
85
+ code: string;
86
+ amount: string;
87
+ }>;
88
+ taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
90
+ amount: z.ZodString;
91
+ code: z.ZodString;
92
+ }, "strip", z.ZodTypeAny, {
93
+ code: string;
94
+ amount: string;
95
+ }, {
96
+ code: string;
97
+ amount: string;
98
+ }>>>;
99
+ taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
101
+ amount: z.ZodString;
102
+ code: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ code: string;
105
+ amount: string;
106
+ }, {
107
+ code: string;
108
+ amount: string;
109
+ }>>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ name: string;
112
+ amount: {
113
+ code: string;
114
+ amount: string;
115
+ };
116
+ qty: number;
117
+ description?: string | undefined;
118
+ taxName1?: string | null | undefined;
119
+ taxAmount1?: {
120
+ code: string;
121
+ amount: string;
122
+ } | null | undefined;
123
+ taxName2?: string | null | undefined;
124
+ taxAmount2?: {
125
+ code: string;
126
+ amount: string;
127
+ } | null | undefined;
128
+ }, {
129
+ name: string;
130
+ amount: {
131
+ code: string;
132
+ amount: string;
133
+ };
134
+ qty: number;
135
+ description?: string | undefined;
136
+ taxName1?: string | null | undefined;
137
+ taxAmount1?: {
138
+ code: string;
139
+ amount: string;
140
+ } | null | undefined;
141
+ taxName2?: string | null | undefined;
142
+ taxAmount2?: {
143
+ code: string;
144
+ amount: string;
145
+ } | null | undefined;
146
+ }>;
147
+ /**
148
+ * Full Invoice schema with all properties
149
+ */
150
+ export declare const InvoiceSchema: z.ZodObject<{
151
+ id: z.ZodNumber;
152
+ invoiceNumber: z.ZodString;
153
+ customerId: z.ZodNumber;
154
+ createDate: z.ZodString;
155
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ amount: z.ZodObject<{
157
+ amount: z.ZodString;
158
+ code: z.ZodString;
159
+ }, "strip", z.ZodTypeAny, {
160
+ code: string;
161
+ amount: string;
162
+ }, {
163
+ code: string;
164
+ amount: string;
165
+ }>;
166
+ outstanding: z.ZodObject<{
167
+ amount: z.ZodString;
168
+ code: z.ZodString;
169
+ }, "strip", z.ZodTypeAny, {
170
+ code: string;
171
+ amount: string;
172
+ }, {
173
+ code: string;
174
+ amount: string;
175
+ }>;
176
+ paid: z.ZodObject<{
177
+ amount: z.ZodString;
178
+ code: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ code: string;
181
+ amount: string;
182
+ }, {
183
+ code: string;
184
+ amount: string;
185
+ }>;
186
+ status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
187
+ paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
188
+ currencyCode: z.ZodString;
189
+ lines: z.ZodArray<z.ZodObject<{
190
+ name: z.ZodString;
191
+ description: z.ZodOptional<z.ZodString>;
192
+ qty: z.ZodNumber;
193
+ amount: z.ZodObject<{
194
+ amount: z.ZodString;
195
+ code: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ code: string;
198
+ amount: string;
199
+ }, {
200
+ code: string;
201
+ amount: string;
202
+ }>;
203
+ taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
205
+ amount: z.ZodString;
206
+ code: z.ZodString;
207
+ }, "strip", z.ZodTypeAny, {
208
+ code: string;
209
+ amount: string;
210
+ }, {
211
+ code: string;
212
+ amount: string;
213
+ }>>>;
214
+ taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
216
+ amount: z.ZodString;
217
+ code: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ code: string;
220
+ amount: string;
221
+ }, {
222
+ code: string;
223
+ amount: string;
224
+ }>>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ name: string;
227
+ amount: {
228
+ code: string;
229
+ amount: string;
230
+ };
231
+ qty: number;
232
+ description?: string | undefined;
233
+ taxName1?: string | null | undefined;
234
+ taxAmount1?: {
235
+ code: string;
236
+ amount: string;
237
+ } | null | undefined;
238
+ taxName2?: string | null | undefined;
239
+ taxAmount2?: {
240
+ code: string;
241
+ amount: string;
242
+ } | null | undefined;
243
+ }, {
244
+ name: string;
245
+ amount: {
246
+ code: string;
247
+ amount: string;
248
+ };
249
+ qty: number;
250
+ description?: string | undefined;
251
+ taxName1?: string | null | undefined;
252
+ taxAmount1?: {
253
+ code: string;
254
+ amount: string;
255
+ } | null | undefined;
256
+ taxName2?: string | null | undefined;
257
+ taxAmount2?: {
258
+ code: string;
259
+ amount: string;
260
+ } | null | undefined;
261
+ }>, "many">;
262
+ notes: z.ZodOptional<z.ZodString>;
263
+ terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ organization: z.ZodOptional<z.ZodString>;
265
+ fName: z.ZodOptional<z.ZodString>;
266
+ lName: z.ZodOptional<z.ZodString>;
267
+ email: z.ZodOptional<z.ZodString>;
268
+ address: z.ZodOptional<z.ZodString>;
269
+ city: z.ZodOptional<z.ZodString>;
270
+ province: z.ZodOptional<z.ZodString>;
271
+ code: z.ZodOptional<z.ZodString>;
272
+ country: z.ZodOptional<z.ZodString>;
273
+ visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
274
+ createdAt: z.ZodOptional<z.ZodString>;
275
+ updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
278
+ id: number;
279
+ amount: {
280
+ code: string;
281
+ amount: string;
282
+ };
283
+ currencyCode: string;
284
+ outstanding: {
285
+ code: string;
286
+ amount: string;
287
+ };
288
+ lines: {
289
+ name: string;
290
+ amount: {
291
+ code: string;
292
+ amount: string;
293
+ };
294
+ qty: number;
295
+ description?: string | undefined;
296
+ taxName1?: string | null | undefined;
297
+ taxAmount1?: {
298
+ code: string;
299
+ amount: string;
300
+ } | null | undefined;
301
+ taxName2?: string | null | undefined;
302
+ taxAmount2?: {
303
+ code: string;
304
+ amount: string;
305
+ } | null | undefined;
306
+ }[];
307
+ paid: {
308
+ code: string;
309
+ amount: string;
310
+ };
311
+ invoiceNumber: string;
312
+ customerId: number;
313
+ createDate: string;
314
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
315
+ code?: string | undefined;
316
+ email?: string | undefined;
317
+ createdAt?: string | undefined;
318
+ dueDate?: string | null | undefined;
319
+ visState?: 0 | 1 | 2 | undefined;
320
+ updated?: string | null | undefined;
321
+ organization?: string | undefined;
322
+ fName?: string | undefined;
323
+ lName?: string | undefined;
324
+ notes?: string | undefined;
325
+ terms?: string | null | undefined;
326
+ address?: string | undefined;
327
+ city?: string | undefined;
328
+ province?: string | undefined;
329
+ country?: string | undefined;
330
+ }, {
331
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
332
+ id: number;
333
+ amount: {
334
+ code: string;
335
+ amount: string;
336
+ };
337
+ currencyCode: string;
338
+ outstanding: {
339
+ code: string;
340
+ amount: string;
341
+ };
342
+ lines: {
343
+ name: string;
344
+ amount: {
345
+ code: string;
346
+ amount: string;
347
+ };
348
+ qty: number;
349
+ description?: string | undefined;
350
+ taxName1?: string | null | undefined;
351
+ taxAmount1?: {
352
+ code: string;
353
+ amount: string;
354
+ } | null | undefined;
355
+ taxName2?: string | null | undefined;
356
+ taxAmount2?: {
357
+ code: string;
358
+ amount: string;
359
+ } | null | undefined;
360
+ }[];
361
+ paid: {
362
+ code: string;
363
+ amount: string;
364
+ };
365
+ invoiceNumber: string;
366
+ customerId: number;
367
+ createDate: string;
368
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
369
+ code?: string | undefined;
370
+ email?: string | undefined;
371
+ createdAt?: string | undefined;
372
+ dueDate?: string | null | undefined;
373
+ visState?: 0 | 1 | 2 | undefined;
374
+ updated?: string | null | undefined;
375
+ organization?: string | undefined;
376
+ fName?: string | undefined;
377
+ lName?: string | undefined;
378
+ notes?: string | undefined;
379
+ terms?: string | null | undefined;
380
+ address?: string | undefined;
381
+ city?: string | undefined;
382
+ province?: string | undefined;
383
+ country?: string | undefined;
384
+ }>;
385
+ /**
386
+ * Input schema for creating a line item
387
+ */
388
+ export declare const LineItemCreateSchema: z.ZodObject<{
389
+ name: z.ZodString;
390
+ description: z.ZodOptional<z.ZodString>;
391
+ qty: z.ZodDefault<z.ZodNumber>;
392
+ unitCost: z.ZodObject<{
393
+ amount: z.ZodString;
394
+ code: z.ZodOptional<z.ZodString>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ amount: string;
397
+ code?: string | undefined;
398
+ }, {
399
+ amount: string;
400
+ code?: string | undefined;
401
+ }>;
402
+ taxName1: z.ZodOptional<z.ZodString>;
403
+ taxAmount1: z.ZodOptional<z.ZodString>;
404
+ taxName2: z.ZodOptional<z.ZodString>;
405
+ taxAmount2: z.ZodOptional<z.ZodString>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ name: string;
408
+ qty: number;
409
+ unitCost: {
410
+ amount: string;
411
+ code?: string | undefined;
412
+ };
413
+ description?: string | undefined;
414
+ taxName1?: string | undefined;
415
+ taxAmount1?: string | undefined;
416
+ taxName2?: string | undefined;
417
+ taxAmount2?: string | undefined;
418
+ }, {
419
+ name: string;
420
+ unitCost: {
421
+ amount: string;
422
+ code?: string | undefined;
423
+ };
424
+ description?: string | undefined;
425
+ qty?: number | undefined;
426
+ taxName1?: string | undefined;
427
+ taxAmount1?: string | undefined;
428
+ taxName2?: string | undefined;
429
+ taxAmount2?: string | undefined;
430
+ }>;
431
+ /**
432
+ * Input schema for creating an invoice
433
+ */
434
+ export declare const InvoiceCreateInputSchema: z.ZodObject<{
435
+ accountId: z.ZodString;
436
+ customerId: z.ZodNumber;
437
+ createDate: z.ZodOptional<z.ZodString>;
438
+ dueDate: z.ZodOptional<z.ZodString>;
439
+ currencyCode: z.ZodOptional<z.ZodDefault<z.ZodString>>;
440
+ lines: z.ZodArray<z.ZodObject<{
441
+ name: z.ZodString;
442
+ description: z.ZodOptional<z.ZodString>;
443
+ qty: z.ZodDefault<z.ZodNumber>;
444
+ unitCost: z.ZodObject<{
445
+ amount: z.ZodString;
446
+ code: z.ZodOptional<z.ZodString>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ amount: string;
449
+ code?: string | undefined;
450
+ }, {
451
+ amount: string;
452
+ code?: string | undefined;
453
+ }>;
454
+ taxName1: z.ZodOptional<z.ZodString>;
455
+ taxAmount1: z.ZodOptional<z.ZodString>;
456
+ taxName2: z.ZodOptional<z.ZodString>;
457
+ taxAmount2: z.ZodOptional<z.ZodString>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ name: string;
460
+ qty: number;
461
+ unitCost: {
462
+ amount: string;
463
+ code?: string | undefined;
464
+ };
465
+ description?: string | undefined;
466
+ taxName1?: string | undefined;
467
+ taxAmount1?: string | undefined;
468
+ taxName2?: string | undefined;
469
+ taxAmount2?: string | undefined;
470
+ }, {
471
+ name: string;
472
+ unitCost: {
473
+ amount: string;
474
+ code?: string | undefined;
475
+ };
476
+ description?: string | undefined;
477
+ qty?: number | undefined;
478
+ taxName1?: string | undefined;
479
+ taxAmount1?: string | undefined;
480
+ taxName2?: string | undefined;
481
+ taxAmount2?: string | undefined;
482
+ }>, "many">;
483
+ notes: z.ZodOptional<z.ZodString>;
484
+ terms: z.ZodOptional<z.ZodString>;
485
+ discount: z.ZodOptional<z.ZodObject<{
486
+ amount: z.ZodString;
487
+ code: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ amount: string;
490
+ code?: string | undefined;
491
+ }, {
492
+ amount: string;
493
+ code?: string | undefined;
494
+ }>>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ accountId: string;
497
+ lines: {
498
+ name: string;
499
+ qty: number;
500
+ unitCost: {
501
+ amount: string;
502
+ code?: string | undefined;
503
+ };
504
+ description?: string | undefined;
505
+ taxName1?: string | undefined;
506
+ taxAmount1?: string | undefined;
507
+ taxName2?: string | undefined;
508
+ taxAmount2?: string | undefined;
509
+ }[];
510
+ customerId: number;
511
+ dueDate?: string | undefined;
512
+ currencyCode?: string | undefined;
513
+ createDate?: string | undefined;
514
+ notes?: string | undefined;
515
+ terms?: string | undefined;
516
+ discount?: {
517
+ amount: string;
518
+ code?: string | undefined;
519
+ } | undefined;
520
+ }, {
521
+ accountId: string;
522
+ lines: {
523
+ name: string;
524
+ unitCost: {
525
+ amount: string;
526
+ code?: string | undefined;
527
+ };
528
+ description?: string | undefined;
529
+ qty?: number | undefined;
530
+ taxName1?: string | undefined;
531
+ taxAmount1?: string | undefined;
532
+ taxName2?: string | undefined;
533
+ taxAmount2?: string | undefined;
534
+ }[];
535
+ customerId: number;
536
+ dueDate?: string | undefined;
537
+ currencyCode?: string | undefined;
538
+ createDate?: string | undefined;
539
+ notes?: string | undefined;
540
+ terms?: string | undefined;
541
+ discount?: {
542
+ amount: string;
543
+ code?: string | undefined;
544
+ } | undefined;
545
+ }>;
546
+ /**
547
+ * Input schema for updating an invoice
548
+ */
549
+ export declare const InvoiceUpdateInputSchema: z.ZodObject<{
550
+ accountId: z.ZodString;
551
+ invoiceId: z.ZodNumber;
552
+ customerId: z.ZodOptional<z.ZodNumber>;
553
+ createDate: z.ZodOptional<z.ZodString>;
554
+ dueDate: z.ZodOptional<z.ZodString>;
555
+ currencyCode: z.ZodOptional<z.ZodString>;
556
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ name: z.ZodString;
558
+ description: z.ZodOptional<z.ZodString>;
559
+ qty: z.ZodDefault<z.ZodNumber>;
560
+ unitCost: z.ZodObject<{
561
+ amount: z.ZodString;
562
+ code: z.ZodOptional<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ amount: string;
565
+ code?: string | undefined;
566
+ }, {
567
+ amount: string;
568
+ code?: string | undefined;
569
+ }>;
570
+ taxName1: z.ZodOptional<z.ZodString>;
571
+ taxAmount1: z.ZodOptional<z.ZodString>;
572
+ taxName2: z.ZodOptional<z.ZodString>;
573
+ taxAmount2: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ name: string;
576
+ qty: number;
577
+ unitCost: {
578
+ amount: string;
579
+ code?: string | undefined;
580
+ };
581
+ description?: string | undefined;
582
+ taxName1?: string | undefined;
583
+ taxAmount1?: string | undefined;
584
+ taxName2?: string | undefined;
585
+ taxAmount2?: string | undefined;
586
+ }, {
587
+ name: string;
588
+ unitCost: {
589
+ amount: string;
590
+ code?: string | undefined;
591
+ };
592
+ description?: string | undefined;
593
+ qty?: number | undefined;
594
+ taxName1?: string | undefined;
595
+ taxAmount1?: string | undefined;
596
+ taxName2?: string | undefined;
597
+ taxAmount2?: string | undefined;
598
+ }>, "many">>;
599
+ notes: z.ZodOptional<z.ZodString>;
600
+ terms: z.ZodOptional<z.ZodString>;
601
+ status: z.ZodOptional<z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>>;
602
+ discount: z.ZodOptional<z.ZodObject<{
603
+ amount: z.ZodString;
604
+ code: z.ZodOptional<z.ZodString>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ amount: string;
607
+ code?: string | undefined;
608
+ }, {
609
+ amount: string;
610
+ code?: string | undefined;
611
+ }>>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ accountId: string;
614
+ invoiceId: number;
615
+ status?: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed" | undefined;
616
+ dueDate?: string | undefined;
617
+ currencyCode?: string | undefined;
618
+ lines?: {
619
+ name: string;
620
+ qty: number;
621
+ unitCost: {
622
+ amount: string;
623
+ code?: string | undefined;
624
+ };
625
+ description?: string | undefined;
626
+ taxName1?: string | undefined;
627
+ taxAmount1?: string | undefined;
628
+ taxName2?: string | undefined;
629
+ taxAmount2?: string | undefined;
630
+ }[] | undefined;
631
+ customerId?: number | undefined;
632
+ createDate?: string | undefined;
633
+ notes?: string | undefined;
634
+ terms?: string | undefined;
635
+ discount?: {
636
+ amount: string;
637
+ code?: string | undefined;
638
+ } | undefined;
639
+ }, {
640
+ accountId: string;
641
+ invoiceId: number;
642
+ status?: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed" | undefined;
643
+ dueDate?: string | undefined;
644
+ currencyCode?: string | undefined;
645
+ lines?: {
646
+ name: string;
647
+ unitCost: {
648
+ amount: string;
649
+ code?: string | undefined;
650
+ };
651
+ description?: string | undefined;
652
+ qty?: number | undefined;
653
+ taxName1?: string | undefined;
654
+ taxAmount1?: string | undefined;
655
+ taxName2?: string | undefined;
656
+ taxAmount2?: string | undefined;
657
+ }[] | undefined;
658
+ customerId?: number | undefined;
659
+ createDate?: string | undefined;
660
+ notes?: string | undefined;
661
+ terms?: string | undefined;
662
+ discount?: {
663
+ amount: string;
664
+ code?: string | undefined;
665
+ } | undefined;
666
+ }>;
667
+ /**
668
+ * Input schema for listing invoices
669
+ */
670
+ export declare const InvoiceListInputSchema: z.ZodObject<{
671
+ accountId: z.ZodString;
672
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
673
+ perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
674
+ customerId: z.ZodOptional<z.ZodNumber>;
675
+ status: z.ZodOptional<z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>>;
676
+ paymentStatus: z.ZodOptional<z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>>;
677
+ dateMin: z.ZodOptional<z.ZodString>;
678
+ dateMax: z.ZodOptional<z.ZodString>;
679
+ updatedSince: z.ZodOptional<z.ZodString>;
680
+ } & {
681
+ sortBy: z.ZodOptional<z.ZodEnum<["amount" | "due_date" | "updated" | "create_date" | "outstanding", ...("amount" | "due_date" | "updated" | "create_date" | "outstanding")[]]>>;
682
+ sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["asc", "desc"]>>>;
683
+ } & {
684
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<["lines" | "presentation", ...("lines" | "presentation")[]]>, "many">>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ accountId: string;
687
+ status?: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed" | undefined;
688
+ page?: number | undefined;
689
+ perPage?: number | undefined;
690
+ sortBy?: "amount" | "due_date" | "updated" | "create_date" | "outstanding" | undefined;
691
+ sortOrder?: "asc" | "desc" | undefined;
692
+ include?: ("lines" | "presentation")[] | undefined;
693
+ customerId?: number | undefined;
694
+ paymentStatus?: "partial" | "paid" | "auto_paid" | "unpaid" | undefined;
695
+ dateMin?: string | undefined;
696
+ dateMax?: string | undefined;
697
+ updatedSince?: string | undefined;
698
+ }, {
699
+ accountId: string;
700
+ status?: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed" | undefined;
701
+ page?: number | undefined;
702
+ perPage?: number | undefined;
703
+ sortBy?: "amount" | "due_date" | "updated" | "create_date" | "outstanding" | undefined;
704
+ sortOrder?: "asc" | "desc" | undefined;
705
+ include?: ("lines" | "presentation")[] | undefined;
706
+ customerId?: number | undefined;
707
+ paymentStatus?: "partial" | "paid" | "auto_paid" | "unpaid" | undefined;
708
+ dateMin?: string | undefined;
709
+ dateMax?: string | undefined;
710
+ updatedSince?: string | undefined;
711
+ }>;
712
+ /**
713
+ * Input schema for getting a single invoice
714
+ */
715
+ export declare const InvoiceSingleInputSchema: z.ZodObject<{
716
+ accountId: z.ZodString;
717
+ invoiceId: z.ZodNumber;
718
+ }, "strip", z.ZodTypeAny, {
719
+ accountId: string;
720
+ invoiceId: number;
721
+ }, {
722
+ accountId: string;
723
+ invoiceId: number;
724
+ }>;
725
+ /**
726
+ * Input schema for deleting an invoice
727
+ */
728
+ export declare const InvoiceDeleteInputSchema: z.ZodObject<{
729
+ accountId: z.ZodString;
730
+ invoiceId: z.ZodNumber;
731
+ }, "strip", z.ZodTypeAny, {
732
+ accountId: string;
733
+ invoiceId: number;
734
+ }, {
735
+ accountId: string;
736
+ invoiceId: number;
737
+ }>;
738
+ /**
739
+ * Input schema for generating a share link
740
+ */
741
+ export declare const InvoiceShareLinkInputSchema: z.ZodObject<{
742
+ accountId: z.ZodString;
743
+ invoiceId: z.ZodNumber;
744
+ }, "strip", z.ZodTypeAny, {
745
+ accountId: string;
746
+ invoiceId: number;
747
+ }, {
748
+ accountId: string;
749
+ invoiceId: number;
750
+ }>;
751
+ /**
752
+ * Pagination metadata schema
753
+ */
754
+ export declare const PaginationMetadataSchema: z.ZodObject<{
755
+ page: z.ZodNumber;
756
+ pages: z.ZodNumber;
757
+ perPage: z.ZodNumber;
758
+ total: z.ZodNumber;
759
+ }, "strip", z.ZodTypeAny, {
760
+ total: number;
761
+ page: number;
762
+ perPage: number;
763
+ pages: number;
764
+ }, {
765
+ total: number;
766
+ page: number;
767
+ perPage: number;
768
+ pages: number;
769
+ }>;
770
+ /**
771
+ * Output schema for invoice list
772
+ */
773
+ export declare const InvoiceListOutputSchema: z.ZodObject<{
774
+ invoices: z.ZodArray<z.ZodObject<{
775
+ id: z.ZodNumber;
776
+ invoiceNumber: z.ZodString;
777
+ customerId: z.ZodNumber;
778
+ createDate: z.ZodString;
779
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ amount: z.ZodObject<{
781
+ amount: z.ZodString;
782
+ code: z.ZodString;
783
+ }, "strip", z.ZodTypeAny, {
784
+ code: string;
785
+ amount: string;
786
+ }, {
787
+ code: string;
788
+ amount: string;
789
+ }>;
790
+ outstanding: z.ZodObject<{
791
+ amount: z.ZodString;
792
+ code: z.ZodString;
793
+ }, "strip", z.ZodTypeAny, {
794
+ code: string;
795
+ amount: string;
796
+ }, {
797
+ code: string;
798
+ amount: string;
799
+ }>;
800
+ paid: z.ZodObject<{
801
+ amount: z.ZodString;
802
+ code: z.ZodString;
803
+ }, "strip", z.ZodTypeAny, {
804
+ code: string;
805
+ amount: string;
806
+ }, {
807
+ code: string;
808
+ amount: string;
809
+ }>;
810
+ status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
811
+ paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
812
+ currencyCode: z.ZodString;
813
+ lines: z.ZodArray<z.ZodObject<{
814
+ name: z.ZodString;
815
+ description: z.ZodOptional<z.ZodString>;
816
+ qty: z.ZodNumber;
817
+ amount: z.ZodObject<{
818
+ amount: z.ZodString;
819
+ code: z.ZodString;
820
+ }, "strip", z.ZodTypeAny, {
821
+ code: string;
822
+ amount: string;
823
+ }, {
824
+ code: string;
825
+ amount: string;
826
+ }>;
827
+ taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
+ taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
829
+ amount: z.ZodString;
830
+ code: z.ZodString;
831
+ }, "strip", z.ZodTypeAny, {
832
+ code: string;
833
+ amount: string;
834
+ }, {
835
+ code: string;
836
+ amount: string;
837
+ }>>>;
838
+ taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
+ taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
840
+ amount: z.ZodString;
841
+ code: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ code: string;
844
+ amount: string;
845
+ }, {
846
+ code: string;
847
+ amount: string;
848
+ }>>>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ name: string;
851
+ amount: {
852
+ code: string;
853
+ amount: string;
854
+ };
855
+ qty: number;
856
+ description?: string | undefined;
857
+ taxName1?: string | null | undefined;
858
+ taxAmount1?: {
859
+ code: string;
860
+ amount: string;
861
+ } | null | undefined;
862
+ taxName2?: string | null | undefined;
863
+ taxAmount2?: {
864
+ code: string;
865
+ amount: string;
866
+ } | null | undefined;
867
+ }, {
868
+ name: string;
869
+ amount: {
870
+ code: string;
871
+ amount: string;
872
+ };
873
+ qty: number;
874
+ description?: string | undefined;
875
+ taxName1?: string | null | undefined;
876
+ taxAmount1?: {
877
+ code: string;
878
+ amount: string;
879
+ } | null | undefined;
880
+ taxName2?: string | null | undefined;
881
+ taxAmount2?: {
882
+ code: string;
883
+ amount: string;
884
+ } | null | undefined;
885
+ }>, "many">;
886
+ notes: z.ZodOptional<z.ZodString>;
887
+ terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ organization: z.ZodOptional<z.ZodString>;
889
+ fName: z.ZodOptional<z.ZodString>;
890
+ lName: z.ZodOptional<z.ZodString>;
891
+ email: z.ZodOptional<z.ZodString>;
892
+ address: z.ZodOptional<z.ZodString>;
893
+ city: z.ZodOptional<z.ZodString>;
894
+ province: z.ZodOptional<z.ZodString>;
895
+ code: z.ZodOptional<z.ZodString>;
896
+ country: z.ZodOptional<z.ZodString>;
897
+ visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
898
+ createdAt: z.ZodOptional<z.ZodString>;
899
+ updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
+ }, "strip", z.ZodTypeAny, {
901
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
902
+ id: number;
903
+ amount: {
904
+ code: string;
905
+ amount: string;
906
+ };
907
+ currencyCode: string;
908
+ outstanding: {
909
+ code: string;
910
+ amount: string;
911
+ };
912
+ lines: {
913
+ name: string;
914
+ amount: {
915
+ code: string;
916
+ amount: string;
917
+ };
918
+ qty: number;
919
+ description?: string | undefined;
920
+ taxName1?: string | null | undefined;
921
+ taxAmount1?: {
922
+ code: string;
923
+ amount: string;
924
+ } | null | undefined;
925
+ taxName2?: string | null | undefined;
926
+ taxAmount2?: {
927
+ code: string;
928
+ amount: string;
929
+ } | null | undefined;
930
+ }[];
931
+ paid: {
932
+ code: string;
933
+ amount: string;
934
+ };
935
+ invoiceNumber: string;
936
+ customerId: number;
937
+ createDate: string;
938
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
939
+ code?: string | undefined;
940
+ email?: string | undefined;
941
+ createdAt?: string | undefined;
942
+ dueDate?: string | null | undefined;
943
+ visState?: 0 | 1 | 2 | undefined;
944
+ updated?: string | null | undefined;
945
+ organization?: string | undefined;
946
+ fName?: string | undefined;
947
+ lName?: string | undefined;
948
+ notes?: string | undefined;
949
+ terms?: string | null | undefined;
950
+ address?: string | undefined;
951
+ city?: string | undefined;
952
+ province?: string | undefined;
953
+ country?: string | undefined;
954
+ }, {
955
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
956
+ id: number;
957
+ amount: {
958
+ code: string;
959
+ amount: string;
960
+ };
961
+ currencyCode: string;
962
+ outstanding: {
963
+ code: string;
964
+ amount: string;
965
+ };
966
+ lines: {
967
+ name: string;
968
+ amount: {
969
+ code: string;
970
+ amount: string;
971
+ };
972
+ qty: number;
973
+ description?: string | undefined;
974
+ taxName1?: string | null | undefined;
975
+ taxAmount1?: {
976
+ code: string;
977
+ amount: string;
978
+ } | null | undefined;
979
+ taxName2?: string | null | undefined;
980
+ taxAmount2?: {
981
+ code: string;
982
+ amount: string;
983
+ } | null | undefined;
984
+ }[];
985
+ paid: {
986
+ code: string;
987
+ amount: string;
988
+ };
989
+ invoiceNumber: string;
990
+ customerId: number;
991
+ createDate: string;
992
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
993
+ code?: string | undefined;
994
+ email?: string | undefined;
995
+ createdAt?: string | undefined;
996
+ dueDate?: string | null | undefined;
997
+ visState?: 0 | 1 | 2 | undefined;
998
+ updated?: string | null | undefined;
999
+ organization?: string | undefined;
1000
+ fName?: string | undefined;
1001
+ lName?: string | undefined;
1002
+ notes?: string | undefined;
1003
+ terms?: string | null | undefined;
1004
+ address?: string | undefined;
1005
+ city?: string | undefined;
1006
+ province?: string | undefined;
1007
+ country?: string | undefined;
1008
+ }>, "many">;
1009
+ pagination: z.ZodObject<{
1010
+ page: z.ZodNumber;
1011
+ pages: z.ZodNumber;
1012
+ perPage: z.ZodNumber;
1013
+ total: z.ZodNumber;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ total: number;
1016
+ page: number;
1017
+ perPage: number;
1018
+ pages: number;
1019
+ }, {
1020
+ total: number;
1021
+ page: number;
1022
+ perPage: number;
1023
+ pages: number;
1024
+ }>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ pagination: {
1027
+ total: number;
1028
+ page: number;
1029
+ perPage: number;
1030
+ pages: number;
1031
+ };
1032
+ invoices: {
1033
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
1034
+ id: number;
1035
+ amount: {
1036
+ code: string;
1037
+ amount: string;
1038
+ };
1039
+ currencyCode: string;
1040
+ outstanding: {
1041
+ code: string;
1042
+ amount: string;
1043
+ };
1044
+ lines: {
1045
+ name: string;
1046
+ amount: {
1047
+ code: string;
1048
+ amount: string;
1049
+ };
1050
+ qty: number;
1051
+ description?: string | undefined;
1052
+ taxName1?: string | null | undefined;
1053
+ taxAmount1?: {
1054
+ code: string;
1055
+ amount: string;
1056
+ } | null | undefined;
1057
+ taxName2?: string | null | undefined;
1058
+ taxAmount2?: {
1059
+ code: string;
1060
+ amount: string;
1061
+ } | null | undefined;
1062
+ }[];
1063
+ paid: {
1064
+ code: string;
1065
+ amount: string;
1066
+ };
1067
+ invoiceNumber: string;
1068
+ customerId: number;
1069
+ createDate: string;
1070
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
1071
+ code?: string | undefined;
1072
+ email?: string | undefined;
1073
+ createdAt?: string | undefined;
1074
+ dueDate?: string | null | undefined;
1075
+ visState?: 0 | 1 | 2 | undefined;
1076
+ updated?: string | null | undefined;
1077
+ organization?: string | undefined;
1078
+ fName?: string | undefined;
1079
+ lName?: string | undefined;
1080
+ notes?: string | undefined;
1081
+ terms?: string | null | undefined;
1082
+ address?: string | undefined;
1083
+ city?: string | undefined;
1084
+ province?: string | undefined;
1085
+ country?: string | undefined;
1086
+ }[];
1087
+ }, {
1088
+ pagination: {
1089
+ total: number;
1090
+ page: number;
1091
+ perPage: number;
1092
+ pages: number;
1093
+ };
1094
+ invoices: {
1095
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
1096
+ id: number;
1097
+ amount: {
1098
+ code: string;
1099
+ amount: string;
1100
+ };
1101
+ currencyCode: string;
1102
+ outstanding: {
1103
+ code: string;
1104
+ amount: string;
1105
+ };
1106
+ lines: {
1107
+ name: string;
1108
+ amount: {
1109
+ code: string;
1110
+ amount: string;
1111
+ };
1112
+ qty: number;
1113
+ description?: string | undefined;
1114
+ taxName1?: string | null | undefined;
1115
+ taxAmount1?: {
1116
+ code: string;
1117
+ amount: string;
1118
+ } | null | undefined;
1119
+ taxName2?: string | null | undefined;
1120
+ taxAmount2?: {
1121
+ code: string;
1122
+ amount: string;
1123
+ } | null | undefined;
1124
+ }[];
1125
+ paid: {
1126
+ code: string;
1127
+ amount: string;
1128
+ };
1129
+ invoiceNumber: string;
1130
+ customerId: number;
1131
+ createDate: string;
1132
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
1133
+ code?: string | undefined;
1134
+ email?: string | undefined;
1135
+ createdAt?: string | undefined;
1136
+ dueDate?: string | null | undefined;
1137
+ visState?: 0 | 1 | 2 | undefined;
1138
+ updated?: string | null | undefined;
1139
+ organization?: string | undefined;
1140
+ fName?: string | undefined;
1141
+ lName?: string | undefined;
1142
+ notes?: string | undefined;
1143
+ terms?: string | null | undefined;
1144
+ address?: string | undefined;
1145
+ city?: string | undefined;
1146
+ province?: string | undefined;
1147
+ country?: string | undefined;
1148
+ }[];
1149
+ }>;
1150
+ /**
1151
+ * Output schema for single invoice operations
1152
+ */
1153
+ export declare const InvoiceSingleOutputSchema: z.ZodObject<{
1154
+ id: z.ZodNumber;
1155
+ invoiceNumber: z.ZodString;
1156
+ customerId: z.ZodNumber;
1157
+ createDate: z.ZodString;
1158
+ dueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
+ amount: z.ZodObject<{
1160
+ amount: z.ZodString;
1161
+ code: z.ZodString;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ code: string;
1164
+ amount: string;
1165
+ }, {
1166
+ code: string;
1167
+ amount: string;
1168
+ }>;
1169
+ outstanding: z.ZodObject<{
1170
+ amount: z.ZodString;
1171
+ code: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ code: string;
1174
+ amount: string;
1175
+ }, {
1176
+ code: string;
1177
+ amount: string;
1178
+ }>;
1179
+ paid: z.ZodObject<{
1180
+ amount: z.ZodString;
1181
+ code: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ code: string;
1184
+ amount: string;
1185
+ }, {
1186
+ code: string;
1187
+ amount: string;
1188
+ }>;
1189
+ status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
1190
+ paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
1191
+ currencyCode: z.ZodString;
1192
+ lines: z.ZodArray<z.ZodObject<{
1193
+ name: z.ZodString;
1194
+ description: z.ZodOptional<z.ZodString>;
1195
+ qty: z.ZodNumber;
1196
+ amount: z.ZodObject<{
1197
+ amount: z.ZodString;
1198
+ code: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ code: string;
1201
+ amount: string;
1202
+ }, {
1203
+ code: string;
1204
+ amount: string;
1205
+ }>;
1206
+ taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
+ taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1208
+ amount: z.ZodString;
1209
+ code: z.ZodString;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ code: string;
1212
+ amount: string;
1213
+ }, {
1214
+ code: string;
1215
+ amount: string;
1216
+ }>>>;
1217
+ taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1218
+ taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1219
+ amount: z.ZodString;
1220
+ code: z.ZodString;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ code: string;
1223
+ amount: string;
1224
+ }, {
1225
+ code: string;
1226
+ amount: string;
1227
+ }>>>;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ name: string;
1230
+ amount: {
1231
+ code: string;
1232
+ amount: string;
1233
+ };
1234
+ qty: number;
1235
+ description?: string | undefined;
1236
+ taxName1?: string | null | undefined;
1237
+ taxAmount1?: {
1238
+ code: string;
1239
+ amount: string;
1240
+ } | null | undefined;
1241
+ taxName2?: string | null | undefined;
1242
+ taxAmount2?: {
1243
+ code: string;
1244
+ amount: string;
1245
+ } | null | undefined;
1246
+ }, {
1247
+ name: string;
1248
+ amount: {
1249
+ code: string;
1250
+ amount: string;
1251
+ };
1252
+ qty: number;
1253
+ description?: string | undefined;
1254
+ taxName1?: string | null | undefined;
1255
+ taxAmount1?: {
1256
+ code: string;
1257
+ amount: string;
1258
+ } | null | undefined;
1259
+ taxName2?: string | null | undefined;
1260
+ taxAmount2?: {
1261
+ code: string;
1262
+ amount: string;
1263
+ } | null | undefined;
1264
+ }>, "many">;
1265
+ notes: z.ZodOptional<z.ZodString>;
1266
+ terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
+ organization: z.ZodOptional<z.ZodString>;
1268
+ fName: z.ZodOptional<z.ZodString>;
1269
+ lName: z.ZodOptional<z.ZodString>;
1270
+ email: z.ZodOptional<z.ZodString>;
1271
+ address: z.ZodOptional<z.ZodString>;
1272
+ city: z.ZodOptional<z.ZodString>;
1273
+ province: z.ZodOptional<z.ZodString>;
1274
+ code: z.ZodOptional<z.ZodString>;
1275
+ country: z.ZodOptional<z.ZodString>;
1276
+ visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1277
+ createdAt: z.ZodOptional<z.ZodString>;
1278
+ updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
1281
+ id: number;
1282
+ amount: {
1283
+ code: string;
1284
+ amount: string;
1285
+ };
1286
+ currencyCode: string;
1287
+ outstanding: {
1288
+ code: string;
1289
+ amount: string;
1290
+ };
1291
+ lines: {
1292
+ name: string;
1293
+ amount: {
1294
+ code: string;
1295
+ amount: string;
1296
+ };
1297
+ qty: number;
1298
+ description?: string | undefined;
1299
+ taxName1?: string | null | undefined;
1300
+ taxAmount1?: {
1301
+ code: string;
1302
+ amount: string;
1303
+ } | null | undefined;
1304
+ taxName2?: string | null | undefined;
1305
+ taxAmount2?: {
1306
+ code: string;
1307
+ amount: string;
1308
+ } | null | undefined;
1309
+ }[];
1310
+ paid: {
1311
+ code: string;
1312
+ amount: string;
1313
+ };
1314
+ invoiceNumber: string;
1315
+ customerId: number;
1316
+ createDate: string;
1317
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
1318
+ code?: string | undefined;
1319
+ email?: string | undefined;
1320
+ createdAt?: string | undefined;
1321
+ dueDate?: string | null | undefined;
1322
+ visState?: 0 | 1 | 2 | undefined;
1323
+ updated?: string | null | undefined;
1324
+ organization?: string | undefined;
1325
+ fName?: string | undefined;
1326
+ lName?: string | undefined;
1327
+ notes?: string | undefined;
1328
+ terms?: string | null | undefined;
1329
+ address?: string | undefined;
1330
+ city?: string | undefined;
1331
+ province?: string | undefined;
1332
+ country?: string | undefined;
1333
+ }, {
1334
+ status: "partial" | "failed" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "overdue" | "disputed";
1335
+ id: number;
1336
+ amount: {
1337
+ code: string;
1338
+ amount: string;
1339
+ };
1340
+ currencyCode: string;
1341
+ outstanding: {
1342
+ code: string;
1343
+ amount: string;
1344
+ };
1345
+ lines: {
1346
+ name: string;
1347
+ amount: {
1348
+ code: string;
1349
+ amount: string;
1350
+ };
1351
+ qty: number;
1352
+ description?: string | undefined;
1353
+ taxName1?: string | null | undefined;
1354
+ taxAmount1?: {
1355
+ code: string;
1356
+ amount: string;
1357
+ } | null | undefined;
1358
+ taxName2?: string | null | undefined;
1359
+ taxAmount2?: {
1360
+ code: string;
1361
+ amount: string;
1362
+ } | null | undefined;
1363
+ }[];
1364
+ paid: {
1365
+ code: string;
1366
+ amount: string;
1367
+ };
1368
+ invoiceNumber: string;
1369
+ customerId: number;
1370
+ createDate: string;
1371
+ paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
1372
+ code?: string | undefined;
1373
+ email?: string | undefined;
1374
+ createdAt?: string | undefined;
1375
+ dueDate?: string | null | undefined;
1376
+ visState?: 0 | 1 | 2 | undefined;
1377
+ updated?: string | null | undefined;
1378
+ organization?: string | undefined;
1379
+ fName?: string | undefined;
1380
+ lName?: string | undefined;
1381
+ notes?: string | undefined;
1382
+ terms?: string | null | undefined;
1383
+ address?: string | undefined;
1384
+ city?: string | undefined;
1385
+ province?: string | undefined;
1386
+ country?: string | undefined;
1387
+ }>;
1388
+ /**
1389
+ * Output schema for invoice deletion
1390
+ */
1391
+ export declare const InvoiceDeleteOutputSchema: z.ZodObject<{
1392
+ success: z.ZodBoolean;
1393
+ invoiceId: z.ZodNumber;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ success: boolean;
1396
+ invoiceId: number;
1397
+ }, {
1398
+ success: boolean;
1399
+ invoiceId: number;
1400
+ }>;
1401
+ /**
1402
+ * Output schema for share link generation
1403
+ */
1404
+ export declare const InvoiceShareLinkOutputSchema: z.ZodObject<{
1405
+ shareLink: z.ZodString;
1406
+ invoiceId: z.ZodNumber;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ invoiceId: number;
1409
+ shareLink: string;
1410
+ }, {
1411
+ invoiceId: number;
1412
+ shareLink: string;
1413
+ }>;
1414
+ //# sourceMappingURL=schemas.d.ts.map