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

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 (560) 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 +2 -9
  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 +3 -3
  47. package/dist/commonjs/lib/config.js +3 -3
  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/emailpreferences.d.ts +0 -18
  61. package/dist/commonjs/models/components/emailpreferences.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/emailpreferences.js +0 -9
  63. package/dist/commonjs/models/components/emailpreferences.js.map +1 -1
  64. package/dist/commonjs/models/components/expand.d.ts +5 -0
  65. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/expand.js +5 -0
  67. package/dist/commonjs/models/components/expand.js.map +1 -1
  68. package/dist/commonjs/models/components/index.d.ts +4 -0
  69. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/index.js +4 -0
  71. package/dist/commonjs/models/components/index.js.map +1 -1
  72. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
  73. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/vendorcredentialsummary.js +2 -0
  75. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  76. package/dist/commonjs/models/components/vendorscan.d.ts +47 -0
  77. package/dist/commonjs/models/components/vendorscan.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/vendorscan.js +31 -1
  79. package/dist/commonjs/models/components/vendorscan.js.map +1 -1
  80. package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts +27 -0
  81. package/dist/commonjs/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
  82. package/dist/commonjs/models/components/vendorscanscreeningresponse.js +63 -0
  83. package/dist/commonjs/models/components/vendorscanscreeningresponse.js.map +1 -0
  84. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +50 -0
  85. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  86. package/dist/commonjs/models/operations/createcompanytargetfacility.js +84 -0
  87. package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +1 -0
  88. package/dist/commonjs/models/operations/createinvoice.d.ts +6 -6
  89. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/createinvoice.js +6 -6
  91. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  92. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +20 -0
  93. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  94. package/dist/commonjs/models/operations/deletecompanytargetfacility.js +55 -0
  95. package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +1 -0
  96. package/dist/commonjs/models/operations/downloadvendorsexport.d.ts +42 -0
  97. package/dist/commonjs/models/operations/downloadvendorsexport.d.ts.map +1 -0
  98. package/dist/commonjs/models/operations/downloadvendorsexport.js +75 -0
  99. package/dist/commonjs/models/operations/downloadvendorsexport.js.map +1 -0
  100. package/dist/commonjs/models/operations/getinvoice.d.ts +4 -4
  101. package/dist/commonjs/models/operations/getinvoice.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/getinvoice.js +4 -4
  103. package/dist/commonjs/models/operations/getinvoice.js.map +1 -1
  104. package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts +53 -0
  105. package/dist/commonjs/models/operations/getvendorsexportstatus.d.ts.map +1 -0
  106. package/dist/commonjs/models/operations/getvendorsexportstatus.js +73 -0
  107. package/dist/commonjs/models/operations/getvendorsexportstatus.js.map +1 -0
  108. package/dist/commonjs/models/operations/index.d.ts +7 -0
  109. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  110. package/dist/commonjs/models/operations/index.js +7 -0
  111. package/dist/commonjs/models/operations/index.js.map +1 -1
  112. package/dist/commonjs/models/operations/invoicesexport.d.ts +8 -8
  113. package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
  114. package/dist/commonjs/models/operations/invoicesexport.js +9 -8
  115. package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
  116. package/dist/commonjs/models/operations/listcompanycredentials.d.ts +93 -0
  117. package/dist/commonjs/models/operations/listcompanycredentials.d.ts.map +1 -0
  118. package/dist/commonjs/models/operations/listcompanycredentials.js +112 -0
  119. package/dist/commonjs/models/operations/listcompanycredentials.js.map +1 -0
  120. package/dist/commonjs/models/operations/listcompanycredits.d.ts +4 -4
  121. package/dist/commonjs/models/operations/listcompanycredits.d.ts.map +1 -1
  122. package/dist/commonjs/models/operations/listcompanycredits.js +4 -4
  123. package/dist/commonjs/models/operations/listcompanycredits.js.map +1 -1
  124. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +138 -0
  125. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  126. package/dist/commonjs/models/operations/listcompanytargetfacilities.js +130 -0
  127. package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -0
  128. package/dist/commonjs/models/operations/listlookupsystems.d.ts +4 -4
  129. package/dist/commonjs/models/operations/listlookupsystems.d.ts.map +1 -1
  130. package/dist/commonjs/models/operations/listlookupsystems.js +4 -5
  131. package/dist/commonjs/models/operations/listlookupsystems.js.map +1 -1
  132. package/dist/commonjs/models/operations/listorsearchfacilities.d.ts +18 -0
  133. package/dist/commonjs/models/operations/listorsearchfacilities.d.ts.map +1 -1
  134. package/dist/commonjs/models/operations/listorsearchfacilities.js +11 -1
  135. package/dist/commonjs/models/operations/listorsearchfacilities.js.map +1 -1
  136. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +18 -17
  137. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  138. package/dist/commonjs/models/operations/securityzonecheckin.js +16 -15
  139. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  140. package/dist/commonjs/models/operations/vendorsexport.d.ts +184 -0
  141. package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/vendorsexport.js +133 -0
  143. package/dist/commonjs/models/operations/vendorsexport.js.map +1 -0
  144. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
  145. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
  146. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js +101 -0
  147. package/dist/commonjs/react-query/companiesListCompanyCredentials.core.js.map +1 -0
  148. package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts +68 -0
  149. package/dist/commonjs/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
  150. package/dist/commonjs/react-query/companiesListCompanyCredentials.js +104 -0
  151. package/dist/commonjs/react-query/companiesListCompanyCredentials.js.map +1 -0
  152. package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts +2 -2
  153. package/dist/commonjs/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
  154. package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts +2 -2
  155. package/dist/commonjs/react-query/companiesListCompanyCredits.d.ts.map +1 -1
  156. package/dist/commonjs/react-query/index.d.ts +7 -0
  157. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  158. package/dist/commonjs/react-query/index.js +7 -0
  159. package/dist/commonjs/react-query/index.js.map +1 -1
  160. package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts +1 -1
  161. package/dist/commonjs/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
  162. package/dist/commonjs/react-query/invoicesGetInvoice.d.ts +2 -2
  163. package/dist/commonjs/react-query/invoicesGetInvoice.d.ts.map +1 -1
  164. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts +1 -1
  165. package/dist/commonjs/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  166. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts +2 -2
  167. package/dist/commonjs/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  168. package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts +1 -1
  169. package/dist/commonjs/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
  170. package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts +2 -2
  171. package/dist/commonjs/react-query/lookupsListLookupSystems.d.ts.map +1 -1
  172. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  173. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  174. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +65 -0
  175. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  176. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  177. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  178. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +59 -0
  179. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  180. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
  181. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  182. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
  183. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  184. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
  185. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  186. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +164 -0
  187. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  188. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
  189. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
  190. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js +2 -0
  191. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
  192. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
  193. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  194. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  195. package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts +6 -0
  196. package/dist/commonjs/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
  197. package/dist/commonjs/react-query/vendorScansGetVendorScan.js +6 -0
  198. package/dist/commonjs/react-query/vendorScansGetVendorScan.js.map +1 -1
  199. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
  200. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
  201. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js +39 -0
  202. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
  203. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
  204. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
  205. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js +73 -0
  206. package/dist/commonjs/react-query/vendorsDownloadVendorsExport.js.map +1 -0
  207. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
  208. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
  209. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js +39 -0
  210. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
  211. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
  212. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  213. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js +71 -0
  214. package/dist/commonjs/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
  215. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +40 -0
  216. package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
  217. package/dist/commonjs/react-query/vendorsVendorsExport.core.js +67 -0
  218. package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -0
  219. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +95 -0
  220. package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -0
  221. package/dist/commonjs/react-query/vendorsVendorsExport.js +71 -0
  222. package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -0
  223. package/dist/commonjs/sdk/companies.d.ts +9 -0
  224. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  225. package/dist/commonjs/sdk/companies.js +10 -0
  226. package/dist/commonjs/sdk/companies.js.map +1 -1
  227. package/dist/commonjs/sdk/organizations.d.ts +60 -0
  228. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  229. package/dist/commonjs/sdk/organizations.js +67 -0
  230. package/dist/commonjs/sdk/organizations.js.map +1 -1
  231. package/dist/commonjs/sdk/vendors.d.ts +27 -0
  232. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  233. package/dist/commonjs/sdk/vendors.js +36 -0
  234. package/dist/commonjs/sdk/vendors.js.map +1 -1
  235. package/dist/commonjs/sdk/vendorscans.d.ts +3 -0
  236. package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
  237. package/dist/commonjs/sdk/vendorscans.js +3 -0
  238. package/dist/commonjs/sdk/vendorscans.js.map +1 -1
  239. package/dist/commonjs/types/async.d.ts.map +1 -1
  240. package/dist/commonjs/types/async.js +8 -7
  241. package/dist/commonjs/types/async.js.map +1 -1
  242. package/dist/commonjs/types/primitives.d.ts +0 -2
  243. package/dist/commonjs/types/primitives.d.ts.map +1 -1
  244. package/dist/commonjs/types/primitives.js +0 -23
  245. package/dist/commonjs/types/primitives.js.map +1 -1
  246. package/dist/esm/__tests__/companies.test.js +29 -0
  247. package/dist/esm/__tests__/companies.test.js.map +1 -1
  248. package/dist/esm/__tests__/organizations.test.js +75 -0
  249. package/dist/esm/__tests__/organizations.test.js.map +1 -1
  250. package/dist/esm/__tests__/vendors.test.js +51 -0
  251. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  252. package/dist/esm/__tests__/webhooks.test.js +1 -1
  253. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  254. package/dist/esm/__tests__/zones.test.js +2 -9
  255. package/dist/esm/__tests__/zones.test.js.map +1 -1
  256. package/dist/esm/funcs/companiesListCompanyCredentials.d.ts +23 -0
  257. package/dist/esm/funcs/companiesListCompanyCredentials.d.ts.map +1 -0
  258. package/dist/esm/funcs/companiesListCompanyCredentials.js +134 -0
  259. package/dist/esm/funcs/companiesListCompanyCredentials.js.map +1 -0
  260. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
  261. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  262. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +109 -0
  263. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
  264. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
  265. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  266. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js +102 -0
  267. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  268. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +38 -0
  269. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  270. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +150 -0
  271. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
  272. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
  273. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  274. package/dist/esm/funcs/vendorScansGetVendorScan.d.ts +3 -0
  275. package/dist/esm/funcs/vendorScansGetVendorScan.d.ts.map +1 -1
  276. package/dist/esm/funcs/vendorScansGetVendorScan.js +3 -0
  277. package/dist/esm/funcs/vendorScansGetVendorScan.js.map +1 -1
  278. package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts +22 -0
  279. package/dist/esm/funcs/vendorsDownloadVendorsExport.d.ts.map +1 -0
  280. package/dist/esm/funcs/vendorsDownloadVendorsExport.js +92 -0
  281. package/dist/esm/funcs/vendorsDownloadVendorsExport.js.map +1 -0
  282. package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts +21 -0
  283. package/dist/esm/funcs/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  284. package/dist/esm/funcs/vendorsGetVendorsExportStatus.js +90 -0
  285. package/dist/esm/funcs/vendorsGetVendorsExportStatus.js.map +1 -0
  286. package/dist/esm/funcs/vendorsVendorsExport.d.ts +23 -0
  287. package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -0
  288. package/dist/esm/funcs/vendorsVendorsExport.js +116 -0
  289. package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -0
  290. package/dist/esm/lib/config.d.ts +3 -3
  291. package/dist/esm/lib/config.js +3 -3
  292. package/dist/esm/models/components/appointmentsummary.d.ts +25 -0
  293. package/dist/esm/models/components/appointmentsummary.d.ts.map +1 -0
  294. package/dist/esm/models/components/appointmentsummary.js +26 -0
  295. package/dist/esm/models/components/appointmentsummary.js.map +1 -0
  296. package/dist/esm/models/components/companycredentiallistitem.d.ts +32 -0
  297. package/dist/esm/models/components/companycredentiallistitem.d.ts.map +1 -0
  298. package/dist/esm/models/components/companycredentiallistitem.js +45 -0
  299. package/dist/esm/models/components/companycredentiallistitem.js.map +1 -0
  300. package/dist/esm/models/components/companytargetfacility.d.ts +54 -0
  301. package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -0
  302. package/dist/esm/models/components/companytargetfacility.js +41 -0
  303. package/dist/esm/models/components/companytargetfacility.js.map +1 -0
  304. package/dist/esm/models/components/emailpreferences.d.ts +0 -18
  305. package/dist/esm/models/components/emailpreferences.d.ts.map +1 -1
  306. package/dist/esm/models/components/emailpreferences.js +0 -9
  307. package/dist/esm/models/components/emailpreferences.js.map +1 -1
  308. package/dist/esm/models/components/expand.d.ts +5 -0
  309. package/dist/esm/models/components/expand.d.ts.map +1 -1
  310. package/dist/esm/models/components/expand.js +5 -0
  311. package/dist/esm/models/components/expand.js.map +1 -1
  312. package/dist/esm/models/components/index.d.ts +4 -0
  313. package/dist/esm/models/components/index.d.ts.map +1 -1
  314. package/dist/esm/models/components/index.js +4 -0
  315. package/dist/esm/models/components/index.js.map +1 -1
  316. package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
  317. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  318. package/dist/esm/models/components/vendorcredentialsummary.js +2 -0
  319. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  320. package/dist/esm/models/components/vendorscan.d.ts +47 -0
  321. package/dist/esm/models/components/vendorscan.d.ts.map +1 -1
  322. package/dist/esm/models/components/vendorscan.js +28 -0
  323. package/dist/esm/models/components/vendorscan.js.map +1 -1
  324. package/dist/esm/models/components/vendorscanscreeningresponse.d.ts +27 -0
  325. package/dist/esm/models/components/vendorscanscreeningresponse.d.ts.map +1 -0
  326. package/dist/esm/models/components/vendorscanscreeningresponse.js +26 -0
  327. package/dist/esm/models/components/vendorscanscreeningresponse.js.map +1 -0
  328. package/dist/esm/models/operations/createcompanytargetfacility.d.ts +50 -0
  329. package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  330. package/dist/esm/models/operations/createcompanytargetfacility.js +45 -0
  331. package/dist/esm/models/operations/createcompanytargetfacility.js.map +1 -0
  332. package/dist/esm/models/operations/createinvoice.d.ts +6 -6
  333. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  334. package/dist/esm/models/operations/createinvoice.js +4 -4
  335. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  336. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +20 -0
  337. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  338. package/dist/esm/models/operations/deletecompanytargetfacility.js +18 -0
  339. package/dist/esm/models/operations/deletecompanytargetfacility.js.map +1 -0
  340. package/dist/esm/models/operations/downloadvendorsexport.d.ts +42 -0
  341. package/dist/esm/models/operations/downloadvendorsexport.d.ts.map +1 -0
  342. package/dist/esm/models/operations/downloadvendorsexport.js +36 -0
  343. package/dist/esm/models/operations/downloadvendorsexport.js.map +1 -0
  344. package/dist/esm/models/operations/getinvoice.d.ts +4 -4
  345. package/dist/esm/models/operations/getinvoice.d.ts.map +1 -1
  346. package/dist/esm/models/operations/getinvoice.js +3 -3
  347. package/dist/esm/models/operations/getinvoice.js.map +1 -1
  348. package/dist/esm/models/operations/getvendorsexportstatus.d.ts +53 -0
  349. package/dist/esm/models/operations/getvendorsexportstatus.d.ts.map +1 -0
  350. package/dist/esm/models/operations/getvendorsexportstatus.js +35 -0
  351. package/dist/esm/models/operations/getvendorsexportstatus.js.map +1 -0
  352. package/dist/esm/models/operations/index.d.ts +7 -0
  353. package/dist/esm/models/operations/index.d.ts.map +1 -1
  354. package/dist/esm/models/operations/index.js +7 -0
  355. package/dist/esm/models/operations/index.js.map +1 -1
  356. package/dist/esm/models/operations/invoicesexport.d.ts +8 -8
  357. package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
  358. package/dist/esm/models/operations/invoicesexport.js +7 -6
  359. package/dist/esm/models/operations/invoicesexport.js.map +1 -1
  360. package/dist/esm/models/operations/listcompanycredentials.d.ts +93 -0
  361. package/dist/esm/models/operations/listcompanycredentials.d.ts.map +1 -0
  362. package/dist/esm/models/operations/listcompanycredentials.js +73 -0
  363. package/dist/esm/models/operations/listcompanycredentials.js.map +1 -0
  364. package/dist/esm/models/operations/listcompanycredits.d.ts +4 -4
  365. package/dist/esm/models/operations/listcompanycredits.d.ts.map +1 -1
  366. package/dist/esm/models/operations/listcompanycredits.js +3 -3
  367. package/dist/esm/models/operations/listcompanycredits.js.map +1 -1
  368. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +138 -0
  369. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  370. package/dist/esm/models/operations/listcompanytargetfacilities.js +91 -0
  371. package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -0
  372. package/dist/esm/models/operations/listlookupsystems.d.ts +4 -4
  373. package/dist/esm/models/operations/listlookupsystems.d.ts.map +1 -1
  374. package/dist/esm/models/operations/listlookupsystems.js +3 -4
  375. package/dist/esm/models/operations/listlookupsystems.js.map +1 -1
  376. package/dist/esm/models/operations/listorsearchfacilities.d.ts +18 -0
  377. package/dist/esm/models/operations/listorsearchfacilities.d.ts.map +1 -1
  378. package/dist/esm/models/operations/listorsearchfacilities.js +10 -0
  379. package/dist/esm/models/operations/listorsearchfacilities.js.map +1 -1
  380. package/dist/esm/models/operations/securityzonecheckin.d.ts +18 -17
  381. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  382. package/dist/esm/models/operations/securityzonecheckin.js +14 -13
  383. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  384. package/dist/esm/models/operations/vendorsexport.d.ts +184 -0
  385. package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -0
  386. package/dist/esm/models/operations/vendorsexport.js +94 -0
  387. package/dist/esm/models/operations/vendorsexport.js.map +1 -0
  388. package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts +44 -0
  389. package/dist/esm/react-query/companiesListCompanyCredentials.core.d.ts.map +1 -0
  390. package/dist/esm/react-query/companiesListCompanyCredentials.core.js +93 -0
  391. package/dist/esm/react-query/companiesListCompanyCredentials.core.js.map +1 -0
  392. package/dist/esm/react-query/companiesListCompanyCredentials.d.ts +68 -0
  393. package/dist/esm/react-query/companiesListCompanyCredentials.d.ts.map +1 -0
  394. package/dist/esm/react-query/companiesListCompanyCredentials.js +89 -0
  395. package/dist/esm/react-query/companiesListCompanyCredentials.js.map +1 -0
  396. package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts +2 -2
  397. package/dist/esm/react-query/companiesListCompanyCredits.core.d.ts.map +1 -1
  398. package/dist/esm/react-query/companiesListCompanyCredits.d.ts +2 -2
  399. package/dist/esm/react-query/companiesListCompanyCredits.d.ts.map +1 -1
  400. package/dist/esm/react-query/index.d.ts +7 -0
  401. package/dist/esm/react-query/index.d.ts.map +1 -1
  402. package/dist/esm/react-query/index.js +7 -0
  403. package/dist/esm/react-query/index.js.map +1 -1
  404. package/dist/esm/react-query/invoicesGetInvoice.core.d.ts +1 -1
  405. package/dist/esm/react-query/invoicesGetInvoice.core.d.ts.map +1 -1
  406. package/dist/esm/react-query/invoicesGetInvoice.d.ts +2 -2
  407. package/dist/esm/react-query/invoicesGetInvoice.d.ts.map +1 -1
  408. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts +1 -1
  409. package/dist/esm/react-query/invoicesInvoicesExport.core.d.ts.map +1 -1
  410. package/dist/esm/react-query/invoicesInvoicesExport.d.ts +2 -2
  411. package/dist/esm/react-query/invoicesInvoicesExport.d.ts.map +1 -1
  412. package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts +1 -1
  413. package/dist/esm/react-query/lookupsListLookupSystems.core.d.ts.map +1 -1
  414. package/dist/esm/react-query/lookupsListLookupSystems.d.ts +2 -2
  415. package/dist/esm/react-query/lookupsListLookupSystems.d.ts.map +1 -1
  416. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  417. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  418. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +60 -0
  419. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  420. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  421. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  422. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +54 -0
  423. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  424. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +46 -0
  425. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  426. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +95 -0
  427. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  428. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +130 -0
  429. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  430. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +149 -0
  431. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  432. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts +2 -0
  433. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.d.ts.map +1 -1
  434. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js +2 -0
  435. package/dist/esm/react-query/organizationsListOrSearchFacilities.core.js.map +1 -1
  436. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +2 -0
  437. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  438. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  439. package/dist/esm/react-query/vendorScansGetVendorScan.d.ts +6 -0
  440. package/dist/esm/react-query/vendorScansGetVendorScan.d.ts.map +1 -1
  441. package/dist/esm/react-query/vendorScansGetVendorScan.js +6 -0
  442. package/dist/esm/react-query/vendorScansGetVendorScan.js.map +1 -1
  443. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts +12 -0
  444. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.d.ts.map +1 -0
  445. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js +34 -0
  446. package/dist/esm/react-query/vendorsDownloadVendorsExport.core.js.map +1 -0
  447. package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts +33 -0
  448. package/dist/esm/react-query/vendorsDownloadVendorsExport.d.ts.map +1 -0
  449. package/dist/esm/react-query/vendorsDownloadVendorsExport.js +63 -0
  450. package/dist/esm/react-query/vendorsDownloadVendorsExport.js.map +1 -0
  451. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts +12 -0
  452. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.d.ts.map +1 -0
  453. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js +34 -0
  454. package/dist/esm/react-query/vendorsGetVendorsExportStatus.core.js.map +1 -0
  455. package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts +31 -0
  456. package/dist/esm/react-query/vendorsGetVendorsExportStatus.d.ts.map +1 -0
  457. package/dist/esm/react-query/vendorsGetVendorsExportStatus.js +61 -0
  458. package/dist/esm/react-query/vendorsGetVendorsExportStatus.js.map +1 -0
  459. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +40 -0
  460. package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -0
  461. package/dist/esm/react-query/vendorsVendorsExport.core.js +62 -0
  462. package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -0
  463. package/dist/esm/react-query/vendorsVendorsExport.d.ts +95 -0
  464. package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -0
  465. package/dist/esm/react-query/vendorsVendorsExport.js +61 -0
  466. package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -0
  467. package/dist/esm/sdk/companies.d.ts +9 -0
  468. package/dist/esm/sdk/companies.d.ts.map +1 -1
  469. package/dist/esm/sdk/companies.js +10 -0
  470. package/dist/esm/sdk/companies.js.map +1 -1
  471. package/dist/esm/sdk/organizations.d.ts +60 -0
  472. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  473. package/dist/esm/sdk/organizations.js +67 -0
  474. package/dist/esm/sdk/organizations.js.map +1 -1
  475. package/dist/esm/sdk/vendors.d.ts +27 -0
  476. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  477. package/dist/esm/sdk/vendors.js +36 -0
  478. package/dist/esm/sdk/vendors.js.map +1 -1
  479. package/dist/esm/sdk/vendorscans.d.ts +3 -0
  480. package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
  481. package/dist/esm/sdk/vendorscans.js +3 -0
  482. package/dist/esm/sdk/vendorscans.js.map +1 -1
  483. package/dist/esm/types/async.d.ts.map +1 -1
  484. package/dist/esm/types/async.js +8 -7
  485. package/dist/esm/types/async.js.map +1 -1
  486. package/dist/esm/types/primitives.d.ts +0 -2
  487. package/dist/esm/types/primitives.d.ts.map +1 -1
  488. package/dist/esm/types/primitives.js +0 -21
  489. package/dist/esm/types/primitives.js.map +1 -1
  490. package/jsr.json +1 -1
  491. package/package.json +1 -1
  492. package/src/__tests__/companies.test.ts +32 -0
  493. package/src/__tests__/organizations.test.ts +84 -0
  494. package/src/__tests__/vendors.test.ts +60 -0
  495. package/src/__tests__/webhooks.test.ts +1 -1
  496. package/src/__tests__/zones.test.ts +2 -9
  497. package/src/funcs/companiesListCompanyCredentials.ts +265 -0
  498. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
  499. package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
  500. package/src/funcs/organizationsListCompanyTargetFacilities.ts +283 -0
  501. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
  502. package/src/funcs/vendorScansGetVendorScan.ts +3 -0
  503. package/src/funcs/vendorsDownloadVendorsExport.ts +190 -0
  504. package/src/funcs/vendorsGetVendorsExportStatus.ts +179 -0
  505. package/src/funcs/vendorsVendorsExport.ts +207 -0
  506. package/src/lib/config.ts +3 -3
  507. package/src/models/components/appointmentsummary.ts +59 -0
  508. package/src/models/components/companycredentiallistitem.ts +110 -0
  509. package/src/models/components/companytargetfacility.ts +124 -0
  510. package/src/models/components/emailpreferences.ts +0 -18
  511. package/src/models/components/expand.ts +5 -0
  512. package/src/models/components/index.ts +4 -0
  513. package/src/models/components/vendorcredentialsummary.ts +3 -0
  514. package/src/models/components/vendorscan.ts +102 -0
  515. package/src/models/components/vendorscanscreeningresponse.ts +61 -0
  516. package/src/models/operations/createcompanytargetfacility.ts +132 -0
  517. package/src/models/operations/createinvoice.ts +14 -10
  518. package/src/models/operations/deletecompanytargetfacility.ts +47 -0
  519. package/src/models/operations/downloadvendorsexport.ts +107 -0
  520. package/src/models/operations/getinvoice.ts +9 -7
  521. package/src/models/operations/getvendorsexportstatus.ts +108 -0
  522. package/src/models/operations/index.ts +7 -0
  523. package/src/models/operations/invoicesexport.ts +15 -13
  524. package/src/models/operations/listcompanycredentials.ts +195 -0
  525. package/src/models/operations/listcompanycredits.ts +9 -7
  526. package/src/models/operations/listcompanytargetfacilities.ts +242 -0
  527. package/src/models/operations/listlookupsystems.ts +7 -6
  528. package/src/models/operations/listorsearchfacilities.ts +22 -0
  529. package/src/models/operations/securityzonecheckin.ts +37 -40
  530. package/src/models/operations/vendorsexport.ts +303 -0
  531. package/src/react-query/companiesListCompanyCredentials.core.ts +211 -0
  532. package/src/react-query/companiesListCompanyCredentials.ts +277 -0
  533. package/src/react-query/companiesListCompanyCredits.core.ts +2 -2
  534. package/src/react-query/companiesListCompanyCredits.ts +2 -2
  535. package/src/react-query/index.ts +7 -0
  536. package/src/react-query/invoicesGetInvoice.core.ts +1 -1
  537. package/src/react-query/invoicesGetInvoice.ts +2 -2
  538. package/src/react-query/invoicesInvoicesExport.core.ts +1 -1
  539. package/src/react-query/invoicesInvoicesExport.ts +2 -2
  540. package/src/react-query/lookupsListLookupSystems.core.ts +1 -1
  541. package/src/react-query/lookupsListLookupSystems.ts +2 -2
  542. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +129 -0
  543. package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +122 -0
  544. package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +223 -0
  545. package/src/react-query/organizationsListCompanyTargetFacilities.ts +339 -0
  546. package/src/react-query/organizationsListOrSearchFacilities.core.ts +4 -0
  547. package/src/react-query/organizationsListOrSearchFacilities.ts +2 -0
  548. package/src/react-query/vendorScansGetVendorScan.ts +6 -0
  549. package/src/react-query/vendorsDownloadVendorsExport.core.ts +77 -0
  550. package/src/react-query/vendorsDownloadVendorsExport.ts +151 -0
  551. package/src/react-query/vendorsGetVendorsExportStatus.core.ts +76 -0
  552. package/src/react-query/vendorsGetVendorsExportStatus.ts +149 -0
  553. package/src/react-query/vendorsVendorsExport.core.ts +134 -0
  554. package/src/react-query/vendorsVendorsExport.ts +209 -0
  555. package/src/sdk/companies.ts +20 -0
  556. package/src/sdk/organizations.ts +98 -0
  557. package/src/sdk/vendors.ts +60 -0
  558. package/src/sdk/vendorscans.ts +3 -0
  559. package/src/types/async.ts +8 -7
  560. package/src/types/primitives.ts +0 -24
