@c8y/client 1018.510.4 → 1019.0.7
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 +6626 -4790
- package/lib/bundles/client.umd.js +241 -506
- 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.map +1 -0
- package/lib/cjs/index.js +2 -15
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/src/Client.d.ts.map +1 -0
- package/lib/cjs/src/alarm/AlarmService.d.ts.map +1 -0
- package/lib/cjs/src/alarm/AlarmStatus.d.ts.map +1 -0
- package/lib/cjs/src/alarm/IAlarm.d.ts.map +1 -0
- package/lib/cjs/src/alarm/index.d.ts.map +1 -0
- package/lib/cjs/src/alarm/index.js +4 -17
- package/lib/cjs/src/alarm/index.js.map +1 -1
- package/lib/cjs/src/application/ApplicationAvailability.d.ts.map +1 -0
- package/lib/cjs/src/application/ApplicationBinaryService.d.ts.map +1 -0
- package/lib/cjs/src/application/ApplicationBinaryService.js +2 -4
- package/lib/cjs/src/application/ApplicationBinaryService.js.map +1 -1
- package/lib/cjs/src/application/ApplicationService.d.ts.map +1 -0
- package/lib/cjs/src/application/ApplicationType.d.ts.map +1 -0
- package/lib/cjs/src/application/BillingMode.d.ts.map +1 -0
- package/lib/cjs/src/application/IApplication.d.ts.map +1 -0
- package/lib/cjs/src/application/IApplicationBinary.d.ts.map +1 -0
- package/lib/cjs/src/application/IApplicationInstanceDetails.d.ts.map +1 -0
- package/lib/cjs/src/application/IApplicationReference.d.ts.map +1 -0
- package/lib/cjs/src/application/IApplicationVersion.d.ts.map +1 -0
- package/lib/cjs/src/application/IDeviceRegistrationProvider.d.ts.map +1 -0
- package/lib/cjs/src/application/IManifest.d.ts.map +1 -0
- package/lib/cjs/src/application/IProvider.d.ts.map +1 -0
- package/lib/cjs/src/application/IUploadParamsOverride.d.ts.map +1 -0
- package/lib/cjs/src/application/Isolation.d.ts.map +1 -0
- package/lib/cjs/src/application/index.d.ts.map +1 -0
- package/lib/cjs/src/application/index.js +16 -29
- package/lib/cjs/src/application/index.js.map +1 -1
- package/lib/cjs/src/audit/AuditRecordType.d.ts.map +1 -0
- package/lib/cjs/src/audit/AuditService.d.ts.map +1 -0
- package/lib/cjs/src/audit/ChangeType.d.ts.map +1 -0
- package/lib/cjs/src/audit/IAuditRecord.d.ts.map +1 -0
- package/lib/cjs/src/audit/IChange.d.ts.map +1 -0
- package/lib/cjs/src/audit/index.d.ts.map +1 -0
- package/lib/cjs/src/audit/index.js +6 -19
- package/lib/cjs/src/audit/index.js.map +1 -1
- package/lib/cjs/src/core/BasicAuth.d.ts.map +1 -0
- package/lib/cjs/src/core/BearerAuth.d.ts.map +1 -0
- package/lib/cjs/src/core/CookieAuth.d.ts.map +1 -0
- package/lib/cjs/src/core/FetchClient.d.ts.map +1 -0
- package/lib/cjs/src/core/FetchClient.js +2 -4
- package/lib/cjs/src/core/FetchClient.js.map +1 -1
- package/lib/cjs/src/core/IAuthentication.d.ts.map +1 -0
- package/lib/cjs/src/core/ICustomProperties.d.ts.map +1 -0
- package/lib/cjs/src/core/ICustomPropertiesMap.d.ts.map +1 -0
- package/lib/cjs/src/core/IFetchClient.d.ts.map +1 -0
- package/lib/cjs/src/core/IFetchOptions.d.ts.map +1 -0
- package/lib/cjs/src/core/IFetchResponse.d.ts.map +1 -0
- package/lib/cjs/src/core/IIdentified.d.ts.map +1 -0
- package/lib/cjs/src/core/IMicroserviceSubscriptions.d.ts.map +1 -0
- package/lib/cjs/src/core/INamed.d.ts.map +1 -0
- package/lib/cjs/src/core/IResult.d.ts.map +1 -0
- package/lib/cjs/src/core/IResultBase.d.ts.map +1 -0
- package/lib/cjs/src/core/IResultList.d.ts.map +1 -0
- package/lib/cjs/src/core/ISource.d.ts.map +1 -0
- package/lib/cjs/src/core/MicroserviceClientRequestAuth.d.ts.map +1 -0
- package/lib/cjs/src/core/NodeJSCookieAuth.d.ts.map +1 -0
- package/lib/cjs/src/core/Paging.d.ts.map +1 -0
- package/lib/cjs/src/core/QueriesUtil.d.ts.map +1 -0
- package/lib/cjs/src/core/Service.d.ts.map +1 -0
- package/lib/cjs/src/core/Severity.d.ts.map +1 -0
- package/lib/cjs/src/core/index.d.ts.map +1 -0
- package/lib/cjs/src/core/index.js +23 -36
- package/lib/cjs/src/core/index.js.map +1 -1
- package/lib/cjs/src/device-registration/DeviceRegistrationBulkService.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationBulkService.js +2 -4
- package/lib/cjs/src/device-registration/DeviceRegistrationBulkService.js.map +1 -1
- package/lib/cjs/src/device-registration/DeviceRegistrationSecurityMode.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationService.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/DeviceRegistrationStatus.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/IDeviceCredentials.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/IDeviceRegistration.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/IDeviceRegistrationBulkResult.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/index.d.ts.map +1 -0
- package/lib/cjs/src/device-registration/index.js +8 -21
- package/lib/cjs/src/device-registration/index.js.map +1 -1
- package/lib/cjs/src/event/EventBinaryService.d.ts.map +1 -0
- package/lib/cjs/src/event/EventBinaryService.js +2 -4
- package/lib/cjs/src/event/EventBinaryService.js.map +1 -1
- package/lib/cjs/src/event/EventService.d.ts.map +1 -0
- package/lib/cjs/src/event/IEvent.d.ts.map +1 -0
- package/lib/cjs/src/event/IEventBinary.d.ts.map +1 -0
- package/lib/cjs/src/event/index.d.ts.map +1 -0
- package/lib/cjs/src/event/index.js +5 -18
- package/lib/cjs/src/event/index.js.map +1 -1
- package/lib/cjs/src/gettext.d.ts.map +1 -0
- package/lib/cjs/src/identity/IExternalIdentity.d.ts.map +1 -0
- package/lib/cjs/src/identity/IdentityService.d.ts.map +1 -0
- package/lib/cjs/src/identity/index.d.ts.map +1 -0
- package/lib/cjs/src/identity/index.js +3 -16
- package/lib/cjs/src/identity/index.js.map +1 -1
- package/lib/cjs/src/inventory/IManagedObject.d.ts.map +1 -0
- package/lib/cjs/src/inventory/InventoryBinaryService.d.ts.map +1 -0
- package/lib/cjs/src/inventory/InventoryBinaryService.js +2 -4
- package/lib/cjs/src/inventory/InventoryBinaryService.js.map +1 -1
- package/lib/cjs/src/inventory/InventoryService.d.ts.map +1 -0
- package/lib/cjs/src/inventory/index.d.ts.map +1 -0
- package/lib/cjs/src/inventory/index.js +4 -17
- package/lib/cjs/src/inventory/index.js.map +1 -1
- package/lib/cjs/src/inventory-role/InventoryRoleService.d.ts.map +1 -0
- package/lib/cjs/src/inventory-role/index.d.ts.map +1 -0
- package/lib/cjs/src/inventory-role/index.js +2 -15
- package/lib/cjs/src/inventory-role/index.js.map +1 -1
- package/lib/cjs/src/measurement/IMeasurement.d.ts.map +1 -0
- package/lib/cjs/src/measurement/ISeries.d.ts.map +1 -0
- package/lib/cjs/src/measurement/ISeriesFilter.d.ts.map +1 -0
- package/lib/cjs/src/measurement/MeasurementService.d.ts.map +1 -0
- package/lib/cjs/src/measurement/index.d.ts.map +1 -0
- package/lib/cjs/src/measurement/index.js +5 -18
- package/lib/cjs/src/measurement/index.js.map +1 -1
- package/lib/cjs/src/operation/IOperation.d.ts.map +1 -0
- package/lib/cjs/src/operation/IOperationBulk.d.ts.map +1 -0
- package/lib/cjs/src/operation/IOperationBulkProgress.d.ts.map +1 -0
- package/lib/cjs/src/operation/OperationBulkGeneralStatus.d.ts.map +1 -0
- package/lib/cjs/src/operation/OperationBulkService.d.ts.map +1 -0
- package/lib/cjs/src/operation/OperationBulkStatus.d.ts.map +1 -0
- package/lib/cjs/src/operation/OperationService.d.ts.map +1 -0
- package/lib/cjs/src/operation/OperationStatus.d.ts.map +1 -0
- package/lib/cjs/src/operation/index.d.ts.map +1 -0
- package/lib/cjs/src/operation/index.js +9 -22
- package/lib/cjs/src/operation/index.js.map +1 -1
- package/lib/cjs/src/public_api.d.ts.map +1 -0
- package/lib/cjs/src/public_api.js +25 -38
- package/lib/cjs/src/public_api.js.map +1 -1
- package/lib/cjs/src/realtime/MetaChannel.d.ts.map +1 -0
- package/lib/cjs/src/realtime/Realtime.d.ts.map +1 -0
- package/lib/cjs/src/realtime/index.d.ts.map +1 -0
- package/lib/cjs/src/realtime/index.js +2 -15
- package/lib/cjs/src/realtime/index.js.map +1 -1
- package/lib/cjs/src/services.d.ts.map +1 -0
- package/lib/cjs/src/smart-groups/SmartGroupsService.d.ts.map +1 -0
- package/lib/cjs/src/smart-groups/index.d.ts.map +1 -0
- package/lib/cjs/src/smart-groups/index.js +2 -15
- package/lib/cjs/src/smart-groups/index.js.map +1 -1
- package/lib/cjs/src/smart-rules/IRule.d.ts.map +1 -0
- package/lib/cjs/src/smart-rules/SmartRulesService.d.ts.map +1 -0
- package/lib/cjs/src/smart-rules/SmartRulesService.js +1 -1
- package/lib/cjs/src/smart-rules/SmartRulesService.js.map +1 -1
- package/lib/cjs/src/smart-rules/index.d.ts.map +1 -0
- package/lib/cjs/src/smart-rules/index.js +3 -16
- package/lib/cjs/src/smart-rules/index.js.map +1 -1
- package/lib/cjs/src/system-options/ISystemOption.d.ts.map +1 -0
- package/lib/cjs/src/system-options/SystemOptionsService.d.ts.map +1 -0
- package/lib/cjs/src/system-options/index.d.ts.map +1 -0
- package/lib/cjs/src/system-options/index.js +3 -16
- package/lib/cjs/src/system-options/index.js.map +1 -1
- package/lib/cjs/src/tenant/ICurrentTenant.d.ts.map +1 -0
- package/lib/cjs/src/tenant/ITenant.d.ts.map +1 -0
- package/lib/cjs/src/tenant/ITenantReference.d.ts.map +1 -0
- package/lib/cjs/src/tenant/ITfaSettings.d.ts.map +1 -0
- package/lib/cjs/src/tenant/TenantService.d.ts.map +1 -0
- package/lib/cjs/src/tenant/TenantStatus.d.ts.map +1 -0
- package/lib/cjs/src/tenant/TfaStrategy.d.ts.map +1 -0
- package/lib/cjs/src/tenant/index.d.ts.map +1 -0
- package/lib/cjs/src/tenant/index.js +8 -21
- package/lib/cjs/src/tenant/index.js.map +1 -1
- package/lib/cjs/src/tenant-login-options/ITenantLoginOptions.d.ts.map +1 -0
- package/lib/cjs/src/tenant-login-options/TenantLoginOptionsService.d.ts.map +1 -0
- package/lib/cjs/src/tenant-login-options/index.d.ts.map +1 -0
- package/lib/cjs/src/tenant-login-options/index.js +3 -16
- package/lib/cjs/src/tenant-login-options/index.js.map +1 -1
- package/lib/cjs/src/tenant-options/ITenantOption.d.ts.map +1 -0
- package/lib/cjs/src/tenant-options/ITenantOptionDetailParams.d.ts.map +1 -0
- package/lib/cjs/src/tenant-options/TenantOptionsService.d.ts.map +1 -0
- package/lib/cjs/src/tenant-options/index.d.ts.map +1 -0
- package/lib/cjs/src/tenant-options/index.js +4 -17
- package/lib/cjs/src/tenant-options/index.js.map +1 -1
- package/lib/cjs/src/tenant-security-options/ITenantSecurityOption.d.ts.map +1 -0
- package/lib/cjs/src/tenant-security-options/TenantSecurityOptionsService.d.ts.map +1 -0
- package/lib/cjs/src/tenant-security-options/index.d.ts.map +1 -0
- package/lib/cjs/src/tenant-security-options/index.js +3 -16
- package/lib/cjs/src/tenant-security-options/index.js.map +1 -1
- package/lib/cjs/src/trusted-certificates/CrlService.d.ts.map +1 -0
- package/lib/cjs/src/trusted-certificates/CrlService.js +2 -4
- package/lib/cjs/src/trusted-certificates/CrlService.js.map +1 -1
- package/lib/cjs/src/trusted-certificates/ICertificateRevocation.d.ts.map +1 -0
- package/lib/cjs/src/trusted-certificates/ITrustedCertificate.d.ts.map +1 -0
- package/lib/cjs/src/trusted-certificates/TrustedCertificateService.d.ts.map +1 -0
- package/lib/cjs/src/trusted-certificates/index.d.ts.map +1 -0
- package/lib/cjs/src/trusted-certificates/index.js +5 -18
- package/lib/cjs/src/trusted-certificates/index.js.map +1 -1
- package/lib/cjs/src/user/ICurrentUser.d.ts.map +1 -0
- package/lib/cjs/src/user/IResetPassword.d.ts.map +1 -0
- package/lib/cjs/src/user/ITotp.d.ts.map +1 -0
- package/lib/cjs/src/user/ITotpStatus.d.ts.map +1 -0
- package/lib/cjs/src/user/IUser.d.ts.map +1 -0
- package/lib/cjs/src/user/IUserInventoryRole.d.ts.map +1 -0
- package/lib/cjs/src/user/PasswordStrength.d.ts.map +1 -0
- package/lib/cjs/src/user/UserInventoryRoleService.d.ts.map +1 -0
- package/lib/cjs/src/user/UserService.d.ts.map +1 -0
- package/lib/cjs/src/user/index.d.ts.map +1 -0
- package/lib/cjs/src/user/index.js +10 -23
- package/lib/cjs/src/user/index.js.map +1 -1
- package/lib/cjs/src/user-group/IDevicePermissions.d.ts.map +1 -0
- package/lib/cjs/src/user-group/IUserGroup.d.ts.map +1 -0
- package/lib/cjs/src/user-group/UserGroupService.d.ts.map +1 -0
- package/lib/cjs/src/user-group/index.d.ts.map +1 -0
- package/lib/cjs/src/user-group/index.js +4 -17
- package/lib/cjs/src/user-group/index.js.map +1 -1
- package/lib/cjs/src/user-role/IRole.d.ts.map +1 -0
- package/lib/cjs/src/user-role/IRoleReference.d.ts.map +1 -0
- package/lib/cjs/src/user-role/UserRoleService.d.ts.map +1 -0
- package/lib/cjs/src/user-role/index.d.ts.map +1 -0
- package/lib/cjs/src/user-role/index.js +4 -17
- package/lib/cjs/src/user-role/index.js.map +1 -1
- package/lib/esm2015/index.d.ts.map +1 -0
- package/lib/esm2015/src/Client.d.ts.map +1 -0
- package/lib/esm2015/src/Client.js +1 -9
- package/lib/esm2015/src/Client.js.map +1 -1
- package/lib/esm2015/src/alarm/AlarmService.d.ts.map +1 -0
- package/lib/esm2015/src/alarm/AlarmService.js +1 -9
- package/lib/esm2015/src/alarm/AlarmService.js.map +1 -1
- package/lib/esm2015/src/alarm/AlarmStatus.d.ts.map +1 -0
- package/lib/esm2015/src/alarm/IAlarm.d.ts.map +1 -0
- package/lib/esm2015/src/alarm/index.d.ts.map +1 -0
- package/lib/esm2015/src/application/ApplicationAvailability.d.ts.map +1 -0
- package/lib/esm2015/src/application/ApplicationBinaryService.d.ts.map +1 -0
- package/lib/esm2015/src/application/ApplicationBinaryService.js +1 -9
- package/lib/esm2015/src/application/ApplicationBinaryService.js.map +1 -1
- package/lib/esm2015/src/application/ApplicationService.d.ts.map +1 -0
- package/lib/esm2015/src/application/ApplicationService.js +1 -9
- package/lib/esm2015/src/application/ApplicationService.js.map +1 -1
- package/lib/esm2015/src/application/ApplicationType.d.ts.map +1 -0
- package/lib/esm2015/src/application/BillingMode.d.ts.map +1 -0
- package/lib/esm2015/src/application/IApplication.d.ts.map +1 -0
- package/lib/esm2015/src/application/IApplicationBinary.d.ts.map +1 -0
- package/lib/esm2015/src/application/IApplicationInstanceDetails.d.ts.map +1 -0
- package/lib/esm2015/src/application/IApplicationReference.d.ts.map +1 -0
- package/lib/esm2015/src/application/IApplicationVersion.d.ts.map +1 -0
- package/lib/esm2015/src/application/IDeviceRegistrationProvider.d.ts.map +1 -0
- package/lib/esm2015/src/application/IManifest.d.ts.map +1 -0
- package/lib/esm2015/src/application/IProvider.d.ts.map +1 -0
- package/lib/esm2015/src/application/IUploadParamsOverride.d.ts.map +1 -0
- package/lib/esm2015/src/application/Isolation.d.ts.map +1 -0
- package/lib/esm2015/src/application/index.d.ts.map +1 -0
- package/lib/esm2015/src/audit/AuditRecordType.d.ts.map +1 -0
- package/lib/esm2015/src/audit/AuditService.d.ts.map +1 -0
- package/lib/esm2015/src/audit/AuditService.js +1 -9
- package/lib/esm2015/src/audit/AuditService.js.map +1 -1
- package/lib/esm2015/src/audit/ChangeType.d.ts.map +1 -0
- package/lib/esm2015/src/audit/IAuditRecord.d.ts.map +1 -0
- package/lib/esm2015/src/audit/IChange.d.ts.map +1 -0
- package/lib/esm2015/src/audit/index.d.ts.map +1 -0
- package/lib/esm2015/src/core/BasicAuth.d.ts.map +1 -0
- package/lib/esm2015/src/core/BearerAuth.d.ts.map +1 -0
- package/lib/esm2015/src/core/CookieAuth.d.ts.map +1 -0
- package/lib/esm2015/src/core/CookieAuth.js +1 -9
- package/lib/esm2015/src/core/CookieAuth.js.map +1 -1
- package/lib/esm2015/src/core/FetchClient.d.ts.map +1 -0
- package/lib/esm2015/src/core/FetchClient.js +1 -9
- package/lib/esm2015/src/core/FetchClient.js.map +1 -1
- package/lib/esm2015/src/core/IAuthentication.d.ts.map +1 -0
- package/lib/esm2015/src/core/ICustomProperties.d.ts.map +1 -0
- package/lib/esm2015/src/core/ICustomPropertiesMap.d.ts.map +1 -0
- package/lib/esm2015/src/core/IFetchClient.d.ts.map +1 -0
- package/lib/esm2015/src/core/IFetchOptions.d.ts.map +1 -0
- package/lib/esm2015/src/core/IFetchResponse.d.ts.map +1 -0
- package/lib/esm2015/src/core/IIdentified.d.ts.map +1 -0
- package/lib/esm2015/src/core/IMicroserviceSubscriptions.d.ts.map +1 -0
- package/lib/esm2015/src/core/INamed.d.ts.map +1 -0
- package/lib/esm2015/src/core/IResult.d.ts.map +1 -0
- package/lib/esm2015/src/core/IResultBase.d.ts.map +1 -0
- package/lib/esm2015/src/core/IResultList.d.ts.map +1 -0
- package/lib/esm2015/src/core/ISource.d.ts.map +1 -0
- package/lib/esm2015/src/core/MicroserviceClientRequestAuth.d.ts.map +1 -0
- package/lib/esm2015/src/core/NodeJSCookieAuth.d.ts.map +1 -0
- package/lib/esm2015/src/core/Paging.d.ts.map +1 -0
- package/lib/esm2015/src/core/Paging.js +1 -9
- package/lib/esm2015/src/core/Paging.js.map +1 -1
- package/lib/esm2015/src/core/QueriesUtil.d.ts.map +1 -0
- package/lib/esm2015/src/core/Service.d.ts.map +1 -0
- package/lib/esm2015/src/core/Service.js +1 -9
- package/lib/esm2015/src/core/Service.js.map +1 -1
- package/lib/esm2015/src/core/Severity.d.ts.map +1 -0
- package/lib/esm2015/src/core/index.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.js +1 -9
- package/lib/esm2015/src/device-registration/DeviceRegistrationBulkService.js.map +1 -1
- package/lib/esm2015/src/device-registration/DeviceRegistrationSecurityMode.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationService.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/DeviceRegistrationService.js +1 -9
- package/lib/esm2015/src/device-registration/DeviceRegistrationService.js.map +1 -1
- package/lib/esm2015/src/device-registration/DeviceRegistrationStatus.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/IDeviceCredentials.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/IDeviceRegistration.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/IDeviceRegistrationBulkResult.d.ts.map +1 -0
- package/lib/esm2015/src/device-registration/index.d.ts.map +1 -0
- package/lib/esm2015/src/event/EventBinaryService.d.ts.map +1 -0
- package/lib/esm2015/src/event/EventBinaryService.js +1 -9
- package/lib/esm2015/src/event/EventBinaryService.js.map +1 -1
- package/lib/esm2015/src/event/EventService.d.ts.map +1 -0
- package/lib/esm2015/src/event/EventService.js +1 -9
- package/lib/esm2015/src/event/EventService.js.map +1 -1
- package/lib/esm2015/src/event/IEvent.d.ts.map +1 -0
- package/lib/esm2015/src/event/IEventBinary.d.ts.map +1 -0
- package/lib/esm2015/src/event/index.d.ts.map +1 -0
- package/lib/esm2015/src/gettext.d.ts.map +1 -0
- package/lib/esm2015/src/identity/IExternalIdentity.d.ts.map +1 -0
- package/lib/esm2015/src/identity/IdentityService.d.ts.map +1 -0
- package/lib/esm2015/src/identity/IdentityService.js +1 -9
- package/lib/esm2015/src/identity/IdentityService.js.map +1 -1
- package/lib/esm2015/src/identity/index.d.ts.map +1 -0
- package/lib/esm2015/src/inventory/IManagedObject.d.ts.map +1 -0
- package/lib/esm2015/src/inventory/InventoryBinaryService.d.ts.map +1 -0
- package/lib/esm2015/src/inventory/InventoryBinaryService.js +1 -9
- package/lib/esm2015/src/inventory/InventoryBinaryService.js.map +1 -1
- package/lib/esm2015/src/inventory/InventoryService.d.ts.map +1 -0
- package/lib/esm2015/src/inventory/InventoryService.js +1 -9
- package/lib/esm2015/src/inventory/InventoryService.js.map +1 -1
- package/lib/esm2015/src/inventory/index.d.ts.map +1 -0
- package/lib/esm2015/src/inventory-role/InventoryRoleService.d.ts.map +1 -0
- package/lib/esm2015/src/inventory-role/InventoryRoleService.js +1 -9
- package/lib/esm2015/src/inventory-role/InventoryRoleService.js.map +1 -1
- package/lib/esm2015/src/inventory-role/index.d.ts.map +1 -0
- package/lib/esm2015/src/measurement/IMeasurement.d.ts.map +1 -0
- package/lib/esm2015/src/measurement/ISeries.d.ts.map +1 -0
- package/lib/esm2015/src/measurement/ISeriesFilter.d.ts.map +1 -0
- package/lib/esm2015/src/measurement/MeasurementService.d.ts.map +1 -0
- package/lib/esm2015/src/measurement/MeasurementService.js +1 -9
- package/lib/esm2015/src/measurement/MeasurementService.js.map +1 -1
- package/lib/esm2015/src/measurement/index.d.ts.map +1 -0
- package/lib/esm2015/src/operation/IOperation.d.ts.map +1 -0
- package/lib/esm2015/src/operation/IOperationBulk.d.ts.map +1 -0
- package/lib/esm2015/src/operation/IOperationBulkProgress.d.ts.map +1 -0
- package/lib/esm2015/src/operation/OperationBulkGeneralStatus.d.ts.map +1 -0
- package/lib/esm2015/src/operation/OperationBulkService.d.ts.map +1 -0
- package/lib/esm2015/src/operation/OperationBulkService.js +1 -9
- package/lib/esm2015/src/operation/OperationBulkService.js.map +1 -1
- package/lib/esm2015/src/operation/OperationBulkStatus.d.ts.map +1 -0
- package/lib/esm2015/src/operation/OperationService.d.ts.map +1 -0
- package/lib/esm2015/src/operation/OperationService.js +1 -9
- package/lib/esm2015/src/operation/OperationService.js.map +1 -1
- package/lib/esm2015/src/operation/OperationStatus.d.ts.map +1 -0
- package/lib/esm2015/src/operation/index.d.ts.map +1 -0
- package/lib/esm2015/src/public_api.d.ts.map +1 -0
- package/lib/esm2015/src/realtime/MetaChannel.d.ts.map +1 -0
- package/lib/esm2015/src/realtime/Realtime.d.ts.map +1 -0
- package/lib/esm2015/src/realtime/index.d.ts.map +1 -0
- package/lib/esm2015/src/services.d.ts.map +1 -0
- package/lib/esm2015/src/smart-groups/SmartGroupsService.d.ts.map +1 -0
- package/lib/esm2015/src/smart-groups/SmartGroupsService.js +1 -9
- package/lib/esm2015/src/smart-groups/SmartGroupsService.js.map +1 -1
- package/lib/esm2015/src/smart-groups/index.d.ts.map +1 -0
- package/lib/esm2015/src/smart-rules/IRule.d.ts.map +1 -0
- package/lib/esm2015/src/smart-rules/SmartRulesService.d.ts.map +1 -0
- package/lib/esm2015/src/smart-rules/SmartRulesService.js +1 -9
- package/lib/esm2015/src/smart-rules/SmartRulesService.js.map +1 -1
- package/lib/esm2015/src/smart-rules/index.d.ts.map +1 -0
- package/lib/esm2015/src/system-options/ISystemOption.d.ts.map +1 -0
- package/lib/esm2015/src/system-options/SystemOptionsService.d.ts.map +1 -0
- package/lib/esm2015/src/system-options/SystemOptionsService.js +1 -9
- package/lib/esm2015/src/system-options/SystemOptionsService.js.map +1 -1
- package/lib/esm2015/src/system-options/index.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/ICurrentTenant.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/ITenant.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/ITenantReference.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/ITfaSettings.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/TenantService.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/TenantService.js +1 -9
- package/lib/esm2015/src/tenant/TenantService.js.map +1 -1
- package/lib/esm2015/src/tenant/TenantStatus.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/TfaStrategy.d.ts.map +1 -0
- package/lib/esm2015/src/tenant/index.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-login-options/ITenantLoginOptions.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.js +1 -9
- package/lib/esm2015/src/tenant-login-options/TenantLoginOptionsService.js.map +1 -1
- package/lib/esm2015/src/tenant-login-options/index.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-options/ITenantOption.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-options/ITenantOptionDetailParams.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-options/TenantOptionsService.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-options/TenantOptionsService.js +1 -9
- package/lib/esm2015/src/tenant-options/TenantOptionsService.js.map +1 -1
- package/lib/esm2015/src/tenant-options/index.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-security-options/ITenantSecurityOption.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.d.ts.map +1 -0
- package/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.js +1 -9
- package/lib/esm2015/src/tenant-security-options/TenantSecurityOptionsService.js.map +1 -1
- package/lib/esm2015/src/tenant-security-options/index.d.ts.map +1 -0
- package/lib/esm2015/src/trusted-certificates/CrlService.d.ts.map +1 -0
- package/lib/esm2015/src/trusted-certificates/CrlService.js +1 -9
- package/lib/esm2015/src/trusted-certificates/CrlService.js.map +1 -1
- package/lib/esm2015/src/trusted-certificates/ICertificateRevocation.d.ts.map +1 -0
- package/lib/esm2015/src/trusted-certificates/ITrustedCertificate.d.ts.map +1 -0
- package/lib/esm2015/src/trusted-certificates/TrustedCertificateService.d.ts.map +1 -0
- package/lib/esm2015/src/trusted-certificates/TrustedCertificateService.js +1 -9
- package/lib/esm2015/src/trusted-certificates/TrustedCertificateService.js.map +1 -1
- package/lib/esm2015/src/trusted-certificates/index.d.ts.map +1 -0
- package/lib/esm2015/src/user/ICurrentUser.d.ts.map +1 -0
- package/lib/esm2015/src/user/IResetPassword.d.ts.map +1 -0
- package/lib/esm2015/src/user/ITotp.d.ts.map +1 -0
- package/lib/esm2015/src/user/ITotpStatus.d.ts.map +1 -0
- package/lib/esm2015/src/user/IUser.d.ts.map +1 -0
- package/lib/esm2015/src/user/IUserInventoryRole.d.ts.map +1 -0
- package/lib/esm2015/src/user/PasswordStrength.d.ts.map +1 -0
- package/lib/esm2015/src/user/UserInventoryRoleService.d.ts.map +1 -0
- package/lib/esm2015/src/user/UserInventoryRoleService.js +1 -9
- package/lib/esm2015/src/user/UserInventoryRoleService.js.map +1 -1
- package/lib/esm2015/src/user/UserService.d.ts.map +1 -0
- package/lib/esm2015/src/user/UserService.js +1 -9
- package/lib/esm2015/src/user/UserService.js.map +1 -1
- package/lib/esm2015/src/user/index.d.ts.map +1 -0
- package/lib/esm2015/src/user-group/IDevicePermissions.d.ts.map +1 -0
- package/lib/esm2015/src/user-group/IUserGroup.d.ts.map +1 -0
- package/lib/esm2015/src/user-group/UserGroupService.d.ts.map +1 -0
- package/lib/esm2015/src/user-group/UserGroupService.js +1 -9
- package/lib/esm2015/src/user-group/UserGroupService.js.map +1 -1
- package/lib/esm2015/src/user-group/index.d.ts.map +1 -0
- package/lib/esm2015/src/user-role/IRole.d.ts.map +1 -0
- package/lib/esm2015/src/user-role/IRoleReference.d.ts.map +1 -0
- package/lib/esm2015/src/user-role/UserRoleService.d.ts.map +1 -0
- package/lib/esm2015/src/user-role/UserRoleService.js +1 -9
- package/lib/esm2015/src/user-role/UserRoleService.js.map +1 -1
- package/lib/esm2015/src/user-role/index.d.ts.map +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/src/Client.d.ts.map +1 -0
- package/lib/src/alarm/AlarmService.d.ts.map +1 -0
- package/lib/src/alarm/AlarmStatus.d.ts.map +1 -0
- package/lib/src/alarm/IAlarm.d.ts.map +1 -0
- package/lib/src/alarm/index.d.ts.map +1 -0
- package/lib/src/application/ApplicationAvailability.d.ts.map +1 -0
- package/lib/src/application/ApplicationBinaryService.d.ts.map +1 -0
- package/lib/src/application/ApplicationService.d.ts.map +1 -0
- package/lib/src/application/ApplicationType.d.ts.map +1 -0
- package/lib/src/application/BillingMode.d.ts.map +1 -0
- package/lib/src/application/IApplication.d.ts.map +1 -0
- package/lib/src/application/IApplicationBinary.d.ts.map +1 -0
- package/lib/src/application/IApplicationInstanceDetails.d.ts.map +1 -0
- package/lib/src/application/IApplicationReference.d.ts.map +1 -0
- package/lib/src/application/IApplicationVersion.d.ts.map +1 -0
- package/lib/src/application/IDeviceRegistrationProvider.d.ts.map +1 -0
- package/lib/src/application/IManifest.d.ts.map +1 -0
- package/lib/src/application/IProvider.d.ts.map +1 -0
- package/lib/src/application/IUploadParamsOverride.d.ts.map +1 -0
- package/lib/src/application/Isolation.d.ts.map +1 -0
- package/lib/src/application/index.d.ts.map +1 -0
- package/lib/src/audit/AuditRecordType.d.ts.map +1 -0
- package/lib/src/audit/AuditService.d.ts.map +1 -0
- package/lib/src/audit/ChangeType.d.ts.map +1 -0
- package/lib/src/audit/IAuditRecord.d.ts.map +1 -0
- package/lib/src/audit/IChange.d.ts.map +1 -0
- package/lib/src/audit/index.d.ts.map +1 -0
- package/lib/src/core/BasicAuth.d.ts.map +1 -0
- package/lib/src/core/BearerAuth.d.ts.map +1 -0
- package/lib/src/core/CookieAuth.d.ts.map +1 -0
- package/lib/src/core/FetchClient.d.ts.map +1 -0
- package/lib/src/core/IAuthentication.d.ts.map +1 -0
- package/lib/src/core/ICustomProperties.d.ts.map +1 -0
- package/lib/src/core/ICustomPropertiesMap.d.ts.map +1 -0
- package/lib/src/core/IFetchClient.d.ts.map +1 -0
- package/lib/src/core/IFetchOptions.d.ts.map +1 -0
- package/lib/src/core/IFetchResponse.d.ts.map +1 -0
- package/lib/src/core/IIdentified.d.ts.map +1 -0
- package/lib/src/core/IMicroserviceSubscriptions.d.ts.map +1 -0
- package/lib/src/core/INamed.d.ts.map +1 -0
- package/lib/src/core/IResult.d.ts.map +1 -0
- package/lib/src/core/IResultBase.d.ts.map +1 -0
- package/lib/src/core/IResultList.d.ts.map +1 -0
- package/lib/src/core/ISource.d.ts.map +1 -0
- package/lib/src/core/MicroserviceClientRequestAuth.d.ts.map +1 -0
- package/lib/src/core/NodeJSCookieAuth.d.ts.map +1 -0
- package/lib/src/core/Paging.d.ts.map +1 -0
- package/lib/src/core/QueriesUtil.d.ts.map +1 -0
- package/lib/src/core/Service.d.ts.map +1 -0
- package/lib/src/core/Severity.d.ts.map +1 -0
- package/lib/src/core/index.d.ts.map +1 -0
- package/lib/src/device-registration/DeviceRegistrationBulkService.d.ts.map +1 -0
- package/lib/src/device-registration/DeviceRegistrationSecurityMode.d.ts.map +1 -0
- package/lib/src/device-registration/DeviceRegistrationService.d.ts.map +1 -0
- package/lib/src/device-registration/DeviceRegistrationStatus.d.ts.map +1 -0
- package/lib/src/device-registration/IDeviceCredentials.d.ts.map +1 -0
- package/lib/src/device-registration/IDeviceRegistration.d.ts.map +1 -0
- package/lib/src/device-registration/IDeviceRegistrationBulkResult.d.ts.map +1 -0
- package/lib/src/device-registration/index.d.ts.map +1 -0
- package/lib/src/event/EventBinaryService.d.ts.map +1 -0
- package/lib/src/event/EventService.d.ts.map +1 -0
- package/lib/src/event/IEvent.d.ts.map +1 -0
- package/lib/src/event/IEventBinary.d.ts.map +1 -0
- package/lib/src/event/index.d.ts.map +1 -0
- package/lib/src/gettext.d.ts.map +1 -0
- package/lib/src/identity/IExternalIdentity.d.ts.map +1 -0
- package/lib/src/identity/IdentityService.d.ts.map +1 -0
- package/lib/src/identity/index.d.ts.map +1 -0
- package/lib/src/inventory/IManagedObject.d.ts.map +1 -0
- package/lib/src/inventory/InventoryBinaryService.d.ts.map +1 -0
- package/lib/src/inventory/InventoryService.d.ts.map +1 -0
- package/lib/src/inventory/index.d.ts.map +1 -0
- package/lib/src/inventory-role/InventoryRoleService.d.ts.map +1 -0
- package/lib/src/inventory-role/index.d.ts.map +1 -0
- package/lib/src/measurement/IMeasurement.d.ts.map +1 -0
- package/lib/src/measurement/ISeries.d.ts.map +1 -0
- package/lib/src/measurement/ISeriesFilter.d.ts.map +1 -0
- package/lib/src/measurement/MeasurementService.d.ts.map +1 -0
- package/lib/src/measurement/index.d.ts.map +1 -0
- package/lib/src/operation/IOperation.d.ts.map +1 -0
- package/lib/src/operation/IOperationBulk.d.ts.map +1 -0
- package/lib/src/operation/IOperationBulkProgress.d.ts.map +1 -0
- package/lib/src/operation/OperationBulkGeneralStatus.d.ts.map +1 -0
- package/lib/src/operation/OperationBulkService.d.ts.map +1 -0
- package/lib/src/operation/OperationBulkStatus.d.ts.map +1 -0
- package/lib/src/operation/OperationService.d.ts.map +1 -0
- package/lib/src/operation/OperationStatus.d.ts.map +1 -0
- package/lib/src/operation/index.d.ts.map +1 -0
- package/lib/src/public_api.d.ts.map +1 -0
- package/lib/src/realtime/MetaChannel.d.ts.map +1 -0
- package/lib/src/realtime/Realtime.d.ts.map +1 -0
- package/lib/src/realtime/index.d.ts.map +1 -0
- package/lib/src/services.d.ts.map +1 -0
- package/lib/src/smart-groups/SmartGroupsService.d.ts.map +1 -0
- package/lib/src/smart-groups/index.d.ts.map +1 -0
- package/lib/src/smart-rules/IRule.d.ts.map +1 -0
- package/lib/src/smart-rules/SmartRulesService.d.ts.map +1 -0
- package/lib/src/smart-rules/index.d.ts.map +1 -0
- package/lib/src/system-options/ISystemOption.d.ts.map +1 -0
- package/lib/src/system-options/SystemOptionsService.d.ts.map +1 -0
- package/lib/src/system-options/index.d.ts.map +1 -0
- package/lib/src/tenant/ICurrentTenant.d.ts.map +1 -0
- package/lib/src/tenant/ITenant.d.ts.map +1 -0
- package/lib/src/tenant/ITenantReference.d.ts.map +1 -0
- package/lib/src/tenant/ITfaSettings.d.ts.map +1 -0
- package/lib/src/tenant/TenantService.d.ts.map +1 -0
- package/lib/src/tenant/TenantStatus.d.ts.map +1 -0
- package/lib/src/tenant/TfaStrategy.d.ts.map +1 -0
- package/lib/src/tenant/index.d.ts.map +1 -0
- package/lib/src/tenant-login-options/ITenantLoginOptions.d.ts.map +1 -0
- package/lib/src/tenant-login-options/TenantLoginOptionsService.d.ts.map +1 -0
- package/lib/src/tenant-login-options/index.d.ts.map +1 -0
- package/lib/src/tenant-options/ITenantOption.d.ts.map +1 -0
- package/lib/src/tenant-options/ITenantOptionDetailParams.d.ts.map +1 -0
- package/lib/src/tenant-options/TenantOptionsService.d.ts.map +1 -0
- package/lib/src/tenant-options/index.d.ts.map +1 -0
- package/lib/src/tenant-security-options/ITenantSecurityOption.d.ts.map +1 -0
- package/lib/src/tenant-security-options/TenantSecurityOptionsService.d.ts.map +1 -0
- package/lib/src/tenant-security-options/index.d.ts.map +1 -0
- package/lib/src/trusted-certificates/CrlService.d.ts.map +1 -0
- package/lib/src/trusted-certificates/ICertificateRevocation.d.ts.map +1 -0
- package/lib/src/trusted-certificates/ITrustedCertificate.d.ts.map +1 -0
- package/lib/src/trusted-certificates/TrustedCertificateService.d.ts.map +1 -0
- package/lib/src/trusted-certificates/index.d.ts.map +1 -0
- package/lib/src/user/ICurrentUser.d.ts.map +1 -0
- package/lib/src/user/IResetPassword.d.ts.map +1 -0
- package/lib/src/user/ITotp.d.ts.map +1 -0
- package/lib/src/user/ITotpStatus.d.ts.map +1 -0
- package/lib/src/user/IUser.d.ts.map +1 -0
- package/lib/src/user/IUserInventoryRole.d.ts.map +1 -0
- package/lib/src/user/PasswordStrength.d.ts.map +1 -0
- package/lib/src/user/UserInventoryRoleService.d.ts.map +1 -0
- package/lib/src/user/UserService.d.ts.map +1 -0
- package/lib/src/user/index.d.ts.map +1 -0
- package/lib/src/user-group/IDevicePermissions.d.ts.map +1 -0
- package/lib/src/user-group/IUserGroup.d.ts.map +1 -0
- package/lib/src/user-group/UserGroupService.d.ts.map +1 -0
- package/lib/src/user-group/index.d.ts.map +1 -0
- package/lib/src/user-role/IRole.d.ts.map +1 -0
- package/lib/src/user-role/IRoleReference.d.ts.map +1 -0
- package/lib/src/user-role/UserRoleService.d.ts.map +1 -0
- package/lib/src/user-role/index.d.ts.map +1 -0
- package/package.json +9 -3
|
@@ -4,15 +4,38 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.cumulocity = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
/******************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
+
var e = new Error(message);
|
|
36
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
15
37
|
};
|
|
38
|
+
|
|
16
39
|
/**
|
|
17
40
|
* Paging allows you to query the next and previous data chunks
|
|
18
41
|
* in a convenient way. You can also go to a specific page or just read
|
|
@@ -36,7 +59,7 @@
|
|
|
36
59
|
* @param filter
|
|
37
60
|
*/
|
|
38
61
|
next(filter = {}) {
|
|
39
|
-
return __awaiter
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
63
|
return this.list(this.getFilter(filter, this.nextPage));
|
|
41
64
|
});
|
|
42
65
|
}
|
|
@@ -45,7 +68,7 @@
|
|
|
45
68
|
* @param filter
|
|
46
69
|
*/
|
|
47
70
|
prev(filter = {}) {
|
|
48
|
-
return __awaiter
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
72
|
return this.list(this.getFilter(filter, this.prevPage));
|
|
50
73
|
});
|
|
51
74
|
}
|
|
@@ -56,7 +79,7 @@
|
|
|
56
79
|
* @param filter
|
|
57
80
|
*/
|
|
58
81
|
list(filter = {}) {
|
|
59
|
-
return __awaiter
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
83
|
return this.service.list(filter);
|
|
61
84
|
});
|
|
62
85
|
}
|
|
@@ -66,7 +89,7 @@
|
|
|
66
89
|
* @param filter
|
|
67
90
|
*/
|
|
68
91
|
goto(page, filter = {}) {
|
|
69
|
-
return __awaiter
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
93
|
return this.list(this.getFilter(filter, page));
|
|
71
94
|
});
|
|
72
95
|
}
|
|
@@ -75,15 +98,6 @@
|
|
|
75
98
|
}
|
|
76
99
|
}
|
|
77
100
|
|
|
78
|
-
var __awaiter$v = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
82
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
83
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
84
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
101
|
class Service {
|
|
88
102
|
constructor(client, realtime) {
|
|
89
103
|
this.client = client;
|
|
@@ -102,7 +116,7 @@
|
|
|
102
116
|
});
|
|
103
117
|
}
|
|
104
118
|
list(filter = {}) {
|
|
105
|
-
return __awaiter
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
120
|
const headers = { accept: 'application/json' };
|
|
107
121
|
const url = this.listUrl;
|
|
108
122
|
const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: filter }, url));
|
|
@@ -113,7 +127,7 @@
|
|
|
113
127
|
});
|
|
114
128
|
}
|
|
115
129
|
detail(entityOrId, filter = {}) {
|
|
116
|
-
return __awaiter
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
131
|
const headers = { accept: 'application/json' };
|
|
118
132
|
const url = this.getDetailUrl(entityOrId);
|
|
119
133
|
const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: Object.assign({}, filter) }, url));
|
|
@@ -122,7 +136,7 @@
|
|
|
122
136
|
});
|
|
123
137
|
}
|
|
124
138
|
create(entity) {
|
|
125
|
-
return __awaiter
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
140
|
const url = this.listUrl;
|
|
127
141
|
const method = 'POST';
|
|
128
142
|
const body = JSON.stringify(this.onBeforeCreate(entity));
|
|
@@ -133,7 +147,7 @@
|
|
|
133
147
|
});
|
|
134
148
|
}
|
|
135
149
|
update(entity) {
|
|
136
|
-
return __awaiter
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
151
|
const url = this.getDetailUrl(entity);
|
|
138
152
|
const method = 'PUT';
|
|
139
153
|
const body = JSON.stringify(this.onBeforeUpdate(entity));
|
|
@@ -144,7 +158,7 @@
|
|
|
144
158
|
});
|
|
145
159
|
}
|
|
146
160
|
delete(entityOrId, params) {
|
|
147
|
-
return __awaiter
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
162
|
const method = 'DELETE';
|
|
149
163
|
const url = this.getDetailUrl(entityOrId);
|
|
150
164
|
const res = yield this.fetch(url, this.changeFetchOptions({ method, params }, url));
|
|
@@ -180,7 +194,7 @@
|
|
|
180
194
|
return `${this.listUrl}/${id}`;
|
|
181
195
|
}
|
|
182
196
|
fetch(url, init) {
|
|
183
|
-
return __awaiter
|
|
197
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
198
|
const fullUrl = this.getUrl(url);
|
|
185
199
|
const res = yield this.client.fetch(fullUrl, init);
|
|
186
200
|
return yield this.handleErrorStatusCodes(res);
|
|
@@ -196,7 +210,7 @@
|
|
|
196
210
|
* @throws If an error is detected, it throws `{ res, data }`, where `data` contains error details from server.
|
|
197
211
|
*/
|
|
198
212
|
handleErrorStatusCodes(response) {
|
|
199
|
-
return __awaiter
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
214
|
if (response.status >= 400) {
|
|
201
215
|
let data = null;
|
|
202
216
|
try {
|
|
@@ -814,15 +828,6 @@
|
|
|
814
828
|
browserPonyfill.Request;
|
|
815
829
|
browserPonyfill.Response;
|
|
816
830
|
|
|
817
|
-
var __awaiter$u = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
818
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
819
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
820
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
821
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
822
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
823
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
824
|
-
});
|
|
825
|
-
};
|
|
826
831
|
// eslint-disable-next-line prefer-const
|
|
827
832
|
let auths = new WeakMap();
|
|
828
833
|
class FetchClient {
|
|
@@ -842,7 +847,7 @@
|
|
|
842
847
|
auths.set(this, auth);
|
|
843
848
|
}
|
|
844
849
|
fetch(url, init) {
|
|
845
|
-
return __awaiter
|
|
850
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
846
851
|
let fetchFn = fetch;
|
|
847
852
|
try {
|
|
848
853
|
fetchFn = window.fetch || fetchFn;
|
|
@@ -1056,15 +1061,6 @@
|
|
|
1056
1061
|
}
|
|
1057
1062
|
}
|
|
1058
1063
|
|
|
1059
|
-
var __awaiter$t = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1060
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1061
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1062
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1063
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1064
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1065
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1066
|
-
});
|
|
1067
|
-
};
|
|
1068
1064
|
/**
|
|
1069
1065
|
* Allows to use Cookies for Authorization to the
|
|
1070
1066
|
* Cumulocity API.
|
|
@@ -1091,7 +1087,7 @@
|
|
|
1091
1087
|
return config;
|
|
1092
1088
|
}
|
|
1093
1089
|
logout() {
|
|
1094
|
-
return __awaiter
|
|
1090
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1095
1091
|
if (this.user) {
|
|
1096
1092
|
delete this.user;
|
|
1097
1093
|
}
|
|
@@ -4953,15 +4949,6 @@
|
|
|
4953
4949
|
}
|
|
4954
4950
|
}
|
|
4955
4951
|
|
|
4956
|
-
var __awaiter$s = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4957
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4958
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4959
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4960
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4961
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4962
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4963
|
-
});
|
|
4964
|
-
};
|
|
4965
4952
|
/**
|
|
4966
4953
|
* This class allows managing for events.
|
|
4967
4954
|
*/
|
|
@@ -4994,7 +4981,7 @@
|
|
|
4994
4981
|
const _super = Object.create(null, {
|
|
4995
4982
|
detail: { get: () => super.detail }
|
|
4996
4983
|
});
|
|
4997
|
-
return __awaiter
|
|
4984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4998
4985
|
return _super.detail.call(this, entityOrId);
|
|
4999
4986
|
});
|
|
5000
4987
|
}
|
|
@@ -5024,7 +5011,7 @@
|
|
|
5024
5011
|
const _super = Object.create(null, {
|
|
5025
5012
|
create: { get: () => super.create }
|
|
5026
5013
|
});
|
|
5027
|
-
return __awaiter
|
|
5014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5028
5015
|
return _super.create.call(this, entity);
|
|
5029
5016
|
});
|
|
5030
5017
|
}
|
|
@@ -5052,7 +5039,7 @@
|
|
|
5052
5039
|
const _super = Object.create(null, {
|
|
5053
5040
|
update: { get: () => super.update }
|
|
5054
5041
|
});
|
|
5055
|
-
return __awaiter
|
|
5042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5056
5043
|
return _super.update.call(this, entity);
|
|
5057
5044
|
});
|
|
5058
5045
|
}
|
|
@@ -5080,7 +5067,7 @@
|
|
|
5080
5067
|
const _super = Object.create(null, {
|
|
5081
5068
|
list: { get: () => super.list }
|
|
5082
5069
|
});
|
|
5083
|
-
return __awaiter
|
|
5070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5084
5071
|
return _super.list.call(this, filter);
|
|
5085
5072
|
});
|
|
5086
5073
|
}
|
|
@@ -5106,7 +5093,7 @@
|
|
|
5106
5093
|
const _super = Object.create(null, {
|
|
5107
5094
|
delete: { get: () => super.delete }
|
|
5108
5095
|
});
|
|
5109
|
-
return __awaiter
|
|
5096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5110
5097
|
return _super.delete.call(this, entityOrId);
|
|
5111
5098
|
});
|
|
5112
5099
|
}
|
|
@@ -5115,15 +5102,6 @@
|
|
|
5115
5102
|
/* eslint-env browser */
|
|
5116
5103
|
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
5117
5104
|
|
|
5118
|
-
var __awaiter$r = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5119
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5120
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5121
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5122
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5123
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5124
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5125
|
-
});
|
|
5126
|
-
};
|
|
5127
5105
|
class EventBinaryService extends Service {
|
|
5128
5106
|
constructor() {
|
|
5129
5107
|
super(...arguments);
|
|
@@ -5149,7 +5127,7 @@
|
|
|
5149
5127
|
* ```
|
|
5150
5128
|
*/
|
|
5151
5129
|
upload(file, entityOrId) {
|
|
5152
|
-
return __awaiter
|
|
5130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5153
5131
|
const method = 'POST';
|
|
5154
5132
|
const url = this.getDetailUrl(entityOrId);
|
|
5155
5133
|
const body = new browser();
|
|
@@ -5178,7 +5156,7 @@
|
|
|
5178
5156
|
* })();
|
|
5179
5157
|
*/
|
|
5180
5158
|
download(entityOrId) {
|
|
5181
|
-
return __awaiter
|
|
5159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5182
5160
|
const url = this.getDetailUrl(entityOrId);
|
|
5183
5161
|
return yield this.fetch(url);
|
|
5184
5162
|
});
|
|
@@ -5203,7 +5181,7 @@
|
|
|
5203
5181
|
const _super = Object.create(null, {
|
|
5204
5182
|
delete: { get: () => super.delete }
|
|
5205
5183
|
});
|
|
5206
|
-
return __awaiter
|
|
5184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5207
5185
|
return _super.delete.call(this, entityOrId);
|
|
5208
5186
|
});
|
|
5209
5187
|
}
|
|
@@ -5219,15 +5197,6 @@
|
|
|
5219
5197
|
}
|
|
5220
5198
|
}
|
|
5221
5199
|
|
|
5222
|
-
var __awaiter$q = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5223
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5224
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5225
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5226
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5227
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5228
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5229
|
-
});
|
|
5230
|
-
};
|
|
5231
5200
|
class InventoryBinaryService extends Service {
|
|
5232
5201
|
constructor() {
|
|
5233
5202
|
super(...arguments);
|
|
@@ -5243,7 +5212,7 @@
|
|
|
5243
5212
|
* but these two properties will be removed from `managedObject` before saving.
|
|
5244
5213
|
*/
|
|
5245
5214
|
create(file, managedObject = {}) {
|
|
5246
|
-
return __awaiter
|
|
5215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5247
5216
|
const method = 'POST';
|
|
5248
5217
|
const url = this.listUrl;
|
|
5249
5218
|
const body = new browser();
|
|
@@ -5284,7 +5253,7 @@
|
|
|
5284
5253
|
const _super = Object.create(null, {
|
|
5285
5254
|
list: { get: () => super.list }
|
|
5286
5255
|
});
|
|
5287
|
-
return __awaiter
|
|
5256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5288
5257
|
return _super.list.call(this, filter);
|
|
5289
5258
|
});
|
|
5290
5259
|
}
|
|
@@ -5292,12 +5261,12 @@
|
|
|
5292
5261
|
const _super = Object.create(null, {
|
|
5293
5262
|
delete: { get: () => super.delete }
|
|
5294
5263
|
});
|
|
5295
|
-
return __awaiter
|
|
5264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5296
5265
|
return _super.delete.call(this, managedObjectOrId);
|
|
5297
5266
|
});
|
|
5298
5267
|
}
|
|
5299
5268
|
download(managedObjectOrId, init) {
|
|
5300
|
-
return __awaiter
|
|
5269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5301
5270
|
const url = this.getDetailUrl(managedObjectOrId);
|
|
5302
5271
|
return yield this.fetch(url, init);
|
|
5303
5272
|
});
|
|
@@ -5394,15 +5363,6 @@
|
|
|
5394
5363
|
}
|
|
5395
5364
|
}
|
|
5396
5365
|
|
|
5397
|
-
var __awaiter$p = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5398
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5399
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5400
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5401
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5402
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5403
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5404
|
-
});
|
|
5405
|
-
};
|
|
5406
5366
|
/**
|
|
5407
5367
|
* Possible types of a child.
|
|
5408
5368
|
*/
|
|
@@ -5450,7 +5410,7 @@
|
|
|
5450
5410
|
const _super = Object.create(null, {
|
|
5451
5411
|
detail: { get: () => super.detail }
|
|
5452
5412
|
});
|
|
5453
|
-
return __awaiter
|
|
5413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5454
5414
|
return _super.detail.call(this, managedObjectOrId, filter);
|
|
5455
5415
|
});
|
|
5456
5416
|
}
|
|
@@ -5477,7 +5437,7 @@
|
|
|
5477
5437
|
const _super = Object.create(null, {
|
|
5478
5438
|
create: { get: () => super.create }
|
|
5479
5439
|
});
|
|
5480
|
-
return __awaiter
|
|
5440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5481
5441
|
return _super.create.call(this, managedObject);
|
|
5482
5442
|
});
|
|
5483
5443
|
}
|
|
@@ -5505,7 +5465,7 @@
|
|
|
5505
5465
|
const _super = Object.create(null, {
|
|
5506
5466
|
update: { get: () => super.update }
|
|
5507
5467
|
});
|
|
5508
|
-
return __awaiter
|
|
5468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5509
5469
|
return _super.update.call(this, managedObject);
|
|
5510
5470
|
});
|
|
5511
5471
|
}
|
|
@@ -5533,7 +5493,7 @@
|
|
|
5533
5493
|
const _super = Object.create(null, {
|
|
5534
5494
|
list: { get: () => super.list }
|
|
5535
5495
|
});
|
|
5536
|
-
return __awaiter
|
|
5496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5537
5497
|
return _super.list.call(this, filter);
|
|
5538
5498
|
});
|
|
5539
5499
|
}
|
|
@@ -5565,7 +5525,7 @@
|
|
|
5565
5525
|
const _super = Object.create(null, {
|
|
5566
5526
|
list: { get: () => super.list }
|
|
5567
5527
|
});
|
|
5568
|
-
return __awaiter
|
|
5528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5569
5529
|
filter[this.inventoriesQueryParamName] = this.queriesUtil.buildQuery(query);
|
|
5570
5530
|
return _super.list.call(this, filter);
|
|
5571
5531
|
});
|
|
@@ -5598,7 +5558,7 @@
|
|
|
5598
5558
|
const _super = Object.create(null, {
|
|
5599
5559
|
list: { get: () => super.list }
|
|
5600
5560
|
});
|
|
5601
|
-
return __awaiter
|
|
5561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5602
5562
|
filter[this.devicesQueryParamName] = this.queriesUtil.buildQuery(query);
|
|
5603
5563
|
return _super.list.call(this, filter);
|
|
5604
5564
|
});
|
|
@@ -5628,7 +5588,7 @@
|
|
|
5628
5588
|
const _super = Object.create(null, {
|
|
5629
5589
|
delete: { get: () => super.delete }
|
|
5630
5590
|
});
|
|
5631
|
-
return __awaiter
|
|
5591
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5632
5592
|
return _super.delete.call(this, managedObjectOrId, params);
|
|
5633
5593
|
});
|
|
5634
5594
|
}
|
|
@@ -5655,7 +5615,7 @@
|
|
|
5655
5615
|
* ```
|
|
5656
5616
|
*/
|
|
5657
5617
|
childAdditionsList(parentReference, filter = {}) {
|
|
5658
|
-
return __awaiter
|
|
5618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5659
5619
|
return this.listChildren(exports.ChildType.ADDITIONS, parentReference, filter);
|
|
5660
5620
|
});
|
|
5661
5621
|
}
|
|
@@ -5686,7 +5646,7 @@
|
|
|
5686
5646
|
* ```
|
|
5687
5647
|
*/
|
|
5688
5648
|
childAdditionsCreate(managedObject, parentReference) {
|
|
5689
|
-
return __awaiter
|
|
5649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5690
5650
|
return this.createChild(exports.ChildType.ADDITIONS, managedObject, parentReference);
|
|
5691
5651
|
});
|
|
5692
5652
|
}
|
|
@@ -5710,7 +5670,7 @@
|
|
|
5710
5670
|
* ```
|
|
5711
5671
|
*/
|
|
5712
5672
|
childAdditionsAdd(childReference, parentReference) {
|
|
5713
|
-
return __awaiter
|
|
5673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5714
5674
|
return this.addChild(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5715
5675
|
});
|
|
5716
5676
|
}
|
|
@@ -5734,7 +5694,7 @@
|
|
|
5734
5694
|
* ```
|
|
5735
5695
|
*/
|
|
5736
5696
|
childAdditionsRemove(childReference, parentReference) {
|
|
5737
|
-
return __awaiter
|
|
5697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5738
5698
|
return this.removeChild(exports.ChildType.ADDITIONS, childReference, parentReference);
|
|
5739
5699
|
});
|
|
5740
5700
|
}
|
|
@@ -5762,7 +5722,7 @@
|
|
|
5762
5722
|
* ```
|
|
5763
5723
|
*/
|
|
5764
5724
|
childAssetsList(parentReference, filter = {}) {
|
|
5765
|
-
return __awaiter
|
|
5725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5766
5726
|
return this.listChildren(exports.ChildType.ASSETS, parentReference, filter);
|
|
5767
5727
|
});
|
|
5768
5728
|
}
|
|
@@ -5793,7 +5753,7 @@
|
|
|
5793
5753
|
* ```
|
|
5794
5754
|
*/
|
|
5795
5755
|
childAssetsCreate(managedObject, parentReference) {
|
|
5796
|
-
return __awaiter
|
|
5756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5797
5757
|
return this.createChild(exports.ChildType.ASSETS, managedObject, parentReference);
|
|
5798
5758
|
});
|
|
5799
5759
|
}
|
|
@@ -5817,7 +5777,7 @@
|
|
|
5817
5777
|
* ```
|
|
5818
5778
|
*/
|
|
5819
5779
|
childAssetsAdd(childReference, parentReference) {
|
|
5820
|
-
return __awaiter
|
|
5780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5821
5781
|
return this.addChild(exports.ChildType.ASSETS, childReference, parentReference);
|
|
5822
5782
|
});
|
|
5823
5783
|
}
|
|
@@ -5841,7 +5801,7 @@
|
|
|
5841
5801
|
* ```
|
|
5842
5802
|
*/
|
|
5843
5803
|
childAssetsBulkAdd(childReference, parentReference) {
|
|
5844
|
-
return __awaiter
|
|
5804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5845
5805
|
return this.addChildBulk(exports.ChildType.ASSETS, childReference, parentReference);
|
|
5846
5806
|
});
|
|
5847
5807
|
}
|
|
@@ -5865,7 +5825,7 @@
|
|
|
5865
5825
|
* ```
|
|
5866
5826
|
*/
|
|
5867
5827
|
childAssetsRemove(childReference, parentReference) {
|
|
5868
|
-
return __awaiter
|
|
5828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5869
5829
|
return this.removeChild(exports.ChildType.ASSETS, childReference, parentReference);
|
|
5870
5830
|
});
|
|
5871
5831
|
}
|
|
@@ -5893,7 +5853,7 @@
|
|
|
5893
5853
|
* ```
|
|
5894
5854
|
*/
|
|
5895
5855
|
childDevicesList(parentReference, filter = {}) {
|
|
5896
|
-
return __awaiter
|
|
5856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5897
5857
|
return this.listChildren(exports.ChildType.DEVICES, parentReference, filter);
|
|
5898
5858
|
});
|
|
5899
5859
|
}
|
|
@@ -5924,7 +5884,7 @@
|
|
|
5924
5884
|
* ```
|
|
5925
5885
|
*/
|
|
5926
5886
|
childDevicesCreate(managedObject, parentReference) {
|
|
5927
|
-
return __awaiter
|
|
5887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5928
5888
|
return this.createChild(exports.ChildType.DEVICES, managedObject, parentReference);
|
|
5929
5889
|
});
|
|
5930
5890
|
}
|
|
@@ -5948,7 +5908,7 @@
|
|
|
5948
5908
|
* ```
|
|
5949
5909
|
*/
|
|
5950
5910
|
childDevicesAdd(childReference, parentReference) {
|
|
5951
|
-
return __awaiter
|
|
5911
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5952
5912
|
return this.addChild(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5953
5913
|
});
|
|
5954
5914
|
}
|
|
@@ -5972,7 +5932,7 @@
|
|
|
5972
5932
|
* ```
|
|
5973
5933
|
*/
|
|
5974
5934
|
childDevicesRemove(childReference, parentReference) {
|
|
5975
|
-
return __awaiter
|
|
5935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5976
5936
|
return this.removeChild(exports.ChildType.DEVICES, childReference, parentReference);
|
|
5977
5937
|
});
|
|
5978
5938
|
}
|
|
@@ -5985,7 +5945,7 @@
|
|
|
5985
5945
|
* @param {IdReference} managedObjectOrId
|
|
5986
5946
|
*/
|
|
5987
5947
|
getSupportedMeasurements(managedObjectOrId) {
|
|
5988
|
-
return __awaiter
|
|
5948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5989
5949
|
return this.getSupportedMeasurementDetails(managedObjectOrId, 'supportedMeasurements');
|
|
5990
5950
|
});
|
|
5991
5951
|
}
|
|
@@ -5998,7 +5958,7 @@
|
|
|
5998
5958
|
* @param {IdReference} managedObjectOrId
|
|
5999
5959
|
*/
|
|
6000
5960
|
getSupportedSeries(managedObjectOrId) {
|
|
6001
|
-
return __awaiter
|
|
5961
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6002
5962
|
return this.getSupportedMeasurementDetails(managedObjectOrId, 'supportedSeries');
|
|
6003
5963
|
});
|
|
6004
5964
|
}
|
|
@@ -6010,7 +5970,7 @@
|
|
|
6010
5970
|
* @param {IdReference} managedObjectOrId
|
|
6011
5971
|
*/
|
|
6012
5972
|
getMeasurementsAndSeries(managedObjectOrId) {
|
|
6013
|
-
return __awaiter
|
|
5973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6014
5974
|
const [supportedMeasurements, supportedSeries] = yield Promise.all([
|
|
6015
5975
|
this.getSupportedMeasurements(managedObjectOrId),
|
|
6016
5976
|
this.getSupportedSeries(managedObjectOrId)
|
|
@@ -6038,12 +5998,12 @@
|
|
|
6038
5998
|
* @param {object} filter
|
|
6039
5999
|
*/
|
|
6040
6000
|
assetKPIsList(parentReference, filter = {}) {
|
|
6041
|
-
return __awaiter
|
|
6001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6042
6002
|
return this.listKPIs(parentReference, filter);
|
|
6043
6003
|
});
|
|
6044
6004
|
}
|
|
6045
6005
|
listKPIs(parentReference, filter = {}) {
|
|
6046
|
-
return __awaiter
|
|
6006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6047
6007
|
const headers = { accept: 'application/json' };
|
|
6048
6008
|
const url = this.getChildrenUrl('kpis', parentReference);
|
|
6049
6009
|
const res = yield this.fetch(url, this.changeFetchOptions({ headers, params: filter }, url));
|
|
@@ -6070,7 +6030,7 @@
|
|
|
6070
6030
|
return `${this.getChildrenUrl(type, parentReference)}/${childId}`;
|
|
6071
6031
|
}
|
|
6072
6032
|
listChildren(type, parentReference, filter = {}) {
|
|
6073
|
-
return __awaiter
|
|
6033
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6074
6034
|
const headers = { 'content-type': 'application/json' };
|
|
6075
6035
|
const url = this.getChildrenUrl(type, parentReference);
|
|
6076
6036
|
const res = yield this.fetch(url, { headers, params: filter });
|
|
@@ -6082,7 +6042,7 @@
|
|
|
6082
6042
|
});
|
|
6083
6043
|
}
|
|
6084
6044
|
createChild(type, managedObject, parentReference) {
|
|
6085
|
-
return __awaiter
|
|
6045
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6086
6046
|
const url = this.getChildrenUrl(type, parentReference);
|
|
6087
6047
|
const method = 'POST';
|
|
6088
6048
|
const body = JSON.stringify(this.onBeforeCreate(managedObject));
|
|
@@ -6093,7 +6053,7 @@
|
|
|
6093
6053
|
});
|
|
6094
6054
|
}
|
|
6095
6055
|
addChild(type, childReference, parentReference) {
|
|
6096
|
-
return __awaiter
|
|
6056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6097
6057
|
const url = this.getChildrenUrl(type, parentReference);
|
|
6098
6058
|
const method = 'POST';
|
|
6099
6059
|
const childId = this.getIdString(childReference);
|
|
@@ -6109,7 +6069,7 @@
|
|
|
6109
6069
|
});
|
|
6110
6070
|
}
|
|
6111
6071
|
addChildBulk(type, childReferenceArray, parentReference) {
|
|
6112
|
-
return __awaiter
|
|
6072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6113
6073
|
const url = this.getChildrenUrl(type, parentReference);
|
|
6114
6074
|
const method = 'POST';
|
|
6115
6075
|
const references = childReferenceArray.map(childId => ({
|
|
@@ -6130,7 +6090,7 @@
|
|
|
6130
6090
|
});
|
|
6131
6091
|
}
|
|
6132
6092
|
removeChild(type, childReference, parentReference) {
|
|
6133
|
-
return __awaiter
|
|
6093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6134
6094
|
const childId = this.getIdString(childReference);
|
|
6135
6095
|
const url = `${this.getChildrenUrl(type, parentReference)}/${childId}`;
|
|
6136
6096
|
const method = 'DELETE';
|
|
@@ -6141,7 +6101,7 @@
|
|
|
6141
6101
|
});
|
|
6142
6102
|
}
|
|
6143
6103
|
getSupportedMeasurementDetails(managedObjectOrId, type = 'supportedSeries') {
|
|
6144
|
-
return __awaiter
|
|
6104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6145
6105
|
const url = `${this.getDetailUrl(managedObjectOrId)}/${type}`;
|
|
6146
6106
|
this.getIdString(managedObjectOrId);
|
|
6147
6107
|
const headers = { accept: 'application/json' };
|
|
@@ -6152,15 +6112,6 @@
|
|
|
6152
6112
|
}
|
|
6153
6113
|
}
|
|
6154
6114
|
|
|
6155
|
-
var __awaiter$o = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6156
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6157
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6158
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6159
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6160
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6161
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6162
|
-
});
|
|
6163
|
-
};
|
|
6164
6115
|
/**
|
|
6165
6116
|
* This class allows for managing measurements.
|
|
6166
6117
|
*/
|
|
@@ -6196,7 +6147,7 @@
|
|
|
6196
6147
|
const _super = Object.create(null, {
|
|
6197
6148
|
detail: { get: () => super.detail }
|
|
6198
6149
|
});
|
|
6199
|
-
return __awaiter
|
|
6150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6200
6151
|
return _super.detail.call(this, entityOrId);
|
|
6201
6152
|
});
|
|
6202
6153
|
}
|
|
@@ -6224,7 +6175,7 @@
|
|
|
6224
6175
|
const _super = Object.create(null, {
|
|
6225
6176
|
create: { get: () => super.create }
|
|
6226
6177
|
});
|
|
6227
|
-
return __awaiter
|
|
6178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6228
6179
|
return _super.create.call(this, this.onBeforeCreate(entity));
|
|
6229
6180
|
});
|
|
6230
6181
|
}
|
|
@@ -6252,7 +6203,7 @@
|
|
|
6252
6203
|
const _super = Object.create(null, {
|
|
6253
6204
|
list: { get: () => super.list }
|
|
6254
6205
|
});
|
|
6255
|
-
return __awaiter
|
|
6206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6256
6207
|
return _super.list.call(this, filter);
|
|
6257
6208
|
});
|
|
6258
6209
|
}
|
|
@@ -6280,7 +6231,7 @@
|
|
|
6280
6231
|
const _super = Object.create(null, {
|
|
6281
6232
|
delete: { get: () => super.delete }
|
|
6282
6233
|
});
|
|
6283
|
-
return __awaiter
|
|
6234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6284
6235
|
return _super.delete.call(this, entityOrId);
|
|
6285
6236
|
});
|
|
6286
6237
|
}
|
|
@@ -6306,7 +6257,7 @@
|
|
|
6306
6257
|
* ```
|
|
6307
6258
|
*/
|
|
6308
6259
|
listSeries(params) {
|
|
6309
|
-
return __awaiter
|
|
6260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6310
6261
|
const url = `${this.baseUrl}/${this.listUrl}/series`;
|
|
6311
6262
|
const res = yield this.client.fetch(url, { params });
|
|
6312
6263
|
const data = yield res.json();
|
|
@@ -6340,15 +6291,6 @@
|
|
|
6340
6291
|
aggregationType["DAILY"] = "DAILY";
|
|
6341
6292
|
})(exports.aggregationType || (exports.aggregationType = {}));
|
|
6342
6293
|
|
|
6343
|
-
var __awaiter$n = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6344
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6345
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6346
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6347
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6348
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6349
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6350
|
-
});
|
|
6351
|
-
};
|
|
6352
6294
|
/**
|
|
6353
6295
|
* This class allows for managing alarms.
|
|
6354
6296
|
*/
|
|
@@ -6381,7 +6323,7 @@
|
|
|
6381
6323
|
const _super = Object.create(null, {
|
|
6382
6324
|
detail: { get: () => super.detail }
|
|
6383
6325
|
});
|
|
6384
|
-
return __awaiter
|
|
6326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6385
6327
|
return _super.detail.call(this, entityOrId);
|
|
6386
6328
|
});
|
|
6387
6329
|
}
|
|
@@ -6412,7 +6354,7 @@
|
|
|
6412
6354
|
const _super = Object.create(null, {
|
|
6413
6355
|
create: { get: () => super.create }
|
|
6414
6356
|
});
|
|
6415
|
-
return __awaiter
|
|
6357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6416
6358
|
return _super.create.call(this, entity);
|
|
6417
6359
|
});
|
|
6418
6360
|
}
|
|
@@ -6441,7 +6383,7 @@
|
|
|
6441
6383
|
const _super = Object.create(null, {
|
|
6442
6384
|
update: { get: () => super.update }
|
|
6443
6385
|
});
|
|
6444
|
-
return __awaiter
|
|
6386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6445
6387
|
return _super.update.call(this, entity);
|
|
6446
6388
|
});
|
|
6447
6389
|
}
|
|
@@ -6470,7 +6412,7 @@
|
|
|
6470
6412
|
const _super = Object.create(null, {
|
|
6471
6413
|
list: { get: () => super.list }
|
|
6472
6414
|
});
|
|
6473
|
-
return __awaiter
|
|
6415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6474
6416
|
return _super.list.call(this, filter);
|
|
6475
6417
|
});
|
|
6476
6418
|
}
|
|
@@ -6486,15 +6428,6 @@
|
|
|
6486
6428
|
AlarmStatus[AlarmStatus["ACTIVE"] = gettext('ACTIVE')] = "ACTIVE";
|
|
6487
6429
|
})(exports.AlarmStatus || (exports.AlarmStatus = {}));
|
|
6488
6430
|
|
|
6489
|
-
var __awaiter$m = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6490
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6491
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6492
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6493
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6494
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6495
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6496
|
-
});
|
|
6497
|
-
};
|
|
6498
6431
|
/**
|
|
6499
6432
|
* This class allows for managing operations on a device.
|
|
6500
6433
|
*/
|
|
@@ -6526,7 +6459,7 @@
|
|
|
6526
6459
|
const _super = Object.create(null, {
|
|
6527
6460
|
detail: { get: () => super.detail }
|
|
6528
6461
|
});
|
|
6529
|
-
return __awaiter
|
|
6462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6530
6463
|
return _super.detail.call(this, entityOrId);
|
|
6531
6464
|
});
|
|
6532
6465
|
}
|
|
@@ -6560,7 +6493,7 @@
|
|
|
6560
6493
|
const _super = Object.create(null, {
|
|
6561
6494
|
create: { get: () => super.create }
|
|
6562
6495
|
});
|
|
6563
|
-
return __awaiter
|
|
6496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6564
6497
|
return _super.create.call(this, entity);
|
|
6565
6498
|
});
|
|
6566
6499
|
}
|
|
@@ -6595,7 +6528,7 @@
|
|
|
6595
6528
|
const _super = Object.create(null, {
|
|
6596
6529
|
update: { get: () => super.update }
|
|
6597
6530
|
});
|
|
6598
|
-
return __awaiter
|
|
6531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6599
6532
|
return _super.update.call(this, entity);
|
|
6600
6533
|
});
|
|
6601
6534
|
}
|
|
@@ -6623,21 +6556,12 @@
|
|
|
6623
6556
|
const _super = Object.create(null, {
|
|
6624
6557
|
list: { get: () => super.list }
|
|
6625
6558
|
});
|
|
6626
|
-
return __awaiter
|
|
6559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6627
6560
|
return _super.list.call(this, filter);
|
|
6628
6561
|
});
|
|
6629
6562
|
}
|
|
6630
6563
|
}
|
|
6631
6564
|
|
|
6632
|
-
var __awaiter$l = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6633
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6634
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6635
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6636
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6637
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6638
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6639
|
-
});
|
|
6640
|
-
};
|
|
6641
6565
|
/**
|
|
6642
6566
|
* This class allows for managing bulk operations.
|
|
6643
6567
|
*/
|
|
@@ -6669,7 +6593,7 @@
|
|
|
6669
6593
|
const _super = Object.create(null, {
|
|
6670
6594
|
detail: { get: () => super.detail }
|
|
6671
6595
|
});
|
|
6672
|
-
return __awaiter
|
|
6596
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6673
6597
|
return _super.detail.call(this, operationOrId);
|
|
6674
6598
|
});
|
|
6675
6599
|
}
|
|
@@ -6704,7 +6628,7 @@
|
|
|
6704
6628
|
const _super = Object.create(null, {
|
|
6705
6629
|
create: { get: () => super.create }
|
|
6706
6630
|
});
|
|
6707
|
-
return __awaiter
|
|
6631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6708
6632
|
return _super.create.call(this, operation);
|
|
6709
6633
|
});
|
|
6710
6634
|
}
|
|
@@ -6739,7 +6663,7 @@
|
|
|
6739
6663
|
const _super = Object.create(null, {
|
|
6740
6664
|
update: { get: () => super.update }
|
|
6741
6665
|
});
|
|
6742
|
-
return __awaiter
|
|
6666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6743
6667
|
return _super.update.call(this, entity);
|
|
6744
6668
|
});
|
|
6745
6669
|
}
|
|
@@ -6767,7 +6691,7 @@
|
|
|
6767
6691
|
const _super = Object.create(null, {
|
|
6768
6692
|
list: { get: () => super.list }
|
|
6769
6693
|
});
|
|
6770
|
-
return __awaiter
|
|
6694
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6771
6695
|
return _super.list.call(this, filter);
|
|
6772
6696
|
});
|
|
6773
6697
|
}
|
|
@@ -6792,7 +6716,7 @@
|
|
|
6792
6716
|
const _super = Object.create(null, {
|
|
6793
6717
|
delete: { get: () => super.delete }
|
|
6794
6718
|
});
|
|
6795
|
-
return __awaiter
|
|
6719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6796
6720
|
return _super.delete.call(this, operationOrId);
|
|
6797
6721
|
});
|
|
6798
6722
|
}
|
|
@@ -6835,15 +6759,6 @@
|
|
|
6835
6759
|
OperationStatus[OperationStatus["FAILED"] = gettext('FAILED')] = "FAILED";
|
|
6836
6760
|
})(exports.OperationStatus || (exports.OperationStatus = {}));
|
|
6837
6761
|
|
|
6838
|
-
var __awaiter$k = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6839
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6840
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6841
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6842
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6843
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6844
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6845
|
-
});
|
|
6846
|
-
};
|
|
6847
6762
|
/**
|
|
6848
6763
|
* @description
|
|
6849
6764
|
* This service allows for managing tenants.
|
|
@@ -6885,7 +6800,7 @@
|
|
|
6885
6800
|
const _super = Object.create(null, {
|
|
6886
6801
|
detail: { get: () => super.detail }
|
|
6887
6802
|
});
|
|
6888
|
-
return __awaiter
|
|
6803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6889
6804
|
return _super.detail.call(this, entityOrId);
|
|
6890
6805
|
});
|
|
6891
6806
|
}
|
|
@@ -6920,7 +6835,7 @@
|
|
|
6920
6835
|
const _super = Object.create(null, {
|
|
6921
6836
|
create: { get: () => super.create }
|
|
6922
6837
|
});
|
|
6923
|
-
return __awaiter
|
|
6838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6924
6839
|
return _super.create.call(this, entity);
|
|
6925
6840
|
});
|
|
6926
6841
|
}
|
|
@@ -6952,7 +6867,7 @@
|
|
|
6952
6867
|
const _super = Object.create(null, {
|
|
6953
6868
|
update: { get: () => super.update }
|
|
6954
6869
|
});
|
|
6955
|
-
return __awaiter
|
|
6870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6956
6871
|
return _super.update.call(this, entity);
|
|
6957
6872
|
});
|
|
6958
6873
|
}
|
|
@@ -6983,7 +6898,7 @@
|
|
|
6983
6898
|
const _super = Object.create(null, {
|
|
6984
6899
|
list: { get: () => super.list }
|
|
6985
6900
|
});
|
|
6986
|
-
return __awaiter
|
|
6901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6987
6902
|
return _super.list.call(this, filter);
|
|
6988
6903
|
});
|
|
6989
6904
|
}
|
|
@@ -7010,12 +6925,12 @@
|
|
|
7010
6925
|
const _super = Object.create(null, {
|
|
7011
6926
|
delete: { get: () => super.delete }
|
|
7012
6927
|
});
|
|
7013
|
-
return __awaiter
|
|
6928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7014
6929
|
return _super.delete.call(this, entityOrId);
|
|
7015
6930
|
});
|
|
7016
6931
|
}
|
|
7017
6932
|
current() {
|
|
7018
|
-
return __awaiter
|
|
6933
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7019
6934
|
const headers = { 'content-type': 'application/json' };
|
|
7020
6935
|
const res = yield this.fetch(this.currentTenantUrl, { headers });
|
|
7021
6936
|
const data = yield res.json();
|
|
@@ -7035,7 +6950,7 @@
|
|
|
7035
6950
|
* ```
|
|
7036
6951
|
*/
|
|
7037
6952
|
enableSupportUser() {
|
|
7038
|
-
return __awaiter
|
|
6953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7039
6954
|
const url = 'support-user/enable';
|
|
7040
6955
|
const res = yield this.fetch(url, this.fetchOptions);
|
|
7041
6956
|
return { res, data: null };
|
|
@@ -7054,14 +6969,14 @@
|
|
|
7054
6969
|
* ```
|
|
7055
6970
|
*/
|
|
7056
6971
|
disableSupportUser() {
|
|
7057
|
-
return __awaiter
|
|
6972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7058
6973
|
const url = 'support-user/disable';
|
|
7059
6974
|
const res = yield this.fetch(url, this.fetchOptions);
|
|
7060
6975
|
return { res, data: null };
|
|
7061
6976
|
});
|
|
7062
6977
|
}
|
|
7063
6978
|
currentTenantType() {
|
|
7064
|
-
return __awaiter
|
|
6979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7065
6980
|
const tenantData = yield this.current();
|
|
7066
6981
|
if (tenantData.data.customProperties &&
|
|
7067
6982
|
tenantData.data.customProperties.tenantType === 'TRIAL') {
|
|
@@ -7089,7 +7004,7 @@
|
|
|
7089
7004
|
* ```
|
|
7090
7005
|
*/
|
|
7091
7006
|
getTfaSettings(tenant) {
|
|
7092
|
-
return __awaiter
|
|
7007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7093
7008
|
const entityOrId = this.getIdString(tenant);
|
|
7094
7009
|
const url = `tenants/${entityOrId}/tfa`;
|
|
7095
7010
|
const res = yield this.fetch(url);
|
|
@@ -7121,7 +7036,7 @@
|
|
|
7121
7036
|
* ```
|
|
7122
7037
|
*/
|
|
7123
7038
|
subscribeApplication(tenant, application) {
|
|
7124
|
-
return __awaiter
|
|
7039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7125
7040
|
const entityOrId = this.getIdString(tenant);
|
|
7126
7041
|
const applicationId = application.id;
|
|
7127
7042
|
const url = `tenants/${entityOrId}/applications`;
|
|
@@ -7162,7 +7077,7 @@
|
|
|
7162
7077
|
* ```
|
|
7163
7078
|
*/
|
|
7164
7079
|
unsubscribeApplication(tenant, application) {
|
|
7165
|
-
return __awaiter
|
|
7080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7166
7081
|
const entityOrId = this.getIdString(tenant);
|
|
7167
7082
|
const url = `tenants/${entityOrId}/applications/${application.id}`;
|
|
7168
7083
|
const method = 'DELETE';
|
|
@@ -7195,15 +7110,6 @@
|
|
|
7195
7110
|
TfaStrategy["SMS"] = "SMS";
|
|
7196
7111
|
})(exports.TfaStrategy || (exports.TfaStrategy = {}));
|
|
7197
7112
|
|
|
7198
|
-
var __awaiter$j = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7199
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7200
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7201
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7202
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7203
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7204
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7205
|
-
});
|
|
7206
|
-
};
|
|
7207
7113
|
/**
|
|
7208
7114
|
* @description
|
|
7209
7115
|
* This service allows for managing current user's inventory roles.
|
|
@@ -7240,7 +7146,7 @@
|
|
|
7240
7146
|
const _super = Object.create(null, {
|
|
7241
7147
|
detail: { get: () => super.detail }
|
|
7242
7148
|
});
|
|
7243
|
-
return __awaiter
|
|
7149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7244
7150
|
return _super.detail.call(this, entityOrId);
|
|
7245
7151
|
});
|
|
7246
7152
|
}
|
|
@@ -7267,7 +7173,7 @@
|
|
|
7267
7173
|
const _super = Object.create(null, {
|
|
7268
7174
|
create: { get: () => super.create }
|
|
7269
7175
|
});
|
|
7270
|
-
return __awaiter
|
|
7176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7271
7177
|
return _super.create.call(this, entity);
|
|
7272
7178
|
});
|
|
7273
7179
|
}
|
|
@@ -7280,7 +7186,7 @@
|
|
|
7280
7186
|
const _super = Object.create(null, {
|
|
7281
7187
|
update: { get: () => super.update }
|
|
7282
7188
|
});
|
|
7283
|
-
return __awaiter
|
|
7189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7284
7190
|
return _super.update.call(this, entity);
|
|
7285
7191
|
});
|
|
7286
7192
|
}
|
|
@@ -7309,7 +7215,7 @@
|
|
|
7309
7215
|
const _super = Object.create(null, {
|
|
7310
7216
|
list: { get: () => super.list }
|
|
7311
7217
|
});
|
|
7312
|
-
return __awaiter
|
|
7218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7313
7219
|
return _super.list.call(this, filter);
|
|
7314
7220
|
});
|
|
7315
7221
|
}
|
|
@@ -7334,21 +7240,12 @@
|
|
|
7334
7240
|
const _super = Object.create(null, {
|
|
7335
7241
|
delete: { get: () => super.delete }
|
|
7336
7242
|
});
|
|
7337
|
-
return __awaiter
|
|
7243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7338
7244
|
return _super.delete.call(this, entityOrId);
|
|
7339
7245
|
});
|
|
7340
7246
|
}
|
|
7341
7247
|
}
|
|
7342
7248
|
|
|
7343
|
-
var __awaiter$i = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7344
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7345
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7346
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7347
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7348
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7349
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7350
|
-
});
|
|
7351
|
-
};
|
|
7352
7249
|
/**
|
|
7353
7250
|
* @description
|
|
7354
7251
|
* This service allows for managing users.
|
|
@@ -7401,7 +7298,7 @@
|
|
|
7401
7298
|
const _super = Object.create(null, {
|
|
7402
7299
|
detail: { get: () => super.detail }
|
|
7403
7300
|
});
|
|
7404
|
-
return __awaiter
|
|
7301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7405
7302
|
return _super.detail.call(this, entityOrId);
|
|
7406
7303
|
});
|
|
7407
7304
|
}
|
|
@@ -7429,7 +7326,7 @@
|
|
|
7429
7326
|
const _super = Object.create(null, {
|
|
7430
7327
|
create: { get: () => super.create }
|
|
7431
7328
|
});
|
|
7432
|
-
return __awaiter
|
|
7329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7433
7330
|
return _super.create.call(this, entity);
|
|
7434
7331
|
});
|
|
7435
7332
|
}
|
|
@@ -7461,7 +7358,7 @@
|
|
|
7461
7358
|
const _super = Object.create(null, {
|
|
7462
7359
|
update: { get: () => super.update }
|
|
7463
7360
|
});
|
|
7464
|
-
return __awaiter
|
|
7361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7465
7362
|
return _super.update.call(this, entity);
|
|
7466
7363
|
});
|
|
7467
7364
|
}
|
|
@@ -7489,7 +7386,7 @@
|
|
|
7489
7386
|
const _super = Object.create(null, {
|
|
7490
7387
|
list: { get: () => super.list }
|
|
7491
7388
|
});
|
|
7492
|
-
return __awaiter
|
|
7389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7493
7390
|
return _super.list.call(this, filter);
|
|
7494
7391
|
});
|
|
7495
7392
|
}
|
|
@@ -7514,7 +7411,7 @@
|
|
|
7514
7411
|
const _super = Object.create(null, {
|
|
7515
7412
|
delete: { get: () => super.delete }
|
|
7516
7413
|
});
|
|
7517
|
-
return __awaiter
|
|
7414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7518
7415
|
return _super.delete.call(this, entityOrId);
|
|
7519
7416
|
});
|
|
7520
7417
|
}
|
|
@@ -7553,7 +7450,7 @@
|
|
|
7553
7450
|
* ```
|
|
7554
7451
|
*/
|
|
7555
7452
|
current() {
|
|
7556
|
-
return __awaiter
|
|
7453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7557
7454
|
const headers = {
|
|
7558
7455
|
'content-type': 'application/json',
|
|
7559
7456
|
Accept: 'application/vnd.com.nsn.cumulocity.user+json;'
|
|
@@ -7577,7 +7474,7 @@
|
|
|
7577
7474
|
* ```
|
|
7578
7475
|
*/
|
|
7579
7476
|
currentWithEffectiveRoles() {
|
|
7580
|
-
return __awaiter
|
|
7477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7581
7478
|
const headers = {
|
|
7582
7479
|
'content-type': 'application/json',
|
|
7583
7480
|
Accept: 'application/vnd.com.nsn.cumulocity.currentUser+json;'
|
|
@@ -7595,7 +7492,7 @@
|
|
|
7595
7492
|
* @return Returns promise object resolved with the IUser wrapped by IResult
|
|
7596
7493
|
*/
|
|
7597
7494
|
updateCurrent(user) {
|
|
7598
|
-
return __awaiter
|
|
7495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7599
7496
|
const mimeType = 'application/vnd.com.nsn.cumulocity.user+json';
|
|
7600
7497
|
const headers = { 'content-type': mimeType, Accept: mimeType };
|
|
7601
7498
|
const body = JSON.stringify(this.onBeforeUpdate(user));
|
|
@@ -7623,7 +7520,7 @@
|
|
|
7623
7520
|
* ```
|
|
7624
7521
|
*/
|
|
7625
7522
|
sendPasswordResetMail(email, tenantId) {
|
|
7626
|
-
return __awaiter
|
|
7523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7627
7524
|
const headers = { 'content-type': 'application/json', accept: 'application/json' };
|
|
7628
7525
|
const method = 'POST';
|
|
7629
7526
|
const url = this.passwordResetUrl;
|
|
@@ -7657,7 +7554,7 @@
|
|
|
7657
7554
|
* ```
|
|
7658
7555
|
*/
|
|
7659
7556
|
resetPassword(newPassword, tenantId) {
|
|
7660
|
-
return __awaiter
|
|
7557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7661
7558
|
const headers = { 'content-type': 'application/json', accept: 'application/json' };
|
|
7662
7559
|
const method = 'PUT';
|
|
7663
7560
|
const url = this.passwordResetUrl;
|
|
@@ -7683,7 +7580,7 @@
|
|
|
7683
7580
|
* ```
|
|
7684
7581
|
*/
|
|
7685
7582
|
verifyTFACode(pin) {
|
|
7686
|
-
return __awaiter
|
|
7583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7687
7584
|
const method = 'POST';
|
|
7688
7585
|
const body = JSON.stringify({ pin });
|
|
7689
7586
|
const headers = { 'content-type': 'application/json', accept: 'application/json' };
|
|
@@ -7707,7 +7604,7 @@
|
|
|
7707
7604
|
* ```
|
|
7708
7605
|
*/
|
|
7709
7606
|
verifyTotpCode(code) {
|
|
7710
|
-
return __awaiter
|
|
7607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7711
7608
|
const method = 'POST';
|
|
7712
7609
|
const headers = { 'content-type': 'application/json' };
|
|
7713
7610
|
const body = JSON.stringify({ code });
|
|
@@ -7729,7 +7626,7 @@
|
|
|
7729
7626
|
* ```
|
|
7730
7627
|
*/
|
|
7731
7628
|
activateTotp() {
|
|
7732
|
-
return __awaiter
|
|
7629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7733
7630
|
const method = 'POST';
|
|
7734
7631
|
const headers = { 'content-type': 'application/json' };
|
|
7735
7632
|
const body = JSON.stringify({ isActive: true });
|
|
@@ -7752,7 +7649,7 @@
|
|
|
7752
7649
|
* ```
|
|
7753
7650
|
*/
|
|
7754
7651
|
getActivityTotp() {
|
|
7755
|
-
return __awaiter
|
|
7652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7756
7653
|
const method = 'GET';
|
|
7757
7654
|
const headers = { 'content-type': 'application/json' };
|
|
7758
7655
|
const res = yield this.fetch(this.activateTOTPCodeUrl, { headers, method });
|
|
@@ -7775,7 +7672,7 @@
|
|
|
7775
7672
|
* ```
|
|
7776
7673
|
*/
|
|
7777
7674
|
generateTotpSecret() {
|
|
7778
|
-
return __awaiter
|
|
7675
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7779
7676
|
const method = 'POST';
|
|
7780
7677
|
const headers = { 'content-type': 'application/json', accept: 'application/json' };
|
|
7781
7678
|
const res = yield this.fetch(this.totpCurrentUserURL, { headers, method });
|
|
@@ -7791,7 +7688,7 @@
|
|
|
7791
7688
|
* @returns Status object
|
|
7792
7689
|
*/
|
|
7793
7690
|
totpRevokeSecret(user) {
|
|
7794
|
-
return __awaiter
|
|
7691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7795
7692
|
const url = `${this.getDetailUrl(user)}/${this.revokeTOTPSecretUrl}`;
|
|
7796
7693
|
const method = 'DELETE';
|
|
7797
7694
|
const headers = { accept: 'application/json' };
|
|
@@ -7805,7 +7702,7 @@
|
|
|
7805
7702
|
* @returns Server response and data with updated current user object.
|
|
7806
7703
|
*/
|
|
7807
7704
|
savePhoneNumber(phoneNumber) {
|
|
7808
|
-
return __awaiter
|
|
7705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7809
7706
|
const url = this.currentUserPhoneUrl;
|
|
7810
7707
|
const options = {
|
|
7811
7708
|
method: 'PUT',
|
|
@@ -7825,7 +7722,7 @@
|
|
|
7825
7722
|
* @returns Server response and data with email addresses as plain text.
|
|
7826
7723
|
*/
|
|
7827
7724
|
getNewsletterEmails() {
|
|
7828
|
-
return __awaiter
|
|
7725
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7829
7726
|
const url = this.newsletterEmailsUrl;
|
|
7830
7727
|
const options = {
|
|
7831
7728
|
method: 'GET',
|
|
@@ -7846,7 +7743,7 @@
|
|
|
7846
7743
|
* @returns Returns a result object.
|
|
7847
7744
|
*/
|
|
7848
7745
|
changeUserPassword(entityOrId, newPassword, currentUserPassword) {
|
|
7849
|
-
return __awaiter
|
|
7746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7850
7747
|
const method = 'PUT';
|
|
7851
7748
|
const headers = { 'content-type': 'application/json' };
|
|
7852
7749
|
const body = JSON.stringify({ newPassword, currentUserPassword });
|
|
@@ -7863,7 +7760,7 @@
|
|
|
7863
7760
|
* @returns Returns a result object. During this action if preferred login mode is OAI_SECURE new jwt cookie will be set.
|
|
7864
7761
|
*/
|
|
7865
7762
|
changeCurrentUserPassword(newPassword, currentUserPassword) {
|
|
7866
|
-
return __awaiter
|
|
7763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7867
7764
|
const method = 'PUT';
|
|
7868
7765
|
const headers = { 'content-type': 'application/json' };
|
|
7869
7766
|
const body = JSON.stringify({ newPassword, currentUserPassword });
|
|
@@ -7877,7 +7774,7 @@
|
|
|
7877
7774
|
* @returns Returns a result object.
|
|
7878
7775
|
*/
|
|
7879
7776
|
revokeTokens() {
|
|
7880
|
-
return __awaiter
|
|
7777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7881
7778
|
const method = 'POST';
|
|
7882
7779
|
const headers = { 'content-type': 'application/json' };
|
|
7883
7780
|
const res = yield this.fetch(this.revokeAllTokensUrl, { headers, method });
|
|
@@ -7950,15 +7847,6 @@
|
|
|
7950
7847
|
PasswordStrength["YELLOW"] = "YELLOW";
|
|
7951
7848
|
})(exports.PasswordStrength || (exports.PasswordStrength = {}));
|
|
7952
7849
|
|
|
7953
|
-
var __awaiter$h = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7954
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7955
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7956
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7957
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7958
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7959
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7960
|
-
});
|
|
7961
|
-
};
|
|
7962
7850
|
class ApplicationBinaryService extends Service {
|
|
7963
7851
|
constructor(client, applicationOrId) {
|
|
7964
7852
|
super(client);
|
|
@@ -7967,7 +7855,7 @@
|
|
|
7967
7855
|
this.baseUrl = `application/applications/${this.getIdString(applicationOrId)}`;
|
|
7968
7856
|
}
|
|
7969
7857
|
upload(binary, fileName, uploadParamsOverride) {
|
|
7970
|
-
return __awaiter
|
|
7858
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7971
7859
|
const url = (uploadParamsOverride === null || uploadParamsOverride === void 0 ? void 0 : uploadParamsOverride.listUrl) || this.listUrl;
|
|
7972
7860
|
const method = 'POST';
|
|
7973
7861
|
const body = this.createBinaryRequestBody(binary, fileName, uploadParamsOverride);
|
|
@@ -8027,7 +7915,7 @@
|
|
|
8027
7915
|
const _super = Object.create(null, {
|
|
8028
7916
|
list: { get: () => super.list }
|
|
8029
7917
|
});
|
|
8030
|
-
return __awaiter
|
|
7918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8031
7919
|
return _super.list.call(this, filter);
|
|
8032
7920
|
});
|
|
8033
7921
|
}
|
|
@@ -8035,12 +7923,12 @@
|
|
|
8035
7923
|
const _super = Object.create(null, {
|
|
8036
7924
|
delete: { get: () => super.delete }
|
|
8037
7925
|
});
|
|
8038
|
-
return __awaiter
|
|
7926
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8039
7927
|
return _super.delete.call(this, binaryOrId);
|
|
8040
7928
|
});
|
|
8041
7929
|
}
|
|
8042
7930
|
listPlugins() {
|
|
8043
|
-
return __awaiter
|
|
7931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8044
7932
|
const headers = { accept: 'application/json' };
|
|
8045
7933
|
const url = `${this.listUrl}/plugins`;
|
|
8046
7934
|
const res = yield this.fetch(url, { headers });
|
|
@@ -8049,7 +7937,7 @@
|
|
|
8049
7937
|
});
|
|
8050
7938
|
}
|
|
8051
7939
|
addPlugin(pluginName, pluginFile) {
|
|
8052
|
-
return __awaiter
|
|
7940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8053
7941
|
const url = `${this.listUrl}/plugins/${encodeURIComponent(pluginName)}`;
|
|
8054
7942
|
const method = 'POST';
|
|
8055
7943
|
const body = new browser();
|
|
@@ -8064,7 +7952,7 @@
|
|
|
8064
7952
|
});
|
|
8065
7953
|
}
|
|
8066
7954
|
removePlugin(pluginName) {
|
|
8067
|
-
return __awaiter
|
|
7955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8068
7956
|
const method = 'DELETE';
|
|
8069
7957
|
const headers = { accept: 'application/json' };
|
|
8070
7958
|
const url = `${this.listUrl}/plugins/${pluginName}`;
|
|
@@ -8074,7 +7962,7 @@
|
|
|
8074
7962
|
});
|
|
8075
7963
|
}
|
|
8076
7964
|
updateFiles(files) {
|
|
8077
|
-
return __awaiter
|
|
7965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8078
7966
|
const url = `${this.listUrl}/files`;
|
|
8079
7967
|
const method = 'POST';
|
|
8080
7968
|
const body = new browser();
|
|
@@ -8091,7 +7979,7 @@
|
|
|
8091
7979
|
});
|
|
8092
7980
|
}
|
|
8093
7981
|
downloadArchive(binaryId) {
|
|
8094
|
-
return __awaiter
|
|
7982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8095
7983
|
const url = `${this.listUrl}/${binaryId}`;
|
|
8096
7984
|
return yield this.fetch(url);
|
|
8097
7985
|
});
|
|
@@ -8124,15 +8012,6 @@
|
|
|
8124
8012
|
ApplicationType["FEATURE"] = "FEATURE";
|
|
8125
8013
|
})(exports.ApplicationType || (exports.ApplicationType = {}));
|
|
8126
8014
|
|
|
8127
|
-
var __awaiter$g = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8128
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8129
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8130
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8131
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8132
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8133
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8134
|
-
});
|
|
8135
|
-
};
|
|
8136
8015
|
class ApplicationService extends Service {
|
|
8137
8016
|
constructor() {
|
|
8138
8017
|
super(...arguments);
|
|
@@ -8166,7 +8045,7 @@
|
|
|
8166
8045
|
const _super = Object.create(null, {
|
|
8167
8046
|
create: { get: () => super.create }
|
|
8168
8047
|
});
|
|
8169
|
-
return __awaiter
|
|
8048
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8170
8049
|
return _super.create.call(this, entity);
|
|
8171
8050
|
});
|
|
8172
8051
|
}
|
|
@@ -8178,7 +8057,7 @@
|
|
|
8178
8057
|
* @returns The application entity.
|
|
8179
8058
|
*/
|
|
8180
8059
|
clone(entity, version) {
|
|
8181
|
-
return __awaiter
|
|
8060
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8182
8061
|
const url = `${this.getDetailUrl(entity)}/clone`;
|
|
8183
8062
|
const method = 'POST';
|
|
8184
8063
|
const body = '';
|
|
@@ -8216,7 +8095,7 @@
|
|
|
8216
8095
|
const _super = Object.create(null, {
|
|
8217
8096
|
list: { get: () => super.list }
|
|
8218
8097
|
});
|
|
8219
|
-
return __awaiter
|
|
8098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8220
8099
|
return _super.list.call(this, filter);
|
|
8221
8100
|
});
|
|
8222
8101
|
}
|
|
@@ -8241,7 +8120,7 @@
|
|
|
8241
8120
|
*/
|
|
8242
8121
|
listVersions(entityOrId, params = {}) {
|
|
8243
8122
|
var _a;
|
|
8244
|
-
return __awaiter
|
|
8123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8245
8124
|
const id = this.getEntityId(entityOrId);
|
|
8246
8125
|
const url = `${this.listUrl}/${id}/versions`;
|
|
8247
8126
|
const headers = { 'content-type': 'application/json' };
|
|
@@ -8280,7 +8159,7 @@
|
|
|
8280
8159
|
const _super = Object.create(null, {
|
|
8281
8160
|
detail: { get: () => super.detail }
|
|
8282
8161
|
});
|
|
8283
|
-
return __awaiter
|
|
8162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8284
8163
|
return _super.detail.call(this, entityOrId);
|
|
8285
8164
|
});
|
|
8286
8165
|
}
|
|
@@ -8309,7 +8188,7 @@
|
|
|
8309
8188
|
const _super = Object.create(null, {
|
|
8310
8189
|
update: { get: () => super.update }
|
|
8311
8190
|
});
|
|
8312
|
-
return __awaiter
|
|
8191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8313
8192
|
return _super.update.call(this, entity);
|
|
8314
8193
|
});
|
|
8315
8194
|
}
|
|
@@ -8337,12 +8216,12 @@
|
|
|
8337
8216
|
const _super = Object.create(null, {
|
|
8338
8217
|
delete: { get: () => super.delete }
|
|
8339
8218
|
});
|
|
8340
|
-
return __awaiter
|
|
8219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8341
8220
|
return _super.delete.call(this, entityOrId);
|
|
8342
8221
|
});
|
|
8343
8222
|
}
|
|
8344
8223
|
listByName(name) {
|
|
8345
|
-
return __awaiter
|
|
8224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8346
8225
|
const headers = { 'content-type': 'application/json' };
|
|
8347
8226
|
const url = `applicationsByName/${encodeURIComponent(name)}`;
|
|
8348
8227
|
const res = yield this.fetch(url, { headers });
|
|
@@ -8352,7 +8231,7 @@
|
|
|
8352
8231
|
});
|
|
8353
8232
|
}
|
|
8354
8233
|
listByTenant(tenantOrName, params = {}) {
|
|
8355
|
-
return __awaiter
|
|
8234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8356
8235
|
const headers = { 'content-type': 'application/json' };
|
|
8357
8236
|
const tenantService = new TenantService(this.client);
|
|
8358
8237
|
const tenantName = this.getIdString(tenantOrName || (yield tenantService.current()).data.name);
|
|
@@ -8364,7 +8243,7 @@
|
|
|
8364
8243
|
});
|
|
8365
8244
|
}
|
|
8366
8245
|
listByOwner(tenantOrName, params = {}) {
|
|
8367
|
-
return __awaiter
|
|
8246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8368
8247
|
const headers = { 'content-type': 'application/json' };
|
|
8369
8248
|
const tenantService = new TenantService(this.client);
|
|
8370
8249
|
const tenantName = this.getIdString(tenantOrName || (yield tenantService.current()).data.name);
|
|
@@ -8376,7 +8255,7 @@
|
|
|
8376
8255
|
});
|
|
8377
8256
|
}
|
|
8378
8257
|
listByUser(userOrId, params = {}) {
|
|
8379
|
-
return __awaiter
|
|
8258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8380
8259
|
const headers = { 'content-type': 'application/json' };
|
|
8381
8260
|
const userService = new UserService(this.client);
|
|
8382
8261
|
const userId = this.getIdString(userOrId || (yield userService.current()).data);
|
|
@@ -8388,7 +8267,7 @@
|
|
|
8388
8267
|
});
|
|
8389
8268
|
}
|
|
8390
8269
|
reactivateArchive(appId) {
|
|
8391
|
-
return __awaiter
|
|
8270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8392
8271
|
const url = `${this.listUrl}/${appId}/refresh`;
|
|
8393
8272
|
const method = 'POST';
|
|
8394
8273
|
const body = '';
|
|
@@ -8427,7 +8306,7 @@
|
|
|
8427
8306
|
* ```
|
|
8428
8307
|
*/
|
|
8429
8308
|
isAvailable(application) {
|
|
8430
|
-
return __awaiter
|
|
8309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8431
8310
|
const { res, data } = yield this.listByUser(undefined, {
|
|
8432
8311
|
dropOverwrittenApps: true,
|
|
8433
8312
|
noPaging: true
|
|
@@ -8456,7 +8335,7 @@
|
|
|
8456
8335
|
* ```
|
|
8457
8336
|
*/
|
|
8458
8337
|
getStatusDetails(entityOrId) {
|
|
8459
|
-
return __awaiter
|
|
8338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8460
8339
|
const appId = this.getEntityId(entityOrId);
|
|
8461
8340
|
const inventory = new InventoryService(this.client, this.realtime);
|
|
8462
8341
|
return inventory.list({ type: `c8y_Application_${appId}` });
|
|
@@ -8510,7 +8389,7 @@
|
|
|
8510
8389
|
* ```
|
|
8511
8390
|
*/
|
|
8512
8391
|
getInstanceLog(entityOrId, instanceName, params) {
|
|
8513
|
-
return __awaiter
|
|
8392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8514
8393
|
const url = `${this.getDetailUrl(entityOrId)}/logs/${instanceName}`;
|
|
8515
8394
|
const headers = { accept: this.mimeType('applicationLogs') };
|
|
8516
8395
|
const res = yield this.fetch(url, { headers, params });
|
|
@@ -8530,7 +8409,7 @@
|
|
|
8530
8409
|
*/
|
|
8531
8410
|
updateApplicationConfig(entityOrId, config) {
|
|
8532
8411
|
var _a;
|
|
8533
|
-
return __awaiter
|
|
8412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8534
8413
|
const id = this.getEntityId(entityOrId);
|
|
8535
8414
|
const { data: app } = yield this.detail(id);
|
|
8536
8415
|
const currentConfig = (app === null || app === void 0 ? void 0 : app.config) || {};
|
|
@@ -8552,7 +8431,7 @@
|
|
|
8552
8431
|
* @returns Application manifest object.
|
|
8553
8432
|
*/
|
|
8554
8433
|
getAppManifest(app, version) {
|
|
8555
|
-
return __awaiter
|
|
8434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8556
8435
|
const date = new Date();
|
|
8557
8436
|
let result;
|
|
8558
8437
|
if (!version) {
|
|
@@ -8578,7 +8457,7 @@
|
|
|
8578
8457
|
* @returns Application manifest object.
|
|
8579
8458
|
*/
|
|
8580
8459
|
storeAppManifest(entityOrId, manifestJSON) {
|
|
8581
|
-
return __awaiter
|
|
8460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8582
8461
|
return yield this.binary(entityOrId).updateFiles([
|
|
8583
8462
|
{ path: 'cumulocity.json', contents: JSON.stringify(manifestJSON) }
|
|
8584
8463
|
]);
|
|
@@ -8596,7 +8475,7 @@
|
|
|
8596
8475
|
* @returns Application version object.
|
|
8597
8476
|
*/
|
|
8598
8477
|
setPackageVersionTag(app, version, tags) {
|
|
8599
|
-
return __awaiter
|
|
8478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8600
8479
|
const url = `${this.getDetailUrl(app)}/versions/${version}`;
|
|
8601
8480
|
const method = 'PUT';
|
|
8602
8481
|
const body = JSON.stringify({ tags });
|
|
@@ -8614,7 +8493,7 @@
|
|
|
8614
8493
|
* @param contextPath
|
|
8615
8494
|
*/
|
|
8616
8495
|
getManifestOfContextPath(contextPath) {
|
|
8617
|
-
return __awaiter
|
|
8496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8618
8497
|
const url = `${this.getDetailUrl(contextPath)}/manifest`;
|
|
8619
8498
|
const res = yield this.fetch(url);
|
|
8620
8499
|
const { application } = yield res.json();
|
|
@@ -8643,7 +8522,7 @@
|
|
|
8643
8522
|
* ```
|
|
8644
8523
|
*/
|
|
8645
8524
|
deleteVersionPackage(app, params) {
|
|
8646
|
-
return __awaiter
|
|
8525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8647
8526
|
const url = `${this.getDetailUrl(app)}/versions/`;
|
|
8648
8527
|
const method = 'DELETE';
|
|
8649
8528
|
const res = yield this.fetch(url, this.changeFetchOptions({ method, params }, url));
|
|
@@ -8660,7 +8539,7 @@
|
|
|
8660
8539
|
* @returns Updated application.
|
|
8661
8540
|
*/
|
|
8662
8541
|
updateApplicationAvailability(entityOrId, availability) {
|
|
8663
|
-
return __awaiter
|
|
8542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8664
8543
|
const id = this.getEntityId(entityOrId);
|
|
8665
8544
|
return yield this.update({
|
|
8666
8545
|
id,
|
|
@@ -8713,15 +8592,6 @@
|
|
|
8713
8592
|
ApplicationAvailability[ApplicationAvailability["SHARED"] = gettext('SHARED')] = "SHARED";
|
|
8714
8593
|
})(exports.ApplicationAvailability || (exports.ApplicationAvailability = {}));
|
|
8715
8594
|
|
|
8716
|
-
var __awaiter$f = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8717
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8718
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8719
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8720
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8721
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8722
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8723
|
-
});
|
|
8724
|
-
};
|
|
8725
8595
|
class SystemOptionsService extends Service {
|
|
8726
8596
|
constructor() {
|
|
8727
8597
|
super(...arguments);
|
|
@@ -8753,7 +8623,7 @@
|
|
|
8753
8623
|
const _super = Object.create(null, {
|
|
8754
8624
|
detail: { get: () => super.detail }
|
|
8755
8625
|
});
|
|
8756
|
-
return __awaiter
|
|
8626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8757
8627
|
return _super.detail.call(this, option);
|
|
8758
8628
|
});
|
|
8759
8629
|
}
|
|
@@ -8778,7 +8648,7 @@
|
|
|
8778
8648
|
* ```
|
|
8779
8649
|
*/
|
|
8780
8650
|
list(filter = {}) {
|
|
8781
|
-
return __awaiter
|
|
8651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8782
8652
|
const headers = { 'content-type': 'application/json' };
|
|
8783
8653
|
const url = this.listUrl;
|
|
8784
8654
|
const res = yield this.fetch(url, { headers, params: filter });
|
|
@@ -8795,15 +8665,6 @@
|
|
|
8795
8665
|
}
|
|
8796
8666
|
}
|
|
8797
8667
|
|
|
8798
|
-
var __awaiter$e = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8799
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8800
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8801
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8802
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8803
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8804
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8805
|
-
});
|
|
8806
|
-
};
|
|
8807
8668
|
/**
|
|
8808
8669
|
* @description
|
|
8809
8670
|
* This service allows for managing tenant's options.
|
|
@@ -8848,7 +8709,7 @@
|
|
|
8848
8709
|
const _super = Object.create(null, {
|
|
8849
8710
|
detail: { get: () => super.detail }
|
|
8850
8711
|
});
|
|
8851
|
-
return __awaiter
|
|
8712
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8852
8713
|
return _super.detail.call(this, entity, params);
|
|
8853
8714
|
});
|
|
8854
8715
|
}
|
|
@@ -8886,7 +8747,7 @@
|
|
|
8886
8747
|
const _super = Object.create(null, {
|
|
8887
8748
|
create: { get: () => super.create }
|
|
8888
8749
|
});
|
|
8889
|
-
return __awaiter
|
|
8750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8890
8751
|
return _super.create.call(this, entity);
|
|
8891
8752
|
});
|
|
8892
8753
|
}
|
|
@@ -8916,7 +8777,7 @@
|
|
|
8916
8777
|
const _super = Object.create(null, {
|
|
8917
8778
|
update: { get: () => super.update }
|
|
8918
8779
|
});
|
|
8919
|
-
return __awaiter
|
|
8780
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8920
8781
|
return _super.update.call(this, entity);
|
|
8921
8782
|
});
|
|
8922
8783
|
}
|
|
@@ -8948,7 +8809,7 @@
|
|
|
8948
8809
|
const _super = Object.create(null, {
|
|
8949
8810
|
list: { get: () => super.list }
|
|
8950
8811
|
});
|
|
8951
|
-
return __awaiter
|
|
8812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8952
8813
|
return _super.list.call(this, filter);
|
|
8953
8814
|
});
|
|
8954
8815
|
}
|
|
@@ -8975,7 +8836,7 @@
|
|
|
8975
8836
|
const _super = Object.create(null, {
|
|
8976
8837
|
delete: { get: () => super.delete }
|
|
8977
8838
|
});
|
|
8978
|
-
return __awaiter
|
|
8839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8979
8840
|
return _super.delete.call(this, entityOrId);
|
|
8980
8841
|
});
|
|
8981
8842
|
}
|
|
@@ -8994,15 +8855,6 @@
|
|
|
8994
8855
|
}
|
|
8995
8856
|
}
|
|
8996
8857
|
|
|
8997
|
-
var __awaiter$d = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8998
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8999
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9000
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9001
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9002
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9003
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9004
|
-
});
|
|
9005
|
-
};
|
|
9006
8858
|
/**
|
|
9007
8859
|
* @description
|
|
9008
8860
|
* This service allows to get tenant security option.
|
|
@@ -9038,7 +8890,7 @@
|
|
|
9038
8890
|
const _super = Object.create(null, {
|
|
9039
8891
|
detail: { get: () => super.detail }
|
|
9040
8892
|
});
|
|
9041
|
-
return __awaiter
|
|
8893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9042
8894
|
return _super.detail.call(this, tenantSecurityOption);
|
|
9043
8895
|
});
|
|
9044
8896
|
}
|
|
@@ -9050,15 +8902,6 @@
|
|
|
9050
8902
|
}
|
|
9051
8903
|
}
|
|
9052
8904
|
|
|
9053
|
-
var __awaiter$c = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9054
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9055
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9056
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9057
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9058
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9059
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9060
|
-
});
|
|
9061
|
-
};
|
|
9062
8905
|
/**
|
|
9063
8906
|
* @description
|
|
9064
8907
|
* This service allows to get tenant login options.
|
|
@@ -9091,7 +8934,7 @@
|
|
|
9091
8934
|
const _super = Object.create(null, {
|
|
9092
8935
|
detail: { get: () => super.detail }
|
|
9093
8936
|
});
|
|
9094
|
-
return __awaiter
|
|
8937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9095
8938
|
return _super.detail.call(this, entityIdentityOrId);
|
|
9096
8939
|
});
|
|
9097
8940
|
}
|
|
@@ -9118,7 +8961,7 @@
|
|
|
9118
8961
|
const _super = Object.create(null, {
|
|
9119
8962
|
list: { get: () => super.list }
|
|
9120
8963
|
});
|
|
9121
|
-
return __awaiter
|
|
8964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9122
8965
|
return _super.list.call(this, filter);
|
|
9123
8966
|
});
|
|
9124
8967
|
}
|
|
@@ -9139,7 +8982,7 @@
|
|
|
9139
8982
|
const _super = Object.create(null, {
|
|
9140
8983
|
list: { get: () => super.list }
|
|
9141
8984
|
});
|
|
9142
|
-
return __awaiter
|
|
8985
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9143
8986
|
return _super.list.call(this, { tenantId: this.client.tenant });
|
|
9144
8987
|
});
|
|
9145
8988
|
}
|
|
@@ -9160,7 +9003,7 @@
|
|
|
9160
9003
|
const _super = Object.create(null, {
|
|
9161
9004
|
list: { get: () => super.list }
|
|
9162
9005
|
});
|
|
9163
|
-
return __awaiter
|
|
9006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9164
9007
|
return _super.list.call(this, { management: true });
|
|
9165
9008
|
});
|
|
9166
9009
|
}
|
|
@@ -9191,7 +9034,7 @@
|
|
|
9191
9034
|
const _super = Object.create(null, {
|
|
9192
9035
|
create: { get: () => super.create }
|
|
9193
9036
|
});
|
|
9194
|
-
return __awaiter
|
|
9037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9195
9038
|
return _super.create.call(this, entity);
|
|
9196
9039
|
});
|
|
9197
9040
|
}
|
|
@@ -9223,7 +9066,7 @@
|
|
|
9223
9066
|
const _super = Object.create(null, {
|
|
9224
9067
|
update: { get: () => super.update }
|
|
9225
9068
|
});
|
|
9226
|
-
return __awaiter
|
|
9069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9227
9070
|
return _super.update.call(this, entity);
|
|
9228
9071
|
});
|
|
9229
9072
|
}
|
|
@@ -9252,7 +9095,7 @@
|
|
|
9252
9095
|
* ```
|
|
9253
9096
|
*/
|
|
9254
9097
|
save(entity) {
|
|
9255
|
-
return __awaiter
|
|
9098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9256
9099
|
return entity.id ? this.update(entity) : this.create(entity);
|
|
9257
9100
|
});
|
|
9258
9101
|
}
|
|
@@ -9277,7 +9120,7 @@
|
|
|
9277
9120
|
const _super = Object.create(null, {
|
|
9278
9121
|
delete: { get: () => super.delete }
|
|
9279
9122
|
});
|
|
9280
|
-
return __awaiter
|
|
9123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9281
9124
|
return _super.delete.call(this, entityOrId);
|
|
9282
9125
|
});
|
|
9283
9126
|
}
|
|
@@ -9309,15 +9152,6 @@
|
|
|
9309
9152
|
UserManagementSource["INTERNAL"] = "INTERNAL";
|
|
9310
9153
|
})(exports.UserManagementSource || (exports.UserManagementSource = {}));
|
|
9311
9154
|
|
|
9312
|
-
var __awaiter$b = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9313
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9314
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9315
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9316
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9317
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9318
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9319
|
-
});
|
|
9320
|
-
};
|
|
9321
9155
|
class AuditService extends Service {
|
|
9322
9156
|
constructor() {
|
|
9323
9157
|
super(...arguments);
|
|
@@ -9346,7 +9180,7 @@
|
|
|
9346
9180
|
const _super = Object.create(null, {
|
|
9347
9181
|
detail: { get: () => super.detail }
|
|
9348
9182
|
});
|
|
9349
|
-
return __awaiter
|
|
9183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9350
9184
|
return _super.detail.call(this, entityOrId);
|
|
9351
9185
|
});
|
|
9352
9186
|
}
|
|
@@ -9377,7 +9211,7 @@
|
|
|
9377
9211
|
const _super = Object.create(null, {
|
|
9378
9212
|
create: { get: () => super.create }
|
|
9379
9213
|
});
|
|
9380
|
-
return __awaiter
|
|
9214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9381
9215
|
return _super.create.call(this, entity);
|
|
9382
9216
|
});
|
|
9383
9217
|
}
|
|
@@ -9406,7 +9240,7 @@
|
|
|
9406
9240
|
const _super = Object.create(null, {
|
|
9407
9241
|
list: { get: () => super.list }
|
|
9408
9242
|
});
|
|
9409
|
-
return __awaiter
|
|
9243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9410
9244
|
return _super.list.call(this, filter);
|
|
9411
9245
|
});
|
|
9412
9246
|
}
|
|
@@ -9442,15 +9276,6 @@
|
|
|
9442
9276
|
ChangeType[ChangeType["REMOVED"] = gettext('REMOVED')] = "REMOVED";
|
|
9443
9277
|
})(exports.ChangeType || (exports.ChangeType = {}));
|
|
9444
9278
|
|
|
9445
|
-
var __awaiter$a = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9446
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9447
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9448
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9449
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9450
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9451
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9452
|
-
});
|
|
9453
|
-
};
|
|
9454
9279
|
class InventoryRoleService extends Service {
|
|
9455
9280
|
constructor() {
|
|
9456
9281
|
super(...arguments);
|
|
@@ -9479,7 +9304,7 @@
|
|
|
9479
9304
|
const _super = Object.create(null, {
|
|
9480
9305
|
detail: { get: () => super.detail }
|
|
9481
9306
|
});
|
|
9482
|
-
return __awaiter
|
|
9307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9483
9308
|
return _super.detail.call(this, entityOrId);
|
|
9484
9309
|
});
|
|
9485
9310
|
}
|
|
@@ -9506,7 +9331,7 @@
|
|
|
9506
9331
|
const _super = Object.create(null, {
|
|
9507
9332
|
create: { get: () => super.create }
|
|
9508
9333
|
});
|
|
9509
|
-
return __awaiter
|
|
9334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9510
9335
|
return _super.create.call(this, entity);
|
|
9511
9336
|
});
|
|
9512
9337
|
}
|
|
@@ -9534,7 +9359,7 @@
|
|
|
9534
9359
|
const _super = Object.create(null, {
|
|
9535
9360
|
update: { get: () => super.update }
|
|
9536
9361
|
});
|
|
9537
|
-
return __awaiter
|
|
9362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9538
9363
|
return _super.update.call(this, entity);
|
|
9539
9364
|
});
|
|
9540
9365
|
}
|
|
@@ -9562,7 +9387,7 @@
|
|
|
9562
9387
|
const _super = Object.create(null, {
|
|
9563
9388
|
list: { get: () => super.list }
|
|
9564
9389
|
});
|
|
9565
|
-
return __awaiter
|
|
9390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9566
9391
|
return _super.list.call(this, filter);
|
|
9567
9392
|
});
|
|
9568
9393
|
}
|
|
@@ -9587,7 +9412,7 @@
|
|
|
9587
9412
|
const _super = Object.create(null, {
|
|
9588
9413
|
delete: { get: () => super.delete }
|
|
9589
9414
|
});
|
|
9590
|
-
return __awaiter
|
|
9415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9591
9416
|
return _super.delete.call(this, entityOrId);
|
|
9592
9417
|
});
|
|
9593
9418
|
}
|
|
@@ -9604,15 +9429,6 @@
|
|
|
9604
9429
|
DeviceRegistrationStatus[DeviceRegistrationStatus["BLOCKED"] = gettext('BLOCKED')] = "BLOCKED";
|
|
9605
9430
|
})(exports.DeviceRegistrationStatus || (exports.DeviceRegistrationStatus = {}));
|
|
9606
9431
|
|
|
9607
|
-
var __awaiter$9 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9608
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9609
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9610
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9611
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9612
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9613
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9614
|
-
});
|
|
9615
|
-
};
|
|
9616
9432
|
/**
|
|
9617
9433
|
* This class allows registration of a new device.
|
|
9618
9434
|
*/
|
|
@@ -9644,7 +9460,7 @@
|
|
|
9644
9460
|
const _super = Object.create(null, {
|
|
9645
9461
|
detail: { get: () => super.detail }
|
|
9646
9462
|
});
|
|
9647
|
-
return __awaiter
|
|
9463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9648
9464
|
return _super.detail.call(this, entityOrId);
|
|
9649
9465
|
});
|
|
9650
9466
|
}
|
|
@@ -9671,7 +9487,7 @@
|
|
|
9671
9487
|
const _super = Object.create(null, {
|
|
9672
9488
|
create: { get: () => super.create }
|
|
9673
9489
|
});
|
|
9674
|
-
return __awaiter
|
|
9490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9675
9491
|
return _super.create.call(this, entity);
|
|
9676
9492
|
});
|
|
9677
9493
|
}
|
|
@@ -9699,7 +9515,7 @@
|
|
|
9699
9515
|
const _super = Object.create(null, {
|
|
9700
9516
|
list: { get: () => super.list }
|
|
9701
9517
|
});
|
|
9702
|
-
return __awaiter
|
|
9518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9703
9519
|
return _super.list.call(this, filter);
|
|
9704
9520
|
});
|
|
9705
9521
|
}
|
|
@@ -9725,7 +9541,7 @@
|
|
|
9725
9541
|
const _super = Object.create(null, {
|
|
9726
9542
|
delete: { get: () => super.delete }
|
|
9727
9543
|
});
|
|
9728
|
-
return __awaiter
|
|
9544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9729
9545
|
return _super.delete.call(this, entityOrId);
|
|
9730
9546
|
});
|
|
9731
9547
|
}
|
|
@@ -9750,7 +9566,7 @@
|
|
|
9750
9566
|
const _super = Object.create(null, {
|
|
9751
9567
|
update: { get: () => super.update }
|
|
9752
9568
|
});
|
|
9753
|
-
return __awaiter
|
|
9569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9754
9570
|
const securityToken = this.getSecurityToken(entityOrId);
|
|
9755
9571
|
let payload = {
|
|
9756
9572
|
id: this.getIdString(entityOrId),
|
|
@@ -9779,7 +9595,7 @@
|
|
|
9779
9595
|
const _super = Object.create(null, {
|
|
9780
9596
|
fetch: { get: () => super.fetch }
|
|
9781
9597
|
});
|
|
9782
|
-
return __awaiter
|
|
9598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9783
9599
|
const res = yield _super.fetch.call(this, `${this.listUrl}/acceptAll`, { method: 'POST' });
|
|
9784
9600
|
const data = (yield res.json());
|
|
9785
9601
|
return { res, data };
|
|
@@ -9802,7 +9618,7 @@
|
|
|
9802
9618
|
const _super = Object.create(null, {
|
|
9803
9619
|
fetch: { get: () => super.fetch }
|
|
9804
9620
|
});
|
|
9805
|
-
return __awaiter
|
|
9621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9806
9622
|
const res = yield _super.fetch.call(this, `${this.listUrl}/limit`);
|
|
9807
9623
|
const data = (yield res.json());
|
|
9808
9624
|
return { res, data };
|
|
@@ -9832,7 +9648,7 @@
|
|
|
9832
9648
|
* ```
|
|
9833
9649
|
*/
|
|
9834
9650
|
bootstrap(entityOrId, options) {
|
|
9835
|
-
return __awaiter
|
|
9651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9836
9652
|
const id = this.getIdString(entityOrId);
|
|
9837
9653
|
const securityToken = this.getSecurityToken(entityOrId);
|
|
9838
9654
|
const body = securityToken ? JSON.stringify({ id, securityToken }) : JSON.stringify({ id });
|
|
@@ -9878,15 +9694,6 @@
|
|
|
9878
9694
|
}
|
|
9879
9695
|
}
|
|
9880
9696
|
|
|
9881
|
-
var __awaiter$8 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9882
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9883
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9884
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9885
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9886
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9887
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9888
|
-
});
|
|
9889
|
-
};
|
|
9890
9697
|
/**
|
|
9891
9698
|
* This class allows for bulk registering devices.
|
|
9892
9699
|
*/
|
|
@@ -9922,7 +9729,7 @@
|
|
|
9922
9729
|
* ```
|
|
9923
9730
|
*/
|
|
9924
9731
|
create(inputFile) {
|
|
9925
|
-
return __awaiter
|
|
9732
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9926
9733
|
let csv = inputFile;
|
|
9927
9734
|
const url = '/devicecontrol/bulkNewDeviceRequests';
|
|
9928
9735
|
const method = 'POST';
|
|
@@ -9956,15 +9763,6 @@
|
|
|
9956
9763
|
DeviceRegistrationSecurityMode["IGNORED"] = "IGNORED";
|
|
9957
9764
|
})(exports.DeviceRegistrationSecurityMode || (exports.DeviceRegistrationSecurityMode = {}));
|
|
9958
9765
|
|
|
9959
|
-
var __awaiter$7 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9960
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9961
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9962
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9963
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9964
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9965
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9966
|
-
});
|
|
9967
|
-
};
|
|
9968
9766
|
/**
|
|
9969
9767
|
* @description
|
|
9970
9768
|
* This service allows for fetch user roles.
|
|
@@ -9997,7 +9795,7 @@
|
|
|
9997
9795
|
const _super = Object.create(null, {
|
|
9998
9796
|
detail: { get: () => super.detail }
|
|
9999
9797
|
});
|
|
10000
|
-
return __awaiter
|
|
9798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10001
9799
|
return _super.detail.call(this, entityOrId);
|
|
10002
9800
|
});
|
|
10003
9801
|
}
|
|
@@ -10026,21 +9824,12 @@
|
|
|
10026
9824
|
const _super = Object.create(null, {
|
|
10027
9825
|
list: { get: () => super.list }
|
|
10028
9826
|
});
|
|
10029
|
-
return __awaiter
|
|
9827
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10030
9828
|
return _super.list.call(this, filter);
|
|
10031
9829
|
});
|
|
10032
9830
|
}
|
|
10033
9831
|
}
|
|
10034
9832
|
|
|
10035
|
-
var __awaiter$6 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10036
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10037
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10038
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10039
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10040
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10041
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10042
|
-
});
|
|
10043
|
-
};
|
|
10044
9833
|
var ChildType;
|
|
10045
9834
|
(function (ChildType) {
|
|
10046
9835
|
ChildType["ROLES"] = "roles";
|
|
@@ -10080,7 +9869,7 @@
|
|
|
10080
9869
|
const _super = Object.create(null, {
|
|
10081
9870
|
detail: { get: () => super.detail }
|
|
10082
9871
|
});
|
|
10083
|
-
return __awaiter
|
|
9872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10084
9873
|
return _super.detail.call(this, entityOrId);
|
|
10085
9874
|
});
|
|
10086
9875
|
}
|
|
@@ -10108,7 +9897,7 @@
|
|
|
10108
9897
|
const _super = Object.create(null, {
|
|
10109
9898
|
create: { get: () => super.create }
|
|
10110
9899
|
});
|
|
10111
|
-
return __awaiter
|
|
9900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10112
9901
|
return _super.create.call(this, entity);
|
|
10113
9902
|
});
|
|
10114
9903
|
}
|
|
@@ -10138,7 +9927,7 @@
|
|
|
10138
9927
|
const _super = Object.create(null, {
|
|
10139
9928
|
update: { get: () => super.update }
|
|
10140
9929
|
});
|
|
10141
|
-
return __awaiter
|
|
9930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10142
9931
|
return _super.update.call(this, entity);
|
|
10143
9932
|
});
|
|
10144
9933
|
}
|
|
@@ -10167,7 +9956,7 @@
|
|
|
10167
9956
|
const _super = Object.create(null, {
|
|
10168
9957
|
list: { get: () => super.list }
|
|
10169
9958
|
});
|
|
10170
|
-
return __awaiter
|
|
9959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10171
9960
|
return _super.list.call(this, filter);
|
|
10172
9961
|
});
|
|
10173
9962
|
}
|
|
@@ -10196,7 +9985,7 @@
|
|
|
10196
9985
|
const _super = Object.create(null, {
|
|
10197
9986
|
delete: { get: () => super.delete }
|
|
10198
9987
|
});
|
|
10199
|
-
return __awaiter
|
|
9988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10200
9989
|
return _super.delete.call(this, entityOrId);
|
|
10201
9990
|
});
|
|
10202
9991
|
}
|
|
@@ -10221,7 +10010,7 @@
|
|
|
10221
10010
|
* When role is assigned to user, suitable audit record is created with type 'User' and activity 'User updated'.
|
|
10222
10011
|
*/
|
|
10223
10012
|
addRoleToGroup(entityOrId, childEntityOrSelf) {
|
|
10224
|
-
return __awaiter
|
|
10013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10225
10014
|
return this.addChild(ChildType.ROLES, entityOrId, childEntityOrSelf);
|
|
10226
10015
|
});
|
|
10227
10016
|
}
|
|
@@ -10245,7 +10034,7 @@
|
|
|
10245
10034
|
* ```
|
|
10246
10035
|
*/
|
|
10247
10036
|
removeRoleFromGroup(entityOrId, childEntityOrSelf) {
|
|
10248
|
-
return __awaiter
|
|
10037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10249
10038
|
return this.removeChild(ChildType.ROLES, entityOrId, childEntityOrSelf);
|
|
10250
10039
|
});
|
|
10251
10040
|
}
|
|
@@ -10270,7 +10059,7 @@
|
|
|
10270
10059
|
* When user is added to group, suitable audit record is created with type 'User' and activity 'User updated'.
|
|
10271
10060
|
*/
|
|
10272
10061
|
addUserToGroup(entityOrId, childEntityOrSelf) {
|
|
10273
|
-
return __awaiter
|
|
10062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10274
10063
|
return this.addChild(ChildType.USERS, entityOrId, childEntityOrSelf);
|
|
10275
10064
|
});
|
|
10276
10065
|
}
|
|
@@ -10295,7 +10084,7 @@
|
|
|
10295
10084
|
* When user is removed from group, suitable audit record is created with type 'User' and activity 'User updated'.
|
|
10296
10085
|
*/
|
|
10297
10086
|
removeUserFromGroup(entityOrId, childEntityOrSelf) {
|
|
10298
|
-
return __awaiter
|
|
10087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10299
10088
|
return this.removeChild(ChildType.USERS, entityOrId, childEntityOrSelf);
|
|
10300
10089
|
});
|
|
10301
10090
|
}
|
|
@@ -10321,7 +10110,7 @@
|
|
|
10321
10110
|
throw new Error('UserGroupService -> getChild -> unsupported child type');
|
|
10322
10111
|
}
|
|
10323
10112
|
addChild(type, userGroupOrId, childReference) {
|
|
10324
|
-
return __awaiter
|
|
10113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10325
10114
|
const url = this.getChildUrl(type, userGroupOrId);
|
|
10326
10115
|
const method = 'POST';
|
|
10327
10116
|
const body = this.getChildReferenceAsBody(type, childReference);
|
|
@@ -10336,7 +10125,7 @@
|
|
|
10336
10125
|
});
|
|
10337
10126
|
}
|
|
10338
10127
|
removeChild(type, userGroupOrId, childReference) {
|
|
10339
|
-
return __awaiter
|
|
10128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10340
10129
|
const childId = this.getIdString(childReference);
|
|
10341
10130
|
const url = `${this.getChildUrl(type, userGroupOrId)}/${encodeURIComponent(String(childId))}`;
|
|
10342
10131
|
const method = 'DELETE';
|
|
@@ -10348,15 +10137,6 @@
|
|
|
10348
10137
|
}
|
|
10349
10138
|
}
|
|
10350
10139
|
|
|
10351
|
-
var __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10352
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10353
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10354
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10355
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10356
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10357
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10358
|
-
});
|
|
10359
|
-
};
|
|
10360
10140
|
/**
|
|
10361
10141
|
* This class allwos for managing external identifiers.
|
|
10362
10142
|
*/
|
|
@@ -10387,7 +10167,7 @@
|
|
|
10387
10167
|
* ```
|
|
10388
10168
|
*/
|
|
10389
10169
|
list(managedObjectId) {
|
|
10390
|
-
return __awaiter
|
|
10170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10391
10171
|
const headers = { accept: 'application/json' };
|
|
10392
10172
|
const url = this.getExternalIdsOfGlobalIdUrl(managedObjectId);
|
|
10393
10173
|
const res = yield this.fetch(url, { headers });
|
|
@@ -10420,7 +10200,7 @@
|
|
|
10420
10200
|
* ```
|
|
10421
10201
|
*/
|
|
10422
10202
|
create(identity) {
|
|
10423
|
-
return __awaiter
|
|
10203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10424
10204
|
const headers = { 'content-type': 'application/json', accept: 'application/json' };
|
|
10425
10205
|
const method = 'POST';
|
|
10426
10206
|
const body = JSON.stringify(identity);
|
|
@@ -10451,7 +10231,7 @@
|
|
|
10451
10231
|
* ```
|
|
10452
10232
|
*/
|
|
10453
10233
|
detail(identity) {
|
|
10454
|
-
return __awaiter
|
|
10234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10455
10235
|
const headers = { accept: 'application/json' };
|
|
10456
10236
|
const url = this.getExternalIdUrl(identity);
|
|
10457
10237
|
const res = yield this.fetch(url, { headers });
|
|
@@ -10480,7 +10260,7 @@
|
|
|
10480
10260
|
* ```
|
|
10481
10261
|
*/
|
|
10482
10262
|
delete(identity) {
|
|
10483
|
-
return __awaiter
|
|
10263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10484
10264
|
const headers = { accept: 'application/json' };
|
|
10485
10265
|
const method = 'DELETE';
|
|
10486
10266
|
const url = this.getExternalIdUrl(identity);
|
|
@@ -10489,7 +10269,7 @@
|
|
|
10489
10269
|
});
|
|
10490
10270
|
}
|
|
10491
10271
|
fetch(url, init) {
|
|
10492
|
-
return __awaiter
|
|
10272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10493
10273
|
const res = yield this.client.fetch(url, init);
|
|
10494
10274
|
if (res.status >= 400) {
|
|
10495
10275
|
let data = null;
|
|
@@ -10517,15 +10297,6 @@
|
|
|
10517
10297
|
}
|
|
10518
10298
|
}
|
|
10519
10299
|
|
|
10520
|
-
var __awaiter$4 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10521
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10522
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10523
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10524
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10525
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10526
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10527
|
-
});
|
|
10528
|
-
};
|
|
10529
10300
|
/**
|
|
10530
10301
|
* This class allows for managing trusted certificates.
|
|
10531
10302
|
*/
|
|
@@ -10556,7 +10327,7 @@
|
|
|
10556
10327
|
const _super = Object.create(null, {
|
|
10557
10328
|
list: { get: () => super.list }
|
|
10558
10329
|
});
|
|
10559
|
-
return __awaiter
|
|
10330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10560
10331
|
return _super.list.call(this, filter);
|
|
10561
10332
|
});
|
|
10562
10333
|
}
|
|
@@ -10581,7 +10352,7 @@
|
|
|
10581
10352
|
const _super = Object.create(null, {
|
|
10582
10353
|
detail: { get: () => super.detail }
|
|
10583
10354
|
});
|
|
10584
|
-
return __awaiter
|
|
10355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10585
10356
|
return _super.detail.call(this, entityOrId);
|
|
10586
10357
|
});
|
|
10587
10358
|
}
|
|
@@ -10606,7 +10377,7 @@
|
|
|
10606
10377
|
const _super = Object.create(null, {
|
|
10607
10378
|
delete: { get: () => super.delete }
|
|
10608
10379
|
});
|
|
10609
|
-
return __awaiter
|
|
10380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10610
10381
|
return _super.delete.call(this, entityOrId);
|
|
10611
10382
|
});
|
|
10612
10383
|
}
|
|
@@ -10633,7 +10404,7 @@
|
|
|
10633
10404
|
const _super = Object.create(null, {
|
|
10634
10405
|
update: { get: () => super.update }
|
|
10635
10406
|
});
|
|
10636
|
-
return __awaiter
|
|
10407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10637
10408
|
return _super.update.call(this, entity);
|
|
10638
10409
|
});
|
|
10639
10410
|
}
|
|
@@ -10662,7 +10433,7 @@
|
|
|
10662
10433
|
const _super = Object.create(null, {
|
|
10663
10434
|
create: { get: () => super.create }
|
|
10664
10435
|
});
|
|
10665
|
-
return __awaiter
|
|
10436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10666
10437
|
return _super.create.call(this, entity);
|
|
10667
10438
|
});
|
|
10668
10439
|
}
|
|
@@ -10685,7 +10456,7 @@
|
|
|
10685
10456
|
* ```
|
|
10686
10457
|
*/
|
|
10687
10458
|
regeneratePoPVerificationCode(entityOrId) {
|
|
10688
|
-
return __awaiter
|
|
10459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10689
10460
|
const method = 'POST';
|
|
10690
10461
|
const headers = { 'content-type': 'application/json', Accept: 'application/json' };
|
|
10691
10462
|
const url = `${this.proofOfPossessionUrl}/${this.getEntityId(entityOrId)}/verification-code`;
|
|
@@ -10715,7 +10486,7 @@
|
|
|
10715
10486
|
* ```
|
|
10716
10487
|
*/
|
|
10717
10488
|
verifySignedVerificationCode(entityOrId, proofOfPossessionSignedVerificationCode) {
|
|
10718
|
-
return __awaiter
|
|
10489
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10719
10490
|
const method = 'POST';
|
|
10720
10491
|
const headers = { 'content-type': 'application/json', Accept: 'application/json' };
|
|
10721
10492
|
const url = `${this.proofOfPossessionUrl}/${this.getEntityId(entityOrId)}/pop`;
|
|
@@ -10741,15 +10512,6 @@
|
|
|
10741
10512
|
}
|
|
10742
10513
|
}
|
|
10743
10514
|
|
|
10744
|
-
var __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10745
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10746
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10747
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10748
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10749
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10750
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10751
|
-
});
|
|
10752
|
-
};
|
|
10753
10515
|
/**
|
|
10754
10516
|
* This class allows for managing a list of certificate revocations.
|
|
10755
10517
|
*/
|
|
@@ -10778,7 +10540,7 @@
|
|
|
10778
10540
|
* ```
|
|
10779
10541
|
*/
|
|
10780
10542
|
uploadCrls(crls) {
|
|
10781
|
-
return __awaiter
|
|
10543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10782
10544
|
const method = 'PUT';
|
|
10783
10545
|
const headers = { 'content-type': 'application/json', Accept: 'application/json' };
|
|
10784
10546
|
const body = JSON.stringify({ crls });
|
|
@@ -10807,7 +10569,7 @@
|
|
|
10807
10569
|
* ```
|
|
10808
10570
|
*/
|
|
10809
10571
|
uploadCrlFile(file) {
|
|
10810
|
-
return __awaiter
|
|
10572
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10811
10573
|
const method = 'PUT';
|
|
10812
10574
|
const body = new browser();
|
|
10813
10575
|
body.append('file', file);
|
|
@@ -10834,21 +10596,12 @@
|
|
|
10834
10596
|
* ```
|
|
10835
10597
|
*/
|
|
10836
10598
|
downloadCrlFile(init) {
|
|
10837
|
-
return __awaiter
|
|
10599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10838
10600
|
return yield this.fetch('', init);
|
|
10839
10601
|
});
|
|
10840
10602
|
}
|
|
10841
10603
|
}
|
|
10842
10604
|
|
|
10843
|
-
var __awaiter$2 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10844
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10845
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10846
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10847
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10848
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10849
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10850
|
-
});
|
|
10851
|
-
};
|
|
10852
10605
|
class SmartGroupsService extends Service {
|
|
10853
10606
|
constructor(client) {
|
|
10854
10607
|
super(client);
|
|
@@ -10883,7 +10636,7 @@
|
|
|
10883
10636
|
const _super = Object.create(null, {
|
|
10884
10637
|
detail: { get: () => super.detail }
|
|
10885
10638
|
});
|
|
10886
|
-
return __awaiter
|
|
10639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10887
10640
|
return _super.detail.call(this, entityOrId, filter);
|
|
10888
10641
|
});
|
|
10889
10642
|
}
|
|
@@ -10922,7 +10675,7 @@
|
|
|
10922
10675
|
const _super = Object.create(null, {
|
|
10923
10676
|
create: { get: () => super.create }
|
|
10924
10677
|
});
|
|
10925
|
-
return __awaiter
|
|
10678
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10926
10679
|
const entity = Object.assign(Object.assign(Object.assign({}, obj.smartGroup), { [this.QUERY_STRING_FRAGMENT]: obj.deviceQueryString, [this.COLUMNS_CONFIG_FRAGMENT]: obj.configurableColumns }), (obj.filterConfig && { [this.FILTER_CONFIG_FRAGMENT]: obj.filterConfig }));
|
|
10927
10680
|
return _super.create.call(this, entity);
|
|
10928
10681
|
});
|
|
@@ -10948,7 +10701,7 @@
|
|
|
10948
10701
|
const _super = Object.create(null, {
|
|
10949
10702
|
update: { get: () => super.update }
|
|
10950
10703
|
});
|
|
10951
|
-
return __awaiter
|
|
10704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10952
10705
|
return _super.update.call(this, mo);
|
|
10953
10706
|
});
|
|
10954
10707
|
}
|
|
@@ -10977,7 +10730,7 @@
|
|
|
10977
10730
|
const _super = Object.create(null, {
|
|
10978
10731
|
delete: { get: () => super.delete }
|
|
10979
10732
|
});
|
|
10980
|
-
return __awaiter
|
|
10733
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10981
10734
|
const data = (yield this.detail(entityOrId, { withChildren: false })).data;
|
|
10982
10735
|
return yield _super.delete.call(this, data, params);
|
|
10983
10736
|
});
|
|
@@ -11011,15 +10764,6 @@
|
|
|
11011
10764
|
}
|
|
11012
10765
|
}
|
|
11013
10766
|
|
|
11014
|
-
var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11015
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11016
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11017
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11018
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
11019
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11020
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11021
|
-
});
|
|
11022
|
-
};
|
|
11023
10767
|
class SmartRulesService extends Service {
|
|
11024
10768
|
constructor(client) {
|
|
11025
10769
|
super(client);
|
|
@@ -11040,7 +10784,7 @@
|
|
|
11040
10784
|
* ```
|
|
11041
10785
|
*/
|
|
11042
10786
|
isMicroserviceAvailable() {
|
|
11043
|
-
return __awaiter
|
|
10787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11044
10788
|
if (this.microserviceAvailable === undefined) {
|
|
11045
10789
|
this.microserviceAvailable = (yield this.applicationService.isAvailable(SmartRulesService.microserviceName)).data;
|
|
11046
10790
|
}
|
|
@@ -11065,7 +10809,7 @@
|
|
|
11065
10809
|
* ```
|
|
11066
10810
|
*/
|
|
11067
10811
|
listByContext(entityOrId) {
|
|
11068
|
-
return __awaiter
|
|
10812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11069
10813
|
const url = this.contextRulesUrl(entityOrId);
|
|
11070
10814
|
const res = yield this.fetch(url, { method: 'GET' });
|
|
11071
10815
|
const rules = (yield res.json()).rules;
|
|
@@ -11117,7 +10861,7 @@
|
|
|
11117
10861
|
* ```
|
|
11118
10862
|
*/
|
|
11119
10863
|
update(rule) {
|
|
11120
|
-
return __awaiter
|
|
10864
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11121
10865
|
const url = this.getSmartRulesUrl(rule);
|
|
11122
10866
|
const method = 'PUT';
|
|
11123
10867
|
const body = JSON.stringify(this.removeUnclonableFields(rule, this.unupdatableFields));
|
|
@@ -11162,15 +10906,6 @@
|
|
|
11162
10906
|
}
|
|
11163
10907
|
SmartRulesService.microserviceName = 'smartrule';
|
|
11164
10908
|
|
|
11165
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11166
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11167
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11168
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11169
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
11170
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11171
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11172
|
-
});
|
|
11173
|
-
};
|
|
11174
10909
|
class Client {
|
|
11175
10910
|
/**
|
|
11176
10911
|
* Authenticates the given user. Determines the tenant by itself via a call to tenant/currentTenant.
|