import * as i0 from '@angular/core'; import { OnInit, EventEmitter } from '@angular/core'; import * as i1 from '@c8y/ngx-components'; import { AppStateService, AlertService, ModalService, ForOfFilterPipe, PopoverConfirmButtons, PopoverConfirmComponent } from '@c8y/ngx-components'; import * as _c8y_client from '@c8y/client'; import { FetchClient, IFetchResponse, IApplication, InventoryService, IdentityService, IManagedObject, IResultList } from '@c8y/client'; import * as i2 from '@angular/router'; import { Router } from '@angular/router'; import { NgForm } from '@angular/forms'; import { TranslateService } from '@ngx-translate/core'; import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; declare enum ConnectionType { ACTILITY = 0, SIGFOX = 1, LORIOT = 2 } interface Connection { name: string; baseUrl: string; username: string; password: string; description: string; } interface SigfoxConnection extends Connection { parentGroupId: string; } interface ActilityConnection extends Connection { profileId: string; routeApplicationServerId?: string; routeApplicationServerKey?: string; adminApiVersion: string; coreApiVersion: string; enterpriseConnection: boolean; } interface LoriotConnection extends Connection { providerType: string; } type LpwanState = 'loadingConnection' | 'loadingError' | 'connectionAvailable' | 'connectionNotAvailable' | 'addConnections' | 'savedSuccessfully' | 'updateConnection'; declare class MultipleLnsConnectorService { private client; private appStateService; private alertService; private headers; constructor(client: FetchClient, appStateService: AppStateService, alertService: AlertService); list(connectionType: ConnectionType): Promise; /** * Saves the connection. * @param connection The connection to be saved. * @param originalName The original name of the connection, required to perform an update. */ save(connection: ActilityConnection | SigfoxConnection | LoriotConnection, originalName?: string): Promise; detail(connectionType: ConnectionType, connectionName: string): Promise; exists(connectionType: ConnectionType, connectionName: string): Promise; create(connection: ActilityConnection | SigfoxConnection | LoriotConnection): Promise; update(connection: ActilityConnection | SigfoxConnection | LoriotConnection, originalName: string): Promise; getBaseUrlByConnection(connection: ActilityConnection | SigfoxConnection | LoriotConnection): "service/sigfox-agent" | "service/actility" | "service/loriot" | ""; getBaseUrlByType(connectionType: ConnectionType): "service/sigfox-agent" | "service/actility" | "service/loriot" | ""; delete(connection: ActilityConnection | SigfoxConnection | LoriotConnection): Promise; getApplication(name: string): Partial; download(url: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SigfoxMultipleLnsConnectorComponent implements OnInit { private connectorService; private alertService; private translateService; private modalService; private modal; state: LpwanState; cloneDeep: any; connection: SigfoxConnection; connections: SigfoxConnection[]; showPassword: boolean; connectorsForm: NgForm; cardHeader: "Sigfox connections"; allowedSpecialCharacters: string; namePattern: string; namePatternError: any; originalConnection: SigfoxConnection; constructor(connectorService: MultipleLnsConnectorService, alertService: AlertService, translateService: TranslateService, modalService: BsModalService, modal: ModalService); ngOnInit(): Promise; loadConnections(): Promise; setModel(connectionObj?: any): Promise; resetEditedUnsavedConnection(): Promise; addConnection(): Promise; save(): Promise; deleteConnection(originalConnection: any): Promise; changePassword(): void; private saveConnection; private delete; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NoConnectionsFoundComponent { onAction: EventEmitter; header: string; addConnection(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ActilityMultipleLnsConnectorComponent implements OnInit { private connectorService; private alertService; private translateService; private modal; private modalService; state: LpwanState; connection: ActilityConnection; connections: ActilityConnection[]; connectorsForm: NgForm; showPassword: boolean; cardHeader: "Actility connections"; allowedSpecialCharacters: string; namePattern: string; namePatternError: any; originalConnection: ActilityConnection; constructor(connectorService: MultipleLnsConnectorService, alertService: AlertService, translateService: TranslateService, modal: ModalService, modalService: BsModalService); ngOnInit(): Promise; loadConnections(): Promise; setModel(connectionObj?: any): Promise; setAdminAndCoreApiVersion(): Promise; resetEditedUnsavedConnection(): Promise; addConnection(): Promise; save(): Promise; deleteConnection(originalConnection: any): Promise; changePassword(): void; saveConnection(): Promise; private delete; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LoriotMultipleLnsConnectorComponent implements OnInit { private connectorService; private alertService; private translateService; private modalService; private modal; state: LpwanState; cloneDeep: any; connection: LoriotConnection; connections: LoriotConnection[]; showPassword: boolean; connectorsForm: NgForm; cardHeader: "LORIOT connections"; allowedSpecialCharacters: string; namePattern: string; namePatternError: any; originalConnection: LoriotConnection; constructor(connectorService: MultipleLnsConnectorService, alertService: AlertService, translateService: TranslateService, modalService: BsModalService, modal: ModalService); ngOnInit(): Promise; loadConnections(): Promise; setModel(connectionObj?: any): Promise; resetEditedUnsavedConnection(): Promise; addConnection(): Promise; save(): Promise; deleteConnection(originalConnection: any): Promise; changePassword(): void; private saveConnection; private delete; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ConnectionInfoWithDownloadCsvComponent { private modal; private connectorService; private alertService; private translateService; messageData: any; appData: IApplication; modalTitle: string; connectionName: string; constructor(modal: BsModalRef, connectorService: MultipleLnsConnectorService, alertService: AlertService, translateService: TranslateService); dismiss(): void; download(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MultipleLnsConnectorsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class LpwanSetDeviceProtocolService { private inventoryService; private client; private identityService; private lnsService; supportedDevicesCfgs: { name: string; match: (device: any) => boolean; protocolTypes: string[]; externalIdTypes: string[]; connectionType: ConnectionType; }[]; private readonly header; constructor(inventoryService: InventoryService, client: FetchClient, identityService: IdentityService, lnsService: MultipleLnsConnectorService); refreshCache(device: any): Promise<_c8y_client.IFetchResponse>; getMicroserviceUrl(device: any): string; isSupportedDevice(device: IManagedObject): boolean; getCurrentProtocol(device: IManagedObject): Promise; applyProtocol(device: IManagedObject, selectedProtocol: IManagedObject): Promise<_c8y_client.IResult>; getAvailableProtocols(device: IManagedObject): Promise>; getAvailableConnections(device: IManagedObject): Promise>; private getProtocolTypesMatchingDevice; private getExternalId; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LpwanAssignDeviceProtocolComponent implements OnInit { private lpwanService; private alertService; private router; private inventoryService; loading: boolean; device: IManagedObject; currentProtocol: IManagedObject; availableProtocols: IResultList; newProtocol: IManagedObject; filterProtocols: ForOfFilterPipe; pattern: string; lpwanSetDeviceProtocolForm: NgForm; constructor(lpwanService: LpwanSetDeviceProtocolService, alertService: AlertService, router: Router, inventoryService: InventoryService); ngOnInit(): Promise; setPipe(filterStr: string): void; reload(): Promise; loadDevice(): Promise; apply(selectedProtocol: any): Promise; refreshCache(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LpwanAssignLnsConnectionsComponent implements OnInit { private lpwanService; private alertService; loading: boolean; device: IManagedObject; buttons: PopoverConfirmButtons[]; reRegisterMsg: "To change provider connection, you need to re-register device first."; filterConnection: ForOfFilterPipe; pattern: string; popoverConfirm: PopoverConfirmComponent; newConnection: ActilityConnection | SigfoxConnection; availableConnections: IResultList; currentConnection: ActilityConnection | SigfoxConnection; constructor(lpwanService: LpwanSetDeviceProtocolService, alertService: AlertService); ngOnInit(): Promise; setConnectionPipe(filterStr: string): void; reload(): Promise; togglePopover(popoverCfrm: any): void; deviceReregister(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LpwanProtocolModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { LpwanAssignDeviceProtocolComponent, LpwanProtocolModule, MultipleLnsConnectorsModule }; //# sourceMappingURL=index.d.ts.map