elasticsearch-store / utils/validation
utils/validation
Functions
isTemplatedIndex()
isTemplatedIndex(
config
?):boolean
Parameters
Parameter | Type |
---|---|
config ? | IndexSchema |
Returns
boolean
Source
elasticsearch-store/src/utils/validation.ts:128
isTimeSeriesIndex()
isTimeSeriesIndex(
config
?):boolean
Parameters
Parameter | Type |
---|---|
config ? | IndexSchema |
Returns
boolean
Source
elasticsearch-store/src/utils/validation.ts:132
isValidClient()
isValidClient(
input
):input is Client
Parameters
Parameter | Type |
---|---|
input | unknown |
Returns
input is Client
Source
elasticsearch-store/src/utils/validation.ts:119
isValidName()
isValidName(
name
):boolean
Parameters
Parameter | Type |
---|---|
name | string |
Returns
boolean
Source
elasticsearch-store/src/utils/validation.ts:12
isValidNamespace()
isValidNamespace(
namespace
):boolean
Parameters
Parameter | Type |
---|---|
namespace | string |
Returns
boolean
Source
elasticsearch-store/src/utils/validation.ts:36
makeDataValidator()
makeDataValidator(
dataSchema
,logger
): (input
,critical
) =>any
Parameters
Parameter | Type |
---|---|
dataSchema | DataSchema |
logger | Logger |
Returns
Function
Parameters
Parameter | Type |
---|---|
input | any |
critical | boolean |
Returns
any
Source
elasticsearch-store/src/utils/validation.ts:41
validateId()
validateId(
id
,action
,throwError
):id is string
Parameters
Parameter | Type | Default value |
---|---|---|
id | unknown | undefined |
action | string | undefined |
throwError | boolean | true |
Returns
id is string
Source
elasticsearch-store/src/utils/validation.ts:16
validateIds()
validateIds(
ids
,action
):string
[]
Parameters
Parameter | Type |
---|---|
ids | unknown |
action | string |
Returns
string
[]
Source
elasticsearch-store/src/utils/validation.ts:32
validateIndexConfig()
validateIndexConfig(
config
):config is IndexConfig<any>
Parameters
Parameter | Type |
---|---|
config | Record <string , any > |
Returns
config is IndexConfig<any>