Class: TypedSearchAttributes
Constructors
Constructor
new TypedSearchAttributes(
initialAttributes?):TypedSearchAttributes
Parameters
initialAttributes?
Returns
TypedSearchAttributes
Methods
copy()
copy():
TypedSearchAttributes
Returns a deep copy of the given TypedSearchAttributes instance
Returns
TypedSearchAttributes
get()
get<
T>(key):IndexedValueTypeMapping[T] |undefined
Type Parameters
T
T extends SearchAttributeType
Parameters
key
Returns
IndexedValueTypeMapping[T] | undefined
getAll()
getAll():
SearchAttributePair[]
Returns
updateCopy()
updateCopy(
updates):TypedSearchAttributes
Returns a copy of the current TypedSearchAttributes instance with the updated attributes.
Parameters
updates
Returns
TypedSearchAttributes
getKeyFromUntyped()
staticgetKeyFromUntyped(key,value):SearchAttributeKey<SearchAttributeType> |undefined
Parameters
key
string
value
SearchAttributeValueOrReadonly
Returns
SearchAttributeKey<SearchAttributeType> | undefined
toMetadataType()
statictoMetadataType(type):string
Parameters
type
Returns
string
toSearchAttributeType()
statictoSearchAttributeType(type):SearchAttributeType|undefined
Parameters
type
string
Returns
SearchAttributeType | undefined