@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,325 @@
|
|
|
1
|
+
import { IApplicationInstanceLog, IApplicationInstanceLogRequestParams, IApplicationManagedObject } from './IApplicationInstanceDetails';
|
|
2
|
+
import { IFetchResponse, IResult, IResultList, Service } from '../core';
|
|
3
|
+
import { ITenant } from '../tenant';
|
|
4
|
+
import { IUser } from '../user';
|
|
5
|
+
import { ApplicationBinaryService } from './ApplicationBinaryService';
|
|
6
|
+
import { IApplication } from './IApplication';
|
|
7
|
+
import { IApplicationVersionDeleteParams, IApplicationVersion } from './IApplicationVersion';
|
|
8
|
+
import { IManifest } from './IManifest';
|
|
9
|
+
import { ApplicationAvailability } from './ApplicationAvailability';
|
|
10
|
+
export declare class ApplicationService extends Service<IApplication> {
|
|
11
|
+
protected baseUrl: string;
|
|
12
|
+
protected listUrl: string;
|
|
13
|
+
protected propertyName: string;
|
|
14
|
+
protected channel: string;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new application.
|
|
17
|
+
*
|
|
18
|
+
* @param {IIdentified} entity Application object.
|
|
19
|
+
*
|
|
20
|
+
* @returns Response wrapped in [[IResult]]
|
|
21
|
+
*
|
|
22
|
+
* **Example**
|
|
23
|
+
* ```typescript
|
|
24
|
+
*
|
|
25
|
+
* const newApp = {
|
|
26
|
+
* name: 'New application',
|
|
27
|
+
* type: 'EXTERNAL',
|
|
28
|
+
* key: 'new-app'
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* (async () => {
|
|
32
|
+
* const {data, res} = await applicationService.create(newApp);
|
|
33
|
+
* })();
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
create(entity: IApplication): Promise<IResult<IApplication>>;
|
|
37
|
+
/**
|
|
38
|
+
* Clones a given application. The application name, key, and context-path will be
|
|
39
|
+
* prefixed with `clone` and if necessary a number.
|
|
40
|
+
* @param entity The application to clone.
|
|
41
|
+
* @param version If a blueprint, you can define which version to clone. If not provided, it will always clone the latest version.
|
|
42
|
+
* @returns The application entity.
|
|
43
|
+
*/
|
|
44
|
+
clone(entity: IApplication, version?: string): Promise<IResult<IApplication>>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the list of existing applications filtered by parameters.
|
|
47
|
+
*
|
|
48
|
+
* @returns Response wrapped in [[IResultList]]
|
|
49
|
+
*
|
|
50
|
+
* @param {object} filter Object containing filters for querying applications.
|
|
51
|
+
*
|
|
52
|
+
* **Example**
|
|
53
|
+
* ```typescript
|
|
54
|
+
*
|
|
55
|
+
* const filter: object = {
|
|
56
|
+
* pageSize: 100,
|
|
57
|
+
* withTotalPages: true
|
|
58
|
+
* };
|
|
59
|
+
*
|
|
60
|
+
* (async () => {
|
|
61
|
+
* const {data, res, paging} = await applicationService.list(filter);
|
|
62
|
+
* })();
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
list(filter?: object): Promise<IResultList<IApplication>>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the list of all application versions.
|
|
68
|
+
*
|
|
69
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
70
|
+
*
|
|
71
|
+
* @param {object} params Additional request parameters.
|
|
72
|
+
*
|
|
73
|
+
* @returns Returns list of all application versions.
|
|
74
|
+
*
|
|
75
|
+
* **Example**
|
|
76
|
+
* ```typescript
|
|
77
|
+
*
|
|
78
|
+
* const applicationId: number = 1;
|
|
79
|
+
*
|
|
80
|
+
* (async () => {
|
|
81
|
+
* const {res, data} = await applicationService.listVersions(applicationId);
|
|
82
|
+
* })();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
listVersions(entityOrId: string | number | IApplication, params?: object): Promise<IResultList<IApplicationVersion>>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets the details of selected application.
|
|
88
|
+
*
|
|
89
|
+
* @param {string|number|IIdentified} entityOrId Entity or Id of the entity.
|
|
90
|
+
*
|
|
91
|
+
* @returns Response wrapped in [[IResult]]
|
|
92
|
+
*
|
|
93
|
+
* **Example**
|
|
94
|
+
* ```typescript
|
|
95
|
+
*
|
|
96
|
+
* const applicationId: number = 1;
|
|
97
|
+
*
|
|
98
|
+
* (async () => {
|
|
99
|
+
* const {data, res} = await applicationService.detail(applicationId);
|
|
100
|
+
* })();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
detail(entityOrId: string | number | IApplication): Promise<IResult<IApplication>>;
|
|
104
|
+
/**
|
|
105
|
+
* Updates existing application.
|
|
106
|
+
* Make sure that you specifiy the application id within the update object.
|
|
107
|
+
*
|
|
108
|
+
* @param {IIdentified} entity Application object.
|
|
109
|
+
*
|
|
110
|
+
* @returns Response wrapped in [[IResult]]
|
|
111
|
+
*
|
|
112
|
+
* **Example**
|
|
113
|
+
* ```typescript
|
|
114
|
+
*
|
|
115
|
+
* const updateApp = {
|
|
116
|
+
* id: 38
|
|
117
|
+
* name: 'Updated application'
|
|
118
|
+
* };
|
|
119
|
+
*
|
|
120
|
+
* (async () => {
|
|
121
|
+
* const {data, res} = await applicationService.update(updateApp);
|
|
122
|
+
* })();
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
update(entity: IApplication): Promise<IResult<IApplication>>;
|
|
126
|
+
/**
|
|
127
|
+
* Removes an application with given id.
|
|
128
|
+
*
|
|
129
|
+
* @returns Response wrapped in [[IResult]]
|
|
130
|
+
*
|
|
131
|
+
* @param {string | number | IIdentified} entityOrId entity or id of the application.
|
|
132
|
+
*
|
|
133
|
+
* **Example**
|
|
134
|
+
* ```typescript
|
|
135
|
+
*
|
|
136
|
+
* const removeApp: object = {
|
|
137
|
+
* id: 38
|
|
138
|
+
* };
|
|
139
|
+
*
|
|
140
|
+
* (async () => {
|
|
141
|
+
* const {data, res} = await applicationService.delete(removeApp);
|
|
142
|
+
* // data will be null
|
|
143
|
+
* })();
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
delete(entityOrId: string | number | IApplication): Promise<IResult<null>>;
|
|
147
|
+
listByName(name: string): Promise<IResultList<IApplication>>;
|
|
148
|
+
listByTenant(tenantOrName?: string | ITenant, params?: object): Promise<IResultList<IApplication>>;
|
|
149
|
+
listByOwner(tenantOrName?: string | ITenant, params?: object): Promise<IResultList<IApplication>>;
|
|
150
|
+
listByUser(userOrId?: string | number | IUser, params?: object): Promise<IResultList<IApplication>>;
|
|
151
|
+
reactivateArchive(appId: number | string): Promise<IResult<null>>;
|
|
152
|
+
binary(application: string | number | IApplication): ApplicationBinaryService;
|
|
153
|
+
getHref(application: IApplication): string;
|
|
154
|
+
/**
|
|
155
|
+
* Checks if current user can access specified application.
|
|
156
|
+
*
|
|
157
|
+
* @returns Response wrapped in [[IResult]]
|
|
158
|
+
*
|
|
159
|
+
* @param {string | IApplication} application Application name or contextPath as a
|
|
160
|
+
* string or Application object.
|
|
161
|
+
*
|
|
162
|
+
* **Example**
|
|
163
|
+
* ```typescript
|
|
164
|
+
*
|
|
165
|
+
* const checkApp: object = {
|
|
166
|
+
* name: 'myApplication'
|
|
167
|
+
* };
|
|
168
|
+
*
|
|
169
|
+
* (async () => {
|
|
170
|
+
* const {data, res} = await applicationService.isAvailable(checkApp);
|
|
171
|
+
* })();
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
isAvailable(application: string | Partial<IApplication>): Promise<IResult<boolean>>;
|
|
175
|
+
/**
|
|
176
|
+
* Gets instance details of the specified application (microservice).
|
|
177
|
+
*
|
|
178
|
+
* @param {string|number|IApplication} entityOrId Entity or Id of the application.
|
|
179
|
+
*
|
|
180
|
+
* @returns Response wrapped in [[IResultList]]
|
|
181
|
+
*
|
|
182
|
+
* **Example**
|
|
183
|
+
* ```typescript
|
|
184
|
+
*
|
|
185
|
+
* const applicationId: number = 1;
|
|
186
|
+
*
|
|
187
|
+
* (async () => {
|
|
188
|
+
* const {data, res} = await applicationService.getStatusDetails(applicationId);
|
|
189
|
+
* })();
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
getStatusDetails(entityOrId: string | number | IApplication): Promise<IResultList<IApplicationManagedObject>>;
|
|
193
|
+
/**
|
|
194
|
+
* Extracts instance names of the provided IApplicationManagedObject.
|
|
195
|
+
*
|
|
196
|
+
* @param {IApplicationManagedObject} appStatusDetails Application details managedObject.
|
|
197
|
+
*
|
|
198
|
+
* @returns instance names
|
|
199
|
+
*
|
|
200
|
+
* **Example**
|
|
201
|
+
* ```typescript
|
|
202
|
+
*
|
|
203
|
+
* const applicationId: number = 1;
|
|
204
|
+
*
|
|
205
|
+
* (async () => {
|
|
206
|
+
* const {data, res} = await applicationService.getStatusDetails(applicationId);
|
|
207
|
+
* const instances = data.map((appMO) => applicationService.getInstanceNames(appMO));
|
|
208
|
+
* })();
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
getInstanceNames(appStatusDetails: IApplicationManagedObject): string[];
|
|
212
|
+
/**
|
|
213
|
+
* Get log for a specific application instance.
|
|
214
|
+
*
|
|
215
|
+
* @param {string|number|IApplication} entityOrId Entity or Id of the application.
|
|
216
|
+
*
|
|
217
|
+
* @param {string} instanceName instance name of the application.
|
|
218
|
+
*
|
|
219
|
+
* @param {IApplicationInstanceLogRequestParams} params Object containing parameters for querying the log file.
|
|
220
|
+
*
|
|
221
|
+
* @returns Response wrapped in [[IResult]]
|
|
222
|
+
*
|
|
223
|
+
* **Example**
|
|
224
|
+
* ```typescript
|
|
225
|
+
*
|
|
226
|
+
* const applicationId: number = 1;
|
|
227
|
+
* const applicationInstanceName: string = 'apama-ctrl-1c-4g-scope-t123456789-deployment-abcdefghij-abcde';
|
|
228
|
+
*
|
|
229
|
+
* (async () => {
|
|
230
|
+
* const {data, res} = await applicationService.getInstanceLog(applicationId, applicationInstanceName);
|
|
231
|
+
* })();
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
getInstanceLog(entityOrId: string | number | IApplication, instanceName: string, params?: IApplicationInstanceLogRequestParams): Promise<IResult<IApplicationInstanceLog>>;
|
|
235
|
+
/**
|
|
236
|
+
* Dynamic options are stored on the API in a specific `config: {}` object. They can
|
|
237
|
+
* be used to configure the app dynamically.
|
|
238
|
+
*
|
|
239
|
+
* Note: To avoids conflicts with the default Config, it is recommended
|
|
240
|
+
* to use a certain namespace.
|
|
241
|
+
* @param entityOrId Entity or Id of the application.
|
|
242
|
+
* @param config Configuration to be updated.
|
|
243
|
+
* @returns Returns updated configuration.
|
|
244
|
+
*/
|
|
245
|
+
updateApplicationConfig<T>(entityOrId: string | number | IApplication, config: T): Promise<IApplication & {
|
|
246
|
+
config: T;
|
|
247
|
+
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Gets manifest (cumulocity.json file) of a given application.
|
|
250
|
+
*
|
|
251
|
+
* @param {IApplication} app Application entity.
|
|
252
|
+
*
|
|
253
|
+
* @param {string} app version
|
|
254
|
+
*
|
|
255
|
+
* @returns Application manifest object.
|
|
256
|
+
*/
|
|
257
|
+
getAppManifest(app: IApplication, version?: string): Promise<IManifest>;
|
|
258
|
+
/**
|
|
259
|
+
* Updates manifest (cumulocity.json file) of a given application.
|
|
260
|
+
*
|
|
261
|
+
* @param {string|number|IApplication} entityOrId Entity or Id of the application.
|
|
262
|
+
*
|
|
263
|
+
* @param {any} manifestJSON Application manifest object to be stored.
|
|
264
|
+
*
|
|
265
|
+
* @returns Application manifest object.
|
|
266
|
+
*/
|
|
267
|
+
storeAppManifest(entityOrId: string | number | IApplication, manifestJSON: any): Promise<{
|
|
268
|
+
res: IFetchResponse;
|
|
269
|
+
data: any;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* Sets tags for specific application package version.
|
|
273
|
+
*
|
|
274
|
+
* @param {IApplication} app Application entity.
|
|
275
|
+
*
|
|
276
|
+
* @param {string} version Application package version which tags will be set.
|
|
277
|
+
*
|
|
278
|
+
* @param {string[]} tags Tags array to set on package version
|
|
279
|
+
*
|
|
280
|
+
* @returns Application version object.
|
|
281
|
+
*/
|
|
282
|
+
setPackageVersionTag(app: IApplication, version: string, tags: string[]): Promise<{
|
|
283
|
+
res: IFetchResponse;
|
|
284
|
+
data: any;
|
|
285
|
+
}>;
|
|
286
|
+
/**
|
|
287
|
+
* Retrieves the manifest of the application behind the given context path.
|
|
288
|
+
* @param contextPath
|
|
289
|
+
*/
|
|
290
|
+
getManifestOfContextPath(contextPath: string): Promise<IResult<Partial<IApplication>>>;
|
|
291
|
+
/**
|
|
292
|
+
* Removes package version.
|
|
293
|
+
*
|
|
294
|
+
* @param {IApplication} app Application entity.
|
|
295
|
+
*
|
|
296
|
+
* @param {IApplicationVersionDeleteParams} params Version or tag indication package to remove.
|
|
297
|
+
*
|
|
298
|
+
* @returns Request response.
|
|
299
|
+
*
|
|
300
|
+
* **Example**
|
|
301
|
+
* ```typescript
|
|
302
|
+
*
|
|
303
|
+
* const { res } = await applicationService.deleteVersionPackage(app, {version: '1.0.0'});
|
|
304
|
+
*
|
|
305
|
+
* const { res } = await applicationService.deleteVersionPackage(app, {tag: 'next'});
|
|
306
|
+
*
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
deleteVersionPackage(app: IApplication, params: IApplicationVersionDeleteParams): Promise<{
|
|
310
|
+
res: IFetchResponse;
|
|
311
|
+
data: any;
|
|
312
|
+
}>;
|
|
313
|
+
/**
|
|
314
|
+
* Updates the availability of the given application to the provided value.
|
|
315
|
+
*
|
|
316
|
+
* @param {string|number|IApplication} entityOrId Entity or Id of the application.
|
|
317
|
+
*
|
|
318
|
+
* @param {any} availability The new application availability.
|
|
319
|
+
*
|
|
320
|
+
* @returns Updated application.
|
|
321
|
+
*/
|
|
322
|
+
updateApplicationAvailability(entityOrId: string | number | IApplication, availability: ApplicationAvailability): Promise<IResult<IApplication>>;
|
|
323
|
+
private isMatch;
|
|
324
|
+
}
|
|
325
|
+
//# sourceMappingURL=ApplicationService.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ApplicationType, ApplicationAvailability, IManifest, IApplicationVersion } from './';
|
|
2
|
+
import { ITenantReference } from '../tenant';
|
|
3
|
+
export interface IApplication {
|
|
4
|
+
id?: number | string;
|
|
5
|
+
name?: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
type?: ApplicationType;
|
|
8
|
+
availability?: ApplicationAvailability;
|
|
9
|
+
owner?: ITenantReference;
|
|
10
|
+
contextPath?: string;
|
|
11
|
+
externalUrl?: string;
|
|
12
|
+
manifest?: Partial<IManifest>;
|
|
13
|
+
activeVersionId?: string;
|
|
14
|
+
requiredRoles?: string[];
|
|
15
|
+
url?: string;
|
|
16
|
+
public?: boolean;
|
|
17
|
+
description?: string;
|
|
18
|
+
self?: string;
|
|
19
|
+
applicationVersions?: IApplicationVersion[];
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=IApplication.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { IManagedObject } from '../inventory';
|
|
2
|
+
export declare enum InstanceStatus {
|
|
3
|
+
Up = "Up",
|
|
4
|
+
Unhealthy = "Unhealthy",
|
|
5
|
+
Down = "Down",
|
|
6
|
+
Unknown = "Unknown"
|
|
7
|
+
}
|
|
8
|
+
export interface ILastUpdated {
|
|
9
|
+
date: {
|
|
10
|
+
$date: string;
|
|
11
|
+
};
|
|
12
|
+
offset: number;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export interface IInstanceDetails {
|
|
16
|
+
lastUpdated: ILastUpdated;
|
|
17
|
+
memoryInBytes: number;
|
|
18
|
+
scheduled: boolean;
|
|
19
|
+
restarts: number;
|
|
20
|
+
cpuInMillis: number;
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
23
|
+
export interface IApplicationStatus {
|
|
24
|
+
lastUpdated: ILastUpdated;
|
|
25
|
+
instances: {
|
|
26
|
+
[instanceName: string]: IInstanceDetails;
|
|
27
|
+
};
|
|
28
|
+
details: {
|
|
29
|
+
desired: number;
|
|
30
|
+
aggregatedResources: {
|
|
31
|
+
memory: string;
|
|
32
|
+
cpu: string;
|
|
33
|
+
};
|
|
34
|
+
active: number;
|
|
35
|
+
restarts: number;
|
|
36
|
+
};
|
|
37
|
+
status: InstanceStatus;
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}
|
|
40
|
+
export interface IApplicationManagedObjectAdditions {
|
|
41
|
+
c8y_Status?: IApplicationStatus;
|
|
42
|
+
applicationOwner?: string;
|
|
43
|
+
c8y_Subscriptions?: {
|
|
44
|
+
[tenantId: string]: IApplicationStatus;
|
|
45
|
+
};
|
|
46
|
+
applicationId?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
c8y_SupportedLogs?: string[];
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}
|
|
51
|
+
export type IApplicationManagedObject = IManagedObject & IApplicationManagedObjectAdditions;
|
|
52
|
+
export interface IApplicationInstanceLog {
|
|
53
|
+
dateFrom: string;
|
|
54
|
+
dateTo: string;
|
|
55
|
+
logs: string;
|
|
56
|
+
truncated: boolean;
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}
|
|
59
|
+
export interface IApplicationInstanceLogRequestParams {
|
|
60
|
+
dateFrom?: string;
|
|
61
|
+
dateTo?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Limits the maximum number of lines to be returned by the backend.
|
|
64
|
+
*/
|
|
65
|
+
limit?: number;
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=IApplicationInstanceDetails.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ISource } from '../core';
|
|
2
|
+
import { IApplication } from './';
|
|
3
|
+
export interface IApplicationReference {
|
|
4
|
+
application: Partial<IApplication> & ISource;
|
|
5
|
+
}
|
|
6
|
+
export interface IApplicationReferences {
|
|
7
|
+
/**
|
|
8
|
+
* References array of type [[IApplicationReference]]
|
|
9
|
+
*/
|
|
10
|
+
references: IApplicationReference[];
|
|
11
|
+
/**
|
|
12
|
+
* Link to this resource
|
|
13
|
+
*/
|
|
14
|
+
self?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=IApplicationReference.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IApplicationVersion {
|
|
2
|
+
version: string;
|
|
3
|
+
tags?: string[];
|
|
4
|
+
binaryId: string;
|
|
5
|
+
}
|
|
6
|
+
export type IApplicationVersionDeleteParams = {
|
|
7
|
+
tag: string;
|
|
8
|
+
version?: never;
|
|
9
|
+
binaryId?: string;
|
|
10
|
+
} | {
|
|
11
|
+
tag?: never;
|
|
12
|
+
version: string;
|
|
13
|
+
binaryId?: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=IApplicationVersion.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BillingMode, Isolation, IProvider, IApplication, IDeviceRegistrationProvider } from './';
|
|
2
|
+
export interface IManifest {
|
|
3
|
+
id: number;
|
|
4
|
+
applicationId: number;
|
|
5
|
+
imports: string[];
|
|
6
|
+
contextPath: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
versioningMatrix?: VersioningMatrix;
|
|
9
|
+
billingMode: BillingMode;
|
|
10
|
+
isolation: Isolation;
|
|
11
|
+
provider: IProvider;
|
|
12
|
+
providesDeviceRegistration?: IDeviceRegistrationProvider;
|
|
13
|
+
noAppSwitcher?: boolean;
|
|
14
|
+
exports?: any;
|
|
15
|
+
remotes?: ApplicationRemotePlugins;
|
|
16
|
+
isPackage?: boolean;
|
|
17
|
+
package?: 'blueprint' | 'plugin';
|
|
18
|
+
source?: string | number | IApplication;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
requiredPlatformVersion?: string;
|
|
22
|
+
author?: string;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface ApplicationRemotePlugins {
|
|
26
|
+
[key: string]: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface VersioningMatrix {
|
|
29
|
+
[version: string]: {
|
|
30
|
+
sdk: string;
|
|
31
|
+
api: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=IManifest.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './ApplicationService';
|
|
2
|
+
export * from './ApplicationBinaryService';
|
|
3
|
+
export * from './IApplication';
|
|
4
|
+
export * from './IApplicationBinary';
|
|
5
|
+
export * from './IApplicationInstanceDetails';
|
|
6
|
+
export * from './IApplicationReference';
|
|
7
|
+
export * from './ApplicationType';
|
|
8
|
+
export * from './BillingMode';
|
|
9
|
+
export * from './Isolation';
|
|
10
|
+
export * from './ApplicationAvailability';
|
|
11
|
+
export * from './IManifest';
|
|
12
|
+
export * from './IProvider';
|
|
13
|
+
export * from './IUploadParamsOverride';
|
|
14
|
+
export * from './IApplicationVersion';
|
|
15
|
+
export * from './IDeviceRegistrationProvider';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A specific audit record can have one of the following types
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AuditRecordType {
|
|
5
|
+
ALARM = "Alarm",
|
|
6
|
+
BULK_OPERATION = "BulkOperation",
|
|
7
|
+
CEP_MODULE = "CepModule",
|
|
8
|
+
EVENT = "Event",
|
|
9
|
+
INVENTORY = "Inventory",
|
|
10
|
+
INVENTORY_ROLE = "InventoryRole",
|
|
11
|
+
OPERATION = "Operation",
|
|
12
|
+
OPTION = "Option",
|
|
13
|
+
GROUP = "Group",
|
|
14
|
+
SMART_RULE = "SmartRule",
|
|
15
|
+
SYSTEM = "SYSTEM",
|
|
16
|
+
TENANT = "Tenant",
|
|
17
|
+
USER = "User"
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=AuditRecordType.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Service, IResult, IResultList } from '../core';
|
|
2
|
+
import { IAuditRecord } from './IAuditRecord';
|
|
3
|
+
export declare class AuditService extends Service<IAuditRecord> {
|
|
4
|
+
protected baseUrl: string;
|
|
5
|
+
protected listUrl: string;
|
|
6
|
+
protected propertyName: string;
|
|
7
|
+
/**
|
|
8
|
+
* Gets the details of selected audit record.
|
|
9
|
+
*
|
|
10
|
+
* @param {string|number|IAuditRecord} entityOrId Entity or Id of the entity.
|
|
11
|
+
*
|
|
12
|
+
* @returns Response wrapped in [[IResult]]
|
|
13
|
+
*
|
|
14
|
+
* **Example**
|
|
15
|
+
* ```typescript
|
|
16
|
+
*
|
|
17
|
+
* const auditId: number = 1;
|
|
18
|
+
*
|
|
19
|
+
* (async () => {
|
|
20
|
+
* const {data, res} = await auditService.detail(auditId);
|
|
21
|
+
* })();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
detail(entityOrId: string | number | IAuditRecord): Promise<IResult<IAuditRecord>>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new audit record for a given source.
|
|
27
|
+
*
|
|
28
|
+
* @param {IAuditRecord} entity Audit record object with mandantory fragments.
|
|
29
|
+
* IAuditRecord implements the [[IEvent]] interface.
|
|
30
|
+
*
|
|
31
|
+
* @returns Response wrapped in [[IResult]]
|
|
32
|
+
*
|
|
33
|
+
* **Example**
|
|
34
|
+
* ```typescript
|
|
35
|
+
*
|
|
36
|
+
* const mandantoryObject: IAuditRecord = {
|
|
37
|
+
* type: AuditRecordType.ALARM,
|
|
38
|
+
* time: '2018-05-02T10:08:00Z',
|
|
39
|
+
* severity: Severity.MAJOR,
|
|
40
|
+
* source: {id: 1}
|
|
41
|
+
* };
|
|
42
|
+
*
|
|
43
|
+
* (async () => {
|
|
44
|
+
* const {data, res} = await auditService.create(mandantoryObject);
|
|
45
|
+
* })();
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
create(entity: IAuditRecord): Promise<IResult<IAuditRecord>>;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the list of audit records filtered by parameters.
|
|
51
|
+
*
|
|
52
|
+
* @returns Response wrapped in [[IResultList]]
|
|
53
|
+
*
|
|
54
|
+
* @param {object} filter Object containing filters for querying audit records.
|
|
55
|
+
*
|
|
56
|
+
* **Example**
|
|
57
|
+
* ```typescript
|
|
58
|
+
*
|
|
59
|
+
* const filter: object = {
|
|
60
|
+
* severity: Severity.MAJOR,
|
|
61
|
+
* pageSize: 100,
|
|
62
|
+
* withTotalPages: true
|
|
63
|
+
* };
|
|
64
|
+
*
|
|
65
|
+
* (async () => {
|
|
66
|
+
* const {data, res, paging} = await auditService.list(filter);
|
|
67
|
+
* })();
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
list(filter?: object): Promise<IResultList<IAuditRecord>>;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=AuditService.d.ts.map
|