create-adobug-azure-helper
Version:
A helper library for Azure DevOps automation functions (bug creation, test result update, step logging, etc.)
27 lines (26 loc) • 953 B
TypeScript
export declare class ModuleUserMapping {
private moduleUserMap;
constructor(initialMapping?: Record<string, string>);
/**
* Get the user assigned to a specific module.
* @param moduleName The name of the module.
* @returns The email of the user assigned to the module, or null if not found.
*/
getUserForModule(moduleName: string): string | null;
/**
* Add or update a module-to-user mapping.
* @param moduleName The name of the module.
* @param userEmail The email of the user to assign to the module.
*/
setUserForModule(moduleName: string, userEmail: string): void;
/**
* Get the entire module-to-user mapping.
* @returns The module-to-user mapping object.
*/
getAllMappings(): Record<string, string>;
/**
* Remove a module-to-user mapping.
* @param moduleName The name of the module to remove.
*/
removeModule(moduleName: string): void;
}