@greensecurity/javascript-sdk 0.48.0-beta.1 → 0.48.0-beta.10

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 (311) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/users.test.js +0 -3
  3. package/dist/commonjs/__tests__/users.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  5. package/dist/commonjs/__tests__/webhooks.test.js +5 -4
  6. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  7. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js +6 -0
  8. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js.map +1 -1
  9. package/dist/commonjs/__tests__/zoneDevicesList.test.js +9 -1
  10. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -1
  11. package/dist/commonjs/__tests__/zones.test.js +28 -4
  12. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  13. package/dist/commonjs/admin-funcs/doAdmin.d.ts +4 -3
  14. package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
  15. package/dist/commonjs/admin-funcs/doAdmin.js +12 -8
  16. package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
  17. package/dist/commonjs/admin-funcs/networksCreate.d.ts +3 -0
  18. package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -1
  19. package/dist/commonjs/admin-funcs/networksCreate.js +10 -3
  20. package/dist/commonjs/admin-funcs/networksCreate.js.map +1 -1
  21. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
  22. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
  23. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js +9 -0
  24. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
  25. package/dist/commonjs/admin-funcs/networksUpdate.d.ts +10 -0
  26. package/dist/commonjs/admin-funcs/networksUpdate.d.ts.map +1 -0
  27. package/dist/commonjs/admin-funcs/networksUpdate.js +14 -0
  28. package/dist/commonjs/admin-funcs/networksUpdate.js.map +1 -0
  29. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
  30. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
  31. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js +3 -8
  32. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
  33. package/dist/commonjs/funcs/alertsListAlerts.js +1 -0
  34. package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -1
  35. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +4 -1
  36. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/invoicesConvertQuote.js +6 -2
  38. package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -1
  39. package/dist/commonjs/funcs/invoicesListInvoices.d.ts +1 -0
  40. package/dist/commonjs/funcs/invoicesListInvoices.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/invoicesListInvoices.js +1 -0
  42. package/dist/commonjs/funcs/invoicesListInvoices.js.map +1 -1
  43. package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js +4 -0
  44. package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  45. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -7
  46. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  47. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +1 -7
  48. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  49. package/dist/commonjs/index.extras.d.ts +4 -0
  50. package/dist/commonjs/index.extras.d.ts.map +1 -1
  51. package/dist/commonjs/index.extras.js +5 -1
  52. package/dist/commonjs/index.extras.js.map +1 -1
  53. package/dist/commonjs/lib/config.d.ts +3 -3
  54. package/dist/commonjs/lib/config.js +3 -3
  55. package/dist/commonjs/lib/config.js.map +1 -1
  56. package/dist/commonjs/models/components/alert.d.ts +36 -2
  57. package/dist/commonjs/models/components/alert.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/alert.js +20 -1
  59. package/dist/commonjs/models/components/alert.js.map +1 -1
  60. package/dist/commonjs/models/components/invoice.d.ts +10 -0
  61. package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/invoice.js +8 -0
  63. package/dist/commonjs/models/components/invoice.js.map +1 -1
  64. package/dist/commonjs/models/components/invoicefinancialstatus.d.ts +1 -0
  65. package/dist/commonjs/models/components/invoicefinancialstatus.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/invoicefinancialstatus.js +1 -0
  67. package/dist/commonjs/models/components/invoicefinancialstatus.js.map +1 -1
  68. package/dist/commonjs/models/components/userdetails.d.ts +0 -22
  69. package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/userdetails.js +0 -6
  71. package/dist/commonjs/models/components/userdetails.js.map +1 -1
  72. package/dist/commonjs/models/components/userlocation.d.ts +0 -10
  73. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/userlocation.js +0 -8
  75. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  76. package/dist/commonjs/models/operations/convertquote.d.ts +21 -0
  77. package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/convertquote.js +18 -1
  79. package/dist/commonjs/models/operations/convertquote.js.map +1 -1
  80. package/dist/commonjs/models/operations/createinvoice.d.ts +25 -0
  81. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/createinvoice.js +10 -0
  83. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  84. package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts +19 -0
  85. package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/getvendorinvoicereceipt.js +16 -1
  87. package/dist/commonjs/models/operations/getvendorinvoicereceipt.js.map +1 -1
  88. package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -3
  89. package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/invoicesexport.js +2 -1
  91. package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
  92. package/dist/commonjs/models/operations/listalerts.d.ts +5 -0
  93. package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/listalerts.js +2 -0
  95. package/dist/commonjs/models/operations/listalerts.js.map +1 -1
  96. package/dist/commonjs/models/operations/listinvoices.d.ts +1 -1
  97. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +1 -1
  98. package/dist/commonjs/models/operations/updateuser.d.ts +2 -0
  99. package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
  100. package/dist/commonjs/models/operations/updateuser.js +1 -0
  101. package/dist/commonjs/models/operations/updateuser.js.map +1 -1
  102. package/dist/commonjs/react-query/alertsListAlerts.core.d.ts +2 -0
  103. package/dist/commonjs/react-query/alertsListAlerts.core.d.ts.map +1 -1
  104. package/dist/commonjs/react-query/alertsListAlerts.core.js +2 -0
  105. package/dist/commonjs/react-query/alertsListAlerts.core.js.map +1 -1
  106. package/dist/commonjs/react-query/alertsListAlerts.d.ts +2 -0
  107. package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -1
  108. package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -1
  109. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +4 -1
  110. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -1
  111. package/dist/commonjs/react-query/invoicesConvertQuote.js +4 -1
  112. package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -1
  113. package/dist/commonjs/react-query/invoicesListInvoices.d.ts +4 -0
  114. package/dist/commonjs/react-query/invoicesListInvoices.d.ts.map +1 -1
  115. package/dist/commonjs/react-query/invoicesListInvoices.js +4 -0
  116. package/dist/commonjs/react-query/invoicesListInvoices.js.map +1 -1
  117. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
  118. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
  119. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
  120. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
  121. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
  122. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
  123. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  124. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +1 -7
  125. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  126. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +1 -7
  127. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  128. package/dist/commonjs/sdk/invoices.d.ts +5 -1
  129. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  130. package/dist/commonjs/sdk/invoices.js +5 -1
  131. package/dist/commonjs/sdk/invoices.js.map +1 -1
  132. package/dist/commonjs/sdk/vendors.d.ts +1 -7
  133. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  134. package/dist/commonjs/sdk/vendors.js +1 -7
  135. package/dist/commonjs/sdk/vendors.js.map +1 -1
  136. package/dist/esm/__tests__/users.test.js +0 -3
  137. package/dist/esm/__tests__/users.test.js.map +1 -1
  138. package/dist/esm/__tests__/vendors.test.js +1 -1
  139. package/dist/esm/__tests__/webhooks.test.js +5 -4
  140. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  141. package/dist/esm/__tests__/zoneDevicesCreate.test.js +6 -0
  142. package/dist/esm/__tests__/zoneDevicesCreate.test.js.map +1 -1
  143. package/dist/esm/__tests__/zoneDevicesList.test.js +9 -1
  144. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -1
  145. package/dist/esm/__tests__/zones.test.js +28 -4
  146. package/dist/esm/__tests__/zones.test.js.map +1 -1
  147. package/dist/esm/admin-funcs/doAdmin.d.ts +4 -3
  148. package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
  149. package/dist/esm/admin-funcs/doAdmin.js +11 -8
  150. package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
  151. package/dist/esm/admin-funcs/networksCreate.d.ts +3 -0
  152. package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -1
  153. package/dist/esm/admin-funcs/networksCreate.js +9 -3
  154. package/dist/esm/admin-funcs/networksCreate.js.map +1 -1
  155. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
  156. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
  157. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js +6 -0
  158. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
  159. package/dist/esm/admin-funcs/networksUpdate.d.ts +10 -0
  160. package/dist/esm/admin-funcs/networksUpdate.d.ts.map +1 -0
  161. package/dist/esm/admin-funcs/networksUpdate.js +11 -0
  162. package/dist/esm/admin-funcs/networksUpdate.js.map +1 -0
  163. package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
  164. package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
  165. package/dist/esm/admin-funcs/zoneDevicesProvisioning.js +3 -8
  166. package/dist/esm/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
  167. package/dist/esm/funcs/alertsListAlerts.js +1 -0
  168. package/dist/esm/funcs/alertsListAlerts.js.map +1 -1
  169. package/dist/esm/funcs/invoicesConvertQuote.d.ts +4 -1
  170. package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -1
  171. package/dist/esm/funcs/invoicesConvertQuote.js +7 -3
  172. package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -1
  173. package/dist/esm/funcs/invoicesListInvoices.d.ts +1 -0
  174. package/dist/esm/funcs/invoicesListInvoices.d.ts.map +1 -1
  175. package/dist/esm/funcs/invoicesListInvoices.js +1 -0
  176. package/dist/esm/funcs/invoicesListInvoices.js.map +1 -1
  177. package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js +5 -1
  178. package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  179. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -7
  180. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  181. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +1 -7
  182. package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  183. package/dist/esm/index.extras.d.ts +4 -0
  184. package/dist/esm/index.extras.d.ts.map +1 -1
  185. package/dist/esm/index.extras.js +5 -1
  186. package/dist/esm/index.extras.js.map +1 -1
  187. package/dist/esm/lib/config.d.ts +3 -3
  188. package/dist/esm/lib/config.js +3 -3
  189. package/dist/esm/lib/config.js.map +1 -1
  190. package/dist/esm/models/components/alert.d.ts +36 -2
  191. package/dist/esm/models/components/alert.d.ts.map +1 -1
  192. package/dist/esm/models/components/alert.js +19 -0
  193. package/dist/esm/models/components/alert.js.map +1 -1
  194. package/dist/esm/models/components/invoice.d.ts +10 -0
  195. package/dist/esm/models/components/invoice.d.ts.map +1 -1
  196. package/dist/esm/models/components/invoice.js +8 -0
  197. package/dist/esm/models/components/invoice.js.map +1 -1
  198. package/dist/esm/models/components/invoicefinancialstatus.d.ts +1 -0
  199. package/dist/esm/models/components/invoicefinancialstatus.d.ts.map +1 -1
  200. package/dist/esm/models/components/invoicefinancialstatus.js +1 -0
  201. package/dist/esm/models/components/invoicefinancialstatus.js.map +1 -1
  202. package/dist/esm/models/components/userdetails.d.ts +0 -22
  203. package/dist/esm/models/components/userdetails.d.ts.map +1 -1
  204. package/dist/esm/models/components/userdetails.js +0 -6
  205. package/dist/esm/models/components/userdetails.js.map +1 -1
  206. package/dist/esm/models/components/userlocation.d.ts +0 -10
  207. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  208. package/dist/esm/models/components/userlocation.js +0 -8
  209. package/dist/esm/models/components/userlocation.js.map +1 -1
  210. package/dist/esm/models/operations/convertquote.d.ts +21 -0
  211. package/dist/esm/models/operations/convertquote.d.ts.map +1 -1
  212. package/dist/esm/models/operations/convertquote.js +16 -0
  213. package/dist/esm/models/operations/convertquote.js.map +1 -1
  214. package/dist/esm/models/operations/createinvoice.d.ts +25 -0
  215. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  216. package/dist/esm/models/operations/createinvoice.js +10 -0
  217. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  218. package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts +19 -0
  219. package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
  220. package/dist/esm/models/operations/getvendorinvoicereceipt.js +15 -0
  221. package/dist/esm/models/operations/getvendorinvoicereceipt.js.map +1 -1
  222. package/dist/esm/models/operations/invoicesexport.d.ts +4 -3
  223. package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
  224. package/dist/esm/models/operations/invoicesexport.js +2 -1
  225. package/dist/esm/models/operations/invoicesexport.js.map +1 -1
  226. package/dist/esm/models/operations/listalerts.d.ts +5 -0
  227. package/dist/esm/models/operations/listalerts.d.ts.map +1 -1
  228. package/dist/esm/models/operations/listalerts.js +2 -0
  229. package/dist/esm/models/operations/listalerts.js.map +1 -1
  230. package/dist/esm/models/operations/listinvoices.d.ts +1 -1
  231. package/dist/esm/models/operations/listvendorinvoices.d.ts +1 -1
  232. package/dist/esm/models/operations/updateuser.d.ts +2 -0
  233. package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
  234. package/dist/esm/models/operations/updateuser.js +1 -0
  235. package/dist/esm/models/operations/updateuser.js.map +1 -1
  236. package/dist/esm/react-query/alertsListAlerts.core.d.ts +2 -0
  237. package/dist/esm/react-query/alertsListAlerts.core.d.ts.map +1 -1
  238. package/dist/esm/react-query/alertsListAlerts.core.js +2 -0
  239. package/dist/esm/react-query/alertsListAlerts.core.js.map +1 -1
  240. package/dist/esm/react-query/alertsListAlerts.d.ts +2 -0
  241. package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -1
  242. package/dist/esm/react-query/alertsListAlerts.js.map +1 -1
  243. package/dist/esm/react-query/invoicesConvertQuote.d.ts +4 -1
  244. package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -1
  245. package/dist/esm/react-query/invoicesConvertQuote.js +4 -1
  246. package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -1
  247. package/dist/esm/react-query/invoicesListInvoices.d.ts +4 -0
  248. package/dist/esm/react-query/invoicesListInvoices.d.ts.map +1 -1
  249. package/dist/esm/react-query/invoicesListInvoices.js +4 -0
  250. package/dist/esm/react-query/invoicesListInvoices.js.map +1 -1
  251. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
  252. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
  253. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
  254. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
  255. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
  256. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
  257. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  258. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +1 -7
  259. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  260. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +1 -7
  261. package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  262. package/dist/esm/sdk/invoices.d.ts +5 -1
  263. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  264. package/dist/esm/sdk/invoices.js +5 -1
  265. package/dist/esm/sdk/invoices.js.map +1 -1
  266. package/dist/esm/sdk/vendors.d.ts +1 -7
  267. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  268. package/dist/esm/sdk/vendors.js +1 -7
  269. package/dist/esm/sdk/vendors.js.map +1 -1
  270. package/jsr.json +1 -1
  271. package/package.json +1 -1
  272. package/src/__tests__/users.test.ts +0 -3
  273. package/src/__tests__/vendors.test.ts +1 -1
  274. package/src/__tests__/webhooks.test.ts +5 -4
  275. package/src/__tests__/zoneDevicesCreate.test.ts +8 -0
  276. package/src/__tests__/zoneDevicesList.test.ts +9 -1
  277. package/src/__tests__/zones.test.ts +28 -4
  278. package/src/admin-funcs/doAdmin.ts +22 -12
  279. package/src/admin-funcs/networksCreate.ts +13 -3
  280. package/src/admin-funcs/networksEmailGatewayUpdates.ts +6 -0
  281. package/src/admin-funcs/networksUpdate.ts +28 -0
  282. package/src/admin-funcs/zoneDevicesProvisioning.ts +14 -2
  283. package/src/funcs/alertsListAlerts.ts +1 -0
  284. package/src/funcs/invoicesConvertQuote.ts +7 -3
  285. package/src/funcs/invoicesListInvoices.ts +1 -0
  286. package/src/funcs/vendorsGetVendorInvoiceReceipt.ts +6 -1
  287. package/src/funcs/vendorsUpdateVendorDetails.ts +1 -7
  288. package/src/index.extras.ts +5 -1
  289. package/src/lib/config.ts +3 -3
  290. package/src/models/components/alert.ts +51 -2
  291. package/src/models/components/invoice.ts +18 -0
  292. package/src/models/components/invoicefinancialstatus.ts +1 -0
  293. package/src/models/components/userdetails.ts +0 -28
  294. package/src/models/components/userlocation.ts +0 -18
  295. package/src/models/operations/convertquote.ts +46 -0
  296. package/src/models/operations/createinvoice.ts +35 -0
  297. package/src/models/operations/getvendorinvoicereceipt.ts +27 -0
  298. package/src/models/operations/invoicesexport.ts +4 -3
  299. package/src/models/operations/listalerts.ts +7 -0
  300. package/src/models/operations/listinvoices.ts +1 -1
  301. package/src/models/operations/listvendorinvoices.ts +1 -1
  302. package/src/models/operations/updateuser.ts +3 -0
  303. package/src/react-query/alertsListAlerts.core.ts +4 -0
  304. package/src/react-query/alertsListAlerts.ts +2 -0
  305. package/src/react-query/invoicesConvertQuote.ts +4 -1
  306. package/src/react-query/invoicesListInvoices.ts +4 -0
  307. package/src/react-query/vendorsGetVendorInvoiceReceipt.core.ts +8 -2
  308. package/src/react-query/vendorsGetVendorInvoiceReceipt.ts +7 -2
  309. package/src/react-query/vendorsUpdateVendorDetails.ts +1 -7
  310. package/src/sdk/invoices.ts +5 -1
  311. package/src/sdk/vendors.ts +1 -7
