@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
@@ -11,30 +11,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
11
11
  import * as types from "../../types/primitives.js";
12
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
13
 
14
- /**
15
- * Who receives vendor-related notification emails:
16
- *
17
- * @remarks
18
- * - `none` — no recipients
19
- * - `self` — the user (vendor) themselves
20
- * - `company_manager` — the vendor's company manager only
21
- * - `self_and_company_manager` — both
22
- */
23
14
  export const NotificationRecipients = {
24
15
  None: "none",
25
16
  Self: "self",
26
17
  CompanyManager: "company_manager",
27
18
  SelfAndCompanyManager: "self_and_company_manager",
28
19
  } as const;
29
- /**
30
- * Who receives vendor-related notification emails:
31
- *
32
- * @remarks
33
- * - `none` — no recipients
34
- * - `self` — the user (vendor) themselves
35
- * - `company_manager` — the vendor's company manager only
36
- * - `self_and_company_manager` — both
37
- */
38
20
  export type NotificationRecipients = OpenEnum<typeof NotificationRecipients>;
39
21
 
40
22
  /**
@@ -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",
@@ -9,8 +9,17 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
10
  import { smartUnion } from "../../types/smartUnion.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import {
13
+ AppointmentSummary,
14
+ AppointmentSummary$inboundSchema,
15
+ } from "./appointmentsummary.js";
16
+ import { Company, Company$inboundSchema } from "./company.js";
12
17
  import { Department, Department$inboundSchema } from "./department.js";
13
18
  import { Vendor, Vendor$inboundSchema } from "./vendor.js";
19
+ import {
20
+ VendorScanScreeningResponse,
21
+ VendorScanScreeningResponse$inboundSchema,
22
+ } from "./vendorscanscreeningresponse.js";
14
23
  import { Zone, Zone$inboundSchema } from "./zone.js";
15
24
 
16
25
  export type VendorScanVendor = Vendor | number;
@@ -19,6 +28,16 @@ export type VendorScanZone = Zone | number;
19
28
 
20
29
  export type VendorScanDepartment = Department | number;
21
30
 
31
+ /**
32
+ * The company captured at scan time. Returns the full Company object when requested via the `vendor_scan.company` expand scope, otherwise returns the company ID.
33
+ */
34
+ export type VendorScanCompany = Company | number;
35
+
36
+ /**
37
+ * The appointment associated with this scan. Returns a reduced Event object when requested via the `vendor_scan.appointment` expand scope, otherwise returns the event ID.
38
+ */
39
+ export type Appointment = AppointmentSummary | number;
40
+
22
41
  /**
23
42
  * Reduced list of attributes of VendorScan record
24
43
  */
@@ -31,9 +50,35 @@ export type VendorScan = {
31
50
  scanSuccess?: boolean | undefined;
32
51
  scanType?: number | null | undefined;
33
52
  notes?: string | null | undefined;
53
+ /**
54
+ * Free-text department name entered by the vendor when no department was selected. Displayed as "Other: <value>" in the legacy UI.
55
+ */
56
+ departmentOther?: string | null | undefined;
57
+ /**
58
+ * Whether the scan result was overridden.
59
+ */
60
+ override?: boolean | undefined;
61
+ /**
62
+ * Whether the scan is marked as ignored.
63
+ */
64
+ ignore?: boolean | undefined;
65
+ visitPurpose?: string | null | undefined;
66
+ visitContact?: string | null | undefined;
67
+ /**
68
+ * Estimated checkout time (ISO 8601 datetime).
69
+ */
70
+ checkoutTime?: string | null | undefined;
34
71
  vendor?: Vendor | number | undefined;
35
72
  zone?: Zone | number | undefined;
36
73
  department?: Department | number | null | undefined;
74
+ /**
75
+ * The company captured at scan time. Returns the full Company object when requested via the `vendor_scan.company` expand scope, otherwise returns the company ID.
76
+ */
77
+ company?: Company | number | null | undefined;
78
+ /**
79
+ * The appointment associated with this scan. Returns a reduced Event object when requested via the `vendor_scan.appointment` expand scope, otherwise returns the event ID.
80
+ */
81
+ appointment?: AppointmentSummary | number | null | undefined;
37
82
  departmentEventId?: number | null | undefined;
38
83
  facilityEventId?: number | null | undefined;
39
84
  scanInVendorScanId?: number | null | undefined;
@@ -46,6 +91,10 @@ export type VendorScan = {
46
91
  * Smart badge LED payload data. Only present when requested via the `vendor_scan.badge_data` expand scope.
47
92
  */
48
93
  badgeData?: string | null | undefined;
94
+ /**
95
+ * Screening question responses for this scan. Only present when requested via the `vendor_scan.screening_responses` expand scope.
96
+ */
97
+ screeningResponses?: Array<VendorScanScreeningResponse> | null | undefined;
49
98
  };
50
99
 
51
100
  /** @internal */
@@ -99,6 +148,40 @@ export function vendorScanDepartmentFromJSON(
99
148
  );
100
149
  }
