Type aliases
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:265
Static AttributeDefinition
Attribute
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean }
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:206
Type declaration
Optional id?: string
Optional key?: boolean
Optional localizable?: boolean
Optional mandatory?: boolean
Optional max?: number
Optional min?: number
Optional minLength?: number
Optional multiValueType?: boolean
Optional regularExpression?: string
Optional scale?: number
Optional searchable?: boolean
Optional siteSpecific?: boolean
Optional system?: boolean
type: string
Optional visible?: boolean
Static BadRequest
BadRequest: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:498
Static BoolFilter
Bool
Filter: { filters?: Array < Filter > ; operator: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:89
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:151
Static BrandSuggestions
BrandSuggestions: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:380
Static CategorySuggestions
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:314
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:242
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:279
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:70
Static CustomSuggestions
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:416
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:259
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:249
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:277
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:286
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:235
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:263
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:251
Static Filter
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:170
Static FilteredQuery
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:106
Static Image
Image: { alt?: string ; disBaseLink?: string ; link: string ; title?: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:461
Static ImageGroup
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:397
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:253
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:203
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:58
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:103
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:16
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:198
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:164
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:84
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:275
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:271
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:73
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:61
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:94
Static PriceRange
PriceRange: { maxPrice?: number ; minPrice?: number ; pricebook?: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:308
Static ProductPriceTable
ProductPriceTable: { price?: number ; pricebook?: string ; quantity?: number } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:293
Static ProductPromotion
ProductPromotion: { calloutMsg: string ; promotionId: string ; promotionalPrice: number } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:477
Static ProductRef
ProductRef: { id: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:299
Static ProductSearchHit
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:422
Static ProductSearchRefinement
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:410
Static ProductSearchRefinementValue
Product
SearchRefinementValue: { description?: string ; hitCount: number ; label: string ; presentationId?: string ; value: string ; values?: Array < ProductSearchRefinementValue > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:383
Static ProductSearchResult
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:446
Static ProductSearchSortingOption
ProductSearchSortingOption: { id: string ; label: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:392
Static ProductSuggestions
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:338
Static ProductType
ProductType: { bundle?: boolean ; item?: boolean ; master?: boolean ; option?: boolean ; set?: boolean ; variant?: boolean ; variationGroup?: boolean } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:350
Static PropertyDefinition
Property
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:35
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:228
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:115
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:111
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:76
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:78
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:141
Static RangeFilter
RangeFilter: { field: string ; from?: any ; fromInclusive?: boolean ; to?: any ; toInclusive?: boolean } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:183
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:267
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:269
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:255
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:273
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:261
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:28
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:191
Static Selectable
Selectable: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:82
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:21
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:157
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:80
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:178
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:86
Static SuggestedCategory
SuggestedCategory: { id: string ; name: string ; parentCategoryName: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:344
Static SuggestedPhrase
SuggestedPhrase: { exactMatch: boolean ; phrase: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:327
Static SuggestedProduct
SuggestedProduct: { currency: string ; price: number ; productId: string ; productName: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:320
Static SuggestedTerm
SuggestedTerm: { completed: boolean ; corrected: boolean ; exactMatch: boolean ; value: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:403
Static SuggestedTerms
Suggested
Terms: { originalTerm: string ; terms?: Array < SuggestedTerm > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:303
Static Suggestion
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:483
Static SuggestionResult
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:488
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:257
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:130
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:124
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:136
Static Unauthorized
Unauthorized: {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:496
Static Variant
Variant
: { orderable
?: boolean ; price
?: number ; productId
: string ; productPromotions
?: Array < ProductPromotion > ; tieredPrices
?: Array < ProductPriceTable > ; variationValues
?: {} & {} } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:360
Static VariationAttribute
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:332
Static VariationAttributeValue
Variation
AttributeValue: { description?: string ; image?: Image ; imageSwatch?: Image ; name?: string ; orderable?: boolean ; value: string } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:468
Static VariationGroup
VariationGroup: { orderable: boolean ; price: number ; productId: string ; variationValues: {} & {} } & {}
Defined in renderedTemplates/discovery/shopperSearch/shopperSearch.ts:371
Shopper Search
product search and helpful search suggestions.
Example with shopper auth
API Version: 1.0.41import { Discovery, ClientConfig, Customer, slasHelpers } from "commerce-sdk"; // or const { Discovery, ClientConfig, Customer, slasHelpers } = require("commerce-sdk"); const clientConfig: ClientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; // must be registered in SLAS. On server, redirectURI is never called const redirectURI = "http://localhost:3000/callback"; const slasClient = new Customer.ShopperLogin(clientConfig); token = await slasHelpers.loginGuestUser(slasClient, { redirectURI }); clientConfig.headers['authorization'] = `Bearer ${token.access_token}`; const shopperSearchClient = new Discovery.ShopperSearch(clientConfig);
Last Updated: