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

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 (349) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.d.ts +2 -0
  3. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.d.ts.map +1 -0
  4. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.js +36 -0
  5. package/dist/commonjs/__tests__/subscriptionPlanSelection.test.js.map +1 -0
  6. package/dist/commonjs/__tests__/users.test.js +0 -3
  7. package/dist/commonjs/__tests__/users.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +5 -4
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js +6 -0
  13. package/dist/commonjs/__tests__/zoneDevicesCreate.test.js.map +1 -1
  14. package/dist/commonjs/__tests__/zoneDevicesList.test.js +9 -1
  15. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -1
  16. package/dist/commonjs/__tests__/zones.test.js +31 -4
  17. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  18. package/dist/commonjs/admin-funcs/doAdmin.d.ts +7 -5
  19. package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
  20. package/dist/commonjs/admin-funcs/doAdmin.js +20 -11
  21. package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
  22. package/dist/commonjs/admin-funcs/networksCreate.d.ts +3 -0
  23. package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -1
  24. package/dist/commonjs/admin-funcs/networksCreate.js +10 -3
  25. package/dist/commonjs/admin-funcs/networksCreate.js.map +1 -1
  26. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
  27. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
  28. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js +9 -0
  29. package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
  30. package/dist/commonjs/admin-funcs/networksUpdate.d.ts +10 -0
  31. package/dist/commonjs/admin-funcs/networksUpdate.d.ts.map +1 -0
  32. package/dist/commonjs/admin-funcs/networksUpdate.js +14 -0
  33. package/dist/commonjs/admin-funcs/networksUpdate.js.map +1 -0
  34. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +3 -2
  35. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -1
  36. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js +2 -1
  37. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -1
  38. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.d.ts +7 -0
  39. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.d.ts.map +1 -0
  40. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.js +45 -0
  41. package/dist/commonjs/admin-funcs/subscriptionPlanSelection.js.map +1 -0
  42. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts +3 -2
  43. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -1
  44. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js +2 -1
  45. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js.map +1 -1
  46. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
  47. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
  48. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js +3 -8
  49. package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
  50. package/dist/commonjs/funcs/alertsListAlerts.js +1 -0
  51. package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -1
  52. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +4 -1
  53. package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -1
  54. package/dist/commonjs/funcs/invoicesConvertQuote.js +6 -2
  55. package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -1
  56. package/dist/commonjs/funcs/invoicesListInvoices.d.ts +1 -0
  57. package/dist/commonjs/funcs/invoicesListInvoices.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/invoicesListInvoices.js +1 -0
  59. package/dist/commonjs/funcs/invoicesListInvoices.js.map +1 -1
  60. package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js +4 -0
  61. package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  62. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -7
  63. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  64. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +1 -7
  65. package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  66. package/dist/commonjs/index.extras.d.ts +4 -0
  67. package/dist/commonjs/index.extras.d.ts.map +1 -1
  68. package/dist/commonjs/index.extras.js +5 -1
  69. package/dist/commonjs/index.extras.js.map +1 -1
  70. package/dist/commonjs/lib/config.d.ts +3 -3
  71. package/dist/commonjs/lib/config.js +3 -3
  72. package/dist/commonjs/lib/config.js.map +1 -1
  73. package/dist/commonjs/models/components/alert.d.ts +36 -2
  74. package/dist/commonjs/models/components/alert.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/alert.js +20 -1
  76. package/dist/commonjs/models/components/alert.js.map +1 -1
  77. package/dist/commonjs/models/components/invoice.d.ts +10 -0
  78. package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/invoice.js +8 -0
  80. package/dist/commonjs/models/components/invoice.js.map +1 -1
  81. package/dist/commonjs/models/components/invoicefinancialstatus.d.ts +1 -0
  82. package/dist/commonjs/models/components/invoicefinancialstatus.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/invoicefinancialstatus.js +1 -0
  84. package/dist/commonjs/models/components/invoicefinancialstatus.js.map +1 -1
  85. package/dist/commonjs/models/components/userdetails.d.ts +0 -22
  86. package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
  87. package/dist/commonjs/models/components/userdetails.js +0 -6
  88. package/dist/commonjs/models/components/userdetails.js.map +1 -1
  89. package/dist/commonjs/models/components/userlocation.d.ts +0 -10
  90. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  91. package/dist/commonjs/models/components/userlocation.js +0 -8
  92. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  93. package/dist/commonjs/models/operations/convertquote.d.ts +21 -0
  94. package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/convertquote.js +18 -1
  96. package/dist/commonjs/models/operations/convertquote.js.map +1 -1
  97. package/dist/commonjs/models/operations/createinvoice.d.ts +25 -0
  98. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/createinvoice.js +10 -0
  100. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  101. package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts +19 -0
  102. package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/getvendorinvoicereceipt.js +16 -1
  104. package/dist/commonjs/models/operations/getvendorinvoicereceipt.js.map +1 -1
  105. package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -3
  106. package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/invoicesexport.js +2 -1
  108. package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
  109. package/dist/commonjs/models/operations/listalerts.d.ts +5 -0
  110. package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/listalerts.js +2 -0
  112. package/dist/commonjs/models/operations/listalerts.js.map +1 -1
  113. package/dist/commonjs/models/operations/listinvoices.d.ts +1 -1
  114. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +1 -1
  115. package/dist/commonjs/models/operations/updateuser.d.ts +2 -0
  116. package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
  117. package/dist/commonjs/models/operations/updateuser.js +1 -0
  118. package/dist/commonjs/models/operations/updateuser.js.map +1 -1
  119. package/dist/commonjs/react-query/alertsListAlerts.core.d.ts +2 -0
  120. package/dist/commonjs/react-query/alertsListAlerts.core.d.ts.map +1 -1
  121. package/dist/commonjs/react-query/alertsListAlerts.core.js +2 -0
  122. package/dist/commonjs/react-query/alertsListAlerts.core.js.map +1 -1
  123. package/dist/commonjs/react-query/alertsListAlerts.d.ts +2 -0
  124. package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -1
  125. package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -1
  126. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +4 -1
  127. package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -1
  128. package/dist/commonjs/react-query/invoicesConvertQuote.js +4 -1
  129. package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -1
  130. package/dist/commonjs/react-query/invoicesListInvoices.d.ts +4 -0
  131. package/dist/commonjs/react-query/invoicesListInvoices.d.ts.map +1 -1
  132. package/dist/commonjs/react-query/invoicesListInvoices.js +4 -0
  133. package/dist/commonjs/react-query/invoicesListInvoices.js.map +1 -1
  134. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
  135. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
  136. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
  137. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
  138. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
  139. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
  140. package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  141. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +1 -7
  142. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  143. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +1 -7
  144. package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  145. package/dist/commonjs/sdk/invoices.d.ts +5 -1
  146. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  147. package/dist/commonjs/sdk/invoices.js +5 -1
  148. package/dist/commonjs/sdk/invoices.js.map +1 -1
  149. package/dist/commonjs/sdk/vendors.d.ts +1 -7
  150. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  151. package/dist/commonjs/sdk/vendors.js +1 -7
  152. package/dist/commonjs/sdk/vendors.js.map +1 -1
  153. package/dist/esm/__tests__/subscriptionPlanSelection.test.d.ts +2 -0
  154. package/dist/esm/__tests__/subscriptionPlanSelection.test.d.ts.map +1 -0
  155. package/dist/esm/__tests__/subscriptionPlanSelection.test.js +34 -0
  156. package/dist/esm/__tests__/subscriptionPlanSelection.test.js.map +1 -0
  157. package/dist/esm/__tests__/users.test.js +0 -3
  158. package/dist/esm/__tests__/users.test.js.map +1 -1
  159. package/dist/esm/__tests__/vendors.test.js +1 -1
  160. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  161. package/dist/esm/__tests__/webhooks.test.js +5 -4
  162. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  163. package/dist/esm/__tests__/zoneDevicesCreate.test.js +6 -0
  164. package/dist/esm/__tests__/zoneDevicesCreate.test.js.map +1 -1
  165. package/dist/esm/__tests__/zoneDevicesList.test.js +9 -1
  166. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -1
  167. package/dist/esm/__tests__/zones.test.js +31 -4
  168. package/dist/esm/__tests__/zones.test.js.map +1 -1
  169. package/dist/esm/admin-funcs/doAdmin.d.ts +7 -5
  170. package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
  171. package/dist/esm/admin-funcs/doAdmin.js +19 -11
  172. package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
  173. package/dist/esm/admin-funcs/networksCreate.d.ts +3 -0
  174. package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -1
  175. package/dist/esm/admin-funcs/networksCreate.js +9 -3
  176. package/dist/esm/admin-funcs/networksCreate.js.map +1 -1
  177. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
  178. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
  179. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js +6 -0
  180. package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
  181. package/dist/esm/admin-funcs/networksUpdate.d.ts +10 -0
  182. package/dist/esm/admin-funcs/networksUpdate.d.ts.map +1 -0
  183. package/dist/esm/admin-funcs/networksUpdate.js +11 -0
  184. package/dist/esm/admin-funcs/networksUpdate.js.map +1 -0
  185. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +3 -2
  186. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -1
  187. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js +2 -1
  188. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -1
  189. package/dist/esm/admin-funcs/subscriptionPlanSelection.d.ts +7 -0
  190. package/dist/esm/admin-funcs/subscriptionPlanSelection.d.ts.map +1 -0
  191. package/dist/esm/admin-funcs/subscriptionPlanSelection.js +9 -0
  192. package/dist/esm/admin-funcs/subscriptionPlanSelection.js.map +1 -0
  193. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts +3 -2
  194. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -1
  195. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js +2 -1
  196. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js.map +1 -1
  197. package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
  198. package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
  199. package/dist/esm/admin-funcs/zoneDevicesProvisioning.js +3 -8
  200. package/dist/esm/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
  201. package/dist/esm/funcs/alertsListAlerts.js +1 -0
  202. package/dist/esm/funcs/alertsListAlerts.js.map +1 -1
  203. package/dist/esm/funcs/invoicesConvertQuote.d.ts +4 -1
  204. package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -1
  205. package/dist/esm/funcs/invoicesConvertQuote.js +7 -3
  206. package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -1
  207. package/dist/esm/funcs/invoicesListInvoices.d.ts +1 -0
  208. package/dist/esm/funcs/invoicesListInvoices.d.ts.map +1 -1
  209. package/dist/esm/funcs/invoicesListInvoices.js +1 -0
  210. package/dist/esm/funcs/invoicesListInvoices.js.map +1 -1
  211. package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js +5 -1
  212. package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  213. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -7
  214. package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
  215. package/dist/esm/funcs/vendorsUpdateVendorDetails.js +1 -7
  216. package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
  217. package/dist/esm/index.extras.d.ts +4 -0
  218. package/dist/esm/index.extras.d.ts.map +1 -1
  219. package/dist/esm/index.extras.js +5 -1
  220. package/dist/esm/index.extras.js.map +1 -1
  221. package/dist/esm/lib/config.d.ts +3 -3
  222. package/dist/esm/lib/config.js +3 -3
  223. package/dist/esm/lib/config.js.map +1 -1
  224. package/dist/esm/models/components/alert.d.ts +36 -2
  225. package/dist/esm/models/components/alert.d.ts.map +1 -1
  226. package/dist/esm/models/components/alert.js +19 -0
  227. package/dist/esm/models/components/alert.js.map +1 -1
  228. package/dist/esm/models/components/invoice.d.ts +10 -0
  229. package/dist/esm/models/components/invoice.d.ts.map +1 -1
  230. package/dist/esm/models/components/invoice.js +8 -0
  231. package/dist/esm/models/components/invoice.js.map +1 -1
  232. package/dist/esm/models/components/invoicefinancialstatus.d.ts +1 -0
  233. package/dist/esm/models/components/invoicefinancialstatus.d.ts.map +1 -1
  234. package/dist/esm/models/components/invoicefinancialstatus.js +1 -0
  235. package/dist/esm/models/components/invoicefinancialstatus.js.map +1 -1
  236. package/dist/esm/models/components/userdetails.d.ts +0 -22
  237. package/dist/esm/models/components/userdetails.d.ts.map +1 -1
  238. package/dist/esm/models/components/userdetails.js +0 -6
  239. package/dist/esm/models/components/userdetails.js.map +1 -1
  240. package/dist/esm/models/components/userlocation.d.ts +0 -10
  241. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  242. package/dist/esm/models/components/userlocation.js +0 -8
  243. package/dist/esm/models/components/userlocation.js.map +1 -1
  244. package/dist/esm/models/operations/convertquote.d.ts +21 -0
  245. package/dist/esm/models/operations/convertquote.d.ts.map +1 -1
  246. package/dist/esm/models/operations/convertquote.js +16 -0
  247. package/dist/esm/models/operations/convertquote.js.map +1 -1
  248. package/dist/esm/models/operations/createinvoice.d.ts +25 -0
  249. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  250. package/dist/esm/models/operations/createinvoice.js +10 -0
  251. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  252. package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts +19 -0
  253. package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
  254. package/dist/esm/models/operations/getvendorinvoicereceipt.js +15 -0
  255. package/dist/esm/models/operations/getvendorinvoicereceipt.js.map +1 -1
  256. package/dist/esm/models/operations/invoicesexport.d.ts +4 -3
  257. package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
  258. package/dist/esm/models/operations/invoicesexport.js +2 -1
  259. package/dist/esm/models/operations/invoicesexport.js.map +1 -1
  260. package/dist/esm/models/operations/listalerts.d.ts +5 -0
  261. package/dist/esm/models/operations/listalerts.d.ts.map +1 -1
  262. package/dist/esm/models/operations/listalerts.js +2 -0
  263. package/dist/esm/models/operations/listalerts.js.map +1 -1
  264. package/dist/esm/models/operations/listinvoices.d.ts +1 -1
  265. package/dist/esm/models/operations/listvendorinvoices.d.ts +1 -1
  266. package/dist/esm/models/operations/updateuser.d.ts +2 -0
  267. package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
  268. package/dist/esm/models/operations/updateuser.js +1 -0
  269. package/dist/esm/models/operations/updateuser.js.map +1 -1
  270. package/dist/esm/react-query/alertsListAlerts.core.d.ts +2 -0
  271. package/dist/esm/react-query/alertsListAlerts.core.d.ts.map +1 -1
  272. package/dist/esm/react-query/alertsListAlerts.core.js +2 -0
  273. package/dist/esm/react-query/alertsListAlerts.core.js.map +1 -1
  274. package/dist/esm/react-query/alertsListAlerts.d.ts +2 -0
  275. package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -1
  276. package/dist/esm/react-query/alertsListAlerts.js.map +1 -1
  277. package/dist/esm/react-query/invoicesConvertQuote.d.ts +4 -1
  278. package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -1
  279. package/dist/esm/react-query/invoicesConvertQuote.js +4 -1
  280. package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -1
  281. package/dist/esm/react-query/invoicesListInvoices.d.ts +4 -0
  282. package/dist/esm/react-query/invoicesListInvoices.d.ts.map +1 -1
  283. package/dist/esm/react-query/invoicesListInvoices.js +4 -0
  284. package/dist/esm/react-query/invoicesListInvoices.js.map +1 -1
  285. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
  286. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
  287. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
  288. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
  289. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
  290. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
  291. package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
  292. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +1 -7
  293. package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
  294. package/dist/esm/react-query/vendorsUpdateVendorDetails.js +1 -7
  295. package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
  296. package/dist/esm/sdk/invoices.d.ts +5 -1
  297. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  298. package/dist/esm/sdk/invoices.js +5 -1
  299. package/dist/esm/sdk/invoices.js.map +1 -1
  300. package/dist/esm/sdk/vendors.d.ts +1 -7
  301. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  302. package/dist/esm/sdk/vendors.js +1 -7
  303. package/dist/esm/sdk/vendors.js.map +1 -1
  304. package/jsr.json +1 -1
  305. package/package.json +1 -1
  306. package/src/__tests__/subscriptionPlanSelection.test.ts +53 -0
  307. package/src/__tests__/users.test.ts +0 -3
  308. package/src/__tests__/vendors.test.ts +1 -1
  309. package/src/__tests__/webhooks.test.ts +5 -4
  310. package/src/__tests__/zoneDevicesCreate.test.ts +8 -0
  311. package/src/__tests__/zoneDevicesList.test.ts +9 -1
  312. package/src/__tests__/zones.test.ts +31 -4
  313. package/src/admin-funcs/doAdmin.ts +42 -19
  314. package/src/admin-funcs/networksCreate.ts +13 -3
  315. package/src/admin-funcs/networksEmailGatewayUpdates.ts +6 -0
  316. package/src/admin-funcs/networksUpdate.ts +28 -0
  317. package/src/admin-funcs/subscriptionFinishScreeningQuestions.ts +11 -3
  318. package/src/admin-funcs/subscriptionPlanSelection.ts +17 -0
  319. package/src/admin-funcs/subscriptionUpdateVendorType.ts +11 -3
  320. package/src/admin-funcs/zoneDevicesProvisioning.ts +14 -2
  321. package/src/funcs/alertsListAlerts.ts +1 -0
  322. package/src/funcs/invoicesConvertQuote.ts +7 -3
  323. package/src/funcs/invoicesListInvoices.ts +1 -0
  324. package/src/funcs/vendorsGetVendorInvoiceReceipt.ts +6 -1
  325. package/src/funcs/vendorsUpdateVendorDetails.ts +1 -7
  326. package/src/index.extras.ts +5 -1
  327. package/src/lib/config.ts +3 -3
  328. package/src/models/components/alert.ts +51 -2
  329. package/src/models/components/invoice.ts +18 -0
  330. package/src/models/components/invoicefinancialstatus.ts +1 -0
  331. package/src/models/components/userdetails.ts +0 -28
  332. package/src/models/components/userlocation.ts +0 -18
  333. package/src/models/operations/convertquote.ts +46 -0
  334. package/src/models/operations/createinvoice.ts +35 -0
  335. package/src/models/operations/getvendorinvoicereceipt.ts +27 -0
  336. package/src/models/operations/invoicesexport.ts +4 -3
  337. package/src/models/operations/listalerts.ts +7 -0
  338. package/src/models/operations/listinvoices.ts +1 -1
  339. package/src/models/operations/listvendorinvoices.ts +1 -1
  340. package/src/models/operations/updateuser.ts +3 -0
  341. package/src/react-query/alertsListAlerts.core.ts +4 -0
  342. package/src/react-query/alertsListAlerts.ts +2 -0
  343. package/src/react-query/invoicesConvertQuote.ts +4 -1
  344. package/src/react-query/invoicesListInvoices.ts +4 -0
  345. package/src/react-query/vendorsGetVendorInvoiceReceipt.core.ts +8 -2
  346. package/src/react-query/vendorsGetVendorInvoiceReceipt.ts +7 -2
  347. package/src/react-query/vendorsUpdateVendorDetails.ts +1 -7
  348. package/src/sdk/invoices.ts +5 -1
  349. package/src/sdk/vendors.ts +1 -7
