import { Event } from '../common/misc/event'; import { Router, ActivatedRoute } from '@angular/router'; import { MatSnackBar } from '@angular/material/snack-bar'; import { HttpClient } from '@angular/common/http'; export declare class WebReturn { Ok: boolean; Msg: string; Data?: any; constructor(); } export declare class ACCom { private httpClient; router: Router; private route; snackBar: MatSnackBar; static Simulation: boolean; static sACCom: ACCom; static VisComponenetInstanceDict: {}; static ActComponenetInstanceDict: {}; TrendVisDict: {}; private Values; private socketHost; private socketHostSecundary; private socketProgrammingHost; private socketProgrammingHostSecundary; private sessionIDHost; private sessionIDHostSecondary; onSearchChange: Event; onResponseFromTypescriptServiceResolve: Event; onResponseFromTypescriptServiceCompile: Event; isRedundant: boolean; SecondaryHostIsMain: boolean; WebTokenHost: string; WebTokenHostSecondary: string; private lastTryLoginTime; loginHost: string; loginHostSecondary: string; loginUser: string; private loginPassword; private loginPasswordSecondary; loginMessage: string; loginMessageHost: string; loginMessageHostSecondary: string; loginCntHost: number; loginCntHostSecondary: number; /** * ActiveHost * return this Hostname of the active Main Host */ get ActiveHost(): string; get ActiveToken(): string; CallIDWelcome: number; CallIDResponseFromTypescriptServiceResolve: number; CallIDResponseFromTypescriptServiceCompile: number; CallIDNoAccess: number; CallIDValues: number; CallIDValuesStandby: number; CallIDService: number; CallIDServerInfo: number; CallIDNoData: number; CallId: number; CallList: any; receiveCnt: number; receiveCntResponse: number; receiveCntOld: number; missingCount: number; ClientIP: string; lastReceivedTime: number; NoAccess: boolean; private _ShowLogin; private _lastCancelLogin; get ShowLogin(): boolean; private _timer; set ShowLogin(val: boolean); ShowChangePW: boolean; TenantInfo: ACTenantInfo; static KeyPrefix: string; get hostkey(): string; get userkey(): string; get hostkeySecondary(): string; get tokenkey(): string; get tokenkeySecondary(): string; get tokenkeyCheckVars(): string; static virgin: boolean; static overrideHost: string; constructor(httpClient: HttpClient, router: Router, route: ActivatedRoute, snackBar: MatSnackBar); autologgendin: boolean; onConnect: Event; onLoggedIn: Event; private _checkVars; get checkVars(): boolean; set checkVars(val: boolean); /** * Indicates that Values from the Server already received */ ValuesReceived: boolean; get isConnected(): boolean; reconnect(): void; private ReceiveCnt; private ReceiveSecundaryCnt; private ReceiveTime; private RequestTime; PLCMode: boolean; ExpandView: boolean; PLCVersion: number; ServerInfo: ServerInfo; ServerInfoSecondary: ServerInfo; lastConectedsessionID: string; private _noAccessCnt; createSocket(Secundary: boolean): void; loginCounter: number; GetUpdateInfo(): void; haveActualAccess(role: string): boolean; private accessDict; private _haveActualAccess; _AddCallReference(resolve: any, reject: any): number; private lastGetTenant; private lastRole; private lastUser; private _getTenantInfo; onRoleChanged: Event; private dold; private getValues; CycleTime: number; susspend: boolean; Stop(): void; _lastServerInfoTime: number; IsIO(name: string): boolean; IsParameter(name: string): boolean; IsRetentive(name: string): boolean; GetAlarmPrio(name: string): number; GetAlarmGroup(name: string): number; GetUnitIndex(name: string): number; unitList: Array; GetUnit(index: number): Promise; GetValid(name: string): number; requestValue(name: string, plcGUID?: any, Extend?: boolean): any; setValue(variable: string, val: any): void; setValues(variableList: Array): void; getClasses(plcGUID: string, filter: string, GlobalOnly?: boolean): Promise; getStartupConfig(plcGUID: string): Promise; getUpdateInfo(plcGUID: string): Promise; getSiteConfig(plcGUID: string): Promise; setStartupConfig(plcGUID: string, data: string): Promise; getSystemInformation(plcGUID: string, func: string): Promise; setSiteConfig(plcGUID: string, data: string): Promise; getClass(plcGUID: string, filter: string): Promise; private _getObjects; getObjects(plcGUID: string, filter: string, classFilter?: any, tagFilter?: any): Promise; private _queryObjects; /** * Get Objects and Values from PLC * @param instanceFilter - exact name - or start with * for contains - or undefined * @param classFilter - exact ClassName - or start with * for contains - neccessary! * @param propList - string list for Property names or undefined for all Properites * @param filter - undefine or: PropName=Value(string!) */ queryObjects(instanceFilter: string, classFilter: string, propList: Array, filter: string): Promise; getVariables(NameFilter: string, RemarkFilter: string, TypeFilter: string, TagFilter: string, ParameterFilter: boolean, RetentiveFilter: boolean): Promise; getPlcInfo(plcGUID: string): Promise; getVideoJPG(InstanceName: string): Promise; getTraceOverview(plcGUID: string): Promise; getTrace(plcGUID: string, groupName: string): Promise; getTraceOffset(plcGUID: string, lastLogCnt: any, lastWarningCnt: any, lastErrorCount: any, lastFatalErrorCnt: any): Promise; getInstanceTree(plcGUID: string, Filter: string, ClassFilter: string): Promise; getInstanceList(plcGUID: string, Filter: string, RemarkFilter: string, ClassFilter: string, GlobalOnly?: boolean): Promise; getIotJournal(dateStart: number, dateRange: number, queryExpression: string, ExtFilter: any): Promise; getIotTask(dateStart: number, Range: number): Promise; getBinAsZip(Minify: boolean, DriverExt: boolean): Promise; getNodeModulesAsZip(): Promise; callPlcSlow(InstanceName: string, Function: string, Data: any): Promise; installBinVersion(Data: any): Promise; installPlcProgramFromZip(Name: string, Data: any): Promise; getInstallProgramResponse(): Promise; setWebAppBase64(data64: string): Promise; private IOTCall; siteListCached: any; lastSiteListClall: any; getSitePerName(name: string): Promise; getSiteList(): Promise; _getSiteList(): Promise; getTenantInfo(): Promise; getServerInfo(): Promise; getServerInfoSecondary(): Promise; getUsersRoles(): Promise; setUsersRoles(User: string, Role: string, Remove: boolean): Promise; addUsersRole(RoleName: string, Remark: string): Promise; deleteUsersRole(RoleName: string): Promise; getUsers(): Promise; addUser(Name: string, Password: string, Remark: string): Promise; changePassword(Name: string, OldPassword: string, NewPassword: string): Promise; deleteUser(Name: string): Promise; getFiles(path: string, Extensions: Array): Promise; getFile(path: string, file: string): Promise; saveFile(file: string, data: string): Promise; saveJSONObject(obj: any, path: string, file: string, override: boolean): Promise; loadJSONObject(path: string, file: string): Promise; deleteJSONObject(path: string, file: string): Promise; getDownloadFileBase64(filename: string): Promise; getPLCProgramAsZip(IncludJS?: boolean): Promise; getReportAsPDF(InstanceName: string, Parameter: Array): Promise; startTSCCompile(path: string): Promise; downloadToIOT(InstallID: string): Promise; getAlarmList(lastID: number): Promise; getUnitList(): Promise; ackAlarm(AlarmName: string, UserName: string): Promise; getJournal(Filter: string, EndTime: number): Promise; /** * CallProcedure() - call a procedure specified by user * Name: Name of procedure * In_args: Procedure input args including type definition * Out_args_definition: Procedure output type definition * return: SQLProcedureResult () */ CallProcedure(Name: string, In_args: any, Out_args_definition: number): Promise; _GetConsumptionValue(Varlist: Array, StartTime: number, EndTime: number): Promise>; _GetConsumptionTrend(Varlist: Array, StartTime: number, EndTime: number): Promise>; _GetTrend(Varlist: Array, StartTime: number, EndTime: number, ResolutionSec: number): Promise>; getTrendV2(Varlist: Array, StartTime: number, EndTime: number, ResolutionSec: number): Promise; getConsumptionV2(Varlist: Array, StartTime: number, EndTime: number, TimeMode: number): Promise; getTrendList(Filter: string): Promise; setTrendItemVisiblity(Name: string, Visible: boolean): void; setTrendItem(Name: string, Scantime: number, Variation: number, Mode: number, Delete: boolean): Promise; StoreTrendItem(Path: string, Value: number, Time: number): Promise; importLogBook(data: any, logonuser: string, update: number, init: boolean, filter?: string): Promise; exportLogBook(filename: string, filter: string): Promise; loadLogBook(Filter: string): Promise; getFileServiceMessages(LastIndex: number): Promise; saveLogBookItem(Instance: string, Name: string, Description: string, Done: boolean, Date: string, User: string, Type: number, Link: string, Reference: string, Variable: string, LogbookID: number): Promise; CallUnauthorized(FunctionName: string, c: any): Promise; SyncCallList: string; SyncCallCbDict: {}; SyncCallCbDictReturn: {}; DoCallSync(Values: string): Promise; private FlushCallSync; valsynctimer: any; /** * * @param Name GetSyncValue with callback * @param cb */ GetSyncValue(Name: string, cb: { (val: any): any; }): void; CallServer(FuncName: any, c: any): void; routingGUID: any; Login(user: string, password: string, host: string, hostSecondary: string): Promise; CallREST(host: string, apiname: string, data: any): Promise; GetHttpServerInfo(host: string, MyGUID: string): Promise; ReplacePort: string; getUrl(): string; Autologin(): void; private _ResolveAfterConnect; AfterConnect(): Promise; static RequiredRole: any; HasCloudDB: boolean; LoginRunning: boolean; private DoLoginHost; private DoLoginHostOld; private DoLoginHostSecondary; Logout(): void; private _UpDownloadProgress; onUpDownloadProgress: Event; GetHttpServerBinVersionAsZip(host: string, MyGUID: string): Promise; UploadBinaryToServer(fileData: any): Promise; DownloadFileFromServer(fname: string): void; _lastSnackBarMsgTime: number; SnackMessage(Msg: string, Button?: string, duration?: number): void; } export declare class ACTenantInfo { UserName: string; SiteName: string; ServerIP: string; UserRoles: string; IsSysAdmin: boolean; IsRedunant: boolean; IsStandBy: boolean; } export declare class UpDownloadProgress { TotalBytes: number; ActBytes: number; get TotalBytesMByteString(): string; get ActBytesMByteString(): string; BytesToString(bytes: number): string; } export declare class Unit { UnitName: string; Unit: string; Min: number; Max: number; Digits: number; Index: number; } export declare class ServerInfo { _ServerTime: number; get ServerTime(): number; set ServerTime(val: number); ServiceLevel: number; Redundant: boolean; IsMain: boolean; ServerTimeStr: string; LastReceived: number; LicenseOK: boolean; DeviceId: string; private _dofix2; } export declare class SQLFastTrendData { Type: number; Data: Array; } export declare class SQLProcedureResult { Type: number; Data: Array; } export declare class ServerInfoHttp { SiteName: string; BinVersion: string; BinBuildVersion: string; BinMajorVersion: string; } export declare class SetValues { Varname: string; Value: any; } export declare class TrendDataResult { Type: number; Name: string; Data: Array; } export declare class TrendDataValue { Value: string; Time?: number | string; Min?: number; Max?: number; Count: number; } export declare class ValueItem { Name: string; Value: any; }