@greensecurity/javascript-sdk 0.46.0-beta.7 → 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.
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +4 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +2 -0
- package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/zoneDevicesList.test.js +31 -0
- package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -0
- package/dist/commonjs/__tests__/zones.test.js +12 -9
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +1 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesList.js +3 -0
- package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
- package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +3 -0
- package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesLookupCompanies.js +3 -0
- package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts +1 -0
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.js +1 -0
- package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +9 -2
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +7 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +7 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +3 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +1 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.js +1 -0
- package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +6 -2
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +14 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +16 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +4 -0
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/authenticatesuccessresponse.js +2 -0
- package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
- package/dist/commonjs/models/components/devicecountpair.d.ts +28 -0
- package/dist/commonjs/models/components/devicecountpair.d.ts.map +1 -0
- package/dist/commonjs/models/components/devicecountpair.js +61 -0
- package/dist/commonjs/models/components/devicecountpair.js.map +1 -0
- package/dist/commonjs/models/components/devicecounts.d.ts +29 -0
- package/dist/commonjs/models/components/devicecounts.d.ts.map +1 -0
- package/dist/commonjs/models/components/devicecounts.js +61 -0
- package/dist/commonjs/models/components/devicecounts.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +2 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +2 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +6 -0
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +5 -0
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +4 -0
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +2 -0
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/zone.d.ts +6 -0
- package/dist/commonjs/models/components/zone.d.ts.map +1 -1
- package/dist/commonjs/models/components/zone.js +5 -0
- package/dist/commonjs/models/components/zone.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +5 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js +1 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +12 -0
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.js +12 -0
- package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/react-query/organizationsGetFacility.d.ts +2 -0
- package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsGetFacility.js +2 -0
- package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +4 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +9 -2
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +7 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +7 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +3 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +2 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesGetSecurityZone.js +2 -0
- package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +8 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/commonjs/sdk/companies.d.ts +3 -0
- package/dist/commonjs/sdk/companies.d.ts.map +1 -1
- package/dist/commonjs/sdk/companies.js +3 -0
- package/dist/commonjs/sdk/companies.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +2 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +2 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +38 -6
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +39 -7
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +3 -0
- package/dist/commonjs/sdk/zones.d.ts.map +1 -1
- package/dist/commonjs/sdk/zones.js +3 -0
- package/dist/commonjs/sdk/zones.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +4 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zoneDevicesList.test.d.ts +2 -0
- package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +1 -0
- package/dist/esm/__tests__/zoneDevicesList.test.js +29 -0
- package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -0
- package/dist/esm/__tests__/zones.test.js +12 -9
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts +1 -0
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesList.js +3 -0
- package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
- package/dist/esm/funcs/companiesLookupCompanies.d.ts +3 -0
- package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/esm/funcs/companiesLookupCompanies.js +3 -0
- package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.d.ts +1 -0
- package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.js +1 -0
- package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +9 -2
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +7 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js +7 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +3 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts +1 -0
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/esm/funcs/zonesGetSecurityZone.js +1 -0
- package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +7 -3
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/esm/index.extras.d.ts +14 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +16 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts +4 -0
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
- package/dist/esm/models/components/authenticatesuccessresponse.js +2 -0
- package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
- package/dist/esm/models/components/devicecountpair.d.ts +28 -0
- package/dist/esm/models/components/devicecountpair.d.ts.map +1 -0
- package/dist/esm/models/components/devicecountpair.js +23 -0
- package/dist/esm/models/components/devicecountpair.js.map +1 -0
- package/dist/esm/models/components/devicecounts.d.ts +29 -0
- package/dist/esm/models/components/devicecounts.d.ts.map +1 -0
- package/dist/esm/models/components/devicecounts.js +23 -0
- package/dist/esm/models/components/devicecounts.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +2 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +2 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +6 -0
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +5 -0
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +4 -0
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +2 -0
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/zone.d.ts +6 -0
- package/dist/esm/models/components/zone.d.ts.map +1 -1
- package/dist/esm/models/components/zone.js +5 -0
- package/dist/esm/models/components/zone.js.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +5 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.js +1 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.d.ts +12 -0
- package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.js +12 -0
- package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/react-query/organizationsGetFacility.d.ts +2 -0
- package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsGetFacility.js +2 -0
- package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js +4 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +9 -2
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +7 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.js +7 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +3 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts +2 -0
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/esm/react-query/zonesGetSecurityZone.js +2 -0
- package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +8 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/esm/sdk/companies.d.ts +3 -0
- package/dist/esm/sdk/companies.d.ts.map +1 -1
- package/dist/esm/sdk/companies.js +3 -0
- package/dist/esm/sdk/companies.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +2 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +2 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +38 -6
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +39 -7
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +3 -0
- package/dist/esm/sdk/zones.d.ts.map +1 -1
- package/dist/esm/sdk/zones.js +3 -0
- package/dist/esm/sdk/zones.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +4 -5
- package/src/__tests__/zoneDevicesList.test.ts +37 -0
- package/src/__tests__/zones.test.ts +12 -9
- package/src/admin-funcs/zoneDevicesList.ts +4 -0
- package/src/funcs/companiesLookupCompanies.ts +3 -0
- package/src/funcs/organizationsGetFacility.ts +1 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
- package/src/funcs/vendorsAddVendorManagedByCompany.ts +9 -2
- package/src/funcs/vendorsCreateVendorCompany.ts +7 -1
- package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +9 -1
- package/src/funcs/vendorsUpdateVendorCustomField.ts +3 -1
- package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +10 -1
- package/src/funcs/zonesGetSecurityZone.ts +1 -0
- package/src/funcs/zonesListOrSearchSecurityZones.ts +20 -13
- package/src/index.extras.ts +18 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/authenticatesuccessresponse.ts +6 -0
- package/src/models/components/devicecountpair.ts +63 -0
- package/src/models/components/devicecounts.ts +66 -0
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/facility.ts +15 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/user.ts +6 -0
- package/src/models/components/zone.ts +15 -0
- package/src/models/operations/listorsearchsecurityzones.ts +6 -0
- package/src/react-query/companiesLookupCompanies.ts +12 -0
- package/src/react-query/organizationsGetFacility.ts +2 -0
- package/src/react-query/organizationsListOrSearchFacilities.ts +4 -0
- package/src/react-query/vendorsAddVendorManagedByCompany.ts +9 -2
- package/src/react-query/vendorsCreateVendorCompany.ts +7 -1
- package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +9 -1
- package/src/react-query/vendorsUpdateVendorCustomField.ts +3 -1
- package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +10 -1
- package/src/react-query/zonesGetSecurityZone.ts +2 -0
- package/src/react-query/zonesListOrSearchSecurityZones.core.ts +4 -0
- package/src/react-query/zonesListOrSearchSecurityZones.ts +10 -0
- package/src/sdk/companies.ts +3 -0
- package/src/sdk/organizations.ts +2 -0
- package/src/sdk/vendors.ts +39 -7
- package/src/sdk/zones.ts +3 -0
|
@@ -82,6 +82,7 @@ export function buildZonesListOrSearchSecurityZonesQuery(
|
|
|
82
82
|
latitude: request.latitude,
|
|
83
83
|
longitude: request.longitude,
|
|
84
84
|
nameLike: request.nameLike,
|
|
85
|
+
expand: request.expand,
|
|
85
86
|
contactId: request.contactId,
|
|
86
87
|
facilityId: request.facilityId,
|
|
87
88
|
greenLocationId: request.greenLocationId,
|
|
@@ -131,6 +132,7 @@ export function buildZonesListOrSearchSecurityZonesInfiniteQuery(
|
|
|
131
132
|
latitude: request.latitude,
|
|
132
133
|
longitude: request.longitude,
|
|
133
134
|
nameLike: request.nameLike,
|
|
135
|
+
expand: request.expand,
|
|
134
136
|
contactId: request.contactId,
|
|
135
137
|
facilityId: request.facilityId,
|
|
136
138
|
greenLocationId: request.greenLocationId,
|
|
@@ -178,6 +180,7 @@ export function queryKeyZonesListOrSearchSecurityZones(
|
|
|
178
180
|
latitude?: number | undefined;
|
|
179
181
|
longitude?: number | undefined;
|
|
180
182
|
nameLike?: string | undefined;
|
|
183
|
+
expand?: Array<components.Expand> | undefined;
|
|
181
184
|
contactId?: number | undefined;
|
|
182
185
|
facilityId?: number | undefined;
|
|
183
186
|
greenLocationId?: number | undefined;
|
|
@@ -200,6 +203,7 @@ export function queryKeyZonesListOrSearchSecurityZonesInfinite(
|
|
|
200
203
|
latitude?: number | undefined;
|
|
201
204
|
longitude?: number | undefined;
|
|
202
205
|
nameLike?: string | undefined;
|
|
206
|
+
expand?: Array<components.Expand> | undefined;
|
|
203
207
|
contactId?: number | undefined;
|
|
204
208
|
facilityId?: number | undefined;
|
|
205
209
|
greenLocationId?: number | undefined;
|
|
@@ -78,6 +78,8 @@ 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.
|
|
81
83
|
*/
|
|
82
84
|
export function useZonesListOrSearchSecurityZones(
|
|
83
85
|
request: operations.ListOrSearchSecurityZonesRequest,
|
|
@@ -107,6 +109,8 @@ export function useZonesListOrSearchSecurityZones(
|
|
|
107
109
|
* Lists or searches security zones
|
|
108
110
|
*
|
|
109
111
|
* **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.
|
|
110
114
|
*/
|
|
111
115
|
export function useZonesListOrSearchSecurityZonesSuspense(
|
|
112
116
|
request: operations.ListOrSearchSecurityZonesRequest,
|
|
@@ -136,6 +140,8 @@ export function useZonesListOrSearchSecurityZonesSuspense(
|
|
|
136
140
|
* Lists or searches security zones
|
|
137
141
|
*
|
|
138
142
|
* **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.
|
|
139
145
|
*/
|
|
140
146
|
export function useZonesListOrSearchSecurityZonesInfinite(
|
|
141
147
|
request: operations.ListOrSearchSecurityZonesRequest,
|
|
@@ -179,6 +185,8 @@ export function useZonesListOrSearchSecurityZonesInfinite(
|
|
|
179
185
|
* Lists or searches security zones
|
|
180
186
|
*
|
|
181
187
|
* **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.
|
|
182
190
|
*/
|
|
183
191
|
export function useZonesListOrSearchSecurityZonesInfiniteSuspense(
|
|
184
192
|
request: operations.ListOrSearchSecurityZonesRequest,
|
|
@@ -226,6 +234,7 @@ export function setZonesListOrSearchSecurityZonesData(
|
|
|
226
234
|
latitude?: number | undefined;
|
|
227
235
|
longitude?: number | undefined;
|
|
228
236
|
nameLike?: string | undefined;
|
|
237
|
+
expand?: Array<components.Expand> | undefined;
|
|
229
238
|
contactId?: number | undefined;
|
|
230
239
|
facilityId?: number | undefined;
|
|
231
240
|
greenLocationId?: number | undefined;
|
|
@@ -252,6 +261,7 @@ export function invalidateZonesListOrSearchSecurityZones(
|
|
|
252
261
|
latitude?: number | undefined;
|
|
253
262
|
longitude?: number | undefined;
|
|
254
263
|
nameLike?: string | undefined;
|
|
264
|
+
expand?: Array<components.Expand> | undefined;
|
|
255
265
|
contactId?: number | undefined;
|
|
256
266
|
facilityId?: number | undefined;
|
|
257
267
|
greenLocationId?: number | undefined;
|
package/src/sdk/companies.ts
CHANGED
|
@@ -77,6 +77,9 @@ 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
|
+
*
|
|
80
83
|
* **Permissions.** Requires the `companies.view` permission.
|
|
81
84
|
*/
|
|
82
85
|
async lookupCompanies(
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -36,6 +36,7 @@ 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`)
|
|
39
40
|
* - `facility.appointment_policy`
|
|
40
41
|
* - `facility.vendor_policy`
|
|
41
42
|
* - `facility.vendor_guest_policy`
|
|
@@ -75,6 +76,7 @@ export class Organizations extends ClientSDK {
|
|
|
75
76
|
* - `facility.system`
|
|
76
77
|
* - `facility.contacts`
|
|
77
78
|
* - `facility.vendor_counts`
|
|
79
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
78
80
|
* - `facility.appointment_policy`
|
|
79
81
|
* - `facility.vendor_policy`
|
|
80
82
|
* - `facility.vendor_guest_policy`
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -1152,7 +1152,9 @@ 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.
|
|
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`.
|
|
1156
1158
|
*/
|
|
1157
1159
|
async updateVendorCustomField(
|
|
1158
1160
|
request: operations.UpdateVendorCustomFieldRequest,
|
|
@@ -1193,9 +1195,16 @@ export class Vendors extends ClientSDK {
|
|
|
1193
1195
|
* Add vendor managed by company
|
|
1194
1196
|
*
|
|
1195
1197
|
* @remarks
|
|
1196
|
-
* Adds a company as a manager of the vendor.
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
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.
|
|
1199
1208
|
*/
|
|
1200
1209
|
async addVendorManagedByCompany(
|
|
1201
1210
|
request: operations.AddVendorManagedByCompanyRequest,
|
|
@@ -1214,7 +1223,15 @@ export class Vendors extends ClientSDK {
|
|
|
1214
1223
|
* @remarks
|
|
1215
1224
|
* Removes a company as a manager of the vendor.
|
|
1216
1225
|
*
|
|
1217
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
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.
|
|
1218
1235
|
*/
|
|
1219
1236
|
async deleteVendorManagedByCompany(
|
|
1220
1237
|
request: operations.DeleteVendorManagedByCompanyRequest,
|
|
@@ -1233,7 +1250,16 @@ export class Vendors extends ClientSDK {
|
|
|
1233
1250
|
* @remarks
|
|
1234
1251
|
* Updates the access rights that a company has for the vendor it manages.
|
|
1235
1252
|
*
|
|
1236
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
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.
|
|
1237
1263
|
*/
|
|
1238
1264
|
async updateVendorManagedByCompany(
|
|
1239
1265
|
request: operations.UpdateVendorManagedByCompanyRequest,
|
|
@@ -1377,7 +1403,13 @@ export class Vendors extends ClientSDK {
|
|
|
1377
1403
|
* @remarks
|
|
1378
1404
|
* Creates vendor company
|
|
1379
1405
|
*
|
|
1380
|
-
* **Permissions.** Requires the `companies.add` permission.
|
|
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.
|
|
1381
1413
|
*/
|
|
1382
1414
|
async createVendorCompany(
|
|
1383
1415
|
request: operations.CreateVendorCompanyRequest,
|
package/src/sdk/zones.ts
CHANGED
|
@@ -19,6 +19,8 @@ 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.
|
|
22
24
|
*/
|
|
23
25
|
async listOrSearchSecurityZones(
|
|
24
26
|
request: operations.ListOrSearchSecurityZonesRequest,
|
|
@@ -46,6 +48,7 @@ export class Zones extends ClientSDK {
|
|
|
46
48
|
* - `zone.facility`
|
|
47
49
|
* - `zone.department`
|
|
48
50
|
* - `zone.rules`
|
|
51
|
+
* - `zone.device_counts` (also requires `zone_devices.view`)
|
|
49
52
|
*
|
|
50
53
|
* The server ignores unrecognized values.
|
|
51
54
|
*/
|