@c8y/client 1018.486.5 → 1018.496.6
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/NOTICES +1 -1
- package/lib/bundles/client.umd.js +49 -7
- package/lib/bundles/client.umd.js.map +1 -1
- package/lib/bundles/client.umd.min.js +1 -1
- package/lib/bundles/client.umd.min.js.map +1 -1
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/src/Client.d.ts +190 -0
- package/lib/cjs/src/alarm/AlarmService.d.ts +98 -0
- package/lib/cjs/src/alarm/AlarmStatus.d.ts +9 -0
- package/lib/cjs/src/alarm/IAlarm.d.ts +57 -0
- package/lib/cjs/src/alarm/index.d.ts +4 -0
- package/lib/cjs/src/application/ApplicationAvailability.d.ts +6 -0
- package/lib/cjs/src/application/ApplicationBinaryService.d.ts +40 -0
- package/lib/cjs/src/application/ApplicationService.d.ts +325 -0
- package/lib/cjs/src/application/ApplicationService.js +13 -2
- package/lib/cjs/src/application/ApplicationService.js.map +1 -1
- package/lib/cjs/src/application/ApplicationType.d.ts +7 -0
- package/lib/cjs/src/application/BillingMode.d.ts +5 -0
- package/lib/cjs/src/application/IApplication.d.ts +22 -0
- package/lib/cjs/src/application/IApplicationBinary.d.ts +9 -0
- package/lib/cjs/src/application/IApplicationInstanceDetails.d.ts +68 -0
- package/lib/cjs/src/application/IApplicationReference.d.ts +16 -0
- package/lib/cjs/src/application/IApplicationVersion.d.ts +15 -0
- package/lib/cjs/src/application/IDeviceRegistrationProvider.d.ts +7 -0
- package/lib/cjs/src/application/IManifest.d.ts +34 -0
- package/lib/cjs/src/application/IProvider.d.ts +6 -0
- package/lib/cjs/src/application/IUploadParamsOverride.d.ts +7 -0
- package/lib/cjs/src/application/Isolation.d.ts +5 -0
- package/lib/cjs/src/application/index.d.ts +16 -0
- package/lib/cjs/src/audit/AuditRecordType.d.ts +19 -0
- package/lib/cjs/src/audit/AuditService.d.ts +72 -0
- package/lib/cjs/src/audit/ChangeType.d.ts +9 -0
- package/lib/cjs/src/audit/IAuditRecord.d.ts +36 -0
- package/lib/cjs/src/audit/IChange.d.ts +28 -0
- package/lib/cjs/src/audit/index.d.ts +6 -0
- package/lib/cjs/src/core/BasicAuth.d.ts +25 -0
- package/lib/cjs/src/core/BearerAuth.d.ts +13 -0
- package/lib/cjs/src/core/CookieAuth.d.ts +19 -0
- package/lib/cjs/src/core/FetchClient.d.ts +18 -0
- package/lib/cjs/src/core/IAuthentication.d.ts +23 -0
- package/lib/cjs/src/core/ICustomProperties.d.ts +8 -0
- package/lib/cjs/src/core/ICustomPropertiesMap.d.ts +5 -0
- package/lib/cjs/src/core/IFetchClient.d.ts +10 -0
- package/lib/cjs/src/core/IFetchOptions.d.ts +21 -0
- package/lib/cjs/src/core/IFetchResponse.d.ts +26 -0
- package/lib/cjs/src/core/IIdentified.d.ts +6 -0
- package/lib/cjs/src/core/IMicroserviceSubscriptions.d.ts +16 -0
- package/lib/cjs/src/core/INamed.d.ts +5 -0
- package/lib/cjs/src/core/IResult.d.ts +26 -0
- package/lib/cjs/src/core/IResultBase.d.ts +6 -0
- package/lib/cjs/src/core/IResultList.d.ts +36 -0
- package/lib/cjs/src/core/ISource.d.ts +18 -0
- package/lib/cjs/src/core/MicroserviceClientRequestAuth.d.ts +32 -0
- package/lib/cjs/src/core/NodeJSCookieAuth.d.ts +11 -0
- package/lib/cjs/src/core/Paging.d.ts +63 -0
- package/lib/cjs/src/core/QueriesUtil.d.ts +95 -0
- package/lib/cjs/src/core/Service.d.ts +45 -0
- package/lib/cjs/src/core/Severity.d.ts +11 -0
- package/lib/cjs/src/core/index.d.ts +23 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationBulkService.d.ts +41 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationSecurityMode.d.ts +9 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationService.d.ts +199 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationStatus.d.ts +10 -0
- package/lib/cjs/src/device-registration/IDeviceCredentials.d.ts +23 -0
- package/lib/cjs/src/device-registration/IDeviceRegistration.d.ts +76 -0
- package/lib/cjs/src/device-registration/IDeviceRegistrationBulkResult.d.ts +27 -0
- package/lib/cjs/src/device-registration/index.d.ts +8 -0
- package/lib/cjs/src/event/EventBinaryService.d.ts +64 -0
- package/lib/cjs/src/event/EventService.d.ts +114 -0
- package/lib/cjs/src/event/IEvent.d.ts +39 -0
- package/lib/cjs/src/event/IEventBinary.d.ts +26 -0
- package/lib/cjs/src/event/index.d.ts +5 -0
- package/lib/cjs/src/gettext.d.ts +3 -0
- package/lib/cjs/src/identity/IExternalIdentity.d.ts +24 -0
- package/lib/cjs/src/identity/IdentityService.d.ts +102 -0
- package/lib/cjs/src/identity/index.d.ts +3 -0
- package/lib/cjs/src/inventory/IManagedObject.d.ts +88 -0
- package/lib/cjs/src/inventory/InventoryBinaryService.d.ts +45 -0
- package/lib/cjs/src/inventory/InventoryService.d.ts +526 -0
- package/lib/cjs/src/inventory/index.d.ts +4 -0
- package/lib/cjs/src/inventory-role/InventoryRoleService.d.ts +105 -0
- package/lib/cjs/src/inventory-role/index.d.ts +2 -0
- package/lib/cjs/src/measurement/IMeasurement.d.ts +58 -0
- package/lib/cjs/src/measurement/ISeries.d.ts +58 -0
- package/lib/cjs/src/measurement/ISeriesFilter.d.ts +38 -0
- package/lib/cjs/src/measurement/MeasurementService.d.ts +121 -0
- package/lib/cjs/src/measurement/MeasurementService.js +1 -1
- package/lib/cjs/src/measurement/MeasurementService.js.map +1 -1
- package/lib/cjs/src/measurement/index.d.ts +5 -0
- package/lib/cjs/src/operation/IOperation.d.ts +24 -0
- package/lib/cjs/src/operation/IOperationBulk.d.ts +55 -0
- package/lib/cjs/src/operation/IOperationBulkProgress.d.ts +27 -0
- package/lib/cjs/src/operation/OperationBulkGeneralStatus.d.ts +14 -0
- package/lib/cjs/src/operation/OperationBulkService.d.ts +124 -0
- package/lib/cjs/src/operation/OperationBulkStatus.d.ts +10 -0
- package/lib/cjs/src/operation/OperationService.d.ts +105 -0
- package/lib/cjs/src/operation/OperationStatus.d.ts +10 -0
- package/lib/cjs/src/operation/index.d.ts +9 -0
- package/lib/cjs/src/public_api.d.ts +25 -0
- package/lib/cjs/src/realtime/MetaChannel.d.ts +7 -0
- package/lib/cjs/src/realtime/Realtime.d.ts +60 -0
- package/lib/cjs/src/realtime/Realtime.js +35 -4
- package/lib/cjs/src/realtime/Realtime.js.map +1 -1
- package/lib/cjs/src/realtime/index.d.ts +2 -0
- package/lib/cjs/src/services.d.ts +24 -0
- package/lib/cjs/src/smart-groups/SmartGroupsService.d.ts +203 -0
- package/lib/cjs/src/smart-groups/index.d.ts +2 -0
- package/lib/cjs/src/smart-rules/IRule.d.ts +20 -0
- package/lib/cjs/src/smart-rules/SmartRulesService.d.ts +87 -0
- package/lib/cjs/src/smart-rules/index.d.ts +3 -0
- package/lib/cjs/src/system-options/ISystemOption.d.ts +19 -0
- package/lib/cjs/src/system-options/SystemOptionsService.d.ts +52 -0
- package/lib/cjs/src/system-options/index.d.ts +3 -0
- package/lib/cjs/src/tenant/ICurrentTenant.d.ts +12 -0
- package/lib/cjs/src/tenant/ITenant.d.ts +23 -0
- package/lib/cjs/src/tenant/ITenantReference.d.ts +5 -0
- package/lib/cjs/src/tenant/ITfaSettings.d.ts +29 -0
- package/lib/cjs/src/tenant/TenantService.d.ts +240 -0
- package/lib/cjs/src/tenant/TenantStatus.d.ts +5 -0
- package/lib/cjs/src/tenant/TfaStrategy.d.ts +10 -0
- package/lib/cjs/src/tenant/index.d.ts +8 -0
- package/lib/cjs/src/tenant-login-options/ITenantLoginOptions.d.ts +152 -0
- package/lib/cjs/src/tenant-login-options/TenantLoginOptionsService.d.ts +170 -0
- package/lib/cjs/src/tenant-login-options/index.d.ts +3 -0
- package/lib/cjs/src/tenant-options/ITenantOption.d.ts +10 -0
- package/lib/cjs/src/tenant-options/ITenantOptionDetailParams.d.ts +11 -0
- package/lib/cjs/src/tenant-options/TenantOptionsService.d.ts +144 -0
- package/lib/cjs/src/tenant-options/index.d.ts +4 -0
- package/lib/cjs/src/tenant-security-options/ITenantSecurityOption.d.ts +8 -0
- package/lib/cjs/src/tenant-security-options/TenantSecurityOptionsService.d.ts +35 -0
- package/lib/cjs/src/tenant-security-options/index.d.ts +3 -0
- package/lib/cjs/src/trusted-certificates/ITrustedCertificate.d.ts +68 -0
- package/lib/cjs/src/trusted-certificates/TrustedCertificateService.d.ts +146 -0
- package/lib/cjs/src/trusted-certificates/index.d.ts +3 -0
- package/lib/cjs/src/user/ICurrentUser.d.ts +35 -0
- package/lib/cjs/src/user/IResetPassword.d.ts +12 -0
- package/lib/cjs/src/user/ITotp.d.ts +7 -0
- package/lib/cjs/src/user/ITotpStatus.d.ts +5 -0
- package/lib/cjs/src/user/IUser.d.ts +72 -0
- package/lib/cjs/src/user/IUserInventoryRole.d.ts +13 -0
- package/lib/cjs/src/user/PasswordStrength.d.ts +6 -0
- package/lib/cjs/src/user/UserInventoryRoleService.d.ts +101 -0
- package/lib/cjs/src/user/UserService.d.ts +364 -0
- package/lib/cjs/src/user/index.d.ts +10 -0
- package/lib/cjs/src/user-group/IDevicePermissions.d.ts +6 -0
- package/lib/cjs/src/user-group/IUserGroup.d.ts +31 -0
- package/lib/cjs/src/user-group/UserGroupService.d.ts +208 -0
- package/lib/cjs/src/user-group/index.d.ts +4 -0
- package/lib/cjs/src/user-role/IRole.d.ts +10 -0
- package/lib/cjs/src/user-role/IRoleReference.d.ts +16 -0
- package/lib/cjs/src/user-role/UserRoleService.d.ts +52 -0
- package/lib/cjs/src/user-role/index.d.ts +4 -0
- package/lib/esm2015/index.d.ts +2 -0
- package/lib/esm2015/src/Client.d.ts +190 -0
- package/lib/esm2015/src/alarm/AlarmService.d.ts +98 -0
- package/lib/esm2015/src/alarm/AlarmStatus.d.ts +9 -0
- package/lib/esm2015/src/alarm/IAlarm.d.ts +57 -0
- package/lib/esm2015/src/alarm/index.d.ts +4 -0
- package/lib/esm2015/src/application/ApplicationAvailability.d.ts +6 -0
- package/lib/esm2015/src/application/ApplicationBinaryService.d.ts +40 -0
- package/lib/esm2015/src/application/ApplicationService.d.ts +325 -0
- package/lib/esm2015/src/application/ApplicationService.js +13 -2
- package/lib/esm2015/src/application/ApplicationService.js.map +1 -1
- package/lib/esm2015/src/application/ApplicationType.d.ts +7 -0
- package/lib/esm2015/src/application/BillingMode.d.ts +5 -0
- package/lib/esm2015/src/application/IApplication.d.ts +22 -0
- package/lib/esm2015/src/application/IApplicationBinary.d.ts +9 -0
- package/lib/esm2015/src/application/IApplicationInstanceDetails.d.ts +68 -0
- package/lib/esm2015/src/application/IApplicationReference.d.ts +16 -0
- package/lib/esm2015/src/application/IApplicationVersion.d.ts +15 -0
- package/lib/esm2015/src/application/IDeviceRegistrationProvider.d.ts +7 -0
- package/lib/esm2015/src/application/IManifest.d.ts +34 -0
- package/lib/esm2015/src/application/IProvider.d.ts +6 -0
- package/lib/esm2015/src/application/IUploadParamsOverride.d.ts +7 -0
- package/lib/esm2015/src/application/Isolation.d.ts +5 -0
- package/lib/esm2015/src/application/index.d.ts +16 -0
- package/lib/esm2015/src/audit/AuditRecordType.d.ts +19 -0
- package/lib/esm2015/src/audit/AuditService.d.ts +72 -0
- package/lib/esm2015/src/audit/ChangeType.d.ts +9 -0
- package/lib/esm2015/src/audit/IAuditRecord.d.ts +36 -0
- package/lib/esm2015/src/audit/IChange.d.ts +28 -0
- package/lib/esm2015/src/audit/index.d.ts +6 -0
- package/lib/esm2015/src/core/BasicAuth.d.ts +25 -0
- package/lib/esm2015/src/core/BearerAuth.d.ts +13 -0
- package/lib/esm2015/src/core/CookieAuth.d.ts +19 -0
- package/lib/esm2015/src/core/FetchClient.d.ts +18 -0
- package/lib/esm2015/src/core/IAuthentication.d.ts +23 -0
- package/lib/esm2015/src/core/ICustomProperties.d.ts +8 -0
- package/lib/esm2015/src/core/ICustomPropertiesMap.d.ts +5 -0
- package/lib/esm2015/src/core/IFetchClient.d.ts +10 -0
- package/lib/esm2015/src/core/IFetchOptions.d.ts +21 -0
- package/lib/esm2015/src/core/IFetchResponse.d.ts +26 -0
- package/lib/esm2015/src/core/IIdentified.d.ts +6 -0
- package/lib/esm2015/src/core/IMicroserviceSubscriptions.d.ts +16 -0
- package/lib/esm2015/src/core/INamed.d.ts +5 -0
- package/lib/esm2015/src/core/IResult.d.ts +26 -0
- package/lib/esm2015/src/core/IResultBase.d.ts +6 -0
- package/lib/esm2015/src/core/IResultList.d.ts +36 -0
- package/lib/esm2015/src/core/ISource.d.ts +18 -0
- package/lib/esm2015/src/core/MicroserviceClientRequestAuth.d.ts +32 -0
- package/lib/esm2015/src/core/NodeJSCookieAuth.d.ts +11 -0
- package/lib/esm2015/src/core/Paging.d.ts +63 -0
- package/lib/esm2015/src/core/QueriesUtil.d.ts +95 -0
- package/lib/esm2015/src/core/Service.d.ts +45 -0
- package/lib/esm2015/src/core/Severity.d.ts +11 -0
- package/lib/esm2015/src/core/index.d.ts +23 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.d.ts +41 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.d.ts +9 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationService.d.ts +199 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationStatus.d.ts +10 -0
- package/lib/esm2015/src/device-registration/IDeviceCredentials.d.ts +23 -0
- package/lib/esm2015/src/device-registration/IDeviceRegistration.d.ts +76 -0
- package/lib/esm2015/src/device-registration/IDeviceRegistrationBulkResult.d.ts +27 -0
- package/lib/esm2015/src/device-registration/index.d.ts +8 -0
- package/lib/esm2015/src/event/EventBinaryService.d.ts +64 -0
- package/lib/esm2015/src/event/EventService.d.ts +114 -0
- package/lib/esm2015/src/event/IEvent.d.ts +39 -0
- package/lib/esm2015/src/event/IEventBinary.d.ts +26 -0
- package/lib/esm2015/src/event/index.d.ts +5 -0
- package/lib/esm2015/src/gettext.d.ts +3 -0
- package/lib/esm2015/src/identity/IExternalIdentity.d.ts +24 -0
- package/lib/esm2015/src/identity/IdentityService.d.ts +102 -0
- package/lib/esm2015/src/identity/index.d.ts +3 -0
- package/lib/esm2015/src/inventory/IManagedObject.d.ts +88 -0
- package/lib/esm2015/src/inventory/InventoryBinaryService.d.ts +45 -0
- package/lib/esm2015/src/inventory/InventoryService.d.ts +526 -0
- package/lib/esm2015/src/inventory/index.d.ts +4 -0
- package/lib/esm2015/src/inventory-role/InventoryRoleService.d.ts +105 -0
- package/lib/esm2015/src/inventory-role/index.d.ts +2 -0
- package/lib/esm2015/src/measurement/IMeasurement.d.ts +58 -0
- package/lib/esm2015/src/measurement/ISeries.d.ts +58 -0
- package/lib/esm2015/src/measurement/ISeriesFilter.d.ts +38 -0
- package/lib/esm2015/src/measurement/MeasurementService.d.ts +121 -0
- package/lib/esm2015/src/measurement/MeasurementService.js +1 -1
- package/lib/esm2015/src/measurement/MeasurementService.js.map +1 -1
- package/lib/esm2015/src/measurement/index.d.ts +5 -0
- package/lib/esm2015/src/operation/IOperation.d.ts +24 -0
- package/lib/esm2015/src/operation/IOperationBulk.d.ts +55 -0
- package/lib/esm2015/src/operation/IOperationBulkProgress.d.ts +27 -0
- package/lib/esm2015/src/operation/OperationBulkGeneralStatus.d.ts +14 -0
- package/lib/esm2015/src/operation/OperationBulkService.d.ts +124 -0
- package/lib/esm2015/src/operation/OperationBulkStatus.d.ts +10 -0
- package/lib/esm2015/src/operation/OperationService.d.ts +105 -0
- package/lib/esm2015/src/operation/OperationStatus.d.ts +10 -0
- package/lib/esm2015/src/operation/index.d.ts +9 -0
- package/lib/esm2015/src/public_api.d.ts +25 -0
- package/lib/esm2015/src/realtime/MetaChannel.d.ts +7 -0
- package/lib/esm2015/src/realtime/Realtime.d.ts +60 -0
- package/lib/esm2015/src/realtime/Realtime.js +36 -5
- package/lib/esm2015/src/realtime/Realtime.js.map +1 -1
- package/lib/esm2015/src/realtime/index.d.ts +2 -0
- package/lib/esm2015/src/services.d.ts +24 -0
- package/lib/esm2015/src/smart-groups/SmartGroupsService.d.ts +203 -0
- package/lib/esm2015/src/smart-groups/index.d.ts +2 -0
- package/lib/esm2015/src/smart-rules/IRule.d.ts +20 -0
- package/lib/esm2015/src/smart-rules/SmartRulesService.d.ts +87 -0
- package/lib/esm2015/src/smart-rules/index.d.ts +3 -0
- package/lib/esm2015/src/system-options/ISystemOption.d.ts +19 -0
- package/lib/esm2015/src/system-options/SystemOptionsService.d.ts +52 -0
- package/lib/esm2015/src/system-options/index.d.ts +3 -0
- package/lib/esm2015/src/tenant/ICurrentTenant.d.ts +12 -0
- package/lib/esm2015/src/tenant/ITenant.d.ts +23 -0
- package/lib/esm2015/src/tenant/ITenantReference.d.ts +5 -0
- package/lib/esm2015/src/tenant/ITfaSettings.d.ts +29 -0
- package/lib/esm2015/src/tenant/TenantService.d.ts +240 -0
- package/lib/esm2015/src/tenant/TenantStatus.d.ts +5 -0
- package/lib/esm2015/src/tenant/TfaStrategy.d.ts +10 -0
- package/lib/esm2015/src/tenant/index.d.ts +8 -0
- package/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.d.ts +152 -0
- package/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.d.ts +170 -0
- package/lib/esm2015/src/tenant-login-options/index.d.ts +3 -0
- package/lib/esm2015/src/tenant-options/ITenantOption.d.ts +10 -0
- package/lib/esm2015/src/tenant-options/ITenantOptionDetailParams.d.ts +11 -0
- package/lib/esm2015/src/tenant-options/TenantOptionsService.d.ts +144 -0
- package/lib/esm2015/src/tenant-options/index.d.ts +4 -0
- package/lib/esm2015/src/tenant-security-options/ITenantSecurityOption.d.ts +8 -0
- package/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.d.ts +35 -0
- package/lib/esm2015/src/tenant-security-options/index.d.ts +3 -0
- package/lib/esm2015/src/trusted-certificates/ITrustedCertificate.d.ts +68 -0
- package/lib/esm2015/src/trusted-certificates/TrustedCertificateService.d.ts +146 -0
- package/lib/esm2015/src/trusted-certificates/index.d.ts +3 -0
- package/lib/esm2015/src/user/ICurrentUser.d.ts +35 -0
- package/lib/esm2015/src/user/IResetPassword.d.ts +12 -0
- package/lib/esm2015/src/user/ITotp.d.ts +7 -0
- package/lib/esm2015/src/user/ITotpStatus.d.ts +5 -0
- package/lib/esm2015/src/user/IUser.d.ts +72 -0
- package/lib/esm2015/src/user/IUserInventoryRole.d.ts +13 -0
- package/lib/esm2015/src/user/PasswordStrength.d.ts +6 -0
- package/lib/esm2015/src/user/UserInventoryRoleService.d.ts +101 -0
- package/lib/esm2015/src/user/UserService.d.ts +364 -0
- package/lib/esm2015/src/user/index.d.ts +10 -0
- package/lib/esm2015/src/user-group/IDevicePermissions.d.ts +6 -0
- package/lib/esm2015/src/user-group/IUserGroup.d.ts +31 -0
- package/lib/esm2015/src/user-group/UserGroupService.d.ts +208 -0
- package/lib/esm2015/src/user-group/index.d.ts +4 -0
- package/lib/esm2015/src/user-role/IRole.d.ts +10 -0
- package/lib/esm2015/src/user-role/IRoleReference.d.ts +16 -0
- package/lib/esm2015/src/user-role/UserRoleService.d.ts +52 -0
- package/lib/esm2015/src/user-role/index.d.ts +4 -0
- package/lib/index.d.ts +1 -0
- package/lib/src/Client.d.ts +1 -0
- package/lib/src/alarm/AlarmService.d.ts +1 -0
- package/lib/src/alarm/AlarmStatus.d.ts +1 -0
- package/lib/src/alarm/IAlarm.d.ts +1 -0
- package/lib/src/alarm/index.d.ts +1 -0
- package/lib/src/application/ApplicationAvailability.d.ts +1 -0
- package/lib/src/application/ApplicationBinaryService.d.ts +1 -0
- package/lib/src/application/ApplicationService.d.ts +9 -1
- package/lib/src/application/ApplicationType.d.ts +1 -0
- package/lib/src/application/BillingMode.d.ts +1 -0
- package/lib/src/application/IApplication.d.ts +1 -0
- package/lib/src/application/IApplicationBinary.d.ts +1 -0
- package/lib/src/application/IApplicationInstanceDetails.d.ts +1 -0
- package/lib/src/application/IApplicationReference.d.ts +1 -0
- package/lib/src/application/IApplicationVersion.d.ts +1 -0
- package/lib/src/application/IDeviceRegistrationProvider.d.ts +1 -0
- package/lib/src/application/IManifest.d.ts +1 -0
- package/lib/src/application/IProvider.d.ts +1 -0
- package/lib/src/application/IUploadParamsOverride.d.ts +1 -0
- package/lib/src/application/Isolation.d.ts +1 -0
- package/lib/src/application/index.d.ts +1 -0
- package/lib/src/audit/AuditRecordType.d.ts +1 -0
- package/lib/src/audit/AuditService.d.ts +1 -0
- package/lib/src/audit/ChangeType.d.ts +1 -0
- package/lib/src/audit/IAuditRecord.d.ts +1 -0
- package/lib/src/audit/IChange.d.ts +1 -0
- package/lib/src/audit/index.d.ts +1 -0
- package/lib/src/core/BasicAuth.d.ts +1 -0
- package/lib/src/core/BearerAuth.d.ts +1 -0
- package/lib/src/core/CookieAuth.d.ts +1 -0
- package/lib/src/core/FetchClient.d.ts +1 -0
- package/lib/src/core/IAuthentication.d.ts +1 -0
- package/lib/src/core/ICustomProperties.d.ts +1 -0
- package/lib/src/core/ICustomPropertiesMap.d.ts +1 -0
- package/lib/src/core/IFetchClient.d.ts +1 -0
- package/lib/src/core/IFetchOptions.d.ts +1 -0
- package/lib/src/core/IFetchResponse.d.ts +1 -0
- package/lib/src/core/IIdentified.d.ts +1 -0
- package/lib/src/core/IMicroserviceSubscriptions.d.ts +1 -0
- package/lib/src/core/INamed.d.ts +1 -0
- package/lib/src/core/IResult.d.ts +1 -0
- package/lib/src/core/IResultBase.d.ts +1 -0
- package/lib/src/core/IResultList.d.ts +1 -0
- package/lib/src/core/ISource.d.ts +1 -0
- package/lib/src/core/MicroserviceClientRequestAuth.d.ts +1 -0
- package/lib/src/core/NodeJSCookieAuth.d.ts +1 -0
- package/lib/src/core/Paging.d.ts +1 -0
- package/lib/src/core/QueriesUtil.d.ts +1 -0
- package/lib/src/core/Service.d.ts +1 -0
- package/lib/src/core/Severity.d.ts +1 -0
- package/lib/src/core/index.d.ts +1 -0
- package/lib/src/device-registration/DeviceRegistrationBulkService.d.ts +1 -0
- package/lib/src/device-registration/DeviceRegistrationSecurityMode.d.ts +1 -0
- package/lib/src/device-registration/DeviceRegistrationService.d.ts +1 -0
- package/lib/src/device-registration/DeviceRegistrationStatus.d.ts +1 -0
- package/lib/src/device-registration/IDeviceCredentials.d.ts +1 -0
- package/lib/src/device-registration/IDeviceRegistration.d.ts +1 -0
- package/lib/src/device-registration/IDeviceRegistrationBulkResult.d.ts +1 -0
- package/lib/src/device-registration/index.d.ts +1 -0
- package/lib/src/event/EventBinaryService.d.ts +1 -0
- package/lib/src/event/EventService.d.ts +1 -0
- package/lib/src/event/IEvent.d.ts +1 -0
- package/lib/src/event/IEventBinary.d.ts +1 -0
- package/lib/src/event/index.d.ts +1 -0
- package/lib/src/gettext.d.ts +1 -0
- package/lib/src/identity/IExternalIdentity.d.ts +1 -0
- package/lib/src/identity/IdentityService.d.ts +1 -0
- package/lib/src/identity/index.d.ts +1 -0
- package/lib/src/inventory/IManagedObject.d.ts +1 -0
- package/lib/src/inventory/InventoryBinaryService.d.ts +1 -0
- package/lib/src/inventory/InventoryService.d.ts +1 -0
- package/lib/src/inventory/index.d.ts +1 -0
- package/lib/src/inventory-role/InventoryRoleService.d.ts +1 -0
- package/lib/src/inventory-role/index.d.ts +1 -0
- package/lib/src/measurement/IMeasurement.d.ts +2 -1
- package/lib/src/measurement/ISeries.d.ts +1 -0
- package/lib/src/measurement/ISeriesFilter.d.ts +1 -0
- package/lib/src/measurement/MeasurementService.d.ts +1 -0
- package/lib/src/measurement/index.d.ts +1 -0
- package/lib/src/operation/IOperation.d.ts +1 -0
- package/lib/src/operation/IOperationBulk.d.ts +1 -0
- package/lib/src/operation/IOperationBulkProgress.d.ts +1 -0
- package/lib/src/operation/OperationBulkGeneralStatus.d.ts +1 -0
- package/lib/src/operation/OperationBulkService.d.ts +1 -0
- package/lib/src/operation/OperationBulkStatus.d.ts +1 -0
- package/lib/src/operation/OperationService.d.ts +1 -0
- package/lib/src/operation/OperationStatus.d.ts +1 -0
- package/lib/src/operation/index.d.ts +1 -0
- package/lib/src/public_api.d.ts +1 -0
- package/lib/src/realtime/MetaChannel.d.ts +1 -0
- package/lib/src/realtime/Realtime.d.ts +26 -4
- package/lib/src/realtime/index.d.ts +1 -0
- package/lib/src/services.d.ts +1 -0
- package/lib/src/smart-groups/SmartGroupsService.d.ts +1 -0
- package/lib/src/smart-groups/index.d.ts +1 -0
- package/lib/src/smart-rules/IRule.d.ts +1 -0
- package/lib/src/smart-rules/SmartRulesService.d.ts +1 -0
- package/lib/src/smart-rules/index.d.ts +1 -0
- package/lib/src/system-options/ISystemOption.d.ts +1 -0
- package/lib/src/system-options/SystemOptionsService.d.ts +1 -0
- package/lib/src/system-options/index.d.ts +1 -0
- package/lib/src/tenant/ICurrentTenant.d.ts +1 -0
- package/lib/src/tenant/ITenant.d.ts +1 -0
- package/lib/src/tenant/ITenantReference.d.ts +1 -0
- package/lib/src/tenant/ITfaSettings.d.ts +1 -0
- package/lib/src/tenant/TenantService.d.ts +1 -0
- package/lib/src/tenant/TenantStatus.d.ts +1 -0
- package/lib/src/tenant/TfaStrategy.d.ts +1 -0
- package/lib/src/tenant/index.d.ts +1 -0
- package/lib/src/tenant-login-options/ITenantLoginOptions.d.ts +1 -0
- package/lib/src/tenant-login-options/TenantLoginOptionsService.d.ts +1 -0
- package/lib/src/tenant-login-options/index.d.ts +1 -0
- package/lib/src/tenant-options/ITenantOption.d.ts +1 -0
- package/lib/src/tenant-options/ITenantOptionDetailParams.d.ts +1 -0
- package/lib/src/tenant-options/TenantOptionsService.d.ts +1 -0
- package/lib/src/tenant-options/index.d.ts +1 -0
- package/lib/src/tenant-security-options/ITenantSecurityOption.d.ts +1 -0
- package/lib/src/tenant-security-options/TenantSecurityOptionsService.d.ts +1 -0
- package/lib/src/tenant-security-options/index.d.ts +1 -0
- package/lib/src/trusted-certificates/ITrustedCertificate.d.ts +1 -0
- package/lib/src/trusted-certificates/TrustedCertificateService.d.ts +1 -0
- package/lib/src/trusted-certificates/index.d.ts +1 -0
- package/lib/src/user/ICurrentUser.d.ts +1 -0
- package/lib/src/user/IResetPassword.d.ts +1 -0
- package/lib/src/user/ITotp.d.ts +1 -0
- package/lib/src/user/ITotpStatus.d.ts +1 -0
- package/lib/src/user/IUser.d.ts +1 -0
- package/lib/src/user/IUserInventoryRole.d.ts +1 -0
- package/lib/src/user/PasswordStrength.d.ts +1 -0
- package/lib/src/user/UserInventoryRoleService.d.ts +1 -0
- package/lib/src/user/UserService.d.ts +1 -0
- package/lib/src/user/index.d.ts +1 -0
- package/lib/src/user-group/IDevicePermissions.d.ts +1 -0
- package/lib/src/user-group/IUserGroup.d.ts +1 -0
- package/lib/src/user-group/UserGroupService.d.ts +1 -0
- package/lib/src/user-group/index.d.ts +1 -0
- package/lib/src/user-role/IRole.d.ts +1 -0
- package/lib/src/user-role/IRoleReference.d.ts +1 -0
- package/lib/src/user-role/UserRoleService.d.ts +1 -0
- package/lib/src/user-role/index.d.ts +1 -0
- package/package.json +9 -3
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
import { IIdentified, Service, IResult, IResultList, IFetchClient, QueriesUtil } from '../core';
|
|
2
|
+
import { IManagedObject } from './IManagedObject';
|
|
3
|
+
import { InventoryBinaryService } from './InventoryBinaryService';
|
|
4
|
+
import { Realtime } from '../realtime';
|
|
5
|
+
/**
|
|
6
|
+
* Possible types of a child.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ChildType {
|
|
9
|
+
ASSETS = "childAssets",
|
|
10
|
+
DEVICES = "childDevices",
|
|
11
|
+
ADDITIONS = "childAdditions"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* IdReference is only a combined type of string | number | IIdentified
|
|
15
|
+
*/
|
|
16
|
+
export type IdReference = string | number | IIdentified;
|
|
17
|
+
/**
|
|
18
|
+
* This class allows for managing managed objects and different child types, see [[ChildType]].
|
|
19
|
+
*/
|
|
20
|
+
export declare class InventoryService extends Service<IManagedObject> {
|
|
21
|
+
binary: InventoryBinaryService;
|
|
22
|
+
queriesUtil: QueriesUtil;
|
|
23
|
+
protected baseUrl: string;
|
|
24
|
+
protected listUrl: string;
|
|
25
|
+
protected propertyName: string;
|
|
26
|
+
protected channel: string;
|
|
27
|
+
protected inventoriesQueryParamName: string;
|
|
28
|
+
protected devicesQueryParamName: string;
|
|
29
|
+
constructor(client: IFetchClient, realtime?: Realtime);
|
|
30
|
+
/**
|
|
31
|
+
* Gets the details of managed object
|
|
32
|
+
*
|
|
33
|
+
* @param {IdReference} managedObjectOrId ManagedObject or Id of the ManagedObject.
|
|
34
|
+
* @param {object} filter Filter object.
|
|
35
|
+
*
|
|
36
|
+
* @returns Response wrapped in [[IResult]]
|
|
37
|
+
*
|
|
38
|
+
* **Example**
|
|
39
|
+
* ```typescript
|
|
40
|
+
*
|
|
41
|
+
* const managedObjId: number = 1;
|
|
42
|
+
* const filter = { withChildren: false };
|
|
43
|
+
*
|
|
44
|
+
* (async () => {
|
|
45
|
+
* const {data, res} = await inventoryService.detail(managedObjId, filter);
|
|
46
|
+
* })();
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
detail(managedObjectOrId: IdReference, filter?: object): Promise<IResult<IManagedObject>>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new managed object.
|
|
52
|
+
*
|
|
53
|
+
* @param {Partial<IManagedObject>} managedObject
|
|
54
|
+
*
|
|
55
|
+
* @returns Response wrapped in [[IResult]]
|
|
56
|
+
*
|
|
57
|
+
* **Example**
|
|
58
|
+
* ```typescript
|
|
59
|
+
*
|
|
60
|
+
* const partialManagedObj: Partial<IManagedObject> = {
|
|
61
|
+
* customFragment: 'yourData'
|
|
62
|
+
* };
|
|
63
|
+
*
|
|
64
|
+
* (async () => {
|
|
65
|
+
* const {data, res} = await inventoryService.create(partialManagedObj);
|
|
66
|
+
* })();
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
create(managedObject: Partial<IManagedObject>): Promise<IResult<IManagedObject>>;
|
|
70
|
+
/**
|
|
71
|
+
* Updates managed object data.
|
|
72
|
+
*
|
|
73
|
+
* @param {Partial<IManagedObject>} managedObject Managed object is partially updatable.
|
|
74
|
+
*
|
|
75
|
+
* @returns Response wrapped in [[IResult]]
|
|
76
|
+
*
|
|
77
|
+
* **Example**
|
|
78
|
+
* ```typescript
|
|
79
|
+
*
|
|
80
|
+
* const partialUpdateObject: Partial<IManagedObject> = {
|
|
81
|
+
* customFragment: 'Changed data',
|
|
82
|
+
* name: 'Name'
|
|
83
|
+
* };
|
|
84
|
+
*
|
|
85
|
+
* (async () => {
|
|
86
|
+
* const {data, res} = await inventoryService.update(partialUpdateObject);
|
|
87
|
+
* })();
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
update(managedObject: Partial<IManagedObject>): Promise<IResult<IManagedObject>>;
|
|
91
|
+
/**
|
|
92
|
+
* Gets the list of managed objects filtered by parameters.
|
|
93
|
+
*
|
|
94
|
+
* @returns Response wrapped in [[IResultList]]
|
|
95
|
+
*
|
|
96
|
+
* @param {object} filter Object containing filters for querying managed objects.
|
|
97
|
+
*
|
|
98
|
+
* **Example**
|
|
99
|
+
* ```typescript
|
|
100
|
+
*
|
|
101
|
+
* const filter: object = {
|
|
102
|
+
* pageSize: 100,
|
|
103
|
+
* withTotalPages: true
|
|
104
|
+
* };
|
|
105
|
+
*
|
|
106
|
+
* (async () => {
|
|
107
|
+
* const {data, res, paging} = await inventoryService.list(filter);
|
|
108
|
+
* })();
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
list(filter?: object): Promise<IResultList<IManagedObject>>;
|
|
112
|
+
/**
|
|
113
|
+
* Gets the list of all managed objects filtered and sorted by given query.
|
|
114
|
+
*
|
|
115
|
+
* @returns Response wrapped in [[IResultList]]
|
|
116
|
+
*
|
|
117
|
+
* @param {object} filter Object containing filters for querying managed objects.
|
|
118
|
+
*
|
|
119
|
+
* **Example**
|
|
120
|
+
* ```typescript
|
|
121
|
+
*
|
|
122
|
+
* const filter: object = {
|
|
123
|
+
* pageSize: 100,
|
|
124
|
+
* withTotalPages: true
|
|
125
|
+
* };
|
|
126
|
+
*
|
|
127
|
+
* const query = {
|
|
128
|
+
* name: 'MY-NAM*'
|
|
129
|
+
* }
|
|
130
|
+
*
|
|
131
|
+
* (async () => {
|
|
132
|
+
* const {data, res, paging} = await inventoryService.listQuery(query, filter);
|
|
133
|
+
* })();
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
listQuery(query: any, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
137
|
+
/**
|
|
138
|
+
* Gets the list of all devices filtered and sorted by given query.
|
|
139
|
+
*
|
|
140
|
+
* @returns Response wrapped in [[IResultList]]
|
|
141
|
+
*
|
|
142
|
+
* @param {object} filter Object containing filters for querying devices.
|
|
143
|
+
*
|
|
144
|
+
* **Example**
|
|
145
|
+
* ```typescript
|
|
146
|
+
*
|
|
147
|
+
* const filter: object = {
|
|
148
|
+
* pageSize: 100,
|
|
149
|
+
* withTotalPages: true
|
|
150
|
+
* };
|
|
151
|
+
*
|
|
152
|
+
* const query = {
|
|
153
|
+
* name: 'MY-NAM*'
|
|
154
|
+
* }
|
|
155
|
+
*
|
|
156
|
+
* (async () => {
|
|
157
|
+
* const {data, res, paging} = await inventoryService.listQueryDevices(query, filter);
|
|
158
|
+
* })();
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
listQueryDevices(query: any, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
162
|
+
/**
|
|
163
|
+
* Removes managed object with given id.
|
|
164
|
+
*
|
|
165
|
+
* @returns Response wrapped in [[IResult]]
|
|
166
|
+
*
|
|
167
|
+
* @param {IdReference} managedObjectOrId ManagedObject or Id of the ManagedObject.
|
|
168
|
+
* @param {object} params Additional query params.
|
|
169
|
+
*
|
|
170
|
+
* **Example**
|
|
171
|
+
* ```typescript
|
|
172
|
+
*
|
|
173
|
+
* const managedObjectId: number = 1;
|
|
174
|
+
* const params: any = {
|
|
175
|
+
* cascade: true
|
|
176
|
+
* }
|
|
177
|
+
*
|
|
178
|
+
* (async () => {
|
|
179
|
+
* const {data, res} = await inventoryService.delete(managedObjectId, params);
|
|
180
|
+
* })();
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
delete(managedObjectOrId: IdReference, params?: any): Promise<IResult<null>>;
|
|
184
|
+
/**
|
|
185
|
+
* Gets a list of child additions from a given managed object (parent)
|
|
186
|
+
*
|
|
187
|
+
* @returns Response wrapped in [[IResultList]]
|
|
188
|
+
*
|
|
189
|
+
* @param {IdReference} parentReference
|
|
190
|
+
* @param {object} filter
|
|
191
|
+
*
|
|
192
|
+
* **Example**
|
|
193
|
+
* ```typescript
|
|
194
|
+
* const parentReferenceId: IdReference = 1;
|
|
195
|
+
*
|
|
196
|
+
* const filter: object = {
|
|
197
|
+
* pageSize: 100,
|
|
198
|
+
* withTotalPages: true
|
|
199
|
+
* };
|
|
200
|
+
*
|
|
201
|
+
* (async () => {
|
|
202
|
+
* const {data, res, paging} = await inventoryService.childAdditionsList(parentReferenceId, filter);
|
|
203
|
+
* })();
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
childAdditionsList(parentReference: IdReference, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
207
|
+
/**
|
|
208
|
+
* Creates a new managed object as child addition to another managed object (parent)
|
|
209
|
+
*
|
|
210
|
+
* @returns Response wrapped in [[IResult]]
|
|
211
|
+
*
|
|
212
|
+
* @param {Partial<IManagedObject>} managedObject
|
|
213
|
+
* @param {IdReference} parentReference
|
|
214
|
+
*
|
|
215
|
+
* **Example**
|
|
216
|
+
* ```typescript
|
|
217
|
+
*
|
|
218
|
+
* const mOAsChildAddition: Partial<IManagedObject> = {
|
|
219
|
+
* name: 'Child addition MO',
|
|
220
|
+
* type: 'new type',
|
|
221
|
+
* ...
|
|
222
|
+
* };
|
|
223
|
+
*
|
|
224
|
+
* // This is the identifier of the managed object which should be the parent of
|
|
225
|
+
* // mOAsChildAddition, see above.
|
|
226
|
+
* const parentReferenceId: number = 1;
|
|
227
|
+
*
|
|
228
|
+
* (async () => {
|
|
229
|
+
* const {data, res} = await inventoryService.childAdditionsCreate(mOAsChildAddition, parentReferenceId);
|
|
230
|
+
* })();
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
childAdditionsCreate(managedObject: Partial<IManagedObject>, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
234
|
+
/**
|
|
235
|
+
* Adds an existing managed object as child addition to another managed object (parent)
|
|
236
|
+
*
|
|
237
|
+
* @returns Response wrapped in [[IResult]]
|
|
238
|
+
*
|
|
239
|
+
* @param {IdReference} childReference
|
|
240
|
+
* @param {IdReference} parentReference
|
|
241
|
+
*
|
|
242
|
+
* **Example**
|
|
243
|
+
* ```typescript
|
|
244
|
+
*
|
|
245
|
+
* const childRef: number = 2;
|
|
246
|
+
* const parentReferenceId: number = 1;
|
|
247
|
+
*
|
|
248
|
+
* (async () => {
|
|
249
|
+
* const {data, res} = await inventoryService.childAdditionsCreate(childRef, parentReferenceId);
|
|
250
|
+
* })();
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
childAdditionsAdd(childReference: IdReference, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
254
|
+
/**
|
|
255
|
+
* Removes an existing managed object as child addition from another managed object (parent)
|
|
256
|
+
*
|
|
257
|
+
* @returns Response wrapped in [[IResult]]
|
|
258
|
+
*
|
|
259
|
+
* @param {IdReference} childReference
|
|
260
|
+
* @param {IdReference} parentReference
|
|
261
|
+
*
|
|
262
|
+
* **Example**
|
|
263
|
+
* ```typescript
|
|
264
|
+
*
|
|
265
|
+
* const childRef: number = 2;
|
|
266
|
+
* const parentReferenceId: number = 1;
|
|
267
|
+
*
|
|
268
|
+
* (async () => {
|
|
269
|
+
* const {data, res} = await inventoryService.childAdditionsRemove(childRef, parentReferenceId);
|
|
270
|
+
* })();
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
childAdditionsRemove(childReference: IdReference, parentReference: IdReference): Promise<IResult<null>>;
|
|
274
|
+
/**
|
|
275
|
+
* Gets a list of child assets from a given managed object (parent)
|
|
276
|
+
*
|
|
277
|
+
* @returns Response wrapped in [[IResultList]]
|
|
278
|
+
*
|
|
279
|
+
* @param {IdReference} parentReference
|
|
280
|
+
* @param {object} filter
|
|
281
|
+
*
|
|
282
|
+
* **Example**
|
|
283
|
+
* ```typescript
|
|
284
|
+
*
|
|
285
|
+
* const parentReferenceId: IdReference = 1;
|
|
286
|
+
*
|
|
287
|
+
* const filter: object = {
|
|
288
|
+
* pageSize: 100,
|
|
289
|
+
* withTotalPages: true
|
|
290
|
+
* };
|
|
291
|
+
*
|
|
292
|
+
* (async () => {
|
|
293
|
+
* const {data, res, paging} = await inventoryService.childAssetsList(parentReferenceId, filter);
|
|
294
|
+
* })();
|
|
295
|
+
* ```
|
|
296
|
+
*/
|
|
297
|
+
childAssetsList(parentReference: IdReference, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
298
|
+
/**
|
|
299
|
+
* Creates a new managed object as child asset to another managed object (parent)
|
|
300
|
+
*
|
|
301
|
+
* @returns Response wrapped in [[IResult]]
|
|
302
|
+
*
|
|
303
|
+
* @param {Partial<IManagedObject>} managedObject
|
|
304
|
+
* @param {IdReference} parentReference
|
|
305
|
+
*
|
|
306
|
+
* **Example**
|
|
307
|
+
* ```typescript
|
|
308
|
+
*
|
|
309
|
+
* const mOAsChildAsset: Partial<IManagedObject> = {
|
|
310
|
+
* name: 'Child asset MO',
|
|
311
|
+
* type: 'new type',
|
|
312
|
+
* ...
|
|
313
|
+
* };
|
|
314
|
+
*
|
|
315
|
+
* // This is the identifier of the managed object which should be the parent of
|
|
316
|
+
* // mOAsChildAsset, see above.
|
|
317
|
+
* const parentReferenceId: number = 1;
|
|
318
|
+
*
|
|
319
|
+
* (async () => {
|
|
320
|
+
* const {data, res} = await inventoryService.childAdditionsCreate(mOAsChildAddition, parentReferenceId);
|
|
321
|
+
* })();
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
childAssetsCreate(managedObject: Partial<IManagedObject>, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
325
|
+
/**
|
|
326
|
+
* Adds an existing managed object as child asset to another managed object (parent)
|
|
327
|
+
*
|
|
328
|
+
* @returns Response wrapped in [[IResult]]
|
|
329
|
+
*
|
|
330
|
+
* @param {IdReference} childReference
|
|
331
|
+
* @param {IdReference} parentReference
|
|
332
|
+
*
|
|
333
|
+
* **Example**
|
|
334
|
+
* ```typescript
|
|
335
|
+
*
|
|
336
|
+
* const childRef: number = 2;
|
|
337
|
+
* const parentReferenceId: number = 1;
|
|
338
|
+
*
|
|
339
|
+
* (async () => {
|
|
340
|
+
* const {data, res} = await inventoryService.childAssetsAdd(childRef, parentReferenceId);
|
|
341
|
+
* })();
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
childAssetsAdd(childReference: IdReference, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
345
|
+
/**
|
|
346
|
+
* Adds bulk of existing managed objects as child assets to another managed object (parent).
|
|
347
|
+
*
|
|
348
|
+
* @returns Response wrapped in array of [[IResult]]
|
|
349
|
+
*
|
|
350
|
+
* @param {IdReference[]} childReference List of existing managed objects IDs that should be added to another managed object (parent).
|
|
351
|
+
* @param {IdReference} parentReference
|
|
352
|
+
*
|
|
353
|
+
* **Example**
|
|
354
|
+
* ```typescript
|
|
355
|
+
*
|
|
356
|
+
* const childAssetsRefIds: string[] = ['2', '3'];
|
|
357
|
+
* const parentReferenceId: number = 1;
|
|
358
|
+
*
|
|
359
|
+
* (async () => {
|
|
360
|
+
* const {data, res} = await inventoryService.childAssetsBulkAdd(childAssetsRefIds, parentReferenceId);
|
|
361
|
+
* })();
|
|
362
|
+
* ```
|
|
363
|
+
*/
|
|
364
|
+
childAssetsBulkAdd(childReference: IdReference[], parentReference: IdReference): Promise<IResultList<IIdentified>>;
|
|
365
|
+
/**
|
|
366
|
+
* Removes an existing managed object as child asset from another managed object (parent)
|
|
367
|
+
*
|
|
368
|
+
* @returns Response wrapped in [[IResult]]
|
|
369
|
+
*
|
|
370
|
+
* @param {IdReference} childReference
|
|
371
|
+
* @param {IdReference} parentReference
|
|
372
|
+
*
|
|
373
|
+
* **Example**
|
|
374
|
+
* ```typescript
|
|
375
|
+
*
|
|
376
|
+
* const childRef: number = 2;
|
|
377
|
+
* const parentReferenceId: number = 1;
|
|
378
|
+
*
|
|
379
|
+
* (async () => {
|
|
380
|
+
* const {data, res} = await inventoryService.childAssetsRemove(childRef, parentReferenceId);
|
|
381
|
+
* })();
|
|
382
|
+
* ```
|
|
383
|
+
*/
|
|
384
|
+
childAssetsRemove(childReference: IdReference, parentReference: IdReference): Promise<IResult<null>>;
|
|
385
|
+
/**
|
|
386
|
+
* Gets a list of child devices from a given managed object (parent)
|
|
387
|
+
*
|
|
388
|
+
* @returns Response wrapped in [[IResultList]]
|
|
389
|
+
*
|
|
390
|
+
* @param {IdReference} parentReference
|
|
391
|
+
* @param {object} filter
|
|
392
|
+
*
|
|
393
|
+
* **Example**
|
|
394
|
+
* ```typescript
|
|
395
|
+
*
|
|
396
|
+
* const parentReferenceId: IdReference = 1;
|
|
397
|
+
*
|
|
398
|
+
* const filter: object = {
|
|
399
|
+
* pageSize: 100,
|
|
400
|
+
* withTotalPages: true
|
|
401
|
+
* };
|
|
402
|
+
*
|
|
403
|
+
* (async () => {
|
|
404
|
+
* const {data, res, paging} = await inventoryService.childDevicesList(parentReferenceId, filter);
|
|
405
|
+
* })();
|
|
406
|
+
* ```
|
|
407
|
+
*/
|
|
408
|
+
childDevicesList(parentReference: IdReference, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
409
|
+
/**
|
|
410
|
+
* Creates a new managed object as child device to another managed object (parent)
|
|
411
|
+
*
|
|
412
|
+
* @returns Response wrapped in [[IResult]]
|
|
413
|
+
*
|
|
414
|
+
* @param {Partial<IManagedObject>} managedObject
|
|
415
|
+
* @param {IdReference} parentReference
|
|
416
|
+
*
|
|
417
|
+
* **Example**
|
|
418
|
+
* ```typescript
|
|
419
|
+
*
|
|
420
|
+
* const mOAsChildDevice: Partial<IManagedObject> = {
|
|
421
|
+
* name: 'Child device MO',
|
|
422
|
+
* type: 'new type',
|
|
423
|
+
* ...
|
|
424
|
+
* };
|
|
425
|
+
*
|
|
426
|
+
* // This is the identifier of the managed object which should be the parent of
|
|
427
|
+
* // mOAsChildDevice, see above.
|
|
428
|
+
* const parentReferenceId: number = 1;
|
|
429
|
+
*
|
|
430
|
+
* (async () => {
|
|
431
|
+
* const {data, res} = await inventoryService.childDevicesCreate(mOAsChildDevice, parentReferenceId);
|
|
432
|
+
* })();
|
|
433
|
+
* ```
|
|
434
|
+
*/
|
|
435
|
+
childDevicesCreate(managedObject: Partial<IManagedObject>, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
436
|
+
/**
|
|
437
|
+
* Adds an existing managed object as child device to another managed object (parent)
|
|
438
|
+
*
|
|
439
|
+
* @returns Response wrapped in [[IResult]]
|
|
440
|
+
*
|
|
441
|
+
* @param {IdReference} childReference
|
|
442
|
+
* @param {IdReference} parentReference
|
|
443
|
+
*
|
|
444
|
+
* **Example**
|
|
445
|
+
* ```typescript
|
|
446
|
+
*
|
|
447
|
+
* const childRef: number = 2;
|
|
448
|
+
* const parentReferenceId: number = 1;
|
|
449
|
+
*
|
|
450
|
+
* (async () => {
|
|
451
|
+
* const {data, res} = await inventoryService.childDevicesAdd(childRef, parentReferenceId);
|
|
452
|
+
* })();
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
childDevicesAdd(childReference: IdReference, parentReference: IdReference): Promise<IResult<IIdentified>>;
|
|
456
|
+
/**
|
|
457
|
+
* Removes an existing managed object as child device from another managed object (parent)
|
|
458
|
+
*
|
|
459
|
+
* @returns Response wrapped in [[IResult]]
|
|
460
|
+
*
|
|
461
|
+
* @param {IdReference} childReference
|
|
462
|
+
* @param {IdReference} parentReference
|
|
463
|
+
*
|
|
464
|
+
* **Example**
|
|
465
|
+
* ```typescript
|
|
466
|
+
*
|
|
467
|
+
* const childRef: number = 2;
|
|
468
|
+
* const parentReferenceId: number = 1;
|
|
469
|
+
*
|
|
470
|
+
* (async () => {
|
|
471
|
+
* const {data, res} = await inventoryService.childDevicesRemove(childRef, parentReferenceId);
|
|
472
|
+
* })();
|
|
473
|
+
* ```
|
|
474
|
+
*/
|
|
475
|
+
childDevicesRemove(childReference: IdReference, parentReference: IdReference): Promise<IResult<null>>;
|
|
476
|
+
/**
|
|
477
|
+
* Gets an array of measurement fragments supported by the specified managedObject.
|
|
478
|
+
* e.g. ["c8y_Temperature", "c8y_Humidity"]
|
|
479
|
+
*
|
|
480
|
+
* @returns array of supported measurement fragments
|
|
481
|
+
*
|
|
482
|
+
* @param {IdReference} managedObjectOrId
|
|
483
|
+
*/
|
|
484
|
+
getSupportedMeasurements(managedObjectOrId: IdReference): Promise<string[]>;
|
|
485
|
+
/**
|
|
486
|
+
* Gets an array of measurement series supported by the specified managedObject.
|
|
487
|
+
* e.g. ["c8y_Temperature.T", "c8y_Humidity.H"]
|
|
488
|
+
*
|
|
489
|
+
* @returns array of supported measurement series
|
|
490
|
+
*
|
|
491
|
+
* @param {IdReference} managedObjectOrId
|
|
492
|
+
*/
|
|
493
|
+
getSupportedSeries(managedObjectOrId: IdReference): Promise<string[]>;
|
|
494
|
+
/**
|
|
495
|
+
* Gets an array of measurement series and fragments supported by the specified managedObject.
|
|
496
|
+
*
|
|
497
|
+
* @returns array of supported measurement series and fragments
|
|
498
|
+
*
|
|
499
|
+
* @param {IdReference} managedObjectOrId
|
|
500
|
+
*/
|
|
501
|
+
getMeasurementsAndSeries(managedObjectOrId: IdReference): Promise<Array<{
|
|
502
|
+
fragment: string;
|
|
503
|
+
series: string;
|
|
504
|
+
}>>;
|
|
505
|
+
/**
|
|
506
|
+
* Gets a list of KPIs (data point library entries) matching a given managed object
|
|
507
|
+
*
|
|
508
|
+
* @returns Response wrapped in [[IResultList]]
|
|
509
|
+
*
|
|
510
|
+
* @param {IdReference} parentReference
|
|
511
|
+
* @param {object} filter
|
|
512
|
+
*/
|
|
513
|
+
assetKPIsList(parentReference: IdReference, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
514
|
+
protected listKPIs(parentReference: IdReference, filter?: object): Promise<IResultList<IManagedObject>>;
|
|
515
|
+
protected onBeforeUpdate(objWithId: Partial<IManagedObject>): Partial<IManagedObject>;
|
|
516
|
+
protected onBeforeCreate(managedObject: Partial<IManagedObject>): Partial<IManagedObject>;
|
|
517
|
+
private getChildrenUrl;
|
|
518
|
+
private getChildUrl;
|
|
519
|
+
private listChildren;
|
|
520
|
+
private createChild;
|
|
521
|
+
private addChild;
|
|
522
|
+
private addChildBulk;
|
|
523
|
+
private removeChild;
|
|
524
|
+
private getSupportedMeasurementDetails;
|
|
525
|
+
}
|
|
526
|
+
//# sourceMappingURL=InventoryService.d.ts.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { IIdentified, Service, IResult, IResultList } from '../core';
|
|
2
|
+
export declare class InventoryRoleService extends Service<IIdentified> {
|
|
3
|
+
protected baseUrl: string;
|
|
4
|
+
protected listUrl: string;
|
|
5
|
+
protected propertyName: string;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the details of inventory role.
|
|
8
|
+
*
|
|
9
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
10
|
+
*
|
|
11
|
+
* @returns Response wrapped in [[IResult]]
|
|
12
|
+
*
|
|
13
|
+
* **Example**
|
|
14
|
+
* ```typescript
|
|
15
|
+
*
|
|
16
|
+
* const inventoryRoleId: number = 1;
|
|
17
|
+
*
|
|
18
|
+
* (async () => {
|
|
19
|
+
* const {data, res} = await inventoryRoleService.detail(inventoryRoleId);
|
|
20
|
+
* })();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
detail(entityOrId: string | number | IIdentified): Promise<IResult<IIdentified>>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new inventory role.
|
|
26
|
+
*
|
|
27
|
+
* @param {IIdentified} entity
|
|
28
|
+
*
|
|
29
|
+
* @returns Response wrapped in [[IResult]]
|
|
30
|
+
*
|
|
31
|
+
* **Example**
|
|
32
|
+
* ```typescript
|
|
33
|
+
*
|
|
34
|
+
* const newRole: IIdentified = {
|
|
35
|
+
* name: 'Custom role'
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* (async () => {
|
|
39
|
+
* const {data, res} = await inventoryRoleService.create(newRole);
|
|
40
|
+
* })();
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(entity: IIdentified): Promise<IResult<IIdentified>>;
|
|
44
|
+
/**
|
|
45
|
+
* Updates inventory role data.
|
|
46
|
+
*
|
|
47
|
+
* @param {IIdentified} entity
|
|
48
|
+
*
|
|
49
|
+
* @returns Response wrapped in [[IResult]]
|
|
50
|
+
*
|
|
51
|
+
* **Example**
|
|
52
|
+
* ```typescript
|
|
53
|
+
*
|
|
54
|
+
* const updateObject: IIdentified = {
|
|
55
|
+
* id: 1,
|
|
56
|
+
* name: 'changed role'
|
|
57
|
+
* };
|
|
58
|
+
*
|
|
59
|
+
* (async () => {
|
|
60
|
+
* const {data, res} = await inventoryRoleService.update(updateObject);
|
|
61
|
+
* })();
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
update(entity: IIdentified): Promise<IResult<IIdentified>>;
|
|
65
|
+
/**
|
|
66
|
+
* Gets the list of inventory roles filtered by parameters.
|
|
67
|
+
*
|
|
68
|
+
* @returns Response wrapped in [[IResultList]]
|
|
69
|
+
*
|
|
70
|
+
* @param {object} filter Object containing filters for querying alarms.
|
|
71
|
+
*
|
|
72
|
+
* **Example**
|
|
73
|
+
* ```typescript
|
|
74
|
+
*
|
|
75
|
+
* const filter: object = {
|
|
76
|
+
* pageSize: 100,
|
|
77
|
+
* withTotalPages: true
|
|
78
|
+
* };
|
|
79
|
+
*
|
|
80
|
+
* (async () => {
|
|
81
|
+
* const {data, res, paging} = await inventoryRoleService.list(filter);
|
|
82
|
+
* })();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
list(filter?: object): Promise<IResultList<IIdentified>>;
|
|
86
|
+
/**
|
|
87
|
+
* Removes an inventory role with given id.
|
|
88
|
+
*
|
|
89
|
+
* @returns Response wrapped in [[IResult]]
|
|
90
|
+
*
|
|
91
|
+
* @param {IExternalIdentity} identity Identity object with mandantory fragments.
|
|
92
|
+
*
|
|
93
|
+
* **Example**
|
|
94
|
+
* ```typescript
|
|
95
|
+
*
|
|
96
|
+
* const id: number = 1;
|
|
97
|
+
*
|
|
98
|
+
* (async () => {
|
|
99
|
+
* const {data, res} = await identityService.delete(id);
|
|
100
|
+
* })();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
delete(entityOrId: string | number | IIdentified): Promise<IResult<null>>;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=InventoryRoleService.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ISource } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Interface which holds all mandantory fragments for measurements
|
|
4
|
+
*/
|
|
5
|
+
export interface IMeasurement {
|
|
6
|
+
/**
|
|
7
|
+
* Uniquely identifies a measurement
|
|
8
|
+
*/
|
|
9
|
+
id: string | number;
|
|
10
|
+
/**
|
|
11
|
+
* The most specific type of this entire measurement
|
|
12
|
+
*/
|
|
13
|
+
type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Time of the measurement
|
|
16
|
+
*/
|
|
17
|
+
time: string;
|
|
18
|
+
/**
|
|
19
|
+
* Link to this resource
|
|
20
|
+
*/
|
|
21
|
+
self: string;
|
|
22
|
+
/**
|
|
23
|
+
* The ManagedObject which is the source of this measurement,
|
|
24
|
+
* see [[ISource]]
|
|
25
|
+
*/
|
|
26
|
+
source: ISource;
|
|
27
|
+
/**
|
|
28
|
+
* Custom fragments.
|
|
29
|
+
* **Example**
|
|
30
|
+
* ```typescript
|
|
31
|
+
*
|
|
32
|
+
* {
|
|
33
|
+
* series: {
|
|
34
|
+
* unit: '%',
|
|
35
|
+
* value: 51
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
[fragment: string]: {
|
|
41
|
+
[series: string]: IMeasurementValue;
|
|
42
|
+
} | any;
|
|
43
|
+
}
|
|
44
|
+
export interface IMeasurementValue {
|
|
45
|
+
value: number;
|
|
46
|
+
unit?: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* This interface can be used to create a valid measurement.
|
|
51
|
+
*/
|
|
52
|
+
export interface IMeasurementCreate extends IMeasurement {
|
|
53
|
+
/**
|
|
54
|
+
* Uniquely identifier to which source this measurement belongs to
|
|
55
|
+
*/
|
|
56
|
+
sourceId: number | string;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=IMeasurement.d.ts.map
|