@@ -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
  };
@@ -17,6 +17,7 @@ export type UpdateUserRequestBody = {
17
17
  lastName?: string | undefined;
18
18
  username?: string | undefined;
19
19
  email?: string | undefined;
20
+ email2?: string | undefined;
20
21
  phone?: string | undefined;
21
22
  mobilePhone?: string | undefined;
22
23
  fax?: string | undefined;
@@ -79,6 +80,7 @@ export type UpdateUserRequestBody$Outbound = {
79
80
  last_name?: string | undefined;
80
81
  username?: string | undefined;
81
82
  email?: string | undefined;
83
+ email2?: string | undefined;
82
84
  phone?: string | undefined;
83
85
  mobile_phone?: string | undefined;
84
86
  fax?: string | undefined;
@@ -104,6 +106,7 @@ export const UpdateUserRequestBody$outboundSchema: z.ZodType<
104
106
  lastName: z.string().optional(),
105
107
  username: z.string().optional(),
106
108
  email: z.string().optional(),
109
+ email2: z.string().optional(),
107
110
  phone: z.string().optional(),
108
111
  mobilePhone: z.string().optional(),
109
112
  fax: z.string().optional(),
@@ -79,6 +79,7 @@ export function buildAlertsListAlertsQuery(
79
79
  itemsPerPage: request.itemsPerPage,
80
80
  userIdOrMe: request.userIdOrMe,
81
81
  alertType: request.alertType,
82
+ includeDismissedReminders: request.includeDismissedReminders,
82
83
  }),
83
84
  queryFn: async function alertsListAlertsQueryFn(
84
85
  ctx,
@@ -121,6 +122,7 @@ export function buildAlertsListAlertsInfiniteQuery(
121
122
  itemsPerPage: request.itemsPerPage,
122
123
  userIdOrMe: request.userIdOrMe,
123
124
  alertType: request.alertType,
125
+ includeDismissedReminders: request.includeDismissedReminders,
124
126
  }),
125
127
  queryFn: async function alertsListAlertsQuery(
126
128
  ctx,
@@ -160,6 +162,7 @@ export function queryKeyAlertsListAlerts(
160
162
  itemsPerPage?: number | undefined;
161
163
  userIdOrMe?: string | undefined;
162
164
  alertType?: operations.AlertType | undefined;
165
+ includeDismissedReminders?: boolean | undefined;
163
166
  },
164
167
  ): QueryKey {
165
168
  return ["@greensecurity/javascript-sdk", "alerts", "listAlerts", parameters];
@@ -173,6 +176,7 @@ export function queryKeyAlertsListAlertsInfinite(
173
176
  itemsPerPage?: number | undefined;
174
177
  userIdOrMe?: string | undefined;
175
178
  alertType?: operations.AlertType | undefined;
179
+ includeDismissedReminders?: boolean | undefined;
176
180
  },
177
181
  ): QueryKey {
178
182
  return [
@@ -210,6 +210,7 @@ export function setAlertsListAlertsData(
210
210
  itemsPerPage?: number | undefined;
211
211
  userIdOrMe?: string | undefined;
212
212
  alertType?: operations.AlertType | undefined;
213
+ includeDismissedReminders?: boolean | undefined;
213
214
  },
214
215
  ],
215
216
  data: AlertsListAlertsQueryData,
@@ -229,6 +230,7 @@ export function invalidateAlertsListAlerts(
229
230
  itemsPerPage?: number | undefined;
230
231
  userIdOrMe?: string | undefined;
231
232
  alertType?: operations.AlertType | undefined;
233
+ includeDismissedReminders?: boolean | undefined;
232
234
  }]
233
235
  >,
234
236
  filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
@@ -63,7 +63,10 @@ export type InvoicesConvertQuoteMutationError =
63
63
  * invoices; a caller allowed to create the invoice but not to update the
64
64
  * linked `VendorCredential` responds `401`.
65
65
  *
66
- * Takes no request body.
66
+ * Optionally takes `send_to_company_manager`, for a quote linked to a
67
+ * `VendorCredential`: send `true` when the vendor is sending the
68
+ * converted invoice to their company managers to pay instead of paying
69
+ * it themselves. It follows the same rules as on `POST /invoices`.
67
70
  *
68
71
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
69
72
  */
@@ -101,6 +101,7 @@ export type InvoicesListInvoicesQueryError =
101
101
  * - invoice_number
102
102
  * - date (processed date)
103
103
  * - date_paid
104
+ * - date_created
104
105
  * - financial_status
105
106
  * - amount
106
107
  */
@@ -155,6 +156,7 @@ export function useInvoicesListInvoices(
155
156
  * - invoice_number
156
157
  * - date (processed date)
157
158
  * - date_paid
159
+ * - date_created
158
160
  * - financial_status
159
161
  * - amount
160
162
  */
@@ -209,6 +211,7 @@ export function useInvoicesListInvoicesSuspense(
209
211
  * - invoice_number
210
212
  * - date (processed date)
211
213
  * - date_paid
214
+ * - date_created
212
215
  * - financial_status
213
216
  * - amount
214
217
  */
@@ -277,6 +280,7 @@ export function useInvoicesListInvoicesInfinite(
277
280
  * - invoice_number
278
281
  * - date (processed date)
279
282
  * - date_paid
283
+ * - date_created
280
284
  * - financial_status
281
285
  * - amount
282
286
  */
@@ -42,7 +42,9 @@ export function buildVendorsGetVendorInvoiceReceiptQuery(
42
42
  ) => Promise<VendorsGetVendorInvoiceReceiptQueryData>;
43
43
  } {
44
44
  return {
45
- queryKey: queryKeyVendorsGetVendorInvoiceReceipt(request.id),
45
+ queryKey: queryKeyVendorsGetVendorInvoiceReceipt(request.id, {
46
+ pdfType: request.pdfType,
47
+ }),
46
48
  queryFn: async function vendorsGetVendorInvoiceReceiptQueryFn(
47
49
  ctx,
48
50
  ): Promise<VendorsGetVendorInvoiceReceiptQueryData> {
@@ -66,11 +68,15 @@ export function buildVendorsGetVendorInvoiceReceiptQuery(
66
68
  };
67
69
  }
68
70
 
69
- export function queryKeyVendorsGetVendorInvoiceReceipt(id: number): QueryKey {
71
+ export function queryKeyVendorsGetVendorInvoiceReceipt(
72
+ id: number,
73
+ parameters: { pdfType?: operations.PdfType | undefined },
74
+ ): QueryKey {
70
75
  return [
71
76
  "@greensecurity/javascript-sdk",
72
77
  "vendors",
73
78
  "getVendorInvoiceReceipt",
74
79
  id,
80
+ parameters,
75
81
  ];
76
82
  }
@@ -112,7 +112,10 @@ export function useVendorsGetVendorInvoiceReceiptSuspense(
112
112
 
113
113
  export function setVendorsGetVendorInvoiceReceiptData(
114
114
  client: QueryClient,
115
- queryKeyBase: [id: number],
115
+ queryKeyBase: [
116
+ id: number,
117
+ parameters: { pdfType?: operations.PdfType | undefined },
118
+ ],
116
119
  data: VendorsGetVendorInvoiceReceiptQueryData,
117
120
  ): VendorsGetVendorInvoiceReceiptQueryData | undefined {
118
121
  const key = queryKeyVendorsGetVendorInvoiceReceipt(...queryKeyBase);
@@ -125,7 +128,9 @@ export function setVendorsGetVendorInvoiceReceiptData(
125
128
 
126
129
  export function invalidateVendorsGetVendorInvoiceReceipt(
127
130
  client: QueryClient,
128
- queryKeyBase: TupleToPrefixes<[id: number]>,
131
+ queryKeyBase: TupleToPrefixes<
132
+ [id: number, parameters: { pdfType?: operations.PdfType | undefined }]
133
+ >,
129
134
  filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
130
135
  ): Promise<void> {
131
136
  return client.invalidateQueries({
@@ -55,18 +55,12 @@ export type VendorsUpdateVendorDetailsMutationError =
55
55
  * can also remove the vendor from their company by sending `company_id: null`.
56
56
  *
57
57
  * From `location` this endpoint reads only `timezone`, `address1`, `address2`,
58
- * `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax`, `work_email` and `personal_email`. The `address` and
58
+ * `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
59
59
  * `country` properties of the shared `UserLocation` schema have no effect here, and
60
60
  * updating them is not supported. `state` accepts a US state or a Canadian
61
61
  * province—the vendor's country, set only at registration, is not editable
62
62
  * through this endpoint.
63
63
  *
64
- * `location.work_email` and `location.personal_email` are stored lowercased, and a
65
- * value that is not a valid email address, or is longer than 255 characters, gets a
66
- * `422` response. They are contact fields: the login stays `email`, which this
67
- * endpoint does not change. When an update sets either of them, one must be the
68
- * vendor's `email` and the other a different address or empty, or it gets a `422`.
69
- *
70
64
  * Submitting `location.zip` or `location.state` cross-checks the postal code
71
65
  * against the resulting state (using the vendor's existing value for whichever
72
66
  * of the two you omit from the request). The server rejects a code that is not shaped like a real
@@ -76,6 +76,7 @@ export class Invoices extends ClientSDK {
76
76
  * - invoice_number
77
77
  * - date (processed date)
78
78
  * - date_paid
79
+ * - date_created
79
80
  * - financial_status
80
81
  * - amount
81
82
  */
@@ -184,7 +185,10 @@ export class Invoices extends ClientSDK {
184
185
  * invoices; a caller allowed to create the invoice but not to update the
185
186
  * linked `VendorCredential` responds `401`.
186
187
  *
187
- * Takes no request body.
188
+ * Optionally takes `send_to_company_manager`, for a quote linked to a
189
+ * `VendorCredential`: send `true` when the vendor is sending the
190
+ * converted invoice to their company managers to pay instead of paying
191
+ * it themselves. It follows the same rules as on `POST /invoices`.
188
192
  *
189
193
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
190
194
  */