@greensecurity/javascript-sdk 0.44.0-beta.3 → 0.44.0-beta.5

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 (535) hide show
  1. package/README.md +21 -0
  2. package/dist/commonjs/__tests__/companies.test.js +29 -0
  3. package/dist/commonjs/__tests__/companies.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/organizations.test.js +75 -0
  5. package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/vendors.test.js +51 -0
  7. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  9. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/zones.test.js +25 -6
  11. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  12. package/dist/commonjs/funcs/companiesListCompanyCredentials.d.ts +23 -0
  13. package/dist/commonjs/funcs/companiesListCompanyCredentials.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/companiesListCompanyCredentials.js +170 -0
  15. package/dist/commonjs/funcs/companiesListCompanyCredentials.js.map +1 -0
  16. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
  17. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +145 -0
  19. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
  20. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
  21. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js +138 -0
  23. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  24. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +38 -0
  25. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +186 -0
  27. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
  28. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
  29. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  30. package/dist/commonjs/funcs/vendorScansGetVendorScan.d.ts +3 -0
  31. package/dist/commonjs/funcs/vendorScansGetVendorScan.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/vendorScansGetVendorScan.js +3 -0
  33. package/dist/commonjs/funcs/vendorScansGetVendorScan.js.map +1 -1
  34. package/dist/commonjs/funcs/vendorsDownloadVendorsExport.d.ts +22 -0
  35. package/dist/commonjs/funcs/vendorsDownloadVendorsExport.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/vendorsDownloadVendorsExport.js +128 -0
  37. package/dist/commonjs/funcs/vendorsDownloadVendorsExport.js.map +1 -0
  38. package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.d.ts +21 -0
  39. package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  40. package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.js +126 -0
  41. package/dist/commonjs/funcs/vendorsGetVendorsExportStatus.js.map +1 -0
  42. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +23 -0
  43. package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -0
  44. package/dist/commonjs/funcs/vendorsVendorsExport.js +152 -0
  45. package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -0
  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/appointmentsummary.d.ts +25 -0
  49. package/dist/commonjs/models/components/appointmentsummary.d.ts.map +1 -0
  50. package/dist/commonjs/models/components/appointmentsummary.js +63 -0
  51. package/dist/commonjs/models/components/appointmentsummary.js.map +1 -0
  52. package/dist/commonjs/models/components/companycredentiallistitem.d.ts +32 -0
  53. package/dist/commonjs/models/components/companycredentiallistitem.d.ts.map +1 -0
  54. package/dist/commonjs/models/components/companycredentiallistitem.js +84 -0
  55. package/dist/commonjs/models/components/companycredentiallistitem.js.map +1 -0
  56. package/dist/commonjs/models/components/companytargetfacility.d.ts +54 -0
  57. package/dist/commonjs/models/components/companytargetfacility.d.ts.map +1 -0
  58. package/dist/commonjs/models/components/companytargetfacility.js +80 -0
  59. package/dist/commonjs/models/components/companytargetfacility.js.map +1 -0
  60. package/dist/commonjs/models/components/expand.d.ts +5 -0
  61. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/expand.js +5 -0
  63. package/dist/commonjs/models/components/expand.js.map +1 -1
  64. package/dist/commonjs/models/components/index.d.ts +4 -0
  65. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/index.js +4 -0
  67. package/dist/commonjs/models/components/index.js.map +1 -1
  68. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
  69. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/vendorcredentialsummary.js +2 -0
  71. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  72. package/dist/commonjs/models/components/vendorscan.d.ts +47 -0
  73. package/dist/commonjs/models/components/vendorscan.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/vendorscan.js +31 -1
  75. package/dist/commonjs/models/components/vendorscan.js.map +1 -1
  76. package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts +27 -0
  77. package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
  78. package/dist/commonjs/models/components/vendorscanscreeningresponse.js +63 -0
  79. package/dist/commonjs/models/components/vendorscanscreeningresponse.js.map +1 -0
  80. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +50 -0
  81. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  82. package/dist/commonjs/models/operations/createcompanytargetfacility.js +84 -0
  83. package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +1 -0
  84. package/dist/commonjs/models/operations/createinvoice.d.ts +6 -6
  85. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/createinvoice.js +6 -6
  87. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  88. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +20 -0
  89. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  90. package/dist/commonjs/models/operations/deletecompanytargetfacility.js +55 -0
  91. package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +1 -0
  92. package/dist/commonjs/models/operations/downloadvendorsexport.d.ts +42 -0
  93. package/dist/commonjs/models/operations/downloadvendorsexport.d.ts.map +1 -0
  94. package/dist/commonjs/models/operations/downloadvendorsexport.js +75 -0
  95. package/dist/commonjs/models/operations/downloadvendorsexport.js.map +1 -0
  96. package/dist/commonjs/models/operations/getinvoice.d.ts +4 -4
  97. package/dist/commonjs/models/operations/getinvoice.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/getinvoice.js +4 -4
  99. package/dist/commonjs/models/operations/getinvoice.js.map +1 -1
  100. package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts +53 -0
  101. package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts.map +1 -0
  102. package/dist/commonjs/models/operations/getvendorsexportstatus.js +73 -0
  103. package/dist/commonjs/models/operations/getvendorsexportstatus.js.map +1 -0
  104. package/dist/commonjs/models/operations/index.d.ts +7 -0
  105. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  106. package/dist/commonjs/models/operations/index.js +7 -0
  107. package/dist/commonjs/models/operations/index.js.map +1 -1
  108. package/dist/commonjs/models/operations/invoicesexport.d.ts +8 -8
  109. package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
  110. package/dist/commonjs/models/operations/invoicesexport.js +9 -8
  111. package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
  112. package/dist/commonjs/models/operations/listcompanycredentials.d.ts +93 -0
  113. package/dist/commonjs/models/operations/listcompanycredentials.d.ts.map +1 -0
  114. package/dist/commonjs/models/operations/listcompanycredentials.js +112 -0
  115. package/dist/commonjs/models/operations/listcompanycredentials.js.map +1 -0
  116. package/dist/commonjs/models/operations/listcompanycredits.d.ts +4 -4
  117. package/dist/commonjs/models/operations/listcompanycredits.d.ts.map +1 -1
  118. package/dist/commonjs/models/operations/listcompanycredits.js +4 -4
  119. package/dist/commonjs/models/operations/listcompanycredits.js.map +1 -1
  120. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +138 -0
  121. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  122. package/dist/commonjs/models/operations/listcompanytargetfacilities.js +130 -0
  123. package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -0
  124. package/dist/commonjs/models/operations/listlookupsystems.d.ts +4 -4
  125. package/dist/commonjs/models/operations/listlookupsystems.d.ts.map +1 -1
  126. package/dist/commonjs/models/operations/listlookupsystems.js +4 -5
  127. package/dist/commonjs/models/operations/listlookupsystems.js.map +1 -1
  128. package/dist/commonjs/models/operations/listorsearchfacilities.d.ts +18 -0
  129. package/dist/commonjs/models/operations/listorsearchfacilities.d.ts.map +1 -1
  130. package/dist/commonjs/models/operations/listorsearchfacilities.js +11 -1
  131. package/dist/commonjs/models/operations/listorsearchfacilities.js.map +1 -1
  132. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +14 -14
  133. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  134. package/dist/commonjs/models/operations/securityzonecheckin.js +13 -13
  135. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  136. package/dist/commonjs/models/operations/vendorsexport.d.ts +184 -0
  137. package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -0
  138. package/dist/commonjs/models/operations/vendorsexport.js +133 -0
  139. package/dist/commonjs/models/operations/vendorsexport.js.map +1 -0
  140. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
  141. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
  142. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js +101 -0
  143. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js.map +1 -0
  144. package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts +68 -0
  145. package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
  146. package/dist/commonjs/react-query/companiesListCompanyCredentials.js +104 -0
  147. package/dist/commonjs/react-query/companiesListCompanyCredentials.js.map +1 -0
  148. package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts +2 -2
  149. package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
  150. package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts +2 -2
  151. package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts.map +1 -1
  152. package/dist/commonjs/react-query/index.d.ts +7 -0
  153. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  154. package/dist/commonjs/react-query/index.js +7 -0
  155. package/dist/commonjs/react-query/index.js.map +1 -1
  156. package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts +1 -1
  157. package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
  158. package/dist/commonjs/react-query/invoicesGetInvoice.d.ts +2 -2
  159. package/dist/commonjs/react-query/invoicesGetInvoice.d.ts.map +1 -1
  160. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +1 -1
  161. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  162. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +2 -2
  163. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  164. package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts +1 -1
  165. package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
  166. package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts +2 -2
  167. package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts.map +1 -1
  168. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  169. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  170. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +65 -0
  171. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  172. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  173. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  174. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +59 -0
  175. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  176. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
  177. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  178. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
  179. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  180. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
  181. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  182. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +164 -0
  183. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  184. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
  185. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
  186. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js +2 -0
  187. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
  188. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
  189. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  190. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  191. package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts +6 -0
  192. package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
  193. package/dist/commonjs/react-query/vendorScansGetVendorScan.js +6 -0
  194. package/dist/commonjs/react-query/vendorScansGetVendorScan.js.map +1 -1
  195. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
  196. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
  197. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js +39 -0
  198. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
  199. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
  200. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
  201. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js +73 -0
  202. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js.map +1 -0
  203. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
  204. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
  205. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js +39 -0
  206. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
  207. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
  208. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  209. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js +71 -0
  210. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
  211. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +40 -0
  212. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
  213. package/dist/commonjs/react-query/vendorsVendorsExport.core.js +67 -0
  214. package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -0
  215. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +95 -0
  216. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -0
  217. package/dist/commonjs/react-query/vendorsVendorsExport.js +71 -0
  218. package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -0
  219. package/dist/commonjs/sdk/companies.d.ts +9 -0
  220. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  221. package/dist/commonjs/sdk/companies.js +10 -0
  222. package/dist/commonjs/sdk/companies.js.map +1 -1
  223. package/dist/commonjs/sdk/organizations.d.ts +60 -0
  224. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  225. package/dist/commonjs/sdk/organizations.js +67 -0
  226. package/dist/commonjs/sdk/organizations.js.map +1 -1
  227. package/dist/commonjs/sdk/vendors.d.ts +27 -0
  228. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  229. package/dist/commonjs/sdk/vendors.js +36 -0
  230. package/dist/commonjs/sdk/vendors.js.map +1 -1
  231. package/dist/commonjs/sdk/vendorscans.d.ts +3 -0
  232. package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
  233. package/dist/commonjs/sdk/vendorscans.js +3 -0
  234. package/dist/commonjs/sdk/vendorscans.js.map +1 -1
  235. package/dist/esm/__tests__/companies.test.js +29 -0
  236. package/dist/esm/__tests__/companies.test.js.map +1 -1
  237. package/dist/esm/__tests__/organizations.test.js +75 -0
  238. package/dist/esm/__tests__/organizations.test.js.map +1 -1
  239. package/dist/esm/__tests__/vendors.test.js +51 -0
  240. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  241. package/dist/esm/__tests__/webhooks.test.js +1 -1
  242. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  243. package/dist/esm/__tests__/zones.test.js +25 -6
  244. package/dist/esm/__tests__/zones.test.js.map +1 -1
  245. package/dist/esm/funcs/companiesListCompanyCredentials.d.ts +23 -0
  246. package/dist/esm/funcs/companiesListCompanyCredentials.d.ts.map +1 -0
  247. package/dist/esm/funcs/companiesListCompanyCredentials.js +134 -0
  248. package/dist/esm/funcs/companiesListCompanyCredentials.js.map +1 -0
  249. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
  250. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  251. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +109 -0
  252. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
  253. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
  254. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  255. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js +102 -0
  256. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  257. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +38 -0
  258. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  259. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +150 -0
  260. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
  261. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
  262. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  263. package/dist/esm/funcs/vendorScansGetVendorScan.d.ts +3 -0
  264. package/dist/esm/funcs/vendorScansGetVendorScan.d.ts.map +1 -1
  265. package/dist/esm/funcs/vendorScansGetVendorScan.js +3 -0
  266. package/dist/esm/funcs/vendorScansGetVendorScan.js.map +1 -1
  267. package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts +22 -0
  268. package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts.map +1 -0
  269. package/dist/esm/funcs/vendorsDownloadVendorsExport.js +92 -0
  270. package/dist/esm/funcs/vendorsDownloadVendorsExport.js.map +1 -0
  271. package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts +21 -0
  272. package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  273. package/dist/esm/funcs/vendorsGetVendorsExportStatus.js +90 -0
  274. package/dist/esm/funcs/vendorsGetVendorsExportStatus.js.map +1 -0
  275. package/dist/esm/funcs/vendorsVendorsExport.d.ts +23 -0
  276. package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -0
  277. package/dist/esm/funcs/vendorsVendorsExport.js +116 -0
  278. package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -0
  279. package/dist/esm/lib/config.d.ts +2 -2
  280. package/dist/esm/lib/config.js +2 -2
  281. package/dist/esm/models/components/appointmentsummary.d.ts +25 -0
  282. package/dist/esm/models/components/appointmentsummary.d.ts.map +1 -0
  283. package/dist/esm/models/components/appointmentsummary.js +26 -0
  284. package/dist/esm/models/components/appointmentsummary.js.map +1 -0
  285. package/dist/esm/models/components/companycredentiallistitem.d.ts +32 -0
  286. package/dist/esm/models/components/companycredentiallistitem.d.ts.map +1 -0
  287. package/dist/esm/models/components/companycredentiallistitem.js +45 -0
  288. package/dist/esm/models/components/companycredentiallistitem.js.map +1 -0
  289. package/dist/esm/models/components/companytargetfacility.d.ts +54 -0
  290. package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -0
  291. package/dist/esm/models/components/companytargetfacility.js +41 -0
  292. package/dist/esm/models/components/companytargetfacility.js.map +1 -0
  293. package/dist/esm/models/components/expand.d.ts +5 -0
  294. package/dist/esm/models/components/expand.d.ts.map +1 -1
  295. package/dist/esm/models/components/expand.js +5 -0
  296. package/dist/esm/models/components/expand.js.map +1 -1
  297. package/dist/esm/models/components/index.d.ts +4 -0
  298. package/dist/esm/models/components/index.d.ts.map +1 -1
  299. package/dist/esm/models/components/index.js +4 -0
  300. package/dist/esm/models/components/index.js.map +1 -1
  301. package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
  302. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  303. package/dist/esm/models/components/vendorcredentialsummary.js +2 -0
  304. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  305. package/dist/esm/models/components/vendorscan.d.ts +47 -0
  306. package/dist/esm/models/components/vendorscan.d.ts.map +1 -1
  307. package/dist/esm/models/components/vendorscan.js +28 -0
  308. package/dist/esm/models/components/vendorscan.js.map +1 -1
  309. package/dist/esm/models/components/vendorscanscreeningresponse.d.ts +27 -0
  310. package/dist/esm/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
  311. package/dist/esm/models/components/vendorscanscreeningresponse.js +26 -0
  312. package/dist/esm/models/components/vendorscanscreeningresponse.js.map +1 -0
  313. package/dist/esm/models/operations/createcompanytargetfacility.d.ts +50 -0
  314. package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  315. package/dist/esm/models/operations/createcompanytargetfacility.js +45 -0
  316. package/dist/esm/models/operations/createcompanytargetfacility.js.map +1 -0
  317. package/dist/esm/models/operations/createinvoice.d.ts +6 -6
  318. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  319. package/dist/esm/models/operations/createinvoice.js +4 -4
  320. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  321. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +20 -0
  322. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  323. package/dist/esm/models/operations/deletecompanytargetfacility.js +18 -0
  324. package/dist/esm/models/operations/deletecompanytargetfacility.js.map +1 -0
  325. package/dist/esm/models/operations/downloadvendorsexport.d.ts +42 -0
  326. package/dist/esm/models/operations/downloadvendorsexport.d.ts.map +1 -0
  327. package/dist/esm/models/operations/downloadvendorsexport.js +36 -0
  328. package/dist/esm/models/operations/downloadvendorsexport.js.map +1 -0
  329. package/dist/esm/models/operations/getinvoice.d.ts +4 -4
  330. package/dist/esm/models/operations/getinvoice.d.ts.map +1 -1
  331. package/dist/esm/models/operations/getinvoice.js +3 -3
  332. package/dist/esm/models/operations/getinvoice.js.map +1 -1
  333. package/dist/esm/models/operations/getvendorsexportstatus.d.ts +53 -0
  334. package/dist/esm/models/operations/getvendorsexportstatus.d.ts.map +1 -0
  335. package/dist/esm/models/operations/getvendorsexportstatus.js +35 -0
  336. package/dist/esm/models/operations/getvendorsexportstatus.js.map +1 -0
  337. package/dist/esm/models/operations/index.d.ts +7 -0
  338. package/dist/esm/models/operations/index.d.ts.map +1 -1
  339. package/dist/esm/models/operations/index.js +7 -0
  340. package/dist/esm/models/operations/index.js.map +1 -1
  341. package/dist/esm/models/operations/invoicesexport.d.ts +8 -8
  342. package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
  343. package/dist/esm/models/operations/invoicesexport.js +7 -6
  344. package/dist/esm/models/operations/invoicesexport.js.map +1 -1
  345. package/dist/esm/models/operations/listcompanycredentials.d.ts +93 -0
  346. package/dist/esm/models/operations/listcompanycredentials.d.ts.map +1 -0
  347. package/dist/esm/models/operations/listcompanycredentials.js +73 -0
  348. package/dist/esm/models/operations/listcompanycredentials.js.map +1 -0
  349. package/dist/esm/models/operations/listcompanycredits.d.ts +4 -4
  350. package/dist/esm/models/operations/listcompanycredits.d.ts.map +1 -1
  351. package/dist/esm/models/operations/listcompanycredits.js +3 -3
  352. package/dist/esm/models/operations/listcompanycredits.js.map +1 -1
  353. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +138 -0
  354. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  355. package/dist/esm/models/operations/listcompanytargetfacilities.js +91 -0
  356. package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -0
  357. package/dist/esm/models/operations/listlookupsystems.d.ts +4 -4
  358. package/dist/esm/models/operations/listlookupsystems.d.ts.map +1 -1
  359. package/dist/esm/models/operations/listlookupsystems.js +3 -4
  360. package/dist/esm/models/operations/listlookupsystems.js.map +1 -1
  361. package/dist/esm/models/operations/listorsearchfacilities.d.ts +18 -0
  362. package/dist/esm/models/operations/listorsearchfacilities.d.ts.map +1 -1
  363. package/dist/esm/models/operations/listorsearchfacilities.js +10 -0
  364. package/dist/esm/models/operations/listorsearchfacilities.js.map +1 -1
  365. package/dist/esm/models/operations/securityzonecheckin.d.ts +14 -14
  366. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  367. package/dist/esm/models/operations/securityzonecheckin.js +11 -11
  368. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  369. package/dist/esm/models/operations/vendorsexport.d.ts +184 -0
  370. package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -0
  371. package/dist/esm/models/operations/vendorsexport.js +94 -0
  372. package/dist/esm/models/operations/vendorsexport.js.map +1 -0
  373. package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
  374. package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
  375. package/dist/esm/react-query/companiesListCompanyCredentials.core.js +93 -0
  376. package/dist/esm/react-query/companiesListCompanyCredentials.core.js.map +1 -0
  377. package/dist/esm/react-query/companiesListCompanyCredentials.d.ts +68 -0
  378. package/dist/esm/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
  379. package/dist/esm/react-query/companiesListCompanyCredentials.js +89 -0
  380. package/dist/esm/react-query/companiesListCompanyCredentials.js.map +1 -0
  381. package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts +2 -2
  382. package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
  383. package/dist/esm/react-query/companiesListCompanyCredits.d.ts +2 -2
  384. package/dist/esm/react-query/companiesListCompanyCredits.d.ts.map +1 -1
  385. package/dist/esm/react-query/index.d.ts +7 -0
  386. package/dist/esm/react-query/index.d.ts.map +1 -1
  387. package/dist/esm/react-query/index.js +7 -0
  388. package/dist/esm/react-query/index.js.map +1 -1
  389. package/dist/esm/react-query/invoicesGetInvoice.core.d.ts +1 -1
  390. package/dist/esm/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
  391. package/dist/esm/react-query/invoicesGetInvoice.d.ts +2 -2
  392. package/dist/esm/react-query/invoicesGetInvoice.d.ts.map +1 -1
  393. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +1 -1
  394. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  395. package/dist/esm/react-query/invoicesInvoicesExport.d.ts +2 -2
  396. package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  397. package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts +1 -1
  398. package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
  399. package/dist/esm/react-query/lookupsListLookupSystems.d.ts +2 -2
  400. package/dist/esm/react-query/lookupsListLookupSystems.d.ts.map +1 -1
  401. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  402. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  403. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +60 -0
  404. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  405. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  406. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  407. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +54 -0
  408. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  409. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
  410. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  411. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +95 -0
  412. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  413. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
  414. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  415. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +149 -0
  416. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  417. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
  418. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
  419. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js +2 -0
  420. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
  421. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
  422. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  423. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  424. package/dist/esm/react-query/vendorScansGetVendorScan.d.ts +6 -0
  425. package/dist/esm/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
  426. package/dist/esm/react-query/vendorScansGetVendorScan.js +6 -0
  427. package/dist/esm/react-query/vendorScansGetVendorScan.js.map +1 -1
  428. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
  429. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
  430. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js +34 -0
  431. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
  432. package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
  433. package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
  434. package/dist/esm/react-query/vendorsDownloadVendorsExport.js +63 -0
  435. package/dist/esm/react-query/vendorsDownloadVendorsExport.js.map +1 -0
  436. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
  437. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
  438. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js +34 -0
  439. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
  440. package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
  441. package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  442. package/dist/esm/react-query/vendorsGetVendorsExportStatus.js +61 -0
  443. package/dist/esm/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
  444. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +40 -0
  445. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
  446. package/dist/esm/react-query/vendorsVendorsExport.core.js +62 -0
  447. package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -0
  448. package/dist/esm/react-query/vendorsVendorsExport.d.ts +95 -0
  449. package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -0
  450. package/dist/esm/react-query/vendorsVendorsExport.js +61 -0
  451. package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -0
  452. package/dist/esm/sdk/companies.d.ts +9 -0
  453. package/dist/esm/sdk/companies.d.ts.map +1 -1
  454. package/dist/esm/sdk/companies.js +10 -0
  455. package/dist/esm/sdk/companies.js.map +1 -1
  456. package/dist/esm/sdk/organizations.d.ts +60 -0
  457. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  458. package/dist/esm/sdk/organizations.js +67 -0
  459. package/dist/esm/sdk/organizations.js.map +1 -1
  460. package/dist/esm/sdk/vendors.d.ts +27 -0
  461. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  462. package/dist/esm/sdk/vendors.js +36 -0
  463. package/dist/esm/sdk/vendors.js.map +1 -1
  464. package/dist/esm/sdk/vendorscans.d.ts +3 -0
  465. package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
  466. package/dist/esm/sdk/vendorscans.js +3 -0
  467. package/dist/esm/sdk/vendorscans.js.map +1 -1
  468. package/jsr.json +1 -1
  469. package/package.json +5 -2
  470. package/src/__tests__/companies.test.ts +32 -0
  471. package/src/__tests__/organizations.test.ts +84 -0
  472. package/src/__tests__/vendors.test.ts +60 -0
  473. package/src/__tests__/webhooks.test.ts +1 -1
  474. package/src/__tests__/zones.test.ts +25 -6
  475. package/src/funcs/companiesListCompanyCredentials.ts +265 -0
  476. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
  477. package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
  478. package/src/funcs/organizationsListCompanyTargetFacilities.ts +283 -0
  479. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
  480. package/src/funcs/vendorScansGetVendorScan.ts +3 -0
  481. package/src/funcs/vendorsDownloadVendorsExport.ts +190 -0
  482. package/src/funcs/vendorsGetVendorsExportStatus.ts +179 -0
  483. package/src/funcs/vendorsVendorsExport.ts +207 -0
  484. package/src/lib/config.ts +2 -2
  485. package/src/models/components/appointmentsummary.ts +59 -0
  486. package/src/models/components/companycredentiallistitem.ts +110 -0
  487. package/src/models/components/companytargetfacility.ts +124 -0
  488. package/src/models/components/expand.ts +5 -0
  489. package/src/models/components/index.ts +4 -0
  490. package/src/models/components/vendorcredentialsummary.ts +3 -0
  491. package/src/models/components/vendorscan.ts +102 -0
  492. package/src/models/components/vendorscanscreeningresponse.ts +61 -0
  493. package/src/models/operations/createcompanytargetfacility.ts +132 -0
  494. package/src/models/operations/createinvoice.ts +14 -10
  495. package/src/models/operations/deletecompanytargetfacility.ts +47 -0
  496. package/src/models/operations/downloadvendorsexport.ts +107 -0
  497. package/src/models/operations/getinvoice.ts +9 -7
  498. package/src/models/operations/getvendorsexportstatus.ts +108 -0
  499. package/src/models/operations/index.ts +7 -0
  500. package/src/models/operations/invoicesexport.ts +15 -13
  501. package/src/models/operations/listcompanycredentials.ts +195 -0
  502. package/src/models/operations/listcompanycredits.ts +9 -7
  503. package/src/models/operations/listcompanytargetfacilities.ts +242 -0
  504. package/src/models/operations/listlookupsystems.ts +7 -6
  505. package/src/models/operations/listorsearchfacilities.ts +22 -0
  506. package/src/models/operations/securityzonecheckin.ts +28 -36
  507. package/src/models/operations/vendorsexport.ts +303 -0
  508. package/src/react-query/companiesListCompanyCredentials.core.ts +211 -0
  509. package/src/react-query/companiesListCompanyCredentials.ts +277 -0
  510. package/src/react-query/companiesListCompanyCredits.core.ts +2 -2
  511. package/src/react-query/companiesListCompanyCredits.ts +2 -2
  512. package/src/react-query/index.ts +7 -0
  513. package/src/react-query/invoicesGetInvoice.core.ts +1 -1
  514. package/src/react-query/invoicesGetInvoice.ts +2 -2
  515. package/src/react-query/invoicesInvoicesExport.core.ts +1 -1
  516. package/src/react-query/invoicesInvoicesExport.ts +2 -2
  517. package/src/react-query/lookupsListLookupSystems.core.ts +1 -1
  518. package/src/react-query/lookupsListLookupSystems.ts +2 -2
  519. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +129 -0
  520. package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +122 -0
  521. package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +223 -0
  522. package/src/react-query/organizationsListCompanyTargetFacilities.ts +339 -0
  523. package/src/react-query/organizationsListOrSearchFacilities.core.ts +4 -0
  524. package/src/react-query/organizationsListOrSearchFacilities.ts +2 -0
  525. package/src/react-query/vendorScansGetVendorScan.ts +6 -0
  526. package/src/react-query/vendorsDownloadVendorsExport.core.ts +77 -0
  527. package/src/react-query/vendorsDownloadVendorsExport.ts +151 -0
  528. package/src/react-query/vendorsGetVendorsExportStatus.core.ts +76 -0
  529. package/src/react-query/vendorsGetVendorsExportStatus.ts +149 -0
  530. package/src/react-query/vendorsVendorsExport.core.ts +134 -0
  531. package/src/react-query/vendorsVendorsExport.ts +209 -0
  532. package/src/sdk/companies.ts +20 -0
  533. package/src/sdk/organizations.ts +98 -0
  534. package/src/sdk/vendors.ts +60 -0
  535. package/src/sdk/vendorscans.ts +3 -0