@@ -39,7 +39,20 @@ export const FollowUpType = {
39
39
  export type FollowUpType = OpenEnum<typeof FollowUpType>;
40
40
 
41
41
  /**
42
- * Context data for the alert. Smart badge follow-ups carry the check-in fields, and credential paid alerts carry `vendor_credential_id`.
42
+ * Which checkout reminder this is. `null` if not applicable.
43
+ */
44
+ export const ReminderStage = {
45
+ ThirtyMinutes: "thirty_minutes",
46
+ FiveMinutes: "five_minutes",
47
+ Ended: "ended",
48
+ } as const;
49
+ /**
50
+ * Which checkout reminder this is. `null` if not applicable.
51
+ */
52
+ export type ReminderStage = OpenEnum<typeof ReminderStage>;
53
+
54
+ /**
55
+ * Context data for the alert. Smart badge follow-ups carry the check-in fields, credential paid alerts carry `vendor_credential_id`, and visit checkout reminders carry the visit and reminder fields.
43
56
  */
44
57
  export type AlertContext = {
45
58
  /**
@@ -74,6 +87,26 @@ export type AlertContext = {
74
87
  * The ID of the vendor credential the alert relates to. `null` if not applicable.
75
88
  */
76
89
  vendorCredentialId?: number | null | undefined;
90
+ /**
91
+ * The name of the facility a visit checkout reminder is for. `null` if not applicable.
92
+ */
93
+ facilityName?: string | null | undefined;
94
+ /**
95
+ * The visit's scheduled checkout time when a checkout reminder was sent, in UTC. `null` if not applicable.
96
+ */
97
+ scheduledCheckoutTime?: string | null | undefined;
98
+ /**
99
+ * Which checkout reminder this is. `null` if not applicable.
100
+ */
101
+ reminderStage?: ReminderStage | null | undefined;
102
+ /**
103
+ * The extensions, in minutes, the vendor could still take when a checkout reminder was sent. `null` if not applicable.
104
+ */
105
+ extensionOptionsMinutes?: Array<number> | null | undefined;
106
+ /**
107
+ * Whether a checkout reminder was dismissed because the vendor checked out, extended, or got a later reminder. `null` if not applicable.
108
+ */
109
+ dismissed?: boolean | null | undefined;
77
110
  };
78
111
 
79
112
  /**
@@ -117,7 +150,7 @@ export type Alert = {
117
150
  */
118
151
  plainText?: string | null | undefined;
119
152
  /**
120
- * Context data for the alert. Smart badge follow-ups carry the check-in fields, and credential paid alerts carry `vendor_credential_id`.
153
+ * Context data for the alert. Smart badge follow-ups carry the check-in fields, credential paid alerts carry `vendor_credential_id`, and visit checkout reminders carry the visit and reminder fields.
121
154
  */
122
155
  alertContext?: AlertContext | null | undefined;
123
156
  /**
@@ -141,6 +174,13 @@ export const FollowUpType$inboundSchema: z.ZodType<
141
174
  unknown
142
175
  > = openEnums.inboundSchema(FollowUpType);
143
176
 
177
+ /** @internal */
178
+ export const ReminderStage$inboundSchema: z.ZodType<
179
+ ReminderStage,
180
+ z.ZodTypeDef,
181
+ unknown
182
+ > = openEnums.inboundSchema(ReminderStage);
183
+
144
184
  /** @internal */
145
185
  export const AlertContext$inboundSchema: z.ZodType<
146
186
  AlertContext,
@@ -155,6 +195,11 @@ export const AlertContext$inboundSchema: z.ZodType<
155
195
  recheck_vendor_scan_id: z.nullable(types.number()).optional(),
156
196
  follow_up_type: z.nullable(FollowUpType$inboundSchema).optional(),
157
197
  vendor_credential_id: z.nullable(types.number()).optional(),
198
+ facility_name: z.nullable(types.string()).optional(),
199
+ scheduled_checkout_time: z.nullable(types.string()).optional(),
200
+ reminder_stage: z.nullable(ReminderStage$inboundSchema).optional(),
201
+ extension_options_minutes: z.nullable(z.array(types.number())).optional(),
202
+ dismissed: z.nullable(types.boolean()).optional(),
158
203
  }).transform((v) => {
159
204
  return remap$(v, {
160
205
  "facility_id": "facilityId",
@@ -165,6 +210,10 @@ export const AlertContext$inboundSchema: z.ZodType<
165
210
  "recheck_vendor_scan_id": "recheckVendorScanId",
166
211
  "follow_up_type": "followUpType",
167
212
  "vendor_credential_id": "vendorCredentialId",
213
+ "facility_name": "facilityName",
214
+ "scheduled_checkout_time": "scheduledCheckoutTime",
215
+ "reminder_stage": "reminderStage",
216
+ "extension_options_minutes": "extensionOptionsMinutes",
168
217
  });
169
218
  });
