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

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 (432) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js +5 -4
  4. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +10 -12
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +0 -1
  8. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  9. package/dist/commonjs/admin-funcs/zoneDevicesList.js +0 -3
  10. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
  11. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +0 -3
  12. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/companiesLookupCompanies.js +0 -3
  14. package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
  15. package/dist/commonjs/funcs/eventsListFeed.d.ts +8 -9
  16. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/eventsListFeed.js +8 -9
  18. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +7 -8
  20. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.js +7 -8
  22. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  23. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +5 -6
  24. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.js +5 -6
  26. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  27. package/dist/commonjs/funcs/organizationsGetFacility.d.ts +0 -1
  28. package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/organizationsGetFacility.js +0 -1
  30. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  31. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
  32. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  33. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +0 -1
  34. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  35. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
  36. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -9
  38. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  39. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -7
  40. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +1 -7
  42. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  43. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  44. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  45. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
  46. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  47. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
  48. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  49. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +1 -3
  50. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  51. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  52. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
  54. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  55. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +0 -1
  56. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  57. package/dist/commonjs/funcs/zonesGetSecurityZone.js +0 -1
  58. package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
  59. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
  60. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  61. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +2 -6
  62. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  63. package/dist/commonjs/index.extras.d.ts +0 -14
  64. package/dist/commonjs/index.extras.d.ts.map +1 -1
  65. package/dist/commonjs/index.extras.js +0 -16
  66. package/dist/commonjs/index.extras.js.map +1 -1
  67. package/dist/commonjs/lib/config.d.ts +4 -4
  68. package/dist/commonjs/lib/config.js +4 -4
  69. package/dist/commonjs/lib/config.js.map +1 -1
  70. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +0 -4
  71. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/authenticatesuccessresponse.js +0 -2
  73. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
  74. package/dist/commonjs/models/components/event.d.ts +2 -2
  75. package/dist/commonjs/models/components/expand.d.ts +0 -2
  76. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/expand.js +0 -2
  78. package/dist/commonjs/models/components/expand.js.map +1 -1
  79. package/dist/commonjs/models/components/facility.d.ts +0 -6
  80. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/facility.js +0 -5
  82. package/dist/commonjs/models/components/facility.js.map +1 -1
  83. package/dist/commonjs/models/components/index.d.ts +0 -2
  84. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  85. package/dist/commonjs/models/components/index.js +0 -2
  86. package/dist/commonjs/models/components/index.js.map +1 -1
  87. package/dist/commonjs/models/components/invite.d.ts +4 -40
  88. package/dist/commonjs/models/components/invite.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/invite.js +0 -20
  90. package/dist/commonjs/models/components/invite.js.map +1 -1
  91. package/dist/commonjs/models/components/user.d.ts +0 -4
  92. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/user.js +0 -2
  94. package/dist/commonjs/models/components/user.js.map +1 -1
  95. package/dist/commonjs/models/components/zone.d.ts +0 -6
  96. package/dist/commonjs/models/components/zone.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/zone.js +0 -5
  98. package/dist/commonjs/models/components/zone.js.map +1 -1
  99. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +0 -5
  100. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  101. package/dist/commonjs/models/operations/listorsearchsecurityzones.js +0 -1
  102. package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
  103. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +0 -12
  104. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
  105. package/dist/commonjs/react-query/companiesLookupCompanies.js +0 -12
  106. package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
  107. package/dist/commonjs/react-query/eventsListFeed.d.ts +33 -37
  108. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  109. package/dist/commonjs/react-query/eventsListFeed.js +33 -37
  110. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  111. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +28 -32
  112. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  113. package/dist/commonjs/react-query/eventsListPendingInvitations.js +28 -32
  114. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  115. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +20 -24
  116. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  117. package/dist/commonjs/react-query/eventsListStandingAppointments.js +20 -24
  118. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  119. package/dist/commonjs/react-query/organizationsGetFacility.d.ts +0 -2
  120. package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
  121. package/dist/commonjs/react-query/organizationsGetFacility.js +0 -2
  122. package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
  123. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
  124. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  125. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +0 -4
  126. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  127. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
  128. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  129. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +2 -9
  130. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  131. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +1 -7
  132. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  133. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +1 -7
  134. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  135. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  136. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  137. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
  138. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  139. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
  140. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  141. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +1 -3
  142. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  143. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  144. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  145. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
  146. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  147. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +0 -2
  148. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  149. package/dist/commonjs/react-query/zonesGetSecurityZone.js +0 -2
  150. package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
  151. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
  152. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  153. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
  154. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  155. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
  156. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  157. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +0 -8
  158. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  159. package/dist/commonjs/sdk/companies.d.ts +0 -3
  160. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  161. package/dist/commonjs/sdk/companies.js +0 -3
  162. package/dist/commonjs/sdk/companies.js.map +1 -1
  163. package/dist/commonjs/sdk/events.d.ts +20 -23
  164. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  165. package/dist/commonjs/sdk/events.js +20 -23
  166. package/dist/commonjs/sdk/events.js.map +1 -1
  167. package/dist/commonjs/sdk/organizations.d.ts +0 -2
  168. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  169. package/dist/commonjs/sdk/organizations.js +0 -2
  170. package/dist/commonjs/sdk/organizations.js.map +1 -1
  171. package/dist/commonjs/sdk/vendors.d.ts +6 -38
  172. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  173. package/dist/commonjs/sdk/vendors.js +7 -39
  174. package/dist/commonjs/sdk/vendors.js.map +1 -1
  175. package/dist/commonjs/sdk/zones.d.ts +0 -3
  176. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  177. package/dist/commonjs/sdk/zones.js +0 -3
  178. package/dist/commonjs/sdk/zones.js.map +1 -1
  179. package/dist/esm/__tests__/vendors.test.js +1 -1
  180. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  181. package/dist/esm/__tests__/webhooks.test.js +5 -4
  182. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  183. package/dist/esm/__tests__/zones.test.js +10 -12
  184. package/dist/esm/__tests__/zones.test.js.map +1 -1
  185. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +0 -1
  186. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  187. package/dist/esm/admin-funcs/zoneDevicesList.js +0 -3
  188. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
  189. package/dist/esm/funcs/companiesLookupCompanies.d.ts +0 -3
  190. package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
  191. package/dist/esm/funcs/companiesLookupCompanies.js +0 -3
  192. package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
  193. package/dist/esm/funcs/eventsListFeed.d.ts +8 -9
  194. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  195. package/dist/esm/funcs/eventsListFeed.js +8 -9
  196. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  197. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +7 -8
  198. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  199. package/dist/esm/funcs/eventsListPendingInvitations.js +7 -8
  200. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  201. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +5 -6
  202. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  203. package/dist/esm/funcs/eventsListStandingAppointments.js +5 -6
  204. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  205. package/dist/esm/funcs/organizationsGetFacility.d.ts +0 -1
  206. package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
  207. package/dist/esm/funcs/organizationsGetFacility.js +0 -1
  208. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  209. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
  210. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  211. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +0 -1
  212. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  213. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
  214. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  215. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -9
  216. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  217. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -7
  218. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  219. package/dist/esm/funcs/vendorsCreateVendorCompany.js +1 -7
  220. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  221. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  222. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  223. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
  224. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  225. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
  226. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  227. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +1 -3
  228. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  229. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  230. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  231. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
  232. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  233. package/dist/esm/funcs/zonesGetSecurityZone.d.ts +0 -1
  234. package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  235. package/dist/esm/funcs/zonesGetSecurityZone.js +0 -1
  236. package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
  237. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
  238. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  239. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +3 -7
  240. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  241. package/dist/esm/index.extras.d.ts +0 -14
  242. package/dist/esm/index.extras.d.ts.map +1 -1
  243. package/dist/esm/index.extras.js +0 -16
  244. package/dist/esm/index.extras.js.map +1 -1
  245. package/dist/esm/lib/config.d.ts +4 -4
  246. package/dist/esm/lib/config.js +4 -4
  247. package/dist/esm/lib/config.js.map +1 -1
  248. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +0 -4
  249. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  250. package/dist/esm/models/components/authenticatesuccessresponse.js +0 -2
  251. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
  252. package/dist/esm/models/components/event.d.ts +2 -2
  253. package/dist/esm/models/components/expand.d.ts +0 -2
  254. package/dist/esm/models/components/expand.d.ts.map +1 -1
  255. package/dist/esm/models/components/expand.js +0 -2
  256. package/dist/esm/models/components/expand.js.map +1 -1
  257. package/dist/esm/models/components/facility.d.ts +0 -6
  258. package/dist/esm/models/components/facility.d.ts.map +1 -1
  259. package/dist/esm/models/components/facility.js +0 -5
  260. package/dist/esm/models/components/facility.js.map +1 -1
  261. package/dist/esm/models/components/index.d.ts +0 -2
  262. package/dist/esm/models/components/index.d.ts.map +1 -1
  263. package/dist/esm/models/components/index.js +0 -2
  264. package/dist/esm/models/components/index.js.map +1 -1
  265. package/dist/esm/models/components/invite.d.ts +4 -40
  266. package/dist/esm/models/components/invite.d.ts.map +1 -1
  267. package/dist/esm/models/components/invite.js +0 -20
  268. package/dist/esm/models/components/invite.js.map +1 -1
  269. package/dist/esm/models/components/user.d.ts +0 -4
  270. package/dist/esm/models/components/user.d.ts.map +1 -1
  271. package/dist/esm/models/components/user.js +0 -2
  272. package/dist/esm/models/components/user.js.map +1 -1
  273. package/dist/esm/models/components/zone.d.ts +0 -6
  274. package/dist/esm/models/components/zone.d.ts.map +1 -1
  275. package/dist/esm/models/components/zone.js +0 -5
  276. package/dist/esm/models/components/zone.js.map +1 -1
  277. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +0 -5
  278. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  279. package/dist/esm/models/operations/listorsearchsecurityzones.js +0 -1
  280. package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
  281. package/dist/esm/react-query/companiesLookupCompanies.d.ts +0 -12
  282. package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
  283. package/dist/esm/react-query/companiesLookupCompanies.js +0 -12
  284. package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
  285. package/dist/esm/react-query/eventsListFeed.d.ts +33 -37
  286. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  287. package/dist/esm/react-query/eventsListFeed.js +33 -37
  288. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  289. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +28 -32
  290. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  291. package/dist/esm/react-query/eventsListPendingInvitations.js +28 -32
  292. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  293. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +20 -24
  294. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  295. package/dist/esm/react-query/eventsListStandingAppointments.js +20 -24
  296. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  297. package/dist/esm/react-query/organizationsGetFacility.d.ts +0 -2
  298. package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
  299. package/dist/esm/react-query/organizationsGetFacility.js +0 -2
  300. package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
  301. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
  302. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  303. package/dist/esm/react-query/organizationsListOrSearchFacilities.js +0 -4
  304. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  305. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
  306. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  307. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +2 -9
  308. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  309. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +1 -7
  310. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  311. package/dist/esm/react-query/vendorsCreateVendorCompany.js +1 -7
  312. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  313. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  314. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  315. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
  316. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  317. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
  318. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  319. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +1 -3
  320. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  321. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  322. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  323. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
  324. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  325. package/dist/esm/react-query/zonesGetSecurityZone.d.ts +0 -2
  326. package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  327. package/dist/esm/react-query/zonesGetSecurityZone.js +0 -2
  328. package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
  329. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
  330. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  331. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
  332. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  333. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
  334. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  335. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +0 -8
  336. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  337. package/dist/esm/sdk/companies.d.ts +0 -3
  338. package/dist/esm/sdk/companies.d.ts.map +1 -1
  339. package/dist/esm/sdk/companies.js +0 -3
  340. package/dist/esm/sdk/companies.js.map +1 -1
  341. package/dist/esm/sdk/events.d.ts +20 -23
  342. package/dist/esm/sdk/events.d.ts.map +1 -1
  343. package/dist/esm/sdk/events.js +20 -23
  344. package/dist/esm/sdk/events.js.map +1 -1
  345. package/dist/esm/sdk/organizations.d.ts +0 -2
  346. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  347. package/dist/esm/sdk/organizations.js +0 -2
  348. package/dist/esm/sdk/organizations.js.map +1 -1
  349. package/dist/esm/sdk/vendors.d.ts +6 -38
  350. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  351. package/dist/esm/sdk/vendors.js +7 -39
  352. package/dist/esm/sdk/vendors.js.map +1 -1
  353. package/dist/esm/sdk/zones.d.ts +0 -3
  354. package/dist/esm/sdk/zones.d.ts.map +1 -1
  355. package/dist/esm/sdk/zones.js +0 -3
  356. package/dist/esm/sdk/zones.js.map +1 -1
  357. package/jsr.json +1 -1
  358. package/package.json +1 -1
  359. package/src/__tests__/vendors.test.ts +1 -1
  360. package/src/__tests__/webhooks.test.ts +5 -4
  361. package/src/__tests__/zones.test.ts +10 -12
  362. package/src/admin-funcs/zoneDevicesList.ts +0 -4
  363. package/src/funcs/companiesLookupCompanies.ts +0 -3
  364. package/src/funcs/eventsListFeed.ts +8 -9
  365. package/src/funcs/eventsListPendingInvitations.ts +7 -8
  366. package/src/funcs/eventsListStandingAppointments.ts +5 -6
  367. package/src/funcs/organizationsGetFacility.ts +0 -1
  368. package/src/funcs/organizationsListOrSearchFacilities.ts +0 -1
  369. package/src/funcs/vendorsAddVendorManagedByCompany.ts +2 -9
  370. package/src/funcs/vendorsCreateVendorCompany.ts +1 -7
  371. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +1 -9
  372. package/src/funcs/vendorsUpdateVendorCustomField.ts +1 -3
  373. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +1 -10
  374. package/src/funcs/zonesGetSecurityZone.ts +0 -1
  375. package/src/funcs/zonesListOrSearchSecurityZones.ts +13 -20
  376. package/src/index.extras.ts +0 -18
  377. package/src/lib/config.ts +4 -4
  378. package/src/models/components/authenticatesuccessresponse.ts +0 -6
  379. package/src/models/components/event.ts +2 -2
  380. package/src/models/components/expand.ts +0 -2
  381. package/src/models/components/facility.ts +0 -15
  382. package/src/models/components/index.ts +0 -2
  383. package/src/models/components/invite.ts +4 -60
  384. package/src/models/components/user.ts +0 -6
  385. package/src/models/components/zone.ts +0 -15
  386. package/src/models/operations/listorsearchsecurityzones.ts +0 -6
  387. package/src/react-query/companiesLookupCompanies.ts +0 -12
  388. package/src/react-query/eventsListFeed.ts +32 -36
  389. package/src/react-query/eventsListPendingInvitations.ts +28 -32
  390. package/src/react-query/eventsListStandingAppointments.ts +20 -24
  391. package/src/react-query/organizationsGetFacility.ts +0 -2
  392. package/src/react-query/organizationsListOrSearchFacilities.ts +0 -4
  393. package/src/react-query/vendorsAddVendorManagedByCompany.ts +2 -9
  394. package/src/react-query/vendorsCreateVendorCompany.ts +1 -7
  395. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +1 -9
  396. package/src/react-query/vendorsUpdateVendorCustomField.ts +1 -3
  397. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +1 -10
  398. package/src/react-query/zonesGetSecurityZone.ts +0 -2
  399. package/src/react-query/zonesListOrSearchSecurityZones.core.ts +0 -4
  400. package/src/react-query/zonesListOrSearchSecurityZones.ts +0 -10
  401. package/src/sdk/companies.ts +0 -3
  402. package/src/sdk/events.ts +20 -23
  403. package/src/sdk/organizations.ts +0 -2
  404. package/src/sdk/vendors.ts +7 -39
  405. package/src/sdk/zones.ts +0 -3
  406. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +0 -2
  407. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +0 -1
  408. package/dist/commonjs/__tests__/zoneDevicesList.test.js +0 -31
  409. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +0 -1
  410. package/dist/commonjs/models/components/devicecountpair.d.ts +0 -28
  411. package/dist/commonjs/models/components/devicecountpair.d.ts.map +0 -1
  412. package/dist/commonjs/models/components/devicecountpair.js +0 -61
  413. package/dist/commonjs/models/components/devicecountpair.js.map +0 -1
  414. package/dist/commonjs/models/components/devicecounts.d.ts +0 -29
  415. package/dist/commonjs/models/components/devicecounts.d.ts.map +0 -1
  416. package/dist/commonjs/models/components/devicecounts.js +0 -61
  417. package/dist/commonjs/models/components/devicecounts.js.map +0 -1
  418. package/dist/esm/__tests__/zoneDevicesList.test.d.ts +0 -2
  419. package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +0 -1
  420. package/dist/esm/__tests__/zoneDevicesList.test.js +0 -29
  421. package/dist/esm/__tests__/zoneDevicesList.test.js.map +0 -1
  422. package/dist/esm/models/components/devicecountpair.d.ts +0 -28
  423. package/dist/esm/models/components/devicecountpair.d.ts.map +0 -1
  424. package/dist/esm/models/components/devicecountpair.js +0 -23
  425. package/dist/esm/models/components/devicecountpair.js.map +0 -1
  426. package/dist/esm/models/components/devicecounts.d.ts +0 -29
  427. package/dist/esm/models/components/devicecounts.d.ts.map +0 -1
  428. package/dist/esm/models/components/devicecounts.js +0 -23
  429. package/dist/esm/models/components/devicecounts.js.map +0 -1
  430. package/src/__tests__/zoneDevicesList.test.ts +0 -37
  431. package/src/models/components/devicecountpair.ts +0 -63
  432. package/src/models/components/devicecounts.ts +0 -66
