|
|
|
@ -51,6 +51,8 @@ import { Asset } from '@shared/models/asset.models'; |
|
|
|
import { Device, DeviceCredentialsType } from '@shared/models/device.models'; |
|
|
|
import { AttributeService } from '@core/http/attribute.service'; |
|
|
|
import { |
|
|
|
AlarmData, |
|
|
|
AlarmDataQuery, |
|
|
|
createDefaultEntityDataPageLink, |
|
|
|
defaultEntityDataPageLink, |
|
|
|
EntityData, |
|
|
|
@ -373,6 +375,10 @@ export class EntityService { |
|
|
|
return this.http.post<PageData<EntityData>>('/api/entitiesQuery/find', query, defaultHttpOptionsFromConfig(config)); |
|
|
|
} |
|
|
|
|
|
|
|
public findAlarmDataByQuery(query: AlarmDataQuery, config?: RequestConfig): Observable<PageData<AlarmData>> { |
|
|
|
return this.http.post<PageData<AlarmData>>('/api/alarmsQuery/find', query, defaultHttpOptionsFromConfig(config)); |
|
|
|
} |
|
|
|
|
|
|
|
public findEntityInfosByFilterAndName(filter: EntityFilter, |
|
|
|
searchText: string, config?: RequestConfig): Observable<PageData<EntityInfo>> { |
|
|
|
const nameField: EntityKey = { |
|
|
|
|