@greensecurity/javascript-sdk 0.46.0-beta.6 → 0.46.0-beta.8

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 (491) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/zoneDevicesList.test.js +31 -0
  7. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/zones.test.js +10 -7
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  11. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  12. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js +9 -0
  13. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  14. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  15. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  16. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js +9 -0
  17. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  18. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +1 -0
  19. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  20. package/dist/commonjs/admin-funcs/zoneDevicesList.js +3 -0
  21. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
  22. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +3 -0
  23. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/companiesLookupCompanies.js +3 -0
  25. package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
  26. package/dist/commonjs/funcs/eventsListFeed.d.ts +9 -8
  27. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/eventsListFeed.js +9 -8
  29. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  30. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +8 -7
  31. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/eventsListPendingInvitations.js +8 -7
  33. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  34. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +6 -5
  35. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  36. package/dist/commonjs/funcs/eventsListStandingAppointments.js +6 -5
  37. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  38. package/dist/commonjs/funcs/organizationsGetFacility.d.ts +1 -0
  39. package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
  40. package/dist/commonjs/funcs/organizationsGetFacility.js +1 -0
  41. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  42. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  43. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
  45. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  46. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  47. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  48. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  49. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  50. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  51. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  52. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +7 -1
  53. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  54. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  55. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  56. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  57. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  58. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  59. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  60. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  61. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  62. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  63. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  64. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +4 -0
  65. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  66. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  67. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  68. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +3 -1
  69. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  70. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  71. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  72. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  73. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  74. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +1 -0
  75. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  76. package/dist/commonjs/funcs/zonesGetSecurityZone.js +1 -0
  77. package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
  78. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  79. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  80. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +6 -2
  81. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  82. package/dist/commonjs/index.extras.d.ts +20 -0
  83. package/dist/commonjs/index.extras.d.ts.map +1 -1
  84. package/dist/commonjs/index.extras.js +22 -0
  85. package/dist/commonjs/index.extras.js.map +1 -1
  86. package/dist/commonjs/lib/config.d.ts +3 -3
  87. package/dist/commonjs/lib/config.js +3 -3
  88. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +4 -0
  89. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/authenticatesuccessresponse.js +2 -0
  91. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
  92. package/dist/commonjs/models/components/devicecountpair.d.ts +28 -0
  93. package/dist/commonjs/models/components/devicecountpair.d.ts.map +1 -0
  94. package/dist/commonjs/models/components/devicecountpair.js +61 -0
  95. package/dist/commonjs/models/components/devicecountpair.js.map +1 -0
  96. package/dist/commonjs/models/components/devicecounts.d.ts +29 -0
  97. package/dist/commonjs/models/components/devicecounts.d.ts.map +1 -0
  98. package/dist/commonjs/models/components/devicecounts.js +61 -0
  99. package/dist/commonjs/models/components/devicecounts.js.map +1 -0
  100. package/dist/commonjs/models/components/event.d.ts +2 -2
  101. package/dist/commonjs/models/components/expand.d.ts +2 -0
  102. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  103. package/dist/commonjs/models/components/expand.js +2 -0
  104. package/dist/commonjs/models/components/expand.js.map +1 -1
  105. package/dist/commonjs/models/components/facility.d.ts +6 -0
  106. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/facility.js +5 -0
  108. package/dist/commonjs/models/components/facility.js.map +1 -1
  109. package/dist/commonjs/models/components/index.d.ts +2 -0
  110. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  111. package/dist/commonjs/models/components/index.js +2 -0
  112. package/dist/commonjs/models/components/index.js.map +1 -1
  113. package/dist/commonjs/models/components/invite.d.ts +40 -4
  114. package/dist/commonjs/models/components/invite.d.ts.map +1 -1
  115. package/dist/commonjs/models/components/invite.js +20 -0
  116. package/dist/commonjs/models/components/invite.js.map +1 -1
  117. package/dist/commonjs/models/components/user.d.ts +4 -0
  118. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  119. package/dist/commonjs/models/components/user.js +2 -0
  120. package/dist/commonjs/models/components/user.js.map +1 -1
  121. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +12 -0
  122. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  123. package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
  124. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  125. package/dist/commonjs/models/components/zone.d.ts +6 -0
  126. package/dist/commonjs/models/components/zone.d.ts.map +1 -1
  127. package/dist/commonjs/models/components/zone.js +5 -0
  128. package/dist/commonjs/models/components/zone.js.map +1 -1
  129. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +5 -0
  130. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  131. package/dist/commonjs/models/operations/listorsearchsecurityzones.js +1 -0
  132. package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
  133. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +12 -0
  134. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
  135. package/dist/commonjs/react-query/companiesLookupCompanies.js +12 -0
  136. package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
  137. package/dist/commonjs/react-query/eventsListFeed.d.ts +37 -33
  138. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  139. package/dist/commonjs/react-query/eventsListFeed.js +37 -33
  140. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  141. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +32 -28
  142. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  143. package/dist/commonjs/react-query/eventsListPendingInvitations.js +32 -28
  144. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  145. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +24 -20
  146. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  147. package/dist/commonjs/react-query/eventsListStandingAppointments.js +24 -20
  148. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  149. package/dist/commonjs/react-query/organizationsGetFacility.d.ts +2 -0
  150. package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
  151. package/dist/commonjs/react-query/organizationsGetFacility.js +2 -0
  152. package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
  153. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  154. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  155. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +4 -0
  156. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  157. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  158. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  159. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  160. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  161. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  162. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  163. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +7 -1
  164. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  165. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  166. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  167. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  168. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  169. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  170. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  171. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  172. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  173. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  174. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  175. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +16 -0
  176. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  177. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  178. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  179. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +3 -1
  180. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  181. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  182. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  183. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  184. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  185. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +2 -0
  186. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  187. package/dist/commonjs/react-query/zonesGetSecurityZone.js +2 -0
  188. package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
  189. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  190. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  191. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  192. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  193. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  194. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  195. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +8 -0
  196. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  197. package/dist/commonjs/sdk/companies.d.ts +3 -0
  198. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  199. package/dist/commonjs/sdk/companies.js +3 -0
  200. package/dist/commonjs/sdk/companies.js.map +1 -1
  201. package/dist/commonjs/sdk/events.d.ts +23 -20
  202. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  203. package/dist/commonjs/sdk/events.js +23 -20
  204. package/dist/commonjs/sdk/events.js.map +1 -1
  205. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  206. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  207. package/dist/commonjs/sdk/organizations.js +2 -0
  208. package/dist/commonjs/sdk/organizations.js.map +1 -1
  209. package/dist/commonjs/sdk/vendors.d.ts +46 -6
  210. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  211. package/dist/commonjs/sdk/vendors.js +47 -7
  212. package/dist/commonjs/sdk/vendors.js.map +1 -1
  213. package/dist/commonjs/sdk/zones.d.ts +3 -0
  214. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  215. package/dist/commonjs/sdk/zones.js +3 -0
  216. package/dist/commonjs/sdk/zones.js.map +1 -1
  217. package/dist/esm/__tests__/vendors.test.js +1 -1
  218. package/dist/esm/__tests__/webhooks.test.js +1 -1
  219. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  220. package/dist/esm/__tests__/zoneDevicesList.test.d.ts +2 -0
  221. package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +1 -0
  222. package/dist/esm/__tests__/zoneDevicesList.test.js +29 -0
  223. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -0
  224. package/dist/esm/__tests__/zones.test.js +10 -7
  225. package/dist/esm/__tests__/zones.test.js.map +1 -1
  226. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  227. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  228. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js +6 -0
  229. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  230. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  231. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  232. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js +6 -0
  233. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  234. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +1 -0
  235. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  236. package/dist/esm/admin-funcs/zoneDevicesList.js +3 -0
  237. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
  238. package/dist/esm/funcs/companiesLookupCompanies.d.ts +3 -0
  239. package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
  240. package/dist/esm/funcs/companiesLookupCompanies.js +3 -0
  241. package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
  242. package/dist/esm/funcs/eventsListFeed.d.ts +9 -8
  243. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  244. package/dist/esm/funcs/eventsListFeed.js +9 -8
  245. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  246. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +8 -7
  247. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  248. package/dist/esm/funcs/eventsListPendingInvitations.js +8 -7
  249. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  250. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +6 -5
  251. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  252. package/dist/esm/funcs/eventsListStandingAppointments.js +6 -5
  253. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  254. package/dist/esm/funcs/organizationsGetFacility.d.ts +1 -0
  255. package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
  256. package/dist/esm/funcs/organizationsGetFacility.js +1 -0
  257. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  258. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  259. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  260. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
  261. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  262. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  263. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  264. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  265. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  266. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  267. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  268. package/dist/esm/funcs/vendorsCreateVendorCompany.js +7 -1
  269. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  270. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  271. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  272. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  273. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  274. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  275. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  276. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  277. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  278. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  279. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  280. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +4 -0
  281. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  282. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  283. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  284. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +3 -1
  285. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  286. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  287. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  288. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  289. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  290. package/dist/esm/funcs/zonesGetSecurityZone.d.ts +1 -0
  291. package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  292. package/dist/esm/funcs/zonesGetSecurityZone.js +1 -0
  293. package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
  294. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  295. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  296. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +7 -3
  297. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  298. package/dist/esm/index.extras.d.ts +20 -0
  299. package/dist/esm/index.extras.d.ts.map +1 -1
  300. package/dist/esm/index.extras.js +22 -0
  301. package/dist/esm/index.extras.js.map +1 -1
  302. package/dist/esm/lib/config.d.ts +3 -3
  303. package/dist/esm/lib/config.js +3 -3
  304. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +4 -0
  305. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  306. package/dist/esm/models/components/authenticatesuccessresponse.js +2 -0
  307. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
  308. package/dist/esm/models/components/devicecountpair.d.ts +28 -0
  309. package/dist/esm/models/components/devicecountpair.d.ts.map +1 -0
  310. package/dist/esm/models/components/devicecountpair.js +23 -0
  311. package/dist/esm/models/components/devicecountpair.js.map +1 -0
  312. package/dist/esm/models/components/devicecounts.d.ts +29 -0
  313. package/dist/esm/models/components/devicecounts.d.ts.map +1 -0
  314. package/dist/esm/models/components/devicecounts.js +23 -0
  315. package/dist/esm/models/components/devicecounts.js.map +1 -0
  316. package/dist/esm/models/components/event.d.ts +2 -2
  317. package/dist/esm/models/components/expand.d.ts +2 -0
  318. package/dist/esm/models/components/expand.d.ts.map +1 -1
  319. package/dist/esm/models/components/expand.js +2 -0
  320. package/dist/esm/models/components/expand.js.map +1 -1
  321. package/dist/esm/models/components/facility.d.ts +6 -0
  322. package/dist/esm/models/components/facility.d.ts.map +1 -1
  323. package/dist/esm/models/components/facility.js +5 -0
  324. package/dist/esm/models/components/facility.js.map +1 -1
  325. package/dist/esm/models/components/index.d.ts +2 -0
  326. package/dist/esm/models/components/index.d.ts.map +1 -1
  327. package/dist/esm/models/components/index.js +2 -0
  328. package/dist/esm/models/components/index.js.map +1 -1
  329. package/dist/esm/models/components/invite.d.ts +40 -4
  330. package/dist/esm/models/components/invite.d.ts.map +1 -1
  331. package/dist/esm/models/components/invite.js +20 -0
  332. package/dist/esm/models/components/invite.js.map +1 -1
  333. package/dist/esm/models/components/user.d.ts +4 -0
  334. package/dist/esm/models/components/user.d.ts.map +1 -1
  335. package/dist/esm/models/components/user.js +2 -0
  336. package/dist/esm/models/components/user.js.map +1 -1
  337. package/dist/esm/models/components/vendorcredentialsummary.d.ts +12 -0
  338. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  339. package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
  340. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  341. package/dist/esm/models/components/zone.d.ts +6 -0
  342. package/dist/esm/models/components/zone.d.ts.map +1 -1
  343. package/dist/esm/models/components/zone.js +5 -0
  344. package/dist/esm/models/components/zone.js.map +1 -1
  345. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +5 -0
  346. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  347. package/dist/esm/models/operations/listorsearchsecurityzones.js +1 -0
  348. package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
  349. package/dist/esm/react-query/companiesLookupCompanies.d.ts +12 -0
  350. package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
  351. package/dist/esm/react-query/companiesLookupCompanies.js +12 -0
  352. package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
  353. package/dist/esm/react-query/eventsListFeed.d.ts +37 -33
  354. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  355. package/dist/esm/react-query/eventsListFeed.js +37 -33
  356. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  357. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +32 -28
  358. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  359. package/dist/esm/react-query/eventsListPendingInvitations.js +32 -28
  360. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  361. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +24 -20
  362. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  363. package/dist/esm/react-query/eventsListStandingAppointments.js +24 -20
  364. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  365. package/dist/esm/react-query/organizationsGetFacility.d.ts +2 -0
  366. package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
  367. package/dist/esm/react-query/organizationsGetFacility.js +2 -0
  368. package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
  369. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  370. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  371. package/dist/esm/react-query/organizationsListOrSearchFacilities.js +4 -0
  372. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  373. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  374. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  375. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  376. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  377. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  378. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  379. package/dist/esm/react-query/vendorsCreateVendorCompany.js +7 -1
  380. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  381. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  382. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  383. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  384. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  385. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  386. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  387. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  388. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  389. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  390. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  391. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +16 -0
  392. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  393. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  394. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  395. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +3 -1
  396. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  397. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  398. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  399. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  400. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  401. package/dist/esm/react-query/zonesGetSecurityZone.d.ts +2 -0
  402. package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  403. package/dist/esm/react-query/zonesGetSecurityZone.js +2 -0
  404. package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
  405. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  406. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  407. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  408. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  409. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  410. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  411. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +8 -0
  412. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  413. package/dist/esm/sdk/companies.d.ts +3 -0
  414. package/dist/esm/sdk/companies.d.ts.map +1 -1
  415. package/dist/esm/sdk/companies.js +3 -0
  416. package/dist/esm/sdk/companies.js.map +1 -1
  417. package/dist/esm/sdk/events.d.ts +23 -20
  418. package/dist/esm/sdk/events.d.ts.map +1 -1
  419. package/dist/esm/sdk/events.js +23 -20
  420. package/dist/esm/sdk/events.js.map +1 -1
  421. package/dist/esm/sdk/organizations.d.ts +2 -0
  422. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  423. package/dist/esm/sdk/organizations.js +2 -0
  424. package/dist/esm/sdk/organizations.js.map +1 -1
  425. package/dist/esm/sdk/vendors.d.ts +46 -6
  426. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  427. package/dist/esm/sdk/vendors.js +47 -7
  428. package/dist/esm/sdk/vendors.js.map +1 -1
  429. package/dist/esm/sdk/zones.d.ts +3 -0
  430. package/dist/esm/sdk/zones.d.ts.map +1 -1
  431. package/dist/esm/sdk/zones.js +3 -0
  432. package/dist/esm/sdk/zones.js.map +1 -1
  433. package/jsr.json +1 -1
  434. package/package.json +1 -1
  435. package/src/__tests__/vendors.test.ts +1 -1
  436. package/src/__tests__/webhooks.test.ts +1 -1
  437. package/src/__tests__/zoneDevicesList.test.ts +37 -0
  438. package/src/__tests__/zones.test.ts +10 -7
  439. package/src/admin-funcs/vendorCredentialCreateFormQuote.ts +12 -0
  440. package/src/admin-funcs/vendorCredentialGetFormLineItems.ts +12 -0
  441. package/src/admin-funcs/zoneDevicesList.ts +4 -0
  442. package/src/funcs/companiesLookupCompanies.ts +3 -0
  443. package/src/funcs/eventsListFeed.ts +9 -8
  444. package/src/funcs/eventsListPendingInvitations.ts +8 -7
  445. package/src/funcs/eventsListStandingAppointments.ts +6 -5
  446. package/src/funcs/organizationsGetFacility.ts +1 -0
  447. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
  448. package/src/funcs/vendorsAddVendorManagedByCompany.ts +9 -2
  449. package/src/funcs/vendorsCreateVendorCompany.ts +7 -1
  450. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +9 -1
  451. package/src/funcs/vendorsGetVendorCredentialDetails.ts +4 -0
  452. package/src/funcs/vendorsListVendorCredentialHistory.ts +4 -0
  453. package/src/funcs/vendorsUpdateVendorCustomField.ts +3 -1
  454. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +10 -1
  455. package/src/funcs/zonesGetSecurityZone.ts +1 -0
  456. package/src/funcs/zonesListOrSearchSecurityZones.ts +20 -13
  457. package/src/index.extras.ts +25 -0
  458. package/src/lib/config.ts +3 -3
  459. package/src/models/components/authenticatesuccessresponse.ts +6 -0
  460. package/src/models/components/devicecountpair.ts +63 -0
  461. package/src/models/components/devicecounts.ts +66 -0
  462. package/src/models/components/event.ts +2 -2
  463. package/src/models/components/expand.ts +2 -0
  464. package/src/models/components/facility.ts +15 -0
  465. package/src/models/components/index.ts +2 -0
  466. package/src/models/components/invite.ts +60 -4
  467. package/src/models/components/user.ts +6 -0
  468. package/src/models/components/vendorcredentialsummary.ts +16 -0
  469. package/src/models/components/zone.ts +15 -0
  470. package/src/models/operations/listorsearchsecurityzones.ts +6 -0
  471. package/src/react-query/companiesLookupCompanies.ts +12 -0
  472. package/src/react-query/eventsListFeed.ts +36 -32
  473. package/src/react-query/eventsListPendingInvitations.ts +32 -28
  474. package/src/react-query/eventsListStandingAppointments.ts +24 -20
  475. package/src/react-query/organizationsGetFacility.ts +2 -0
  476. package/src/react-query/organizationsListOrSearchFacilities.ts +4 -0
  477. package/src/react-query/vendorsAddVendorManagedByCompany.ts +9 -2
  478. package/src/react-query/vendorsCreateVendorCompany.ts +7 -1
  479. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +9 -1
  480. package/src/react-query/vendorsGetVendorCredentialDetails.ts +8 -0
  481. package/src/react-query/vendorsListVendorCredentialHistory.ts +16 -0
  482. package/src/react-query/vendorsUpdateVendorCustomField.ts +3 -1
  483. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +10 -1
  484. package/src/react-query/zonesGetSecurityZone.ts +2 -0
  485. package/src/react-query/zonesListOrSearchSecurityZones.core.ts +4 -0
  486. package/src/react-query/zonesListOrSearchSecurityZones.ts +10 -0
  487. package/src/sdk/companies.ts +3 -0
  488. package/src/sdk/events.ts +23 -20
  489. package/src/sdk/organizations.ts +2 -0
  490. package/src/sdk/vendors.ts +47 -7
  491. package/src/sdk/zones.ts +3 -0