170
219
 
@@ -137,6 +137,14 @@ export type Invoice = {
137
137
  * Date of the invoice payment. Backfilled automatically by a daily background job for every paid invoice, from the last successful payment transaction or, failing that, the invoice's line item start date or creation date. Unlike `date_processed`, this is reliably populated for real (non-test) payments—allow up to 24 hours for it to appear after payment.
138
138
  */
139
139
  datePaid?: string | null | undefined;
140
+ /**
141
+ * When the invoice was created.
142
+ */
143
+ dateCreated?: string | null | undefined;
144
+ /**
145
+ * When the vendor sent this invoice to their company managers to pay instead of paying it themselves (`send_to_company_manager` on `POST /invoices` or `POST /invoices/{id}/convert`). `null` if it was never sent, or if the vendor took it back or settled it themselves. It is kept on an invoice the managers paid, and on one that was later voided.
146
+ */
147
+ dateSentToCompanyManager?: string | null | undefined;
140
148
  /**
141
149
  * The date the invoice payment is due. `null` if no due date is set.
142
150
  */
@@ -388,6 +396,8 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
388
396
  tracking_number: z.nullable(types.string()).optional(),
389
397
  date_processed: z.nullable(types.string()).optional(),
390
398
  date_paid: z.nullable(types.string()).optional(),
399
+ date_created: z.nullable(types.string()).optional(),
400
+ date_sent_to_company_manager: z.nullable(types.string()).optional(),
391
401
  date_due: z.nullable(types.string()).optional(),
392
402
  amount: z.nullable(types.number()).optional(),
393
403
  status: z.nullable(types.string()).optional(),
@@ -415,6 +425,8 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
415
425
  "tracking_number": "trackingNumber",
416
426
  "date_processed": "dateProcessed",
417
427
  "date_paid": "datePaid",
428
+ "date_created": "dateCreated",
429
+ "date_sent_to_company_manager": "dateSentToCompanyManager",
418
430
  "date_due": "dateDue",
419
431
  "financial_status": "financialStatus",
420
432
  "amount_not_paid": "amountNotPaid",
@@ -432,6 +444,8 @@ export type Invoice$Outbound = {
432
444
  tracking_number?: string | null | undefined;
433
445
  date_processed?: string | null | undefined;
434
446
  date_paid?: string | null | undefined;
447
+ date_created?: string | null | undefined;
448
+ date_sent_to_company_manager?: string | null | undefined;
435
449
  date_due?: string | null | undefined;
436
450
  amount?: number | null | undefined;
437
451
  status?: string | null | undefined;
@@ -463,6 +477,8 @@ export const Invoice$outboundSchema: z.ZodType<
463
477
  trackingNumber: z.nullable(z.string()).optional(),
464
478
  dateProcessed: z.nullable(z.string()).optional(),
465
479
  datePaid: z.nullable(z.string()).optional(),
480
+ dateCreated: z.nullable(z.string()).optional(),
481
+ dateSentToCompanyManager: z.nullable(z.string()).optional(),
466
482
  dateDue: z.nullable(z.string()).optional(),
467
483
  amount: z.nullable(z.number().int()).optional(),
468
484
  status: z.nullable(z.string()).optional(),
@@ -489,6 +505,8 @@ export const Invoice$outboundSchema: z.ZodType<
489
505
  trackingNumber: "tracking_number",
490
506
  dateProcessed: "date_processed",
491
507
  datePaid: "date_paid",
508
+ dateCreated: "date_created",
509
+ dateSentToCompanyManager: "date_sent_to_company_manager",
492
510
  dateDue: "date_due",
493
511
  financialStatus: "financial_status",
494
512
  amountNotPaid: "amount_not_paid",
@@ -8,6 +8,7 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  export const InvoiceFinancialStatus = {
9
9
  Paid: "paid",
10
10
  Unpaid: "unpaid",
11
+ AwaitingPayment: "awaiting_payment",
11
12
  } as const;
12
13
  export type InvoiceFinancialStatus = ClosedEnum<typeof InvoiceFinancialStatus>;
13
14
 
@@ -85,10 +85,6 @@ export type UserDetails = {
85
85
  * First name of the user.
86
86
  */
87
87
  firstName?: string | null | undefined;
88
- /**
89
- * Middle name of the user, or `null` if not set. Returned only in the full user record (`expand=user`).
90
- */
91
- middleName?: string | null | undefined;
92
88
  /**
93
89
  * Last name of the user.
94
90
  */
@@ -97,24 +93,6 @@ export type UserDetails = {
97
93
  * Email address (not always valid)
98
94
  */
99
95
  email: string;
100
- /**
101
- * A vendor's work email address, a contact field kept apart from `email`,
102
- *
103
- * @remarks
104
- * which stays the login. When it is the same address as `email`, it follows
105
- * any change to the login. `null` if not set. Returned only in the full user
106
- * record (`expand=user`).
107
- */
108
- workEmail?: string | null | undefined;
109
- /**
110
- * A vendor's personal email address, a contact field kept apart from `email`,
111
- *
112
- * @remarks
113
- * which stays the login. When it is the same address as `email`, it follows
114
- * any change to the login. `null` if not set. Returned only in the full user
115
- * record (`expand=user`).
116
- */
117
- personalEmail?: string | null | undefined;
118
96
  /**
119
97
  * The user's landline phone number, or `null` if not set.
120
98
  */
@@ -275,11 +253,8 @@ export const UserDetails$inboundSchema: z.ZodType<
275
253
  > = z.object({
276
254
  id: types.number(),
277
255
  first_name: z.nullable(types.string()).optional(),
278
- middle_name: z.nullable(types.string()).optional(),
279
256
  last_name: z.nullable(types.string()).optional(),
280
257
  email: types.string(),
281
- work_email: z.nullable(types.string()).optional(),
282
- personal_email: z.nullable(types.string()).optional(),
283
258
  phone: z.nullable(types.string()).optional(),
284
259
  mobile_phone: z.nullable(types.string()).optional(),
285
260
  fax: z.nullable(types.string()).optional(),
@@ -299,10 +274,7 @@ export const UserDetails$inboundSchema: z.ZodType<
299
274
  }).transform((v) => {
300
275
  return remap$(v, {
301
276
  "first_name": "firstName",
302
- "middle_name": "middleName",
303
277
  "last_name": "lastName",
304
- "work_email": "workEmail",
305
- "personal_email": "personalEmail",
306
278
  "mobile_phone": "mobilePhone",
307
279
  "phone_confirmed": "phoneConfirmed",
308
280
  "email_confirmed": "emailConfirmed",
@@ -212,14 +212,6 @@ export type UserLocation = {
212
212
  * The fax number of the location. `null` if not set.
213
213
  */
214
214
  fax?: string | null | undefined;
215
- /**
216
- * The vendor's work email address. Only `PUT /vendors/{vendor_id_or_me}` reads it. `null` if not set.
217
- */
218
- workEmail?: string | null | undefined;
219
- /**
220
- * The vendor's personal email address. Only `PUT /vendors/{vendor_id_or_me}` reads it. `null` if not set.
221
- */
222
- personalEmail?: string | null | undefined;
223
215
  /**
224
216
  * The country of the location. `null` if not set.
225
217
  */
@@ -258,15 +250,11 @@ export const UserLocation$inboundSchema: z.ZodType<
258
250
  phone: z.nullable(types.string()).optional(),
259
251
  mobile_phone: z.nullable(types.string()).optional(),
260
252
  fax: z.nullable(types.string()).optional(),
261
- work_email: z.nullable(types.string()).optional(),
262
- personal_email: z.nullable(types.string()).optional(),
263
253
  country: z.nullable(types.string()).optional(),
264
254
  timezone: z.nullable(Timezone$inboundSchema).optional(),
265
255
  }).transform((v) => {
266
256
  return remap$(v, {
267
257
  "mobile_phone": "mobilePhone",
268
- "work_email": "workEmail",
269
- "personal_email": "personalEmail",
270
258
  });
271
259
  });
272
260
  /** @internal */
@@ -280,8 +268,6 @@ export type UserLocation$Outbound = {
280
268
  phone?: string | null | undefined;
281
269
  mobile_phone?: string | null | undefined;
282
270
  fax?: string | null | undefined;
283
- work_email?: string | null | undefined;
284
- personal_email?: string | null | undefined;
285
271
  country?: string | null | undefined;
286
272
  timezone?: string | null | undefined;
287
273
  };
@@ -301,15 +287,11 @@ export const UserLocation$outboundSchema: z.ZodType<
301
287
  phone: z.nullable(z.string()).optional(),
302
288
  mobilePhone: z.nullable(z.string()).optional(),
303
289
  fax: z.nullable(z.string()).optional(),
304
- workEmail: z.nullable(z.string()).optional(),
305
- personalEmail: z.nullable(z.string()).optional(),
306
290
  country: z.nullable(z.string()).optional(),
307
291
  timezone: z.nullable(Timezone$outboundSchema).optional(),
308
292
  }).transform((v) => {
309
293
  return remap$(v, {
310
294
  mobilePhone: "mobile_phone",
311
- workEmail: "work_email",
312
- personalEmail: "personal_email",
313
295
  });
314
296
  });
315
297
 
@@ -9,11 +9,25 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ /**
13
+ * Whether the vendor is sending the converted invoice to their company managers.
14
+ */
15
+ export type ConvertQuoteRequestBody = {
16
+ /**
17
+ * Set to `true` when the vendor is sending the converted invoice to their company managers to pay instead of paying it themselves, and `false` to take it back. Recorded on the invoice as `date_sent_to_company_manager`; the managers are asked to pay once the credential is submitted. Omit the field to leave the invoice as it is. Ignored when no `VendorCredential` is linked to the quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` and the quote is not converted.
18
+ */
19
+ sendToCompanyManager?: boolean | undefined;
20
+ };
21
+
12
22
  export type ConvertQuoteRequest = {
13
23
  /**
14
24
  * The identifier of the object.
15
25
  */
16
26
  id: number;
27
+ /**
28
+ * Whether the vendor is sending the converted invoice to their company managers.
29
+ */
30
+ requestBody?: ConvertQuoteRequestBody | undefined;
17
31
  };
18
32
 
19
33
  /**
@@ -43,9 +57,36 @@ export type ConvertQuoteConvertQuoteOk = {
43
57
  total?: number | null | undefined;
44
58
  };
45
59
 
60
+ /** @internal */
61
+ export type ConvertQuoteRequestBody$Outbound = {
62
+ send_to_company_manager?: boolean | undefined;
63
+ };
64
+
65
+ /** @internal */
66
+ export const ConvertQuoteRequestBody$outboundSchema: z.ZodType<
67
+ ConvertQuoteRequestBody$Outbound,
68
+ z.ZodTypeDef,
69
+ ConvertQuoteRequestBody
70
+ > = z.object({
71
+ sendToCompanyManager: z.boolean().optional(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ sendToCompanyManager: "send_to_company_manager",
75
+ });
76
+ });
77
+
78
+ export function convertQuoteRequestBodyToJSON(
79
+ convertQuoteRequestBody: ConvertQuoteRequestBody,
80
+ ): string {
81
+ return JSON.stringify(
82
+ ConvertQuoteRequestBody$outboundSchema.parse(convertQuoteRequestBody),
83
+ );
84
+ }
85
+
46
86
  /** @internal */
47
87
  export type ConvertQuoteRequest$Outbound = {
48
88
  id: number;
89
+ RequestBody?: ConvertQuoteRequestBody$Outbound | undefined;
49
90
  };
50
91
 
51
92
  /** @internal */
@@ -55,6 +96,11 @@ export const ConvertQuoteRequest$outboundSchema: z.ZodType<
55
96
  ConvertQuoteRequest
56
97
  > = z.object({
57
98
  id: z.number().int(),
99
+ requestBody: z.lazy(() => ConvertQuoteRequestBody$outboundSchema).optional(),
100
+ }).transform((v) => {
101
+ return remap$(v, {
102
+ requestBody: "RequestBody",
103
+ });
58
104
  });
59
105
 
60
106
  export function convertQuoteRequestToJSON(
@@ -62,6 +62,10 @@ export type Five = {
62
62
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
63
63
  */
64
64
  useCredits?: boolean | undefined;
65
+ /**
66
+ * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
67
+ */
68
+ sendToCompanyManager?: boolean | undefined;
65
69
  };
66
70
 
67
71
  export const CreateInvoiceRequestBodyInvoicesPaymentHandler = {
@@ -113,6 +117,10 @@ export type Four = {
113
117
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
114
118
  */
115
119
  useCredits?: boolean | undefined;
120
+ /**
121
+ * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
122
+ */
123
+ sendToCompanyManager?: boolean | undefined;
116
124
  };
117
125
 
118
126
  export const CreateInvoiceRequestBodyPaymentHandler = {
@@ -164,6 +172,10 @@ export type Three = {
164
172
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
165
173
  */
166
174
  useCredits?: boolean | undefined;
175
+ /**
176
+ * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
177
+ */
178
+ sendToCompanyManager?: boolean | undefined;
167
179
  };
168
180
 
169
181
  export const RequestBodyPaymentHandler = {
@@ -213,6 +225,10 @@ export type CreateInvoiceRequestBody2 = {
213
225
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
214
226
  */
215
227
  useCredits?: boolean | undefined;
228
+ /**
229
+ * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
230
+ */
231
+ sendToCompanyManager?: boolean | undefined;
216
232
  };
217
233
 
218
234
  export const PaymentHandler = {
@@ -260,6 +276,10 @@ export type RequestBody1 = {
260
276
  * Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
261
277
  */
262
278
  useCredits?: boolean | undefined;
279
+ /**
280
+ * For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
281
+ */
282
+ sendToCompanyManager?: boolean | undefined;
263
283
  };
264
284
 
265
285
  /**
@@ -357,6 +377,7 @@ export type Five$Outbound = {
357
377
  invoice_type?: string | undefined;
358
378
  promo?: string | undefined;
359
379
  use_credits: boolean;
380
+ send_to_company_manager?: boolean | undefined;
360
381
  };
361
382
 
362
383
  /** @internal */
@@ -372,12 +393,14 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
372
393
  .optional(),
373
394
  promo: z.string().optional(),
374
395
  useCredits: z.boolean().default(false),
396
+ sendToCompanyManager: z.boolean().optional(),
375
397
  }).transform((v) => {
376
398
  return remap$(v, {
377
399
  vendorCredentialId: "vendor_credential_id",
378
400
  credentialPricingIds: "credential_pricing_ids",
379
401
  invoiceType: "invoice_type",
380
402
  useCredits: "use_credits",
403
+ sendToCompanyManager: "send_to_company_manager",
381
404
  });
382
405
  });
383
406
 
@@ -456,6 +479,7 @@ export type Four$Outbound = {
456
479
  invoice_type?: string | undefined;
457
480
  promo?: string | undefined;
458
481
  use_credits: boolean;
482
+ send_to_company_manager?: boolean | undefined;
459
483
  };
460
484
 
461
485
  /** @internal */
@@ -470,12 +494,14 @@ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
470
494
  .optional(),
471
495
  promo: z.string().optional(),
472
496
  useCredits: z.boolean().default(false),
497
+ sendToCompanyManager: z.boolean().optional(),
473
498
  }).transform((v) => {
474
499
  return remap$(v, {
475
500
  systemId: "system_id",
476
501
  credentialPricingIds: "credential_pricing_ids",
477
502
  invoiceType: "invoice_type",
478
503
  useCredits: "use_credits",
504
+ sendToCompanyManager: "send_to_company_manager",
479
505
  });
480
506
  });
481
507
 
@@ -556,6 +582,7 @@ export type Three$Outbound = {
556
582
  invoice_type?: string | undefined;
557
583
  promo?: string | undefined;
558
584
  use_credits: boolean;
585
+ send_to_company_manager?: boolean | undefined;
559
586
  };
560
587
 
561
588
  /** @internal */
@@ -571,12 +598,14 @@ export const Three$outboundSchema: z.ZodType<
571
598
  invoiceType: CreateInvoiceRequestBodyInvoiceType$outboundSchema.optional(),
572
599
  promo: z.string().optional(),
573
600
  useCredits: z.boolean().default(false),
601
+ sendToCompanyManager: z.boolean().optional(),
574
602
  }).transform((v) => {
575
603
  return remap$(v, {
576
604
  facilityId: "facility_id",
577
605
  credentialPricingIds: "credential_pricing_ids",
578
606
  invoiceType: "invoice_type",
579
607
  useCredits: "use_credits",
608
+ sendToCompanyManager: "send_to_company_manager",
580
609
  });
581
610
  });
582
611
 
@@ -652,6 +681,7 @@ export type CreateInvoiceRequestBody2$Outbound = {
652
681
  invoice_type?: string | undefined;
653
682
  promo?: string | undefined;
654
683
  use_credits: boolean;
684
+ send_to_company_manager?: boolean | undefined;
655
685
  };
656
686
 
657
687
  /** @internal */
@@ -666,12 +696,14 @@ export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
666
696
  invoiceType: RequestBodyInvoiceType$outboundSchema.optional(),
667
697
  promo: z.string().optional(),
668
698
  useCredits: z.boolean().default(false),
699
+ sendToCompanyManager: z.boolean().optional(),
669
700
  }).transform((v) => {
670
701
  return remap$(v, {
671
702
  companyId: "company_id",
672
703
  credentialPricingIds: "credential_pricing_ids",
673
704
  invoiceType: "invoice_type",
674
705
  useCredits: "use_credits",
706
+ sendToCompanyManager: "send_to_company_manager",
675
707
  });
676
708
  });
677
709
 
@@ -746,6 +778,7 @@ export type RequestBody1$Outbound = {
746
778
  invoice_type?: string | undefined;
747
779
  promo?: string | undefined;
748
780
  use_credits: boolean;
781
+ send_to_company_manager?: boolean | undefined;
749
782
  };
750
783
 
751
784
  /** @internal */
@@ -760,12 +793,14 @@ export const RequestBody1$outboundSchema: z.ZodType<
760
793
  invoiceType: InvoiceType$outboundSchema.optional(),
761
794
  promo: z.string().optional(),
762
795
  useCredits: z.boolean().default(false),
796
+ sendToCompanyManager: z.boolean().optional(),
763
797
  }).transform((v) => {
764
798
  return remap$(v, {
765
799
  vendorId: "vendor_id",
766
800
  credentialPricingIds: "credential_pricing_ids",
767
801
  invoiceType: "invoice_type",
768
802
  useCredits: "use_credits",
803
+ sendToCompanyManager: "send_to_company_manager",
769
804
  });
770
805
  });
