@greensecurity/javascript-sdk 0.44.0-beta.10 → 0.44.0-beta.12

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 (470) hide show
  1. package/README.md +18 -9
  2. package/dist/commonjs/__tests__/invoices.test.js +3 -1
  3. package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/organizations.test.js +34 -42
  5. package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/vendors.test.js +3 -1
  7. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/vendorscans.test.js +57 -0
  9. package/dist/commonjs/__tests__/vendorscans.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zones.test.js +2 -24
  13. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  14. package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts +2 -1
  15. package/dist/commonjs/funcs/invoicesInvoicesExport.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/invoicesInvoicesExport.js +2 -1
  17. package/dist/commonjs/funcs/invoicesInvoicesExport.js.map +1 -1
  18. package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
  19. package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +12 -18
  21. package/dist/commonjs/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
  22. package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
  23. package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
  25. package/dist/commonjs/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
  26. package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
  27. package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/{organizationsListCompanyTargetFacilities.js → organizationsGetCompanyTargetFacilitiesExportStatus.js} +21 -83
  29. package/dist/commonjs/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
  30. package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
  31. package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js +134 -0
  33. package/dist/commonjs/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
  34. package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts +27 -0
  35. package/dist/commonjs/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/vendorScansExportVendorScans.js +141 -0
  37. package/dist/commonjs/funcs/vendorScansExportVendorScans.js.map +1 -0
  38. package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
  39. package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
  40. package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js +126 -0
  41. package/dist/commonjs/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
  42. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +2 -1
  43. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/vendorsVendorsExport.js +2 -1
  45. package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -1
  46. package/dist/commonjs/lib/config.d.ts +2 -2
  47. package/dist/commonjs/lib/config.js +2 -2
  48. package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts +27 -0
  49. package/dist/commonjs/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
  50. package/dist/commonjs/models/{operations/deletecompanytargetfacility.js → components/csvexportenqueuedresponse.js} +14 -9
  51. package/dist/commonjs/models/components/csvexportenqueuedresponse.js.map +1 -0
  52. package/dist/commonjs/models/components/index.d.ts +1 -1
  53. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/index.js +1 -1
  55. package/dist/commonjs/models/components/index.js.map +1 -1
  56. package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
  57. package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
  58. package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js +80 -0
  59. package/dist/commonjs/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
  60. package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts +46 -0
  61. package/dist/commonjs/models/operations/downloadvendorscansexport.d.ts.map +1 -0
  62. package/dist/commonjs/models/operations/downloadvendorscansexport.js +88 -0
  63. package/dist/commonjs/models/operations/downloadvendorscansexport.js.map +1 -0
  64. package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +144 -0
  65. package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
  66. package/dist/commonjs/models/operations/{listcompanytargetfacilities.js → exportcompanytargetfacilities.js} +33 -47
  67. package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -0
  68. package/dist/commonjs/models/operations/exportvendorscans.d.ts +110 -0
  69. package/dist/commonjs/models/operations/exportvendorscans.d.ts.map +1 -0
  70. package/dist/commonjs/models/operations/exportvendorscans.js +98 -0
  71. package/dist/commonjs/models/operations/exportvendorscans.js.map +1 -0
  72. package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
  73. package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
  74. package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js +78 -0
  75. package/dist/commonjs/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
  76. package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts +53 -0
  77. package/dist/commonjs/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
  78. package/dist/commonjs/models/operations/getvendorscansexportstatus.js +73 -0
  79. package/dist/commonjs/models/operations/getvendorscansexportstatus.js.map +1 -0
  80. package/dist/commonjs/models/operations/index.d.ts +6 -3
  81. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/index.js +6 -3
  83. package/dist/commonjs/models/operations/index.js.map +1 -1
  84. package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -41
  85. package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/invoicesexport.js +3 -34
  87. package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
  88. package/dist/commonjs/models/operations/vendorsexport.d.ts +4 -42
  89. package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/vendorsexport.js +3 -33
  91. package/dist/commonjs/models/operations/vendorsexport.js.map +1 -1
  92. package/dist/commonjs/react-query/index.d.ts +6 -3
  93. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  94. package/dist/commonjs/react-query/index.js +6 -3
  95. package/dist/commonjs/react-query/index.js.map +1 -1
  96. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +3 -2
  97. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  98. package/dist/commonjs/react-query/invoicesInvoicesExport.core.js.map +1 -1
  99. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +3 -2
  100. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  101. package/dist/commonjs/react-query/invoicesInvoicesExport.js.map +1 -1
  102. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
  103. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
  104. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +40 -0
  105. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
  106. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
  107. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
  108. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +71 -0
  109. package/dist/commonjs/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
  110. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
  111. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
  112. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js +48 -0
  113. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
  114. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
  115. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
  116. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js +83 -0
  117. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
  118. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
  119. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
  120. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +40 -0
  121. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
  122. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
  123. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
  124. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +71 -0
  125. package/dist/commonjs/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
  126. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
  127. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
  128. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js +39 -0
  129. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
  130. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
  131. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
  132. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js +73 -0
  133. package/dist/commonjs/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
  134. package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
  135. package/dist/commonjs/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
  136. package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js +52 -0
  137. package/dist/commonjs/react-query/vendorScansExportVendorScans.core.js.map +1 -0
  138. package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts +72 -0
  139. package/dist/commonjs/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
  140. package/dist/commonjs/react-query/vendorScansExportVendorScans.js +81 -0
  141. package/dist/commonjs/react-query/vendorScansExportVendorScans.js.map +1 -0
  142. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
  143. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
  144. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js +39 -0
  145. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
  146. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
  147. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
  148. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js +71 -0
  149. package/dist/commonjs/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
  150. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +3 -2
  151. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
  152. package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -1
  153. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +3 -2
  154. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -1
  155. package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -1
  156. package/dist/commonjs/sdk/invoices.d.ts +1 -1
  157. package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
  158. package/dist/commonjs/sdk/organizations.d.ts +16 -50
  159. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  160. package/dist/commonjs/sdk/organizations.js +22 -54
  161. package/dist/commonjs/sdk/organizations.js.map +1 -1
  162. package/dist/commonjs/sdk/vendors.d.ts +1 -1
  163. package/dist/commonjs/sdk/vendorscans.d.ts +33 -0
  164. package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
  165. package/dist/commonjs/sdk/vendorscans.js +41 -1
  166. package/dist/commonjs/sdk/vendorscans.js.map +1 -1
  167. package/dist/esm/__tests__/invoices.test.js +3 -1
  168. package/dist/esm/__tests__/invoices.test.js.map +1 -1
  169. package/dist/esm/__tests__/organizations.test.js +35 -43
  170. package/dist/esm/__tests__/organizations.test.js.map +1 -1
  171. package/dist/esm/__tests__/vendors.test.js +3 -1
  172. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  173. package/dist/esm/__tests__/vendorscans.test.js +57 -0
  174. package/dist/esm/__tests__/vendorscans.test.js.map +1 -1
  175. package/dist/esm/__tests__/webhooks.test.js +1 -1
  176. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  177. package/dist/esm/__tests__/zones.test.js +2 -24
  178. package/dist/esm/__tests__/zones.test.js.map +1 -1
  179. package/dist/esm/funcs/invoicesInvoicesExport.d.ts +2 -1
  180. package/dist/esm/funcs/invoicesInvoicesExport.d.ts.map +1 -1
  181. package/dist/esm/funcs/invoicesInvoicesExport.js +2 -1
  182. package/dist/esm/funcs/invoicesInvoicesExport.js.map +1 -1
  183. package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +21 -0
  184. package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
  185. package/dist/esm/funcs/{organizationsDeleteCompanyTargetFacility.js → organizationsDownloadCompanyTargetFacilitiesExport.js} +11 -17
  186. package/dist/esm/funcs/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
  187. package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts +27 -0
  188. package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
  189. package/dist/esm/funcs/{organizationsCreateCompanyTargetFacility.js → organizationsExportCompanyTargetFacilities.js} +24 -27
  190. package/dist/esm/funcs/organizationsExportCompanyTargetFacilities.js.map +1 -0
  191. package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +21 -0
  192. package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
  193. package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js +96 -0
  194. package/dist/esm/funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
  195. package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts +27 -0
  196. package/dist/esm/funcs/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
  197. package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js +97 -0
  198. package/dist/esm/funcs/vendorScansDownloadVendorScansExport.js.map +1 -0
  199. package/dist/esm/funcs/vendorScansExportVendorScans.d.ts +27 -0
  200. package/dist/esm/funcs/vendorScansExportVendorScans.d.ts.map +1 -0
  201. package/dist/esm/funcs/vendorScansExportVendorScans.js +105 -0
  202. package/dist/esm/funcs/vendorScansExportVendorScans.js.map +1 -0
  203. package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts +21 -0
  204. package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
  205. package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js +90 -0
  206. package/dist/esm/funcs/vendorScansGetVendorScansExportStatus.js.map +1 -0
  207. package/dist/esm/funcs/vendorsVendorsExport.d.ts +2 -1
  208. package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -1
  209. package/dist/esm/funcs/vendorsVendorsExport.js +2 -1
  210. package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -1
  211. package/dist/esm/lib/config.d.ts +2 -2
  212. package/dist/esm/lib/config.js +2 -2
  213. package/dist/esm/models/components/csvexportenqueuedresponse.d.ts +27 -0
  214. package/dist/esm/models/components/csvexportenqueuedresponse.d.ts.map +1 -0
  215. package/dist/esm/models/components/csvexportenqueuedresponse.js +23 -0
  216. package/dist/esm/models/components/csvexportenqueuedresponse.js.map +1 -0
  217. package/dist/esm/models/components/index.d.ts +1 -1
  218. package/dist/esm/models/components/index.d.ts.map +1 -1
  219. package/dist/esm/models/components/index.js +1 -1
  220. package/dist/esm/models/components/index.js.map +1 -1
  221. package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts +47 -0
  222. package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.d.ts.map +1 -0
  223. package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js +41 -0
  224. package/dist/esm/models/operations/downloadcompanytargetfacilitiesexport.js.map +1 -0
  225. package/dist/esm/models/operations/downloadvendorscansexport.d.ts +46 -0
  226. package/dist/esm/models/operations/downloadvendorscansexport.d.ts.map +1 -0
  227. package/dist/esm/models/operations/downloadvendorscansexport.js +48 -0
  228. package/dist/esm/models/operations/downloadvendorscansexport.js.map +1 -0
  229. package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +144 -0
  230. package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -0
  231. package/dist/esm/models/operations/exportcompanytargetfacilities.js +96 -0
  232. package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -0
  233. package/dist/esm/models/operations/exportvendorscans.d.ts +110 -0
  234. package/dist/esm/models/operations/exportvendorscans.d.ts.map +1 -0
  235. package/dist/esm/models/operations/exportvendorscans.js +61 -0
  236. package/dist/esm/models/operations/exportvendorscans.js.map +1 -0
  237. package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts +58 -0
  238. package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.d.ts.map +1 -0
  239. package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js +40 -0
  240. package/dist/esm/models/operations/getcompanytargetfacilitiesexportstatus.js.map +1 -0
  241. package/dist/esm/models/operations/getvendorscansexportstatus.d.ts +53 -0
  242. package/dist/esm/models/operations/getvendorscansexportstatus.d.ts.map +1 -0
  243. package/dist/esm/models/operations/getvendorscansexportstatus.js +35 -0
  244. package/dist/esm/models/operations/getvendorscansexportstatus.js.map +1 -0
  245. package/dist/esm/models/operations/index.d.ts +6 -3
  246. package/dist/esm/models/operations/index.d.ts.map +1 -1
  247. package/dist/esm/models/operations/index.js +6 -3
  248. package/dist/esm/models/operations/index.js.map +1 -1
  249. package/dist/esm/models/operations/invoicesexport.d.ts +4 -41
  250. package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
  251. package/dist/esm/models/operations/invoicesexport.js +2 -31
  252. package/dist/esm/models/operations/invoicesexport.js.map +1 -1
  253. package/dist/esm/models/operations/vendorsexport.d.ts +4 -42
  254. package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -1
  255. package/dist/esm/models/operations/vendorsexport.js +2 -30
  256. package/dist/esm/models/operations/vendorsexport.js.map +1 -1
  257. package/dist/esm/react-query/index.d.ts +6 -3
  258. package/dist/esm/react-query/index.d.ts.map +1 -1
  259. package/dist/esm/react-query/index.js +6 -3
  260. package/dist/esm/react-query/index.js.map +1 -1
  261. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +3 -2
  262. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  263. package/dist/esm/react-query/invoicesInvoicesExport.core.js.map +1 -1
  264. package/dist/esm/react-query/invoicesInvoicesExport.d.ts +3 -2
  265. package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  266. package/dist/esm/react-query/invoicesInvoicesExport.js.map +1 -1
  267. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts +12 -0
  268. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.d.ts.map +1 -0
  269. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js +35 -0
  270. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.js.map +1 -0
  271. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts +31 -0
  272. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.d.ts.map +1 -0
  273. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js +61 -0
  274. package/dist/esm/react-query/organizationsDownloadCompanyTargetFacilitiesExport.js.map +1 -0
  275. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +20 -0
  276. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -0
  277. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js +43 -0
  278. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -0
  279. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +65 -0
  280. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -0
  281. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js +73 -0
  282. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -0
  283. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts +12 -0
  284. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.d.ts.map +1 -0
  285. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js +35 -0
  286. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.js.map +1 -0
  287. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts +31 -0
  288. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.d.ts.map +1 -0
  289. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js +61 -0
  290. package/dist/esm/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.js.map +1 -0
  291. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts +17 -0
  292. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.d.ts.map +1 -0
  293. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js +34 -0
  294. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.core.js.map +1 -0
  295. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts +32 -0
  296. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.d.ts.map +1 -0
  297. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js +62 -0
  298. package/dist/esm/react-query/vendorScansDownloadVendorScansExport.js.map +1 -0
  299. package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts +26 -0
  300. package/dist/esm/react-query/vendorScansExportVendorScans.core.d.ts.map +1 -0
  301. package/dist/esm/react-query/vendorScansExportVendorScans.core.js +47 -0
  302. package/dist/esm/react-query/vendorScansExportVendorScans.core.js.map +1 -0
  303. package/dist/esm/react-query/vendorScansExportVendorScans.d.ts +72 -0
  304. package/dist/esm/react-query/vendorScansExportVendorScans.d.ts.map +1 -0
  305. package/dist/esm/react-query/vendorScansExportVendorScans.js +71 -0
  306. package/dist/esm/react-query/vendorScansExportVendorScans.js.map +1 -0
  307. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts +12 -0
  308. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.d.ts.map +1 -0
  309. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js +34 -0
  310. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.core.js.map +1 -0
  311. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts +31 -0
  312. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.d.ts.map +1 -0
  313. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js +61 -0
  314. package/dist/esm/react-query/vendorScansGetVendorScansExportStatus.js.map +1 -0
  315. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +3 -2
  316. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
  317. package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -1
  318. package/dist/esm/react-query/vendorsVendorsExport.d.ts +3 -2
  319. package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -1
  320. package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -1
  321. package/dist/esm/sdk/invoices.d.ts +1 -1
  322. package/dist/esm/sdk/invoices.d.ts.map +1 -1
  323. package/dist/esm/sdk/organizations.d.ts +16 -50
  324. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  325. package/dist/esm/sdk/organizations.js +22 -54
  326. package/dist/esm/sdk/organizations.js.map +1 -1
  327. package/dist/esm/sdk/vendors.d.ts +1 -1
  328. package/dist/esm/sdk/vendorscans.d.ts +33 -0
  329. package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
  330. package/dist/esm/sdk/vendorscans.js +39 -0
  331. package/dist/esm/sdk/vendorscans.js.map +1 -1
  332. package/jsr.json +1 -1
  333. package/package.json +1 -1
  334. package/src/__tests__/invoices.test.ts +3 -1
  335. package/src/__tests__/organizations.test.ts +51 -46
  336. package/src/__tests__/vendors.test.ts +3 -1
  337. package/src/__tests__/vendorscans.test.ts +70 -0
  338. package/src/__tests__/webhooks.test.ts +1 -1
  339. package/src/__tests__/zones.test.ts +2 -24
  340. package/src/funcs/invoicesInvoicesExport.ts +5 -4
  341. package/src/funcs/organizationsDownloadCompanyTargetFacilitiesExport.ts +200 -0
  342. package/src/funcs/{organizationsCreateCompanyTargetFacility.ts → organizationsExportCompanyTargetFacilities.ts} +32 -33
  343. package/src/funcs/{organizationsDeleteCompanyTargetFacility.ts → organizationsGetCompanyTargetFacilitiesExportStatus.ts} +22 -25
  344. package/src/funcs/vendorScansDownloadVendorScansExport.ts +210 -0
  345. package/src/funcs/vendorScansExportVendorScans.ts +194 -0
  346. package/src/funcs/vendorScansGetVendorScansExportStatus.ts +182 -0
  347. package/src/funcs/vendorsVendorsExport.ts +5 -4
  348. package/src/lib/config.ts +2 -2
  349. package/src/models/components/csvexportenqueuedresponse.ts +58 -0
  350. package/src/models/components/index.ts +1 -1
  351. package/src/models/operations/downloadcompanytargetfacilitiesexport.ts +135 -0
  352. package/src/models/operations/downloadvendorscansexport.ts +145 -0
  353. package/src/models/operations/exportcompanytargetfacilities.ts +242 -0
  354. package/src/models/operations/exportvendorscans.ts +163 -0
  355. package/src/models/operations/getcompanytargetfacilitiesexportstatus.ts +126 -0
  356. package/src/models/operations/getvendorscansexportstatus.ts +108 -0
  357. package/src/models/operations/index.ts +6 -3
  358. package/src/models/operations/invoicesexport.ts +5 -83
  359. package/src/models/operations/vendorsexport.ts +5 -82
  360. package/src/react-query/index.ts +6 -3
  361. package/src/react-query/invoicesInvoicesExport.core.ts +3 -2
  362. package/src/react-query/invoicesInvoicesExport.ts +3 -2
  363. package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.core.ts +85 -0
  364. package/src/react-query/organizationsDownloadCompanyTargetFacilitiesExport.ts +153 -0
  365. package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +99 -0
  366. package/src/react-query/organizationsExportCompanyTargetFacilities.ts +189 -0
  367. package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.core.ts +84 -0
  368. package/src/react-query/organizationsGetCompanyTargetFacilitiesExportStatus.ts +153 -0
  369. package/src/react-query/vendorScansDownloadVendorScansExport.core.ts +86 -0
  370. package/src/react-query/vendorScansDownloadVendorScansExport.ts +154 -0
  371. package/src/react-query/vendorScansExportVendorScans.core.ts +105 -0
  372. package/src/react-query/vendorScansExportVendorScans.ts +190 -0
  373. package/src/react-query/vendorScansGetVendorScansExportStatus.core.ts +78 -0
  374. package/src/react-query/vendorScansGetVendorScansExportStatus.ts +152 -0
  375. package/src/react-query/vendorsVendorsExport.core.ts +3 -2
  376. package/src/react-query/vendorsVendorsExport.ts +3 -2
  377. package/src/sdk/invoices.ts +1 -1
  378. package/src/sdk/organizations.ts +30 -67
  379. package/src/sdk/vendors.ts +1 -1
  380. package/src/sdk/vendorscans.ts +69 -0
  381. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
  382. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
  383. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
  384. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
  385. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
  386. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
  387. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
  388. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
  389. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
  390. package/dist/commonjs/models/components/companytargetfacility.d.ts +0 -54
  391. package/dist/commonjs/models/components/companytargetfacility.d.ts.map +0 -1
  392. package/dist/commonjs/models/components/companytargetfacility.js +0 -80
  393. package/dist/commonjs/models/components/companytargetfacility.js.map +0 -1
  394. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +0 -50
  395. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +0 -1
  396. package/dist/commonjs/models/operations/createcompanytargetfacility.js +0 -84
  397. package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +0 -1
  398. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +0 -20
  399. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
  400. package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +0 -1
  401. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +0 -173
  402. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
  403. package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +0 -1
  404. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
  405. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
  406. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +0 -65
  407. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
  408. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
  409. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
  410. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +0 -59
  411. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
  412. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
  413. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
  414. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +0 -111
  415. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
  416. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
  417. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
  418. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +0 -180
  419. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
  420. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +0 -34
  421. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
  422. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +0 -1
  423. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +0 -28
  424. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
  425. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +0 -1
  426. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +0 -42
  427. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
  428. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +0 -158
  429. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +0 -1
  430. package/dist/esm/models/components/companytargetfacility.d.ts +0 -54
  431. package/dist/esm/models/components/companytargetfacility.d.ts.map +0 -1
  432. package/dist/esm/models/components/companytargetfacility.js +0 -41
  433. package/dist/esm/models/components/companytargetfacility.js.map +0 -1
  434. package/dist/esm/models/operations/createcompanytargetfacility.d.ts +0 -50
  435. package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +0 -1
  436. package/dist/esm/models/operations/createcompanytargetfacility.js +0 -45
  437. package/dist/esm/models/operations/createcompanytargetfacility.js.map +0 -1
  438. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +0 -20
  439. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +0 -1
  440. package/dist/esm/models/operations/deletecompanytargetfacility.js +0 -18
  441. package/dist/esm/models/operations/deletecompanytargetfacility.js.map +0 -1
  442. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +0 -173
  443. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +0 -1
  444. package/dist/esm/models/operations/listcompanytargetfacilities.js +0 -110
  445. package/dist/esm/models/operations/listcompanytargetfacilities.js.map +0 -1
  446. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +0 -43
  447. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +0 -1
  448. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +0 -60
  449. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +0 -1
  450. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +0 -37
  451. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +0 -1
  452. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +0 -54
  453. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +0 -1
  454. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +0 -54
  455. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +0 -1
  456. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +0 -103
  457. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +0 -1
  458. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +0 -154
  459. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +0 -1
  460. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +0 -165
  461. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +0 -1
  462. package/src/funcs/organizationsListCompanyTargetFacilities.ts +0 -291
  463. package/src/models/components/companytargetfacility.ts +0 -124
  464. package/src/models/operations/createcompanytargetfacility.ts +0 -132
  465. package/src/models/operations/deletecompanytargetfacility.ts +0 -47
  466. package/src/models/operations/listcompanytargetfacilities.ts +0 -291
  467. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +0 -129
  468. package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +0 -122
  469. package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +0 -239
  470. package/src/react-query/organizationsListCompanyTargetFacilities.ts +0 -365
