import * as i3 from '@angular/common'; import { Location } from '@angular/common'; import * as i4 from '@angular/common/http'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from '@angular/core'; import { OnInit } from '@angular/core'; import * as i5 from '@angular/router'; import { Router, ActivatedRoute, Routes } from '@angular/router'; import { TbxReturnUrl } from '@lacera/ngx-toolbox/http'; /** * Represents an audit trail entry entity model. */ interface TbxAuditModel { /** Gets or sets the unique identifier for this entry. */ auditId: number; /** Gets or sets the transaction number. */ transactionId: number; /** Gets or sets the date/time of the entry. */ dateTime: Date; /** Gets or sets the action performed on the data. */ action: string; /** Gets or sets the brief description of the action performed. */ description: string; /** Gets or sets the full details of the action performed. */ details: string; /** Gets or sets the name of the current user. */ userName: string; /** Gets or sets the workstation where the entry came from. */ workstation: string; /** Gets or sets the application name that performed the action. */ appName: string; /** Gets or sets the source the entry came from. */ source: string; /** Gets or sets the source ID the entry came from. */ sourceId: number; /** Gets or sets the optional additional source of the event. */ otherSource: string; /** Gets or sets the optional additional ID of the source of the event. */ otherSourceId: number; } /** * Provides data services for the Audit Trail feature by calling the ToolBox * WebAPI endpoint for audit trail entries (api/toolbox/audit). */ declare class TbxAuditService { private readonly http; private readonly location; /** Gets or sets the back-end URL to retrieve audit trail entries. */ baseAuditUrl: string; /** * Initializes a new instance of the {@link TbxAuditService} class. * @param http The HTTP client to call the back-end. * @param location The HTTP location sanitizer. */ constructor(http: HttpClient, location: Location); /** * Gets all audit trail entries for a source. * @param source The source from where the entry originated. * @param sourceId The ID of the source (e.g., Project ID). * @returns All audit trail entries for a source. */ getBySourceId(source: string, sourceId: number): Observable; /** * Gets all audit trail entry details. * @param id The unique ID of the source. * @returns All audit trail entry details. */ getById(id: number): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Provides audit trail route services for the application. */ declare class TbxAuditRoutes { private readonly router; /** Gets or sets the path to the audit trail route. */ auditRoute: string; /** * Initializes a new instance of the {@link TbxAuditRoutes} class. * @param router The Angular router to build route trees. */ constructor(router: Router); /** * Creates the URL string to navigate to the list of audit trail entries. * @param source The audit trail source for which to display entries. * @param sourceId The audit trail source ID for which to display entries. * @returns The audit trail list route string. */ list(source: string, sourceId: number): string; /** * Creates the URL string to navigate to the details of an audit trail entry. * @param id The audit trail entry ID to display. * @returns The audit trail details route tree. */ details(id: number): string; /** * Creates the return URL for {@link queryParams} links. * @param returnUrl An optional URL to return to. * @param parentReturnUrl An optional return URL to a parent. * @returns The return URL. */ returnUrl(returnUrl?: string, parentReturnUrl?: string): TbxReturnUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * The audit trail component displayed when the user navigation to /audit. */ declare class TbxAuditListComponent implements OnInit { readonly auditRoutes: TbxAuditRoutes; private readonly auditService; /** The source and source ID for audit being viewed. */ source: string; /** The source ID for audit being viewed. */ sourceId: number; /** The optional return URL. */ returnUrl: TbxReturnUrl; /** The list of audit trail retrieved from the server. */ entries: TbxAuditModel[]; /** Indicates the component is loading data. */ loading: boolean; /** Any error message. */ errorMessage: string | undefined; constructor(route: ActivatedRoute, auditRoutes: TbxAuditRoutes, auditService: TbxAuditService); ngOnInit(): void; loadAuditTrail(): void; trackById(_index: number, item: TbxAuditModel): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * The audit entry details component displayed when user navigation to /audit/details. */ declare class TbxAuditDetailsComponent implements OnInit { private readonly auditService; /** Indicates if we're displaying in delete mode. */ deleteMode: boolean; /** The project title based on the mode. */ pageTitle: string; /** The ID of the entry to display retrieved from the URL. */ entryId: number; /** The audit entry to display retrieved from the server. */ entry?: TbxAuditModel; /** The return URL to navigate back to. */ returnUrl: string; /** The return URL to navigate back to from the audit list. */ parentReturnUrl: string; /** Any error message. */ errorMessage: string | undefined; constructor(route: ActivatedRoute, auditService: TbxAuditService); ngOnInit(): void; loadAuditTrail(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** The Audit feature module for the Router configuration. */ declare const auditRoutes: Routes; declare class TbxAuditModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { TbxAuditModule, TbxAuditRoutes, TbxAuditService, auditRoutes }; export type { TbxAuditModel };