101
150
 
151
+ /** @internal */
152
+ export const VendorScanCompany$inboundSchema: z.ZodType<
153
+ VendorScanCompany,
154
+ z.ZodTypeDef,
155
+ unknown
156
+ > = smartUnion([Company$inboundSchema, types.number()]);
157
+
158
+ export function vendorScanCompanyFromJSON(
159
+ jsonString: string,
160
+ ): SafeParseResult<VendorScanCompany, SDKValidationError> {
161
+ return safeParse(
162
+ jsonString,
163
+ (x) => VendorScanCompany$inboundSchema.parse(JSON.parse(x)),
164
+ `Failed to parse 'VendorScanCompany' from JSON`,
165
+ );
166
+ }
167
+
168
+ /** @internal */
169
+ export const Appointment$inboundSchema: z.ZodType<
170
+ Appointment,
171
+ z.ZodTypeDef,
172
+ unknown
173
+ > = smartUnion([AppointmentSummary$inboundSchema, types.number()]);
174
+
175
+ export function appointmentFromJSON(
176
+ jsonString: string,
177
+ ): SafeParseResult<Appointment, SDKValidationError> {
178
+ return safeParse(
179
+ jsonString,
180
+ (x) => Appointment$inboundSchema.parse(JSON.parse(x)),
181
+ `Failed to parse 'Appointment' from JSON`,
182
+ );
183
+ }
184
+
102
185
  /** @internal */
103
186
  export const VendorScan$inboundSchema: z.ZodType<
104
187
  VendorScan,
@@ -113,10 +196,21 @@ export const VendorScan$inboundSchema: z.ZodType<
113
196
  scan_success: types.optional(types.boolean()),
114
197
  scan_type: z.nullable(types.number()).optional(),
115
198
  notes: z.nullable(types.string()).optional(),
199
+ department_other: z.nullable(types.string()).optional(),
200
+ override: types.optional(types.boolean()),
201
+ ignore: types.optional(types.boolean()),
202
+ visit_purpose: z.nullable(types.string()).optional(),
203
+ visit_contact: z.nullable(types.string()).optional(),
204
+ checkout_time: z.nullable(types.string()).optional(),
116
205
  vendor: types.optional(smartUnion([Vendor$inboundSchema, types.number()])),
117
206
  zone: types.optional(smartUnion([Zone$inboundSchema, types.number()])),
118
207
  department: z.nullable(smartUnion([Department$inboundSchema, types.number()]))
119
208
  .optional(),
209
+ company: z.nullable(smartUnion([Company$inboundSchema, types.number()]))
210
+ .optional(),
211
+ appointment: z.nullable(
212
+ smartUnion([AppointmentSummary$inboundSchema, types.number()]),
213
+ ).optional(),
120
214
  department_event_id: z.nullable(types.number()).optional(),
121
215
  facility_event_id: z.nullable(types.number()).optional(),
122
216
  scan_in_vendor_scan_id: z.nullable(types.number()).optional(),
@@ -126,6 +220,9 @@ export const VendorScan$inboundSchema: z.ZodType<
126
220
  requires_screening_questions: types.optional(types.boolean()),
127
221
  recheck: types.optional(types.boolean()),
128
222
  badge_data: z.nullable(types.string()).optional(),
223
+ screening_responses: z.nullable(
224
+ z.array(VendorScanScreeningResponse$inboundSchema),
225
+ ).optional(),
129
226
  }).transform((v) => {
130
227
  return remap$(v, {
131
228
  "qr_code": "qrCode",
@@ -133,6 +230,10 @@ export const VendorScan$inboundSchema: z.ZodType<
133
230
  "scan_error": "scanError",
134
231
  "scan_success": "scanSuccess",
135
232
  "scan_type": "scanType",
233
+ "department_other": "departmentOther",
234
+ "visit_purpose": "visitPurpose",
235
+ "visit_contact": "visitContact",
236
+ "checkout_time": "checkoutTime",
136
237
  "department_event_id": "departmentEventId",
137
238
  "facility_event_id": "facilityEventId",
138
239
  "scan_in_vendor_scan_id": "scanInVendorScanId",
@@ -141,6 +242,7 @@ export const VendorScan$inboundSchema: z.ZodType<
141
242
  "finished_screening_questions": "finishedScreeningQuestions",
142
243
  "requires_screening_questions": "requiresScreeningQuestions",
143
244
  "badge_data": "badgeData",
245
+ "screening_responses": "screeningResponses",
144
246
  });
145
247
  });
