@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,52 @@
|
|
|
1
|
+
import { Service } from '../core';
|
|
2
|
+
import { IRole } from './IRole';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* This service allows for fetch user roles.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserRoleService extends Service<IRole> {
|
|
8
|
+
protected baseUrl: string;
|
|
9
|
+
protected listUrl: string;
|
|
10
|
+
protected propertyName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the details of given role.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|number|IRole} entityOrId Roles's id or role object.
|
|
15
|
+
*
|
|
16
|
+
* @returns Returns promise object that is resolved with the IRole wrapped by IResult.
|
|
17
|
+
*
|
|
18
|
+
* **Example**
|
|
19
|
+
* ```typescript
|
|
20
|
+
*
|
|
21
|
+
* const roleId: number = 1;
|
|
22
|
+
*
|
|
23
|
+
* (async () => {
|
|
24
|
+
* const {data, res} = await userRoleService.detail(roleId);
|
|
25
|
+
* })();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
detail(entityOrId: string | number | IRole): Promise<import("../core").IResult<IRole>>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the list of user roles filtered by parameters.
|
|
31
|
+
*
|
|
32
|
+
* @param {object} filter Object containing filters for querying roles.
|
|
33
|
+
*
|
|
34
|
+
* @returns Returns promise object that is resolved with the IRole wrapped by IResultList.
|
|
35
|
+
*
|
|
36
|
+
* **Example**
|
|
37
|
+
* ```typescript
|
|
38
|
+
*
|
|
39
|
+
* const filter: object = {
|
|
40
|
+
* severity: Severity.MAJOR,
|
|
41
|
+
* pageSize: 100,
|
|
42
|
+
* withTotalPages: true
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* (async () => {
|
|
46
|
+
* const {data, res, paging} = await userRoleService.list(filter);
|
|
47
|
+
* })();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
list(filter?: object): Promise<import("../core").IResultList<IRole>>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=UserRoleService.d.ts.map
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { IAuthentication, ICredentials, IFetchResponse } from './core';
|
|
2
|
+
import { Realtime } from './realtime';
|
|
3
|
+
import { FetchClient, AlarmService, ApplicationService, AuditService, DeviceRegistrationBulkService, DeviceRegistrationService, EventService, InventoryBinaryService, InventoryRoleService, InventoryService, MeasurementService, OperationBulkService, OperationService, SystemOptionsService, TenantOptionsService, TenantSecurityOptionsService, TenantLoginOptionsService, TenantService, UserGroupService, UserRoleService, UserService, IdentityService, SmartGroupsService, SmartRulesService } from './services';
|
|
4
|
+
export interface IBootstrapOptions {
|
|
5
|
+
deviceId: string;
|
|
6
|
+
basicAuthToken: string;
|
|
7
|
+
timeout?: number;
|
|
8
|
+
expire?: number;
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class Client {
|
|
12
|
+
/**
|
|
13
|
+
* Authenticates the given user. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
14
|
+
*
|
|
15
|
+
* **Example**
|
|
16
|
+
* ```typescript
|
|
17
|
+
*
|
|
18
|
+
* let client: Client;
|
|
19
|
+
* (async () => {
|
|
20
|
+
* client = await Client.authenticate({
|
|
21
|
+
* user: 'testuser',
|
|
22
|
+
* password: 'password1337!'
|
|
23
|
+
* }, 'https://acme.cumulocity.com');
|
|
24
|
+
*
|
|
25
|
+
* //you have access to the client api now
|
|
26
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
27
|
+
* })();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
static authenticate(credentials: ICredentials, baseUrl?: string): Promise<Client>;
|
|
31
|
+
/**
|
|
32
|
+
* Authenticates the given user via OAuth Internal. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
33
|
+
* Login call goes to `/tenant/oauth/token` and the retrieved token will be added in the `Authorization` header to subsequent requests.
|
|
34
|
+
*
|
|
35
|
+
* **Example**
|
|
36
|
+
* ```typescript
|
|
37
|
+
*
|
|
38
|
+
* let client: Client;
|
|
39
|
+
* (async () => {
|
|
40
|
+
* client = await Client.authenticateViaOAuthInternal({
|
|
41
|
+
* user: 'testuser',
|
|
42
|
+
* password: 'password1337!'
|
|
43
|
+
* }, 'https://acme.cumulocity.com');
|
|
44
|
+
*
|
|
45
|
+
* //you have access to the client api now
|
|
46
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
47
|
+
* })();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
static authenticateViaOAuthInternal(credentials: ICredentials, baseUrl?: string): Promise<Client>;
|
|
51
|
+
/**
|
|
52
|
+
* Authenticates the given user via OAuth Internal. Determines the tenant by itself via a call to tenant/currentTenant.
|
|
53
|
+
* Login call goes to `/tenant/oauth` and the retrieved token will be attached as a Cookie in browser environments to subsequent requests (using 'CookieAuth').
|
|
54
|
+
* In none browser environments (e.g. nodejs) the retrieved token will be added in the `Authorization` header to subsequent requests (using 'NodeJSCookieAuth').
|
|
55
|
+
*
|
|
56
|
+
* **Example**
|
|
57
|
+
* ```typescript
|
|
58
|
+
*
|
|
59
|
+
* let client: Client;
|
|
60
|
+
* (async () => {
|
|
61
|
+
* client = await Client.authenticateViaOAuthInternalCookie({
|
|
62
|
+
* user: 'testuser',
|
|
63
|
+
* password: 'password1337!'
|
|
64
|
+
* }, 'https://acme.cumulocity.com');
|
|
65
|
+
*
|
|
66
|
+
* //you have access to the client api now
|
|
67
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
68
|
+
* })();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
static authenticateViaOAuthInternalCookie(credentials: ICredentials, baseUrl?: string): Promise<Client>;
|
|
72
|
+
/**
|
|
73
|
+
* Allows to use http to register a device on the platform.
|
|
74
|
+
*
|
|
75
|
+
* **Deprecated** Please use MQTT to bootstrap a device.
|
|
76
|
+
*/
|
|
77
|
+
static deviceBootstrap(options: IBootstrapOptions): Promise<Client>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves microservice credentials for the subscribed tenants
|
|
80
|
+
* using provided bootstrap credentials
|
|
81
|
+
*
|
|
82
|
+
* **Example**
|
|
83
|
+
* ```typescript
|
|
84
|
+
*
|
|
85
|
+
* (async () => {
|
|
86
|
+
* const subscriptions = await Client.getMicroserviceSubscriptions({
|
|
87
|
+
* tenant: process.env.C8Y_BOOTSTRAP_TENANT,
|
|
88
|
+
* user: process.env.C8Y_BOOTSTRAP_USER,
|
|
89
|
+
* password: process.env.C8Y_BOOTSTRAP_PASSWORD
|
|
90
|
+
* }, process.env.C8Y_BASEURL);
|
|
91
|
+
*
|
|
92
|
+
* const clients = subscriptions.map(subscription => new Client(new BasicAuth(subscription), process.env.C8Y_BASEURL));
|
|
93
|
+
* // you have access to the client api now
|
|
94
|
+
* const promiseArray = clients.map(client => client.options.tenant.detail({
|
|
95
|
+
* category: process.env.APPLICATION_KEY,
|
|
96
|
+
* key: 'someSetting'
|
|
97
|
+
* }));
|
|
98
|
+
* })();
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
static getMicroserviceSubscriptions(bootstrapCredentials: ICredentials, baseUrl: string): Promise<ICredentials[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Performs the OAuth Internal login.
|
|
104
|
+
*
|
|
105
|
+
* If the parameter `bearerAuth` is set to true (default), the `/tenant/oauth/token` endpoint is called and a string containing the token returned.
|
|
106
|
+
*
|
|
107
|
+
* If the parameter `bearerAuth` is set to false, the `/tenant/oauth` endpoint is called and a Cookie should be set and the response returned.
|
|
108
|
+
* The response can be used in none browser environments to extract the `set-cookie` header from it.
|
|
109
|
+
*
|
|
110
|
+
* **Example**
|
|
111
|
+
* ```typescript
|
|
112
|
+
*
|
|
113
|
+
* (async () => {
|
|
114
|
+
* const client = await Client.loginViaOAuthInternal({
|
|
115
|
+
* tenant: process.env.C8Y_BOOTSTRAP_TENANT,
|
|
116
|
+
* user: process.env.C8Y_BOOTSTRAP_USER,
|
|
117
|
+
* password: process.env.C8Y_BOOTSTRAP_PASSWORD
|
|
118
|
+
* }, true, process.env.C8Y_BASEURL);
|
|
119
|
+
*
|
|
120
|
+
* // you have access to the client api now
|
|
121
|
+
* const option = client.options.tenant.detail({
|
|
122
|
+
* category: process.env.APPLICATION_KEY,
|
|
123
|
+
* key: 'someSetting'
|
|
124
|
+
* });
|
|
125
|
+
* })();
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
static loginViaOAuthInternal(credentials: ICredentials, bearerAuth?: true, baseUrl?: string): Promise<string>;
|
|
129
|
+
static loginViaOAuthInternal(credentials: ICredentials, bearerAuth: false, baseUrl?: string): Promise<IFetchResponse>;
|
|
130
|
+
private static getCurrentTenant;
|
|
131
|
+
alarm: AlarmService;
|
|
132
|
+
application: ApplicationService;
|
|
133
|
+
audit: AuditService;
|
|
134
|
+
core: FetchClient;
|
|
135
|
+
deviceRegistration: DeviceRegistrationService;
|
|
136
|
+
deviceRegistrationBulk: DeviceRegistrationBulkService;
|
|
137
|
+
event: EventService;
|
|
138
|
+
inventory: InventoryService;
|
|
139
|
+
inventoryRole: InventoryRoleService;
|
|
140
|
+
inventoryBinary: InventoryBinaryService;
|
|
141
|
+
measurement: MeasurementService;
|
|
142
|
+
operation: OperationService;
|
|
143
|
+
operationBulk: OperationBulkService;
|
|
144
|
+
options: {
|
|
145
|
+
security: TenantSecurityOptionsService;
|
|
146
|
+
system: SystemOptionsService;
|
|
147
|
+
login: TenantLoginOptionsService;
|
|
148
|
+
tenant: TenantOptionsService;
|
|
149
|
+
};
|
|
150
|
+
realtime: Realtime;
|
|
151
|
+
role: InventoryRoleService;
|
|
152
|
+
tenant: TenantService;
|
|
153
|
+
user: UserService;
|
|
154
|
+
userGroup: UserGroupService;
|
|
155
|
+
userRole: UserRoleService;
|
|
156
|
+
identity: IdentityService;
|
|
157
|
+
smartGroups: SmartGroupsService;
|
|
158
|
+
smartRules: SmartRulesService;
|
|
159
|
+
/**
|
|
160
|
+
* Initializes a new Client, which allows to request data from the API. Differently
|
|
161
|
+
* to Client.authenticate([...]) it needs a tenant given and does not verify if the
|
|
162
|
+
* login is correct.
|
|
163
|
+
*
|
|
164
|
+
* **Example**
|
|
165
|
+
* ```typescript
|
|
166
|
+
*
|
|
167
|
+
* const auth = new BasicAuth({
|
|
168
|
+
* user: 'youruser',
|
|
169
|
+
* password: 'yourpassword',
|
|
170
|
+
* tenant: 'acme'
|
|
171
|
+
* }); // use CookieAuth() if your platform uses oauth (only in browser!)
|
|
172
|
+
*
|
|
173
|
+
* const baseUrl = 'https://acme.cumulocity.com';
|
|
174
|
+
* const client = new Client(auth, baseUrl);
|
|
175
|
+
* (async () => {
|
|
176
|
+
* const { data, paging, res }); = await client.inventory.list({ pageSize: 100 });
|
|
177
|
+
* })();
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @param auth The Authentication strategy to use (e.g. new BasicAuth())
|
|
181
|
+
* @param baseUrl The URL to request (optional in browser, mandatory in node)
|
|
182
|
+
*/
|
|
183
|
+
constructor(auth: IAuthentication, baseUrl?: string);
|
|
184
|
+
/**
|
|
185
|
+
* Allows to change the current Authentication
|
|
186
|
+
* @param auth The new Authentication information.
|
|
187
|
+
*/
|
|
188
|
+
setAuth(auth: IAuthentication): void;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { IIdentified, Service, IResult, IResultList } from '../core';
|
|
2
|
+
import { IAlarm } from './IAlarm';
|
|
3
|
+
/**
|
|
4
|
+
* This class allows for managing alarms.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AlarmService extends Service<IAlarm> {
|
|
7
|
+
protected baseUrl: string;
|
|
8
|
+
protected listUrl: string;
|
|
9
|
+
protected propertyName: string;
|
|
10
|
+
protected channel: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the details of selected alarms.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
15
|
+
*
|
|
16
|
+
* @returns Response wrapped in [[IResult]]
|
|
17
|
+
*
|
|
18
|
+
* **Example**
|
|
19
|
+
* ```typescript
|
|
20
|
+
*
|
|
21
|
+
* const alarmId: number = 1;
|
|
22
|
+
*
|
|
23
|
+
* (async () => {
|
|
24
|
+
* const {data, res} = await alarmService.detail(alarmId);
|
|
25
|
+
* })();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
detail(entityOrId: string | number | IIdentified): Promise<IResult<IAlarm>>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new alarm.
|
|
31
|
+
*
|
|
32
|
+
* @param {IAlarm} entity Alarm object with mandantory fragments.
|
|
33
|
+
*
|
|
34
|
+
* @returns Response wrapped in [[IResult]]
|
|
35
|
+
*
|
|
36
|
+
* **Example**
|
|
37
|
+
* ```typescript
|
|
38
|
+
*
|
|
39
|
+
* const mandantoryObject: IAlarm = {
|
|
40
|
+
* severity: Severity.CRITICAL,
|
|
41
|
+
* source: device,
|
|
42
|
+
* text: 'I am an Alarm!',
|
|
43
|
+
* time: '2018-05-02T10:08:00Z',
|
|
44
|
+
* type: 'device-type-here',
|
|
45
|
+
* };
|
|
46
|
+
*
|
|
47
|
+
* (async () => {
|
|
48
|
+
* const {data, res} = await alarmService.create(mandantoryObject);
|
|
49
|
+
* })();
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
create(entity: IAlarm): Promise<IResult<IAlarm>>;
|
|
53
|
+
/**
|
|
54
|
+
* Updates alarm data.
|
|
55
|
+
*
|
|
56
|
+
* @param {Partial<IAlarm>} entity Alarm is partially updatable.
|
|
57
|
+
*
|
|
58
|
+
* @returns Response wrapped in [[IResult]]
|
|
59
|
+
*
|
|
60
|
+
* **Example**
|
|
61
|
+
* ```typescript
|
|
62
|
+
*
|
|
63
|
+
* const partialUpdateObject: Partial<IAlarm> = {
|
|
64
|
+
* severity: Severity.MINOR,
|
|
65
|
+
* source: device,
|
|
66
|
+
* text: 'Changed Alarm!'
|
|
67
|
+
* };
|
|
68
|
+
*
|
|
69
|
+
* (async () => {
|
|
70
|
+
* const {data, res} = await alarmService.update(partialUpdateObject);
|
|
71
|
+
* })();
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
update(entity: Partial<IAlarm>): Promise<IResult<IAlarm>>;
|
|
75
|
+
/**
|
|
76
|
+
* Gets the list of alarms filtered by parameters.
|
|
77
|
+
*
|
|
78
|
+
* @returns Response wrapped in [[IResultList]]
|
|
79
|
+
*
|
|
80
|
+
* @param {object} filter Object containing filters for querying alarms.
|
|
81
|
+
*
|
|
82
|
+
* **Example**
|
|
83
|
+
* ```typescript
|
|
84
|
+
*
|
|
85
|
+
* const filter: object = {
|
|
86
|
+
* severity: Severity.MAJOR,
|
|
87
|
+
* pageSize: 100,
|
|
88
|
+
* withTotalPages: true
|
|
89
|
+
* };
|
|
90
|
+
*
|
|
91
|
+
* (async () => {
|
|
92
|
+
* const {data, res, paging} = await alarmService.list(filter);
|
|
93
|
+
* })();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
list(filter?: object): Promise<IResultList<IAlarm>>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=AlarmService.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ISource, Severity } from '../core';
|
|
2
|
+
import { AlarmStatus } from './AlarmStatus';
|
|
3
|
+
export interface IAlarm {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the severity of an alarm
|
|
6
|
+
*/
|
|
7
|
+
severity: Severity;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies which device has the alarm
|
|
10
|
+
*/
|
|
11
|
+
source: ISource;
|
|
12
|
+
/**
|
|
13
|
+
* Type of the alarm
|
|
14
|
+
*/
|
|
15
|
+
type: string;
|
|
16
|
+
/**
|
|
17
|
+
* Time when the alarm occured
|
|
18
|
+
*/
|
|
19
|
+
time: string;
|
|
20
|
+
/**
|
|
21
|
+
* Alarm text
|
|
22
|
+
*/
|
|
23
|
+
text: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the alarm
|
|
26
|
+
*/
|
|
27
|
+
id?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* Current status of the alarm
|
|
30
|
+
*/
|
|
31
|
+
status?: AlarmStatus;
|
|
32
|
+
/**
|
|
33
|
+
* How many times the same alarm appeared
|
|
34
|
+
*/
|
|
35
|
+
count?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the alarm
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Object with audit records as array
|
|
42
|
+
*/
|
|
43
|
+
history?: object;
|
|
44
|
+
/**
|
|
45
|
+
* Self link to the alarm
|
|
46
|
+
*/
|
|
47
|
+
self?: string;
|
|
48
|
+
/**
|
|
49
|
+
* When was the alarm created as first instance
|
|
50
|
+
*/
|
|
51
|
+
creationTime?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Other custom keys
|
|
54
|
+
*/
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=IAlarm.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { IFetchClient, Service, IResult, IFetchResponse } from '../core';
|
|
4
|
+
import { IApplication } from './IApplication';
|
|
5
|
+
import { IApplicationBinary } from './IApplicationBinary';
|
|
6
|
+
import { Stream } from 'stream';
|
|
7
|
+
import { IUploadParamsOverride } from './IUploadParamsOverride';
|
|
8
|
+
export declare class ApplicationBinaryService extends Service<IApplicationBinary> {
|
|
9
|
+
protected baseUrl: any;
|
|
10
|
+
protected listUrl: string;
|
|
11
|
+
protected propertyName: string;
|
|
12
|
+
constructor(client: IFetchClient, applicationOrId: string | number | IApplication);
|
|
13
|
+
upload(binary: ArrayBuffer | Stream | Buffer | File | Blob, fileName?: string, uploadParamsOverride?: IUploadParamsOverride): Promise<IResult<IApplicationBinary>>;
|
|
14
|
+
uploadWithProgressXhr(binary: ArrayBuffer | Stream | Buffer | File | Blob, onProgress: any, fileName?: string, uploadParamsOverride?: IUploadParamsOverride): XMLHttpRequest;
|
|
15
|
+
getXMLHttpResponse(xhr: any): Promise<IApplication>;
|
|
16
|
+
list(filter?: any): Promise<import("../core").IResultList<IApplicationBinary>>;
|
|
17
|
+
delete(binaryOrId: string | number | IApplicationBinary): Promise<IResult<null>>;
|
|
18
|
+
listPlugins(): Promise<{
|
|
19
|
+
res: IFetchResponse;
|
|
20
|
+
data: any;
|
|
21
|
+
}>;
|
|
22
|
+
addPlugin(pluginName: string, pluginFile: Stream | Buffer | ArrayBuffer): Promise<{
|
|
23
|
+
res: IFetchResponse;
|
|
24
|
+
data: any;
|
|
25
|
+
}>;
|
|
26
|
+
removePlugin(pluginName: string): Promise<{
|
|
27
|
+
res: IFetchResponse;
|
|
28
|
+
data: any;
|
|
29
|
+
}>;
|
|
30
|
+
updateFiles(files: Array<{
|
|
31
|
+
path: string;
|
|
32
|
+
contents: Stream | Buffer | ArrayBuffer;
|
|
33
|
+
}>): Promise<{
|
|
34
|
+
res: IFetchResponse;
|
|
35
|
+
data: any;
|
|
36
|
+
}>;
|
|
37
|
+
downloadArchive(binaryId: number | string): Promise<IFetchResponse>;
|
|
38
|
+
private createBinaryRequestBody;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ApplicationBinaryService.d.ts.map
|