@ctodev/cclibrary-typings
Version:
Library typings for use with CLARC INFINITY
36 lines (35 loc) • 2.12 kB
TypeScript
import { MatDialog } from '@angular/material/dialog';
import { Observable } from 'rxjs';
import { TccSingleton } from '../../../core/models/tcc-singleton.model';
import { TccET_C4 } from '../../../odata/models/c4.model';
import { TccODataServiceFactory } from '../../../odata/factories/tcc-odata-service/tcc-odata-service.factory';
import { TccSnackBarService } from '../../../core/services/tcc-snackbar/tcc-snackbar.service';
import { TccManageSingletonsService } from '../../../core/services/tcc-manage-singletons/tcc-manage-singletons.service';
import { tccCatchError, TccCatchErrorService } from '../tcc-catch-error/tcc-catch-error.service';
export declare class AddtotransportService implements TccSingleton {
private factory;
private dialog;
private snackbar;
private tccCatchError;
private allInitTransports;
private allFullTransports;
private service;
constructor(factory: TccODataServiceFactory, dialog: MatDialog, snackbar: TccSnackBarService, manageSingletons: TccManageSingletonsService, tccCatchError: TccCatchErrorService);
init(): void;
reset(): void;
initTransports(): Observable<TccET_C4.Transport[]>;
getFullTransports(ids?: string[]): Observable<TccET_C4.Transport[]>;
addToTransports(transportIds: string | string[], items: Array<TccET_C4.TransportItem>, withMessage?: boolean): Observable<tccCatchError.returnType<TccET_C4.Transport>>;
addToTransportCallback(transportIds: string[], items: Array<TccET_C4.TransportItem>, withMessage?: boolean): Observable<tccCatchError.returnType<TccET_C4.Transport>>;
patchTransport(transportIds: string[], items: Array<TccET_C4.TransportItem>, withMessage?: boolean): Observable<tccCatchError.returnType<TccET_C4.Transport>>;
processNode(nodepaths: string[]): Observable<{
Items: TccET_C4.TransportItem[];
}>;
private getTransportsCallback;
private openTransportDialogCallback;
patchTransportFromDialog(transport: TccET_C4.Transport, message: string): Observable<{
Items: TccET_C4.TransportItem[];
}>;
private openTransportDialog;
resetTransports(): void;
}