@@ -78,8 +78,6 @@ export type ZonesListOrSearchSecurityZonesQueryError =
78
78
  * Lists or searches security zones
79
79
  *
80
80
  * **Permissions.** Requires the `zones.view` permission.
81
- *
82
- * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
83
81
  */
84
82
  export function useZonesListOrSearchSecurityZones(
85
83
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -109,8 +107,6 @@ export function useZonesListOrSearchSecurityZones(
109
107
  * Lists or searches security zones
110
108
  *
111
109
  * **Permissions.** Requires the `zones.view` permission.
112
- *
113
- * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
114
110
  */
115
111
  export function useZonesListOrSearchSecurityZonesSuspense(
116
112
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -140,8 +136,6 @@ export function useZonesListOrSearchSecurityZonesSuspense(
140
136
  * Lists or searches security zones
141
137
  *
142
138
  * **Permissions.** Requires the `zones.view` permission.
143
- *
144
- * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
145
139
  */
146
140
  export function useZonesListOrSearchSecurityZonesInfinite(
147
141
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -185,8 +179,6 @@ export function useZonesListOrSearchSecurityZonesInfinite(
185
179
  * Lists or searches security zones
186
180
  *
187
181
  * **Permissions.** Requires the `zones.view` permission.
188
- *
189
- * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
190
182
  */
191
183
  export function useZonesListOrSearchSecurityZonesInfiniteSuspense(
192
184
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -234,7 +226,6 @@ export function setZonesListOrSearchSecurityZonesData(
234
226
  latitude?: number | undefined;
235
227
  longitude?: number | undefined;
236
228
  nameLike?: string | undefined;
237
- expand?: Array<components.Expand> | undefined;
238
229
  contactId?: number | undefined;
239
230
  facilityId?: number | undefined;
240
231
  greenLocationId?: number | undefined;
@@ -261,7 +252,6 @@ export function invalidateZonesListOrSearchSecurityZones(
261
252
  latitude?: number | undefined;
262
253
  longitude?: number | undefined;
263
254
  nameLike?: string | undefined;
264
- expand?: Array<components.Expand> | undefined;
265
255
  contactId?: number | undefined;
266
256
  facilityId?: number | undefined;
267
257
  greenLocationId?: number | undefined;
@@ -77,9 +77,6 @@ export class Companies extends ClientSDK {
77
77
  * @remarks
78
78
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
79
79
  *
80
- * For a vendor, the list holds the active companies on the vendor's site: the companies the
81
- * vendor can add as managing companies. Other callers see the companies they can view.
82
- *
83
80
  * **Permissions.** Requires the `companies.view` permission.
84
81
  */
85
82
  async lookupCompanies(
package/src/sdk/events.ts CHANGED
@@ -210,16 +210,15 @@ export class Events extends ClientSDK {
210
210
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
211
211
  * the caller's role and their relationship to the record decide what the endpoint returns.
212
212
  *
213
- * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
214
- * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
215
- * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
216
- * populated with the recipient's name and thumbnail—what this list has always published. This
217
- * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
218
- * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
213
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
214
+ * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
215
+ * populated—the appointment and the recipient this list has always named. This endpoint
216
+ * takes no `expand` parameter; the endpoint always applies both scopes.
217
+ * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
219
218
  * embeds the appointment.
220
219
  *
221
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
222
- * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
220
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
221
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
223
222
  * build compares against it.
224
223
  */
225
224
  async listPendingInvitations(
@@ -244,16 +243,15 @@ export class Events extends ClientSDK {
244
243
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
245
244
  * The caller's role and their relationship to the record decide what the response includes.
246
245
  *
247
- * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
248
- * `event.department` scopes already applied, so the server populates `event_creator`,
249
- * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
250
- * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
251
- * receive the older `Feed` shape instead, in which `facility` and `department` are name
252
- * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
253
- * existing client keeps the shape it was generated against until you regenerate it.
246
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
247
+ * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
248
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
249
+ * instead, in which `facility` and `department` are name strings, not ids; the server
250
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
251
+ * shape it was generated against until you regenerate it.
254
252
  *
255
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
256
- * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
253
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
254
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
257
255
  * build against it.
258
256
  */
259
257
  async listFeed(
@@ -277,14 +275,13 @@ export class Events extends ClientSDK {
277
275
  * the caller's role and their relationship to the record decide what the endpoint returns.
278
276
  *
279
277
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
280
- * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
281
- * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
282
- * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
283
- * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
278
+ * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
279
+ * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
280
+ * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
284
281
  * `StandingAppointment` shape instead.
285
282
  *
286
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
287
- * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
283
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
284
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
288
285
  * build compares against it.
289
286
  */
290
287
  async listStandingAppointments(
@@ -36,7 +36,6 @@ export class Organizations extends ClientSDK {
36
36
  * - `facility.system`
37
37
  * - `facility.contacts`
38
38
  * - `facility.vendor_counts`
39
- * - `facility.device_counts` (also requires `zone_devices.view`)
40
39
  * - `facility.appointment_policy`
41
40
  * - `facility.vendor_policy`
42
41
  * - `facility.vendor_guest_policy`
@@ -76,7 +75,6 @@ export class Organizations extends ClientSDK {
76
75
  * - `facility.system`
77
76
  * - `facility.contacts`
78
77
  * - `facility.vendor_counts`
79
- * - `facility.device_counts` (also requires `zone_devices.view`)
80
78
  * - `facility.appointment_policy`
81
79
  * - `facility.vendor_policy`
82
80
  * - `facility.vendor_guest_policy`
@@ -1152,9 +1152,7 @@ export class Vendors extends ClientSDK {
1152
1152
  * Accepts a numeric vendor ID, `me` for the authenticated vendor,
1153
1153
  * or an active QR code (format: contains hyphens).
1154
1154
  *
1155
- * **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
1156
- * manages the vendor through a managed-by-company link, rather than owning it, also needs that
1157
- * link's `may_edit_profile` access right, or the API returns `403`.
1155
+ * **Permissions.** Requires the `vendors.edit` permission.
1158
1156
  */
1159
1157
  async updateVendorCustomField(
1160
1158
  request: operations.UpdateVendorCustomFieldRequest,
@@ -1195,16 +1193,9 @@ export class Vendors extends ClientSDK {
1195
1193
  * Add vendor managed by company
1196
1194
  *
1197
1195
  * @remarks
1198
- * Adds a company as a manager of the vendor. The new company starts with every access right
1199
- * turned off. The company must be on the same site as the vendor. Otherwise, the API returns
1200
- * `404`.
1201
- *
1202
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
1203
- * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
1204
- * a Green Security administrator, or an app whose API token can update the vendor (an app
1205
- * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
1206
- * A company manager whose company manages the vendor through a managed-by-company link, rather
1207
- * than owning the vendor, gets a `403`, and so do facility and system users.
1196
+ * Adds a company as a manager of the vendor.
1197
+ *
1198
+ * **Permissions.** Requires the `vendors.edit` permission.
1208
1199
  */
1209
1200
  async addVendorManagedByCompany(
1210
1201
  request: operations.AddVendorManagedByCompanyRequest,
@@ -1223,15 +1214,7 @@ export class Vendors extends ClientSDK {
1223
1214
  * @remarks
1224
1215
  * Removes a company as a manager of the vendor.
1225
1216
  *
1226
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
1227
- * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
1228
- * a Green Security administrator, or an app whose API token can update the vendor (an app
1229
- * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
1230
- * A company manager whose company manages the vendor through a managed-by-company link, rather
1231
- * than owning the vendor, gets a `403`, and so do facility and system users.
1232
- *
1233
- * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
1234
- * as for an ID that doesn't exist.
1217
+ * **Permissions.** Requires the `vendors.edit` permission.
1235
1218
  */
1236
1219
  async deleteVendorManagedByCompany(
1237
1220
  request: operations.DeleteVendorManagedByCompanyRequest,
@@ -1250,16 +1233,7 @@ export class Vendors extends ClientSDK {
1250
1233
  * @remarks
1251
1234
  * Updates the access rights that a company has for the vendor it manages.
1252
1235
  *
1253
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
1254
- * rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
1255
- * administrator, or an app whose API token can update the vendor (an app installed for the
1256
- * vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
1257
- * whose company manages the vendor through a managed-by-company link, rather than owning the
1258
- * vendor, gets a `403`: that company can't change its own access rights or another company's.
1259
- * Facility and system users get a `403` too.
1260
- *
1261
- * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
1262
- * as for an ID that doesn't exist.
1236
+ * **Permissions.** Requires the `vendors.edit` permission.
1263
1237
  */
1264
1238
  async updateVendorManagedByCompany(
1265
1239
  request: operations.UpdateVendorManagedByCompanyRequest,
@@ -1403,13 +1377,7 @@ export class Vendors extends ClientSDK {
1403
1377
  * @remarks
1404
1378
  * Creates vendor company
1405
1379
  *
1406
- * **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
1407
- * into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
1408
- * Security administrator, or an app installed for the vendor's whole site. An app needs a
1409
- * site-wide installation because only a site-wide installation can create companies. An app
1410
- * installed only for a company or by a user gets a `403`, even when its API token can update the
1411
- * vendor. A company manager whose company manages the vendor through a managed-by-company link,
1412
- * rather than owning the vendor, gets a `403`, and so do facility and system users.
1380
+ * **Permissions.** Requires the `companies.add` permission.
1413
1381
  */
1414
1382
  async createVendorCompany(
1415
1383
  request: operations.CreateVendorCompanyRequest,
package/src/sdk/zones.ts CHANGED
@@ -19,8 +19,6 @@ export class Zones extends ClientSDK {
19
19
  * Lists or searches security zones
20
20
  *
21
21
  * **Permissions.** Requires the `zones.view` permission.
22
- *
23
- * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
24
22
  */
25
23
  async listOrSearchSecurityZones(
26
24
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -48,7 +46,6 @@ export class Zones extends ClientSDK {
48
46
  * - `zone.facility`
49
47
  * - `zone.department`
50
48
  * - `zone.rules`
51
- * - `zone.device_counts` (also requires `zone_devices.view`)
52
49
  *
53
50
  * The server ignores unrecognized values.
54
51
  */
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=zoneDevicesList.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoneDevicesList.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/zoneDevicesList.test.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const vitest_1 = require("vitest");
4
- const { doGetSingleMock } = vitest_1.vi.hoisted(() => ({
5
- doGetSingleMock: vitest_1.vi.fn((_route, _query) => Promise.resolve([{ ok: true }, { status: "complete" }])),
6
- }));
7
- vitest_1.vi.mock("../admin-funcs/doAdmin.js", () => ({
8
- $doGetSingle: doGetSingleMock,
9
- }));
10
- const networksCreate_js_1 = require("../admin-funcs/networksCreate.js");
11
- const networksGet_js_1 = require("../admin-funcs/networksGet.js");
12
- const networksList_js_1 = require("../admin-funcs/networksList.js");
13
- const zoneDevicesGet_js_1 = require("../admin-funcs/zoneDevicesGet.js");
14
- const zoneDevicesList_js_1 = require("../admin-funcs/zoneDevicesList.js");
15
- const index_extras_js_1 = require("../index.extras.js");
16
- (0, vitest_1.describe)("zoneDevicesList", () => {
17
- (0, vitest_1.beforeEach)(() => {
18
- doGetSingleMock.mockClear();
19
- });
20
- (0, vitest_1.it)("sends the zone filter as zone_id", () => {
21
- (0, zoneDevicesList_js_1.zoneDevicesList)({ zoneId: 7, itemsPerPage: 1 });
22
- (0, vitest_1.expect)(doGetSingleMock).toHaveBeenCalledWith("/zone-devices", { zone_id: 7, items_per_page: 1 });
23
- });
24
- // Gatekeeper's Networks and Devices tabs call these; dropping them from `__internal` once
25
- // broke both without failing a build here.
26
- (0, vitest_1.it)("keeps the gatekeeper funcs on __internal", () => {
27
- (0, vitest_1.expect)(index_extras_js_1.__internal.zoneDevices).toEqual({ list: zoneDevicesList_js_1.zoneDevicesList, get: zoneDevicesGet_js_1.zoneDevicesGet });
28
- (0, vitest_1.expect)(index_extras_js_1.__internal.networks).toEqual({ list: networksList_js_1.networksList, get: networksGet_js_1.networksGet, create: networksCreate_js_1.networksCreate });
29
- });
30
- });
31
- //# sourceMappingURL=zoneDevicesList.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoneDevicesList.test.js","sourceRoot":"","sources":["../../../src/__tests__/zoneDevicesList.test.ts"],"names":[],"mappings":";;AAAA,mCAA8D;AAE9D,MAAM,EAAE,eAAe,EAAE,GAAG,WAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,eAAe,EAAE,WAAE,CAAC,EAAE,CAAC,CAAC,MAAc,EAAE,MAAgB,EAAE,EAAE,CAC1D,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,CACxD;CACF,CAAC,CAAC,CAAC;AAEJ,WAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,YAAY,EAAE,eAAe;CAC9B,CAAC,CAAC,CAAC;AAEJ,wEAAkE;AAClE,kEAA4D;AAC5D,oEAA8D;AAC9D,wEAAkE;AAClE,0EAAoE;AACpE,wDAAgD;AAEhD,IAAA,iBAAQ,EAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE;QACd,eAAe,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,IAAA,oCAAe,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;QAEhD,IAAA,eAAM,EAAC,eAAe,CAAC,CAAC,oBAAoB,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC;IACnG,CAAC,CAAC,CAAC;IAEH,0FAA0F;IAC1F,2CAA2C;IAC3C,IAAA,WAAE,EAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,IAAA,eAAM,EAAC,4BAAU,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,oCAAe,EAAE,GAAG,EAAE,kCAAc,EAAE,CAAC,CAAC;QACvF,IAAA,eAAM,EAAC,4BAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,8BAAY,EAAE,GAAG,EAAE,4BAAW,EAAE,MAAM,EAAE,kCAAc,EAAE,CAAC,CAAC;IACxG,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * How many devices of one kind exist, and how many of those are active.
6
- */
7
- export type DeviceCountPair = {
8
- /**
9
- * Every device of this kind.
10
- */
11
- total: number;
12
- /**
13
- * 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.
14
- */
15
- active: number;
16
- };
17
- /** @internal */
18
- export declare const DeviceCountPair$inboundSchema: z.ZodType<DeviceCountPair, z.ZodTypeDef, unknown>;
19
- /** @internal */
20
- export type DeviceCountPair$Outbound = {
21
- total: number;
22
- active: number;
23
- };
24
- /** @internal */
25
- export declare const DeviceCountPair$outboundSchema: z.ZodType<DeviceCountPair$Outbound, z.ZodTypeDef, DeviceCountPair>;
26
- export declare function deviceCountPairToJSON(deviceCountPair: DeviceCountPair): string;
27
- export declare function deviceCountPairFromJSON(jsonString: string): SafeParseResult<DeviceCountPair, SDKValidationError>;
28
- //# sourceMappingURL=devicecountpair.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecountpair.d.ts","sourceRoot":"","sources":["../../../../src/models/components/devicecountpair.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAIf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DeviceCountPair$outboundSchema = exports.DeviceCountPair$inboundSchema = void 0;
40
- exports.deviceCountPairToJSON = deviceCountPairToJSON;
41
- exports.deviceCountPairFromJSON = deviceCountPairFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const types = __importStar(require("../../types/primitives.js"));
45
- /** @internal */
46
- exports.DeviceCountPair$inboundSchema = z.object({
47
- total: types.number(),
48
- active: types.number(),
49
- });
50
- /** @internal */
51
- exports.DeviceCountPair$outboundSchema = z.object({
52
- total: z.number().int(),
53
- active: z.number().int(),
54
- });
55
- function deviceCountPairToJSON(deviceCountPair) {
56
- return JSON.stringify(exports.DeviceCountPair$outboundSchema.parse(deviceCountPair));
57
- }
58
- function deviceCountPairFromJSON(jsonString) {
59
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeviceCountPair$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeviceCountPair' from JSON`);
60
- }
61
- //# sourceMappingURL=devicecountpair.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecountpair.js","sourceRoot":"","sources":["../../../../src/models/components/devicecountpair.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,sDAIC;AACD,0DAQC;AA1DD,0CAA4B;AAC5B,qDAAiD;AAEjD,iEAAmD;AAiBnD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACzB,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { DeviceCountPair, DeviceCountPair$Outbound } from "./devicecountpair.js";
5
- /**
6
- * Gateway and iPad kiosk totals, counted the same way as the zone devices inventory.
7
- */
8
- export type DeviceCounts = {
9
- /**
10
- * How many devices of one kind exist, and how many of those are active.
11
- */
12
- gateways: DeviceCountPair;
13
- /**
14
- * How many devices of one kind exist, and how many of those are active.
15
- */
16
- kiosks: DeviceCountPair;
17
- };
18
- /** @internal */
19
- export declare const DeviceCounts$inboundSchema: z.ZodType<DeviceCounts, z.ZodTypeDef, unknown>;
20
- /** @internal */
21
- export type DeviceCounts$Outbound = {
22
- gateways: DeviceCountPair$Outbound;
23
- kiosks: DeviceCountPair$Outbound;
24
- };
25
- /** @internal */
26
- export declare const DeviceCounts$outboundSchema: z.ZodType<DeviceCounts$Outbound, z.ZodTypeDef, DeviceCounts>;
27
- export declare function deviceCountsToJSON(deviceCounts: DeviceCounts): string;
28
- export declare function deviceCountsFromJSON(jsonString: string): SafeParseResult<DeviceCounts, SDKValidationError>;
29
- //# sourceMappingURL=devicecounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecounts.d.ts","sourceRoot":"","sources":["../../../../src/models/components/devicecounts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAIZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AACD,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.DeviceCounts$outboundSchema = exports.DeviceCounts$inboundSchema = void 0;
40
- exports.deviceCountsToJSON = deviceCountsToJSON;
41
- exports.deviceCountsFromJSON = deviceCountsFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const devicecountpair_js_1 = require("./devicecountpair.js");
45
- /** @internal */
46
- exports.DeviceCounts$inboundSchema = z.object({
47
- gateways: devicecountpair_js_1.DeviceCountPair$inboundSchema,
48
- kiosks: devicecountpair_js_1.DeviceCountPair$inboundSchema,
49
- });
50
- /** @internal */
51
- exports.DeviceCounts$outboundSchema = z.object({
52
- gateways: devicecountpair_js_1.DeviceCountPair$outboundSchema,
53
- kiosks: devicecountpair_js_1.DeviceCountPair$outboundSchema,
54
- });
55
- function deviceCountsToJSON(deviceCounts) {
56
- return JSON.stringify(exports.DeviceCounts$outboundSchema.parse(deviceCounts));
57
- }
58
- function deviceCountsFromJSON(jsonString) {
59
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeviceCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeviceCounts' from JSON`);
60
- }
61
- //# sourceMappingURL=devicecounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecounts.js","sourceRoot":"","sources":["../../../../src/models/components/devicecounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,gDAEC;AACD,oDAQC;AA7DD,0CAA4B;AAC5B,qDAAiD;AAGjD,6DAK8B;AAgB9B,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,kDAA6B;IACvC,MAAM,EAAE,kDAA6B;CACtC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,mDAA8B;IACxC,MAAM,EAAE,mDAA8B;CACvC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AACD,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=zoneDevicesList.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoneDevicesList.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/zoneDevicesList.test.ts"],"names":[],"mappings":""}
@@ -1,29 +0,0 @@
1
- import { beforeEach, describe, expect, it, vi } from "vitest";
2
- const { doGetSingleMock } = vi.hoisted(() => ({
3
- doGetSingleMock: vi.fn((_route, _query) => Promise.resolve([{ ok: true }, { status: "complete" }])),
4
- }));
5
- vi.mock("../admin-funcs/doAdmin.js", () => ({
6
- $doGetSingle: doGetSingleMock,
7
- }));
8
- import { networksCreate } from "../admin-funcs/networksCreate.js";
9
- import { networksGet } from "../admin-funcs/networksGet.js";
10
- import { networksList } from "../admin-funcs/networksList.js";
11
- import { zoneDevicesGet } from "../admin-funcs/zoneDevicesGet.js";
12
- import { zoneDevicesList } from "../admin-funcs/zoneDevicesList.js";
13
- import { __internal } from "../index.extras.js";
14
- describe("zoneDevicesList", () => {
15
- beforeEach(() => {
16
- doGetSingleMock.mockClear();
17
- });
18
- it("sends the zone filter as zone_id", () => {
19
- zoneDevicesList({ zoneId: 7, itemsPerPage: 1 });
20
- expect(doGetSingleMock).toHaveBeenCalledWith("/zone-devices", { zone_id: 7, items_per_page: 1 });
21
- });
22
- // Gatekeeper's Networks and Devices tabs call these; dropping them from `__internal` once
23
- // broke both without failing a build here.
24
- it("keeps the gatekeeper funcs on __internal", () => {
25
- expect(__internal.zoneDevices).toEqual({ list: zoneDevicesList, get: zoneDevicesGet });
26
- expect(__internal.networks).toEqual({ list: networksList, get: networksGet, create: networksCreate });
27
- });
28
- });
29
- //# sourceMappingURL=zoneDevicesList.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zoneDevicesList.test.js","sourceRoot":"","sources":["../../../src/__tests__/zoneDevicesList.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9D,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5C,eAAe,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,MAAc,EAAE,MAAgB,EAAE,EAAE,CAC1D,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,CACxD;CACF,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,YAAY,EAAE,eAAe;CAC9B,CAAC,CAAC,CAAC;AAEJ,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,UAAU,CAAC,GAAG,EAAE;QACd,eAAe,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;QAEhD,MAAM,CAAC,eAAe,CAAC,CAAC,oBAAoB,CAAC,eAAe,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC;IACnG,CAAC,CAAC,CAAC;IAEH,0FAA0F;IAC1F,2CAA2C;IAC3C,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC,CAAC;QACvF,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;IACxG,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,28 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * How many devices of one kind exist, and how many of those are active.
6
- */
7
- export type DeviceCountPair = {
8
- /**
9
- * Every device of this kind.
10
- */
11
- total: number;
12
- /**
13
- * 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.
14
- */
15
- active: number;
16
- };
17
- /** @internal */
18
- export declare const DeviceCountPair$inboundSchema: z.ZodType<DeviceCountPair, z.ZodTypeDef, unknown>;
19
- /** @internal */
20
- export type DeviceCountPair$Outbound = {
21
- total: number;
22
- active: number;
23
- };
24
- /** @internal */
25
- export declare const DeviceCountPair$outboundSchema: z.ZodType<DeviceCountPair$Outbound, z.ZodTypeDef, DeviceCountPair>;
26
- export declare function deviceCountPairToJSON(deviceCountPair: DeviceCountPair): string;
27
- export declare function deviceCountPairFromJSON(jsonString: string): SafeParseResult<DeviceCountPair, SDKValidationError>;
28
- //# sourceMappingURL=devicecountpair.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecountpair.d.ts","sourceRoot":"","sources":["../../../../src/models/components/devicecountpair.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAIf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AACD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -1,23 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { safeParse } from "../../lib/schemas.js";
6
- import * as types from "../../types/primitives.js";
7
- /** @internal */
8
- export const DeviceCountPair$inboundSchema = z.object({
9
- total: types.number(),
10
- active: types.number(),
11
- });
12
- /** @internal */
13
- export const DeviceCountPair$outboundSchema = z.object({
14
- total: z.number().int(),
15
- active: z.number().int(),
16
- });
17
- export function deviceCountPairToJSON(deviceCountPair) {
18
- return JSON.stringify(DeviceCountPair$outboundSchema.parse(deviceCountPair));
19
- }
20
- export function deviceCountPairFromJSON(jsonString) {
21
- return safeParse(jsonString, (x) => DeviceCountPair$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeviceCountPair' from JSON`);
22
- }
23
- //# sourceMappingURL=devicecountpair.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicecountpair.js","sourceRoot":"","sources":["../../../../src/models/components/devicecountpair.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAiBnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AACD,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -1,29 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { DeviceCountPair, DeviceCountPair$Outbound } from "./devicecountpair.js";
5
- /**
6
- * Gateway and iPad kiosk totals, counted the same way as the zone devices inventory.
7
- */
8
- export type DeviceCounts = {
9
- /**
10
- * How many devices of one kind exist, and how many of those are active.
11
- */
12
- gateways: DeviceCountPair;
13
- /**
14
- * How many devices of one kind exist, and how many of those are active.
15
- */
16
- kiosks: DeviceCountPair;
17
- };
18
- /** @internal */
19
- export declare const DeviceCounts$inboundSchema: z.ZodType<DeviceCounts, z.ZodTypeDef, unknown>;
20
- /** @internal */
21
- export type DeviceCounts$Outbound = {
22
- gateways: DeviceCountPair$Outbound;
23
- kiosks: DeviceCountPair$Outbound;
24
- };
25
- /** @internal */
26
- export declare const DeviceCounts$outboundSchema: z.ZodType<DeviceCounts$Outbound, z.ZodTypeDef, DeviceCounts>;
27
- export declare function deviceCountsToJSON(deviceCounts: DeviceCounts): string;
28
- export declare function deviceCountsFromJSON(jsonString: string): SafeParseResult<DeviceCounts, SDKValidationError>;
29
- //# sourceMappingURL=devicecounts.d.ts.map