@greensecurity/javascript-sdk 0.46.0-beta.6 → 0.46.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- 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 +10 -7
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js +9 -0
- package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js +9 -0
- package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
- 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/eventsListFeed.d.ts +9 -8
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.js +9 -8
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +8 -7
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +8 -7
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +6 -5
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +6 -5
- package/dist/commonjs/funcs/eventsListStandingAppointments.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/vendorsGetVendorCredentialDetails.d.ts +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +4 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.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 +20 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +22 -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/event.d.ts +2 -2
- 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/invite.d.ts +40 -4
- package/dist/commonjs/models/components/invite.d.ts.map +1 -1
- package/dist/commonjs/models/components/invite.js +20 -0
- package/dist/commonjs/models/components/invite.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/vendorcredentialsummary.d.ts +12 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.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/eventsListFeed.d.ts +37 -33
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.js +37 -33
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +32 -28
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +32 -28
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +24 -20
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +24 -20
- package/dist/commonjs/react-query/eventsListStandingAppointments.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/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +8 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +16 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.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/events.d.ts +23 -20
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +23 -20
- package/dist/commonjs/sdk/events.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 +46 -6
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +47 -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 +1 -1
- 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 +10 -7
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js +6 -0
- package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js +6 -0
- package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
- 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/eventsListFeed.d.ts +9 -8
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListFeed.js +9 -8
- package/dist/esm/funcs/eventsListFeed.js.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +8 -7
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.js +8 -7
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +6 -5
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.js +6 -5
- package/dist/esm/funcs/eventsListStandingAppointments.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/vendorsGetVendorCredentialDetails.d.ts +4 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +4 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +4 -0
- package/dist/esm/funcs/vendorsListVendorCredentialHistory.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 +20 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +22 -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/event.d.ts +2 -2
- 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/invite.d.ts +40 -4
- package/dist/esm/models/components/invite.d.ts.map +1 -1
- package/dist/esm/models/components/invite.js +20 -0
- package/dist/esm/models/components/invite.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/vendorcredentialsummary.d.ts +12 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.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/eventsListFeed.d.ts +37 -33
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListFeed.js +37 -33
- package/dist/esm/react-query/eventsListFeed.js.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +32 -28
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.js +32 -28
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +24 -20
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.js +24 -20
- package/dist/esm/react-query/eventsListStandingAppointments.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/vendorsGetVendorCredentialDetails.d.ts +8 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +8 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +16 -0
- package/dist/esm/react-query/vendorsListVendorCredentialHistory.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/events.d.ts +23 -20
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +23 -20
- package/dist/esm/sdk/events.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 +46 -6
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +47 -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 +1 -1
- package/src/__tests__/zoneDevicesList.test.ts +37 -0
- package/src/__tests__/zones.test.ts +10 -7
- package/src/admin-funcs/vendorCredentialCreateFormQuote.ts +12 -0
- package/src/admin-funcs/vendorCredentialGetFormLineItems.ts +12 -0
- package/src/admin-funcs/zoneDevicesList.ts +4 -0
- package/src/funcs/companiesLookupCompanies.ts +3 -0
- package/src/funcs/eventsListFeed.ts +9 -8
- package/src/funcs/eventsListPendingInvitations.ts +8 -7
- package/src/funcs/eventsListStandingAppointments.ts +6 -5
- 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/vendorsGetVendorCredentialDetails.ts +4 -0
- package/src/funcs/vendorsListVendorCredentialHistory.ts +4 -0
- 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 +25 -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/event.ts +2 -2
- 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/invite.ts +60 -4
- package/src/models/components/user.ts +6 -0
- package/src/models/components/vendorcredentialsummary.ts +16 -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/eventsListFeed.ts +36 -32
- package/src/react-query/eventsListPendingInvitations.ts +32 -28
- package/src/react-query/eventsListStandingAppointments.ts +24 -20
- 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/vendorsGetVendorCredentialDetails.ts +8 -0
- package/src/react-query/vendorsListVendorCredentialHistory.ts +16 -0
- 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/events.ts +23 -20
- package/src/sdk/organizations.ts +2 -0
- package/src/sdk/vendors.ts +47 -7
- package/src/sdk/zones.ts +3 -0
|
@@ -81,13 +81,14 @@ export type EventsListStandingAppointmentsQueryError =
|
|
|
81
81
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
82
82
|
*
|
|
83
83
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
84
|
-
* `event.creator` and `event.
|
|
85
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
86
|
-
*
|
|
84
|
+
* `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
|
|
85
|
+
* applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
|
|
86
|
+
* are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
|
|
87
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
87
88
|
* `StandingAppointment` shape instead.
|
|
88
89
|
*
|
|
89
|
-
* The boundary is the prerelease build `0.
|
|
90
|
-
* `0.
|
|
90
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
91
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
91
92
|
* build compares against it.
|
|
92
93
|
*/
|
|
93
94
|
export function useEventsListStandingAppointments(
|
|
@@ -121,13 +122,14 @@ export function useEventsListStandingAppointments(
|
|
|
121
122
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
122
123
|
*
|
|
123
124
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
124
|
-
* `event.creator` and `event.
|
|
125
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
126
|
-
*
|
|
125
|
+
* `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
|
|
126
|
+
* applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
|
|
127
|
+
* are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
|
|
128
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
127
129
|
* `StandingAppointment` shape instead.
|
|
128
130
|
*
|
|
129
|
-
* The boundary is the prerelease build `0.
|
|
130
|
-
* `0.
|
|
131
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
132
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
131
133
|
* build compares against it.
|
|
132
134
|
*/
|
|
133
135
|
export function useEventsListStandingAppointmentsSuspense(
|
|
@@ -161,13 +163,14 @@ export function useEventsListStandingAppointmentsSuspense(
|
|
|
161
163
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
162
164
|
*
|
|
163
165
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
164
|
-
* `event.creator` and `event.
|
|
165
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
166
|
-
*
|
|
166
|
+
* `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
|
|
167
|
+
* applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
|
|
168
|
+
* are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
|
|
169
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
167
170
|
* `StandingAppointment` shape instead.
|
|
168
171
|
*
|
|
169
|
-
* The boundary is the prerelease build `0.
|
|
170
|
-
* `0.
|
|
172
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
173
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
171
174
|
* build compares against it.
|
|
172
175
|
*/
|
|
173
176
|
export function useEventsListStandingAppointmentsInfinite(
|
|
@@ -215,13 +218,14 @@ export function useEventsListStandingAppointmentsInfinite(
|
|
|
215
218
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
216
219
|
*
|
|
217
220
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
218
|
-
* `event.creator` and `event.
|
|
219
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
220
|
-
*
|
|
221
|
+
* `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
|
|
222
|
+
* applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
|
|
223
|
+
* are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
|
|
224
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
221
225
|
* `StandingAppointment` shape instead.
|
|
222
226
|
*
|
|
223
|
-
* The boundary is the prerelease build `0.
|
|
224
|
-
* `0.
|
|
227
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
228
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
225
229
|
* build compares against it.
|
|
226
230
|
*/
|
|
227
231
|
export function useEventsListStandingAppointmentsInfiniteSuspense(
|
|
@@ -69,6 +69,7 @@ export type OrganizationsGetFacilityQueryError =
|
|
|
69
69
|
* - `facility.system`
|
|
70
70
|
* - `facility.contacts`
|
|
71
71
|
* - `facility.vendor_counts`
|
|
72
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
72
73
|
* - `facility.appointment_policy`
|
|
73
74
|
* - `facility.vendor_policy`
|
|
74
75
|
* - `facility.vendor_guest_policy`
|
|
@@ -116,6 +117,7 @@ export function useOrganizationsGetFacility(
|
|
|
116
117
|
* - `facility.system`
|
|
117
118
|
* - `facility.contacts`
|
|
118
119
|
* - `facility.vendor_counts`
|
|
120
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
119
121
|
* - `facility.appointment_policy`
|
|
120
122
|
* - `facility.vendor_policy`
|
|
121
123
|
* - `facility.vendor_guest_policy`
|
|
@@ -84,6 +84,7 @@ export type OrganizationsListOrSearchFacilitiesQueryError =
|
|
|
84
84
|
* - `facility.system`
|
|
85
85
|
* - `facility.contacts`
|
|
86
86
|
* - `facility.vendor_counts`
|
|
87
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
87
88
|
* - `facility.appointment_policy`
|
|
88
89
|
* - `facility.vendor_policy`
|
|
89
90
|
* - `facility.vendor_guest_policy`
|
|
@@ -128,6 +129,7 @@ export function useOrganizationsListOrSearchFacilities(
|
|
|
128
129
|
* - `facility.system`
|
|
129
130
|
* - `facility.contacts`
|
|
130
131
|
* - `facility.vendor_counts`
|
|
132
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
131
133
|
* - `facility.appointment_policy`
|
|
132
134
|
* - `facility.vendor_policy`
|
|
133
135
|
* - `facility.vendor_guest_policy`
|
|
@@ -172,6 +174,7 @@ export function useOrganizationsListOrSearchFacilitiesSuspense(
|
|
|
172
174
|
* - `facility.system`
|
|
173
175
|
* - `facility.contacts`
|
|
174
176
|
* - `facility.vendor_counts`
|
|
177
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
175
178
|
* - `facility.appointment_policy`
|
|
176
179
|
* - `facility.vendor_policy`
|
|
177
180
|
* - `facility.vendor_guest_policy`
|
|
@@ -230,6 +233,7 @@ export function useOrganizationsListOrSearchFacilitiesInfinite(
|
|
|
230
233
|
* - `facility.system`
|
|
231
234
|
* - `facility.contacts`
|
|
232
235
|
* - `facility.vendor_counts`
|
|
236
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
233
237
|
* - `facility.appointment_policy`
|
|
234
238
|
* - `facility.vendor_policy`
|
|
235
239
|
* - `facility.vendor_guest_policy`
|
|
@@ -50,9 +50,16 @@ export type VendorsAddVendorManagedByCompanyMutationError =
|
|
|
50
50
|
* Add vendor managed by company
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Adds a company as a manager of the vendor.
|
|
53
|
+
* Adds a company as a manager of the vendor. The new company starts with every access right
|
|
54
|
+
* turned off. The company must be on the same site as the vendor. Otherwise, the API returns
|
|
55
|
+
* `404`.
|
|
54
56
|
*
|
|
55
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
57
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
|
|
58
|
+
* companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
|
|
59
|
+
* a Green Security administrator, or an app whose API token can update the vendor (an app
|
|
60
|
+
* installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
|
|
61
|
+
* A company manager whose company manages the vendor through a managed-by-company link, rather
|
|
62
|
+
* than owning the vendor, gets a `403`, and so do facility and system users.
|
|
56
63
|
*/
|
|
57
64
|
export function useVendorsAddVendorManagedByCompanyMutation(
|
|
58
65
|
options?: MutationHookOptions<
|
|
@@ -52,7 +52,13 @@ export type VendorsCreateVendorCompanyMutationError =
|
|
|
52
52
|
* @remarks
|
|
53
53
|
* Creates vendor company
|
|
54
54
|
*
|
|
55
|
-
* **Permissions.** Requires the `companies.add` permission.
|
|
55
|
+
* **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
|
|
56
|
+
* into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
|
|
57
|
+
* Security administrator, or an app installed for the vendor's whole site. An app needs a
|
|
58
|
+
* site-wide installation because only a site-wide installation can create companies. An app
|
|
59
|
+
* installed only for a company or by a user gets a `403`, even when its API token can update the
|
|
60
|
+
* vendor. A company manager whose company manages the vendor through a managed-by-company link,
|
|
61
|
+
* rather than owning the vendor, gets a `403`, and so do facility and system users.
|
|
56
62
|
*/
|
|
57
63
|
export function useVendorsCreateVendorCompanyMutation(
|
|
58
64
|
options?: MutationHookOptions<
|
|
@@ -53,7 +53,15 @@ export type VendorsDeleteVendorManagedByCompanyMutationError =
|
|
|
53
53
|
* @remarks
|
|
54
54
|
* Removes a company as a manager of the vendor.
|
|
55
55
|
*
|
|
56
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
56
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
|
|
57
|
+
* companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
|
|
58
|
+
* a Green Security administrator, or an app whose API token can update the vendor (an app
|
|
59
|
+
* installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
|
|
60
|
+
* A company manager whose company manages the vendor through a managed-by-company link, rather
|
|
61
|
+
* than owning the vendor, gets a `403`, and so do facility and system users.
|
|
62
|
+
*
|
|
63
|
+
* If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
|
|
64
|
+
* as for an ID that doesn't exist.
|
|
57
65
|
*/
|
|
58
66
|
export function useVendorsDeleteVendorManagedByCompanyMutation(
|
|
59
67
|
options?: MutationHookOptions<
|
|
@@ -63,6 +63,10 @@ export type VendorsGetVendorCredentialDetailsQueryError =
|
|
|
63
63
|
* is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
|
|
64
64
|
* receives the files they personally uploaded on the vendor's behalf.
|
|
65
65
|
*
|
|
66
|
+
* For that same restricted company manager, `json_data` is returned as `null` unless they are the
|
|
67
|
+
* one who first submitted this version of the credential - everything else in the response
|
|
68
|
+
* (status, dates, notes, credential/invoice/etc.) is unaffected.
|
|
69
|
+
*
|
|
66
70
|
* The following `expand` scopes are available:
|
|
67
71
|
*
|
|
68
72
|
* - `vendor_credential.credential`
|
|
@@ -127,6 +131,10 @@ export function useVendorsGetVendorCredentialDetails(
|
|
|
127
131
|
* is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
|
|
128
132
|
* receives the files they personally uploaded on the vendor's behalf.
|
|
129
133
|
*
|
|
134
|
+
* For that same restricted company manager, `json_data` is returned as `null` unless they are the
|
|
135
|
+
* one who first submitted this version of the credential - everything else in the response
|
|
136
|
+
* (status, dates, notes, credential/invoice/etc.) is unaffected.
|
|
137
|
+
*
|
|
130
138
|
* The following `expand` scopes are available:
|
|
131
139
|
*
|
|
132
140
|
* - `vendor_credential.credential`
|
|
@@ -78,6 +78,10 @@ export type VendorsListVendorCredentialHistoryQueryError =
|
|
|
78
78
|
* Lists vendor credentials history
|
|
79
79
|
*
|
|
80
80
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
81
|
+
*
|
|
82
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
83
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
84
|
+
* from ones made by someone else with access to the same credential.
|
|
81
85
|
*/
|
|
82
86
|
export function useVendorsListVendorCredentialHistory(
|
|
83
87
|
request: operations.ListVendorCredentialHistoryRequest,
|
|
@@ -107,6 +111,10 @@ export function useVendorsListVendorCredentialHistory(
|
|
|
107
111
|
* Lists vendor credentials history
|
|
108
112
|
*
|
|
109
113
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
114
|
+
*
|
|
115
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
116
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
117
|
+
* from ones made by someone else with access to the same credential.
|
|
110
118
|
*/
|
|
111
119
|
export function useVendorsListVendorCredentialHistorySuspense(
|
|
112
120
|
request: operations.ListVendorCredentialHistoryRequest,
|
|
@@ -136,6 +144,10 @@ export function useVendorsListVendorCredentialHistorySuspense(
|
|
|
136
144
|
* Lists vendor credentials history
|
|
137
145
|
*
|
|
138
146
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
147
|
+
*
|
|
148
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
149
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
150
|
+
* from ones made by someone else with access to the same credential.
|
|
139
151
|
*/
|
|
140
152
|
export function useVendorsListVendorCredentialHistoryInfinite(
|
|
141
153
|
request: operations.ListVendorCredentialHistoryRequest,
|
|
@@ -179,6 +191,10 @@ export function useVendorsListVendorCredentialHistoryInfinite(
|
|
|
179
191
|
* Lists vendor credentials history
|
|
180
192
|
*
|
|
181
193
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
194
|
+
*
|
|
195
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
196
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
197
|
+
* from ones made by someone else with access to the same credential.
|
|
182
198
|
*/
|
|
183
199
|
export function useVendorsListVendorCredentialHistoryInfiniteSuspense(
|
|
184
200
|
request: operations.ListVendorCredentialHistoryRequest,
|
|
@@ -60,7 +60,9 @@ export type VendorsUpdateVendorCustomFieldMutationError =
|
|
|
60
60
|
* Accepts a numeric vendor ID, `me` for the authenticated vendor,
|
|
61
61
|
* or an active QR code (format: contains hyphens).
|
|
62
62
|
*
|
|
63
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
63
|
+
* **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
|
|
64
|
+
* manages the vendor through a managed-by-company link, rather than owning it, also needs that
|
|
65
|
+
* link's `may_edit_profile` access right, or the API returns `403`.
|
|
64
66
|
*/
|
|
65
67
|
export function useVendorsUpdateVendorCustomFieldMutation(
|
|
66
68
|
options?: MutationHookOptions<
|
|
@@ -52,7 +52,16 @@ export type VendorsUpdateVendorManagedByCompanyMutationError =
|
|
|
52
52
|
* @remarks
|
|
53
53
|
* Updates the access rights that a company has for the vendor it manages.
|
|
54
54
|
*
|
|
55
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
55
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
|
|
56
|
+
* rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
|
|
57
|
+
* administrator, or an app whose API token can update the vendor (an app installed for the
|
|
58
|
+
* vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
|
|
59
|
+
* whose company manages the vendor through a managed-by-company link, rather than owning the
|
|
60
|
+
* vendor, gets a `403`: that company can't change its own access rights or another company's.
|
|
61
|
+
* Facility and system users get a `403` too.
|
|
62
|
+
*
|
|
63
|
+
* If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
|
|
64
|
+
* as for an ID that doesn't exist.
|
|
56
65
|
*/
|
|
57
66
|
export function useVendorsUpdateVendorManagedByCompanyMutation(
|
|
58
67
|
options?: MutationHookOptions<
|
|
@@ -66,6 +66,7 @@ export type ZonesGetSecurityZoneQueryError =
|
|
|
66
66
|
* - `zone.facility`
|
|
67
67
|
* - `zone.department`
|
|
68
68
|
* - `zone.rules`
|
|
69
|
+
* - `zone.device_counts` (also requires `zone_devices.view`)
|
|
69
70
|
*
|
|
70
71
|
* The server ignores unrecognized values.
|
|
71
72
|
*/
|
|
@@ -103,6 +104,7 @@ export function useZonesGetSecurityZone(
|
|
|
103
104
|
* - `zone.facility`
|
|
104
105
|
* - `zone.department`
|
|
105
106
|
* - `zone.rules`
|
|
107
|
+
* - `zone.device_counts` (also requires `zone_devices.view`)
|
|
106
108
|
*
|
|
107
109
|
* The server ignores unrecognized values.
|
|
108
110
|
*/
|
|
@@ -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/events.ts
CHANGED
|
@@ -210,15 +210,16 @@ 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
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
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
|
|
218
219
|
* embeds the appointment.
|
|
219
220
|
*
|
|
220
|
-
* The boundary is the prerelease build `0.
|
|
221
|
-
* `0.
|
|
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
|
|
222
223
|
* build compares against it.
|
|
223
224
|
*/
|
|
224
225
|
async listPendingInvitations(
|
|
@@ -243,15 +244,16 @@ export class Events extends ClientSDK {
|
|
|
243
244
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
|
|
244
245
|
* The caller's role and their relationship to the record decide what the response includes.
|
|
245
246
|
*
|
|
246
|
-
* Returns `Event` items with the `event.creator
|
|
247
|
-
* so the server populates `event_creator`,
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
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.
|
|
252
254
|
*
|
|
253
|
-
* The boundary is the prerelease build `0.
|
|
254
|
-
* `0.
|
|
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
|
|
255
257
|
* build against it.
|
|
256
258
|
*/
|
|
257
259
|
async listFeed(
|
|
@@ -275,13 +277,14 @@ export class Events extends ClientSDK {
|
|
|
275
277
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
276
278
|
*
|
|
277
279
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
278
|
-
* `event.creator` and `event.
|
|
279
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
280
|
-
*
|
|
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
|
|
281
284
|
* `StandingAppointment` shape instead.
|
|
282
285
|
*
|
|
283
|
-
* The boundary is the prerelease build `0.
|
|
284
|
-
* `0.
|
|
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
|
|
285
288
|
* build compares against it.
|
|
286
289
|
*/
|
|
287
290
|
async listStandingAppointments(
|
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
|
@@ -296,6 +296,10 @@ export class Vendors extends ClientSDK {
|
|
|
296
296
|
* is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
|
|
297
297
|
* receives the files they personally uploaded on the vendor's behalf.
|
|
298
298
|
*
|
|
299
|
+
* For that same restricted company manager, `json_data` is returned as `null` unless they are the
|
|
300
|
+
* one who first submitted this version of the credential - everything else in the response
|
|
301
|
+
* (status, dates, notes, credential/invoice/etc.) is unaffected.
|
|
302
|
+
*
|
|
299
303
|
* The following `expand` scopes are available:
|
|
300
304
|
*
|
|
301
305
|
* - `vendor_credential.credential`
|
|
@@ -637,6 +641,10 @@ export class Vendors extends ClientSDK {
|
|
|
637
641
|
* Lists vendor credentials history
|
|
638
642
|
*
|
|
639
643
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
644
|
+
*
|
|
645
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
646
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
647
|
+
* from ones made by someone else with access to the same credential.
|
|
640
648
|
*/
|
|
641
649
|
async listVendorCredentialHistory(
|
|
642
650
|
request: operations.ListVendorCredentialHistoryRequest,
|
|
@@ -1144,7 +1152,9 @@ export class Vendors extends ClientSDK {
|
|
|
1144
1152
|
* Accepts a numeric vendor ID, `me` for the authenticated vendor,
|
|
1145
1153
|
* or an active QR code (format: contains hyphens).
|
|
1146
1154
|
*
|
|
1147
|
-
* **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`.
|
|
1148
1158
|
*/
|
|
1149
1159
|
async updateVendorCustomField(
|
|
1150
1160
|
request: operations.UpdateVendorCustomFieldRequest,
|
|
@@ -1185,9 +1195,16 @@ export class Vendors extends ClientSDK {
|
|
|
1185
1195
|
* Add vendor managed by company
|
|
1186
1196
|
*
|
|
1187
1197
|
* @remarks
|
|
1188
|
-
* Adds a company as a manager of the vendor.
|
|
1189
|
-
*
|
|
1190
|
-
*
|
|
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.
|
|
1191
1208
|
*/
|
|
1192
1209
|
async addVendorManagedByCompany(
|
|
1193
1210
|
request: operations.AddVendorManagedByCompanyRequest,
|
|
@@ -1206,7 +1223,15 @@ export class Vendors extends ClientSDK {
|
|
|
1206
1223
|
* @remarks
|
|
1207
1224
|
* Removes a company as a manager of the vendor.
|
|
1208
1225
|
*
|
|
1209
|
-
* **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.
|
|
1210
1235
|
*/
|
|
1211
1236
|
async deleteVendorManagedByCompany(
|
|
1212
1237
|
request: operations.DeleteVendorManagedByCompanyRequest,
|
|
@@ -1225,7 +1250,16 @@ export class Vendors extends ClientSDK {
|
|
|
1225
1250
|
* @remarks
|
|
1226
1251
|
* Updates the access rights that a company has for the vendor it manages.
|
|
1227
1252
|
*
|
|
1228
|
-
* **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.
|
|
1229
1263
|
*/
|
|
1230
1264
|
async updateVendorManagedByCompany(
|
|
1231
1265
|
request: operations.UpdateVendorManagedByCompanyRequest,
|
|
@@ -1369,7 +1403,13 @@ export class Vendors extends ClientSDK {
|
|
|
1369
1403
|
* @remarks
|
|
1370
1404
|
* Creates vendor company
|
|
1371
1405
|
*
|
|
1372
|
-
* **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.
|
|
1373
1413
|
*/
|
|
1374
1414
|
async createVendorCompany(
|
|
1375
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
|
*/
|