@moovio/sdk 0.22.22 → 25.1.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 (729) hide show
  1. package/README.md +47 -192
  2. package/bin/mcp-server.js +857 -5013
  3. package/bin/mcp-server.js.map +25 -144
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +4 -4
  7. package/lib/config.js +4 -4
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.d.ts.map +1 -1
  12. package/mcp-server/server.js +1 -25
  13. package/mcp-server/server.js.map +1 -1
  14. package/models/components/accounttype.d.ts +0 -1
  15. package/models/components/accounttype.d.ts.map +1 -1
  16. package/models/components/accounttype.js +0 -1
  17. package/models/components/accounttype.js.map +1 -1
  18. package/models/components/bankaccountholdertype.d.ts +0 -1
  19. package/models/components/bankaccountholdertype.d.ts.map +1 -1
  20. package/models/components/bankaccountholdertype.js +0 -1
  21. package/models/components/bankaccountholdertype.js.map +1 -1
  22. package/models/components/capabilityid.d.ts +0 -11
  23. package/models/components/capabilityid.d.ts.map +1 -1
  24. package/models/components/capabilityid.js +0 -11
  25. package/models/components/capabilityid.js.map +1 -1
  26. package/models/components/createaccount.d.ts +5 -2
  27. package/models/components/createaccount.d.ts.map +1 -1
  28. package/models/components/createaccount.js +3 -3
  29. package/models/components/createaccount.js.map +1 -1
  30. package/models/components/enrichedindustries.d.ts +3 -3
  31. package/models/components/enrichedindustries.js +3 -3
  32. package/models/components/enrichedindustry.d.ts +35 -0
  33. package/models/components/enrichedindustry.d.ts.map +1 -0
  34. package/models/components/{fulfillmenterror.js → enrichedindustry.js} +18 -14
  35. package/models/components/enrichedindustry.js.map +1 -0
  36. package/models/components/index.d.ts +1 -77
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +1 -77
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/paymentmethod.d.ts +2 -4
  41. package/models/components/paymentmethod.d.ts.map +1 -1
  42. package/models/components/paymentmethod.js +0 -6
  43. package/models/components/paymentmethod.js.map +1 -1
  44. package/models/components/paymentmethodtype.d.ts +0 -2
  45. package/models/components/paymentmethodtype.d.ts.map +1 -1
  46. package/models/components/paymentmethodtype.js +0 -2
  47. package/models/components/paymentmethodtype.js.map +1 -1
  48. package/models/components/profile.d.ts +0 -6
  49. package/models/components/profile.d.ts.map +1 -1
  50. package/models/components/profile.js +0 -3
  51. package/models/components/profile.js.map +1 -1
  52. package/models/components/requirementid.d.ts +0 -54
  53. package/models/components/requirementid.d.ts.map +1 -1
  54. package/models/components/requirementid.js +0 -54
  55. package/models/components/requirementid.js.map +1 -1
  56. package/models/components/transfer.d.ts +0 -5
  57. package/models/components/transfer.d.ts.map +1 -1
  58. package/models/components/transfer.js +0 -2
  59. package/models/components/transfer.js.map +1 -1
  60. package/models/components/transfersource.d.ts +0 -6
  61. package/models/components/transfersource.d.ts.map +1 -1
  62. package/models/components/transfersource.js +0 -3
  63. package/models/components/transfersource.js.map +1 -1
  64. package/models/components/underwriting.d.ts +14 -35
  65. package/models/components/underwriting.d.ts.map +1 -1
  66. package/models/components/underwriting.js +14 -36
  67. package/models/components/underwriting.js.map +1 -1
  68. package/models/errors/index.d.ts +0 -7
  69. package/models/errors/index.d.ts.map +1 -1
  70. package/models/errors/index.js +0 -7
  71. package/models/errors/index.js.map +1 -1
  72. package/models/errors/transfer.d.ts +0 -9
  73. package/models/errors/transfer.d.ts.map +1 -1
  74. package/models/errors/transfer.js +0 -4
  75. package/models/errors/transfer.js.map +1 -1
  76. package/models/operations/index.d.ts +0 -12
  77. package/models/operations/index.d.ts.map +1 -1
  78. package/models/operations/index.js +0 -12
  79. package/models/operations/index.js.map +1 -1
  80. package/models/operations/listaccounts.d.ts +1 -1
  81. package/models/operations/listaccounts.d.ts.map +1 -1
  82. package/models/operations/listaccounts.js +2 -2
  83. package/models/operations/listaccounts.js.map +1 -1
  84. package/models/operations/listconnectedaccountsforaccount.d.ts +1 -1
  85. package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
  86. package/models/operations/listconnectedaccountsforaccount.js +2 -2
  87. package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
  88. package/package.json +1 -1
  89. package/sdk/sdk.d.ts +0 -6
  90. package/sdk/sdk.d.ts.map +1 -1
  91. package/sdk/sdk.js +0 -8
  92. package/sdk/sdk.js.map +1 -1
  93. package/sdk/underwriting.d.ts +0 -9
  94. package/sdk/underwriting.d.ts.map +1 -1
  95. package/sdk/underwriting.js +0 -12
  96. package/sdk/underwriting.js.map +1 -1
  97. package/src/lib/config.ts +4 -4
  98. package/src/mcp-server/mcp-server.ts +1 -1
  99. package/src/mcp-server/server.ts +1 -25
  100. package/src/models/components/accounttype.ts +0 -1
  101. package/src/models/components/bankaccountholdertype.ts +0 -1
  102. package/src/models/components/capabilityid.ts +0 -11
  103. package/src/models/components/createaccount.ts +11 -8
  104. package/src/models/components/enrichedindustries.ts +9 -9
  105. package/src/models/components/enrichedindustry.ts +75 -0
  106. package/src/models/components/index.ts +1 -77
  107. package/src/models/components/paymentmethod.ts +2 -22
  108. package/src/models/components/paymentmethodtype.ts +0 -2
  109. package/src/models/components/profile.ts +0 -13
  110. package/src/models/components/requirementid.ts +0 -103
  111. package/src/models/components/transfer.ts +0 -7
  112. package/src/models/components/transfersource.ts +0 -13
  113. package/src/models/components/underwriting.ts +28 -96
  114. package/src/models/errors/index.ts +0 -7
  115. package/src/models/errors/transfer.ts +0 -12
  116. package/src/models/operations/index.ts +0 -12
  117. package/src/models/operations/listaccounts.ts +3 -3
  118. package/src/models/operations/listconnectedaccountsforaccount.ts +3 -3
  119. package/src/sdk/sdk.ts +0 -12
  120. package/src/sdk/underwriting.ts +0 -20
  121. package/funcs/invoicesCreateInvoice.d.ts +0 -18
  122. package/funcs/invoicesCreateInvoice.d.ts.map +0 -1
  123. package/funcs/invoicesCreateInvoice.js +0 -139
  124. package/funcs/invoicesCreateInvoice.js.map +0 -1
  125. package/funcs/invoicesCreateInvoicePayment.d.ts +0 -19
  126. package/funcs/invoicesCreateInvoicePayment.d.ts.map +0 -1
  127. package/funcs/invoicesCreateInvoicePayment.js +0 -148
  128. package/funcs/invoicesCreateInvoicePayment.js.map +0 -1
  129. package/funcs/invoicesGetInvoice.d.ts +0 -17
  130. package/funcs/invoicesGetInvoice.d.ts.map +0 -1
  131. package/funcs/invoicesGetInvoice.js +0 -129
  132. package/funcs/invoicesGetInvoice.js.map +0 -1
  133. package/funcs/invoicesListInvoicePayments.d.ts +0 -17
  134. package/funcs/invoicesListInvoicePayments.d.ts.map +0 -1
  135. package/funcs/invoicesListInvoicePayments.js +0 -129
  136. package/funcs/invoicesListInvoicePayments.js.map +0 -1
  137. package/funcs/invoicesListInvoices.d.ts +0 -18
  138. package/funcs/invoicesListInvoices.d.ts.map +0 -1
  139. package/funcs/invoicesListInvoices.js +0 -139
  140. package/funcs/invoicesListInvoices.js.map +0 -1
  141. package/funcs/invoicesUpdateInvoice.d.ts +0 -18
  142. package/funcs/invoicesUpdateInvoice.d.ts.map +0 -1
  143. package/funcs/invoicesUpdateInvoice.js +0 -143
  144. package/funcs/invoicesUpdateInvoice.js.map +0 -1
  145. package/funcs/supportCreateTicket.d.ts +0 -21
  146. package/funcs/supportCreateTicket.d.ts.map +0 -1
  147. package/funcs/supportCreateTicket.js +0 -142
  148. package/funcs/supportCreateTicket.js.map +0 -1
  149. package/funcs/supportGetTicket.d.ts +0 -20
  150. package/funcs/supportGetTicket.d.ts.map +0 -1
  151. package/funcs/supportGetTicket.js +0 -132
  152. package/funcs/supportGetTicket.js.map +0 -1
  153. package/funcs/supportListTicketMessages.d.ts +0 -20
  154. package/funcs/supportListTicketMessages.d.ts.map +0 -1
  155. package/funcs/supportListTicketMessages.js +0 -132
  156. package/funcs/supportListTicketMessages.js.map +0 -1
  157. package/funcs/supportListTickets.d.ts +0 -20
  158. package/funcs/supportListTickets.d.ts.map +0 -1
  159. package/funcs/supportListTickets.js +0 -135
  160. package/funcs/supportListTickets.js.map +0 -1
  161. package/funcs/supportUpdateTicket.d.ts +0 -21
  162. package/funcs/supportUpdateTicket.d.ts.map +0 -1
  163. package/funcs/supportUpdateTicket.js +0 -146
  164. package/funcs/supportUpdateTicket.js.map +0 -1
  165. package/funcs/underwritingSave.d.ts +0 -20
  166. package/funcs/underwritingSave.d.ts.map +0 -1
  167. package/funcs/underwritingSave.js +0 -145
  168. package/funcs/underwritingSave.js.map +0 -1
  169. package/mcp-server/tools/invoicesCreateInvoice.d.ts +0 -8
  170. package/mcp-server/tools/invoicesCreateInvoice.d.ts.map +0 -1
  171. package/mcp-server/tools/invoicesCreateInvoice.js +0 -65
  172. package/mcp-server/tools/invoicesCreateInvoice.js.map +0 -1
  173. package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +0 -8
  174. package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts.map +0 -1
  175. package/mcp-server/tools/invoicesCreateInvoicePayment.js +0 -66
  176. package/mcp-server/tools/invoicesCreateInvoicePayment.js.map +0 -1
  177. package/mcp-server/tools/invoicesGetInvoice.d.ts +0 -8
  178. package/mcp-server/tools/invoicesGetInvoice.d.ts.map +0 -1
  179. package/mcp-server/tools/invoicesGetInvoice.js +0 -65
  180. package/mcp-server/tools/invoicesGetInvoice.js.map +0 -1
  181. package/mcp-server/tools/invoicesListInvoicePayments.d.ts +0 -8
  182. package/mcp-server/tools/invoicesListInvoicePayments.d.ts.map +0 -1
  183. package/mcp-server/tools/invoicesListInvoicePayments.js +0 -65
  184. package/mcp-server/tools/invoicesListInvoicePayments.js.map +0 -1
  185. package/mcp-server/tools/invoicesListInvoices.d.ts +0 -8
  186. package/mcp-server/tools/invoicesListInvoices.d.ts.map +0 -1
  187. package/mcp-server/tools/invoicesListInvoices.js +0 -65
  188. package/mcp-server/tools/invoicesListInvoices.js.map +0 -1
  189. package/mcp-server/tools/invoicesUpdateInvoice.d.ts +0 -8
  190. package/mcp-server/tools/invoicesUpdateInvoice.d.ts.map +0 -1
  191. package/mcp-server/tools/invoicesUpdateInvoice.js +0 -65
  192. package/mcp-server/tools/invoicesUpdateInvoice.js.map +0 -1
  193. package/mcp-server/tools/supportCreateTicket.d.ts +0 -8
  194. package/mcp-server/tools/supportCreateTicket.d.ts.map +0 -1
  195. package/mcp-server/tools/supportCreateTicket.js +0 -68
  196. package/mcp-server/tools/supportCreateTicket.js.map +0 -1
  197. package/mcp-server/tools/supportGetTicket.d.ts +0 -8
  198. package/mcp-server/tools/supportGetTicket.d.ts.map +0 -1
  199. package/mcp-server/tools/supportGetTicket.js +0 -68
  200. package/mcp-server/tools/supportGetTicket.js.map +0 -1
  201. package/mcp-server/tools/supportListTicketMessages.d.ts +0 -8
  202. package/mcp-server/tools/supportListTicketMessages.d.ts.map +0 -1
  203. package/mcp-server/tools/supportListTicketMessages.js +0 -68
  204. package/mcp-server/tools/supportListTicketMessages.js.map +0 -1
  205. package/mcp-server/tools/supportListTickets.d.ts +0 -8
  206. package/mcp-server/tools/supportListTickets.d.ts.map +0 -1
  207. package/mcp-server/tools/supportListTickets.js +0 -68
  208. package/mcp-server/tools/supportListTickets.js.map +0 -1
  209. package/mcp-server/tools/supportUpdateTicket.d.ts +0 -8
  210. package/mcp-server/tools/supportUpdateTicket.d.ts.map +0 -1
  211. package/mcp-server/tools/supportUpdateTicket.js +0 -68
  212. package/mcp-server/tools/supportUpdateTicket.js.map +0 -1
  213. package/mcp-server/tools/underwritingSave.d.ts +0 -8
  214. package/mcp-server/tools/underwritingSave.d.ts.map +0 -1
  215. package/mcp-server/tools/underwritingSave.js +0 -67
  216. package/mcp-server/tools/underwritingSave.js.map +0 -1
  217. package/models/components/amountdecimalupdate.d.ts +0 -29
  218. package/models/components/amountdecimalupdate.d.ts.map +0 -1
  219. package/models/components/amountdecimalupdate.js +0 -60
  220. package/models/components/amountdecimalupdate.js.map +0 -1
  221. package/models/components/businesspresence.d.ts +0 -16
  222. package/models/components/businesspresence.d.ts.map +0 -1
  223. package/models/components/businesspresence.js +0 -53
  224. package/models/components/businesspresence.js.map +0 -1
  225. package/models/components/cardacceptancemethods.d.ts +0 -33
  226. package/models/components/cardacceptancemethods.d.ts.map +0 -1
  227. package/models/components/cardacceptancemethods.js +0 -62
  228. package/models/components/cardacceptancemethods.js.map +0 -1
  229. package/models/components/cardacceptancemethodserror.d.ts +0 -21
  230. package/models/components/cardacceptancemethodserror.d.ts.map +0 -1
  231. package/models/components/cardacceptancemethodserror.js +0 -62
  232. package/models/components/cardacceptancemethodserror.js.map +0 -1
  233. package/models/components/cardpresentpaymentpaymentmethod.d.ts +0 -31
  234. package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +0 -1
  235. package/models/components/cardpresentpaymentpaymentmethod.js +0 -63
  236. package/models/components/cardpresentpaymentpaymentmethod.js.map +0 -1
  237. package/models/components/collectfunds.d.ts +0 -21
  238. package/models/components/collectfunds.d.ts.map +0 -1
  239. package/models/components/collectfunds.js +0 -62
  240. package/models/components/collectfunds.js.map +0 -1
  241. package/models/components/collectfundsach.d.ts +0 -18
  242. package/models/components/collectfundsach.d.ts.map +0 -1
  243. package/models/components/collectfundsach.js +0 -59
  244. package/models/components/collectfundsach.js.map +0 -1
  245. package/models/components/collectfundsacherror.d.ts +0 -18
  246. package/models/components/collectfundsacherror.d.ts.map +0 -1
  247. package/models/components/collectfundsacherror.js +0 -59
  248. package/models/components/collectfundsacherror.js.map +0 -1
  249. package/models/components/collectfundscardpayments.d.ts +0 -32
  250. package/models/components/collectfundscardpayments.d.ts.map +0 -1
  251. package/models/components/collectfundscardpayments.js +0 -70
  252. package/models/components/collectfundscardpayments.js.map +0 -1
  253. package/models/components/collectfundscardpaymentserror.d.ts +0 -28
  254. package/models/components/collectfundscardpaymentserror.d.ts.map +0 -1
  255. package/models/components/collectfundscardpaymentserror.js +0 -69
  256. package/models/components/collectfundscardpaymentserror.js.map +0 -1
  257. package/models/components/collectfundserror.d.ts +0 -21
  258. package/models/components/collectfundserror.d.ts.map +0 -1
  259. package/models/components/collectfundserror.js +0 -62
  260. package/models/components/collectfundserror.js.map +0 -1
  261. package/models/components/createaccounttype.d.ts +0 -12
  262. package/models/components/createaccounttype.d.ts.map +0 -1
  263. package/models/components/createaccounttype.js +0 -49
  264. package/models/components/createaccounttype.js.map +0 -1
  265. package/models/components/createinvoice.d.ts +0 -35
  266. package/models/components/createinvoice.d.ts.map +0 -1
  267. package/models/components/createinvoice.js +0 -72
  268. package/models/components/createinvoice.js.map +0 -1
  269. package/models/components/createinvoicelineitem.d.ts +0 -50
  270. package/models/components/createinvoicelineitem.d.ts.map +0 -1
  271. package/models/components/createinvoicelineitem.js +0 -70
  272. package/models/components/createinvoicelineitem.js.map +0 -1
  273. package/models/components/createinvoicelineitemoption.d.ts +0 -44
  274. package/models/components/createinvoicelineitemoption.d.ts.map +0 -1
  275. package/models/components/createinvoicelineitemoption.js +0 -67
  276. package/models/components/createinvoicelineitemoption.js.map +0 -1
  277. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +0 -24
  278. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +0 -1
  279. package/models/components/createinvoicelineitemoptionvalidationerror.js +0 -65
  280. package/models/components/createinvoicelineitemoptionvalidationerror.js.map +0 -1
  281. package/models/components/createinvoicelineitems.d.ts +0 -24
  282. package/models/components/createinvoicelineitems.d.ts.map +0 -1
  283. package/models/components/createinvoicelineitems.js +0 -59
  284. package/models/components/createinvoicelineitems.js.map +0 -1
  285. package/models/components/createinvoicelineitemsupdate.d.ts +0 -24
  286. package/models/components/createinvoicelineitemsupdate.d.ts.map +0 -1
  287. package/models/components/createinvoicelineitemsupdate.js +0 -59
  288. package/models/components/createinvoicelineitemsupdate.js.map +0 -1
  289. package/models/components/createinvoicelineitemsvalidationerror.d.ts +0 -22
  290. package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +0 -1
  291. package/models/components/createinvoicelineitemsvalidationerror.js +0 -61
  292. package/models/components/createinvoicelineitemsvalidationerror.js.map +0 -1
  293. package/models/components/createinvoicelineitemvalidationerror.d.ts +0 -31
  294. package/models/components/createinvoicelineitemvalidationerror.d.ts.map +0 -1
  295. package/models/components/createinvoicelineitemvalidationerror.js +0 -70
  296. package/models/components/createinvoicelineitemvalidationerror.js.map +0 -1
  297. package/models/components/createinvoicepayment.d.ts +0 -24
  298. package/models/components/createinvoicepayment.d.ts.map +0 -1
  299. package/models/components/createinvoicepayment.js +0 -66
  300. package/models/components/createinvoicepayment.js.map +0 -1
  301. package/models/components/createticket.d.ts +0 -29
  302. package/models/components/createticket.d.ts.map +0 -1
  303. package/models/components/createticket.js +0 -67
  304. package/models/components/createticket.js.map +0 -1
  305. package/models/components/createticketcontacterror.d.ts +0 -19
  306. package/models/components/createticketcontacterror.d.ts.map +0 -1
  307. package/models/components/createticketcontacterror.js +0 -60
  308. package/models/components/createticketcontacterror.js.map +0 -1
  309. package/models/components/entrymode.d.ts +0 -17
  310. package/models/components/entrymode.d.ts.map +0 -1
  311. package/models/components/entrymode.js +0 -52
  312. package/models/components/entrymode.js.map +0 -1
  313. package/models/components/estimatedactivity.d.ts +0 -25
  314. package/models/components/estimatedactivity.d.ts.map +0 -1
  315. package/models/components/estimatedactivity.js +0 -63
  316. package/models/components/estimatedactivity.js.map +0 -1
  317. package/models/components/estimatedactivityerror.d.ts +0 -21
  318. package/models/components/estimatedactivityerror.d.ts.map +0 -1
  319. package/models/components/estimatedactivityerror.js +0 -62
  320. package/models/components/estimatedactivityerror.js.map +0 -1
  321. package/models/components/fulfillment.d.ts +0 -21
  322. package/models/components/fulfillment.d.ts.map +0 -1
  323. package/models/components/fulfillment.js +0 -62
  324. package/models/components/fulfillment.js.map +0 -1
  325. package/models/components/fulfillmenterror.d.ts +0 -19
  326. package/models/components/fulfillmenterror.d.ts.map +0 -1
  327. package/models/components/fulfillmenterror.js.map +0 -1
  328. package/models/components/fulfillmentmethod.d.ts +0 -19
  329. package/models/components/fulfillmentmethod.d.ts.map +0 -1
  330. package/models/components/fulfillmentmethod.js +0 -56
  331. package/models/components/fulfillmentmethod.js.map +0 -1
  332. package/models/components/fulfillmenttimeframe.d.ts +0 -18
  333. package/models/components/fulfillmenttimeframe.d.ts.map +0 -1
  334. package/models/components/fulfillmenttimeframe.js +0 -55
  335. package/models/components/fulfillmenttimeframe.js.map +0 -1
  336. package/models/components/geographicreach.d.ts +0 -13
  337. package/models/components/geographicreach.d.ts.map +0 -1
  338. package/models/components/geographicreach.js +0 -50
  339. package/models/components/geographicreach.js.map +0 -1
  340. package/models/components/guestprofile.d.ts +0 -31
  341. package/models/components/guestprofile.d.ts.map +0 -1
  342. package/models/components/guestprofile.js +0 -63
  343. package/models/components/guestprofile.js.map +0 -1
  344. package/models/components/industrytaxonomy.d.ts +0 -43
  345. package/models/components/industrytaxonomy.d.ts.map +0 -1
  346. package/models/components/industrytaxonomy.js +0 -66
  347. package/models/components/industrytaxonomy.js.map +0 -1
  348. package/models/components/instantbankcreditpaymentmethod.d.ts +0 -31
  349. package/models/components/instantbankcreditpaymentmethod.d.ts.map +0 -1
  350. package/models/components/instantbankcreditpaymentmethod.js +0 -63
  351. package/models/components/instantbankcreditpaymentmethod.js.map +0 -1
  352. package/models/components/invoice.d.ts +0 -93
  353. package/models/components/invoice.d.ts.map +0 -1
  354. package/models/components/invoice.js +0 -107
  355. package/models/components/invoice.js.map +0 -1
  356. package/models/components/invoiceexternalpayment.d.ts +0 -21
  357. package/models/components/invoiceexternalpayment.d.ts.map +0 -1
  358. package/models/components/invoiceexternalpayment.js +0 -63
  359. package/models/components/invoiceexternalpayment.js.map +0 -1
  360. package/models/components/invoicelineitem.d.ts +0 -51
  361. package/models/components/invoicelineitem.d.ts.map +0 -1
  362. package/models/components/invoicelineitem.js +0 -71
  363. package/models/components/invoicelineitem.js.map +0 -1
  364. package/models/components/invoicelineitemimagemetadata.d.ts +0 -35
  365. package/models/components/invoicelineitemimagemetadata.d.ts.map +0 -1
  366. package/models/components/invoicelineitemimagemetadata.js +0 -64
  367. package/models/components/invoicelineitemimagemetadata.js.map +0 -1
  368. package/models/components/invoicelineitemoption.d.ts +0 -45
  369. package/models/components/invoicelineitemoption.d.ts.map +0 -1
  370. package/models/components/invoicelineitemoption.js +0 -68
  371. package/models/components/invoicelineitemoption.js.map +0 -1
  372. package/models/components/invoicelineitemoptionvalidationerror.d.ts +0 -24
  373. package/models/components/invoicelineitemoptionvalidationerror.d.ts.map +0 -1
  374. package/models/components/invoicelineitemoptionvalidationerror.js +0 -65
  375. package/models/components/invoicelineitemoptionvalidationerror.js.map +0 -1
  376. package/models/components/invoicelineitems.d.ts +0 -24
  377. package/models/components/invoicelineitems.d.ts.map +0 -1
  378. package/models/components/invoicelineitems.js +0 -59
  379. package/models/components/invoicelineitems.js.map +0 -1
  380. package/models/components/invoicelineitemsvalidationerror.d.ts +0 -22
  381. package/models/components/invoicelineitemsvalidationerror.d.ts.map +0 -1
  382. package/models/components/invoicelineitemsvalidationerror.js +0 -59
  383. package/models/components/invoicelineitemsvalidationerror.js.map +0 -1
  384. package/models/components/invoicelineitemvalidationerror.d.ts +0 -31
  385. package/models/components/invoicelineitemvalidationerror.d.ts.map +0 -1
  386. package/models/components/invoicelineitemvalidationerror.js +0 -70
  387. package/models/components/invoicelineitemvalidationerror.js.map +0 -1
  388. package/models/components/invoicepayment.d.ts +0 -35
  389. package/models/components/invoicepayment.d.ts.map +0 -1
  390. package/models/components/invoicepayment.js +0 -70
  391. package/models/components/invoicepayment.js.map +0 -1
  392. package/models/components/invoicepaymenttype.d.ts +0 -12
  393. package/models/components/invoicepaymenttype.d.ts.map +0 -1
  394. package/models/components/invoicepaymenttype.js +0 -49
  395. package/models/components/invoicepaymenttype.js.map +0 -1
  396. package/models/components/invoicetransferpayment.d.ts +0 -20
  397. package/models/components/invoicetransferpayment.d.ts.map +0 -1
  398. package/models/components/invoicetransferpayment.js +0 -58
  399. package/models/components/invoicetransferpayment.js.map +0 -1
  400. package/models/components/itemlistnextpage.d.ts +0 -20
  401. package/models/components/itemlistnextpage.d.ts.map +0 -1
  402. package/models/components/itemlistnextpage.js +0 -58
  403. package/models/components/itemlistnextpage.js.map +0 -1
  404. package/models/components/moneytransfer.d.ts +0 -21
  405. package/models/components/moneytransfer.d.ts.map +0 -1
  406. package/models/components/moneytransfer.js +0 -62
  407. package/models/components/moneytransfer.js.map +0 -1
  408. package/models/components/moneytransfererror.d.ts +0 -21
  409. package/models/components/moneytransfererror.d.ts.map +0 -1
  410. package/models/components/moneytransfererror.js +0 -62
  411. package/models/components/moneytransfererror.js.map +0 -1
  412. package/models/components/moneytransferpullfromcard.d.ts +0 -18
  413. package/models/components/moneytransferpullfromcard.d.ts.map +0 -1
  414. package/models/components/moneytransferpullfromcard.js +0 -59
  415. package/models/components/moneytransferpullfromcard.js.map +0 -1
  416. package/models/components/moneytransferpullfromcarderror.d.ts +0 -18
  417. package/models/components/moneytransferpullfromcarderror.d.ts.map +0 -1
  418. package/models/components/moneytransferpullfromcarderror.js +0 -59
  419. package/models/components/moneytransferpullfromcarderror.js.map +0 -1
  420. package/models/components/moneytransferpushtocard.d.ts +0 -18
  421. package/models/components/moneytransferpushtocard.d.ts.map +0 -1
  422. package/models/components/moneytransferpushtocard.js +0 -59
  423. package/models/components/moneytransferpushtocard.js.map +0 -1
  424. package/models/components/moneytransferpushtocarderror.d.ts +0 -18
  425. package/models/components/moneytransferpushtocarderror.d.ts.map +0 -1
  426. package/models/components/moneytransferpushtocarderror.js +0 -59
  427. package/models/components/moneytransferpushtocarderror.js.map +0 -1
  428. package/models/components/monthlyvolumerange.d.ts +0 -24
  429. package/models/components/monthlyvolumerange.d.ts.map +0 -1
  430. package/models/components/monthlyvolumerange.js +0 -58
  431. package/models/components/monthlyvolumerange.js.map +0 -1
  432. package/models/components/pendinglitigation.d.ts +0 -20
  433. package/models/components/pendinglitigation.d.ts.map +0 -1
  434. package/models/components/pendinglitigation.js +0 -57
  435. package/models/components/pendinglitigation.js.map +0 -1
  436. package/models/components/refundpolicy.d.ts +0 -19
  437. package/models/components/refundpolicy.d.ts.map +0 -1
  438. package/models/components/refundpolicy.js +0 -56
  439. package/models/components/refundpolicy.js.map +0 -1
  440. package/models/components/sendfunds.d.ts +0 -27
  441. package/models/components/sendfunds.d.ts.map +0 -1
  442. package/models/components/sendfunds.js +0 -68
  443. package/models/components/sendfunds.js.map +0 -1
  444. package/models/components/sendfundsach.d.ts +0 -18
  445. package/models/components/sendfundsach.d.ts.map +0 -1
  446. package/models/components/sendfundsach.js +0 -59
  447. package/models/components/sendfundsach.js.map +0 -1
  448. package/models/components/sendfundsacherror.d.ts +0 -18
  449. package/models/components/sendfundsacherror.d.ts.map +0 -1
  450. package/models/components/sendfundsacherror.js +0 -59
  451. package/models/components/sendfundsacherror.js.map +0 -1
  452. package/models/components/sendfundserror.d.ts +0 -27
  453. package/models/components/sendfundserror.d.ts.map +0 -1
  454. package/models/components/sendfundserror.js +0 -68
  455. package/models/components/sendfundserror.js.map +0 -1
  456. package/models/components/sendfundsinstantbank.d.ts +0 -18
  457. package/models/components/sendfundsinstantbank.d.ts.map +0 -1
  458. package/models/components/sendfundsinstantbank.js +0 -59
  459. package/models/components/sendfundsinstantbank.js.map +0 -1
  460. package/models/components/sendfundsinstantbankerror.d.ts +0 -18
  461. package/models/components/sendfundsinstantbankerror.d.ts.map +0 -1
  462. package/models/components/sendfundsinstantbankerror.js +0 -59
  463. package/models/components/sendfundsinstantbankerror.js.map +0 -1
  464. package/models/components/sendfundspushtocard.d.ts +0 -18
  465. package/models/components/sendfundspushtocard.d.ts.map +0 -1
  466. package/models/components/sendfundspushtocard.js +0 -59
  467. package/models/components/sendfundspushtocard.js.map +0 -1
  468. package/models/components/sendfundspushtocarderror.d.ts +0 -18
  469. package/models/components/sendfundspushtocarderror.d.ts.map +0 -1
  470. package/models/components/sendfundspushtocarderror.js +0 -59
  471. package/models/components/sendfundspushtocarderror.js.map +0 -1
  472. package/models/components/sendfundsrtp.d.ts +0 -18
  473. package/models/components/sendfundsrtp.d.ts.map +0 -1
  474. package/models/components/sendfundsrtp.js +0 -59
  475. package/models/components/sendfundsrtp.js.map +0 -1
  476. package/models/components/sendfundsrtperror.d.ts +0 -18
  477. package/models/components/sendfundsrtperror.d.ts.map +0 -1
  478. package/models/components/sendfundsrtperror.js +0 -59
  479. package/models/components/sendfundsrtperror.js.map +0 -1
  480. package/models/components/submissionintent.d.ts +0 -12
  481. package/models/components/submissionintent.d.ts.map +0 -1
  482. package/models/components/submissionintent.js +0 -49
  483. package/models/components/submissionintent.js.map +0 -1
  484. package/models/components/terminalcard.d.ts +0 -83
  485. package/models/components/terminalcard.d.ts.map +0 -1
  486. package/models/components/terminalcard.js +0 -84
  487. package/models/components/terminalcard.js.map +0 -1
  488. package/models/components/ticket.d.ts +0 -37
  489. package/models/components/ticket.d.ts.map +0 -1
  490. package/models/components/ticket.js +0 -80
  491. package/models/components/ticket.js.map +0 -1
  492. package/models/components/ticketcontact.d.ts +0 -19
  493. package/models/components/ticketcontact.d.ts.map +0 -1
  494. package/models/components/ticketcontact.js +0 -60
  495. package/models/components/ticketcontact.js.map +0 -1
  496. package/models/components/ticketmessage.d.ts +0 -21
  497. package/models/components/ticketmessage.d.ts.map +0 -1
  498. package/models/components/ticketmessage.js +0 -62
  499. package/models/components/ticketmessage.js.map +0 -1
  500. package/models/components/updateinvoice.d.ts +0 -40
  501. package/models/components/updateinvoice.d.ts.map +0 -1
  502. package/models/components/updateinvoice.js +0 -71
  503. package/models/components/updateinvoice.js.map +0 -1
  504. package/models/components/updateticket.d.ts +0 -21
  505. package/models/components/updateticket.d.ts.map +0 -1
  506. package/models/components/updateticket.js +0 -59
  507. package/models/components/updateticket.js.map +0 -1
  508. package/models/components/updateticketstatus.d.ts +0 -11
  509. package/models/components/updateticketstatus.d.ts.map +0 -1
  510. package/models/components/updateticketstatus.js +0 -48
  511. package/models/components/updateticketstatus.js.map +0 -1
  512. package/models/components/upsertunderwriting.d.ts +0 -39
  513. package/models/components/upsertunderwriting.d.ts.map +0 -1
  514. package/models/components/upsertunderwriting.js +0 -81
  515. package/models/components/upsertunderwriting.js.map +0 -1
  516. package/models/components/volumesharebycustomertype.d.ts +0 -21
  517. package/models/components/volumesharebycustomertype.d.ts.map +0 -1
  518. package/models/components/volumesharebycustomertype.js +0 -62
  519. package/models/components/volumesharebycustomertype.js.map +0 -1
  520. package/models/components/volumesharebycustomertypeerror.d.ts +0 -21
  521. package/models/components/volumesharebycustomertypeerror.d.ts.map +0 -1
  522. package/models/components/volumesharebycustomertypeerror.js +0 -62
  523. package/models/components/volumesharebycustomertypeerror.js.map +0 -1
  524. package/models/errors/createinvoiceerror.d.ts +0 -40
  525. package/models/errors/createinvoiceerror.d.ts.map +0 -1
  526. package/models/errors/createinvoiceerror.js +0 -100
  527. package/models/errors/createinvoiceerror.js.map +0 -1
  528. package/models/errors/createinvoicepaymenterror.d.ts +0 -34
  529. package/models/errors/createinvoicepaymenterror.d.ts.map +0 -1
  530. package/models/errors/createinvoicepaymenterror.js +0 -88
  531. package/models/errors/createinvoicepaymenterror.js.map +0 -1
  532. package/models/errors/createticketerror.d.ts +0 -36
  533. package/models/errors/createticketerror.d.ts.map +0 -1
  534. package/models/errors/createticketerror.js +0 -90
  535. package/models/errors/createticketerror.js.map +0 -1
  536. package/models/errors/listinvoicesvalidationerror.d.ts +0 -45
  537. package/models/errors/listinvoicesvalidationerror.d.ts.map +0 -1
  538. package/models/errors/listinvoicesvalidationerror.js +0 -107
  539. package/models/errors/listinvoicesvalidationerror.js.map +0 -1
  540. package/models/errors/updateinvoiceerror.d.ts +0 -40
  541. package/models/errors/updateinvoiceerror.d.ts.map +0 -1
  542. package/models/errors/updateinvoiceerror.js +0 -99
  543. package/models/errors/updateinvoiceerror.js.map +0 -1
  544. package/models/errors/updateticketerror.d.ts +0 -24
  545. package/models/errors/updateticketerror.d.ts.map +0 -1
  546. package/models/errors/updateticketerror.js +0 -75
  547. package/models/errors/updateticketerror.js.map +0 -1
  548. package/models/errors/upsertunderwritingerror.d.ts +0 -64
  549. package/models/errors/upsertunderwritingerror.d.ts.map +0 -1
  550. package/models/errors/upsertunderwritingerror.js +0 -143
  551. package/models/errors/upsertunderwritingerror.js.map +0 -1
  552. package/models/operations/createinvoice.d.ts +0 -66
  553. package/models/operations/createinvoice.d.ts.map +0 -1
  554. package/models/operations/createinvoice.js +0 -122
  555. package/models/operations/createinvoice.js.map +0 -1
  556. package/models/operations/createinvoicepayment.d.ts +0 -68
  557. package/models/operations/createinvoicepayment.d.ts.map +0 -1
  558. package/models/operations/createinvoicepayment.js +0 -124
  559. package/models/operations/createinvoicepayment.js.map +0 -1
  560. package/models/operations/createticket.d.ts +0 -66
  561. package/models/operations/createticket.d.ts.map +0 -1
  562. package/models/operations/createticket.js +0 -122
  563. package/models/operations/createticket.js.map +0 -1
  564. package/models/operations/getinvoice.d.ts +0 -66
  565. package/models/operations/getinvoice.d.ts.map +0 -1
  566. package/models/operations/getinvoice.js +0 -114
  567. package/models/operations/getinvoice.js.map +0 -1
  568. package/models/operations/getticket.d.ts +0 -66
  569. package/models/operations/getticket.d.ts.map +0 -1
  570. package/models/operations/getticket.js +0 -114
  571. package/models/operations/getticket.js.map +0 -1
  572. package/models/operations/listinvoicepayments.d.ts +0 -66
  573. package/models/operations/listinvoicepayments.d.ts.map +0 -1
  574. package/models/operations/listinvoicepayments.js +0 -114
  575. package/models/operations/listinvoicepayments.js.map +0 -1
  576. package/models/operations/listinvoices.d.ts +0 -80
  577. package/models/operations/listinvoices.d.ts.map +0 -1
  578. package/models/operations/listinvoices.js +0 -128
  579. package/models/operations/listinvoices.js.map +0 -1
  580. package/models/operations/listticketmessages.d.ts +0 -66
  581. package/models/operations/listticketmessages.d.ts.map +0 -1
  582. package/models/operations/listticketmessages.js +0 -114
  583. package/models/operations/listticketmessages.js.map +0 -1
  584. package/models/operations/listtickets.d.ts +0 -90
  585. package/models/operations/listtickets.d.ts.map +0 -1
  586. package/models/operations/listtickets.js +0 -138
  587. package/models/operations/listtickets.js.map +0 -1
  588. package/models/operations/saveunderwriting.d.ts +0 -66
  589. package/models/operations/saveunderwriting.d.ts.map +0 -1
  590. package/models/operations/saveunderwriting.js +0 -122
  591. package/models/operations/saveunderwriting.js.map +0 -1
  592. package/models/operations/updateinvoice.d.ts +0 -68
  593. package/models/operations/updateinvoice.d.ts.map +0 -1
  594. package/models/operations/updateinvoice.js +0 -124
  595. package/models/operations/updateinvoice.js.map +0 -1
  596. package/models/operations/updateticket.d.ts +0 -68
  597. package/models/operations/updateticket.d.ts.map +0 -1
  598. package/models/operations/updateticket.js +0 -124
  599. package/models/operations/updateticket.js.map +0 -1
  600. package/sdk/invoices.d.ts +0 -48
  601. package/sdk/invoices.d.ts.map +0 -1
  602. package/sdk/invoices.js +0 -73
  603. package/sdk/invoices.js.map +0 -1
  604. package/sdk/support.d.ts +0 -55
  605. package/sdk/support.d.ts.map +0 -1
  606. package/sdk/support.js +0 -77
  607. package/sdk/support.js.map +0 -1
  608. package/src/funcs/invoicesCreateInvoice.ts +0 -201
  609. package/src/funcs/invoicesCreateInvoicePayment.ts +0 -213
  610. package/src/funcs/invoicesGetInvoice.ts +0 -185
  611. package/src/funcs/invoicesListInvoicePayments.ts +0 -186
  612. package/src/funcs/invoicesListInvoices.ts +0 -198
  613. package/src/funcs/invoicesUpdateInvoice.ts +0 -207
  614. package/src/funcs/supportCreateTicket.ts +0 -204
  615. package/src/funcs/supportGetTicket.ts +0 -188
  616. package/src/funcs/supportListTicketMessages.ts +0 -188
  617. package/src/funcs/supportListTickets.ts +0 -190
  618. package/src/funcs/supportUpdateTicket.ts +0 -210
  619. package/src/funcs/underwritingSave.ts +0 -207
  620. package/src/mcp-server/tools/invoicesCreateInvoice.ts +0 -38
  621. package/src/mcp-server/tools/invoicesCreateInvoicePayment.ts +0 -40
  622. package/src/mcp-server/tools/invoicesGetInvoice.ts +0 -38
  623. package/src/mcp-server/tools/invoicesListInvoicePayments.ts +0 -38
  624. package/src/mcp-server/tools/invoicesListInvoices.ts +0 -38
  625. package/src/mcp-server/tools/invoicesUpdateInvoice.ts +0 -38
  626. package/src/mcp-server/tools/supportCreateTicket.ts +0 -41
  627. package/src/mcp-server/tools/supportGetTicket.ts +0 -41
  628. package/src/mcp-server/tools/supportListTicketMessages.ts +0 -41
  629. package/src/mcp-server/tools/supportListTickets.ts +0 -41
  630. package/src/mcp-server/tools/supportUpdateTicket.ts +0 -41
  631. package/src/mcp-server/tools/underwritingSave.ts +0 -40
  632. package/src/models/components/amountdecimalupdate.ts +0 -65
  633. package/src/models/components/businesspresence.ts +0 -25
  634. package/src/models/components/cardacceptancemethods.ts +0 -71
  635. package/src/models/components/cardacceptancemethodserror.ts +0 -59
  636. package/src/models/components/cardpresentpaymentpaymentmethod.ts +0 -76
  637. package/src/models/components/collectfunds.ts +0 -63
  638. package/src/models/components/collectfundsach.ts +0 -55
  639. package/src/models/components/collectfundsacherror.ts +0 -57
  640. package/src/models/components/collectfundscardpayments.ts +0 -93
  641. package/src/models/components/collectfundscardpaymentserror.ts +0 -87
  642. package/src/models/components/collectfundserror.ts +0 -67
  643. package/src/models/components/createaccounttype.ts +0 -21
  644. package/src/models/components/createinvoice.ts +0 -87
  645. package/src/models/components/createinvoicelineitem.ts +0 -104
  646. package/src/models/components/createinvoicelineitemoption.ts +0 -93
  647. package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +0 -77
  648. package/src/models/components/createinvoicelineitems.ts +0 -63
  649. package/src/models/components/createinvoicelineitemsupdate.ts +0 -65
  650. package/src/models/components/createinvoicelineitemsvalidationerror.ts +0 -64
  651. package/src/models/components/createinvoicelineitemvalidationerror.ts +0 -88
  652. package/src/models/components/createinvoicepayment.ts +0 -70
  653. package/src/models/components/createticket.ts +0 -72
  654. package/src/models/components/createticketcontacterror.ts +0 -55
  655. package/src/models/components/entrymode.ts +0 -24
  656. package/src/models/components/estimatedactivity.ts +0 -67
  657. package/src/models/components/estimatedactivityerror.ts +0 -59
  658. package/src/models/components/fulfillment.ts +0 -61
  659. package/src/models/components/fulfillmenterror.ts +0 -55
  660. package/src/models/components/fulfillmentmethod.ts +0 -28
  661. package/src/models/components/fulfillmenttimeframe.ts +0 -27
  662. package/src/models/components/geographicreach.ts +0 -22
  663. package/src/models/components/guestprofile.ts +0 -70
  664. package/src/models/components/industrytaxonomy.ts +0 -85
  665. package/src/models/components/instantbankcreditpaymentmethod.ts +0 -76
  666. package/src/models/components/invoice.ts +0 -190
  667. package/src/models/components/invoiceexternalpayment.ts +0 -60
  668. package/src/models/components/invoicelineitem.ts +0 -108
  669. package/src/models/components/invoicelineitemimagemetadata.ts +0 -77
  670. package/src/models/components/invoicelineitemoption.ts +0 -97
  671. package/src/models/components/invoicelineitemoptionvalidationerror.ts +0 -72
  672. package/src/models/components/invoicelineitems.ts +0 -63
  673. package/src/models/components/invoicelineitemsvalidationerror.ts +0 -59
  674. package/src/models/components/invoicelineitemvalidationerror.ts +0 -85
  675. package/src/models/components/invoicepayment.ts +0 -92
  676. package/src/models/components/invoicepaymenttype.ts +0 -21
  677. package/src/models/components/invoicetransferpayment.ts +0 -54
  678. package/src/models/components/itemlistnextpage.ts +0 -54
  679. package/src/models/components/moneytransfer.ts +0 -63
  680. package/src/models/components/moneytransfererror.ts +0 -67
  681. package/src/models/components/moneytransferpullfromcard.ts +0 -57
  682. package/src/models/components/moneytransferpullfromcarderror.ts +0 -59
  683. package/src/models/components/moneytransferpushtocard.ts +0 -57
  684. package/src/models/components/moneytransferpushtocarderror.ts +0 -59
  685. package/src/models/components/monthlyvolumerange.ts +0 -33
  686. package/src/models/components/pendinglitigation.ts +0 -30
  687. package/src/models/components/refundpolicy.ts +0 -26
  688. package/src/models/components/sendfunds.ts +0 -83
  689. package/src/models/components/sendfundsach.ts +0 -53
  690. package/src/models/components/sendfundsacherror.ts +0 -57
  691. package/src/models/components/sendfundserror.ts +0 -83
  692. package/src/models/components/sendfundsinstantbank.ts +0 -57
  693. package/src/models/components/sendfundsinstantbankerror.ts +0 -57
  694. package/src/models/components/sendfundspushtocard.ts +0 -57
  695. package/src/models/components/sendfundspushtocarderror.ts +0 -57
  696. package/src/models/components/sendfundsrtp.ts +0 -53
  697. package/src/models/components/sendfundsrtperror.ts +0 -57
  698. package/src/models/components/submissionintent.ts +0 -21
  699. package/src/models/components/terminalcard.ts +0 -152
  700. package/src/models/components/ticket.ts +0 -98
  701. package/src/models/components/ticketcontact.ts +0 -51
  702. package/src/models/components/ticketmessage.ts +0 -55
  703. package/src/models/components/updateinvoice.ts +0 -98
  704. package/src/models/components/updateticket.ts +0 -55
  705. package/src/models/components/updateticketstatus.ts +0 -20
  706. package/src/models/components/upsertunderwriting.ts +0 -124
  707. package/src/models/components/volumesharebycustomertype.ts +0 -59
  708. package/src/models/components/volumesharebycustomertypeerror.ts +0 -61
  709. package/src/models/errors/createinvoiceerror.ts +0 -104
  710. package/src/models/errors/createinvoicepaymenterror.ts +0 -85
  711. package/src/models/errors/createticketerror.ts +0 -89
  712. package/src/models/errors/listinvoicesvalidationerror.ts +0 -116
  713. package/src/models/errors/updateinvoiceerror.ts +0 -100
  714. package/src/models/errors/updateticketerror.ts +0 -66
  715. package/src/models/errors/upsertunderwritingerror.ts +0 -178
  716. package/src/models/operations/createinvoice.ts +0 -187
  717. package/src/models/operations/createinvoicepayment.ts +0 -197
  718. package/src/models/operations/createticket.ts +0 -187
  719. package/src/models/operations/getinvoice.ts +0 -179
  720. package/src/models/operations/getticket.ts +0 -179
  721. package/src/models/operations/listinvoicepayments.ts +0 -181
  722. package/src/models/operations/listinvoices.ts +0 -215
  723. package/src/models/operations/listticketmessages.ts +0 -179
  724. package/src/models/operations/listtickets.ts +0 -241
  725. package/src/models/operations/saveunderwriting.ts +0 -187
  726. package/src/models/operations/updateinvoice.ts +0 -191
  727. package/src/models/operations/updateticket.ts +0 -191
  728. package/src/sdk/invoices.ts +0 -118
  729. package/src/sdk/support.ts +0 -114
