import * as i4 from '@angular/common/http'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from '@angular/core'; import * as i2 from '@angular/common'; import * as i3 from '@angular/forms'; /** * Represents data retrieved for a member from Workspace. */ interface TbxMemberModel { [index: string]: string; /** Gets or sets the member's social security number. */ ssn: string; /** Gets or sets the member's County Employee number. */ employeeNo: string; /** Gets or sets the member's first name. */ firstName: string; /** Gets or sets the member's middle name. */ middleName: string; /** Gets or sets the member's last name. */ lastName: string; /** Gets or sets the member's full name. */ fullName: string; /** Gets or sets the member's address line 1. */ addressLine1: string; /** Gets or sets the member's address state. */ addressState: string; /** Gets or sets the member's address zip code. */ addressZip: string; /** Gets or sets the member's phone number. */ phoneNumber: string; /** Gets or sets the member's complete address formatted as a single line. */ address: string; } /** * Represents a document type retrieved from Workspace. */ interface TbxDocumentTypeModel { [index: string]: string | boolean; /** Gets or sets the document type. */ type: string; /** Gets or sets the document description. */ description: string; /** Gets or sets the security group this type belongs to. */ group: string; /** Gets or sets a value indicating whether the document must be routed. */ route: boolean; } /** * Retrieves member information from Workspace including IDs to assign to new documents * as a composite service to make it easier. */ declare class TbxWorkspaceService { private readonly http; /** Gets the base URL to the ToolBox Workspace endpoint. */ readonly baseUrl = "api/ToolBox/Workspace"; /** * Initializes a new instance of the {@link TbxWorkspaceService} class. * @param http The Angular HTTP client to call the backend server. */ constructor(http: HttpClient); /** * Gets member details by SSN from Workspace. * @param ssn The member's social security to find. * @returns The member details if found. */ findMemberBySsn(ssn: string): Observable; /** * Gets member details by SSN from Workspace. * @param empNo The member's employee number to find. * @returns The member details if found. */ findMemberByEmpNo(empNo: string): Observable; /** * Searches for members by name in Workspace. * @param name The name of the member to search for. * @returns The member details if found. */ searchMembers(name: string): Observable; /** * Gets all the document types from Workspace. * * @returns All document types found. */ getDocumentTypes(): Observable; /** * Gets the URL from where document types can be downloaded as CSV. * @returns The document types URL. */ getDocumentTypesCsv(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * The MemberSearch component allows the user to search for members in Workspace/DB2 * using various search criteria. */ declare class TbxMemberSearchComponent { private readonly workspaceService; /** Gets or sets the members found during a search. */ members: TbxMemberModel[] | null; /** Gets or sets the term to search for. */ searchTerm: string; /** Gets or sets a value indicating whether the search yielded results. */ notFound: boolean; /** Gets or sets a message to show when search yielded no results. */ resultMessage: string; /** Gets or sets the error message when performing a search. */ errorMessage: string | null; constructor(workspaceService: TbxWorkspaceService); /** Determines the type of search to perform. */ search(): void; /** * Dispatches searching by SSN in Workspace. * @param ssn The SSN for which to search. */ private findBySsn; /** * Dispatches searching by employee number in Workspace. * @param empNo The employee number to search. */ private findByEmpNo; /** * Dispatches searching by first or last name in Workspace. * @param name The member's name for which to search. */ private searchByName; /** * Display the member found during the search. * @param member The found member details. */ private handleMemberFound; /** * Displays the appropriate information when a member is not found or error. * @param error The error received from the server. */ private handleFindError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TbxWorkspaceModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { TbxMemberSearchComponent, TbxWorkspaceModule, TbxWorkspaceService }; export type { TbxDocumentTypeModel, TbxMemberModel };