Manta Developers
GitHub
Menu

@manta-eu/client/shared/memory-schema-property

Reference for @manta-eu/client/shared/memory-schema-property as it is on main.

Type Aliases

CheckedMemorySchemaProperty

CheckedMemorySchemaProperty = object

Properties

allowedValues

allowedValues: string[]

defaultValue

defaultValue: string | null

description

description: string | null

entityClass

entityClass: string | null

inferred

inferred: boolean

keyProperty

keyProperty: boolean

label

label: string

maxLength

maxLength: number | null

maxValue

maxValue: string | null

minValue

minValue: string | null

multiValued

multiValued: boolean

options

options: MemorySchemaOption[]

pattern

pattern: string | null

required

required: boolean

unit

unit: string | null

valueType

valueType: MemorySchemaValueType


MemorySchemaOption

MemorySchemaOption = object

Properties

description

description: string | null

label

label: string | null

value

value: string


MemorySchemaOptionInput

MemorySchemaOptionInput = object

Properties

description?

optional description?: string | null

label?

optional label?: string | null

value

value: string


MemorySchemaPropertyCheck

MemorySchemaPropertyCheck = object

Properties

errors

errors: MemorySchemaValidationError[]

property

property: CheckedMemorySchemaProperty | null


MemorySchemaPropertyInput

MemorySchemaPropertyInput = object

Properties

computed?

optional computed?: boolean | null

defaultValue?

optional defaultValue?: string | null

description?

optional description?: string | null

entityClass?

optional entityClass?: string | null

key?

optional key?: string | null

keyProperty?

optional keyProperty?: boolean | null

label

label: string

maxLength?

optional maxLength?: number | null

maxValue?

optional maxValue?: string | null

minValue?

optional minValue?: string | null

multiValued?

optional multiValued?: boolean | null

options?

optional options?: readonly MemorySchemaOptionInput[] | null

path?

optional path?: string | null

pattern?

optional pattern?: string | null

required?

optional required?: boolean | null

unit?

optional unit?: string | null

valueType

valueType: MemorySchemaValueType


MemorySchemaValidationError

MemorySchemaValidationError = object

Properties

field

field: string

message

message: string

Functions

checkMemorySchemaProperty()

checkMemorySchemaProperty(input, field, compilePattern): MemorySchemaPropertyCheck

Parameters

input

Omit<MemorySchemaPropertyInput, "valueType"> & object

field

string

compilePattern

CompileMemoryValuePattern | null

Returns

MemorySchemaPropertyCheck


deriveMemoryPropertyKey()

deriveMemoryPropertyKey(label): string

Parameters

label

string

Returns

string


deriveMemorySchemaKey()

deriveMemorySchemaKey(label): string

Parameters

label

string

Returns

string


memoryPropertyKeyProblem()

memoryPropertyKeyProblem(key): string | null

Parameters

key

string

Returns

string | null


trimmedOrNull()

trimmedOrNull(value): string | null

Parameters

value

string | null | undefined

Returns

string | null