@@ -0,0 +1,209 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ InvalidateQueryFilters,
7
+ QueryClient,
8
+ useQuery,
9
+ UseQueryResult,
10
+ useSuspenseQuery,
11
+ UseSuspenseQueryResult,
12
+ } from "@tanstack/react-query";
13
+ import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { useGreenSecurityContext } from "./_context.js";
26
+ import {
27
+ QueryHookOptions,
28
+ SuspenseQueryHookOptions,
29
+ TupleToPrefixes,
30
+ } from "./_types.js";
31
+ import {
32
+ buildVendorsVendorsExportQuery,
33
+ prefetchVendorsVendorsExport,
34
+ queryKeyVendorsVendorsExport,
35
+ VendorsVendorsExportQueryData,
36
+ } from "./vendorsVendorsExport.core.js";
37
+ export {
38
+ buildVendorsVendorsExportQuery,
39
+ prefetchVendorsVendorsExport,
40
+ queryKeyVendorsVendorsExport,
41
+ type VendorsVendorsExportQueryData,
42
+ };
43
+
44
+ export type VendorsVendorsExportQueryError =
45
+ | errors.ApiErrorResponse
46
+ | GreenSecurityError
47
+ | ResponseValidationError
48
+ | ConnectionError
49
+ | RequestAbortedError
50
+ | RequestTimeoutError
51
+ | InvalidRequestError
52
+ | UnexpectedClientError
53
+ | SDKValidationError;
54
+
55
+ /**
56
+ * Export vendors to CSV (async)
57
+ *
58
+ * @remarks
59
+ * Enqueues an asynchronous job to generate a CSV export of vendors based on the
60
+ * provided filters (the same filters supported by the vendors list endpoint).
61
+ * Returns a `status_url` to poll until the export is ready, plus a
62
+ * `download_url` and `status_id`.
63
+ */
64
+ export function useVendorsVendorsExport(
65
+ request: operations.VendorsExportRequest,
66
+ options?: QueryHookOptions<
67
+ VendorsVendorsExportQueryData,
68
+ VendorsVendorsExportQueryError
69
+ >,
70
+ ): UseQueryResult<
71
+ VendorsVendorsExportQueryData,
72
+ VendorsVendorsExportQueryError
73
+ > {
74
+ const client = useGreenSecurityContext();
75
+ return useQuery({
76
+ ...buildVendorsVendorsExportQuery(
77
+ client,
78
+ request,
79
+ options,
80
+ ),
81
+ ...options,
82
+ });
83
+ }
84
+
85
+ /**
86
+ * Export vendors to CSV (async)
87
+ *
88
+ * @remarks
89
+ * Enqueues an asynchronous job to generate a CSV export of vendors based on the
90
+ * provided filters (the same filters supported by the vendors list endpoint).
91
+ * Returns a `status_url` to poll until the export is ready, plus a
92
+ * `download_url` and `status_id`.
93
+ */
94
+ export function useVendorsVendorsExportSuspense(
95
+ request: operations.VendorsExportRequest,
96
+ options?: SuspenseQueryHookOptions<
97
+ VendorsVendorsExportQueryData,
98
+ VendorsVendorsExportQueryError
99
+ >,
100
+ ): UseSuspenseQueryResult<
101
+ VendorsVendorsExportQueryData,
102
+ VendorsVendorsExportQueryError
103
+ > {
104
+ const client = useGreenSecurityContext();
105
+ return useSuspenseQuery({
106
+ ...buildVendorsVendorsExportQuery(
107
+ client,
108
+ request,
109
+ options,
110
+ ),
111
+ ...options,
112
+ });
113
+ }
114
+
115
+ export function setVendorsVendorsExportData(
116
+ client: QueryClient,
117
+ queryKeyBase: [
118
+ parameters: {
119
+ companyNameLike?: string | undefined;
120
+ firstNameLike?: string | undefined;
121
+ lastNameLike?: string | undefined;
122
+ fullNameLike?: string | undefined;
123
+ emailLike?: string | undefined;
124
+ phoneLike?: string | undefined;
125
+ addressLike?: string | undefined;
126
+ address2Like?: string | undefined;
127
+ cityLike?: string | undefined;
128
+ stateLike?: string | undefined;
129
+ zipLike?: string | undefined;
130
+ status?: string | undefined;
131
+ companyId?: number | undefined;
132
+ credentialingSubscriptionIdNull?: string | undefined;
133
+ scrubsSubscriptionIdNull?: string | undefined;
134
+ credentialingSubscriptionStatus?: string | undefined;
135
+ scrubsSubscriptionStatus?: string | undefined;
136
+ vendorTypeLike?: string | undefined;
137
+ vendorFieldValueLike?: string | undefined;
138
+ dateScannedGte?: Date | undefined;
139
+ dateScannedLte?: Date | undefined;
140
+ dateEndsGte?: Date | undefined;
141
+ dateEndsLte?: Date | undefined;
142
+ sort?: string | undefined;
143
+ desc?: operations.Desc | undefined;
144
+ itemsPerPage?: number | undefined;
145
+ expand?: string | undefined;
146
+ },
147
+ ],
148
+ data: VendorsVendorsExportQueryData,
149
+ ): VendorsVendorsExportQueryData | undefined {
150
+ const key = queryKeyVendorsVendorsExport(...queryKeyBase);
151
+
152
+ return client.setQueryData<VendorsVendorsExportQueryData>(key, data);
153
+ }
154
+
155
+ export function invalidateVendorsVendorsExport(
156
+ client: QueryClient,
157
+ queryKeyBase: TupleToPrefixes<
158
+ [parameters: {
159
+ companyNameLike?: string | undefined;
160
+ firstNameLike?: string | undefined;
161
+ lastNameLike?: string | undefined;
162
+ fullNameLike?: string | undefined;
163
+ emailLike?: string | undefined;
164
+ phoneLike?: string | undefined;
165
+ addressLike?: string | undefined;
166
+ address2Like?: string | undefined;
167
+ cityLike?: string | undefined;
168
+ stateLike?: string | undefined;
169
+ zipLike?: string | undefined;
170
+ status?: string | undefined;
171
+ companyId?: number | undefined;
172
+ credentialingSubscriptionIdNull?: string | undefined;
173
+ scrubsSubscriptionIdNull?: string | undefined;
174
+ credentialingSubscriptionStatus?: string | undefined;
175
+ scrubsSubscriptionStatus?: string | undefined;
176
+ vendorTypeLike?: string | undefined;
177
+ vendorFieldValueLike?: string | undefined;
178
+ dateScannedGte?: Date | undefined;
179
+ dateScannedLte?: Date | undefined;
180
+ dateEndsGte?: Date | undefined;
181
+ dateEndsLte?: Date | undefined;
182
+ sort?: string | undefined;
183
+ desc?: operations.Desc | undefined;
184
+ itemsPerPage?: number | undefined;
185
+ expand?: string | undefined;
186
+ }]
187
+ >,
188
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
189
+ ): Promise<void> {
190
+ return client.invalidateQueries({
191
+ ...filters,
192
+ queryKey: [
193
+ "@greensecurity/javascript-sdk",
194
+ "vendors",
195
+ "vendorsExport",
196
+ ...queryKeyBase,
197
+ ],
198
+ });
199
+ }
200
+
201
+ export function invalidateAllVendorsVendorsExport(
202
+ client: QueryClient,
203
+ filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
204
+ ): Promise<void> {
205
+ return client.invalidateQueries({
206
+ ...filters,
207
+ queryKey: ["@greensecurity/javascript-sdk", "vendors", "vendorsExport"],
208
+ });
209
+ }
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { companiesAddCompanyManager } from "../funcs/companiesAddCompanyManager.js";
6
6
  import { companiesGetCompany } from "../funcs/companiesGetCompany.js";
