Skip to main content

elasticsearch-store / utils/validation

utils/validation

Functions

isTemplatedIndex()

isTemplatedIndex(config?): boolean

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

Parameters

ParameterType
config?IndexSchema

Returns

boolean


isTimeSeriesIndex()

isTimeSeriesIndex(config?): boolean

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

Parameters

ParameterType
config?IndexSchema

Returns

boolean


isValidClient()

isValidClient(input): input is Client

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

Parameters

ParameterType
inputunknown

Returns

input is Client


isValidName()

isValidName(name): boolean

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

Parameters

ParameterType
namestring

Returns

boolean


isValidNamespace()

isValidNamespace(namespace): boolean

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

Parameters

ParameterType
namespacestring

Returns

boolean


makeDataValidator()

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

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

Parameters

ParameterType
dataSchemaDataSchema
loggerLogger

Returns

Function

Parameters
ParameterType
inputany
criticalboolean
Returns

any


validateId()

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

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

Parameters

ParameterTypeDefault value
idunknownundefined
actionstringundefined
throwErrorbooleantrue

Returns

id is string


validateIds()

validateIds(ids, action): string[]

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

Parameters

ParameterType
idsunknown
actionstring

Returns

string[]


validateIndexConfig()

validateIndexConfig(config): config is IndexConfig<any>

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

Parameters

ParameterType
configRecord<string, any>

Returns

config is IndexConfig<any>