146
248
 
@@ -0,0 +1,61 @@
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 screening question response associated with a vendor scan.
14
+ */
15
+ export type VendorScanScreeningResponse = {
16
+ id: number;
17
+ screeningQuestionId?: number | null | undefined;
18
+ /**
19
+ * The text of the screening question.
20
+ */
21
+ question?: string | null | undefined;
22
+ screeningAnswerId?: number | null | undefined;
23
+ /**
24
+ * The selected or entered answer. Returns custom_answer if provided, otherwise the preset answer text.
25
+ */
26
+ answer?: string | null | undefined;
27
+ /**
28
+ * Free-text answer entered by the vendor, if applicable.
29
+ */
30
+ customAnswer?: string | null | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const VendorScanScreeningResponse$inboundSchema: z.ZodType<
35
+ VendorScanScreeningResponse,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ id: types.number(),
40
+ screening_question_id: z.nullable(types.number()).optional(),
41
+ question: z.nullable(types.string()).optional(),
42
+ screening_answer_id: z.nullable(types.number()).optional(),
43
+ answer: z.nullable(types.string()).optional(),
44
+ custom_answer: z.nullable(types.string()).optional(),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ "screening_question_id": "screeningQuestionId",
48
+ "screening_answer_id": "screeningAnswerId",
49
+ "custom_answer": "customAnswer",
50
+ });
51
+ });
52
+
53
+ export function vendorScanScreeningResponseFromJSON(
54
+ jsonString: string,
55
+ ): SafeParseResult<VendorScanScreeningResponse, SDKValidationError> {
56
+ return safeParse(
57
+ jsonString,
58
+ (x) => VendorScanScreeningResponse$inboundSchema.parse(JSON.parse(x)),
59
+ `Failed to parse 'VendorScanScreeningResponse' from JSON`,
60
+ );
61
+ }
@@ -0,0 +1,132 @@
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 components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type CreateCompanyTargetFacilityRequestBody = {
13
+ /**
14
+ * The existing facility to target.
15
+ */
16
+ facilityId: number;
17
+ };
18
+
19
+ export type CreateCompanyTargetFacilityRequest = {
20
+ /**
21
+ * The company that will target the facility.
22
+ */
23
+ companyId: number;
24
+ /**
25
+ * An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
26
+ */
27
+ expand?: Array<components.Expand> | undefined;
28
+ requestBody: CreateCompanyTargetFacilityRequestBody;
29
+ };
30
+
31
+ /**
32
+ * The CompanyTargetFacility link was created.
33
+ */
34
+ export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
35
+ /**
36
+ * 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.
37
+ */
38
+ companyTargetFacility: components.CompanyTargetFacility;
39
+ };
40
+
41
+ /** @internal */
42
+ export type CreateCompanyTargetFacilityRequestBody$Outbound = {
43
+ facility_id: number;
44
+ };
45
+
46
+ /** @internal */
47
+ export const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<
48
+ CreateCompanyTargetFacilityRequestBody$Outbound,
49
+ z.ZodTypeDef,
50
+ CreateCompanyTargetFacilityRequestBody
51
+ > = z.object({
52
+ facilityId: z.number().int(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ facilityId: "facility_id",
56
+ });
57
+ });
58
+
59
+ export function createCompanyTargetFacilityRequestBodyToJSON(
60
+ createCompanyTargetFacilityRequestBody:
61
+ CreateCompanyTargetFacilityRequestBody,
62
+ ): string {
63
+ return JSON.stringify(
64
+ CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(
65
+ createCompanyTargetFacilityRequestBody,
66
+ ),
67
+ );
68
+ }
69
+
70
+ /** @internal */
71
+ export type CreateCompanyTargetFacilityRequest$Outbound = {
72
+ company_id: number;
73
+ expand?: Array<string> | undefined;
74
+ RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
75
+ };
76
+
77
+ /** @internal */
78
+ export const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
79
+ CreateCompanyTargetFacilityRequest$Outbound,
80
+ z.ZodTypeDef,
81
+ CreateCompanyTargetFacilityRequest
82
+ > = z.object({
83
+ companyId: z.number().int(),
84
+ expand: z.array(components.Expand$outboundSchema).optional(),
85
+ requestBody: z.lazy(() =>
86
+ CreateCompanyTargetFacilityRequestBody$outboundSchema
87
+ ),
88
+ }).transform((v) => {
89
+ return remap$(v, {
90
+ companyId: "company_id",
91
+ requestBody: "RequestBody",
92
+ });
93
+ });
94
+
95
+ export function createCompanyTargetFacilityRequestToJSON(
96
+ createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest,
97
+ ): string {
98
+ return JSON.stringify(
99
+ CreateCompanyTargetFacilityRequest$outboundSchema.parse(
100
+ createCompanyTargetFacilityRequest,
101
+ ),
102
+ );
103
+ }
104
+
105
+ /** @internal */
106
+ export const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema:
107
+ z.ZodType<
108
+ CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
109
+ z.ZodTypeDef,
110
+ unknown
111
+ > = z.object({
112
+ company_target_facility: components.CompanyTargetFacility$inboundSchema,
113
+ }).transform((v) => {
114
+ return remap$(v, {
115
+ "company_target_facility": "companyTargetFacility",
116
+ });
117
+ });
118
+
119
+ export function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(
120
+ jsonString: string,
121
+ ): SafeParseResult<
122
+ CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
123
+ SDKValidationError
124
+ > {
125
+ return safeParse(
126
+ jsonString,
127
+ (x) =>
128
+ CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
129
+ .parse(JSON.parse(x)),
130
+ `Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`,
131
+ );
132
+ }
@@ -111,7 +111,7 @@ export type RequestBodyLines = {
111
111
  paymentHandlerData?: string | undefined;
112
112
  };
