@c8y/client 1018.487.7 → 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 +36 -5
- 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/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/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 +1 -0
- 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,144 @@
|
|
|
1
|
+
import { Service, IResultList, IResult, IIdentified } from '../core';
|
|
2
|
+
import { ITenantOption } from './ITenantOption';
|
|
3
|
+
import { ITenantOptionDetailParams } from './ITenantOptionDetailParams';
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* This service allows for managing tenant's options.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TenantOptionsService extends Service<ITenantOption> {
|
|
9
|
+
protected baseUrl: string;
|
|
10
|
+
protected listUrl: string;
|
|
11
|
+
protected propertyName: string;
|
|
12
|
+
private securityOptionsCategories;
|
|
13
|
+
private securityOptionsListUrl;
|
|
14
|
+
private systemOptions;
|
|
15
|
+
/**
|
|
16
|
+
* Get a representation of a tenant's option.
|
|
17
|
+
*
|
|
18
|
+
* @param entity Tenant option object.
|
|
19
|
+
* @param params Additional query parameters.
|
|
20
|
+
*
|
|
21
|
+
* @returns Returns promise object that is resolved with
|
|
22
|
+
* the ITenantOption wrapped by IResult.
|
|
23
|
+
*
|
|
24
|
+
* **Example**
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const option: ITenantOption = {
|
|
27
|
+
* category: 'access.control',
|
|
28
|
+
* key: 'allow.origin'
|
|
29
|
+
* };
|
|
30
|
+
* const params: ITenantOptionDetailParams = {
|
|
31
|
+
* evaluate: 'inherited'
|
|
32
|
+
* };
|
|
33
|
+
* (async () => {
|
|
34
|
+
* const { data, res } = await tenantService.detail(option);
|
|
35
|
+
* console.log('value inherited from parent tenant:', data.value);
|
|
36
|
+
* })();
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* Required role: ROLE_OPTION_MANAGEMENT_READ
|
|
40
|
+
*/
|
|
41
|
+
detail(entity: ITenantOption, params?: ITenantOptionDetailParams): Promise<IResult<ITenantOption>>;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new tenant's option.
|
|
44
|
+
*
|
|
45
|
+
* @param {ITenantOption} entity Tenant's Option object.
|
|
46
|
+
*
|
|
47
|
+
* @returns {IResult<IIdentified>} Returns promise object that is resolved with
|
|
48
|
+
* the details of newly created tenant option.
|
|
49
|
+
*
|
|
50
|
+
* **Example**
|
|
51
|
+
* ```typescript
|
|
52
|
+
*
|
|
53
|
+
* const tenantObject = {
|
|
54
|
+
* id: "sample_tenant",
|
|
55
|
+
* company: "sample_company",
|
|
56
|
+
* domain: "sample_domain.com",
|
|
57
|
+
* contactName: "Mr. Doe",
|
|
58
|
+
* ...
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* (async () => {
|
|
62
|
+
* const {data, res} = await tenantService.create(tenantObject);
|
|
63
|
+
* })();
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* Required role: ROLE_OPTION_MANAGEMENT_ADMIN<br><br>
|
|
67
|
+
* Options are category-key-value tuples, storing tenant configuration.Some categories of options
|
|
68
|
+
* allow creation of new one, other are limited to predefined set of keys.<br><br>
|
|
69
|
+
* Any option of any tenant can be defined as "non-editable" by "management" tenant. Afterwards, any PUT or DELETE
|
|
70
|
+
* requests made on that option by the owner tenant, will result in 403 error (Unauthorized).
|
|
71
|
+
*/
|
|
72
|
+
create(entity: ITenantOption): Promise<IResult<ITenantOption>>;
|
|
73
|
+
/**
|
|
74
|
+
* Updates tenant's option data.
|
|
75
|
+
*
|
|
76
|
+
* @param {ITenantOption} entity Tenant option is partially updatable.
|
|
77
|
+
*
|
|
78
|
+
* @returns {IResult<ITenantOption>} Returns promise object that is resolved with the saved tenant option object.
|
|
79
|
+
*
|
|
80
|
+
* **Example**
|
|
81
|
+
* ```typescript
|
|
82
|
+
*
|
|
83
|
+
* const partialUpdateObject: IIdentified = {
|
|
84
|
+
* value : "http://developer.cumulocity.com"
|
|
85
|
+
* ...
|
|
86
|
+
* }
|
|
87
|
+
*
|
|
88
|
+
* (async () => {
|
|
89
|
+
* const {data, res} = await tenantOptionsService.update(partialUpdateObject);
|
|
90
|
+
* })();
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* Required role: ROLE_OPTION_MANAGEMENT_ADMIN
|
|
94
|
+
*/
|
|
95
|
+
update(entity: ITenantOption): Promise<IResult<ITenantOption>>;
|
|
96
|
+
/**
|
|
97
|
+
* Gets the list of tenant's options filtered by parameters.
|
|
98
|
+
*
|
|
99
|
+
* @param {object} filter Object containing filters for querying tenant options.
|
|
100
|
+
*
|
|
101
|
+
* @returns {IResultList<ITenantOption>} Returns promise object that is resolved
|
|
102
|
+
* with the ITenantOption wrapped by IResultList.
|
|
103
|
+
*
|
|
104
|
+
* **Example**
|
|
105
|
+
* ```typescript
|
|
106
|
+
*
|
|
107
|
+
* const filter: object = {
|
|
108
|
+
* severity: Severity.MAJOR,
|
|
109
|
+
* pageSize: 100,
|
|
110
|
+
* withTotalPages: true
|
|
111
|
+
* };
|
|
112
|
+
*
|
|
113
|
+
* (async () => {
|
|
114
|
+
* const {data, res, paging} = await tenantOptionsService.list(filter);
|
|
115
|
+
* })();
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* Required role: ROLE_OPTION_MANAGEMENT_READ
|
|
119
|
+
*/
|
|
120
|
+
list(filter?: object): Promise<IResultList<ITenantOption>>;
|
|
121
|
+
/**
|
|
122
|
+
* Delete a representation of a tenant's option.
|
|
123
|
+
*
|
|
124
|
+
* @param {string|number|IIdentified} entityOrId Tenant's option id or tenant's option object.
|
|
125
|
+
*
|
|
126
|
+
* @returns Returns promise object that is resolved with the IResult.
|
|
127
|
+
*
|
|
128
|
+
* **Example**
|
|
129
|
+
* ```typescript
|
|
130
|
+
*
|
|
131
|
+
* const tenantOptionId: string = "uniqueTenantId";
|
|
132
|
+
*
|
|
133
|
+
* (async () => {
|
|
134
|
+
* const {data, res} = await tenantOptionsService.delete(tenantOptionId);
|
|
135
|
+
* })();
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* Required role: ROLE_TENANT_MANAGEMENT_ADMIN
|
|
139
|
+
*/
|
|
140
|
+
delete(entityOrId: string | number | IIdentified): Promise<IResult<null>>;
|
|
141
|
+
protected getDetailUrl(entity: ITenantOption): string;
|
|
142
|
+
protected onBeforeCreate(obj: ITenantOption): any;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=TenantOptionsService.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Description of ITenantSecurityOption interface */
|
|
2
|
+
export interface ITenantSecurityOption {
|
|
3
|
+
/** Key identifies the security option */
|
|
4
|
+
key: string;
|
|
5
|
+
/** Value of a security option */
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ITenantSecurityOption.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Service, IResult } from '../core';
|
|
2
|
+
import { ITenantSecurityOption } from './ITenantSecurityOption';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* This service allows to get tenant security option.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TenantSecurityOptionsService extends Service<ITenantSecurityOption> {
|
|
8
|
+
protected baseUrl: string;
|
|
9
|
+
protected listUrl: string;
|
|
10
|
+
protected category: string;
|
|
11
|
+
protected propertyName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Get a specific tenant's security option.
|
|
14
|
+
*
|
|
15
|
+
* @param {ITenantSecurityOption} Tenant's security option object with key value.
|
|
16
|
+
*
|
|
17
|
+
* @returns Returns promise object that is resolved with the ITenantSecurityOption wrapped by IResult.
|
|
18
|
+
*
|
|
19
|
+
* **Example**
|
|
20
|
+
* ```typescript
|
|
21
|
+
*
|
|
22
|
+
* const option: ITenantSecurityOption = {
|
|
23
|
+
* key: 'limit.validity'
|
|
24
|
+
* };
|
|
25
|
+
*
|
|
26
|
+
* (async () => {
|
|
27
|
+
* const {data, res} = await tenantSecurityOptionsService.detail(option);
|
|
28
|
+
* })();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
detail(tenantSecurityOption: ITenantSecurityOption): Promise<IResult<ITenantSecurityOption>>;
|
|
32
|
+
protected getDetailUrl(tenantSecurityOption: ITenantSecurityOption): string;
|
|
33
|
+
protected onBeforeCreate(obj: ITenantSecurityOption): any;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=TenantSecurityOptionsService.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This interface holds all fragments that describe a certificate object
|
|
3
|
+
*/
|
|
4
|
+
export interface ITrustedCertificate {
|
|
5
|
+
/**
|
|
6
|
+
* Certificate validity end date and time
|
|
7
|
+
*/
|
|
8
|
+
notAfter?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Certificate validity start date and time
|
|
11
|
+
*/
|
|
12
|
+
notBefore?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Which X.509 version applies to the certificate
|
|
15
|
+
*/
|
|
16
|
+
version?: any;
|
|
17
|
+
/**
|
|
18
|
+
* The algorithm used by the issuer to sign the certificate
|
|
19
|
+
*/
|
|
20
|
+
algorithmName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The owner of the certificate
|
|
23
|
+
*/
|
|
24
|
+
subject?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Certificate serial number
|
|
27
|
+
*/
|
|
28
|
+
serialNumber?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the entity issuing the certificate
|
|
31
|
+
*/
|
|
32
|
+
issuer?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Certificate fingerprint
|
|
35
|
+
* A unique identifier
|
|
36
|
+
*/
|
|
37
|
+
fingerprint: string;
|
|
38
|
+
/**
|
|
39
|
+
* Certificate status
|
|
40
|
+
*/
|
|
41
|
+
status: 'ENABLED' | 'DISABLED';
|
|
42
|
+
/**
|
|
43
|
+
* Certificate name
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
* Auto-registration flag
|
|
48
|
+
* All devices with credentials signed by this certificate will be able to communicate with the platform without a prior registration.
|
|
49
|
+
*/
|
|
50
|
+
autoRegistrationEnabled?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Certificate in PEM format
|
|
53
|
+
*/
|
|
54
|
+
certInPemFormat: string;
|
|
55
|
+
/**
|
|
56
|
+
* True if user has proved to own the certificate.
|
|
57
|
+
*/
|
|
58
|
+
proofOfPossessionValid?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* A random string which should be encrypted with the private key to prove the certificate's ownership.
|
|
61
|
+
*/
|
|
62
|
+
proofOfPossessionUnsignedVerificationCode?: string;
|
|
63
|
+
/**
|
|
64
|
+
* A date until the unsigned verification code can be used to prove the certificate's ownership. After this date the code needs to be regenerated.
|
|
65
|
+
*/
|
|
66
|
+
proofOfPossessionVerificationCodeUsableUntil?: string;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=ITrustedCertificate.d.ts.map
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { IResult, Service } from '../core';
|
|
2
|
+
import { ITrustedCertificate } from './ITrustedCertificate';
|
|
3
|
+
/**
|
|
4
|
+
* This class allows for managing trusted certificates.
|
|
5
|
+
*/
|
|
6
|
+
export declare class TrustedCertificateService extends Service<ITrustedCertificate> {
|
|
7
|
+
protected get baseUrl(): string;
|
|
8
|
+
protected listUrl: string;
|
|
9
|
+
protected proofOfPossessionUrl: string;
|
|
10
|
+
protected propertyName: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a list of trusted certificates.
|
|
13
|
+
*
|
|
14
|
+
* @returns Response wrapped in [[IResultList]].
|
|
15
|
+
*
|
|
16
|
+
* **Example**
|
|
17
|
+
* ```typescript
|
|
18
|
+
*
|
|
19
|
+
* (async () => {
|
|
20
|
+
* const {data, res} = await trustedCertificateService.list();
|
|
21
|
+
* })();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(filter?: object): Promise<import("../core").IResultList<ITrustedCertificate>>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the details of trusted certificate
|
|
27
|
+
*
|
|
28
|
+
* @param entityOrId Trusted certificate object or trusted certificate fingerprint.
|
|
29
|
+
*
|
|
30
|
+
* @returns Response wrapped in [[IResult]]
|
|
31
|
+
*
|
|
32
|
+
* **Example**
|
|
33
|
+
* ```typescript
|
|
34
|
+
*
|
|
35
|
+
* const fingerprint: string = 'abc';
|
|
36
|
+
*
|
|
37
|
+
* (async () => {
|
|
38
|
+
* const {data, res} = await trustedCertificateService.detail(fingerprint);
|
|
39
|
+
* })();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
detail(entityOrId: string | ITrustedCertificate): Promise<IResult<ITrustedCertificate>>;
|
|
43
|
+
/**
|
|
44
|
+
* Removes a trusted certificate with given fingerprint.
|
|
45
|
+
*
|
|
46
|
+
* @returns Response wrapped in [[IResult]]
|
|
47
|
+
*
|
|
48
|
+
* @param entityOrId Trusted certificate object or trusted certificate fingerprint.
|
|
49
|
+
*
|
|
50
|
+
* **Example**
|
|
51
|
+
* ```typescript
|
|
52
|
+
*
|
|
53
|
+
* const fingerprint: string = 'abc';
|
|
54
|
+
*
|
|
55
|
+
* (async () => {
|
|
56
|
+
* const {data, res} = await trustedCertificateService.delete(fingerprint);
|
|
57
|
+
* })();
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(entityOrId: string | ITrustedCertificate): Promise<IResult<null>>;
|
|
61
|
+
/**
|
|
62
|
+
* Updates trusted certificate data.
|
|
63
|
+
*
|
|
64
|
+
* @param entity Trusted certificate partial object.
|
|
65
|
+
*
|
|
66
|
+
* @returns Response wrapped in [[IResult]]
|
|
67
|
+
*
|
|
68
|
+
* **Example**
|
|
69
|
+
* ```typescript
|
|
70
|
+
*
|
|
71
|
+
* const certificate: Partial<ITrustedCertificate> = {
|
|
72
|
+
* name: 'Name'
|
|
73
|
+
* };
|
|
74
|
+
*
|
|
75
|
+
* (async () => {
|
|
76
|
+
* const {data, res} = await trustedCertificateService.update(certificate);
|
|
77
|
+
* })();
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
update(entity: Partial<ITrustedCertificate>): Promise<IResult<ITrustedCertificate>>;
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new trusted certificate.
|
|
83
|
+
*
|
|
84
|
+
* @param entity Trusted certificate object.
|
|
85
|
+
*
|
|
86
|
+
* @returns Response wrapped in [[IResult]]
|
|
87
|
+
*
|
|
88
|
+
* **Example**
|
|
89
|
+
* ```typescript
|
|
90
|
+
*
|
|
91
|
+
* const certificate: Partial<ITrustedCertificate> = {
|
|
92
|
+
* name: 'Name',
|
|
93
|
+
* certInPemFormat: 'MIID+DCCAuCgAwIBAgIJAO1Q9t/M9gYlMA0GC...',
|
|
94
|
+
* status: 'ENABLED'
|
|
95
|
+
* };
|
|
96
|
+
*
|
|
97
|
+
* (async () => {
|
|
98
|
+
* const {data, res} = await trustedCertificateService.create(certificate);
|
|
99
|
+
* })();
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
create(entity: Partial<ITrustedCertificate>): Promise<IResult<ITrustedCertificate>>;
|
|
103
|
+
/**
|
|
104
|
+
* Regenerates unsigned verification code for trusted certificate.
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @param entityOrId Trusted certificate object or finger print.
|
|
108
|
+
*
|
|
109
|
+
* @returns Certificate object with new verification code (wrapped in [[IResult]])
|
|
110
|
+
*
|
|
111
|
+
* **Example**
|
|
112
|
+
* ```typescript
|
|
113
|
+
*
|
|
114
|
+
* (async () => {
|
|
115
|
+
* const fingerPrint = '00a360973e3e8d61e05aedb32c72438e2442279e';
|
|
116
|
+
* const {data, res} = await trustedCertificateService.regeneratePoPVerificationCode(fingerPrint);
|
|
117
|
+
* const newProofOfPossessionUnsignedVerificationCode = data.proofOfPossessionUnsignedVerificationCode;
|
|
118
|
+
* })();
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
regeneratePoPVerificationCode(entityOrId: string | ITrustedCertificate): Promise<IResult<ITrustedCertificate>>;
|
|
122
|
+
/**
|
|
123
|
+
* Verifies signed verification code for trusted certificate.
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
* @param entityOrId Trusted certificate object or finger print.
|
|
127
|
+
* @param proofOfPossessionSignedVerificationCode Unsigned verification code encrypted by the private key.
|
|
128
|
+
*
|
|
129
|
+
* @returns Certificate object with the result of verification (wrapped in [[IResult]]).
|
|
130
|
+
*
|
|
131
|
+
* **Example**
|
|
132
|
+
* ```typescript
|
|
133
|
+
*
|
|
134
|
+
* (async () => {
|
|
135
|
+
* const fingerPrint = '00a360973e3e8d61e05aedb32c72438e2442279e';
|
|
136
|
+
* const encryptedVerificationCode ='fuvlVWLfXG3V3bJWAdEhPD0HFCrYo5';
|
|
137
|
+
* const {data, res} = await trustedCertificateService.verifySignedVerificationCode(fingerPrint, encryptedVerificationCode);
|
|
138
|
+
* const isCertificateVerified = data.proofOfPossessionValid;
|
|
139
|
+
* })();
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
verifySignedVerificationCode(entityOrId: string | ITrustedCertificate, proofOfPossessionSignedVerificationCode: string): Promise<IResult<ITrustedCertificate>>;
|
|
143
|
+
protected getDetailUrl(entityOrId: string | ITrustedCertificate): string;
|
|
144
|
+
protected getEntityId(entityOrId: string | ITrustedCertificate): string;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=TrustedCertificateService.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { INamed } from '../core';
|
|
2
|
+
/** Description of ICurrenUser interface */
|
|
3
|
+
export interface ICurrentUser {
|
|
4
|
+
/** Uniquely identifies a user */
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* User name, unique for a given domain.
|
|
8
|
+
* Max: 1000 characters. Whitespaces, slashes, +$: characters not allowed
|
|
9
|
+
*/
|
|
10
|
+
userName: string;
|
|
11
|
+
/**
|
|
12
|
+
* User password. Min: 6, max: 32 characters.
|
|
13
|
+
* Only Latin1 chars allowed
|
|
14
|
+
*/
|
|
15
|
+
password?: string;
|
|
16
|
+
/** Link to this Resource */
|
|
17
|
+
self?: string;
|
|
18
|
+
/** True if user should reset password */
|
|
19
|
+
shouldResetPassword?: boolean;
|
|
20
|
+
/** User email address. */
|
|
21
|
+
email?: string;
|
|
22
|
+
/** User first name. */
|
|
23
|
+
firstName?: string;
|
|
24
|
+
/** User last name. */
|
|
25
|
+
lastName?: string;
|
|
26
|
+
/** User phone number. */
|
|
27
|
+
phone?: string;
|
|
28
|
+
/** The date/time of last password change. */
|
|
29
|
+
lastPasswordChange?: string;
|
|
30
|
+
/** The password strength */
|
|
31
|
+
passwordStrength?: string;
|
|
32
|
+
/** List of all roles a current user has assigned (explicitly or implicitly via associated groups). */
|
|
33
|
+
effectiveRoles?: INamed[];
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ICurrentUser.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PasswordStrength } from './';
|
|
2
|
+
export interface IResetPassword {
|
|
3
|
+
/** New password to be set. */
|
|
4
|
+
newPassword?: string;
|
|
5
|
+
/** New password's strength indicator. */
|
|
6
|
+
passwordStrength?: PasswordStrength;
|
|
7
|
+
/** Password reset token. */
|
|
8
|
+
token?: string;
|
|
9
|
+
/** User's email address. */
|
|
10
|
+
email?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IResetPassword.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { IIdentified } from '../core';
|
|
2
|
+
/** Description of IUser interface */
|
|
3
|
+
export interface IUser {
|
|
4
|
+
/** Uniquely identifies a user */
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* User name, unique for a given domain.
|
|
8
|
+
* Max: 1000 characters. Whitespaces, slashes, +$: characters not allowed
|
|
9
|
+
*/
|
|
10
|
+
userName: string;
|
|
11
|
+
/**
|
|
12
|
+
* The display name
|
|
13
|
+
*/
|
|
14
|
+
displayName: string;
|
|
15
|
+
/**
|
|
16
|
+
* User password. Min: 6, max: 32 characters.
|
|
17
|
+
* Only Latin1 chars allowed
|
|
18
|
+
*/
|
|
19
|
+
password?: string;
|
|
20
|
+
/** Link to this Resource */
|
|
21
|
+
self?: string;
|
|
22
|
+
/** True if user should reset password */
|
|
23
|
+
shouldResetPassword?: boolean;
|
|
24
|
+
/** Keeps a list of all user applications */
|
|
25
|
+
applications?: IIdentified[];
|
|
26
|
+
/** Keeps a list of custom properties */
|
|
27
|
+
customProperties?: any;
|
|
28
|
+
/** List of device permissions */
|
|
29
|
+
devicePermission?: any;
|
|
30
|
+
/** User email address. */
|
|
31
|
+
email?: string;
|
|
32
|
+
/** User activation status (true/false) */
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
/** User first name. */
|
|
35
|
+
firstName?: string;
|
|
36
|
+
/** User last name. */
|
|
37
|
+
lastName?: string;
|
|
38
|
+
/** User phone number. */
|
|
39
|
+
phone?: string;
|
|
40
|
+
/** */
|
|
41
|
+
lastPasswordChange?: string;
|
|
42
|
+
/** The password strength */
|
|
43
|
+
passwordStrength?: string;
|
|
44
|
+
/** */
|
|
45
|
+
twoFactorAuthenticationEnabled?: boolean;
|
|
46
|
+
/** List of role references */
|
|
47
|
+
roles?: IUserRoleReference;
|
|
48
|
+
supportUserEnabled?: boolean;
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}
|
|
51
|
+
/** Description of IUserRoleReference interface */
|
|
52
|
+
export interface IUserRoleReference {
|
|
53
|
+
/** List of role references */
|
|
54
|
+
references: IIdentified[];
|
|
55
|
+
/** Link to this Resource */
|
|
56
|
+
self: string;
|
|
57
|
+
}
|
|
58
|
+
/** Description of IUserReferences interface */
|
|
59
|
+
export interface IUserReferences {
|
|
60
|
+
/** List of user references */
|
|
61
|
+
references: IUserReference[];
|
|
62
|
+
/** Link to this Resource */
|
|
63
|
+
self: string;
|
|
64
|
+
}
|
|
65
|
+
/** Description of IUserReference interface */
|
|
66
|
+
export interface IUserReference {
|
|
67
|
+
/** A user resource being referenced */
|
|
68
|
+
user: Partial<IUser>;
|
|
69
|
+
/** Link to this Resource */
|
|
70
|
+
self: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=IUser.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IIdentified } from '../core';
|
|
2
|
+
/** Description of IUserInventoryRole interface */
|
|
3
|
+
export interface IUserInventoryRole {
|
|
4
|
+
/** UUniquely identifies a user inventory role */
|
|
5
|
+
id?: number;
|
|
6
|
+
/** */
|
|
7
|
+
managedObject: string;
|
|
8
|
+
/** List of role references */
|
|
9
|
+
roles: IIdentified[];
|
|
10
|
+
/** Link to this Resource */
|
|
11
|
+
self?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=IUserInventoryRole.d.ts.map
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { IFetchClient, IIdentified, Service } from '../core';
|
|
2
|
+
import { IUserInventoryRole } from './IUserInventoryRole';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* This service allows for managing current user's inventory roles.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserInventoryRoleService extends Service<IUserInventoryRole> {
|
|
8
|
+
protected baseUrl: any;
|
|
9
|
+
protected listUrl: string;
|
|
10
|
+
protected currenUserUrl: string;
|
|
11
|
+
protected propertyName: string;
|
|
12
|
+
constructor(userUrl: string, client: IFetchClient);
|
|
13
|
+
/**
|
|
14
|
+
* Get a representation of a concrete current user's inventory role.
|
|
15
|
+
*
|
|
16
|
+
* @param {string|number|IUserInventoryRole} entityOrId inventory role id or inventory role object.
|
|
17
|
+
*
|
|
18
|
+
* @returns Returns promise object that is resolved with the IUserInventoryRole wrapped by IResult.
|
|
19
|
+
*
|
|
20
|
+
* **Example**
|
|
21
|
+
* ```typescript
|
|
22
|
+
*
|
|
23
|
+
* const inventoryRoleId: number = 1;
|
|
24
|
+
*
|
|
25
|
+
* (async () => {
|
|
26
|
+
* const {data, res} = await userInventoryRoleService.detail(inventoryRoleId);
|
|
27
|
+
* })();
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Required role: ROLE_TENANT_MANAGEMENT_READ<br><br>
|
|
31
|
+
* User password is never returned in GET response. Authentication mechanism is provided by another interface.
|
|
32
|
+
*/
|
|
33
|
+
detail(entityOrId: string | number | IUserInventoryRole): Promise<import("../core").IResult<IUserInventoryRole>>;
|
|
34
|
+
/**
|
|
35
|
+
* Assign inventory role to current user.
|
|
36
|
+
*
|
|
37
|
+
* @param {IUserInventoryRole} entity Inventory Role object.
|
|
38
|
+
*
|
|
39
|
+
* @returns Returns promise object that is resolved with the details of newly assigned inventory role.
|
|
40
|
+
*
|
|
41
|
+
* **Example**
|
|
42
|
+
* ```typescript
|
|
43
|
+
*
|
|
44
|
+
* const inventoryRoleObject: IUserInventoryRole = {
|
|
45
|
+
* ...
|
|
46
|
+
* };
|
|
47
|
+
*
|
|
48
|
+
* (async () => {
|
|
49
|
+
* const {data, res} = await userInventoryRoleService.create(inventoryRoleObject);
|
|
50
|
+
* })();
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
create(entity: IUserInventoryRole): Promise<import("../core").IResult<IUserInventoryRole>>;
|
|
54
|
+
/**
|
|
55
|
+
* Updates an inventory role.
|
|
56
|
+
*
|
|
57
|
+
* @param {Partial<IUserInventoryRole>} entity Inventory Role object.
|
|
58
|
+
*/
|
|
59
|
+
update(entity: Partial<IUserInventoryRole>): Promise<import("../core").IResult<IUserInventoryRole>>;
|
|
60
|
+
/**
|
|
61
|
+
* Gets the list the inventory roles applied to a current user.
|
|
62
|
+
*
|
|
63
|
+
* @param {object} filter Object containing filters for querying inventory roles.
|
|
64
|
+
*
|
|
65
|
+
* @returns Returns promise object that is resolved with the IUserInventoryRole wrapped by IResultList.
|
|
66
|
+
*
|
|
67
|
+
* **Example**
|
|
68
|
+
* ```typescript
|
|
69
|
+
*
|
|
70
|
+
* const filter: object = {
|
|
71
|
+
* severity: Severity.MAJOR,
|
|
72
|
+
* pageSize: 100,
|
|
73
|
+
* withTotalPages: true
|
|
74
|
+
* };
|
|
75
|
+
*
|
|
76
|
+
* (async () => {
|
|
77
|
+
* const {data, res, paging} = await userInventoryRoleService.list(filter);
|
|
78
|
+
* })();
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
list(filter?: object): Promise<import("../core").IResultList<IUserInventoryRole>>;
|
|
82
|
+
/**
|
|
83
|
+
* Unassign inventory role from current user
|
|
84
|
+
*
|
|
85
|
+
* @param {string|number|IIdentified} entityOrId Inventory Role id or Inventory Role object.
|
|
86
|
+
*
|
|
87
|
+
* @returns Returns promise object that is resolved with the IResult.
|
|
88
|
+
*
|
|
89
|
+
* **Example**
|
|
90
|
+
* ```typescript
|
|
91
|
+
*
|
|
92
|
+
* const inventoryRoleId: number = 1;
|
|
93
|
+
*
|
|
94
|
+
* (async () => {
|
|
95
|
+
* const {data, res} = await userInventoryRoleService.delete(inventoryRoleId);
|
|
96
|
+
* })();
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
delete(entityOrId: string | number | IIdentified): Promise<import("../core").IResult<null>>;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=UserInventoryRoleService.d.ts.map
|