@@ -35,23 +35,23 @@ test("Zones List Or Search Security Zones", async () => {
35
35
  useUrlParams: false,
36
36
  },
37
37
  items: [
38
- {
39
- facility: {},
40
- },
41
38
  {
42
39
  facility: {
43
40
  contacts: {
44
41
  contact: {
45
- status: "Active",
42
+ status: "Deleted",
46
43
  department: 123,
47
44
  },
48
45
  adminContact: {
46
+ status: "Active",
47
+ department: 123,
48
+ },
49
+ techContact: {
49
50
  status: "Deleted",
50
51
  department: 123,
51
52
  },
52
- techContact: null,
53
53
  greenSecurityCsm: {
54
- status: "Active",
54
+ status: "Inactive",
55
55
  department: 123,
56
56
  },
57
57
  accountManager: {
@@ -66,6 +66,9 @@ test("Zones List Or Search Security Zones", async () => {
66
66
  },
67
67
  },
68
68
  },
69
+ {
70
+ facility: {},
71
+ },
69
72
  ],
70
73
  });
71
74
  });
@@ -83,7 +86,7 @@ test("Zones Security Zone Checkin", async () => {
83
86
 
84
87
  const result = await greenSecurity.zones.securityZoneCheckin({
85
88
  qrCode: "<value>",
86
- zoneId: 641156,
89
+ zoneId: 185875,
87
90
  });
88
91
  expect(result).toBeDefined();
89
92
  expect(result).toEqual({});
@@ -0,0 +1,12 @@
1
+ import { APIPromise } from "../types/async.js";
2
+ import { $doPost, internalApiResult } from "./doAdmin.js";
3
+
4
+ export function vendorCredentialCreateFormQuote(
5
+ vendorCredentialId: number,
6
+ jsonData: string,
7
+ ): internalApiResult {
8
+ return new APIPromise($doPost(
9
+ `/vendors/credentials/${vendorCredentialId}/quote`,
10
+ { json_data: jsonData },
11
+ ));
12
+ }
@@ -0,0 +1,12 @@
1
+ import { APIPromise } from "../types/async.js";
2
+ import { $doPost, internalApiResult } from "./doAdmin.js";
3
+
4
+ export function vendorCredentialGetFormLineItems(
5
+ vendorCredentialId: number,
6
+ jsonData: string,
7
+ ): internalApiResult {
8
+ return new APIPromise($doPost(
9
+ `/vendors/credentials/${vendorCredentialId}/line-items`,
10
+ { json_data: jsonData },
11
+ ));
12
+ }
@@ -5,6 +5,7 @@ export type zoneDevicesListSortField = "id" | "name";
5
5
 
6
6
  export type zoneDevicesListRequest = {
7
7
  facilityId?: number;
8
+ zoneId?: number;
8
9
  page?: number;
9
10
  itemsPerPage?: number;
10
11
  sort?: zoneDevicesListSortField;
@@ -32,6 +33,9 @@ export function zoneDevicesList(
32
33
  if (request.facilityId !== undefined) {
33
34
  query["facility_id"] = request.facilityId;
34
35
  }
36
+ if (request.zoneId !== undefined) {
37
+ query["zone_id"] = request.zoneId;
38
+ }
35
39
  if (request.page !== undefined) {
36
40
  query["page"] = request.page;
37
41
  }
@@ -38,6 +38,9 @@ import {
38
38
  * @remarks
39
39
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
40
40
  *
41
+ * For a vendor, the list holds the active companies on the vendor's site: the companies the
42
+ * vendor can add as managing companies. Other callers see the companies they can view.
43
+ *
41
44
  * **Permissions.** Requires the `companies.view` permission.
42
45
  *
43
46
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -41,15 +41,16 @@ import {
41
41
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
42
42
  * The caller's role and their relationship to the record decide what the response includes.
43
43
  *
44
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
45
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
46
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
47
- * instead, in which `facility` and `department` are name strings, not ids; the server
48
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
49
- * shape it was generated against until you regenerate it.
44
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
45
+ * `event.department` scopes already applied, so the server populates `event_creator`,
46
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
47
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
48
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
49
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
50
+ * existing client keeps the shape it was generated against until you regenerate it.
50
51
  *
51
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
52
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
53
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
53
54
  * build against it.
54
55
  *
55
56
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -41,15 +41,16 @@ import {
41
41
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
42
42
  * the caller's role and their relationship to the record decide what the endpoint returns.
43
43
  *
44
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
45
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
46
- * populated—the appointment and the recipient this list has always named. This endpoint
47
- * takes no `expand` parameter; the endpoint always applies both scopes.
48
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
44
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
45
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
46
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
47
+ * populated with the recipient's name and thumbnail—what this list has always published. This
48
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
49
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
49
50
  * embeds the appointment.
50
51
  *
51
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
52
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
53
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
53
54
  * build compares against it.
54
55
  *
55
56
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -42,13 +42,14 @@ import {
42
42
  * the caller's role and their relationship to the record decide what the endpoint returns.
43
43
  *
44
44
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
45
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
46
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
47
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
45
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
46
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
47
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
48
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
48
49
  * `StandingAppointment` shape instead.
49
50
  *
50
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
51
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
51
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
52
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
52
53
  * build compares against it.
53
54
  *
54
55
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -43,6 +43,7 @@ import { Result } from "../types/fp.js";
43
43
  * - `facility.system`
44
44
  * - `facility.contacts`
45
45
  * - `facility.vendor_counts`
46
+ * - `facility.device_counts` (also requires `zone_devices.view`)
46
47
  * - `facility.appointment_policy`
47
48
  * - `facility.vendor_policy`
48
49
  * - `facility.vendor_guest_policy`
@@ -45,6 +45,7 @@ import {
45
45
  * - `facility.system`
46
46
  * - `facility.contacts`
47
47
  * - `facility.vendor_counts`
48
+ * - `facility.device_counts` (also requires `zone_devices.view`)
48
49
  * - `facility.appointment_policy`
49
50
  * - `facility.vendor_policy`
50
51
  * - `facility.vendor_guest_policy`
@@ -30,9 +30,16 @@ import { Result } from "../types/fp.js";
30
30
  * Add vendor managed by company
31
31
  *
32
32
  * @remarks
33
- * Adds a company as a manager of the vendor.
33
+ * Adds a company as a manager of the vendor. The new company starts with every access right
34
+ * turned off. The company must be on the same site as the vendor. Otherwise, the API returns
35
+ * `404`.
34
36
  *
35
- * **Permissions.** Requires the `vendors.edit` permission.
37
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
38
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
39
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
40
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
41
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
42
+ * than owning the vendor, gets a `403`, and so do facility and system users.
36
43
  *
37
44
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
38
45
  */
@@ -32,7 +32,13 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Creates vendor company
34
34
  *
35
- * **Permissions.** Requires the `companies.add` permission.
35
+ * **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
36
+ * into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
37
+ * Security administrator, or an app installed for the vendor's whole site. An app needs a
38
+ * site-wide installation because only a site-wide installation can create companies. An app
39
+ * installed only for a company or by a user gets a `403`, even when its API token can update the
40
+ * vendor. A company manager whose company manages the vendor through a managed-by-company link,
41
+ * rather than owning the vendor, gets a `403`, and so do facility and system users.
36
42
  *
37
43
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
38
44
  */
@@ -33,7 +33,15 @@ import { Result } from "../types/fp.js";
33
33
  * @remarks
34
34
  * Removes a company as a manager of the vendor.
35
35
  *
36
- * **Permissions.** Requires the `vendors.edit` permission.
36
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
37
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
38
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
39
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
40
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
41
+ * than owning the vendor, gets a `403`, and so do facility and system users.
42
+ *
43
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
44
+ * as for an ID that doesn't exist.
37
45
  *
38
46
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
39
47
  */
@@ -36,6 +36,10 @@ import { Result } from "../types/fp.js";
36
36
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
37
37
  * receives the files they personally uploaded on the vendor's behalf.
38
38
  *
39
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
40
+ * one who first submitted this version of the credential - everything else in the response
41
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
42
+ *
39
43
  * The following `expand` scopes are available:
40
44
  *
41
45
  * - `vendor_credential.credential`
@@ -40,6 +40,10 @@ import {
40
40
  *
41
41
  * **Permissions.** Requires the `vendor_credentials.view` permission.
42
42
  *
43
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
44
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
45
+ * from ones made by someone else with access to the same credential.
46
+ *
43
47
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
48
  */
45
49
  export function vendorsListVendorCredentialHistory(
@@ -40,7 +40,9 @@ import { Result } from "../types/fp.js";
40
40
  * Accepts a numeric vendor ID, `me` for the authenticated vendor,
41
41
  * or an active QR code (format: contains hyphens).
42
42
  *
43
- * **Permissions.** Requires the `vendors.edit` permission.
43
+ * **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
44
+ * manages the vendor through a managed-by-company link, rather than owning it, also needs that
45
+ * link's `may_edit_profile` access right, or the API returns `403`.
44
46
  *
45
47
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
46
48
  */
@@ -32,7 +32,16 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Updates the access rights that a company has for the vendor it manages.
34
34
  *
35
- * **Permissions.** Requires the `vendors.edit` permission.
35
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
36
+ * rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
37
+ * administrator, or an app whose API token can update the vendor (an app installed for the
38
+ * vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
39
+ * whose company manages the vendor through a managed-by-company link, rather than owning the
40
+ * vendor, gets a `403`: that company can't change its own access rights or another company's.
41
+ * Facility and system users get a `403` too.
42
+ *
43
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
44
+ * as for an ID that doesn't exist.
36
45
  *
37
46
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
38
47
  */
@@ -40,6 +40,7 @@ import { Result } from "../types/fp.js";
40
40
  * - `zone.facility`
41
41
  * - `zone.department`
42
42
  * - `zone.rules`
43
+ * - `zone.device_counts` (also requires `zone_devices.view`)
43
44
  *
44
45
  * The server ignores unrecognized values.
45
46
  *
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { GreenSecurityCore } from "../core.js";
6
- import { encodeFormQuery } from "../lib/encodings.js";
6
+ import { encodeFormQuery, queryJoin } from "../lib/encodings.js";
7
7
  import { matchStatusCode } from "../lib/http.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -40,6 +40,8 @@ import {
40
40
  *
41
41
  * **Permissions.** Requires the `zones.view` permission.
42
42
  *
43
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
44
+ *
43
45
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
46
  */
45
47
  export function zonesListOrSearchSecurityZones(
@@ -108,18 +110,23 @@ async function $do(
108
110
 
109
111
  const path = pathToFunc("/security_zones")();
110
112
 
111
- const query = encodeFormQuery({
112
- "contact_id": payload.contact_id,
113
- "desc": payload.desc,
114
- "facility_id": payload.facility_id,
115
- "green_location_id": payload.green_location_id,
116
- "items_per_page": payload.items_per_page,
117
- "latitude": payload.latitude,
118
- "longitude": payload.longitude,
119
- "name_like": payload.name_like,
120
- "page": payload.page,
121
- "sort": payload.sort,
122
- });
113
+ const query = queryJoin(
114
+ encodeFormQuery({
115
+ "expand": payload.expand,
116
+ }, { explode: false }),
117
+ encodeFormQuery({
118
+ "contact_id": payload.contact_id,
119
+ "desc": payload.desc,
120
+ "facility_id": payload.facility_id,
121
+ "green_location_id": payload.green_location_id,
122
+ "items_per_page": payload.items_per_page,
123
+ "latitude": payload.latitude,
124
+ "longitude": payload.longitude,
125
+ "name_like": payload.name_like,
126
+ "page": payload.page,
127
+ "sort": payload.sort,
128
+ }),
129
+ );
123
130
 
124
131
  const headers = new Headers(compactMap({
125
132
  Accept: "application/json",
@@ -40,6 +40,8 @@ import { smartBadgeGetPsks } from "./admin-funcs/smartBadgeGetPsks.js";
40
40
  import { smartBadgeReportVerifiedPsk } from "./admin-funcs/smartBadgeReportVerifiedPsk.js";
41
41
 
42
42
  import { notifyVendorCredentialFileUploaded } from "./admin-funcs/notifyVendorCredentialFileUploaded.js";
43
+ import { vendorCredentialGetFormLineItems } from "./admin-funcs/vendorCredentialGetFormLineItems.js";
44
+ import { vendorCredentialCreateFormQuote } from "./admin-funcs/vendorCredentialCreateFormQuote.js";
43
45
  import { companyManagerGetPaymentForm } from "./admin-funcs/companyManagerGetPaymentForm.js";
44
46
  import { vendorGetPaymentForm } from "./admin-funcs/vendorGetPaymentForm.js";
45
47
  import { vendorGetSystemsRequiringSmartBadge } from "./admin-funcs/vendorGetSystemsRequiringSmartBadge.js";
@@ -57,6 +59,11 @@ import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
57
59
  import { appsListInstalledApps } from "./admin-funcs/appsListInstalledApps.js";
58
60
  import { appsExchangeToken } from "./admin-funcs/appsExchangeToken.js";
59
61
  import { appsApproveDevice } from "./admin-funcs/appsApproveDevice.js";
62
+ import { networksList } from "./admin-funcs/networksList.js";
63
+ import { networksGet } from "./admin-funcs/networksGet.js";
64
+ import { networksCreate } from "./admin-funcs/networksCreate.js";
65
+ import { zoneDevicesList } from "./admin-funcs/zoneDevicesList.js";
66
+ import { zoneDevicesGet } from "./admin-funcs/zoneDevicesGet.js";
60
67
 
61
68
  // Third-party app platform contract (surfaces, manifest, host/sandbox protocol, components).
62
69
  export * as apps from "./apps/index.js";
@@ -120,6 +127,11 @@ export const __internal = {
120
127
  notifyUploaded: notifyVendorCredentialFileUploaded
121
128
  },
122
129
 
130
+ vendorCredential: {
131
+ getFormLineItems: vendorCredentialGetFormLineItems,
132
+ createFormQuote: vendorCredentialCreateFormQuote
133
+ },
134
+
123
135
  communications: {
124
136
  list: listCommunications,
125
137
  dismiss: dismissCommunication
@@ -153,5 +165,18 @@ export const __internal = {
153
165
  createZoneDevice: kioskCreateZoneDevice,
154
166
  createEvent: kioskCreateEvent,
155
167
  heartbeat: kioskHeartbeat
168
+ },
169
+
170
+ // Gatekeeper provisioning: the network a facility's devices join, and the
171
+ // inventory of the devices themselves.
172
+ networks: {
173
+ list: networksList,
174
+ get: networksGet,
175
+ create: networksCreate
176
+ },
177
+
178
+ zoneDevices: {
179
+ list: zoneDevicesList,
180
+ get: zoneDevicesGet
156
181
  }
157
182
  };
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.45.0",
83
- sdkVersion: "0.46.0-beta.6",
84
- genVersion: "2.941.0",
83
+ sdkVersion: "0.46.0-beta.8",
84
+ genVersion: "2.943.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.46.0-beta.6 2.941.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.46.0-beta.8 2.943.0 0.45.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -60,6 +60,10 @@ export type AuthenticateSuccessResponseInventoryManager = {};
60
60
  * and the login therefore has a SAML flow waiting to be finished.
61
61
  */
62
62
  export type AuthenticateSuccessResponse = {
63
+ /**
64
+ * Whether the user may manage zone devices (the `zone_devices.view` permission, which the Zone Device Managers role grants). Returned only when the caller requests their own record.
65
+ */
66
+ canManageZoneDevices?: boolean | undefined;
63
67
  /**
64
68
  * Whether the user is a `gatekeeper`, a special type of service user assigned to Kiosks and Apps to verify vendors using APIs that have some access to facility data.
65
69
  */
@@ -174,6 +178,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
174
178
  z.ZodTypeDef,
175
179
  unknown
176
180
  > = z.object({
181
+ can_manage_zone_devices: types.optional(types.boolean()),
177
182
  is_gatekeeper: types.optional(types.boolean()),
178
183
  success: types.boolean(),
179
184
  user: UserDetails$inboundSchema,
@@ -187,6 +192,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
187
192
  sso: types.optional(SsoContinuation$inboundSchema),
188
193
  }).transform((v) => {
189
194
  return remap$(v, {
195
+ "can_manage_zone_devices": "canManageZoneDevices",
190
196
  "is_gatekeeper": "isGatekeeper",
191
197
  "user_token": "userToken",
192
198
  "inventory_manager": "inventoryManager",
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * How many devices of one kind exist, and how many of those are active.
13
+ */
14
+ export type DeviceCountPair = {
15
+ /**
16
+ * Every device of this kind.
17
+ */
18
+ total: number;
19
+ /**
20
+ * Devices that reported in recently. A gateway is active if it was seen in the last 5 minutes, and a kiosk is active if any of its devices pinged in the last 2 minutes.
21
+ */
22
+ active: number;
23
+ };
24
+
25
+ /** @internal */
26
+ export const DeviceCountPair$inboundSchema: z.ZodType<
27
+ DeviceCountPair,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ total: types.number(),
32
+ active: types.number(),
33
+ });
34
+ /** @internal */
35
+ export type DeviceCountPair$Outbound = {
36
+ total: number;
37
+ active: number;
38
+ };
39
+
40
+ /** @internal */
41
+ export const DeviceCountPair$outboundSchema: z.ZodType<
42
+ DeviceCountPair$Outbound,
43
+ z.ZodTypeDef,
44
+ DeviceCountPair
45
+ > = z.object({
46
+ total: z.number().int(),
47
+ active: z.number().int(),
48
+ });
49
+
50
+ export function deviceCountPairToJSON(
51
+ deviceCountPair: DeviceCountPair,
52
+ ): string {
53
+ return JSON.stringify(DeviceCountPair$outboundSchema.parse(deviceCountPair));
54
+ }
55
+ export function deviceCountPairFromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<DeviceCountPair, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => DeviceCountPair$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'DeviceCountPair' from JSON`,
62
+ );
63
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ DeviceCountPair,
11
+ DeviceCountPair$inboundSchema,
12
+ DeviceCountPair$Outbound,
13
+ DeviceCountPair$outboundSchema,
14
+ } from "./devicecountpair.js";
15
+
16
+ /**
17
+ * Gateway and iPad kiosk totals, counted the same way as the zone devices inventory.
18
+ */
19
+ export type DeviceCounts = {
20
+ /**
21
+ * How many devices of one kind exist, and how many of those are active.
22
+ */
23
+ gateways: DeviceCountPair;
24
+ /**
25
+ * How many devices of one kind exist, and how many of those are active.
26
+ */
27
+ kiosks: DeviceCountPair;
28
+ };
29
+
30
+ /** @internal */
31
+ export const DeviceCounts$inboundSchema: z.ZodType<
32
+ DeviceCounts,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ gateways: DeviceCountPair$inboundSchema,
37
+ kiosks: DeviceCountPair$inboundSchema,
38
+ });
39
+ /** @internal */
40
+ export type DeviceCounts$Outbound = {
41
+ gateways: DeviceCountPair$Outbound;
42
+ kiosks: DeviceCountPair$Outbound;
43
+ };
44
+
45
+ /** @internal */
46
+ export const DeviceCounts$outboundSchema: z.ZodType<
47
+ DeviceCounts$Outbound,
48
+ z.ZodTypeDef,
49
+ DeviceCounts
50
+ > = z.object({
51
+ gateways: DeviceCountPair$outboundSchema,
52
+ kiosks: DeviceCountPair$outboundSchema,
53
+ });
54
+
55
+ export function deviceCountsToJSON(deviceCounts: DeviceCounts): string {
56
+ return JSON.stringify(DeviceCounts$outboundSchema.parse(deviceCounts));
57
+ }
58
+ export function deviceCountsFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<DeviceCounts, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => DeviceCounts$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'DeviceCounts' from JSON`,
65
+ );
66
+ }
@@ -44,11 +44,11 @@ export type Department2 = {
44
44
  export type EventDepartment = Department2 | number;
45
45
 
46
46
  /**
47
- * An appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.55.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
47
+ * An appointment, in the shape served to SDK builds `0.46.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.46.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
48
48
  *
49
49
  * @remarks
50
50
  *
51
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release—`0.55.0-alpha.1`—does not.
51
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.46.0-beta.1` itself, every later prerelease (`0.46.0-beta.2`, `0.46.0-rc.1`) and every release from `0.46.0` up receive this shape, while an earlier prerelease of the same release—`0.46.0-alpha.1`—does not.
52
52
  */
53
53
  export type Event = {
54
54
  /**
@@ -26,6 +26,7 @@ export const Expand = {
26
26
  FacilityAppointmentPolicy: "facility.appointment_policy",
27
27
  FacilityContacts: "facility.contacts",
28
28
  FacilityVendorCounts: "facility.vendor_counts",
29
+ FacilityDeviceCounts: "facility.device_counts",
29
30
  FacilityFluCredential: "facility.flu_credential",
30
31
  FacilityScrubsPolicy: "facility.scrubs_policy",
31
32
  FacilitySystem: "facility.system",
@@ -126,6 +127,7 @@ export const Expand = {
126
127
  ZoneFacility: "zone.facility",
127
128
  ZoneDepartment: "zone.department",
128
129
  ZoneRules: "zone.rules",
130
+ ZoneDeviceCounts: "zone.device_counts",
129
131
  SystemFacilities: "system.facilities",
130
132
  SystemLocation: "system.location",
131
133
  SystemAggregate: "system.aggregate",