771
806
 
@@ -5,15 +5,32 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as types from "../../types/primitives.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
13
+ /**
14
+ * `receipt` (default) includes the payment transactions. `invoice` leaves them out and adds the created and due dates.
15
+ */
16
+ export const PdfType = {
17
+ Receipt: "receipt",
18
+ Invoice: "invoice",
19
+ } as const;
20
+ /**
21
+ * `receipt` (default) includes the payment transactions. `invoice` leaves them out and adds the created and due dates.
22
+ */
23
+ export type PdfType = ClosedEnum<typeof PdfType>;
24
+
12
25
  export type GetVendorInvoiceReceiptRequest = {
13
26
  /**
14
27
  * The identifier of the object.
15
28
  */
16
29
  id: number;
30
+ /**
31
+ * `receipt` (default) includes the payment transactions. `invoice` leaves them out and adds the created and due dates.
32
+ */
33
+ pdfType?: PdfType | undefined;
17
34
  };
18
35
 
19
36
  /**
@@ -34,9 +51,14 @@ export type GetVendorInvoiceReceiptGetVendorInvoiceReceiptOk = {
34
51
  contentType?: string | undefined;
35
52
  };
36
53
 
54
+ /** @internal */
55
+ export const PdfType$outboundSchema: z.ZodNativeEnum<typeof PdfType> = z
56
+ .nativeEnum(PdfType);
57
+
37
58
  /** @internal */
