uomlibrarycommons-core
Advanced tools
Comparing version 0.5.1 to 0.7.0
@@ -7,3 +7,4 @@ export declare enum EUomLibraryAffiliation { | ||
ALUMNI = "alum", | ||
AFFILIATE = "affiliate" | ||
AFFILIATE = "affiliate", | ||
LIBRARY_WALK_IN = "library-walk-in" | ||
} | ||
@@ -10,0 +11,0 @@ export declare function toEUomLibraryAffiliation(value: string): EUomLibraryAffiliation | undefined; |
@@ -12,2 +12,3 @@ "use strict"; | ||
EUomLibraryAffiliation["AFFILIATE"] = "affiliate"; | ||
EUomLibraryAffiliation["LIBRARY_WALK_IN"] = "library-walk-in"; | ||
})(EUomLibraryAffiliation = exports.EUomLibraryAffiliation || (exports.EUomLibraryAffiliation = {})); | ||
@@ -29,2 +30,4 @@ function toEUomLibraryAffiliation(value) { | ||
return EUomLibraryAffiliation.AFFILIATE; | ||
case EUomLibraryAffiliation.LIBRARY_WALK_IN.toString(): | ||
return EUomLibraryAffiliation.LIBRARY_WALK_IN; | ||
default: | ||
@@ -49,2 +52,4 @@ return undefined; | ||
return EUomLibraryAffiliation.AFFILIATE.toString(); | ||
case EUomLibraryAffiliation.LIBRARY_WALK_IN: | ||
return EUomLibraryAffiliation.LIBRARY_WALK_IN.toString(); | ||
} | ||
@@ -76,2 +81,4 @@ throw new Error('Unknown EUomLibraryAffiliation'); | ||
return EUomLibraryAffiliation.AFFILIATE; | ||
case 'LIBRARY_WALK_IN': | ||
return EUomLibraryAffiliation.LIBRARY_WALK_IN; | ||
} | ||
@@ -78,0 +85,0 @@ throw new Error(`Unable to obtain EUomLibraryAffiliation for key: ${key}`); |
export * from './euom-library-affiliation'; | ||
export * from './euom-library-card-variation'; | ||
export * from './euom-library-member-type'; | ||
export * from './euom-library-site'; | ||
export * from './euom-library-year-period'; |
@@ -9,4 +9,5 @@ "use strict"; | ||
__export(require("./euom-library-card-variation")); | ||
__export(require("./euom-library-member-type")); | ||
__export(require("./euom-library-site")); | ||
__export(require("./euom-library-year-period")); | ||
//# sourceMappingURL=index.js.map |
@@ -8,3 +8,3 @@ import { EUomLibraryAffiliation } from '../enums/euom-library-affiliation'; | ||
type: string; | ||
affiliation: EUomLibraryAffiliation[] | EUomLibraryAffiliation; | ||
affiliation?: EUomLibraryAffiliation[] | EUomLibraryAffiliation; | ||
school?: string; | ||
@@ -11,0 +11,0 @@ title?: string; |
@@ -20,3 +20,4 @@ "use strict"; | ||
return false; | ||
if (!tscommons_core_1.CommonsType.hasPropertyEnum(test, 'affiliation', euom_library_affiliation_1.isEUomLibraryAffiliation) | ||
if (tscommons_core_1.CommonsType.hasProperty(test, 'affiliation') | ||
&& !tscommons_core_1.CommonsType.hasPropertyEnum(test, 'affiliation', euom_library_affiliation_1.isEUomLibraryAffiliation) | ||
&& !tscommons_core_1.CommonsType.hasPropertyEnumArray(test, 'affiliation', euom_library_affiliation_1.isEUomLibraryAffiliation)) | ||
@@ -23,0 +24,0 @@ return false; |
{ | ||
"name": "uomlibrarycommons-core", | ||
"version": "0.5.1", | ||
"version": "0.7.0", | ||
"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
Sorry, the diff of this file is not supported yet
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
32957
28
487