@@ -1,104 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AmountDecimal,
11
- AmountDecimal$inboundSchema,
12
- AmountDecimal$Outbound,
13
- AmountDecimal$outboundSchema,
14
- } from "./amountdecimal.js";
15
- import {
16
- CreateInvoiceLineItemOption,
17
- CreateInvoiceLineItemOption$inboundSchema,
18
- CreateInvoiceLineItemOption$Outbound,
19
- CreateInvoiceLineItemOption$outboundSchema,
20
- } from "./createinvoicelineitemoption.js";
21
-
22
- /**
23
- * Represents a single item in an invoice, including optional modifiers and quantity.
24
- */
25
- export type CreateInvoiceLineItem = {
26
- /**
27
- * The name of the item.
28
- */
29
- name: string;
30
- /**
31
- * The base price of the item before applying option modifiers.
32
- */
33
- basePrice: AmountDecimal;
34
- /**
35
- * The quantity of this item.
36
- */
37
- quantity: number;
38
- /**
39
- * Optional unique identifier associating the line item with a product.
40
- */
41
- productID?: string | undefined;
42
- /**
43
- * Optional list of modifiers applied to this item (e.g., toppings, upgrades, customizations).
44
- */
45
- options?: Array<CreateInvoiceLineItemOption> | undefined;
46
- /**
47
- * Optional list of images associated with this line item.
48
- */
49
- imageIDs?: Array<string> | undefined;
50
- };
51
-
52
- /** @internal */
53
- export const CreateInvoiceLineItem$inboundSchema: z.ZodType<
54
- CreateInvoiceLineItem,
55
- z.ZodTypeDef,
56
- unknown
57
- > = z.object({
58
- name: z.string(),
59
- basePrice: AmountDecimal$inboundSchema,
60
- quantity: z.number().int(),
61
- productID: z.string().optional(),
62
- options: z.array(CreateInvoiceLineItemOption$inboundSchema).optional(),
63
- imageIDs: z.array(z.string()).optional(),
64
- });
65
- /** @internal */
66
- export type CreateInvoiceLineItem$Outbound = {
67
- name: string;
68
- basePrice: AmountDecimal$Outbound;
69
- quantity: number;
70
- productID?: string | undefined;
71
- options?: Array<CreateInvoiceLineItemOption$Outbound> | undefined;
72
- imageIDs?: Array<string> | undefined;
73
- };
74
-
75
- /** @internal */
76
- export const CreateInvoiceLineItem$outboundSchema: z.ZodType<
77
- CreateInvoiceLineItem$Outbound,
78
- z.ZodTypeDef,
79
- CreateInvoiceLineItem
80
- > = z.object({
81
- name: z.string(),
82
- basePrice: AmountDecimal$outboundSchema,
83
- quantity: z.number().int(),
84
- productID: z.string().optional(),
85
- options: z.array(CreateInvoiceLineItemOption$outboundSchema).optional(),
86
- imageIDs: z.array(z.string()).optional(),
87
- });
88
-
89
- export function createInvoiceLineItemToJSON(
90
- createInvoiceLineItem: CreateInvoiceLineItem,
91
- ): string {
92
- return JSON.stringify(
93
- CreateInvoiceLineItem$outboundSchema.parse(createInvoiceLineItem),
94
- );
95
- }
96
- export function createInvoiceLineItemFromJSON(
97
- jsonString: string,
98
- ): SafeParseResult<CreateInvoiceLineItem, SDKValidationError> {
99
- return safeParse(
100
- jsonString,
101
- (x) => CreateInvoiceLineItem$inboundSchema.parse(JSON.parse(x)),
102
- `Failed to parse 'CreateInvoiceLineItem' from JSON`,
103
- );
104
- }
@@ -1,93 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AmountDecimal,
11
- AmountDecimal$inboundSchema,
12
- AmountDecimal$Outbound,
13
- AmountDecimal$outboundSchema,
14
- } from "./amountdecimal.js";
15
-
16
- /**
17
- * Represents a modifier or option applied to a line item.
18
- */
19
- export type CreateInvoiceLineItemOption = {
20
- /**
21
- * The name of the option or modifier.
22
- */
23
- name: string;
24
- /**
25
- * The quantity of this option.
26
- */
27
- quantity: number;
28
- /**
29
- * Optional price modification applied by this option. Can be positive, negative, or zero.
30
- */
31
- priceModifier?: AmountDecimal | undefined;
32
- /**
33
- * Optional group identifier to categorize related options (e.g., 'toppings').
34
- */
35
- group?: string | undefined;
36
- /**
37
- * Optional list of images associated with this line item.
38
- */
39
- imageIDs?: Array<string> | undefined;
40
- };
41
-
42
- /** @internal */
43
- export const CreateInvoiceLineItemOption$inboundSchema: z.ZodType<
44
- CreateInvoiceLineItemOption,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- name: z.string(),
49
- quantity: z.number().int(),
50
- priceModifier: AmountDecimal$inboundSchema.optional(),
51
- group: z.string().optional(),
52
- imageIDs: z.array(z.string()).optional(),
53
- });
54
- /** @internal */
55
- export type CreateInvoiceLineItemOption$Outbound = {
56
- name: string;
57
- quantity: number;
58
- priceModifier?: AmountDecimal$Outbound | undefined;
59
- group?: string | undefined;
60
- imageIDs?: Array<string> | undefined;
61
- };
62
-
63
- /** @internal */
64
- export const CreateInvoiceLineItemOption$outboundSchema: z.ZodType<
65
- CreateInvoiceLineItemOption$Outbound,
66
- z.ZodTypeDef,
67
- CreateInvoiceLineItemOption
68
- > = z.object({
69
- name: z.string(),
70
- quantity: z.number().int(),
71
- priceModifier: AmountDecimal$outboundSchema.optional(),
72
- group: z.string().optional(),
73
- imageIDs: z.array(z.string()).optional(),
74
- });
75
-
76
- export function createInvoiceLineItemOptionToJSON(
77
- createInvoiceLineItemOption: CreateInvoiceLineItemOption,
78
- ): string {
79
- return JSON.stringify(
80
- CreateInvoiceLineItemOption$outboundSchema.parse(
81
- createInvoiceLineItemOption,
82
- ),
83
- );
84
- }
85
- export function createInvoiceLineItemOptionFromJSON(
86
- jsonString: string,
87
- ): SafeParseResult<CreateInvoiceLineItemOption, SDKValidationError> {
88
- return safeParse(
89
- jsonString,
90
- (x) => CreateInvoiceLineItemOption$inboundSchema.parse(JSON.parse(x)),
91
- `Failed to parse 'CreateInvoiceLineItemOption' from JSON`,
92
- );
93
- }
@@ -1,77 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AmountDecimalValidationError,
11
- AmountDecimalValidationError$inboundSchema,
12
- AmountDecimalValidationError$Outbound,
13
- AmountDecimalValidationError$outboundSchema,
14
- } from "./amountdecimalvalidationerror.js";
15
-
16
- export type CreateInvoiceLineItemOptionValidationError = {
17
- name?: string | undefined;
18
- group?: string | undefined;
19
- priceModifier?: AmountDecimalValidationError | undefined;
20
- quantity?: string | undefined;
21
- };
22
-
23
- /** @internal */
24
- export const CreateInvoiceLineItemOptionValidationError$inboundSchema:
25
- z.ZodType<CreateInvoiceLineItemOptionValidationError, z.ZodTypeDef, unknown> =
26
- z.object({
27
- name: z.string().optional(),
28
- group: z.string().optional(),
29
- priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
30
- quantity: z.string().optional(),
31
- });
32
- /** @internal */
33
- export type CreateInvoiceLineItemOptionValidationError$Outbound = {
34
- name?: string | undefined;
35
- group?: string | undefined;
36
- priceModifier?: AmountDecimalValidationError$Outbound | undefined;
37
- quantity?: string | undefined;
38
- };
39
-
40
- /** @internal */
41
- export const CreateInvoiceLineItemOptionValidationError$outboundSchema:
42
- z.ZodType<
43
- CreateInvoiceLineItemOptionValidationError$Outbound,
44
- z.ZodTypeDef,
45
- CreateInvoiceLineItemOptionValidationError
46
- > = z.object({
47
- name: z.string().optional(),
48
- group: z.string().optional(),
49
- priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
50
- quantity: z.string().optional(),
51
- });
52
-
53
- export function createInvoiceLineItemOptionValidationErrorToJSON(
54
- createInvoiceLineItemOptionValidationError:
55
- CreateInvoiceLineItemOptionValidationError,
56
- ): string {
57
- return JSON.stringify(
58
- CreateInvoiceLineItemOptionValidationError$outboundSchema.parse(
59
- createInvoiceLineItemOptionValidationError,
60
- ),
61
- );
62
- }
63
- export function createInvoiceLineItemOptionValidationErrorFromJSON(
64
- jsonString: string,
65
- ): SafeParseResult<
66
- CreateInvoiceLineItemOptionValidationError,
67
- SDKValidationError
68
- > {
69
- return safeParse(
70
- jsonString,
71
- (x) =>
72
- CreateInvoiceLineItemOptionValidationError$inboundSchema.parse(
73
- JSON.parse(x),
74
- ),
75
- `Failed to parse 'CreateInvoiceLineItemOptionValidationError' from JSON`,
76
- );
77
- }
@@ -1,63 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- CreateInvoiceLineItem,
11
- CreateInvoiceLineItem$inboundSchema,
12
- CreateInvoiceLineItem$Outbound,
13
- CreateInvoiceLineItem$outboundSchema,
14
- } from "./createinvoicelineitem.js";
15
-
16
- /**
17
- * A collection of line items for an invoice.
18
- */
19
- export type CreateInvoiceLineItems = {
20
- /**
21
- * The list of line items.
22
- */
23
- items: Array<CreateInvoiceLineItem>;
24
- };
25
-
26
- /** @internal */
27
- export const CreateInvoiceLineItems$inboundSchema: z.ZodType<
28
- CreateInvoiceLineItems,
29
- z.ZodTypeDef,
30
- unknown
31
- > = z.object({
32
- items: z.array(CreateInvoiceLineItem$inboundSchema),
33
- });
34
- /** @internal */
35
- export type CreateInvoiceLineItems$Outbound = {
36
- items: Array<CreateInvoiceLineItem$Outbound>;
37
- };
38
-
39
- /** @internal */
40
- export const CreateInvoiceLineItems$outboundSchema: z.ZodType<
41
- CreateInvoiceLineItems$Outbound,
42
- z.ZodTypeDef,
43
- CreateInvoiceLineItems
44
- > = z.object({
45
- items: z.array(CreateInvoiceLineItem$outboundSchema),
46
- });
47
-
48
- export function createInvoiceLineItemsToJSON(
49
- createInvoiceLineItems: CreateInvoiceLineItems,
50
- ): string {
51
- return JSON.stringify(
52
- CreateInvoiceLineItems$outboundSchema.parse(createInvoiceLineItems),
53
- );
54
- }
55
- export function createInvoiceLineItemsFromJSON(
56
- jsonString: string,
57
- ): SafeParseResult<CreateInvoiceLineItems, SDKValidationError> {
58
- return safeParse(
59
- jsonString,
60
- (x) => CreateInvoiceLineItems$inboundSchema.parse(JSON.parse(x)),
61
- `Failed to parse 'CreateInvoiceLineItems' from JSON`,
62
- );
63
- }
@@ -1,65 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- CreateInvoiceLineItem,
11
- CreateInvoiceLineItem$inboundSchema,
12
- CreateInvoiceLineItem$Outbound,
13
- CreateInvoiceLineItem$outboundSchema,
14
- } from "./createinvoicelineitem.js";
15
-
16
- /**
17
- * A collection of line items for an invoice.
18
- */
19
- export type CreateInvoiceLineItemsUpdate = {
20
- /**
21
- * The list of line items.
22
- */
23
- items?: Array<CreateInvoiceLineItem> | undefined;
24
- };
25
-
26
- /** @internal */
27
- export const CreateInvoiceLineItemsUpdate$inboundSchema: z.ZodType<
28
- CreateInvoiceLineItemsUpdate,
29
- z.ZodTypeDef,
30
- unknown
31
- > = z.object({
32
- items: z.array(CreateInvoiceLineItem$inboundSchema).optional(),
33
- });
34
- /** @internal */
35
- export type CreateInvoiceLineItemsUpdate$Outbound = {
36
- items?: Array<CreateInvoiceLineItem$Outbound> | undefined;
37
- };
38
-
39
- /** @internal */
40
- export const CreateInvoiceLineItemsUpdate$outboundSchema: z.ZodType<
41
- CreateInvoiceLineItemsUpdate$Outbound,
42
- z.ZodTypeDef,
43
- CreateInvoiceLineItemsUpdate
44
- > = z.object({
45
- items: z.array(CreateInvoiceLineItem$outboundSchema).optional(),
46
- });
47
-
48
- export function createInvoiceLineItemsUpdateToJSON(
49
- createInvoiceLineItemsUpdate: CreateInvoiceLineItemsUpdate,
50
- ): string {
51
- return JSON.stringify(
52
- CreateInvoiceLineItemsUpdate$outboundSchema.parse(
53
- createInvoiceLineItemsUpdate,
54
- ),
55
- );
56
- }
57
- export function createInvoiceLineItemsUpdateFromJSON(
58
- jsonString: string,
59
- ): SafeParseResult<CreateInvoiceLineItemsUpdate, SDKValidationError> {
60
- return safeParse(
61
- jsonString,
62
- (x) => CreateInvoiceLineItemsUpdate$inboundSchema.parse(JSON.parse(x)),
63
- `Failed to parse 'CreateInvoiceLineItemsUpdate' from JSON`,
64
- );
65
- }
@@ -1,64 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- CreateInvoiceLineItemValidationError,
11
- CreateInvoiceLineItemValidationError$inboundSchema,
12
- CreateInvoiceLineItemValidationError$Outbound,
13
- CreateInvoiceLineItemValidationError$outboundSchema,
14
- } from "./createinvoicelineitemvalidationerror.js";
15
-
16
- export type CreateInvoiceLineItemsValidationError = {
17
- items?: { [k: string]: CreateInvoiceLineItemValidationError } | undefined;
18
- };
19
-
20
- /** @internal */
21
- export const CreateInvoiceLineItemsValidationError$inboundSchema: z.ZodType<
22
- CreateInvoiceLineItemsValidationError,
23
- z.ZodTypeDef,
24
- unknown
25
- > = z.object({
26
- items: z.record(CreateInvoiceLineItemValidationError$inboundSchema)
27
- .optional(),
28
- });
29
- /** @internal */
30
- export type CreateInvoiceLineItemsValidationError$Outbound = {
31
- items?:
32
- | { [k: string]: CreateInvoiceLineItemValidationError$Outbound }
33
- | undefined;
34
- };
35
-
36
- /** @internal */
37
- export const CreateInvoiceLineItemsValidationError$outboundSchema: z.ZodType<
38
- CreateInvoiceLineItemsValidationError$Outbound,
39
- z.ZodTypeDef,
40
- CreateInvoiceLineItemsValidationError
41
- > = z.object({
42
- items: z.record(CreateInvoiceLineItemValidationError$outboundSchema)
43
- .optional(),
44
- });
45
-
46
- export function createInvoiceLineItemsValidationErrorToJSON(
47
- createInvoiceLineItemsValidationError: CreateInvoiceLineItemsValidationError,
48
- ): string {
49
- return JSON.stringify(
50
- CreateInvoiceLineItemsValidationError$outboundSchema.parse(
51
- createInvoiceLineItemsValidationError,
52
- ),
53
- );
54
- }
55
- export function createInvoiceLineItemsValidationErrorFromJSON(
56
- jsonString: string,
57
- ): SafeParseResult<CreateInvoiceLineItemsValidationError, SDKValidationError> {
58
- return safeParse(
59
- jsonString,
60
- (x) =>
61
- CreateInvoiceLineItemsValidationError$inboundSchema.parse(JSON.parse(x)),
62
- `Failed to parse 'CreateInvoiceLineItemsValidationError' from JSON`,
63
- );
64
- }
@@ -1,88 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AmountDecimalValidationError,
11
- AmountDecimalValidationError$inboundSchema,
12
- AmountDecimalValidationError$Outbound,
13
- AmountDecimalValidationError$outboundSchema,
14
- } from "./amountdecimalvalidationerror.js";
15
- import {
16
- CreateInvoiceLineItemOptionValidationError,
17
- CreateInvoiceLineItemOptionValidationError$inboundSchema,
18
- CreateInvoiceLineItemOptionValidationError$Outbound,
19
- CreateInvoiceLineItemOptionValidationError$outboundSchema,
20
- } from "./createinvoicelineitemoptionvalidationerror.js";
21
-
22
- export type CreateInvoiceLineItemValidationError = {
23
- productID?: string | undefined;
24
- name?: string | undefined;
25
- basePrice?: AmountDecimalValidationError | undefined;
26
- options?:
27
- | { [k: string]: CreateInvoiceLineItemOptionValidationError }
28
- | undefined;
29
- quantity?: string | undefined;
30
- };
31
-
32
- /** @internal */
33
- export const CreateInvoiceLineItemValidationError$inboundSchema: z.ZodType<
34
- CreateInvoiceLineItemValidationError,
35
- z.ZodTypeDef,
36
- unknown
37
- > = z.object({
38
- productID: z.string().optional(),
39
- name: z.string().optional(),
40
- basePrice: AmountDecimalValidationError$inboundSchema.optional(),
41
- options: z.record(CreateInvoiceLineItemOptionValidationError$inboundSchema)
42
- .optional(),
43
- quantity: z.string().optional(),
44
- });
45
- /** @internal */
46
- export type CreateInvoiceLineItemValidationError$Outbound = {
47
- productID?: string | undefined;
48
- name?: string | undefined;
49
- basePrice?: AmountDecimalValidationError$Outbound | undefined;
50
- options?:
51
- | { [k: string]: CreateInvoiceLineItemOptionValidationError$Outbound }
52
- | undefined;
53
- quantity?: string | undefined;
54
- };
55
-
56
- /** @internal */
57
- export const CreateInvoiceLineItemValidationError$outboundSchema: z.ZodType<
58
- CreateInvoiceLineItemValidationError$Outbound,
59
- z.ZodTypeDef,
60
- CreateInvoiceLineItemValidationError
61
- > = z.object({
62
- productID: z.string().optional(),
63
- name: z.string().optional(),
64
- basePrice: AmountDecimalValidationError$outboundSchema.optional(),
65
- options: z.record(CreateInvoiceLineItemOptionValidationError$outboundSchema)
66
- .optional(),
67
- quantity: z.string().optional(),
68
- });
69
-
70
- export function createInvoiceLineItemValidationErrorToJSON(
71
- createInvoiceLineItemValidationError: CreateInvoiceLineItemValidationError,
72
- ): string {
73
- return JSON.stringify(
74
- CreateInvoiceLineItemValidationError$outboundSchema.parse(
75
- createInvoiceLineItemValidationError,
76
- ),
77
- );
78
- }
79
- export function createInvoiceLineItemValidationErrorFromJSON(
80
- jsonString: string,
81
- ): SafeParseResult<CreateInvoiceLineItemValidationError, SDKValidationError> {
82
- return safeParse(
83
- jsonString,
84
- (x) =>
85
- CreateInvoiceLineItemValidationError$inboundSchema.parse(JSON.parse(x)),
86
- `Failed to parse 'CreateInvoiceLineItemValidationError' from JSON`,
87
- );
88
- }
@@ -1,70 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AmountDecimal,
11
- AmountDecimal$inboundSchema,
12
- AmountDecimal$Outbound,
13
- AmountDecimal$outboundSchema,
14
- } from "./amountdecimal.js";
15
-
16
- export type CreateInvoicePayment = {
17
- foreignID?: string | undefined;
18
- amount: AmountDecimal;
19
- description?: string | undefined;
20
- paymentDate?: Date | undefined;
21
- };
22
-
23
- /** @internal */
24
- export const CreateInvoicePayment$inboundSchema: z.ZodType<
25
- CreateInvoicePayment,
26
- z.ZodTypeDef,
27
- unknown
28
- > = z.object({
29
- foreignID: z.string().optional(),
30
- amount: AmountDecimal$inboundSchema,
31
- description: z.string().optional(),
32
- paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
33
- .optional(),
34
- });
35
- /** @internal */
36
- export type CreateInvoicePayment$Outbound = {
37
- foreignID?: string | undefined;
38
- amount: AmountDecimal$Outbound;
39
- description?: string | undefined;
40
- paymentDate?: string | undefined;
41
- };
42
-
43
- /** @internal */
44
- export const CreateInvoicePayment$outboundSchema: z.ZodType<
45
- CreateInvoicePayment$Outbound,
46
- z.ZodTypeDef,
47
- CreateInvoicePayment
48
- > = z.object({
49
- foreignID: z.string().optional(),
50
- amount: AmountDecimal$outboundSchema,
51
- description: z.string().optional(),
52
- paymentDate: z.date().transform(v => v.toISOString()).optional(),
53
- });
54
-
55
- export function createInvoicePaymentToJSON(
56
- createInvoicePayment: CreateInvoicePayment,
57
- ): string {
58
- return JSON.stringify(
59
- CreateInvoicePayment$outboundSchema.parse(createInvoicePayment),
60
- );
61
- }
62
- export function createInvoicePaymentFromJSON(
63
- jsonString: string,
64
- ): SafeParseResult<CreateInvoicePayment, SDKValidationError> {
65
- return safeParse(
66
- jsonString,
67
- (x) => CreateInvoicePayment$inboundSchema.parse(JSON.parse(x)),
68
- `Failed to parse 'CreateInvoicePayment' from JSON`,
69
- );
70
- }
@@ -1,72 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- TicketContact,
11
- TicketContact$inboundSchema,
12
- TicketContact$Outbound,
13
- TicketContact$outboundSchema,
14
- } from "./ticketcontact.js";
15
-
16
- /**
17
- * Request to create a new support ticket.
18
- */
19
- export type CreateTicket = {
20
- title: string;
21
- body: string;
22
- author?: string | undefined;
23
- contact: TicketContact;
24
- foreignID?: string | undefined;
25
- };
26
-
27
- /** @internal */
28
- export const CreateTicket$inboundSchema: z.ZodType<
29
- CreateTicket,
30
- z.ZodTypeDef,
31
- unknown
32
- > = z.object({
33
- title: z.string(),
34
- body: z.string(),
35
- author: z.string().optional(),
36
- contact: TicketContact$inboundSchema,
37
- foreignID: z.string().optional(),
38
- });
39
- /** @internal */
40
- export type CreateTicket$Outbound = {
41
- title: string;
42
- body: string;
43
- author?: string | undefined;
44
- contact: TicketContact$Outbound;
45
- foreignID?: string | undefined;
46
- };
47
-
48
- /** @internal */
49
- export const CreateTicket$outboundSchema: z.ZodType<
50
- CreateTicket$Outbound,
51
- z.ZodTypeDef,
52
- CreateTicket
53
- > = z.object({
54
- title: z.string(),
55
- body: z.string(),
56
- author: z.string().optional(),
57
- contact: TicketContact$outboundSchema,
58
- foreignID: z.string().optional(),
59
- });
60
-
61
- export function createTicketToJSON(createTicket: CreateTicket): string {
62
- return JSON.stringify(CreateTicket$outboundSchema.parse(createTicket));
63
- }
64
- export function createTicketFromJSON(
65
- jsonString: string,
66
- ): SafeParseResult<CreateTicket, SDKValidationError> {
67
- return safeParse(
68
- jsonString,
69
- (x) => CreateTicket$inboundSchema.parse(JSON.parse(x)),
70
- `Failed to parse 'CreateTicket' from JSON`,
71
- );
72
- }