@c8y/client 1018.487.7 → 1018.497.2
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,41 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { Stream } from 'stream';
|
|
4
|
+
import { IFetchClient, IResult } from '../core';
|
|
5
|
+
import { IDeviceRegistrationBulkResult } from './IDeviceRegistrationBulkResult';
|
|
6
|
+
/**
|
|
7
|
+
* This class allows for bulk registering devices.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DeviceRegistrationBulkService {
|
|
10
|
+
protected client: IFetchClient;
|
|
11
|
+
/**
|
|
12
|
+
* Instantiate class and assign client
|
|
13
|
+
* @param {IFetchClient} client
|
|
14
|
+
*/
|
|
15
|
+
constructor(client: IFetchClient);
|
|
16
|
+
/**
|
|
17
|
+
* A new device registration as bulk.
|
|
18
|
+
*
|
|
19
|
+
* @param {Stream | Buffer} csv
|
|
20
|
+
*
|
|
21
|
+
* @returns Response wrapped in [[IResult]]
|
|
22
|
+
*
|
|
23
|
+
* **Example**
|
|
24
|
+
* ```typescript
|
|
25
|
+
*
|
|
26
|
+
* const csvString = `
|
|
27
|
+
* ID,CREDENTIALS,TENANT,TYPE,NAME,ICCID,IDTYPE,PATH,SHELL
|
|
28
|
+
* e2eDeviceRegistrationId,e2epassword123!,e2edocker,c8y_e2eDevice,e2eDevice,123456789,89456,e2eDeviceGroup,1
|
|
29
|
+
* 900001,e2epassword123!,e2edocker,c8y_e2eDevice1,e2eDevice1,123456789,89456,e2eDeviceGroup,1
|
|
30
|
+
* 900002,e2epassword123!,e2edocker,c8y_e2eDevice2,e2eDevice2,123456789,89456,e2eDeviceGroup,1`.trim();
|
|
31
|
+
*
|
|
32
|
+
* const csvBuffer = Buffer.from(csvString):
|
|
33
|
+
*
|
|
34
|
+
* (async () => {
|
|
35
|
+
* const {data, res} = await deviceRegistrationBulkService.create(csvBuffer);
|
|
36
|
+
* })();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
create(inputFile: Stream | Buffer | File | Blob): Promise<IResult<IDeviceRegistrationBulkResult>>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=DeviceRegistrationBulkService.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device registration can have one of the following security modes.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DeviceRegistrationSecurityMode {
|
|
5
|
+
REQUIRED = "REQUIRED",
|
|
6
|
+
OPTIONAL = "OPTIONAL",
|
|
7
|
+
IGNORED = "IGNORED"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=DeviceRegistrationSecurityMode.d.ts.map
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { IIdentified, Service, IResult, IResultList } from '../core';
|
|
2
|
+
import { IDeviceRegistration, IDeviceRegistrationAccept, IDeviceRegistrationCreate, IDeviceRegistrationLimit } from './IDeviceRegistration';
|
|
3
|
+
import { IDeviceCredentials } from './IDeviceCredentials';
|
|
4
|
+
/**
|
|
5
|
+
* Interface to use as options parameter
|
|
6
|
+
* to bootstrap a new device.
|
|
7
|
+
*/
|
|
8
|
+
export interface IDeviceBootstrapOptions {
|
|
9
|
+
/**
|
|
10
|
+
* If already logged in it is accessible via
|
|
11
|
+
* client.auth.getFetchOptions, see [[BasicAuth.getFetchOptions]]
|
|
12
|
+
*
|
|
13
|
+
* **Example**
|
|
14
|
+
* ``` typescript
|
|
15
|
+
*
|
|
16
|
+
* // tenant/username:password
|
|
17
|
+
* const basicAuthToken = 'Basic dGVuYW50L3VzZXJuYW1lOnBhc3N3b3Jk';
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
basicAuthToken?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Object to define username and password
|
|
23
|
+
* as string.
|
|
24
|
+
*
|
|
25
|
+
* **Example**
|
|
26
|
+
* ``` typescript
|
|
27
|
+
*
|
|
28
|
+
* const basicAuth = {
|
|
29
|
+
* user: 'username',
|
|
30
|
+
* pass: 'password'
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
basicAuth?: {
|
|
35
|
+
user: string;
|
|
36
|
+
pass: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* This class allows registration of a new device.
|
|
41
|
+
*/
|
|
42
|
+
export declare class DeviceRegistrationService extends Service<IDeviceRegistration> {
|
|
43
|
+
protected baseUrl: string;
|
|
44
|
+
protected listUrl: string;
|
|
45
|
+
protected propertyName: string;
|
|
46
|
+
/**
|
|
47
|
+
* Gets the details of device registration.
|
|
48
|
+
*
|
|
49
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
50
|
+
*
|
|
51
|
+
* @returns Response wrapped in [[IResult]]
|
|
52
|
+
*
|
|
53
|
+
* **Example**
|
|
54
|
+
* ```typescript
|
|
55
|
+
*
|
|
56
|
+
* const entityId: number = 1;
|
|
57
|
+
*
|
|
58
|
+
* (async () => {
|
|
59
|
+
* const {data, res} = await deviceRegistrationService.detail(entityId);
|
|
60
|
+
* })();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
detail(entityOrId: string | number | IIdentified): Promise<IResult<IDeviceRegistration>>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new device registration.
|
|
66
|
+
*
|
|
67
|
+
* @param {IDeviceRegistrationCreate} entity Device registration object with mandantory fragments.
|
|
68
|
+
*
|
|
69
|
+
* @returns Response wrapped in [[IResult]]
|
|
70
|
+
*
|
|
71
|
+
* **Example**
|
|
72
|
+
* ```typescript
|
|
73
|
+
*
|
|
74
|
+
* const mandantoryObject: IDeviceRegistrationCreate = {
|
|
75
|
+
* id: 1,
|
|
76
|
+
* };
|
|
77
|
+
*
|
|
78
|
+
* (async () => {
|
|
79
|
+
* const {data, res} = await deviceRegistrationService.create(mandantoryObject);
|
|
80
|
+
* })();
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
create(entity: IDeviceRegistrationCreate): Promise<IResult<IDeviceRegistration>>;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the list of device registrations by parameters.
|
|
86
|
+
*
|
|
87
|
+
* @returns Response wrapped in [[IResultList]]
|
|
88
|
+
*
|
|
89
|
+
* @param {object} filter Object containing filters for querying registrations.
|
|
90
|
+
*
|
|
91
|
+
* **Example**
|
|
92
|
+
* ```typescript
|
|
93
|
+
*
|
|
94
|
+
* const filter: object = {
|
|
95
|
+
* pageSize: 100,
|
|
96
|
+
* withTotalPages: true
|
|
97
|
+
* };
|
|
98
|
+
*
|
|
99
|
+
* (async () => {
|
|
100
|
+
* const {data, res, paging} = await deviceRegistrationService.list(filter);
|
|
101
|
+
* })();
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
list(filter?: object): Promise<IResultList<IDeviceRegistration>>;
|
|
105
|
+
/**
|
|
106
|
+
* Removes an registration with given id.
|
|
107
|
+
*
|
|
108
|
+
* @returns Response wrapped in [[IResult]]
|
|
109
|
+
*
|
|
110
|
+
* @param {string | number | IIdentified} entityOrId entity or id of the registration.
|
|
111
|
+
*
|
|
112
|
+
* **Example**
|
|
113
|
+
* ```typescript
|
|
114
|
+
*
|
|
115
|
+
* const id = 'abc';
|
|
116
|
+
*
|
|
117
|
+
* (async () => {
|
|
118
|
+
* const {data, res} = await deviceRegistrationService.delete(id);
|
|
119
|
+
* // data will be null
|
|
120
|
+
* })();
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
delete(entityOrId: string | number | IIdentified): Promise<IResult<null>>;
|
|
124
|
+
/**
|
|
125
|
+
* Accepts the device registration for given id.
|
|
126
|
+
*
|
|
127
|
+
* @returns Response wrapped in [[IResult]]
|
|
128
|
+
*
|
|
129
|
+
* @param {string | number | IIdentified} entityOrId entity or id of registration.
|
|
130
|
+
*
|
|
131
|
+
* **Example**
|
|
132
|
+
* ```typescript
|
|
133
|
+
*
|
|
134
|
+
* const id = 'abc';
|
|
135
|
+
*
|
|
136
|
+
* (async () => {
|
|
137
|
+
* const {data, res} = await deviceRegistrationService.accept(id);
|
|
138
|
+
* })();
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
accept(entityOrId: string | number | IIdentified): Promise<IResult<IDeviceRegistration>>;
|
|
142
|
+
/**
|
|
143
|
+
* Accepts the device registration for all registrations in pending acceptance.
|
|
144
|
+
*
|
|
145
|
+
* @returns Response wrapped in [[IResultList]]
|
|
146
|
+
*
|
|
147
|
+
* **Example**
|
|
148
|
+
* ```typescript
|
|
149
|
+
*
|
|
150
|
+
* (async () => {
|
|
151
|
+
* const {data, res} = await deviceRegistrationService.acceptAll();
|
|
152
|
+
* })();
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
acceptAll(): Promise<IResultList<IDeviceRegistrationAccept>>;
|
|
156
|
+
/**
|
|
157
|
+
* Gets limitation information for registering devices to the platform
|
|
158
|
+
*
|
|
159
|
+
* @returns Response wrapped in [[IResult]]
|
|
160
|
+
*
|
|
161
|
+
* **Example**
|
|
162
|
+
* ```typescript
|
|
163
|
+
*
|
|
164
|
+
* (async () => {
|
|
165
|
+
* const {data, res} = await deviceRegistrationService.limit();
|
|
166
|
+
* })();
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
limit(): Promise<IResult<IDeviceRegistrationLimit>>;
|
|
170
|
+
/**
|
|
171
|
+
* Bootstraps the device with given id.
|
|
172
|
+
*
|
|
173
|
+
* @param entityOrId entity or id of registration.
|
|
174
|
+
* @param options for details see [[IDeviceBootstrapOptions]]
|
|
175
|
+
*
|
|
176
|
+
* **Example**
|
|
177
|
+
* ```typescript
|
|
178
|
+
*
|
|
179
|
+
* const id: 'abc';
|
|
180
|
+
* const options: IDeviceBootstrapOptions = {
|
|
181
|
+
* basicAuthToken: 'Basic dGVuYW50L3VzZXJuYW1lOnBhc3N3b3Jk',
|
|
182
|
+
* basicAuth: {
|
|
183
|
+
* user: 'username',
|
|
184
|
+
* pass: 'password'
|
|
185
|
+
* }
|
|
186
|
+
* };
|
|
187
|
+
*
|
|
188
|
+
* (async () => {
|
|
189
|
+
* const {data, res} = await deviceRegistrationService.bootstrap(id, options);
|
|
190
|
+
* })();
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
bootstrap(entityOrId: string | number | IIdentified, options: IDeviceBootstrapOptions): Promise<IResult<IDeviceCredentials>>;
|
|
194
|
+
protected onBeforeCreate(entity: IDeviceRegistrationCreate): IDeviceRegistrationCreate;
|
|
195
|
+
protected onBeforeUpdate(entity: IDeviceRegistrationCreate): IDeviceRegistrationCreate;
|
|
196
|
+
protected getDetailUrl(entityOrId: string | number | IIdentified): string;
|
|
197
|
+
private getSecurityToken;
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=DeviceRegistrationService.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IDeviceCredentials {
|
|
2
|
+
/**
|
|
3
|
+
* Device identifier, e.g. IMEI
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* New password
|
|
8
|
+
*/
|
|
9
|
+
password: string;
|
|
10
|
+
/**
|
|
11
|
+
* Link to this resource
|
|
12
|
+
*/
|
|
13
|
+
self: string;
|
|
14
|
+
/**
|
|
15
|
+
* Tenant id for authentication
|
|
16
|
+
*/
|
|
17
|
+
tenantId: string;
|
|
18
|
+
/**
|
|
19
|
+
* New username
|
|
20
|
+
*/
|
|
21
|
+
username: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=IDeviceCredentials.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { DeviceRegistrationStatus } from './';
|
|
2
|
+
export interface IDeviceRegistrationCreate {
|
|
3
|
+
/**
|
|
4
|
+
* Object for custom fragments
|
|
5
|
+
*/
|
|
6
|
+
customProperties?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Identifies the owner of the object
|
|
11
|
+
*/
|
|
12
|
+
owner?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Shows the server-side creation time of the object
|
|
15
|
+
*/
|
|
16
|
+
creationTime?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifies the target group
|
|
19
|
+
*/
|
|
20
|
+
groupId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Identifies the type of request, e.g.: c8y_DataBroker. For device requests value is normally skipped.
|
|
27
|
+
*/
|
|
28
|
+
type?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IDeviceRegistration extends IDeviceRegistrationCreate {
|
|
31
|
+
/**
|
|
32
|
+
* Link to this resource
|
|
33
|
+
*/
|
|
34
|
+
self: string;
|
|
35
|
+
/**
|
|
36
|
+
* Possible state of device registration
|
|
37
|
+
*/
|
|
38
|
+
status: DeviceRegistrationStatus;
|
|
39
|
+
/**
|
|
40
|
+
* Identifies the tenant
|
|
41
|
+
*/
|
|
42
|
+
tenantId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Security token for a device may be required to register successfully
|
|
45
|
+
*/
|
|
46
|
+
securityToken?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IDeviceRegistrationAccept {
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier of accepted device registration
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* Success state of device registration
|
|
55
|
+
*/
|
|
56
|
+
successful: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Text to describe an error that occurred while registering the device
|
|
59
|
+
*/
|
|
60
|
+
error?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface IDeviceRegistrationLimit {
|
|
63
|
+
/**
|
|
64
|
+
* Indicates if the limit is reached
|
|
65
|
+
*/
|
|
66
|
+
isReached: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Shows the current limit
|
|
69
|
+
*/
|
|
70
|
+
limit?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Shows the current registered device count
|
|
73
|
+
*/
|
|
74
|
+
deviceCount?: number;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=IDeviceRegistration.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IDeviceRegistrationBulkResult {
|
|
2
|
+
/**
|
|
3
|
+
* Result list of updated credentials
|
|
4
|
+
*/
|
|
5
|
+
credentialUpdatedList: any[];
|
|
6
|
+
/**
|
|
7
|
+
* Failed creations as list
|
|
8
|
+
*/
|
|
9
|
+
failedCreationList: any[];
|
|
10
|
+
/**
|
|
11
|
+
* Count of all results
|
|
12
|
+
*/
|
|
13
|
+
numberOfAll: number;
|
|
14
|
+
/**
|
|
15
|
+
* Count of newly created
|
|
16
|
+
*/
|
|
17
|
+
numberOfCreated: number;
|
|
18
|
+
/**
|
|
19
|
+
* Count of failed
|
|
20
|
+
*/
|
|
21
|
+
numberOfFailed: number;
|
|
22
|
+
/**
|
|
23
|
+
* Count of successful
|
|
24
|
+
*/
|
|
25
|
+
numberOfSuccessful: number;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=IDeviceRegistrationBulkResult.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './DeviceRegistrationService';
|
|
2
|
+
export * from './DeviceRegistrationBulkService';
|
|
3
|
+
export * from './IDeviceRegistration';
|
|
4
|
+
export * from './IDeviceRegistrationBulkResult';
|
|
5
|
+
export * from './IDeviceCredentials';
|
|
6
|
+
export * from './DeviceRegistrationStatus';
|
|
7
|
+
export * from './DeviceRegistrationSecurityMode';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { Stream } from 'stream';
|
|
4
|
+
import { Service, IResult, IFetchResponse } from '../core';
|
|
5
|
+
import { IEvent } from './IEvent';
|
|
6
|
+
import { IEventBinary } from './IEventBinary';
|
|
7
|
+
export declare class EventBinaryService extends Service<IEventBinary> {
|
|
8
|
+
protected baseUrl: string;
|
|
9
|
+
protected listUrl: string;
|
|
10
|
+
/**
|
|
11
|
+
* Uploads an event binary.
|
|
12
|
+
* @returns Response wrapped in [[IResult]]
|
|
13
|
+
*
|
|
14
|
+
* @param {Stream | Buffer | File | Blob} file file to upload.
|
|
15
|
+
* @param {string | number | IEvent} eventOrId Event or Id of the Event.
|
|
16
|
+
*
|
|
17
|
+
* **Example**
|
|
18
|
+
* ```typescript
|
|
19
|
+
*
|
|
20
|
+
* const file = Buffer.from('aaa');
|
|
21
|
+
* const eventId: string | number = 123;
|
|
22
|
+
*
|
|
23
|
+
* (async () => {
|
|
24
|
+
* const {data, res} = await eventBinaryService.upload(file, eventId);
|
|
25
|
+
* })();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
upload(file: Stream | Buffer | File | Blob, entityOrId: string | number | IEvent): Promise<IResult<IEventBinary>>;
|
|
29
|
+
/**
|
|
30
|
+
* Downloads the binary for a given event.
|
|
31
|
+
* @returns Response wrapped in [[IFetchResponse]]
|
|
32
|
+
*
|
|
33
|
+
* @param {string | number | IEvent} eventOrId Event or Id of the Event.
|
|
34
|
+
*
|
|
35
|
+
* **Example**
|
|
36
|
+
* ```typescript
|
|
37
|
+
*
|
|
38
|
+
* const eventId: string | number = 123;
|
|
39
|
+
*
|
|
40
|
+
* (async () => {
|
|
41
|
+
* const res = await eventBinaryService.download(eventId);
|
|
42
|
+
* })();
|
|
43
|
+
*/
|
|
44
|
+
download(entityOrId: string | number | IEvent): Promise<IFetchResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Removes the binary for a given event.
|
|
47
|
+
* @returns Response wrapped in [[IResult]]
|
|
48
|
+
*
|
|
49
|
+
* @param {string | number | IEvent} eventOrId Event or Id of the Event.
|
|
50
|
+
*
|
|
51
|
+
* **Example**
|
|
52
|
+
* ```typescript
|
|
53
|
+
*
|
|
54
|
+
* const eventId: string | number = 123;
|
|
55
|
+
*
|
|
56
|
+
* (async () => {
|
|
57
|
+
* const {data, res} = await eventBinaryService.delete(eventId);
|
|
58
|
+
* })();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
delete(entityOrId: string | number | IEvent): Promise<IResult<null>>;
|
|
62
|
+
protected getDetailUrl(entityOrId: string | number | IEvent): string;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=EventBinaryService.d.ts.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { IIdentified, Service, IResult, IResultList } from '../core';
|
|
2
|
+
import { IEvent } from './IEvent';
|
|
3
|
+
/**
|
|
4
|
+
* This class allows managing for events.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EventService extends Service<IEvent> {
|
|
7
|
+
protected baseUrl: string;
|
|
8
|
+
protected listUrl: string;
|
|
9
|
+
protected propertyName: string;
|
|
10
|
+
protected channel: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the details of a specific event.
|
|
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 eventId: number = 1;
|
|
22
|
+
*
|
|
23
|
+
* (async () => {
|
|
24
|
+
* const {data, res} = await eventService.detail(eventId);
|
|
25
|
+
* })();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
detail(entityOrId: string | number | IIdentified): Promise<IResult<IEvent>>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new event.
|
|
31
|
+
*
|
|
32
|
+
* @param {IEvent} entity Event object with mandantory fragments.
|
|
33
|
+
*
|
|
34
|
+
* @returns Response wrapped in [[IResult]]
|
|
35
|
+
*
|
|
36
|
+
* **Example**
|
|
37
|
+
* ```typescript
|
|
38
|
+
*
|
|
39
|
+
* const mandantoryObject: IEvent = {
|
|
40
|
+
* source: device,
|
|
41
|
+
* text: 'I am an Event!',
|
|
42
|
+
* time: '2018-05-02T10:08:00Z',
|
|
43
|
+
* type: 'device-type-here',
|
|
44
|
+
* };
|
|
45
|
+
*
|
|
46
|
+
* (async () => {
|
|
47
|
+
* const {data, res} = await eventService.create(mandantoryObject);
|
|
48
|
+
* })();
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
create(entity: IEvent): Promise<IResult<IEvent>>;
|
|
52
|
+
/**
|
|
53
|
+
* Updates event data.
|
|
54
|
+
*
|
|
55
|
+
* @param {Partial<IEvent>} entity Event is partially updatable.
|
|
56
|
+
*
|
|
57
|
+
* @returns Response wrapped in [[IResult]]
|
|
58
|
+
*
|
|
59
|
+
* **Example**
|
|
60
|
+
* ```typescript
|
|
61
|
+
*
|
|
62
|
+
* const partialUpdateObject: Partial<IEvent> = {
|
|
63
|
+
* source: device,
|
|
64
|
+
* text: 'Changed Event!'
|
|
65
|
+
* };
|
|
66
|
+
*
|
|
67
|
+
* (async () => {
|
|
68
|
+
* const {data, res} = await eventService.update(partialUpdateObject);
|
|
69
|
+
* })();
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
update(entity: Partial<IEvent>): Promise<IResult<IEvent>>;
|
|
73
|
+
/**
|
|
74
|
+
* Gets the list of events filtered by parameters.
|
|
75
|
+
*
|
|
76
|
+
* @returns Response wrapped in [[IResultList]]
|
|
77
|
+
*
|
|
78
|
+
* @param {object} filter Object containing filters for querying events.
|
|
79
|
+
*
|
|
80
|
+
* **Example**
|
|
81
|
+
* ```typescript
|
|
82
|
+
*
|
|
83
|
+
* const filter: object = {
|
|
84
|
+
* pageSize: 100,
|
|
85
|
+
* withTotalPages: true
|
|
86
|
+
* };
|
|
87
|
+
*
|
|
88
|
+
* (async () => {
|
|
89
|
+
* const {data, res, paging} = await eventService.list(filter);
|
|
90
|
+
* })();
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
list(filter?: object): Promise<IResultList<IEvent>>;
|
|
94
|
+
/**
|
|
95
|
+
* Removes an event with given id.
|
|
96
|
+
*
|
|
97
|
+
* @returns Response wrapped in [[IResult]]
|
|
98
|
+
*
|
|
99
|
+
* @param {string | number | IIdentified} entityOrId entity or id of the event.
|
|
100
|
+
*
|
|
101
|
+
* **Example**
|
|
102
|
+
* ```typescript
|
|
103
|
+
*
|
|
104
|
+
* const eventId: number = 1;
|
|
105
|
+
*
|
|
106
|
+
* (async () => {
|
|
107
|
+
* const {data, res} = await eventService.delete(eventId);
|
|
108
|
+
* // data will be null
|
|
109
|
+
* })();
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
delete(entityOrId: string | number | IIdentified): Promise<IResult<null>>;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=EventService.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ISource } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* This interface holds all fragments that describe an event object
|
|
4
|
+
*/
|
|
5
|
+
export interface IEvent {
|
|
6
|
+
/**
|
|
7
|
+
* The ManagedObject that the event originated from, see [[ISource]]
|
|
8
|
+
*/
|
|
9
|
+
source: ISource;
|
|
10
|
+
/**
|
|
11
|
+
* Identifies the type of this event
|
|
12
|
+
*/
|
|
13
|
+
type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Time of the event
|
|
16
|
+
*/
|
|
17
|
+
time: string;
|
|
18
|
+
/**
|
|
19
|
+
* Text description of the event
|
|
20
|
+
*/
|
|
21
|
+
text: string;
|
|
22
|
+
/**
|
|
23
|
+
* Uniquely identifies an event
|
|
24
|
+
*/
|
|
25
|
+
id?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Link to this resource
|
|
28
|
+
*/
|
|
29
|
+
self?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Time when event was created in the database
|
|
32
|
+
*/
|
|
33
|
+
creationTime?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Custom fragments
|
|
36
|
+
*/
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=IEvent.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This interface specifies all fragments that describe an event binary.
|
|
3
|
+
*/
|
|
4
|
+
export interface IEventBinary {
|
|
5
|
+
/**
|
|
6
|
+
* Binary name
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* Link to this resource
|
|
11
|
+
*/
|
|
12
|
+
self?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The Event that the binary belongs to
|
|
15
|
+
*/
|
|
16
|
+
source?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Binary file length
|
|
19
|
+
*/
|
|
20
|
+
length?: number;
|
|
21
|
+
/**
|
|
22
|
+
* MIME type of the binary file
|
|
23
|
+
*/
|
|
24
|
+
type?: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=IEventBinary.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IIdentified } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* This interface holds all fragments that can be used to define
|
|
4
|
+
* an identity object.
|
|
5
|
+
*/
|
|
6
|
+
export interface IExternalIdentity {
|
|
7
|
+
/**
|
|
8
|
+
* The identifier used in the external system that Cumulocity interfaces with
|
|
9
|
+
*/
|
|
10
|
+
externalId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The type of the external identifier as string, e.g., "com_cumulocity_model_idtype_SerialNumber"
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* The ManagedObject linked to the external ID
|
|
17
|
+
*/
|
|
18
|
+
managedObject?: IIdentified;
|
|
19
|
+
/**
|
|
20
|
+
* Link to this resource
|
|
21
|
+
*/
|
|
22
|
+
self?: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=IExternalIdentity.d.ts.map
|