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