@greensecurity/javascript-sdk 0.46.0-beta.8 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +5 -4
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +10 -12
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +0 -1
- package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesList.js +0 -3
- package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
- package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +0 -3
- package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/commonjs/funcs/companiesLookupCompanies.js +0 -3
- package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.d.ts +8 -9
- package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListFeed.js +8 -9
- package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +7 -8
- package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListPendingInvitations.js +7 -8
- package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +5 -6
- package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsListStandingAppointments.js +5 -6
- package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts +0 -1
- package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsGetFacility.js +0 -1
- package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +0 -1
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -9
- package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -7
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +1 -7
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
- package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +1 -3
- package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
- package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +0 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.js +0 -1
- package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +2 -6
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +0 -14
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +0 -16
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +0 -4
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/authenticatesuccessresponse.js +0 -2
- package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
- package/dist/commonjs/models/components/event.d.ts +2 -2
- package/dist/commonjs/models/components/expand.d.ts +0 -2
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +0 -2
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +0 -6
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +0 -5
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invite.d.ts +4 -40
- package/dist/commonjs/models/components/invite.d.ts.map +1 -1
- package/dist/commonjs/models/components/invite.js +0 -20
- package/dist/commonjs/models/components/invite.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +0 -4
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +0 -2
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/zone.d.ts +0 -6
- package/dist/commonjs/models/components/zone.d.ts.map +1 -1
- package/dist/commonjs/models/components/zone.js +0 -5
- package/dist/commonjs/models/components/zone.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +0 -5
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js +0 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +0 -12
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.js +0 -12
- package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.d.ts +33 -37
- package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListFeed.js +33 -37
- package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +28 -32
- package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListPendingInvitations.js +28 -32
- package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +20 -24
- package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/commonjs/react-query/eventsListStandingAppointments.js +20 -24
- package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/commonjs/react-query/organizationsGetFacility.d.ts +0 -2
- package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsGetFacility.js +0 -2
- package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +0 -4
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +2 -9
- package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +1 -7
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +1 -7
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
- package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +1 -3
- package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
- package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +0 -2
- package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesGetSecurityZone.js +0 -2
- package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +0 -8
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/commonjs/sdk/companies.d.ts +0 -3
- package/dist/commonjs/sdk/companies.d.ts.map +1 -1
- package/dist/commonjs/sdk/companies.js +0 -3
- package/dist/commonjs/sdk/companies.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +20 -23
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +20 -23
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +0 -2
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +0 -2
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +6 -38
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +7 -39
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +0 -3
- package/dist/commonjs/sdk/zones.d.ts.map +1 -1
- package/dist/commonjs/sdk/zones.js +0 -3
- package/dist/commonjs/sdk/zones.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +5 -4
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +10 -12
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts +0 -1
- package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesList.js +0 -3
- package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
- package/dist/esm/funcs/companiesLookupCompanies.d.ts +0 -3
- package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/esm/funcs/companiesLookupCompanies.js +0 -3
- package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/funcs/eventsListFeed.d.ts +8 -9
- package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListFeed.js +8 -9
- package/dist/esm/funcs/eventsListFeed.js.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts +7 -8
- package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListPendingInvitations.js +7 -8
- package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts +5 -6
- package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/funcs/eventsListStandingAppointments.js +5 -6
- package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.d.ts +0 -1
- package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsGetFacility.js +0 -1
- package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js +0 -1
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -9
- package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -7
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js +1 -7
- package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
- package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +1 -3
- package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
- package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts +0 -1
- package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/esm/funcs/zonesGetSecurityZone.js +0 -1
- package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +3 -7
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/esm/index.extras.d.ts +0 -14
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +0 -16
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts +0 -4
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
- package/dist/esm/models/components/authenticatesuccessresponse.js +0 -2
- package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
- package/dist/esm/models/components/event.d.ts +2 -2
- package/dist/esm/models/components/expand.d.ts +0 -2
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +0 -2
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +0 -6
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +0 -5
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invite.d.ts +4 -40
- package/dist/esm/models/components/invite.d.ts.map +1 -1
- package/dist/esm/models/components/invite.js +0 -20
- package/dist/esm/models/components/invite.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +0 -4
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +0 -2
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/zone.d.ts +0 -6
- package/dist/esm/models/components/zone.d.ts.map +1 -1
- package/dist/esm/models/components/zone.js +0 -5
- package/dist/esm/models/components/zone.js.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +0 -5
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.js +0 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.d.ts +0 -12
- package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.js +0 -12
- package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/react-query/eventsListFeed.d.ts +33 -37
- package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListFeed.js +33 -37
- package/dist/esm/react-query/eventsListFeed.js.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts +28 -32
- package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListPendingInvitations.js +28 -32
- package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts +20 -24
- package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
- package/dist/esm/react-query/eventsListStandingAppointments.js +20 -24
- package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
- package/dist/esm/react-query/organizationsGetFacility.d.ts +0 -2
- package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsGetFacility.js +0 -2
- package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js +0 -4
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +2 -9
- package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +1 -7
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.js +1 -7
- package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
- package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +1 -3
- package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
- package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts +0 -2
- package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
- package/dist/esm/react-query/zonesGetSecurityZone.js +0 -2
- package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +0 -8
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
- package/dist/esm/sdk/companies.d.ts +0 -3
- package/dist/esm/sdk/companies.d.ts.map +1 -1
- package/dist/esm/sdk/companies.js +0 -3
- package/dist/esm/sdk/companies.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +20 -23
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +20 -23
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +0 -2
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +0 -2
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +6 -38
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +7 -39
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +0 -3
- package/dist/esm/sdk/zones.d.ts.map +1 -1
- package/dist/esm/sdk/zones.js +0 -3
- 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 +5 -4
- package/src/__tests__/zones.test.ts +10 -12
- package/src/admin-funcs/zoneDevicesList.ts +0 -4
- package/src/funcs/companiesLookupCompanies.ts +0 -3
- package/src/funcs/eventsListFeed.ts +8 -9
- package/src/funcs/eventsListPendingInvitations.ts +7 -8
- package/src/funcs/eventsListStandingAppointments.ts +5 -6
- package/src/funcs/organizationsGetFacility.ts +0 -1
- package/src/funcs/organizationsListOrSearchFacilities.ts +0 -1
- package/src/funcs/vendorsAddVendorManagedByCompany.ts +2 -9
- package/src/funcs/vendorsCreateVendorCompany.ts +1 -7
- package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +1 -9
- package/src/funcs/vendorsUpdateVendorCustomField.ts +1 -3
- package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +1 -10
- package/src/funcs/zonesGetSecurityZone.ts +0 -1
- package/src/funcs/zonesListOrSearchSecurityZones.ts +13 -20
- package/src/index.extras.ts +0 -18
- package/src/lib/config.ts +4 -4
- package/src/models/components/authenticatesuccessresponse.ts +0 -6
- package/src/models/components/event.ts +2 -2
- package/src/models/components/expand.ts +0 -2
- package/src/models/components/facility.ts +0 -15
- package/src/models/components/index.ts +0 -2
- package/src/models/components/invite.ts +4 -60
- package/src/models/components/user.ts +0 -6
- package/src/models/components/zone.ts +0 -15
- package/src/models/operations/listorsearchsecurityzones.ts +0 -6
- package/src/react-query/companiesLookupCompanies.ts +0 -12
- package/src/react-query/eventsListFeed.ts +32 -36
- package/src/react-query/eventsListPendingInvitations.ts +28 -32
- package/src/react-query/eventsListStandingAppointments.ts +20 -24
- package/src/react-query/organizationsGetFacility.ts +0 -2
- package/src/react-query/organizationsListOrSearchFacilities.ts +0 -4
- package/src/react-query/vendorsAddVendorManagedByCompany.ts +2 -9
- package/src/react-query/vendorsCreateVendorCompany.ts +1 -7
- package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +1 -9
- package/src/react-query/vendorsUpdateVendorCustomField.ts +1 -3
- package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +1 -10
- package/src/react-query/zonesGetSecurityZone.ts +0 -2
- package/src/react-query/zonesListOrSearchSecurityZones.core.ts +0 -4
- package/src/react-query/zonesListOrSearchSecurityZones.ts +0 -10
- package/src/sdk/companies.ts +0 -3
- package/src/sdk/events.ts +20 -23
- package/src/sdk/organizations.ts +0 -2
- package/src/sdk/vendors.ts +7 -39
- package/src/sdk/zones.ts +0 -3
- package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +0 -2
- package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/zoneDevicesList.test.js +0 -31
- package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +0 -1
- package/dist/commonjs/models/components/devicecountpair.d.ts +0 -28
- package/dist/commonjs/models/components/devicecountpair.d.ts.map +0 -1
- package/dist/commonjs/models/components/devicecountpair.js +0 -61
- package/dist/commonjs/models/components/devicecountpair.js.map +0 -1
- package/dist/commonjs/models/components/devicecounts.d.ts +0 -29
- package/dist/commonjs/models/components/devicecounts.d.ts.map +0 -1
- package/dist/commonjs/models/components/devicecounts.js +0 -61
- package/dist/commonjs/models/components/devicecounts.js.map +0 -1
- package/dist/esm/__tests__/zoneDevicesList.test.d.ts +0 -2
- package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +0 -1
- package/dist/esm/__tests__/zoneDevicesList.test.js +0 -29
- package/dist/esm/__tests__/zoneDevicesList.test.js.map +0 -1
- package/dist/esm/models/components/devicecountpair.d.ts +0 -28
- package/dist/esm/models/components/devicecountpair.d.ts.map +0 -1
- package/dist/esm/models/components/devicecountpair.js +0 -23
- package/dist/esm/models/components/devicecountpair.js.map +0 -1
- package/dist/esm/models/components/devicecounts.d.ts +0 -29
- package/dist/esm/models/components/devicecounts.d.ts.map +0 -1
- package/dist/esm/models/components/devicecounts.js +0 -23
- package/dist/esm/models/components/devicecounts.js.map +0 -1
- package/src/__tests__/zoneDevicesList.test.ts +0 -37
- package/src/models/components/devicecountpair.ts +0 -63
- package/src/models/components/devicecounts.ts +0 -66
|
@@ -35,27 +35,27 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
35
35
|
useUrlParams: false,
|
|
36
36
|
},
|
|
37
37
|
items: [
|
|
38
|
+
{
|
|
39
|
+
facility: {},
|
|
40
|
+
},
|
|
38
41
|
{
|
|
39
42
|
facility: {
|
|
40
43
|
contacts: {
|
|
41
44
|
contact: {
|
|
42
45
|
status: "Deleted",
|
|
43
|
-
department:
|
|
44
|
-
},
|
|
45
|
-
adminContact: {
|
|
46
|
-
status: "Active",
|
|
47
|
-
department: 123,
|
|
46
|
+
department: null,
|
|
48
47
|
},
|
|
48
|
+
adminContact: null,
|
|
49
49
|
techContact: {
|
|
50
50
|
status: "Deleted",
|
|
51
51
|
department: 123,
|
|
52
52
|
},
|
|
53
53
|
greenSecurityCsm: {
|
|
54
54
|
status: "Inactive",
|
|
55
|
-
department:
|
|
55
|
+
department: null,
|
|
56
56
|
},
|
|
57
57
|
accountManager: {
|
|
58
|
-
status: "
|
|
58
|
+
status: "Inactive",
|
|
59
59
|
department: 123,
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -66,9 +66,6 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
-
{
|
|
70
|
-
facility: {},
|
|
71
|
-
},
|
|
72
69
|
],
|
|
73
70
|
});
|
|
74
71
|
});
|
|
@@ -85,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
85
82
|
});
|
|
86
83
|
|
|
87
84
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
longitude: 1088.53,
|
|
86
|
+
latitude: 6020.88,
|
|
87
|
+
zoneId: 654096,
|
|
90
88
|
});
|
|
91
89
|
expect(result).toBeDefined();
|
|
92
90
|
expect(result).toEqual({});
|
|
@@ -5,7 +5,6 @@ export type zoneDevicesListSortField = "id" | "name";
|
|
|
5
5
|
|
|
6
6
|
export type zoneDevicesListRequest = {
|
|
7
7
|
facilityId?: number;
|
|
8
|
-
zoneId?: number;
|
|
9
8
|
page?: number;
|
|
10
9
|
itemsPerPage?: number;
|
|
11
10
|
sort?: zoneDevicesListSortField;
|
|
@@ -33,9 +32,6 @@ export function zoneDevicesList(
|
|
|
33
32
|
if (request.facilityId !== undefined) {
|
|
34
33
|
query["facility_id"] = request.facilityId;
|
|
35
34
|
}
|
|
36
|
-
if (request.zoneId !== undefined) {
|
|
37
|
-
query["zone_id"] = request.zoneId;
|
|
38
|
-
}
|
|
39
35
|
if (request.page !== undefined) {
|
|
40
36
|
query["page"] = request.page;
|
|
41
37
|
}
|
|
@@ -38,9 +38,6 @@ 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
|
-
*
|
|
44
41
|
* **Permissions.** Requires the `companies.view` permission.
|
|
45
42
|
*
|
|
46
43
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -41,16 +41,15 @@ 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
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* existing client keeps the shape it was generated against until you regenerate it.
|
|
44
|
+
* Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
|
|
45
|
+
* so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
|
|
46
|
+
* feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
|
|
47
|
+
* instead, in which `facility` and `department` are name strings, not ids; the server
|
|
48
|
+
* chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
|
|
49
|
+
* shape it was generated against until you regenerate it.
|
|
51
50
|
*
|
|
52
|
-
* The boundary is the prerelease build `0.
|
|
53
|
-
* `0.
|
|
51
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
52
|
+
* `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
|
|
54
53
|
* build against it.
|
|
55
54
|
*
|
|
56
55
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -41,16 +41,15 @@ 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
|
-
* `event
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
|
|
44
|
+
* Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
|
|
45
|
+
* so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
|
|
46
|
+
* populated—the appointment and the recipient this list has always named. This endpoint
|
|
47
|
+
* takes no `expand` parameter; the endpoint always applies both scopes.
|
|
48
|
+
* SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
|
|
50
49
|
* embeds the appointment.
|
|
51
50
|
*
|
|
52
|
-
* The boundary is the prerelease build `0.
|
|
53
|
-
* `0.
|
|
51
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
52
|
+
* `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
|
|
54
53
|
* build compares against it.
|
|
55
54
|
*
|
|
56
55
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -42,14 +42,13 @@ 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
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
|
|
45
|
+
* `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
|
|
46
|
+
* `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
|
|
47
|
+
* the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
|
|
49
48
|
* `StandingAppointment` shape instead.
|
|
50
49
|
*
|
|
51
|
-
* The boundary is the prerelease build `0.
|
|
52
|
-
* `0.
|
|
50
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
|
|
51
|
+
* `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
|
|
53
52
|
* build compares against it.
|
|
54
53
|
*
|
|
55
54
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
@@ -43,7 +43,6 @@ 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`)
|
|
47
46
|
* - `facility.appointment_policy`
|
|
48
47
|
* - `facility.vendor_policy`
|
|
49
48
|
* - `facility.vendor_guest_policy`
|
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
* - `facility.system`
|
|
46
46
|
* - `facility.contacts`
|
|
47
47
|
* - `facility.vendor_counts`
|
|
48
|
-
* - `facility.device_counts` (also requires `zone_devices.view`)
|
|
49
48
|
* - `facility.appointment_policy`
|
|
50
49
|
* - `facility.vendor_policy`
|
|
51
50
|
* - `facility.vendor_guest_policy`
|
|
@@ -30,16 +30,9 @@ 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.
|
|
34
|
-
* turned off. The company must be on the same site as the vendor. Otherwise, the API returns
|
|
35
|
-
* `404`.
|
|
33
|
+
* Adds a company as a manager of the vendor.
|
|
36
34
|
*
|
|
37
|
-
* **Permissions.** Requires the `vendors.edit` permission.
|
|
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.
|
|
35
|
+
* **Permissions.** Requires the `vendors.edit` permission.
|
|
43
36
|
*
|
|
44
37
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
45
38
|
*/
|
|
@@ -32,13 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Creates vendor company
|
|
34
34
|
*
|
|
35
|
-
* **Permissions.** Requires the `companies.add` permission.
|
|
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.
|
|
35
|
+
* **Permissions.** Requires the `companies.add` permission.
|
|
42
36
|
*
|
|
43
37
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
44
38
|
*/
|
|
@@ -33,15 +33,7 @@ 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.
|
|
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.
|
|
36
|
+
* **Permissions.** Requires the `vendors.edit` permission.
|
|
45
37
|
*
|
|
46
38
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
47
39
|
*/
|
|
@@ -40,9 +40,7 @@ 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.
|
|
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`.
|
|
43
|
+
* **Permissions.** Requires the `vendors.edit` permission.
|
|
46
44
|
*
|
|
47
45
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
48
46
|
*/
|
|
@@ -32,16 +32,7 @@ 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.
|
|
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.
|
|
35
|
+
* **Permissions.** Requires the `vendors.edit` permission.
|
|
45
36
|
*
|
|
46
37
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
47
38
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { GreenSecurityCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery
|
|
6
|
+
import { encodeFormQuery } 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,8 +40,6 @@ 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
|
-
*
|
|
45
43
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
46
44
|
*/
|
|
47
45
|
export function zonesListOrSearchSecurityZones(
|
|
@@ -110,23 +108,18 @@ async function $do(
|
|
|
110
108
|
|
|
111
109
|
const path = pathToFunc("/security_zones")();
|
|
112
110
|
|
|
113
|
-
const query =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"name_like": payload.name_like,
|
|
126
|
-
"page": payload.page,
|
|
127
|
-
"sort": payload.sort,
|
|
128
|
-
}),
|
|
129
|
-
);
|
|
111
|
+
const query = encodeFormQuery({
|
|
112
|
+
"contact_id": payload.contact_id,
|
|
113
|
+
"desc": payload.desc,
|
|
114
|
+
"facility_id": payload.facility_id,
|
|
115
|
+
"green_location_id": payload.green_location_id,
|
|
116
|
+
"items_per_page": payload.items_per_page,
|
|
117
|
+
"latitude": payload.latitude,
|
|
118
|
+
"longitude": payload.longitude,
|
|
119
|
+
"name_like": payload.name_like,
|
|
120
|
+
"page": payload.page,
|
|
121
|
+
"sort": payload.sort,
|
|
122
|
+
});
|
|
130
123
|
|
|
131
124
|
const headers = new Headers(compactMap({
|
|
132
125
|
Accept: "application/json",
|
package/src/index.extras.ts
CHANGED
|
@@ -59,11 +59,6 @@ import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
|
|
|
59
59
|
import { appsListInstalledApps } from "./admin-funcs/appsListInstalledApps.js";
|
|
60
60
|
import { appsExchangeToken } from "./admin-funcs/appsExchangeToken.js";
|
|
61
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";
|
|
67
62
|
|
|
68
63
|
// Third-party app platform contract (surfaces, manifest, host/sandbox protocol, components).
|
|
69
64
|
export * as apps from "./apps/index.js";
|
|
@@ -165,18 +160,5 @@ export const __internal = {
|
|
|
165
160
|
createZoneDevice: kioskCreateZoneDevice,
|
|
166
161
|
createEvent: kioskCreateEvent,
|
|
167
162
|
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
|
|
181
163
|
}
|
|
182
164
|
};
|
package/src/lib/config.ts
CHANGED
|
@@ -79,9 +79,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
79
79
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
|
-
openapiDocVersion: "0.
|
|
83
|
-
sdkVersion: "0.46.0
|
|
84
|
-
genVersion: "2.
|
|
82
|
+
openapiDocVersion: "0.46.0",
|
|
83
|
+
sdkVersion: "0.46.0",
|
|
84
|
+
genVersion: "2.941.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.46.0
|
|
86
|
+
"speakeasy-sdk/typescript 0.46.0 2.941.0 0.46.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -60,10 +60,6 @@ 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;
|
|
67
63
|
/**
|
|
68
64
|
* 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.
|
|
69
65
|
*/
|
|
@@ -178,7 +174,6 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
|
|
|
178
174
|
z.ZodTypeDef,
|
|
179
175
|
unknown
|
|
180
176
|
> = z.object({
|
|
181
|
-
can_manage_zone_devices: types.optional(types.boolean()),
|
|
182
177
|
is_gatekeeper: types.optional(types.boolean()),
|
|
183
178
|
success: types.boolean(),
|
|
184
179
|
user: UserDetails$inboundSchema,
|
|
@@ -192,7 +187,6 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
|
|
|
192
187
|
sso: types.optional(SsoContinuation$inboundSchema),
|
|
193
188
|
}).transform((v) => {
|
|
194
189
|
return remap$(v, {
|
|
195
|
-
"can_manage_zone_devices": "canManageZoneDevices",
|
|
196
190
|
"is_gatekeeper": "isGatekeeper",
|
|
197
191
|
"user_token": "userToken",
|
|
198
192
|
"inventory_manager": "inventoryManager",
|
|
@@ -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.55.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.55.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
50
|
*
|
|
51
|
-
* The boundary is the prerelease build `0.
|
|
51
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release—`0.55.0-alpha.1`—does not.
|
|
52
52
|
*/
|
|
53
53
|
export type Event = {
|
|
54
54
|
/**
|
|
@@ -26,7 +26,6 @@ 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",
|
|
30
29
|
FacilityFluCredential: "facility.flu_credential",
|
|
31
30
|
FacilityScrubsPolicy: "facility.scrubs_policy",
|
|
32
31
|
FacilitySystem: "facility.system",
|
|
@@ -127,7 +126,6 @@ export const Expand = {
|
|
|
127
126
|
ZoneFacility: "zone.facility",
|
|
128
127
|
ZoneDepartment: "zone.department",
|
|
129
128
|
ZoneRules: "zone.rules",
|
|
130
|
-
ZoneDeviceCounts: "zone.device_counts",
|
|
131
129
|
SystemFacilities: "system.facilities",
|
|
132
130
|
SystemLocation: "system.location",
|
|
133
131
|
SystemAggregate: "system.aggregate",
|
|
@@ -17,12 +17,6 @@ import {
|
|
|
17
17
|
Contact$Outbound,
|
|
18
18
|
Contact$outboundSchema,
|
|
19
19
|
} from "./contact.js";
|
|
20
|
-
import {
|
|
21
|
-
DeviceCounts,
|
|
22
|
-
DeviceCounts$inboundSchema,
|
|
23
|
-
DeviceCounts$Outbound,
|
|
24
|
-
DeviceCounts$outboundSchema,
|
|
25
|
-
} from "./devicecounts.js";
|
|
26
20
|
import {
|
|
27
21
|
FacilityVendorType,
|
|
28
22
|
FacilityVendorType$inboundSchema,
|
|
@@ -410,10 +404,6 @@ export type Facility = {
|
|
|
410
404
|
* Counts of vendors associated with the facility, grouped by relationship, subscription status, and approval status. Present only when `facility.vendor_counts` is in `expand`.
|
|
411
405
|
*/
|
|
412
406
|
vendorCounts?: VendorCounts | null | undefined;
|
|
413
|
-
/**
|
|
414
|
-
* Gateway and iPad kiosk totals across the facility's zones. Present only when `facility.device_counts` is in `expand` and the caller holds `zone_devices.view`, otherwise `null`.
|
|
415
|
-
*/
|
|
416
|
-
deviceCounts?: DeviceCounts | null | undefined;
|
|
417
407
|
/**
|
|
418
408
|
* The email domain associated with the facility, or `null` if none is set.
|
|
419
409
|
*/
|
|
@@ -1302,7 +1292,6 @@ export const Facility$inboundSchema: z.ZodType<
|
|
|
1302
1292
|
contacts: z.nullable(z.lazy(() => Contacts$inboundSchema)).optional(),
|
|
1303
1293
|
vendor_counts: z.nullable(z.lazy(() => VendorCounts$inboundSchema))
|
|
1304
1294
|
.optional(),
|
|
1305
|
-
device_counts: z.nullable(DeviceCounts$inboundSchema).optional(),
|
|
1306
1295
|
email_domain: z.nullable(types.string()).optional(),
|
|
1307
1296
|
facility_type: z.nullable(types.string()).optional(),
|
|
1308
1297
|
flu_credential: types.optional(z.lazy(() => FluCredential$inboundSchema)),
|
|
@@ -1330,7 +1319,6 @@ export const Facility$inboundSchema: z.ZodType<
|
|
|
1330
1319
|
return remap$(v, {
|
|
1331
1320
|
"appointment_policy": "appointmentPolicy",
|
|
1332
1321
|
"vendor_counts": "vendorCounts",
|
|
1333
|
-
"device_counts": "deviceCounts",
|
|
1334
1322
|
"email_domain": "emailDomain",
|
|
1335
1323
|
"facility_type": "facilityType",
|
|
1336
1324
|
"flu_credential": "fluCredential",
|
|
@@ -1347,7 +1335,6 @@ export type Facility$Outbound = {
|
|
|
1347
1335
|
appointment_policy?: AppointmentPolicy$Outbound | null | undefined;
|
|
1348
1336
|
contacts?: Contacts$Outbound | null | undefined;
|
|
1349
1337
|
vendor_counts?: VendorCounts$Outbound | null | undefined;
|
|
1350
|
-
device_counts?: DeviceCounts$Outbound | null | undefined;
|
|
1351
1338
|
email_domain?: string | null | undefined;
|
|
1352
1339
|
facility_type?: string | null | undefined;
|
|
1353
1340
|
flu_credential?: FluCredential$Outbound | undefined;
|
|
@@ -1377,7 +1364,6 @@ export const Facility$outboundSchema: z.ZodType<
|
|
|
1377
1364
|
contacts: z.nullable(z.lazy(() => Contacts$outboundSchema)).optional(),
|
|
1378
1365
|
vendorCounts: z.nullable(z.lazy(() => VendorCounts$outboundSchema))
|
|
1379
1366
|
.optional(),
|
|
1380
|
-
deviceCounts: z.nullable(DeviceCounts$outboundSchema).optional(),
|
|
1381
1367
|
emailDomain: z.nullable(z.string()).optional(),
|
|
1382
1368
|
facilityType: z.nullable(z.string()).optional(),
|
|
1383
1369
|
fluCredential: z.lazy(() => FluCredential$outboundSchema).optional(),
|
|
@@ -1404,7 +1390,6 @@ export const Facility$outboundSchema: z.ZodType<
|
|
|
1404
1390
|
return remap$(v, {
|
|
1405
1391
|
appointmentPolicy: "appointment_policy",
|
|
1406
1392
|
vendorCounts: "vendor_counts",
|
|
1407
|
-
deviceCounts: "device_counts",
|
|
1408
1393
|
emailDomain: "email_domain",
|
|
1409
1394
|
facilityType: "facility_type",
|
|
1410
1395
|
fluCredential: "flu_credential",
|
|
@@ -30,8 +30,6 @@ export * from "./department.js";
|
|
|
30
30
|
export * from "./departmentmembership.js";
|
|
31
31
|
export * from "./departmentsummary.js";
|
|
32
32
|
export * from "./desc.js";
|
|
33
|
-
export * from "./devicecountpair.js";
|
|
34
|
-
export * from "./devicecounts.js";
|
|
35
33
|
export * from "./distributor.js";
|
|
36
34
|
export * from "./distributorcreate.js";
|
|
37
35
|
export * from "./distributorupdate.js";
|
|
@@ -21,42 +21,10 @@ export type Event2 = {
|
|
|
21
21
|
* The name of the event, or `null` if not set.
|
|
22
22
|
*/
|
|
23
23
|
name: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* Start date and time in UTC (ISO 8601 format, for example, 2026-02-23T14:00:00Z). `null` if not set.
|
|
26
|
-
*/
|
|
27
|
-
start?: string | null | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* End date and time in UTC (ISO 8601 format, for example, 2026-02-23T15:00:00Z). `null` if not set.
|
|
30
|
-
*/
|
|
31
|
-
end?: string | null | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the appointment lasts all day, or `null` if not set.
|
|
34
|
-
*/
|
|
35
|
-
allDay?: boolean | null | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the appointment is a standing appointment, or `null` if not set.
|
|
38
|
-
*/
|
|
39
|
-
standingAppt?: boolean | null | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Notes about the appointment, or `null` if there are none.
|
|
42
|
-
*/
|
|
43
|
-
notes?: string | null | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* "Facility - Department", or the facility alone for an appointment with no department. Populated when the request passes `event.location` to `expand`.
|
|
46
|
-
*/
|
|
47
|
-
location?: string | null | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* The organizer's name, qualified by their company or facility. Populated when the request passes `event.creator` to `expand`.
|
|
50
|
-
*/
|
|
51
|
-
eventCreator?: string | null | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* The URL of the organizer's thumbnail image. Populated when the request passes `event.creator` to `expand`; `null` without it, or when the organizer has no image.
|
|
54
|
-
*/
|
|
55
|
-
eventCreatorImgUrl?: string | null | undefined;
|
|
56
24
|
};
|
|
57
25
|
|
|
58
26
|
/**
|
|
59
|
-
* The event id, or a summary when the request passes `invite.event` to `expand`.
|
|
27
|
+
* The event id, or a summary when the request passes `invite.event` to `expand`.
|
|
60
28
|
*/
|
|
61
29
|
export type InviteEvent = Event2 | number;
|
|
62
30
|
|
|
@@ -102,18 +70,14 @@ export type Invitee = {
|
|
|
102
70
|
* The type of the invitee: `user`, `department`, or `company`.
|
|
103
71
|
*/
|
|
104
72
|
type?: InviteType | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* The URL of the invitee's thumbnail image. `null` for a department or company invitation, and for a user who has no image.
|
|
107
|
-
*/
|
|
108
|
-
imgUrl?: string | null | undefined;
|
|
109
73
|
};
|
|
110
74
|
|
|
111
75
|
/**
|
|
112
|
-
* An invitation to an appointment, in the shape served to SDK builds `0.
|
|
76
|
+
* An invitation to an appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. SDK builds below `0.55.0-beta.1` receive `PendingInvitation` instead.
|
|
113
77
|
*
|
|
114
78
|
* @remarks
|
|
115
79
|
*
|
|
116
|
-
* The boundary is the prerelease build `0.
|
|
80
|
+
* The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release—`0.55.0-alpha.1`—does not.
|
|
117
81
|
*/
|
|
118
82
|
export type Invite = {
|
|
119
83
|
/**
|
|
@@ -121,7 +85,7 @@ export type Invite = {
|
|
|
121
85
|
*/
|
|
122
86
|
id?: number | undefined;
|
|
123
87
|
/**
|
|
124
|
-
* The event id, or a summary when the request passes `invite.event` to `expand`.
|
|
88
|
+
* The event id, or a summary when the request passes `invite.event` to `expand`.
|
|
125
89
|
*/
|
|
126
90
|
event?: Event2 | number | undefined;
|
|
127
91
|
/**
|
|
@@ -155,21 +119,6 @@ export const Event2$inboundSchema: z.ZodType<Event2, z.ZodTypeDef, unknown> = z
|
|
|
155
119
|
.object({
|
|
156
120
|
id: types.number(),
|
|
157
121
|
name: types.nullable(types.string()),
|
|
158
|
-
start: z.nullable(types.string()).optional(),
|
|
159
|
-
end: z.nullable(types.string()).optional(),
|
|
160
|
-
all_day: z.nullable(types.boolean()).optional(),
|
|
161
|
-
standing_appt: z.nullable(types.boolean()).optional(),
|
|
162
|
-
notes: z.nullable(types.string()).optional(),
|
|
163
|
-
location: z.nullable(types.string()).optional(),
|
|
164
|
-
event_creator: z.nullable(types.string()).optional(),
|
|
165
|
-
event_creator_img_url: z.nullable(types.string()).optional(),
|
|
166
|
-
}).transform((v) => {
|
|
167
|
-
return remap$(v, {
|
|
168
|
-
"all_day": "allDay",
|
|
169
|
-
"standing_appt": "standingAppt",
|
|
170
|
-
"event_creator": "eventCreator",
|
|
171
|
-
"event_creator_img_url": "eventCreatorImgUrl",
|
|
172
|
-
});
|
|
173
122
|
});
|
|
174
123
|
|
|
175
124
|
export function event2FromJSON(
|
|
@@ -219,11 +168,6 @@ export const Invitee$inboundSchema: z.ZodType<Invitee, z.ZodTypeDef, unknown> =
|
|
|
219
168
|
id: types.optional(types.number()),
|
|
220
169
|
name: z.nullable(types.string()).optional(),
|
|
221
170
|
type: types.optional(InviteType$inboundSchema),
|
|
222
|
-
img_url: z.nullable(types.string()).optional(),
|
|
223
|
-
}).transform((v) => {
|
|
224
|
-
return remap$(v, {
|
|
225
|
-
"img_url": "imgUrl",
|
|
226
|
-
});
|
|
227
171
|
});
|
|
228
172
|
|
|
229
173
|
export function inviteeFromJSON(
|
|
@@ -50,10 +50,6 @@ export type InventoryManager = {};
|
|
|
50
50
|
* The User object describes a person or service account.
|
|
51
51
|
*/
|
|
52
52
|
export type User = {
|
|
53
|
-
/**
|
|
54
|
-
* 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.
|
|
55
|
-
*/
|
|
56
|
-
canManageZoneDevices?: boolean | undefined;
|
|
57
53
|
/**
|
|
58
54
|
* 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.
|
|
59
55
|
*/
|
|
@@ -139,7 +135,6 @@ export function inventoryManagerFromJSON(
|
|
|
139
135
|
/** @internal */
|
|
140
136
|
export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
141
137
|
.object({
|
|
142
|
-
can_manage_zone_devices: types.optional(types.boolean()),
|
|
143
138
|
is_gatekeeper: types.optional(types.boolean()),
|
|
144
139
|
success: types.boolean(),
|
|
145
140
|
user: UserDetails$inboundSchema,
|
|
@@ -152,7 +147,6 @@ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
|
152
147
|
company: z.nullable(Company$inboundSchema).optional(),
|
|
153
148
|
}).transform((v) => {
|
|
154
149
|
return remap$(v, {
|
|
155
|
-
"can_manage_zone_devices": "canManageZoneDevices",
|
|
156
150
|
"is_gatekeeper": "isGatekeeper",
|
|
157
151
|
"user_token": "userToken",
|
|
158
152
|
"inventory_manager": "inventoryManager",
|