113
113
 
114
- export type RequestBody2 = {
114
+ export type CreateInvoiceRequestBody2 = {
115
115
  companyId: number;
116
116
  lines?: Array<RequestBodyLines> | undefined;
117
117
  credentialPricingIds?: Array<number> | null | undefined;
@@ -143,7 +143,7 @@ export type RequestBody1 = {
143
143
 
144
144
  export type CreateInvoiceRequestBody =
145
145
  | RequestBody1
146
- | RequestBody2
146
+ | CreateInvoiceRequestBody2
147
147
  | Three
148
148
  | Four
149
149
  | Five;
@@ -473,17 +473,17 @@ export function requestBodyLinesToJSON(
473
473
  }
474
474
 
475
475
  /** @internal */
476
- export type RequestBody2$Outbound = {
476
+ export type CreateInvoiceRequestBody2$Outbound = {
477
477
  company_id: number;
478
478
  lines?: Array<RequestBodyLines$Outbound> | undefined;
479
479
  credential_pricing_ids?: Array<number> | null | undefined;
480
480
  };
481
481
 
482
482
  /** @internal */
483
- export const RequestBody2$outboundSchema: z.ZodType<
484
- RequestBody2$Outbound,
483
+ export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
484
+ CreateInvoiceRequestBody2$Outbound,
485
485
  z.ZodTypeDef,
486
- RequestBody2
486
+ CreateInvoiceRequestBody2
487
487
  > = z.object({
488
488
  companyId: z.number().int(),
489
489
  lines: z.array(z.lazy(() => RequestBodyLines$outboundSchema)).optional(),
@@ -495,8 +495,12 @@ export const RequestBody2$outboundSchema: z.ZodType<
495
495
  });
496
496
  });
497
497
 
498
- export function requestBody2ToJSON(requestBody2: RequestBody2): string {
499
- return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
498
+ export function createInvoiceRequestBody2ToJSON(
499
+ createInvoiceRequestBody2: CreateInvoiceRequestBody2,
500
+ ): string {
501
+ return JSON.stringify(
502
+ CreateInvoiceRequestBody2$outboundSchema.parse(createInvoiceRequestBody2),
503
+ );
500
504
  }
501
505
 
502
506
  /** @internal */
@@ -580,7 +584,7 @@ export function requestBody1ToJSON(requestBody1: RequestBody1): string {
580
584
  /** @internal */
581
585
  export type CreateInvoiceRequestBody$Outbound =
582
586
  | RequestBody1$Outbound
583
- | RequestBody2$Outbound
587
+ | CreateInvoiceRequestBody2$Outbound
584
588
  | Three$Outbound
585
589
  | Four$Outbound
586
590
  | Five$Outbound;
@@ -592,7 +596,7 @@ export const CreateInvoiceRequestBody$outboundSchema: z.ZodType<
592
596
  CreateInvoiceRequestBody
593
597
  > = smartUnion([
594
598
  z.lazy(() => RequestBody1$outboundSchema),
595
- z.lazy(() => RequestBody2$outboundSchema),
599
+ z.lazy(() => CreateInvoiceRequestBody2$outboundSchema),
596
600
  z.lazy(() => Three$outboundSchema),
597
601
  z.lazy(() => Four$outboundSchema),
598
602
  z.lazy(() => Five$outboundSchema),
@@ -0,0 +1,47 @@
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
+
8
+ export type DeleteCompanyTargetFacilityRequest = {
9
+ /**
10
+ * The company that owns the CompanyTargetFacility link.
11
+ */
12
+ companyId: number;
13
+ /**
14
+ * CompanyTargetFacility id
15
+ */
16
+ id: number;
17
+ };
18
+
19
+ /** @internal */
20
+ export type DeleteCompanyTargetFacilityRequest$Outbound = {
21
+ company_id: number;
22
+ id: number;
23
+ };
24
+
25
+ /** @internal */
26
+ export const DeleteCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
27
+ DeleteCompanyTargetFacilityRequest$Outbound,
28
+ z.ZodTypeDef,
29
+ DeleteCompanyTargetFacilityRequest
30
+ > = z.object({
31
+ companyId: z.number().int(),
32
+ id: z.number().int(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ companyId: "company_id",
36
+ });
37
+ });
38
+
39
+ export function deleteCompanyTargetFacilityRequestToJSON(
40
+ deleteCompanyTargetFacilityRequest: DeleteCompanyTargetFacilityRequest,
41
+ ): string {
42
+ return JSON.stringify(
43
+ DeleteCompanyTargetFacilityRequest$outboundSchema.parse(
44
+ deleteCompanyTargetFacilityRequest,
45
+ ),
46
+ );
47
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type DownloadVendorsExportRequest = {
13
+ /**
14
+ * Export id returned by the vendor export endpoint.
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /**
20
+ * Export is still being generated.
21
+ */
22
+ export type DownloadVendorsExportResponseBody = {
23
+ /**
24
+ * False while the export job is still running.
25
+ */
26
+ ready?: boolean | undefined;
27
+ /**
28
+ * Human-readable message about the export status.
29
+ */
30
+ message?: string | undefined;
31
+ };
32
+
33
+ export type DownloadVendorsExportResponse = {
34
+ headers: { [k: string]: Array<string> };
35
+ result?: DownloadVendorsExportResponseBody | undefined;
36
+ };
37
+
38
+ /** @internal */
39
+ export type DownloadVendorsExportRequest$Outbound = {
40
+ id: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const DownloadVendorsExportRequest$outboundSchema: z.ZodType<
45
+ DownloadVendorsExportRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ DownloadVendorsExportRequest
48
+ > = z.object({
49
+ id: z.string(),
50
+ });
51
+
52
+ export function downloadVendorsExportRequestToJSON(
53
+ downloadVendorsExportRequest: DownloadVendorsExportRequest,
54
+ ): string {
55
+ return JSON.stringify(
56
+ DownloadVendorsExportRequest$outboundSchema.parse(
57
+ downloadVendorsExportRequest,
58
+ ),
59
+ );
60
+ }
61
+
62
+ /** @internal */
63
+ export const DownloadVendorsExportResponseBody$inboundSchema: z.ZodType<
64
+ DownloadVendorsExportResponseBody,
65
+ z.ZodTypeDef,
66
+ unknown
67
+ > = z.object({
68
+ ready: types.optional(types.boolean()),
69
+ message: types.optional(types.string()),
70
+ });
71
+
72
+ export function downloadVendorsExportResponseBodyFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<DownloadVendorsExportResponseBody, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => DownloadVendorsExportResponseBody$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'DownloadVendorsExportResponseBody' from JSON`,
79
+ );
80
+ }
81
+
82
+ /** @internal */
83
+ export const DownloadVendorsExportResponse$inboundSchema: z.ZodType<
84
+ DownloadVendorsExportResponse,
85
+ z.ZodTypeDef,
86
+ unknown
87
+ > = z.object({
88
+ Headers: z.record(z.array(z.string())).default({}),
89
+ Result: types.optional(
90
+ z.lazy(() => DownloadVendorsExportResponseBody$inboundSchema),
91
+ ),
92
+ }).transform((v) => {
93
+ return remap$(v, {
94
+ "Headers": "headers",
95
+ "Result": "result",
96
+ });
97
+ });
98
+
99
+ export function downloadVendorsExportResponseFromJSON(
100
+ jsonString: string,
101
+ ): SafeParseResult<DownloadVendorsExportResponse, SDKValidationError> {
102
+ return safeParse(
103
+ jsonString,
104
+ (x) => DownloadVendorsExportResponse$inboundSchema.parse(JSON.parse(x)),
105
+ `Failed to parse 'DownloadVendorsExportResponse' from JSON`,
106
+ );
107
+ }