@@ -0,0 +1,207 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { GreenSecurityCore } from "../core.js";
6
+ import { encodeFormQuery } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Export vendors to CSV (async)
31
+ *
32
+ * @remarks
33
+ * Enqueues an asynchronous job to generate a CSV export of vendors based on the
34
+ * provided filters (the same filters supported by the vendors list endpoint).
35
+ * Returns a `status_url` to poll until the export is ready, plus a
36
+ * `download_url` and `status_id`.
37
+ *
38
+ * If set, this operation will use {@link Security.bearerJwt} from the global security.
39
+ */
40
+ export function vendorsVendorsExport(
41
+ client: GreenSecurityCore,
42
+ request: operations.VendorsExportRequest,
43
+ options?: RequestOptions,
44
+ ): APIPromise<
45
+ Result<
46
+ operations.VendorsExportResponseBody,
47
+ | errors.ApiErrorResponse
48
+ | GreenSecurityError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: GreenSecurityCore,
67
+ request: operations.VendorsExportRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.VendorsExportResponseBody,
73
+ | errors.ApiErrorResponse
74
+ | GreenSecurityError
75
+ | ResponseValidationError
76
+ | ConnectionError
77
+ | RequestAbortedError
78
+ | RequestTimeoutError
79
+ | InvalidRequestError
80
+ | UnexpectedClientError
81
+ | SDKValidationError
82
+ >,
83
+ APICall,
84
+ ]
85
+ > {
86
+ const parsed = safeParse(
87
+ request,
88
+ (value) => operations.VendorsExportRequest$outboundSchema.parse(value),
89
+ "Input validation failed",
90
+ );
91
+ if (!parsed.ok) {
92
+ return [parsed, { status: "invalid" }];
93
+ }
94
+ const payload = parsed.value;
95
+ const body = null;
96
+
97
+ const path = pathToFunc("/vendors/export")();
98
+
99
+ const query = encodeFormQuery({
100
+ "address_like": payload.address_like,
101
+ "address2_like": payload.address2_like,
102
+ "city_like": payload.city_like,
103
+ "company_id": payload.company_id,
104
+ "company_name_like": payload.company_name_like,
105
+ "credentialing_subscription_id_null":
106
+ payload.credentialing_subscription_id_null,
107
+ "credentialing_subscription_status":
108
+ payload.credentialing_subscription_status,
109
+ "date_ends_gte": payload.date_ends_gte,
110
+ "date_ends_lte": payload.date_ends_lte,
111
+ "date_scanned_gte": payload.date_scanned_gte,
112
+ "date_scanned_lte": payload.date_scanned_lte,
113
+ "desc": payload.desc,
114
+ "email_like": payload.email_like,
115
+ "expand": payload.expand,
116
+ "first_name_like": payload.first_name_like,
117
+ "full_name_like": payload.full_name_like,
118
+ "items_per_page": payload.items_per_page,
119
+ "last_name_like": payload.last_name_like,
120
+ "phone_like": payload.phone_like,
121
+ "scrubs_subscription_id_null": payload.scrubs_subscription_id_null,
122
+ "scrubs_subscription_status": payload.scrubs_subscription_status,
123
+ "sort": payload.sort,
124
+ "state_like": payload.state_like,
125
+ "status": payload.status,
126
+ "vendor_field_value_like": payload.vendor_field_value_like,
127
+ "vendor_type_like": payload.vendor_type_like,
128
+ "zip_like": payload.zip_like,
129
+ });
130
+
131
+ const headers = new Headers(compactMap({
132
+ Accept: "application/json",
133
+ }));
134
+
135
+ const securityInput = await extractSecurity(client._options.security);
136
+ const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
137
+
138
+ const context = {
139
+ options: client._options,
140
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
141
+ operationID: "vendorsExport",
142
+ oAuth2Scopes: null,
143
+
144
+ resolvedSecurity: requestSecurity,
145
+
146
+ securitySource: client._options.security,
147
+ retryConfig: options?.retries
148
+ || client._options.retryConfig
149
+ || { strategy: "none" },
150
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
151
+ };
152
+
153
+ const requestRes = client._createRequest(context, {
154
+ security: requestSecurity,
155
+ method: "GET",
156
+ baseURL: options?.serverURL,
157
+ path: path,
158
+ headers: headers,
159
+ query: query,
160
+ body: body,
161
+ userAgent: client._options.userAgent,
162
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
163
+ }, options);
164
+ if (!requestRes.ok) {
165
+ return [requestRes, { status: "invalid" }];
166
+ }
167
+ const req = requestRes.value;
168
+
169
+ const doResult = await client._do(req, {
170
+ context,
171
+ isErrorStatusCode: (statusCode: number) =>
172
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
173
+ retryConfig: context.retryConfig,
174
+ retryCodes: context.retryCodes,
175
+ });
176
+ if (!doResult.ok) {
177
+ return [doResult, { status: "request-error", request: req }];
178
+ }
179
+ const response = doResult.value;
180
+
181
+ const responseFields = {
182
+ HttpMeta: { Response: response, Request: req },
183
+ };
184
+
185
+ const [result] = await M.match<
186
+ operations.VendorsExportResponseBody,
187
+ | errors.ApiErrorResponse
188
+ | GreenSecurityError
189
+ | ResponseValidationError
190
+ | ConnectionError
191
+ | RequestAbortedError
192
+ | RequestTimeoutError
193
+ | InvalidRequestError
194
+ | UnexpectedClientError
195
+ | SDKValidationError
196
+ >(
197
+ M.json(200, operations.VendorsExportResponseBody$inboundSchema),
198
+ M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
199
+ M.fail("4XX"),
200
+ M.fail([500, "5XX"]),
201
+ )(response, req, { extraFields: responseFields });
202
+ if (!result.ok) {
203
+ return [result, { status: "complete", request: req, response }];
204
+ }
205
+
206
+ return [result, { status: "complete", request: req, response }];
207
+ }
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.43.1",
83
- sdkVersion: "0.44.0-beta.3",
83
+ sdkVersion: "0.44.0-beta.4",
84
84
  genVersion: "2.884.7",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.44.0-beta.3 2.884.7 0.43.1 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.44.0-beta.4 2.884.7 0.43.1 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -0,0 +1,59 @@
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
+ /**
13
+ * A reduced Event object returned when the `vendor_scan.appointment` expand scope is requested.
14
+ */
15
+ export type AppointmentSummary = {
16
+ id: number;
17
+ title?: string | null | undefined;
18
+ /**
19
+ * Event start datetime (ISO 8601).
20
+ */
21
+ start?: string | null | undefined;
22
+ /**
23
+ * Event end datetime (ISO 8601).
24
+ */
25
+ end?: string | null | undefined;
26
+ allDay?: boolean | null | undefined;
27
+ standingAppt?: boolean | null | undefined;
28
+ status?: string | null | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export const AppointmentSummary$inboundSchema: z.ZodType<
33
+ AppointmentSummary,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z.object({
37
+ id: types.number(),
38
+ title: z.nullable(types.string()).optional(),
39
+ start: z.nullable(types.string()).optional(),
40
+ end: z.nullable(types.string()).optional(),
41
+ all_day: z.nullable(types.boolean()).optional(),
42
+ standing_appt: z.nullable(types.boolean()).optional(),
43
+ status: z.nullable(types.string()).optional(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "all_day": "allDay",
47
+ "standing_appt": "standingAppt",
48
+ });
49
+ });
50
+
51
+ export function appointmentSummaryFromJSON(
52
+ jsonString: string,
53
+ ): SafeParseResult<AppointmentSummary, SDKValidationError> {
54
+ return safeParse(
55
+ jsonString,
56
+ (x) => AppointmentSummary$inboundSchema.parse(JSON.parse(x)),
57
+ `Failed to parse 'AppointmentSummary' from JSON`,
58
+ );
59
+ }
@@ -0,0 +1,110 @@
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
+ import {
12
+ VendorCredentialSummary,
13
+ VendorCredentialSummary$inboundSchema,
14
+ } from "./vendorcredentialsummary.js";
15
+
16
+ export type CompanyCredentialListItemCredential = {
17
+ id: number;
18
+ name: string;
19
+ };
20
+
21
+ export type VendorCredentialLast = {
22
+ id: number;
23
+ status: string;
24
+ version: number;
25
+ dateExpires?: string | null | undefined;
26
+ };
27
+
28
+ export type CompanyCredentialListItem = {
29
+ credential: CompanyCredentialListItemCredential;
30
+ /**
31
+ * Reduced list of attributes of Vendor Credential record
32
+ */
33
+ vendorCredential: VendorCredentialSummary | null;
34
+ vendorCredentialLast?: VendorCredentialLast | null | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const CompanyCredentialListItemCredential$inboundSchema: z.ZodType<
39
+ CompanyCredentialListItemCredential,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ id: types.number(),
44
+ name: types.string(),
45
+ });
46
+
47
+ export function companyCredentialListItemCredentialFromJSON(
48
+ jsonString: string,
49
+ ): SafeParseResult<CompanyCredentialListItemCredential, SDKValidationError> {
50
+ return safeParse(
51
+ jsonString,
52
+ (x) =>
53
+ CompanyCredentialListItemCredential$inboundSchema.parse(JSON.parse(x)),
54
+ `Failed to parse 'CompanyCredentialListItemCredential' from JSON`,
55
+ );
56
+ }
57
+
58
+ /** @internal */
59
+ export const VendorCredentialLast$inboundSchema: z.ZodType<
60
+ VendorCredentialLast,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.object({
64
+ id: types.number(),
65
+ status: types.string(),
66
+ version: types.number(),
67
+ date_expires: z.nullable(types.string()).optional(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ "date_expires": "dateExpires",
71
+ });
72
+ });
73
+
74
+ export function vendorCredentialLastFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<VendorCredentialLast, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => VendorCredentialLast$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'VendorCredentialLast' from JSON`,
81
+ );
82
+ }
83
+
84
+ /** @internal */
85
+ export const CompanyCredentialListItem$inboundSchema: z.ZodType<
86
+ CompanyCredentialListItem,
87
+ z.ZodTypeDef,
88
+ unknown
89
+ > = z.object({
90
+ credential: z.lazy(() => CompanyCredentialListItemCredential$inboundSchema),
91
+ vendor_credential: types.nullable(VendorCredentialSummary$inboundSchema),
92
+ vendor_credential_last: z.nullable(
93
+ z.lazy(() => VendorCredentialLast$inboundSchema),
94
+ ).optional(),
95
+ }).transform((v) => {
96
+ return remap$(v, {
97
+ "vendor_credential": "vendorCredential",
98
+ "vendor_credential_last": "vendorCredentialLast",
99
+ });
100
+ });
101
+
102
+ export function companyCredentialListItemFromJSON(
103
+ jsonString: string,
104
+ ): SafeParseResult<CompanyCredentialListItem, SDKValidationError> {
105
+ return safeParse(
106
+ jsonString,
107
+ (x) => CompanyCredentialListItem$inboundSchema.parse(JSON.parse(x)),
108
+ `Failed to parse 'CompanyCredentialListItem' from JSON`,
109
+ );
110
+ }
@@ -0,0 +1,124 @@
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 { smartUnion } from "../../types/smartUnion.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import { Facility, Facility$inboundSchema } from "./facility.js";
13
+
14
+ /**
15
+ * The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
16
+ */
17
+ export type CompanyTargetFacilityFacility = Facility | number;
18
+
19
+ /**
20
+ * Per-facility counts of the company's individuals (vendors) currently targeting this facility.
21
+ */
22
+ export type IndividualCounts = {
23
+ /**
24
+ * Total individuals from the company targeting this facility.
25
+ */
26
+ total?: number | undefined;
27
+ /**
28
+ * Individuals targeting this facility whose credentialing subscription is active.
29
+ */
30
+ active?: number | undefined;
31
+ };
32
+
33
+ /**
34
+ * Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
35
+ */
36
+ export type CompanyTargetFacility = {
37
+ /**
38
+ * CompanyTargetFacility row ID.
39
+ */
40
+ id: number;
41
+ /**
42
+ * The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
43
+ */
44
+ facility: Facility | number | null;
45
+ /**
46
+ * Link status (Approved, Pending, or Denied). This value is computed by the daily background job from the company's credential state — it is not directly settable through the API.
47
+ */
48
+ status: string | null;
49
+ contracted?: boolean | undefined;
50
+ dateCreated?: Date | null | undefined;
51
+ /**
52
+ * Per-facility counts of the company's individuals (vendors) currently targeting this facility.
53
+ */
54
+ individualCounts?: IndividualCounts | null | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const CompanyTargetFacilityFacility$inboundSchema: z.ZodType<
59
+ CompanyTargetFacilityFacility,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = smartUnion([Facility$inboundSchema, types.number()]);
63
+
64
+ export function companyTargetFacilityFacilityFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<CompanyTargetFacilityFacility, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => CompanyTargetFacilityFacility$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'CompanyTargetFacilityFacility' from JSON`,
71
+ );
72
+ }
73
+
74
+ /** @internal */
75
+ export const IndividualCounts$inboundSchema: z.ZodType<
76
+ IndividualCounts,
77
+ z.ZodTypeDef,
78
+ unknown
79
+ > = z.object({
80
+ total: types.optional(types.number()),
81
+ active: types.optional(types.number()),
82
+ });
83
+
84
+ export function individualCountsFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<IndividualCounts, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => IndividualCounts$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'IndividualCounts' from JSON`,
91
+ );
92
+ }
93
+
94
+ /** @internal */
95
+ export const CompanyTargetFacility$inboundSchema: z.ZodType<
96
+ CompanyTargetFacility,
97
+ z.ZodTypeDef,
98
+ unknown
99
+ > = z.object({
100
+ id: types.number(),
101
+ facility: types.nullable(
102
+ smartUnion([Facility$inboundSchema, types.number()]),
103
+ ),
104
+ status: types.nullable(types.string()),
105
+ contracted: types.optional(types.boolean()),
106
+ date_created: z.nullable(types.date()).optional(),
107
+ individual_counts: z.nullable(z.lazy(() => IndividualCounts$inboundSchema))
108
+ .optional(),
109
+ }).transform((v) => {
110
+ return remap$(v, {
111
+ "date_created": "dateCreated",
112
+ "individual_counts": "individualCounts",
113
+ });
114
+ });
115
+
116
+ export function companyTargetFacilityFromJSON(
117
+ jsonString: string,
118
+ ): SafeParseResult<CompanyTargetFacility, SDKValidationError> {
119
+ return safeParse(
120
+ jsonString,
121
+ (x) => CompanyTargetFacility$inboundSchema.parse(JSON.parse(x)),
122
+ `Failed to parse 'CompanyTargetFacility' from JSON`,
123
+ );
124
+ }
@@ -15,6 +15,7 @@ export const Expand = {
15
15
  CompanyLocation: "company.location",
16
16
  CompanyVendorFields: "company.vendor_fields",
17
17
  CompanyVendorTypeRestrictions: "company.vendor_type_restrictions",
18
+ CompanyTargetFacilityFacility: "company_target_facility.facility",
18
19
  ContactFacility: "contact.facility",
19
20
  ContactSystem: "contact.system",
20
21
  ContactDepartment: "contact.department",
@@ -105,6 +106,10 @@ export const Expand = {
105
106
  VendorScanBadgeData: "vendor_scan.badge_data",
106
107
  VendorScanVendor: "vendor_scan.vendor",
107
108
  VendorScanZone: "vendor_scan.zone",
109
+ VendorScanDepartment: "vendor_scan.department",
110
+ VendorScanCompany: "vendor_scan.company",
111
+ VendorScanAppointment: "vendor_scan.appointment",
112
+ VendorScanScreeningResponses: "vendor_scan.screening_responses",
108
113
  ZoneFacility: "zone.facility",
109
114
  ZoneDepartment: "zone.department",
110
115
  ZoneRules: "zone.rules",
@@ -4,10 +4,13 @@
4
4
 
5
5
  export * from "./activestatus.js";
6
6
  export * from "./alert.js";
7
+ export * from "./appointmentsummary.js";
7
8
  export * from "./backgroundcheckresult.js";
8
9
  export * from "./company.js";
10
+ export * from "./companycredentiallistitem.js";
9
11
  export * from "./companylookup.js";
10
12
  export * from "./companymanager.js";
13
+ export * from "./companytargetfacility.js";
11
14
  export * from "./companyvendorfield.js";
12
15
  export * from "./companyvendortyperestriction.js";
13
16
  export * from "./contact.js";
@@ -87,6 +90,7 @@ export * from "./vendorrequiredcredential.js";
87
90
  export * from "./vendorscan.js";
88
91
  export * from "./vendorscanscreeninganswer.js";
89
92
  export * from "./vendorscanscreeningquestion.js";
93
+ export * from "./vendorscanscreeningresponse.js";
90
94
  export * from "./vendorscrubdetails.js";
91
95
  export * from "./vendorscrubpurchase.js";
92
96
  export * from "./vendortype.js";
@@ -14,6 +14,7 @@ import {
14
14
  BackgroundCheckResult$inboundSchema,
15
15
  } from "./backgroundcheckresult.js";
16
16
  import { Company, Company$inboundSchema } from "./company.js";
17
+ import { CompanyLookup, CompanyLookup$inboundSchema } from "./companylookup.js";
17
18
  import { Credential, Credential$inboundSchema } from "./credential.js";
18
19
  import { Invoice, Invoice$inboundSchema } from "./invoice.js";
19
20
  import { Vendor, Vendor$inboundSchema } from "./vendor.js";
@@ -109,6 +110,7 @@ export type VendorCredentialSummary = {
109
110
  totalPendingCredentials?: number | null | undefined;
110
111
  backgroundCheckProviderId?: number | null | undefined;
111
112
  requiresAdminReview?: boolean | null | undefined;
113
+ systems?: Array<CompanyLookup> | null | undefined;
112
114
  };
113
115
 
114
116
  /** @internal */
@@ -326,6 +328,7 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
326
328
  total_pending_credentials: z.nullable(types.number()).optional(),
327
329
  background_check_provider_id: z.nullable(types.number()).optional(),
328
330
  requires_admin_review: z.nullable(types.boolean()).optional(),
331
+ systems: z.nullable(z.array(CompanyLookup$inboundSchema)).optional(),
329
332
  }).transform((v) => {
330
333
  return remap$(v, {
331
334
  "date_due": "dateDue",