UNPKG

@fdot/arculus-staff-service

Version:

Simplifies usage of the Arculus Staff Service

30 lines 3.66 kB
import { IStaffMember } from "./../models/IStaffMember"; import { IStaffServiceOptions } from "../models/options/IStaffServiceOptions"; import { IStaffFilterCriteria } from "../models/IStaffFilterCriteria"; import { ICacheOptions } from "../models/options/ICacheOptions"; import { StatusFilter } from "../models/enums/StatusFilter"; export declare const initialize: (options: IStaffServiceOptions) => void; export declare const getStaffByAzureOid: (oid: string, cacheOptions?: ICacheOptions) => Promise<IStaffMember | null>; export declare const getMappedStaffByAzureOid: <T>(oid: string, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T | null>; export declare const getStaffByAzureOids: (oids: string[], cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedStaffByAzureOids: <T>(oids: string[], mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getStaffByEmailAddress: (emailAddress: string, cacheOptions?: ICacheOptions) => Promise<IStaffMember | null>; export declare const getMappedStaffByEmailAddress: <T>(emailAddress: string, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T | null>; export declare const getStaffBySrsId: (srsId: number, cacheOptions?: ICacheOptions) => Promise<IStaffMember | null>; export declare const getMappedStaffBySrsId: <T>(srsId: number, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T | null>; export declare const getStaffBySrsIds: (srsIds: number[], cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedStaffBySrsIds: <T>(srsIds: number[], mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getActiveStaffByPartialName: (partialName: string, cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedActiveStaffByPartialName: <T>(partialName: string, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getActiveAndInactiveStaffByPartialName: (partialName: string, cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedActiveAndInactiveStaffByPartialName: <T>(partialName: string, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getStaffByFilterCriteria: (filterCriteria: IStaffFilterCriteria, cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedStaffByFilterCriteria: <T>(filterCriteria: IStaffFilterCriteria, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getAllStaffMembers: (statusFilter?: StatusFilter, cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getAllMappedStaffMembers: <T>(statusFilter: StatusFilter | undefined, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const clearCache: () => void; export declare const getDirectReports: (srsId: number, cacheOptions?: ICacheOptions) => Promise<IStaffMember[]>; export declare const getMappedDirectReports: <T>(srsId: number, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T[]>; export declare const getManager: (srsId: number, cacheOptions?: ICacheOptions) => Promise<IStaffMember>; export declare const getMappedManager: <T>(srsId: number, mapFunction: (staff: IStaffMember) => T, cacheOptions?: ICacheOptions) => Promise<T>; //# sourceMappingURL=staffService.d.ts.map