7
+ import { companiesListCompanyCredentials } from "../funcs/companiesListCompanyCredentials.js";
7
8
  import { companiesListCompanyCredits } from "../funcs/companiesListCompanyCredits.js";
8
9
  import { companiesListCompanyManagers } from "../funcs/companiesListCompanyManagers.js";
9
10
  import { companiesListOrSearchCompanies } from "../funcs/companiesListOrSearchCompanies.js";
@@ -114,6 +115,25 @@ export class Companies extends ClientSDK {
114
115
  ));
115
116
  }
116
117
 
118
+ /**
119
+ * List Company Credentials
120
+ *
121
+ * @remarks
122
+ * Lists credentials required for the specified company, based on CompanyRequiredCredentials.
123
+ */
124
+ async listCompanyCredentials(
125
+ request: operations.ListCompanyCredentialsRequest,
126
+ options?: RequestOptions,
127
+ ): Promise<
128
+ PageIterator<operations.ListCompanyCredentialsResponse, { page: number }>
129
+ > {
130
+ return unwrapResultIterator(companiesListCompanyCredentials(
131
+ this,
132
+ request,
133
+ options,
134
+ ));
135
+ }
136
+
117
137
  /**
118
138
  * List credits related to a company
119
139
  *
@@ -2,7 +2,10 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { organizationsCreateCompanyTargetFacility } from "../funcs/organizationsCreateCompanyTargetFacility.js";
6
+ import { organizationsDeleteCompanyTargetFacility } from "../funcs/organizationsDeleteCompanyTargetFacility.js";
5
7
  import { organizationsGetFacility } from "../funcs/organizationsGetFacility.js";
8
+ import { organizationsListCompanyTargetFacilities } from "../funcs/organizationsListCompanyTargetFacilities.js";
6
9
  import { organizationsListOrSearchDepartmentContacts } from "../funcs/organizationsListOrSearchDepartmentContacts.js";
7
10
  import { organizationsListOrSearchDepartments } from "../funcs/organizationsListOrSearchDepartments.js";
8
11
  import { organizationsListOrSearchFacilities } from "../funcs/organizationsListOrSearchFacilities.js";
@@ -81,6 +84,101 @@ export class Organizations extends ClientSDK {
81
84
  ));
82
85
  }
83
86
 
87
+ /**
88
+ * List company target facilities
89
+ *
90
+ * @remarks
91
+ * Lists the CompanyTargetFacility links for a company — the facilities the
92
+ * company is targeting. Each row carries the linked facility (with location
93
+ * and parent system), the link status, and per-facility counts of the
94
+ * company's individuals targeting it.
95
+ *
96
+ * Access control: the URL's `company_id` must be in the caller's read scope
97
+ * for Company (a company manager's or vendor's own company, or a company
98
+ * whose app is activated for the API user). Callers outside that scope
99
+ * receive `404 Company not found`.
100
+ *
101
+ * Filter with `has_individual` / `has_active_individual` to drive the
102
+ * facility roster views.
103
+ *
104
+ * Available `expand` scopes are:
105
+ *
106
+ * - company_target_facility.facility
107
+ */
108
+ async listCompanyTargetFacilities(
109
+ request: operations.ListCompanyTargetFacilitiesRequest,
110
+ options?: RequestOptions,
111
+ ): Promise<
112
+ PageIterator<
113
+ operations.ListCompanyTargetFacilitiesResponse,
114
+ { page: number }
115
+ >
116
+ > {
117
+ return unwrapResultIterator(organizationsListCompanyTargetFacilities(
118
+ this,
119
+ request,
120
+ options,
121
+ ));
122
+ }
123
+
124
+ /**
125
+ * Add a company target facility
126
+ *
127
+ * @remarks
128
+ * Links the URL's company to an existing facility. The link is created with
129
+ * status `Pending`. Only the link row is created — the Facility entity
130
+ * itself is never created or modified by this endpoint.
131
+ *
132
+ * Access control: the URL's `company_id` must be in the caller's update
133
+ * scope for Company, AND the `facility_id` must be in the caller's create
134
+ * scope for Facility (a facility on the company's site, or a facility
135
+ * reachable via the API user's site/system/facility-scoped activation).
136
+ * Either being out of scope returns `404 Company not found` /
137
+ * `404 Facility not found` respectively. Deleted facilities also return
138
+ * `404 Facility not found`.
139
+ *
140
+ * Available `expand` scopes are:
141
+ *
142
+ * - company_target_facility.facility
143
+ */
144
+ async createCompanyTargetFacility(
145
+ request: operations.CreateCompanyTargetFacilityRequest,
146
+ options?: RequestOptions,
147
+ ): Promise<
148
+ operations.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk
149
+ > {
150
+ return unwrapAsync(organizationsCreateCompanyTargetFacility(
151
+ this,
152
+ request,
153
+ options,
154
+ ));
155
+ }
156
+
157
+ /**
158
+ * Remove a company target facility
159
+ *
160
+ * @remarks
161
+ * Removes a CompanyTargetFacility link. Blocked when any of the company's
162
+ * individuals still target the same facility (to avoid orphaning their
163
+ * vendor-scoped target rows). Only the link row is removed — the Facility
164
+ * entity itself is never touched.
165
+ *
166
+ * Access control: the URL's `company_id` must be in the caller's update
167
+ * scope for Company (a company manager's or vendor's own company, or a
168
+ * company whose app is activated for the API user). Callers outside that
169
+ * scope receive `404 Company not found`.
170
+ */
171
+ async deleteCompanyTargetFacility(
172
+ request: operations.DeleteCompanyTargetFacilityRequest,
173
+ options?: RequestOptions,
174
+ ): Promise<boolean> {
175
+ return unwrapAsync(organizationsDeleteCompanyTargetFacility(
176
+ this,
177
+ request,
178
+ options,
179
+ ));
180
+ }
181
+
84
182
  /**
85
183
  * List or search department contacts
86
184
  *
@@ -18,6 +18,7 @@ import { vendorsCreateVendorRegistration } from "../funcs/vendorsCreateVendorReg
18
18
  import { vendorsDeclineVendorCredential } from "../funcs/vendorsDeclineVendorCredential.js";
19
19
  import { vendorsDeleteVendorCredentialFile } from "../funcs/vendorsDeleteVendorCredentialFile.js";
20
20
  import { vendorsDeleteVendorManagedByCompany } from "../funcs/vendorsDeleteVendorManagedByCompany.js";
21
+ import { vendorsDownloadVendorsExport } from "../funcs/vendorsDownloadVendorsExport.js";
21
22
  import { vendorsExpediteTimeRemaining } from "../funcs/vendorsExpediteTimeRemaining.js";
22
23
  import { vendorsGetNextUnansweredScreeningQuestion } from "../funcs/vendorsGetNextUnansweredScreeningQuestion.js";
23
24
  import { vendorsGetSubscription } from "../funcs/vendorsGetSubscription.js";
@@ -27,6 +28,7 @@ import { vendorsGetVendorInvoiceDetails } from "../funcs/vendorsGetVendorInvoice
27
28
  import { vendorsGetVendorInvoiceReceipt } from "../funcs/vendorsGetVendorInvoiceReceipt.js";
28
29
  import { vendorsGetVendorLegalName } from "../funcs/vendorsGetVendorLegalName.js";
29
30
  import { vendorsGetVendorsDetails } from "../funcs/vendorsGetVendorsDetails.js";
31
+ import { vendorsGetVendorsExportStatus } from "../funcs/vendorsGetVendorsExportStatus.js";
30
32
  import { vendorsGetVendorUploadHistory } from "../funcs/vendorsGetVendorUploadHistory.js";
31
33
  import { vendorsListVendorAdditionalFacilityFields } from "../funcs/vendorsListVendorAdditionalFacilityFields.js";
32
34
  import { vendorsListVendorCredentialDataRequests } from "../funcs/vendorsListVendorCredentialDataRequests.js";
@@ -53,6 +55,7 @@ import { vendorsUpdateVendorCustomField } from "../funcs/vendorsUpdateVendorCust
53
55
  import { vendorsUpdateVendorDetails } from "../funcs/vendorsUpdateVendorDetails.js";
54
56
  import { vendorsUpdateVendorManagedByCompany } from "../funcs/vendorsUpdateVendorManagedByCompany.js";
55
57
  import { vendorsUpdateVendorScrubDetails } from "../funcs/vendorsUpdateVendorScrubDetails.js";
58
+ import { vendorsVendorsExport } from "../funcs/vendorsVendorsExport.js";
56
59
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
57
60
  import * as components from "../models/components/index.js";
58
61
  import * as operations from "../models/operations/index.js";
@@ -1004,6 +1007,63 @@ export class Vendors extends ClientSDK {
1004
1007
  ));
1005
1008
  }
1006
1009
 
1010
+ /**
1011
+ * Export vendors to CSV (async)
1012
+ *
1013
+ * @remarks
1014
+ * Enqueues an asynchronous job to generate a CSV export of vendors based on the
1015
+ * provided filters (the same filters supported by the vendors list endpoint).
1016
+ * Returns a `status_url` to poll until the export is ready, plus a
1017
+ * `download_url` and `status_id`.
1018
+ */
1019
+ async vendorsExport(
1020
+ request: operations.VendorsExportRequest,
1021
+ options?: RequestOptions,
1022
+ ): Promise<operations.VendorsExportResponseBody> {
1023
+ return unwrapAsync(vendorsVendorsExport(
1024
+ this,
1025
+ request,
1026
+ options,
1027
+ ));
1028
+ }
1029
+
1030
+ /**
1031
+ * Get vendor export status
1032
+ *
1033
+ * @remarks
1034
+ * Poll the status of an asynchronous vendor export job. When `ready` is true,
1035
+ * the export is complete and can be downloaded via the download endpoint.
1036
+ */
1037
+ async getVendorsExportStatus(
1038
+ request: operations.GetVendorsExportStatusRequest,
1039
+ options?: RequestOptions,
1040
+ ): Promise<operations.GetVendorsExportStatusResponseBody> {
1041
+ return unwrapAsync(vendorsGetVendorsExportStatus(
1042
+ this,
1043
+ request,
1044
+ options,
1045
+ ));
1046
+ }
1047
+
1048
+ /**
1049
+ * Download vendors CSV
1050
+ *
1051
+ * @remarks
1052
+ * Downloads the exported vendors CSV. When the export is ready the server
1053
+ * responds with a 302 redirect to a short-lived presigned S3 URL. If the
1054
+ * export job is still running, responds with 202.
1055
+ */
1056
+ async downloadVendorsExport(
1057
+ request: operations.DownloadVendorsExportRequest,
1058
+ options?: RequestOptions,
1059
+ ): Promise<operations.DownloadVendorsExportResponse | undefined> {
1060
+ return unwrapAsync(vendorsDownloadVendorsExport(
1061
+ this,
1062
+ request,
1063
+ options,
1064
+ ));
1065
+ }
1066
+
1007
1067
  /**
1008
1068
  * Purchase scrub credits
1009
1069
  *
@@ -50,6 +50,9 @@ export class VendorScans extends ClientSDK {
50
50
  * - vendor_scan.zone
51
51
  * - vendor_scan.department
52
52
  * - vendor_scan.badge_data
53
+ * - vendor_scan.company
54
+ * - vendor_scan.appointment
55
+ * - vendor_scan.screening_responses
53
56
  */
