uomlibrarycommons-core
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -8,2 +8,3 @@ export declare enum EUomLibraryFaculty { | ||
export declare function toEUomLibraryFaculty(value: string): EUomLibraryFaculty | undefined; | ||
export declare function mappingDataToEUomLibraryFaculty(value: string): EUomLibraryFaculty | undefined; | ||
export declare function fromEUomLibraryFaculty(value: EUomLibraryFaculty): string; | ||
@@ -10,0 +11,0 @@ export declare function isEUomLibraryFaculty(test: unknown): test is EUomLibraryFaculty; |
@@ -26,2 +26,17 @@ "use strict"; | ||
exports.toEUomLibraryFaculty = toEUomLibraryFaculty; | ||
function mappingDataToEUomLibraryFaculty(value) { | ||
switch (value) { | ||
case 'Faculty of Science and Engineering': | ||
return EUomLibraryFaculty.SE; | ||
case 'Faculty of Biology Medicine and Health': | ||
return EUomLibraryFaculty.BMH; | ||
case 'Faculty of Humanities': | ||
return EUomLibraryFaculty.HUMANITIES; | ||
case 'Professional Services': | ||
return EUomLibraryFaculty.PS; | ||
default: | ||
return undefined; | ||
} | ||
} | ||
exports.mappingDataToEUomLibraryFaculty = mappingDataToEUomLibraryFaculty; | ||
function fromEUomLibraryFaculty(value) { | ||
@@ -28,0 +43,0 @@ switch (value) { |
{ | ||
"name": "uomlibrarycommons-core", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Common Node and Angular code for UoM library development", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40971
609