38
59
  export type GetVendorInvoiceReceiptRequest$Outbound = {
39
60
  id: number;
61
+ pdf_type?: string | undefined;
40
62
  };
41
63
 
42
64
  /** @internal */
@@ -46,6 +68,11 @@ export const GetVendorInvoiceReceiptRequest$outboundSchema: z.ZodType<
46
68
  GetVendorInvoiceReceiptRequest
47
69
  > = z.object({
48
70
  id: z.number().int(),
71
+ pdfType: PdfType$outboundSchema.optional(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ pdfType: "pdf_type",
75
+ });
49
76
  });
50
77
 
51
78
  export function getVendorInvoiceReceiptRequestToJSON(
@@ -8,14 +8,15 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import * as components from "../components/index.js";
9
9
 
10
10
  /**
11
- * Filter by financial status (`paid` or `unpaid`).
11
+ * Filter by financial status (`paid`, `unpaid`, or `awaiting_payment` for pending and overdue).
12
12
  */
13
13
  export const InvoiceFinancialStatus = {
14
14
  Paid: "paid",
15
15
  Unpaid: "unpaid",
16
+ AwaitingPayment: "awaiting_payment",
16
17
  } as const;
17
18
  /**
18
- * Filter by financial status (`paid` or `unpaid`).
19
+ * Filter by financial status (`paid`, `unpaid`, or `awaiting_payment` for pending and overdue).
19
20
  */
20
21
  export type InvoiceFinancialStatus = ClosedEnum<typeof InvoiceFinancialStatus>;
21
22
 
@@ -25,7 +26,7 @@ export type InvoicesExportRequest = {
25
26
  */
26
27
  invoiceNumber?: string | undefined;
27
28
  /**
28
- * Filter by financial status (`paid` or `unpaid`).
29
+ * Filter by financial status (`paid`, `unpaid`, or `awaiting_payment` for pending and overdue).
29
30
  */
30
31
  invoiceFinancialStatus?: InvoiceFinancialStatus | undefined;
31
32
  /**
@@ -47,6 +47,10 @@ export type ListAlertsRequest = {
47
47
  * Filter alerts by client type. Use `all` to return every alert, or `mobile` to exclude web-only alerts.
48
48
  */
49
49
  alertType?: AlertType | undefined;
50
+ /**
51
+ * Also return visit checkout reminders that were dismissed because the vendor checked out, extended, or got a later reminder. Their `alert_context.dismissed` is `true`.
52
+ */
53
+ includeDismissedReminders?: boolean | undefined;
50
54
  };
51
55
 
52
56
  /**
@@ -76,6 +80,7 @@ export type ListAlertsRequest$Outbound = {
76
80
  items_per_page?: number | undefined;
77
81
  user_id_or_me?: string | undefined;
78
82
  alert_type?: string | undefined;
83
+ include_dismissed_reminders?: boolean | undefined;
79
84
  };
80
85
 
81
86
  /** @internal */
@@ -90,11 +95,13 @@ export const ListAlertsRequest$outboundSchema: z.ZodType<
90
95
  itemsPerPage: z.number().int().optional(),
91
96
  userIdOrMe: z.string().optional(),
92
97
  alertType: AlertType$outboundSchema.optional(),
98
+ includeDismissedReminders: z.boolean().optional(),
93
99
  }).transform((v) => {
94
100
  return remap$(v, {
95
101
  itemsPerPage: "items_per_page",
96
102
  userIdOrMe: "user_id_or_me",
97
103
  alertType: "alert_type",
104
+ includeDismissedReminders: "include_dismissed_reminders",
98
105
  });
99
106
  });
100
107
 
@@ -36,7 +36,7 @@ export type ListInvoicesRequest = {
36
36
  */
37
37
  invoiceNumber?: string | undefined;
38
38
  /**
39
- * Filter invoices by financial status.
39
+ * Filter invoices by financial status. `awaiting_payment` matches pending and overdue invoices.
40
40
  */
41
41
  invoiceFinancialStatus?: components.InvoiceFinancialStatus | undefined;
42
42
  /**
@@ -46,7 +46,7 @@ export type ListVendorInvoicesRequest = {
46
46
  */
47
47
  invoiceNumber?: string | undefined;
48
48
  /**
49
- * Filter invoices by financial status.
49
+ * Filter invoices by financial status. `awaiting_payment` matches pending and overdue invoices.
50
50
  */
51
51
  invoiceFinancialStatus?: components.InvoiceFinancialStatus | undefined;
52
52
  };