54
57
  async getVendorScan(
55
58
  request: operations.GetVendorScanRequest,
@@ -21,16 +21,17 @@ export type APICall =
21
21
 
22
22
  export class APIPromise<T> implements Promise<T> {
23
23
  readonly #promise: Promise<[T, APICall]>;
24
- readonly #unwrapped: Promise<T>;
24
+ #unwrapped: Promise<T> | null;
25
25
 
26
26
  readonly [Symbol.toStringTag] = "APIPromise";
27
27
 
28
28
  constructor(p: [T, APICall] | Promise<[T, APICall]>) {
29
29
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
30
- this.#unwrapped =
31
- p instanceof Promise
32
- ? this.#promise.then(([value]) => value)
33
- : Promise.resolve(p[0]);
30
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
31
+ }
32
+
33
+ #getUnwrapped(): Promise<T> {
34
+ return (this.#unwrapped ??= this.#promise.then(([value]) => value));
34
35
  }
35
36
 
36
37
  then<TResult1 = T, TResult2 = never>(
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
55
56
  | null
56
57
  | undefined,
57
58
  ): Promise<T | TResult> {
58
- return this.#unwrapped.catch(onrejected);
59
+ return this.#getUnwrapped().catch(onrejected);
59
60
  }
60
61
 
61
62
  finally(onfinally?: (() => void) | null | undefined): Promise<T> {
62
- return this.#unwrapped.finally(onfinally);
63
+ return this.#getUnwrapped().finally(onfinally);
63
64
  }
64
65
 
65
66
  $inspect(): Promise<[T, APICall]> {
@@ -62,24 +62,6 @@ export function number(): z.ZodType<number, z.ZodTypeDef, unknown> {
62
62
  ]);
63
63
  }
64
64
 
65
- export function bigint(): z.ZodType<bigint, z.ZodTypeDef, unknown> {
66
- return z.union([
67
- z.string().transform((x, ctx) => {
68
- try {
69
- return BigInt(x);
70
- } catch (error) {
71
- ctx.addIssue({
72
- code: "invalid_type",
73
- expected: "bigint",
74
- received: "string",
75
- });
76
- return z.NEVER;
77
- }
78
- }),
79
- zodDefaultToZeroValue(0n),
80
- ]);
81
- }
82
-
83
65
  export function date(): z.ZodType<Date, z.ZodTypeDef, unknown> {
84
66
  return z.union([
85
67
  z.union([z.string(), zodDefaultToZeroValue(0)]).transform((x) =>
@@ -106,12 +88,6 @@ export function literal<T extends string | number | boolean>(
106
88
  return z.union([z.literal(value), zodDefaultToZeroValue(value)]);
107
89
  }
108
90
 
109
- export function literalBigInt<T extends bigint>(
110
- value: T,
111
- ): z.ZodType<T, z.ZodTypeDef, unknown> {
112
- return z.literal(String(value)).transform((x) => BigInt(x)) as any;
113
- }
114
-
115
91
  export function optional<T extends z.ZodType>(t: T) {
116
92
  return z.union([
117
93
  // Null -> undefined