@@ -0,0 +1,163 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import * as components from "../components/index.js";
9
+
10
+ /**
11
+ * Sort field used by the exporter when ordering rows in the generated CSV. One of:
12
+ *
13
+ * @remarks
14
+ * `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
15
+ */
16
+ export const ExportVendorScansQueryParamSort = {
17
+ FullName: "full_name",
18
+ DateScanned: "date_scanned",
19
+ Result: "result",
20
+ ScanType: "scan_type",
21
+ } as const;
22
+ /**
23
+ * Sort field used by the exporter when ordering rows in the generated CSV. One of:
24
+ *
25
+ * @remarks
26
+ * `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
27
+ */
28
+ export type ExportVendorScansQueryParamSort = ClosedEnum<
29
+ typeof ExportVendorScansQueryParamSort
30
+ >;
31
+
32
+ /**
33
+ * Filter by scan type. One of: `in`, `out`, `spot_check`.
34
+ */
35
+ export const QueryParamScanType = {
36
+ In: "in",
37
+ Out: "out",
38
+ SpotCheck: "spot_check",
39
+ } as const;
40
+ /**
41
+ * Filter by scan type. One of: `in`, `out`, `spot_check`.
42
+ */
43
+ export type QueryParamScanType = ClosedEnum<typeof QueryParamScanType>;
44
+
45
+ export type ExportVendorScansRequest = {
46
+ /**
47
+ * Sort field used by the exporter when ordering rows in the generated CSV. One of:
48
+ *
49
+ * @remarks
50
+ * `full_name`, `date_scanned`, `result`, `scan_type`. Defaults to `date_scanned`.
51
+ */
52
+ sort?: ExportVendorScansQueryParamSort | undefined;
53
+ /**
54
+ * Sort desc
55
+ */
56
+ desc?: components.Desc | undefined;
57
+ /**
58
+ * Page size used by the exporter while paginating results server-side. Does not affect the size of the CSV (all matching rows are included).
59
+ */
60
+ itemsPerPage?: number | undefined;
61
+ /**
62
+ * An ID representing a Hospital
63
+ */
64
+ facilityId?: number | undefined;
65
+ /**
66
+ * An ID representing a Hospital System
67
+ */
68
+ systemId?: number | undefined;
69
+ /**
70
+ * Filter scans by company ID.
71
+ */
72
+ companyId?: number | undefined;
73
+ /**
74
+ * Filter scans by vendor ID, or pass `me` to use the currently authenticated vendor.
75
+ */
76
+ vendorId?: string | undefined;
77
+ /**
78
+ * Filter by scan type. One of: `in`, `out`, `spot_check`.
79
+ */
80
+ scanType?: QueryParamScanType | undefined;
81
+ /**
82
+ * Filter by individual full name (case-insensitive, partial match).
83
+ */
84
+ fullNameLike?: string | undefined;
85
+ /**
86
+ * Filter scans on or after this date. Format: YYYY-MM-DD.
87
+ */
88
+ dateScannedGte?: string | undefined;
89
+ /**
90
+ * Filter scans on or before this date. Format: YYYY-MM-DD.
91
+ */
92
+ dateScannedLte?: string | undefined;
93
+ /**
94
+ * Filter by scan result. `true` for successful scans, `false` for failed.
95
+ */
96
+ result?: boolean | undefined;
97
+ };
98
+
99
+ /** @internal */
100
+ export const ExportVendorScansQueryParamSort$outboundSchema: z.ZodNativeEnum<
101
+ typeof ExportVendorScansQueryParamSort
102
+ > = z.nativeEnum(ExportVendorScansQueryParamSort);
103
+
104
+ /** @internal */
105
+ export const QueryParamScanType$outboundSchema: z.ZodNativeEnum<
106
+ typeof QueryParamScanType
107
+ > = z.nativeEnum(QueryParamScanType);
108
+
109
+ /** @internal */
110
+ export type ExportVendorScansRequest$Outbound = {
111
+ sort?: string | undefined;
112
+ desc?: components.Desc$Outbound | undefined;
113
+ items_per_page?: number | undefined;
114
+ facility_id?: number | undefined;
115
+ system_id?: number | undefined;
116
+ company_id?: number | undefined;
117
+ vendor_id?: string | undefined;
118
+ scan_type?: string | undefined;
119
+ full_name_like?: string | undefined;
120
+ date_scanned_gte?: string | undefined;
121
+ date_scanned_lte?: string | undefined;
122
+ result?: boolean | undefined;
123
+ };
124
+
125
+ /** @internal */
126
+ export const ExportVendorScansRequest$outboundSchema: z.ZodType<
127
+ ExportVendorScansRequest$Outbound,
128
+ z.ZodTypeDef,
129
+ ExportVendorScansRequest
130
+ > = z.object({
131
+ sort: ExportVendorScansQueryParamSort$outboundSchema.optional(),
132
+ desc: components.Desc$outboundSchema.optional(),
133
+ itemsPerPage: z.number().int().optional(),
134
+ facilityId: z.number().int().optional(),
135
+ systemId: z.number().int().optional(),
136
+ companyId: z.number().int().optional(),
137
+ vendorId: z.string().optional(),
138
+ scanType: QueryParamScanType$outboundSchema.optional(),
139
+ fullNameLike: z.string().optional(),
140
+ dateScannedGte: z.string().optional(),
141
+ dateScannedLte: z.string().optional(),
142
+ result: z.boolean().optional(),
143
+ }).transform((v) => {
144
+ return remap$(v, {
145
+ itemsPerPage: "items_per_page",
146
+ facilityId: "facility_id",
147
+ systemId: "system_id",
148
+ companyId: "company_id",
149
+ vendorId: "vendor_id",
150
+ scanType: "scan_type",
151
+ fullNameLike: "full_name_like",
152
+ dateScannedGte: "date_scanned_gte",
153
+ dateScannedLte: "date_scanned_lte",
154
+ });
155
+ });
156
+
157
+ export function exportVendorScansRequestToJSON(
158
+ exportVendorScansRequest: ExportVendorScansRequest,
159
+ ): string {
160
+ return JSON.stringify(
161
+ ExportVendorScansRequest$outboundSchema.parse(exportVendorScansRequest),
162
+ );
163
+ }
@@ -0,0 +1,126 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetCompanyTargetFacilitiesExportStatusRequest = {
13
+ /**
14
+ * The company whose export is being polled.
15
+ */
16
+ companyId: number;
17
+ /**
18
+ * Export status id returned by the export endpoint (e.g. `ctf_export_42`).
19
+ */
20
+ id: string;
21
+ };
22
+
23
+ /**
24
+ * Export status
25
+ */
26
+ export type GetCompanyTargetFacilitiesExportStatusResponseBody = {
27
+ /**
28
+ * When true, the export is ready for download.
29
+ */
30
+ ready: boolean;
31
+ /**
32
+ * The export job identifier.
33
+ */
34
+ statusId: string;
35
+ /**
36
+ * URL to download the CSV (present only when `ready` is true).
37
+ */
38
+ downloadUrl?: string | undefined;
39
+ /**
40
+ * When the export job completed.
41
+ */
42
+ finishedAt?: string | undefined;
43
+ /**
44
+ * When the export job started.
45
+ */
46
+ startedAt?: string | undefined;
47
+ /**
48
+ * Timestamp of the last progress heartbeat from the background job. Updated on each pagination loop while the job is running; on completion or failure it equals `finished_at`.
49
+ */
50
+ heartbeat?: string | undefined;
51
+ /**
52
+ * Error message if the export failed.
53
+ */
54
+ error?: string | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export type GetCompanyTargetFacilitiesExportStatusRequest$Outbound = {
59
+ company_id: number;
60
+ id: string;
61
+ };
62
+
63
+ /** @internal */
64
+ export const GetCompanyTargetFacilitiesExportStatusRequest$outboundSchema:
65
+ z.ZodType<
66
+ GetCompanyTargetFacilitiesExportStatusRequest$Outbound,
67
+ z.ZodTypeDef,
68
+ GetCompanyTargetFacilitiesExportStatusRequest
69
+ > = z.object({
70
+ companyId: z.number().int(),
71
+ id: z.string(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ companyId: "company_id",
75
+ });
76
+ });
77
+
78
+ export function getCompanyTargetFacilitiesExportStatusRequestToJSON(
79
+ getCompanyTargetFacilitiesExportStatusRequest:
80
+ GetCompanyTargetFacilitiesExportStatusRequest,
81
+ ): string {
82
+ return JSON.stringify(
83
+ GetCompanyTargetFacilitiesExportStatusRequest$outboundSchema.parse(
84
+ getCompanyTargetFacilitiesExportStatusRequest,
85
+ ),
86
+ );
87
+ }
88
+
89
+ /** @internal */
90
+ export const GetCompanyTargetFacilitiesExportStatusResponseBody$inboundSchema:
91
+ z.ZodType<
92
+ GetCompanyTargetFacilitiesExportStatusResponseBody,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.object({
96
+ ready: types.boolean(),
97
+ status_id: types.string(),
98
+ download_url: types.optional(types.string()),
99
+ finished_at: types.optional(types.string()),
100
+ started_at: types.optional(types.string()),
101
+ heartbeat: types.optional(types.string()),
102
+ error: types.optional(types.string()),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ "status_id": "statusId",
106
+ "download_url": "downloadUrl",
107
+ "finished_at": "finishedAt",
108
+ "started_at": "startedAt",
109
+ });
110
+ });
111
+
112
+ export function getCompanyTargetFacilitiesExportStatusResponseBodyFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<
115
+ GetCompanyTargetFacilitiesExportStatusResponseBody,
116
+ SDKValidationError
117
+ > {
118
+ return safeParse(
119
+ jsonString,
120
+ (x) =>
121
+ GetCompanyTargetFacilitiesExportStatusResponseBody$inboundSchema.parse(
122
+ JSON.parse(x),
123
+ ),
124
+ `Failed to parse 'GetCompanyTargetFacilitiesExportStatusResponseBody' from JSON`,
125
+ );
126
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetVendorScansExportStatusRequest = {
13
+ /**
14
+ * Export status id returned by the export vendor scans endpoint.
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /**
20
+ * Export status
21
+ */
22
+ export type GetVendorScansExportStatusResponseBody = {
23
+ /**
24
+ * When true, the export is ready for download.
25
+ */
26
+ ready: boolean;
27
+ /**
28
+ * The export job identifier.
29
+ */
30
+ statusId: string;
31
+ /**
32
+ * URL to download the CSV (present only when `ready` is true).
33
+ */
34
+ downloadUrl?: string | undefined;
35
+ /**
36
+ * When the export job completed.
37
+ */
38
+ finishedAt?: string | undefined;
39
+ /**
40
+ * When the export job started.
41
+ */
42
+ startedAt?: string | undefined;
43
+ /**
44
+ * Timestamp of the last progress heartbeat from the background job. Updated on each pagination loop while the job is running; on completion or failure it equals `finished_at`.
45
+ */
46
+ heartbeat?: string | undefined;
47
+ /**
48
+ * Error message if the export failed.
49
+ */
50
+ error?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export type GetVendorScansExportStatusRequest$Outbound = {
55
+ id: string;
56
+ };
57
+
58
+ /** @internal */
59
+ export const GetVendorScansExportStatusRequest$outboundSchema: z.ZodType<
60
+ GetVendorScansExportStatusRequest$Outbound,
61
+ z.ZodTypeDef,
62
+ GetVendorScansExportStatusRequest
63
+ > = z.object({
64
+ id: z.string(),
65
+ });
66
+
67
+ export function getVendorScansExportStatusRequestToJSON(
68
+ getVendorScansExportStatusRequest: GetVendorScansExportStatusRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ GetVendorScansExportStatusRequest$outboundSchema.parse(
72
+ getVendorScansExportStatusRequest,
73
+ ),
74
+ );
75
+ }
76
+
77
+ /** @internal */
78
+ export const GetVendorScansExportStatusResponseBody$inboundSchema: z.ZodType<
79
+ GetVendorScansExportStatusResponseBody,
80
+ z.ZodTypeDef,
81
+ unknown
82
+ > = z.object({
83
+ ready: types.boolean(),
84
+ status_id: types.string(),
85
+ download_url: types.optional(types.string()),
86
+ finished_at: types.optional(types.string()),
87
+ started_at: types.optional(types.string()),
88
+ heartbeat: types.optional(types.string()),
89
+ error: types.optional(types.string()),
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ "status_id": "statusId",
93
+ "download_url": "downloadUrl",
94
+ "finished_at": "finishedAt",
95
+ "started_at": "startedAt",
96
+ });
97
+ });
98
+
99
+ export function getVendorScansExportStatusResponseBodyFromJSON(
100
+ jsonString: string,
101
+ ): SafeParseResult<GetVendorScansExportStatusResponseBody, SDKValidationError> {
102
+ return safeParse(
103
+ jsonString,
104
+ (x) =>
105
+ GetVendorScansExportStatusResponseBody$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'GetVendorScansExportStatusResponseBody' from JSON`,
107
+ );
108
+ }
@@ -15,7 +15,6 @@ export * from "./cancelhandoff.js";
15
15
  export * from "./changepassword.js";
16
16
  export * from "./changesubscription.js";
17
17
  export * from "./checkdownloadcode.js";
18
- export * from "./createcompanytargetfacility.js";
19
18
  export * from "./createevent.js";
20
19
  export * from "./createinvoice.js";
21
20
  export * from "./createnewvendorcredentialversion.js";
@@ -26,17 +25,21 @@ export * from "./createvendorfield.js";
26
25
  export * from "./createvendorregistration.js";
27
26
  export * from "./declineinvitation.js";
28
27
  export * from "./declinevendorcredential.js";
29
- export * from "./deletecompanytargetfacility.js";
30
28
  export * from "./deletedatarequestfile.js";
31
29
  export * from "./deleteevent.js";
32
30
  export * from "./deletefhirconfigbyid.js";
33
31
  export * from "./deletepaymentprofile.js";
34
32
  export * from "./deletevendorcredentialfile.js";
35
33
  export * from "./deletevendormanagedbycompany.js";
34
+ export * from "./downloadcompanytargetfacilitiesexport.js";
36
35
  export * from "./downloadinvoicesexport.js";
36
+ export * from "./downloadvendorscansexport.js";
37
37
  export * from "./downloadvendorsexport.js";
38
38
  export * from "./expeditetimeremaining.js";
39
+ export * from "./exportcompanytargetfacilities.js";
40
+ export * from "./exportvendorscans.js";
39
41
  export * from "./getcompany.js";
42
+ export * from "./getcompanytargetfacilitiesexportstatus.js";
40
43
  export * from "./getcurrentuser.js";
41
44
  export * from "./getevent.js";
42
45
  export * from "./getfacility.js";
@@ -56,6 +59,7 @@ export * from "./getvendorinvoicedetails.js";
56
59
  export * from "./getvendorinvoicereceipt.js";
57
60
  export * from "./getvendorlegalname.js";
58
61
  export * from "./getvendorscan.js";
62
+ export * from "./getvendorscansexportstatus.js";
59
63
  export * from "./getvendorsdetails.js";
60
64
  export * from "./getvendorsexportstatus.js";
61
65
  export * from "./getvendoruploadhistory.js";
@@ -66,7 +70,6 @@ export * from "./listallwebhookendpoints.js";
66
70
  export * from "./listcompanycredentials.js";
67
71
  export * from "./listcompanycredits.js";
68
72
  export * from "./listcompanymanagers.js";
69
- export * from "./listcompanytargetfacilities.js";
70
73
  export * from "./listfeed.js";
71
74
  export * from "./listinvoices.js";
72
75
  export * from "./listlocations.js";
@@ -4,12 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
7
  import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as types from "../../types/primitives.js";
11
- import { smartUnion } from "../../types/smartUnion.js";
12
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
8
+ import * as components from "../components/index.js";
13
9
 
14
10
  /**
15
11
  * Filter by financial status (paid or unpaid).
@@ -23,17 +19,6 @@ export const InvoiceFinancialStatus = {
23
19
  */
24
20
  export type InvoiceFinancialStatus = ClosedEnum<typeof InvoiceFinancialStatus>;
25
21
 
26
- export const QueryParam2 = {
27
- Zero: 0,
28
- One: 1,
29
- } as const;
30
- export type QueryParam2 = ClosedEnum<typeof QueryParam2>;
31
-
32
- /**
33
- * Sort descending flag.
34
- */
35
- export type QueryParamDesc = boolean | QueryParam2;
36
-
37
22
  export type InvoicesExportRequest = {
38
23
  /**
39
24
  * Filter by invoice number (e.g., `CM-123` or `123-1`).
@@ -68,9 +53,9 @@ export type InvoicesExportRequest = {
68
53
  */
69
54
  sort?: string | undefined;
70
55
  /**
71
- * Sort descending flag.
56
+ * Sort desc
72
57
  */
73
- desc?: boolean | QueryParam2 | undefined;
58
+ desc?: components.Desc | undefined;
74
59
  /**
75
60
  * Page size used by the exporter while paginating results.
76
61
  */
@@ -81,47 +66,11 @@ export type InvoicesExportRequest = {
81
66
  expand?: string | undefined;
82
67
  };
83
68
 
84
- /**
85
- * Export request accepted and job enqueued.
86
- */
87
- export type InvoicesExportResponseBody = {
88
- /**
89
- * URL to poll for export status
90
- */
91
- statusUrl: string;
92
- /**
93
- * URL to download the exported file
94
- */
95
- downloadUrl: string;
96
- /**
97
- * Status token to check export status
98
- */
99
- statusId: string;
100
- };
101
-
102
69
  /** @internal */
103
70
  export const InvoiceFinancialStatus$outboundSchema: z.ZodNativeEnum<
104
71
  typeof InvoiceFinancialStatus
105
72
  > = z.nativeEnum(InvoiceFinancialStatus);
106
73
 
107
- /** @internal */
108
- export const QueryParam2$outboundSchema: z.ZodNativeEnum<typeof QueryParam2> = z
109
- .nativeEnum(QueryParam2);
110
-
111
- /** @internal */
112
- export type QueryParamDesc$Outbound = boolean | number;
113
-
114
- /** @internal */
115
- export const QueryParamDesc$outboundSchema: z.ZodType<
116
- QueryParamDesc$Outbound,
117
- z.ZodTypeDef,
118
- QueryParamDesc
119
- > = smartUnion([z.boolean(), QueryParam2$outboundSchema]);
120
-
121
- export function queryParamDescToJSON(queryParamDesc: QueryParamDesc): string {
122
- return JSON.stringify(QueryParamDesc$outboundSchema.parse(queryParamDesc));
123
- }
124
-
125
74
  /** @internal */
126
75
  export type InvoicesExportRequest$Outbound = {
127
76
  invoice_number?: string | undefined;
@@ -132,7 +81,7 @@ export type InvoicesExportRequest$Outbound = {
132
81
  facility_id?: number | undefined;
133
82
  system_id?: number | undefined;
134
83
  sort?: string | undefined;
135
- desc?: boolean | number | undefined;
84
+ desc?: components.Desc$Outbound | undefined;
136
85
  items_per_page?: number | undefined;
137
86
  expand?: string | undefined;
138
87
  };
@@ -151,7 +100,7 @@ export const InvoicesExportRequest$outboundSchema: z.ZodType<
151
100
  facilityId: z.number().int().optional(),
152
101
  systemId: z.number().int().optional(),
153
102
  sort: z.string().optional(),
154
- desc: smartUnion([z.boolean(), QueryParam2$outboundSchema]).optional(),
103
+ desc: components.Desc$outboundSchema.optional(),
155
104
  itemsPerPage: z.number().int().optional(),
156
105
  expand: z.string().optional(),
157
106
  }).transform((v) => {
@@ -173,30 +122,3 @@ export function invoicesExportRequestToJSON(
173
122
  InvoicesExportRequest$outboundSchema.parse(invoicesExportRequest),
174
123
  );
175
124
  }
176
-
177
- /** @internal */
178
- export const InvoicesExportResponseBody$inboundSchema: z.ZodType<
179
- InvoicesExportResponseBody,
180
- z.ZodTypeDef,
181
- unknown
182
- > = z.object({
183
- status_url: types.string(),
184
- download_url: types.string(),
185
- status_id: types.string(),
186
- }).transform((v) => {
187
- return remap$(v, {
188
- "status_url": "statusUrl",
189
- "download_url": "downloadUrl",
190
- "status_id": "statusId",
191
- });
192
- });
193
-
194
- export function invoicesExportResponseBodyFromJSON(
195
- jsonString: string,
196
- ): SafeParseResult<InvoicesExportResponseBody, SDKValidationError> {
197
- return safeParse(
198
- jsonString,
199
- (x) => InvoicesExportResponseBody$inboundSchema.parse(JSON.parse(x)),
200
- `Failed to parse 'InvoicesExportResponseBody' from JSON`,
201
- );
202
- }
@@ -4,23 +4,7 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as types from "../../types/primitives.js";
11
- import { smartUnion } from "../../types/smartUnion.js";
12
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
-
14
- export const Two = {
15
- Zero: 0,
16
- One: 1,
17
- } as const;
18
- export type Two = ClosedEnum<typeof Two>;
19
-
20
- /**
21
- * Sort descending flag.
22
- */
23
- export type Desc = boolean | Two;
7
+ import * as components from "../components/index.js";
24
8
 
25
9
  export type VendorsExportRequest = {
26
10
  /**
@@ -120,9 +104,9 @@ export type VendorsExportRequest = {
120
104
  */
121
105
  sort?: string | undefined;
122
106
  /**
123
- * Sort descending flag.
107
+ * Sort desc
124
108
  */
125
- desc?: boolean | Two | undefined;
109
+ desc?: components.Desc | undefined;
126
110
  /**
127
111
  * Page size used by the exporter while paginating results.
128
112
  */
@@ -133,40 +117,6 @@ export type VendorsExportRequest = {
133
117
  expand?: string | undefined;
134
118
  };
135
119
 
136
- /**
137
- * Export request accepted and job enqueued.
138
- */
139
- export type VendorsExportResponseBody = {
140
- /**
141
- * URL to poll for export status.
142
- */
143
- statusUrl: string;
144
- /**
145
- * URL to download the exported file once ready.
146
- */
147
- downloadUrl: string;
148
- /**
149
- * Status token used to check export status.
150
- */
151
- statusId: string;
152
- };
153
-
154
- /** @internal */
155
- export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(
156
- Two,
157
- );
158
-
159
- /** @internal */
160
- export type Desc$Outbound = boolean | number;
161
-
162
- /** @internal */
163
- export const Desc$outboundSchema: z.ZodType<Desc$Outbound, z.ZodTypeDef, Desc> =
164
- smartUnion([z.boolean(), Two$outboundSchema]);
165
-
166
- export function descToJSON(desc: Desc): string {
167
- return JSON.stringify(Desc$outboundSchema.parse(desc));
168
- }
169
-
170
120
  /** @internal */
171
121
  export type VendorsExportRequest$Outbound = {
172
122
  company_name_like?: string | undefined;
@@ -193,7 +143,7 @@ export type VendorsExportRequest$Outbound = {
193
143
  date_ends_gte?: string | undefined;
194
144
  date_ends_lte?: string | undefined;
195
145
  sort?: string | undefined;
196
- desc?: boolean | number | undefined;
146
+ desc?: components.Desc$Outbound | undefined;
197
147
  items_per_page?: number | undefined;
198
148
  expand?: string | undefined;
199
149
  };
@@ -236,7 +186,7 @@ export const VendorsExportRequest$outboundSchema: z.ZodType<
236
186
  v.toISOString().slice(0, "YYYY-MM-DD".length)
237
187
  ).optional(),
238
188
  sort: z.string().optional(),
239
- desc: smartUnion([z.boolean(), Two$outboundSchema]).optional(),
189
+ desc: components.Desc$outboundSchema.optional(),
240
190
  itemsPerPage: z.number().int().optional(),
241
191
  expand: z.string().optional(),
242
192
  }).transform((v) => {
@@ -274,30 +224,3 @@ export function vendorsExportRequestToJSON(
274
224
  VendorsExportRequest$outboundSchema.parse(vendorsExportRequest),
275
225
  );
276
226
  }
277
-
278
- /** @internal */
279
- export const VendorsExportResponseBody$inboundSchema: z.ZodType<
280
- VendorsExportResponseBody,
281
- z.ZodTypeDef,
282
- unknown
283
- > = z.object({
284
- status_url: types.string(),
285
- download_url: types.string(),
286
- status_id: types.string(),
287
- }).transform((v) => {
288
- return remap$(v, {
289
- "status_url": "statusUrl",
290
- "download_url": "downloadUrl",
291
- "status_id": "statusId",
292
- });
293
- });
294
-
295
- export function vendorsExportResponseBodyFromJSON(
296
- jsonString: string,
297
- ): SafeParseResult<VendorsExportResponseBody, SDKValidationError> {
298
- return safeParse(
299
- jsonString,
300
- (x) => VendorsExportResponseBody$inboundSchema.parse(JSON.parse(x)),
301
- `Failed to parse 'VendorsExportResponseBody' from JSON`,
302
- );
303
- }