Type aliases
Static AspectAttributeInvalid
AspectAttributeInvalid: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:332
Static AspectTypeNotFound
AspectTypeNotFound: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:328
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:85
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/experience/shopperExperience/shopperExperience.ts:297
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 BoolFilter
Bool
Filter: { filters?: Array < Filter > ; operator: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:188
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:250
Static BusinessObjectIdInvalid
BusinessObjectIdInvalid: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:326
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:62
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:101
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:169
Static Component
Component
: { custom
?: {} & {} ; data
?: {} & {} ; id
: string ; regions
?: Array < Region > ; typeId
: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:43
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:79
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:69
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:99
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:108
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:55
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:83
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:71
Static Filter
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:269
Static FilteredQuery
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:205
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:73
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:294
Static LocaleSpecific
LocaleSpecific: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:334
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:157
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:202
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:115
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:289
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:263
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:183
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:97
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:91
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:172
Static Page
Page
: { aspectTypeId
?: string ; custom
?: {} & {} ; data
?: {} & {} ; description
?: string ; id
: string ; name
?: string ; pageDescription
?: string ; pageKeywords
?: string ; pageTitle
?: string ; regions
?: Array < Region > ; typeId
: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:20
Static PageNotFound
PageNotFound: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:330
Static PageResult
Page
Result: { data: Array < Page > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:16
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:160
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:193
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/experience/shopperExperience/shopperExperience.ts:134
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:319
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:214
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:210
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:175
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:177
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:240
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:93
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:87
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:89
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:75
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:95
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:81
Static Region
Region
: { components
?: Array < Component > ; id
: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:38
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:127
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:282
Static Selectable
Selectable: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:181
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:120
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:256
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:179
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:277
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:185
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:77
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:229
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:223
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/experience/shopperExperience/shopperExperience.ts:235
Shopper Experience
**
Example with shopper auth
API Version: 1.0.5import { Experience, ClientConfig, Customer, slasHelpers } from "commerce-sdk"; // or const { Experience, 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 shopperExperienceClient = new Experience.ShopperExperience(clientConfig);
Last Updated: