@terascope/types / data-types
data-types
Enumerations
| Enumeration | Description |
|---|---|
| DateFormat | A list of valid valid formats for FieldType.Date. date-fns string format can be used, see https://date-fns.org/v2.16.1/docs/format |
| FieldType | The data type of a field |
| TimeResolution | - |
Interfaces
| Interface | Description |
|---|---|
| DataTypeConfig | The DataType fields config with version |
| DataTypeFieldConfig | The configuration for an individual field |
Type Aliases
DataTypeFields
DataTypeFields =
Record<string,DataTypeFieldConfig>
Defined in: packages/types/src/data-types.ts:177
The DataType fields configuration
DataTypeVersion
DataTypeVersion =
1
Defined in: packages/types/src/data-types.ts:89
The major DataType config version
DeprecatedFieldType
DeprecatedFieldType =
"Boolean"|"Boundary"|"Byte"|"Date"|"Domain"|"Double"|"Float"|"Geo"|"GeoPoint"|"GeoJSON"|"Hostname"|"Integer"|"IPRange"|"IP"|"KeywordCaseInsensitive"|"KeywordTokensCaseInsensitive"|"KeywordPathAnalyzer"|"KeywordTokens"|"Keyword"|"Long"|"NgramTokens"|"Object"|"Short"|"Text"|"String"|"Number"|"Any"
Defined in: packages/types/src/data-types.ts:50
Deprecated
use the enum FieldType
ReadonlyDataTypeConfig
ReadonlyDataTypeConfig =
Readonly<Overwrite<DataTypeConfig, {fields:ReadonlyDataTypeFields; }>>
Defined in: packages/types/src/data-types.ts:201
A readonly version of the DataTypeConfig
ReadonlyDataTypeFields
ReadonlyDataTypeFields =
Record<string,Readonly<DataTypeFieldConfig>>
Defined in: packages/types/src/data-types.ts:181
A readonly version of DataType fields configuration
Variables
availableFieldTypes
constavailableFieldTypes:ReadonlyArray<FieldType>
Defined in: packages/types/src/data-types.ts:82
A list of all of the Field Types
dataTypeVersions
constdataTypeVersions:ReadonlyArray<number>
Defined in: packages/types/src/data-types.ts:94
A list of DataType config versions
indexedRequiredFieldTypes
constindexedRequiredFieldTypes:object
Defined in: packages/types/src/data-types.ts:208
Type Declaration
Domain
Domain:
boolean=true
GeoJSON
GeoJSON:
boolean=true
Hostname
Hostname:
boolean=true
KeywordCaseInsensitive
KeywordCaseInsensitive:
boolean=true
KeywordPathAnalyzer
KeywordPathAnalyzer:
boolean=true
KeywordTokens
KeywordTokens:
boolean=true
KeywordTokensCaseInsensitive
KeywordTokensCaseInsensitive:
boolean=true
NgramTokens
NgramTokens:
boolean=true
Vector
Vector:
boolean=true