Skip to main content

elasticsearch-store / utils/validation

utils/validation

Functions

isTemplatedIndex()

isTemplatedIndex(config?): boolean

Parameters

ParameterType
config?IndexSchema

Returns

boolean

Source

elasticsearch-store/src/utils/validation.ts:128


isTimeSeriesIndex()

isTimeSeriesIndex(config?): boolean

Parameters

ParameterType
config?IndexSchema

Returns

boolean

Source

elasticsearch-store/src/utils/validation.ts:132


isValidClient()

isValidClient(input): input is Client

Parameters

ParameterType
inputunknown

Returns

input is Client

Source

elasticsearch-store/src/utils/validation.ts:119


isValidName()

isValidName(name): boolean

Parameters

ParameterType
namestring

Returns

boolean

Source

elasticsearch-store/src/utils/validation.ts:12


isValidNamespace()

isValidNamespace(namespace): boolean

Parameters

ParameterType
namespacestring

Returns

boolean

Source

elasticsearch-store/src/utils/validation.ts:36


makeDataValidator()

makeDataValidator(dataSchema, logger): (input, critical) => any

Parameters

ParameterType
dataSchemaDataSchema
loggerLogger

Returns

Function

Parameters
ParameterType
inputany
criticalboolean
Returns

any

Source

elasticsearch-store/src/utils/validation.ts:41


validateId()

validateId(id, action, throwError): id is string

Parameters

ParameterTypeDefault value
idunknownundefined
actionstringundefined
throwErrorbooleantrue

Returns

id is string

Source

elasticsearch-store/src/utils/validation.ts:16


validateIds()

validateIds(ids, action): string[]

Parameters

ParameterType
idsunknown
actionstring

Returns

string[]

Source

elasticsearch-store/src/utils/validation.ts:32


validateIndexConfig()

validateIndexConfig(config): config is IndexConfig<any>

Parameters

ParameterType
configRecord<string, any>

Returns

config is IndexConfig<any>

Source

elasticsearch-store/src/utils/validation.ts:76