@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
|
@@ -35,23 +35,23 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
35
35
|
useUrlParams: false,
|
|
36
36
|
},
|
|
37
37
|
items: [
|
|
38
|
-
{
|
|
39
|
-
facility: {},
|
|
40
|
-
},
|
|
41
38
|
{
|
|
42
39
|
facility: {
|
|
43
40
|
contacts: {
|
|
44
41
|
contact: {
|
|
45
|
-
status: "
|
|
42
|
+
status: "Deleted",
|
|
46
43
|
department: 123,
|
|
47
44
|
},
|
|
48
45
|
adminContact: {
|
|
46
|
+
status: "Active",
|
|
47
|
+
department: 123,
|
|
48
|
+
},
|
|
49
|
+
techContact: {
|
|
49
50
|
status: "Deleted",
|
|
50
51
|
department: 123,
|
|
51
52
|
},
|
|
52
|
-
techContact: null,
|
|
53
53
|
greenSecurityCsm: {
|
|
54
|
-
status: "
|
|
54
|
+
status: "Inactive",
|
|
55
55
|
department: 123,
|
|
56
56
|
},
|
|
57
57
|
accountManager: {
|
|
@@ -66,6 +66,9 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
facility: {},
|
|
71
|
+
},
|
|
69
72
|
],
|
|
70
73
|
});
|
|
71
74
|
});
|
|
@@ -83,7 +86,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
83
86
|
|
|
84
87
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
85
88
|
qrCode: "<value>",
|
|
86
|
-
zoneId:
|
|
89
|
+
zoneId: 185875,
|
|
87
90
|
});
|
|
88
91
|
expect(result).toBeDefined();
|
|
89
92
|
expect(result).toEqual({});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { APIPromise } from "../types/async.js";
|
|
2
|
+
import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
3
|
+
|
|
4
|
+
export function vendorCredentialCreateFormQuote(
|
|
5
|
+
vendorCredentialId: number,
|
|
6
|
+
jsonData: string,
|
|
7
|
+
): internalApiResult {
|
|
8
|
+
return new APIPromise($doPost(
|
|
9
|
+
`/vendors/credentials/${vendorCredentialId}/quote`,
|
|
10
|
+
{ json_data: jsonData },
|
|
11
|
+
));
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { APIPromise } from "../types/async.js";
|
|
2
|
+
import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
3
|
+
|
|
4
|
+
export function vendorCredentialGetFormLineItems(
|
|
5
|
+
vendorCredentialId: number,
|
|
6
|
+
jsonData: string,
|
|
7
|
+
): internalApiResult {
|
|
8
|
+
return new APIPromise($doPost(
|
|
9
|
+
`/vendors/credentials/${vendorCredentialId}/line-items`,
|
|
10
|
+
{ json_data: jsonData },
|
|
11
|
+
));
|
|
12
|
+
}
|
|
@@ -5,6 +5,7 @@ export type zoneDevicesListSortField = "id" | "name";
|
|
|
5
5
|
|
|
6
6
|
export type zoneDevicesListRequest = {
|
|
7
7
|
facilityId?: number;
|
|
8
|
+
zoneId?: number;
|
|
8
9
|
page?: number;
|
|
9
10
|
itemsPerPage?: number;
|
|
10
11
|
sort?: zoneDevicesListSortField;
|
|
@@ -32,6 +33,9 @@ export function zoneDevicesList(
|
|
|
32
33
|
if (request.facilityId !== undefined) {
|
|
33
34
|
query["facility_id"] = request.facilityId;
|
|
34
35
|
}
|
|
36
|
+
if (request.zoneId !== undefined) {
|
|
37
|
+
query["zone_id"] = request.zoneId;
|
|
38
|
+
}
|
|
35
39
|
if (request.page !== undefined) {
|
|
36
40
|
query["page"] = request.page;
|
|
37
41
|
}
|
|
@@ -38,6 +38,9 @@ import {
|
|
|
38
38
|
* @remarks
|
|
39
39
|
* Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
|
|
40
40
|
*
|
|
41
|
+
* For a vendor, the list holds the active companies on the vendor's site: the companies the
|
|
42
|
+
* vendor can add as managing companies. Other callers see the companies they can view.
|
|
43
|
+
*
|
|
41
44
|
* **Permissions.** Requires the `companies.view` permission.
|
|
42
45
|
*
|
|
43
46
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -41,15 +41,16 @@ import {
|
|
|
41
41
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
|
|
42
42
|
* The caller's role and their relationship to the record decide what the response includes.
|
|
43
43
|
*
|
|
44
|
-
* Returns `Event` items with the `event.creator
|
|
45
|
-
* so the server populates `event_creator`,
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
44
|
+
* Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
|
|
45
|
+
* `event.department` scopes already applied, so the server populates `event_creator`,
|
|
46
|
+
* `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
|
|
47
|
+
* summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
|
|
48
|
+
* receive the older `Feed` shape instead, in which `facility` and `department` are name
|
|
49
|
+
* strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
|
|
50
|
+
* existing client keeps the shape it was generated against until you regenerate it.
|
|
50
51
|
*
|
|
51
|
-
* The boundary is the prerelease build `0.
|
|
52
|
-
* `0.
|
|
52
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
53
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
|
|
53
54
|
* build against it.
|
|
54
55
|
*
|
|
55
56
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -41,15 +41,16 @@ import {
|
|
|
41
41
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
|
|
42
42
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
43
43
|
*
|
|
44
|
-
* Returns `Invite` items with the `invite.event
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
44
|
+
* Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
|
|
45
|
+
* `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
|
|
46
|
+
* id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
|
|
47
|
+
* populated with the recipient's name and thumbnail—what this list has always published. This
|
|
48
|
+
* endpoint takes no `expand` parameter; the endpoint always applies these scopes.
|
|
49
|
+
* SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
|
|
49
50
|
* embeds the appointment.
|
|
50
51
|
*
|
|
51
|
-
* The boundary is the prerelease build `0.
|
|
52
|
-
* `0.
|
|
52
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
53
|
+
* `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
|
|
53
54
|
* build compares against it.
|
|
54
55
|
*
|
|
55
56
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -42,13 +42,14 @@ import {
|
|
|
42
42
|
* the caller's role and their relationship to the record decide what the endpoint returns.
|
|
43
43
|
*
|
|
44
44
|
* Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
|
|
45
|
-
* `event.creator` and `event.
|
|
46
|
-
* `event_creator`, `event_creator_img_url` and `invitees`
|
|
47
|
-
*
|
|
45
|
+
* `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
|
|
46
|
+
* applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
|
|
47
|
+
* are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
|
|
48
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
48
49
|
* `StandingAppointment` shape instead.
|
|
49
50
|
*
|
|
50
|
-
* The boundary is the prerelease build `0.
|
|
51
|
-
* `0.
|
|
51
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
|
|
52
|
+
* `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
52
53
|
* build compares against it.
|
|
53
54
|
*
|
|
54
55
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -43,6 +43,7 @@ import { Result } from "../types/fp.js";
|
|
|
43
43
|
* - `facility.system`
|
|
44
44
|
* - `facility.contacts`
|
|
45
45
|
* - `facility.vendor_counts`
|
|
46
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
46
47
|
* - `facility.appointment_policy`
|
|
47
48
|
* - `facility.vendor_policy`
|
|
48
49
|
* - `facility.vendor_guest_policy`
|
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
* - `facility.system`
|
|
46
46
|
* - `facility.contacts`
|
|
47
47
|
* - `facility.vendor_counts`
|
|
48
|
+
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
48
49
|
* - `facility.appointment_policy`
|
|
49
50
|
* - `facility.vendor_policy`
|
|
50
51
|
* - `facility.vendor_guest_policy`
|
|
@@ -30,9 +30,16 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Add vendor managed by company
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Adds a company as a manager of the vendor.
|
|
33
|
+
* Adds a company as a manager of the vendor. The new company starts with every access right
|
|
34
|
+
* turned off. The company must be on the same site as the vendor. Otherwise, the API returns
|
|
35
|
+
* `404`.
|
|
34
36
|
*
|
|
35
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
37
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
|
|
38
|
+
* companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
|
|
39
|
+
* a Green Security administrator, or an app whose API token can update the vendor (an app
|
|
40
|
+
* installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
|
|
41
|
+
* A company manager whose company manages the vendor through a managed-by-company link, rather
|
|
42
|
+
* than owning the vendor, gets a `403`, and so do facility and system users.
|
|
36
43
|
*
|
|
37
44
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
45
|
*/
|
|
@@ -32,7 +32,13 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Creates vendor company
|
|
34
34
|
*
|
|
35
|
-
* **Permissions.** Requires the `companies.add` permission.
|
|
35
|
+
* **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
|
|
36
|
+
* into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
|
|
37
|
+
* Security administrator, or an app installed for the vendor's whole site. An app needs a
|
|
38
|
+
* site-wide installation because only a site-wide installation can create companies. An app
|
|
39
|
+
* installed only for a company or by a user gets a `403`, even when its API token can update the
|
|
40
|
+
* vendor. A company manager whose company manages the vendor through a managed-by-company link,
|
|
41
|
+
* rather than owning the vendor, gets a `403`, and so do facility and system users.
|
|
36
42
|
*
|
|
37
43
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
44
|
*/
|
|
@@ -33,7 +33,15 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* Removes a company as a manager of the vendor.
|
|
35
35
|
*
|
|
36
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
36
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
|
|
37
|
+
* companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
|
|
38
|
+
* a Green Security administrator, or an app whose API token can update the vendor (an app
|
|
39
|
+
* installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
|
|
40
|
+
* A company manager whose company manages the vendor through a managed-by-company link, rather
|
|
41
|
+
* than owning the vendor, gets a `403`, and so do facility and system users.
|
|
42
|
+
*
|
|
43
|
+
* If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
|
|
44
|
+
* as for an ID that doesn't exist.
|
|
37
45
|
*
|
|
38
46
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
39
47
|
*/
|
|
@@ -36,6 +36,10 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
|
|
37
37
|
* receives the files they personally uploaded on the vendor's behalf.
|
|
38
38
|
*
|
|
39
|
+
* For that same restricted company manager, `json_data` is returned as `null` unless they are the
|
|
40
|
+
* one who first submitted this version of the credential - everything else in the response
|
|
41
|
+
* (status, dates, notes, credential/invoice/etc.) is unaffected.
|
|
42
|
+
*
|
|
39
43
|
* The following `expand` scopes are available:
|
|
40
44
|
*
|
|
41
45
|
* - `vendor_credential.credential`
|
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
*
|
|
41
41
|
* **Permissions.** Requires the `vendor_credentials.view` permission.
|
|
42
42
|
*
|
|
43
|
+
* Each item's `submitted_by_current_user` says whether the calling user is the one who first
|
|
44
|
+
* submitted that version, so a vendor or company manager can tell their own submissions apart
|
|
45
|
+
* from ones made by someone else with access to the same credential.
|
|
46
|
+
*
|
|
43
47
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
48
|
*/
|
|
45
49
|
export function vendorsListVendorCredentialHistory(
|
|
@@ -40,7 +40,9 @@ import { Result } from "../types/fp.js";
|
|
|
40
40
|
* Accepts a numeric vendor ID, `me` for the authenticated vendor,
|
|
41
41
|
* or an active QR code (format: contains hyphens).
|
|
42
42
|
*
|
|
43
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
43
|
+
* **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
|
|
44
|
+
* manages the vendor through a managed-by-company link, rather than owning it, also needs that
|
|
45
|
+
* link's `may_edit_profile` access right, or the API returns `403`.
|
|
44
46
|
*
|
|
45
47
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
46
48
|
*/
|
|
@@ -32,7 +32,16 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Updates the access rights that a company has for the vendor it manages.
|
|
34
34
|
*
|
|
35
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
35
|
+
* **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
|
|
36
|
+
* rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
|
|
37
|
+
* administrator, or an app whose API token can update the vendor (an app installed for the
|
|
38
|
+
* vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
|
|
39
|
+
* whose company manages the vendor through a managed-by-company link, rather than owning the
|
|
40
|
+
* vendor, gets a `403`: that company can't change its own access rights or another company's.
|
|
41
|
+
* Facility and system users get a `403` too.
|
|
42
|
+
*
|
|
43
|
+
* If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
|
|
44
|
+
* as for an ID that doesn't exist.
|
|
36
45
|
*
|
|
37
46
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
47
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { GreenSecurityCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, queryJoin } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -40,6 +40,8 @@ import {
|
|
|
40
40
|
*
|
|
41
41
|
* **Permissions.** Requires the `zones.view` permission.
|
|
42
42
|
*
|
|
43
|
+
* The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
|
|
44
|
+
*
|
|
43
45
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
46
|
*/
|
|
45
47
|
export function zonesListOrSearchSecurityZones(
|
|
@@ -108,18 +110,23 @@ async function $do(
|
|
|
108
110
|
|
|
109
111
|
const path = pathToFunc("/security_zones")();
|
|
110
112
|
|
|
111
|
-
const query =
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
const query = queryJoin(
|
|
114
|
+
encodeFormQuery({
|
|
115
|
+
"expand": payload.expand,
|
|
116
|
+
}, { explode: false }),
|
|
117
|
+
encodeFormQuery({
|
|
118
|
+
"contact_id": payload.contact_id,
|
|
119
|
+
"desc": payload.desc,
|
|
120
|
+
"facility_id": payload.facility_id,
|
|
121
|
+
"green_location_id": payload.green_location_id,
|
|
122
|
+
"items_per_page": payload.items_per_page,
|
|
123
|
+
"latitude": payload.latitude,
|
|
124
|
+
"longitude": payload.longitude,
|
|
125
|
+
"name_like": payload.name_like,
|
|
126
|
+
"page": payload.page,
|
|
127
|
+
"sort": payload.sort,
|
|
128
|
+
}),
|
|
129
|
+
);
|
|
123
130
|
|
|
124
131
|
const headers = new Headers(compactMap({
|
|
125
132
|
Accept: "application/json",
|
package/src/index.extras.ts
CHANGED
|
@@ -40,6 +40,8 @@ import { smartBadgeGetPsks } from "./admin-funcs/smartBadgeGetPsks.js";
|
|
|
40
40
|
import { smartBadgeReportVerifiedPsk } from "./admin-funcs/smartBadgeReportVerifiedPsk.js";
|
|
41
41
|
|
|
42
42
|
import { notifyVendorCredentialFileUploaded } from "./admin-funcs/notifyVendorCredentialFileUploaded.js";
|
|
43
|
+
import { vendorCredentialGetFormLineItems } from "./admin-funcs/vendorCredentialGetFormLineItems.js";
|
|
44
|
+
import { vendorCredentialCreateFormQuote } from "./admin-funcs/vendorCredentialCreateFormQuote.js";
|
|
43
45
|
import { companyManagerGetPaymentForm } from "./admin-funcs/companyManagerGetPaymentForm.js";
|
|
44
46
|
import { vendorGetPaymentForm } from "./admin-funcs/vendorGetPaymentForm.js";
|
|
45
47
|
import { vendorGetSystemsRequiringSmartBadge } from "./admin-funcs/vendorGetSystemsRequiringSmartBadge.js";
|
|
@@ -57,6 +59,11 @@ import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
|
|
|
57
59
|
import { appsListInstalledApps } from "./admin-funcs/appsListInstalledApps.js";
|
|
58
60
|
import { appsExchangeToken } from "./admin-funcs/appsExchangeToken.js";
|
|
59
61
|
import { appsApproveDevice } from "./admin-funcs/appsApproveDevice.js";
|
|
62
|
+
import { networksList } from "./admin-funcs/networksList.js";
|
|
63
|
+
import { networksGet } from "./admin-funcs/networksGet.js";
|
|
64
|
+
import { networksCreate } from "./admin-funcs/networksCreate.js";
|
|
65
|
+
import { zoneDevicesList } from "./admin-funcs/zoneDevicesList.js";
|
|
66
|
+
import { zoneDevicesGet } from "./admin-funcs/zoneDevicesGet.js";
|
|
60
67
|
|
|
61
68
|
// Third-party app platform contract (surfaces, manifest, host/sandbox protocol, components).
|
|
62
69
|
export * as apps from "./apps/index.js";
|
|
@@ -120,6 +127,11 @@ export const __internal = {
|
|
|
120
127
|
notifyUploaded: notifyVendorCredentialFileUploaded
|
|
121
128
|
},
|
|
122
129
|
|
|
130
|
+
vendorCredential: {
|
|
131
|
+
getFormLineItems: vendorCredentialGetFormLineItems,
|
|
132
|
+
createFormQuote: vendorCredentialCreateFormQuote
|
|
133
|
+
},
|
|
134
|
+
|
|
123
135
|
communications: {
|
|
124
136
|
list: listCommunications,
|
|
125
137
|
dismiss: dismissCommunication
|
|
@@ -153,5 +165,18 @@ export const __internal = {
|
|
|
153
165
|
createZoneDevice: kioskCreateZoneDevice,
|
|
154
166
|
createEvent: kioskCreateEvent,
|
|
155
167
|
heartbeat: kioskHeartbeat
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
// Gatekeeper provisioning: the network a facility's devices join, and the
|
|
171
|
+
// inventory of the devices themselves.
|
|
172
|
+
networks: {
|
|
173
|
+
list: networksList,
|
|
174
|
+
get: networksGet,
|
|
175
|
+
create: networksCreate
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
zoneDevices: {
|
|
179
|
+
list: zoneDevicesList,
|
|
180
|
+
get: zoneDevicesGet
|
|
156
181
|
}
|
|
157
182
|
};
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.45.0",
|
|
83
|
-
sdkVersion: "0.46.0-beta.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.46.0-beta.8",
|
|
84
|
+
genVersion: "2.943.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.46.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.46.0-beta.8 2.943.0 0.45.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -60,6 +60,10 @@ export type AuthenticateSuccessResponseInventoryManager = {};
|
|
|
60
60
|
* and the login therefore has a SAML flow waiting to be finished.
|
|
61
61
|
*/
|
|
62
62
|
export type AuthenticateSuccessResponse = {
|
|
63
|
+
/**
|
|
64
|
+
* Whether the user may manage zone devices (the `zone_devices.view` permission, which the Zone Device Managers role grants). Returned only when the caller requests their own record.
|
|
65
|
+
*/
|
|
66
|
+
canManageZoneDevices?: boolean | undefined;
|
|
63
67
|
/**
|
|
64
68
|
* Whether the user is a `gatekeeper`, a special type of service user assigned to Kiosks and Apps to verify vendors using APIs that have some access to facility data.
|
|
65
69
|
*/
|
|
@@ -174,6 +178,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
|
|
|
174
178
|
z.ZodTypeDef,
|
|
175
179
|
unknown
|
|
176
180
|
> = z.object({
|
|
181
|
+
can_manage_zone_devices: types.optional(types.boolean()),
|
|
177
182
|
is_gatekeeper: types.optional(types.boolean()),
|
|
178
183
|
success: types.boolean(),
|
|
179
184
|
user: UserDetails$inboundSchema,
|
|
@@ -187,6 +192,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
|
|
|
187
192
|
sso: types.optional(SsoContinuation$inboundSchema),
|
|
188
193
|
}).transform((v) => {
|
|
189
194
|
return remap$(v, {
|
|
195
|
+
"can_manage_zone_devices": "canManageZoneDevices",
|
|
190
196
|
"is_gatekeeper": "isGatekeeper",
|
|
191
197
|
"user_token": "userToken",
|
|
192
198
|
"inventory_manager": "inventoryManager",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* How many devices of one kind exist, and how many of those are active.
|
|
13
|
+
*/
|
|
14
|
+
export type DeviceCountPair = {
|
|
15
|
+
/**
|
|
16
|
+
* Every device of this kind.
|
|
17
|
+
*/
|
|
18
|
+
total: number;
|
|
19
|
+
/**
|
|
20
|
+
* Devices that reported in recently. A gateway is active if it was seen in the last 5 minutes, and a kiosk is active if any of its devices pinged in the last 2 minutes.
|
|
21
|
+
*/
|
|
22
|
+
active: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DeviceCountPair$inboundSchema: z.ZodType<
|
|
27
|
+
DeviceCountPair,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
total: types.number(),
|
|
32
|
+
active: types.number(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type DeviceCountPair$Outbound = {
|
|
36
|
+
total: number;
|
|
37
|
+
active: number;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const DeviceCountPair$outboundSchema: z.ZodType<
|
|
42
|
+
DeviceCountPair$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
DeviceCountPair
|
|
45
|
+
> = z.object({
|
|
46
|
+
total: z.number().int(),
|
|
47
|
+
active: z.number().int(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function deviceCountPairToJSON(
|
|
51
|
+
deviceCountPair: DeviceCountPair,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(DeviceCountPair$outboundSchema.parse(deviceCountPair));
|
|
54
|
+
}
|
|
55
|
+
export function deviceCountPairFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<DeviceCountPair, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => DeviceCountPair$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'DeviceCountPair' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DeviceCountPair,
|
|
11
|
+
DeviceCountPair$inboundSchema,
|
|
12
|
+
DeviceCountPair$Outbound,
|
|
13
|
+
DeviceCountPair$outboundSchema,
|
|
14
|
+
} from "./devicecountpair.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Gateway and iPad kiosk totals, counted the same way as the zone devices inventory.
|
|
18
|
+
*/
|
|
19
|
+
export type DeviceCounts = {
|
|
20
|
+
/**
|
|
21
|
+
* How many devices of one kind exist, and how many of those are active.
|
|
22
|
+
*/
|
|
23
|
+
gateways: DeviceCountPair;
|
|
24
|
+
/**
|
|
25
|
+
* How many devices of one kind exist, and how many of those are active.
|
|
26
|
+
*/
|
|
27
|
+
kiosks: DeviceCountPair;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const DeviceCounts$inboundSchema: z.ZodType<
|
|
32
|
+
DeviceCounts,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
gateways: DeviceCountPair$inboundSchema,
|
|
37
|
+
kiosks: DeviceCountPair$inboundSchema,
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type DeviceCounts$Outbound = {
|
|
41
|
+
gateways: DeviceCountPair$Outbound;
|
|
42
|
+
kiosks: DeviceCountPair$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const DeviceCounts$outboundSchema: z.ZodType<
|
|
47
|
+
DeviceCounts$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
DeviceCounts
|
|
50
|
+
> = z.object({
|
|
51
|
+
gateways: DeviceCountPair$outboundSchema,
|
|
52
|
+
kiosks: DeviceCountPair$outboundSchema,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function deviceCountsToJSON(deviceCounts: DeviceCounts): string {
|
|
56
|
+
return JSON.stringify(DeviceCounts$outboundSchema.parse(deviceCounts));
|
|
57
|
+
}
|
|
58
|
+
export function deviceCountsFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<DeviceCounts, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => DeviceCounts$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'DeviceCounts' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -44,11 +44,11 @@ export type Department2 = {
|
|
|
44
44
|
export type EventDepartment = Department2 | number;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* An appointment, in the shape served to SDK builds `0.
|
|
47
|
+
* An appointment, in the shape served to SDK builds `0.46.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.46.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
50
|
*
|
|
51
|
-
* The boundary is the prerelease build `0.
|
|
51
|
+
* The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.46.0-beta.1` itself, every later prerelease (`0.46.0-beta.2`, `0.46.0-rc.1`) and every release from `0.46.0` up receive this shape, while an earlier prerelease of the same release—`0.46.0-alpha.1`—does not.
|
|
52
52
|
*/
|
|
53
53
|
export type Event = {
|
|
54
54
|
/**
|
|
@@ -26,6 +26,7 @@ export const Expand = {
|
|
|
26
26
|
FacilityAppointmentPolicy: "facility.appointment_policy",
|
|
27
27
|
FacilityContacts: "facility.contacts",
|
|
28
28
|
FacilityVendorCounts: "facility.vendor_counts",
|
|
29
|
+
FacilityDeviceCounts: "facility.device_counts",
|
|
29
30
|
FacilityFluCredential: "facility.flu_credential",
|
|
30
31
|
FacilityScrubsPolicy: "facility.scrubs_policy",
|
|
31
32
|
FacilitySystem: "facility.system",
|
|
@@ -126,6 +127,7 @@ export const Expand = {
|
|
|
126
127
|
ZoneFacility: "zone.facility",
|
|
127
128
|
ZoneDepartment: "zone.department",
|
|
128
129
|
ZoneRules: "zone.rules",
|
|
130
|
+
ZoneDeviceCounts: "zone.device_counts",
|
|
129
131
|
SystemFacilities: "system.facilities",
|
|
130
132
|
SystemLocation: "system.location",
|
|
131
133
|
SystemAggregate: "system.aggregate",
|