@manta-eu/client/shared/memory-schema-values
Reference for @manta-eu/client/shared/memory-schema-values as it is on main.
Type Aliases
CompileMemoryValuePattern
CompileMemoryValuePattern = (
pattern) =>object
Parameters
pattern
string
Returns
object
test
test: (
value) =>boolean
Parameters
value
string
Returns
boolean
MemorySchemaValueType
MemorySchemaValueType = typeof
memorySchemaValueTypes[number]
MemoryValueConstraints
MemoryValueConstraints =
object
Properties
allowedValues
allowedValues: readonly
string[]
maxLength
maxLength:
number|null
maxValue
maxValue:
string|null
minValue
minValue:
string|null
pattern
pattern:
string|null
valueType
valueType:
MemorySchemaValueType
Variables
memorySchemaValueTypes
constmemorySchemaValueTypes: readonly ["text","longText","integer","decimal","boolean","date","dateTime","url","entity"]
memoryValueBoundTypes
constmemoryValueBoundTypes: readonlyMemorySchemaValueType[]
memoryValueTextTypes
constmemoryValueTextTypes: readonlyMemorySchemaValueType[]
Functions
compareMemoryValues()
compareMemoryValues(
valueType,a,b):number
Parameters
valueType
"boolean" | "date" | "dateTime" | "decimal" | "integer" | "entity" | "text" | "longText" | "url"
a
string
b
string
Returns
number
convertMemoryValue()
convertMemoryValue(
from,to,lexical):string|null
Parameters
from
"boolean" | "date" | "dateTime" | "decimal" | "integer" | "entity" | "text" | "longText" | "url"
to
"boolean" | "date" | "dateTime" | "decimal" | "integer" | "entity" | "text" | "longText" | "url"
lexical
string
Returns
string | null
memoryValueConstraintViolation()
memoryValueConstraintViolation(
property,value,compilePattern):string|null
Parameters
property
value
string
compilePattern
CompileMemoryValuePattern | null
Returns
string | null
parseMemoryValue()
parseMemoryValue(
valueType,raw):string|null
Parameters
valueType
"boolean" | "date" | "dateTime" | "decimal" | "integer" | "entity" | "text" | "longText" | "url"
raw
string
Returns
string | null