Index

projects/storefrontapp-e2e-cypress/cypress/helpers/consent-management.ts

accessPageAsAnonymous
accessPageAsAnonymous()
consentManagementTest
consentManagementTest()
giveConsent
giveConsent()
verifyAsAnonymous
verifyAsAnonymous()
verifyConsentManagementPage
verifyConsentManagementPage()
withdrawConsent
withdrawConsent()

projects/core/src/cart/store/reducers/multi-cart.reducer.ts

activeCartReducer
activeCartReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : string
cartEntitiesReducer
cartEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Cart
wishListReducer
wishListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : string

feature-libs/user/schematics/add-user/index.ts

addAccountFeature
addAccountFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addProfileFeature
addProfileFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addUserFeatures
addUserFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/address-book.ts

addAddress
addAddress()
addressBookDirectoryTabbingOrder
addressBookDirectoryTabbingOrder()
addressBookFormTabbingOrder
addressBookFormTabbingOrder(config)
Parameters :
Name Optional
config No
getAddressRequest
getAddressRequest(auth, address, verify: boolean)
Parameters :
Name Type Optional
auth No
address No
verify boolean No
selectCountryCanada
selectCountryCanada()
setupForAddressBookTests
setupForAddressBookTests()

feature-libs/organization/schematics/add-organization/index.ts

addAdministrationFeature
addAdministrationFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addOrderApprovalsFeature
addOrderApprovalsFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addSpartacusOrganization
addSpartacusOrganization(options)
Parameters :
Name Optional
options No
Returns : Rule

feature-libs/tracking/schematics/add-tracking/index.ts

addAep
addAep(options)
Parameters :
Name Optional
options No
Returns : Rule
addGtm
addGtm(options)
Parameters :
Name Optional
options No
Returns : Rule
addPersonalizationFeature
addPersonalizationFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addTrackingFeatures
addTrackingFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

feature-libs/asm/schematics/add-asm/index.ts

addAsmFeature
addAsmFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addAsmFeatures
addAsmFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-checkout.ts

addB2bProductToCartAndCheckout
addB2bProductToCartAndCheckout()
completeReplenishmentForm
completeReplenishmentForm(replenishmentPeriod)
Parameters :
Name Optional
replenishmentPeriod No
enterPONumber
enterPONumber()
loginB2bUser
loginB2bUser()
placeOrder
placeOrder(orderUrl)
Parameters :
Name Optional
orderUrl No
reviewB2bOrderConfirmation
reviewB2bOrderConfirmation(sampleUser, sampleProduct, cartData, isAccount: boolean, replenishment?)
Parameters :
Name Type Optional
sampleUser No
sampleProduct No
cartData No
isAccount boolean No
replenishment Yes
reviewB2bReviewOrderPage
reviewB2bReviewOrderPage(sampleUser, cartData, isAccount: boolean, orderType)
Parameters :
Name Type Optional
sampleUser No
cartData No
isAccount boolean No
orderType No
selectAccountDeliveryMode
selectAccountDeliveryMode()
selectAccountPayment
selectAccountPayment()
selectAccountShippingAddress
selectAccountShippingAddress()
selectCreditCardPayment
selectCreditCardPayment()

projects/schematics/src/shared/utils/lib-utils.ts

addB2bProviders
addB2bProviders(options)
Parameters :
Name Optional
options No
Returns : Rule
addCustomConfig
addCustomConfig(tsconfigPath, basePath, config)
Parameters :
Name Optional
tsconfigPath No
basePath No
config No
Returns : Rule
addFeatureModule
addFeatureModule(tsconfigPath, basePath, config, options)
Parameters :
Name Optional
tsconfigPath No
basePath No
config No
options No
Returns : Rule
addFeatureTranslations
addFeatureTranslations(tsconfigPath, basePath, config)
Parameters :
Name Optional
tsconfigPath No
basePath No
config No
Returns : Rule
addLibraryAssets
addLibraryAssets(assetsConfig, options)
Parameters :
Name Optional
assetsConfig No
options No
Returns : Rule
addLibraryFeature
addLibraryFeature(options, config)
Parameters :
Name Optional
options No
config No
Returns : Rule
addLibraryStyles
addLibraryStyles(stylingConfig, options)
Parameters :
Name Optional
stylingConfig No
options No
Returns : Rule
addPackageJsonDependencies
addPackageJsonDependencies(dependencies, packageJson: any)
Parameters :
Name Type Optional
dependencies No
packageJson any No
Returns : Rule
addPackageJsonDependenciesForLibrary
addPackageJsonDependenciesForLibrary(dependencies, options)
Parameters :
Name Optional
dependencies No
options No
Returns : Rule
addRootModule
addRootModule(tsconfigPath, basePath, config)
Parameters :
Name Optional
tsconfigPath No
basePath No
config No
Returns : Rule
addSchematicsTasks
addSchematicsTasks(featureOptions, context)
Parameters :
Name Optional
featureOptions No
context No
Returns : void
checkAppStructure
checkAppStructure(tree, project)
Parameters :
Name Optional
tree No
project No
Returns : boolean
configureB2bFeatures
configureB2bFeatures(options, packageJson: any)
Parameters :
Name Type Optional
options No
packageJson any No
Returns : Rule
createAssetsArray
createAssetsArray(assetsConfig, angularJsonAssets)
Parameters :
Name Optional
assetsConfig No
angularJsonAssets No
Returns : unknown[]
createModuleFileName
createModuleFileName(config)
Parameters :
Name Optional
config No
Returns : string
createNodePackageInstallationTask
createNodePackageInstallationTask(context)
Parameters :
Name Optional
context No
Returns : TaskId
createSpartacusFeatureOptionsForLibrary
createSpartacusFeatureOptionsForLibrary(options, cliFeatures, interactive)

A helper method that creates the default options for the given Spartacus' libraries.

All features options will be set to an empty array, meaning that no features should be installed.

Parameters :
Name Optional
options No
cliFeatures No
interactive No
Returns : literal type[]
dependencyExists
dependencyExists(dependency, packageJson: any)
Parameters :
Name Type Optional
dependency No
packageJson any No
Returns : boolean
getPackageBySubFeature
getPackageBySubFeature(subFeature)
Parameters :
Name Optional
subFeature No
Returns : string
getSpartacusFeaturesModule
getSpartacusFeaturesModule(sourceFile)
Parameters :
Name Optional
sourceFile No
handleFeature
handleFeature(options, config)
Parameters :
Name Optional
options No
config No
Returns : Rule
installPackageJsonDependencies
installPackageJsonDependencies()
Returns : Rule
installRequiredSpartacusFeatures
installRequiredSpartacusFeatures(dependencyManagement, options)
Parameters :
Name Optional
dependencyManagement No
options No
Returns : Rule
logFeatureInstallation
logFeatureInstallation(dependencyManagement, context)
Parameters :
Name Optional
dependencyManagement No
context No
Returns : void
prepareCliPackageAndSubFeature
prepareCliPackageAndSubFeature(features)
Parameters :
Name Optional
features No
Returns : Record<string, string[]>
runExternalSpartacusLibrary
runExternalSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule
shouldAddFeature
shouldAddFeature(feature, features)
Parameters :
Name Optional
feature No
features No
Returns : boolean
spartacusFeatureModuleExists
spartacusFeatureModuleExists(tree, tsconfigPath, basePath)
Parameters :
Name Optional
tree No
tsconfigPath No
basePath No
Returns : boolean

feature-libs/product/schematics/add-product/index.ts

addBulkPricingFeature
addBulkPricingFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addImageZoom
addImageZoom(options)
Parameters :
Name Optional
options No
Returns : Rule
addSpartacusProduct
addSpartacusProduct(options)
Parameters :
Name Optional
options No
Returns : Rule
addVariantsFeature
addVariantsFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

feature-libs/cart/schematics/add-cart/index.ts

addCartFeatures
addCartFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule
addCartImportExportFeature
addCartImportExportFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addQuickOrderFeature
addQuickOrderFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addSavedCartFeature
addSavedCartFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/cart.ts

addCartItemsAndLoadCart
addCartItemsAndLoadCart()
cartTabbingOrder
cartTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/save-for-later.ts

addCartItemsAndLoadCart
addCartItemsAndLoadCart()
saveForLaterTabbingOrder
saveForLaterTabbingOrder(config)
Parameters :
Name Optional
config No

integration-libs/cdc/schematics/add-cdc/index.ts

addCdc
addCdc(options, context)
Parameters :
Name Optional
options No
context No
Returns : Rule
addCdcFeature
addCdcFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

integration-libs/cds/src/schematics/add-cds/index.ts

addCds
addCds(options, context)
Parameters :
Name Optional
options No
context No
Returns : Rule
addCdsFeature
addCdsFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
validateCdsOptions
validateCdsOptions(undefined, context)
Parameters :
Name Optional
No
context No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/checkout-flow.ts

addCheapProductToCart
addCheapProductToCart(sampleProduct)
Parameters :
Name Optional
sampleProduct No
addCheapProductToCartAndBeginCheckoutForSignedInCustomer
addCheapProductToCartAndBeginCheckoutForSignedInCustomer(sampleProduct)
Parameters :
Name Optional
sampleProduct No
addCheapProductToCartAndLogin
addCheapProductToCartAndLogin(sampleUser, sampleProduct)
Parameters :
Name Optional
sampleUser No
sampleProduct No
addCheapProductToCartAndProceedToCheckout
addCheapProductToCartAndProceedToCheckout(sampleProduct)
Parameters :
Name Optional
sampleProduct No
addProductToCart
addProductToCart()
clickAddNewPayment
clickAddNewPayment()
clickCheapProductDetailsFromHomePage
clickCheapProductDetailsFromHomePage(sampleProduct)
Parameters :
Name Optional
sampleProduct No
clickHamburger
clickHamburger()

Clicks the main menu (on mobile only)

fillAddressForm
fillAddressForm(shippingAddressData)
Parameters :
Name Optional
shippingAddressData No
fillAddressFormWithCheapProduct
fillAddressFormWithCheapProduct(shippingAddressData, cartData)
Parameters :
Name Optional
shippingAddressData No
cartData No
fillPaymentForm
fillPaymentForm(paymentDetailsData, billingAddress?)
Parameters :
Name Optional
paymentDetailsData No
billingAddress Yes
fillPaymentFormWithCheapProduct
fillPaymentFormWithCheapProduct(paymentDetailsData, billingAddress?, cartData)
Parameters :
Name Optional
paymentDetailsData No
billingAddress Yes
cartData No
goToCheapProductDetailsPage
goToCheapProductDetailsPage(sampleProduct)
Parameters :
Name Optional
sampleProduct No
goToPaymentDetails
goToPaymentDetails()
goToProductDetailsPage
goToProductDetailsPage()
loginUser
loginUser(sampleUser)
Parameters :
Name Optional
sampleUser No
placeOrder
placeOrder()
placeOrderWithCheapProduct
placeOrderWithCheapProduct(sampleUser, cartData, currency)
Parameters :
Name Optional
sampleUser No
cartData No
currency No
registerUser
registerUser(giveRegistrationConsent: boolean, sampleUser)
Parameters :
Name Type Optional
giveRegistrationConsent boolean No
sampleUser No
signInUser
signInUser(sampleUser)
Parameters :
Name Optional
sampleUser No
signOut
signOut()
signOutUser
signOutUser(sampleUser)
Parameters :
Name Optional
sampleUser No
verifyDeliveryMethod
verifyDeliveryMethod()
verifyOrderConfirmationPageWithCheapProduct
verifyOrderConfirmationPageWithCheapProduct(sampleUser, sampleProduct, cartData, isApparel: boolean)
Parameters :
Name Type Optional
sampleUser No
sampleProduct No
cartData No
isApparel boolean No
verifyReviewOrderPage
verifyReviewOrderPage()
viewOrderHistory
viewOrderHistory()
viewOrderHistoryWithCheapProduct
viewOrderHistoryWithCheapProduct(cartData)
Parameters :
Name Optional
cartData No
visitHomePage
visitHomePage(queryStringParams?)

Visits the homepage and waits for corresponding xhr call

Parameters :
Name Optional Description
queryStringParams Yes

Query string params

waitForCategoryPage
waitForCategoryPage(categoryCode, alias)
Parameters :
Name Optional
categoryCode No
alias No
Returns : string
waitForPage
waitForPage(page, alias)

Creates a routing alias for a given page

Parameters :
Name Optional Description
page No

Suffix of the url (page) to wait for

alias No

Name of the routing alias to obtain

Returns : string

a Routing alias

waitForProductPage
waitForProductPage(product, alias)
Parameters :
Name Optional
product No
alias No
Returns : string

feature-libs/checkout/schematics/add-checkout/index.ts

addCheckoutFeatures
addCheckoutFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule
addSavedCheckoutFeature
addSavedCheckoutFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/schematics/src/add-cms-component/index.ts

addCmsComponent
addCmsComponent(options)
Parameters :
Name Optional
options No
Returns : Rule
buildComponentModule
buildComponentModule(options)
Parameters :
Name Optional
options No
Returns : string
buildDeclaringCmsModule
buildDeclaringCmsModule(options)
Parameters :
Name Optional
options No
Returns : string
declareInModule
declareInModule(options)
Parameters :
Name Optional
options No
Returns : Rule
updateComponent
updateComponent(options)
Parameters :
Name Optional
options No
Returns : Rule
updateModule
updateModule(options)
Parameters :
Name Optional
options No
Returns : Rule
updateTemplate
updateTemplate(options)
Parameters :
Name Optional
options No
Returns : Rule
validateArguments
validateArguments(options)
Parameters :
Name Optional
options No
Returns : void

projects/storefrontlib/cms-structure/routing/cms-route/add-cms-route.ts

addCmsRoute
addCmsRoute(injector)
Parameters :
Name Optional
injector No
Returns : void

.github/hs-deploy-action/src/functions.ts

addComment
addComment(context: any, octoKit: any, comment)

Adds hosting service deployment URL as a comment to the corresponding github pull request

Parameters :
Name Type Optional Description
context any No

Github context

octoKit any No

Github octokit object

comment No

Comment body

build
build()
getBundleId
getBundleId(branch)

Generates a UPP valid bundle Id based on the branch name replaces slashes with -s and other chars with -d

Parameters :
Name Optional Description
branch No

Branch name

.github/api-extractor-action/src/comment.ts

addCommentToPR
addCommentToPR(entryPoints, ghClient: any, relatedPR, context)
Parameters :
Name Type Optional
entryPoints No
ghClient any No
relatedPR No
context No
extractListOfNotAnalyzedEntryPoints
extractListOfNotAnalyzedEntryPoints(entryPoints)

Generate list of all entry points that could not be analyzed.

Parameters :
Name Optional Description
entryPoints No

List of entry point status with errors

Returns : []
extractSnippetFromFile
extractSnippetFromFile(filename)

Extract from the api-extractor report public api definition.

Parameters :
Name Optional Description
filename No

report file from which to extract public api definition

Returns : string
generateCommentBody
generateCommentBody(analyzedComments, notAnalyzableEntryPoints)

Generates github comment content for pull request with bot results

Parameters :
Name Optional Description
analyzedComments No

List of comments for each analysed entry point

notAnalyzableEntryPoints No

List of entry points that couldn't be analyzed

Returns : string
generateCommentForAnalyzed
generateCommentForAnalyzed(comments)

Generates part of the pull request comment for analyzed libraries

Parameters :
Name Optional Description
comments No

List of comments for each analysed entry point

Returns : string
generateCommentForEntryPoint
generateCommentForEntryPoint(entry)

Generate comment for entry points based on their status

Parameters :
Name Optional Description
entry No

entry point status to convert into comment

Returns : string

comment for entry point

generateCommentForNotAnalyzed
generateCommentForNotAnalyzed(notAnalyzableEntryPoints)

Generates part of the pull request comment for not analyzed libraries

Parameters :
Name Optional Description
notAnalyzableEntryPoints No

List of entry points with errors that couldn't be analyzed

Returns : string
generateHelpContent
generateHelpContent(analysisContent)

Generate help information related to found errors to help developers debug the issue.

Parameters :
Name Optional Description
analysisContent No

Comment for libraries after analysis

getDiff
getDiff(report)

Get diff between base and head branch report.

Parameters :
Name Optional Description
report No

report filename

Returns : string

diff between head and base branch of public api for entry point

printReport
printReport(body, ghClient: any, issueNumber, context)

Update or create comment in the PR with API extractor result.

Parameters :
Name Type Optional Description
body No

Content of the comment

ghClient any No

Github client

issueNumber No

PR number

context No

Context of the github action

projects/schematics/src/add-spartacus/configuration.ts

addCommonConfiguration
addCommonConfiguration(sourceFile, options)
Parameters :
Name Optional
sourceFile No
options No
Returns : void
addConfiguration
addConfiguration(tree, tsconfigPath, basePath, options)
Parameters :
Name Optional
tree No
tsconfigPath No
basePath No
options No
Returns : void
addSpartacusConfiguration
addSpartacusConfiguration(options)
Parameters :
Name Optional
options No
Returns : Rule
addStorefrontConfig
addStorefrontConfig(sourceFile, options)

Creates and adds a spartacus config based on the provided options.

Parameters :
Name Optional
sourceFile No
options No
Returns : void
createBackendConfiguration
createBackendConfiguration(options)
Parameters :
Name Optional
options No
Returns : string
createFeatureLevelConfiguration
createFeatureLevelConfiguration(options)
Parameters :
Name Optional
options No
Returns : string
createI18NConfiguration
createI18NConfiguration()
Returns : string
createSiteContextConfig
createSiteContextConfig(options)
Parameters :
Name Optional
options No
Returns : string

projects/schematics/src/shared/utils/file-utils.ts

addConstructorParam
addConstructorParam(source, sourcePath, constructorNode, paramToAdd)
Parameters :
Name Optional
source No
sourcePath No
constructorNode No
paramToAdd No
Returns : Change[]
buildHtmlComment
buildHtmlComment(commentText)
Parameters :
Name Optional
commentText No
Returns : string
buildSelector
buildSelector(selector)
Parameters :
Name Optional
selector No
Returns : string
buildSpartacusComment
buildSpartacusComment(comment)
Parameters :
Name Optional
comment No
Returns : string
checkConstructorParameters
checkConstructorParameters(constructorNode, parameterClassTypes)
Parameters :
Name Optional
constructorNode No
parameterClassTypes No
Returns : boolean
checkImports
checkImports(source, parameterClassTypes)
Parameters :
Name Optional
source No
parameterClassTypes No
Returns : boolean
checkSuper
checkSuper(constructorNode, parameterClassTypes)
Parameters :
Name Optional
constructorNode No
parameterClassTypes No
Returns : boolean
commitChanges
commitChanges(host, path, changes, insertDirection)
Parameters :
Name Optional
host No
path No
changes No
insertDirection No
Returns : void
defineProperty
defineProperty(nodes, path, toAdd)
Parameters :
Name Optional
nodes No
path No
toAdd No
Returns : InsertChange
filterNamedImports
filterNamedImports(imports)
Parameters :
Name Optional
imports No
filterNamespacedImports
filterNamespacedImports(imports)
Parameters :
Name Optional
imports No
findConstructor
findConstructor(nodes)
Parameters :
Name Optional
nodes No
findLevel1NodesByTextAndKind
findLevel1NodesByTextAndKind(nodes, text, syntaxKind)
Parameters :
Name Optional
nodes No
text No
syntaxKind No
Returns : ts.Node[]
findLevel1NodesInSourceByTextAndKind
findLevel1NodesInSourceByTextAndKind(source, text, syntaxKind)
Parameters :
Name Optional
source No
text No
syntaxKind No
Returns : ts.Node[]
findMultiLevelNodesByTextAndKind
findMultiLevelNodesByTextAndKind(nodes, text, syntaxKind)
Parameters :
Name Optional
nodes No
text No
syntaxKind No
Returns : ts.Node[]
getAllTsSourceFiles
getAllTsSourceFiles(tree, basePath)
Parameters :
Name Optional
tree No
basePath No
Returns : ts.SourceFile[]
getClassName
getClassName(constructorParameter)
Parameters :
Name Optional
constructorParameter No
Returns : string | undefined
getConstructorParameterList
getConstructorParameterList(constructorNode)
Parameters :
Name Optional
constructorNode No
Returns : ts.Node[]
getHtmlFiles
getHtmlFiles(tree, fileName: string, directory?)
Parameters :
Name Type Optional
tree No
fileName string No
directory Yes
Returns : string[]
getImportDeclarationNode
getImportDeclarationNode(source, importToCheck)
Parameters :
Name Optional
source No
importToCheck No
getImportDeclarations
getImportDeclarations(source, importPath)
Parameters :
Name Optional
source No
importPath No
getIndexHtmlPath
getIndexHtmlPath(tree)
Parameters :
Name Optional
tree No
Returns : string
getLineFromTSFile
getLineFromTSFile(host, path, position)
Parameters :
Name Optional
host No
path No
position No
getLineStartFromTSFile
getLineStartFromTSFile(source, position)
Parameters :
Name Optional
source No
position No
Returns : number
getMetadataProperty
getMetadataProperty(metadata, propertyName)
Parameters :
Name Optional
metadata No
propertyName No
Returns : ts.PropertyAssignment
getParamName
getParamName(source, constructorNode, classType)
Parameters :
Name Optional
source No
constructorNode No
classType No
Returns : string | undefined
getPathResultsForFile
getPathResultsForFile(tree, file, directory?)
Parameters :
Name Optional
tree No
file No
directory Yes
Returns : string[]
getServerTsPath
getServerTsPath(host)
Parameters :
Name Optional
host No
Returns : string | undefined
getTextPosition
getTextPosition(content, text, startingPosition: number)
Parameters :
Name Type Optional
content No
text No
startingPosition number No
Returns : number | undefined
getTsSourceFile
getTsSourceFile(tree, path)
Parameters :
Name Optional
tree No
path No
Returns : ts.SourceFile
injectService
injectService(config)
Parameters :
Name Optional
config No
Returns : InsertChange
insertCommentAboveConfigProperty
insertCommentAboveConfigProperty(sourcePath, source, identifierName, comment)
Parameters :
Name Optional
sourcePath No
source No
identifierName No
comment No
Returns : Change[]
insertCommentAboveIdentifier
insertCommentAboveIdentifier(sourcePath, source, identifierName, comment, identifierType)
Parameters :
Name Optional
sourcePath No
source No
identifierName No
comment No
identifierType No
Returns : Change[]
insertCommentAboveImportIdentifier
insertCommentAboveImportIdentifier(sourcePath, source, identifierName, importPath, comment)
Parameters :
Name Optional
sourcePath No
source No
identifierName No
importPath No
comment No
Returns : Change[]
insertComponentSelectorComment
insertComponentSelectorComment(content, componentSelector, componentProperty)
Parameters :
Name Optional
content No
componentSelector No
componentProperty No
Returns : string | undefined
insertHtmlComment
insertHtmlComment(content, componentProperty)
Parameters :
Name Optional
content No
componentProperty No
Returns : string | undefined
isCandidateForConstructorDeprecation
isCandidateForConstructorDeprecation(source, constructorDeprecation)

Method performs the following checks on the provided source file:

  • is the file inheriting the provided constructorDeprecation.class
  • is the constructorDeprecation.class imported from the specified constructorDeprecation.importPath
  • is the file importing all the provided parameterClassTypes from the expected import path
  • does the provided file contain a constructor
  • does the super() call exist in the constructor
  • does the param number passed to super() match the expected number
  • does the order and the type of the constructor parameters match the expected parameterClassTypes

If only once condition is not satisfied, the method returns false. Otherwise, it returns true.

Parameters :
Name Optional Description
source No

a ts source file

constructorDeprecation No
Returns : boolean
isInheriting
isInheriting(nodes, inheritedClass)
Parameters :
Name Optional
nodes No
inheritedClass No
Returns : boolean
isInjected
isInjected(constructorNode, parameterClassType)
Parameters :
Name Optional
constructorNode No
parameterClassType No
Returns : boolean
removeConstructorParam
removeConstructorParam(source, sourcePath, constructorNode, paramToRemove)
Parameters :
Name Optional
source No
sourcePath No
constructorNode No
paramToRemove No
Returns : Change[]
removeConstructorParamInternal
removeConstructorParamInternal(sourcePath, constructorNode, importToRemove)
Parameters :
Name Optional
sourcePath No
constructorNode No
importToRemove No
Returns : Change[]
removeImport
removeImport(source, importToRemove)
Parameters :
Name Optional
source No
importToRemove No
Returns : Change
removeInjectImports
removeInjectImports(source, constructorNode, paramToRemove)
Parameters :
Name Optional
source No
constructorNode No
paramToRemove No
Returns : Change[]
removeParamFromSuper
removeParamFromSuper(sourcePath, constructorNode, paramName)
Parameters :
Name Optional
sourcePath No
constructorNode No
paramName No
Returns : Change[]
renameIdentifierNode
renameIdentifierNode(sourcePath, source, oldName, newName)
Parameters :
Name Optional
sourcePath No
source No
oldName No
newName No
Returns : ReplaceChange[]
shouldRemoveDecorator
shouldRemoveDecorator(constructorNode, decoratorIdentifier)
Parameters :
Name Optional
constructorNode No
decoratorIdentifier No
Returns : boolean
shouldRemoveImportAndParam
shouldRemoveImportAndParam(source, importToRemove)
Parameters :
Name Optional
source No
importToRemove No
Returns : boolean
updateConstructorSuperNode
updateConstructorSuperNode(sourcePath, constructorNode, propertyName)
Parameters :
Name Optional
sourcePath No
constructorNode No
propertyName No
Returns : InsertChange
visitHtmlNodesRecursively
visitHtmlNodesRecursively(nodes, propertyName, resultingElements, parentElement?)
Parameters :
Name Optional
nodes No
propertyName No
resultingElements No
parentElement Yes
Returns : void

feature-libs/product-configurator/schematics/add-product-configurator/index.ts

addCpqRulebasedRootModule
addCpqRulebasedRootModule(options)

Needed to set the CPQ specific root module that enforces early login and must not be active for other configurators

Parameters :
Name Optional Description
options No

Schematics options

Returns : Rule
addProductConfiguratorFeatures
addProductConfiguratorFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule
addProductConfiguratorRulebasedFeature
addProductConfiguratorRulebasedFeature(options)

Called with or without CPQ enabled, and uses a different application module for CPQ

Parameters :
Name Optional Description
options No

Schematics options

Returns : Rule
addProductConfiguratorTextfieldFeature
addProductConfiguratorTextfieldFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

integration-libs/digital-payments/schematics/add-digital-payments/index.ts

addDigitalPayments
addDigitalPayments(options)
Parameters :
Name Optional
options No
Returns : Rule
addDigitalPaymentsFeature
addDigitalPaymentsFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

.github/api-extractor-action/src/api-extractor.ts

addEntryPoint
addEntryPoint(entryPoints, name, newName)

Initialized new empty entry point in the passed object.

Parameters :
Name Optional Description
entryPoints No

Object with entry points to mutate

name No

Name of the entry point

newName No

New name of the entry point in package.json

Returns : void
analyzeEntryPoint
analyzeEntryPoint(entryPointDir)

Run api-extractor on directory

Parameters :
Name Optional Description
entryPointDir No

Directory with entry point to analyze

Returns : Promise<>

Array with exit code and errors array as a second element

analyzeEntryPoints
analyzeEntryPoints(branch, entryPoints)
Parameters :
Name Optional
branch No
entryPoints No
copyApiExtractorConfig
copyApiExtractorConfig(targetDir)

Copies api-extractor config to provided directory

Parameters :
Name Optional Description
targetDir No

Directory to copy config to

Returns : Promise<void>
getDirectoryOfPackageJson
getDirectoryOfPackageJson(path)

Get the directory for the package.json file.

Parameters :
Name Optional Description
path No

Path to package.json file

Returns : string

directory of the package.json file

updateNameInPackageJson
updateNameInPackageJson(path)

Updates name in package.json, so it doesn't have more than 1 /.

Parameters :
Name Optional Description
path No

Path to package.json file

Returns : literal type

object with name and the newName

integration-libs/epd-visualization/schematics/add-epd-visualization/index.ts

addEpdVisualization
addEpdVisualization(options)
Parameters :
Name Optional
options No
Returns : Rule
addEpdVisualizationFeature
addEpdVisualizationFeature(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/core/src/routing/external-routes/external-routes.providers.ts

addExternalRoutesFactory
addExternalRoutesFactory(service)
Parameters :
Name Optional
service No
Returns : void

projects/schematics/src/shared/utils/module-file-utils.ts

addImport
addImport(host, filePath, importText, importPath)
Parameters :
Name Optional
host No
filePath No
importText No
importPath No
Returns : void
addToMetadata
addToMetadata(host, modulePath, text, metadataType, moduleSource?)
Parameters :
Name Optional
host No
modulePath No
text No
metadataType No
moduleSource Yes
Returns : InsertChange[]
addToModuleDeclarations
addToModuleDeclarations(host, modulePath, declarations, moduleSource?)
Parameters :
Name Optional
host No
modulePath No
declarations No
moduleSource Yes
Returns : InsertChange[]
addToModuleExports
addToModuleExports(host, modulePath, exportsText, moduleSource?)
Parameters :
Name Optional
host No
modulePath No
exportsText No
moduleSource Yes
Returns : InsertChange[]
addToModuleImports
addToModuleImports(host, modulePath, importText, moduleSource?)
Parameters :
Name Optional
host No
modulePath No
importText No
moduleSource Yes
Returns : InsertChange[]
addToModuleImportsAndCommitChanges
addToModuleImportsAndCommitChanges(host, modulePath, importText)
Parameters :
Name Optional
host No
modulePath No
importText No
Returns : void
addToModuleProviders
addToModuleProviders(host, modulePath, importText, moduleSource?)
Parameters :
Name Optional
host No
modulePath No
importText No
moduleSource Yes
Returns : InsertChange[]
buildRelativePath
buildRelativePath(from, to)

Build a relative path from one file path to another file path.

Parameters :
Name Optional
from No
to No
Returns : string
createImportChange
createImportChange(host, filePath, importText, importPath)
Parameters :
Name Optional
host No
filePath No
importText No
importPath No
Returns : Change
getAppModule
getAppModule(host, project)
Parameters :
Name Optional
host No
project No
Returns : string
getTemplateInfo
getTemplateInfo(source)
Parameters :
Name Optional
source No
getTemplateUrlOrInlineTemplate
getTemplateUrlOrInlineTemplate(source, templateOrTemplateUrl)
Parameters :
Name Optional
source No
templateOrTemplateUrl No
stripTsFromImport
stripTsFromImport(importPath)
Parameters :
Name Optional
importPath No
Returns : string

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-quick-order.ts

addManyProductsToTheList
addManyProductsToTheList(products)
Parameters :
Name Optional
products No
addProductToCartWithQuickForm
addProductToCartWithQuickForm(productCode, quantity?)
Parameters :
Name Optional
productCode No
quantity Yes
addProductToTheList
addProductToTheList(query)
Parameters :
Name Optional
query No
addProductToTheListAndModifyQuantity
addProductToTheListAndModifyQuantity(query, quantity)
Parameters :
Name Optional
query No
quantity No
addToCart
addToCart()
addToCartClick
addToCartClick()
addWrongProductQuery
addWrongProductQuery(query)
Parameters :
Name Optional
query No
clearList
clearList()
getQuickOrderResultBox
getQuickOrderResultBox(query, resultBoxLength)
Parameters :
Name Optional
query No
resultBoxLength No
interceptAddToCartEndpoint
interceptAddToCartEndpoint()
interceptSearchProductsEndpoint
interceptSearchProductsEndpoint(query)
Parameters :
Name Optional
query No
modifyProductQuantityInQuickOrderList
modifyProductQuantityInQuickOrderList(quantity)
Parameters :
Name Optional
quantity No
prepareCartWithProduct
prepareCartWithProduct()
removeFirstRow
removeFirstRow()
removeManyRows
removeManyRows(quantity)
Parameters :
Name Optional
quantity No
restoreDeletedEntry
restoreDeletedEntry()
verifyCartPageTabbingOrder
verifyCartPageTabbingOrder()
verifyEmptyListButtonIsHidden
verifyEmptyListButtonIsHidden()
verifyMiniCartQuantity
verifyMiniCartQuantity(quantity)
Parameters :
Name Optional
quantity No
verifyQuickOrderFormResultsBoxIsEmpty
verifyQuickOrderFormResultsBoxIsEmpty()
verifyQuickOrderListQuantity
verifyQuickOrderListQuantity(quantity)
Parameters :
Name Optional
quantity No
verifyQuickOrderPageDoNotShowEntryDeletionMessages
verifyQuickOrderPageDoNotShowEntryDeletionMessages()
verifyQuickOrderPageHasNotDeletionMessage
verifyQuickOrderPageHasNotDeletionMessage()
verifyQuickOrderPageShowEntryDeletionMessages
verifyQuickOrderPageShowEntryDeletionMessages(quantity)
Parameters :
Name Optional
quantity No
verifyQuickOrderPageShowErrorMessageNonPurchasableProduct
verifyQuickOrderPageShowErrorMessageNonPurchasableProduct()
verifyQuickOrderPageShowErrorMessageOutOfStock
verifyQuickOrderPageShowErrorMessageOutOfStock()
verifyQuickOrderPageShowInfoMessageToAddProductBeforeClickingAddToCart
verifyQuickOrderPageShowInfoMessageToAddProductBeforeClickingAddToCart()
verifyQuickOrderPageShowSuccessMessageWasAdded
verifyQuickOrderPageShowSuccessMessageWasAdded()
verifyQuickOrderPageShowWarningMessageWasReduced
verifyQuickOrderPageShowWarningMessageWasReduced()
verifyQuickOrderPageTabbingOrder
verifyQuickOrderPageTabbingOrder()
verifyQuickOrderReachedListLimit
verifyQuickOrderReachedListLimit()
visitCartPage
visitCartPage()
visitQuickOrderPage
visitQuickOrderPage()

tools/config/manage-dependencies.ts

addMissingDependenciesToPackageJson
addMissingDependenciesToPackageJson(libraries, rootPackageJson, options)

Adds peerDependencies to libraries package.json files

Parameters :
Name Optional
libraries No
rootPackageJson No
options No
Returns : void
categorizeUsageOfDependencies
categorizeUsageOfDependencies(libraries)

Categorize in which type of files we use different dependencies

Parameters :
Name Optional
libraries No
Returns : void
checkEmptyDevDependencies
checkEmptyDevDependencies(libraries, options)

Check if package does not have any devDependencies

Parameters :
Name Optional
libraries No
options No
Returns : void
checkForLockFile
checkForLockFile(libraries, options)
Parameters :
Name Optional
libraries No
options No
Returns : void
checkIfWeHaveAllDependenciesInPackageJson
checkIfWeHaveAllDependenciesInPackageJson(libraries, packageJson, options)

Get external dependencies from imports

Parameters :
Name Optional
libraries No
packageJson No
options No
Returns : void
checkRxInternalImports
checkRxInternalImports(libraries, options)

Check rxjs/internal imports

Parameters :
Name Optional
libraries No
options No
Returns : void
checkTsLibDep
checkTsLibDep(libraries, rootPackageJson, options)
Parameters :
Name Optional
libraries No
rootPackageJson No
options No
Returns : void
extractExternalDependenciesFromImports
extractExternalDependenciesFromImports(libraries)

Extract external dependencies from imports

Parameters :
Name Optional
libraries No
Returns : void
filterLocalAbsolutePathFiles
filterLocalAbsolutePathFiles(libraries, options)

Filer native Node.js APIs

Parameters :
Name Optional
libraries No
options No
Returns : void
filterLocalRelativeImports
filterLocalRelativeImports(libraries)

Remove these imports from the object as it is no longer useful in processing.

Parameters :
Name Optional
libraries No
Returns : void
filterNativeNodeAPIs
filterNativeNodeAPIs(libraries, options)

Filter native Node.js APIs

Parameters :
Name Optional
libraries No
options No
Returns : void
filterOutSpecOnlyDependencies
filterOutSpecOnlyDependencies(libraries)

Remove spec external dependencies as we already took care of them.

Parameters :
Name Optional
libraries No
Returns : void
getAllImports
getAllImports(sourceFile)

Get list of all imports (paths)

Parameters :
Name Optional Description
sourceFile No

ts source file

Returns : Set<string>

set with import paths

manageDependencies
manageDependencies(repository, options)
Parameters :
Name Optional
repository No
options No
readJsonFile
readJsonFile(path)

Read and parse json file content

Parameters :
Name Optional Description
path No

json file path

Returns : any

content of the json

removeNotUsedDependenciesFromPackageJson
removeNotUsedDependenciesFromPackageJson(libraries, options)

Remove dependencies that are no longer referenced in the library

Parameters :
Name Optional
libraries No
options No
Returns : void
saveJsonFile
saveJsonFile(path, content: any)

Stringify and safe json file content

Parameters :
Name Type Optional Description
path No

json file path

content any No

content to save

Returns : void
savePackageJsonFiles
savePackageJsonFiles(libraries)

Save updated package.json files.

Parameters :
Name Optional
libraries No
updateDependenciesVersions
updateDependenciesVersions(libraries, rootPackageJson, options)

Update versions in all libraries package json files

Parameters :
Name Optional
libraries No
rootPackageJson No
options No
Returns : void

projects/schematics/src/shared/utils/new-module-utils.ts

addModuleDeclaration
addModuleDeclaration(sourceFile, insertOptions, createIfMissing)
Parameters :
Name Optional
sourceFile No
insertOptions No
createIfMissing No
addModuleExport
addModuleExport(sourceFile, insertOptions, createIfMissing)
Parameters :
Name Optional
sourceFile No
insertOptions No
createIfMissing No
addModuleImport
addModuleImport(sourceFile, insertOptions, createIfMissing)
Parameters :
Name Optional
sourceFile No
insertOptions No
createIfMissing No
addModuleProvider
addModuleProvider(sourceFile, insertOptions, createIfMissing)
Parameters :
Name Optional
sourceFile No
insertOptions No
createIfMissing No
addToModuleInternal
addToModuleInternal(sourceFile, propertyName, insertOptions, createIfMissing)
Parameters :
Name Optional
sourceFile No
propertyName No
insertOptions No
createIfMissing No
ensureModuleExists
ensureModuleExists(options)
Parameters :
Name Optional
options No
Returns : Rule
getModule
getModule(sourceFile)
Parameters :
Name Optional
sourceFile No
isDuplication
isDuplication(initializer, propertyName, content)
Parameters :
Name Optional
initializer No
propertyName No
content No
Returns : boolean
isTypeTokenDuplicate
isTypeTokenDuplicate(initializer, typeToken)
Parameters :
Name Optional
initializer No
typeToken No
Returns : boolean
normalizeTypeToken
normalizeTypeToken(token)
Parameters :
Name Optional
token No
Returns : string

projects/storefrontapp-e2e-cypress/cypress/helpers/variants/apparel-checkout-flow.ts

addMutipleProductWithoutVariantToCart
addMutipleProductWithoutVariantToCart()
addVariantOfSameProductToCart
addVariantOfSameProductToCart()
configureProductWithVariants
configureProductWithVariants()
visitProductWithoutVariantPage
visitProductWithoutVariantPage()

feature-libs/order/schematics/add-order/index.ts

addOrderFeature
addOrderFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addOrderFeatures
addOrderFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/checkout-as-persistent-user.ts

addPaymentMethod
addPaymentMethod()
addProductToCart
addProductToCart()
addShippingAddress
addShippingAddress()
goToProductPageFromCategory
goToProductPageFromCategory()
loginSuccessfully
loginSuccessfully()
selectDeliveryMethod
selectDeliveryMethod()
selectPaymentMethod
selectPaymentMethod()
selectShippingAddress
selectShippingAddress()
verifyAndPlaceOrder
verifyAndPlaceOrder()
verifyAndPlaceOrderUsing
verifyAndPlaceOrderUsing(deliveryName)
Parameters :
Name Optional
deliveryName No
verifyAndPlaceOrderWithShipping
verifyAndPlaceOrderWithShipping()

projects/storefrontapp-e2e-cypress/cypress/helpers/payment-methods.ts

addPaymentMethod
addPaymentMethod(paymentDetail)
Parameters :
Name Optional
paymentDetail No
verifyPaymentCard
verifyPaymentCard(cardLength)
Parameters :
Name Optional
cardLength No
visitPaymentDetailsPage
visitPaymentDetailsPage()

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order.ts

addProduct
addProduct(productCode?)
Parameters :
Name Optional
productCode Yes
Returns : void
checkoutNextStep
checkoutNextStep(url)
Parameters :
Name Optional
url No
getFormFieldByValue
getFormFieldByValue(value)
Parameters :
Name Optional
value No
login
login()
register
register()
registerAndLogin
registerAndLogin()
Returns : void
verifyTabbingOrder
verifyTabbingOrder(containerSelector, elements)
Parameters :
Name Optional
containerSelector No
elements No
verifyTabElement
verifyTabElement(tabElement)
Parameters :
Name Optional
tabElement No

projects/storefrontapp-e2e-cypress/cypress/helpers/cart.ts

addProductAsAnonymous
addProductAsAnonymous()
addProductFromPdp
addProductFromPdp(productCode)

Adds product from PDP directly

Parameters :
Name Optional
productCode No
addProductWhenLoggedIn
addProductWhenLoggedIn(mobile: boolean)
Parameters :
Name Type Optional
mobile boolean No
checkAddedToCartDialog
checkAddedToCartDialog(itemsNumber: number)
Parameters :
Name Type Optional
itemsNumber number No
checkBasicCart
checkBasicCart()
checkCartSummary
checkCartSummary(subtotal)
Parameters :
Name Optional
subtotal No
checkMiniCartCount
checkMiniCartCount(expectedCount)
Parameters :
Name Optional
expectedCount No
checkProductInCart
checkProductInCart(product, qty: number, currency: string)
Parameters :
Name Type Optional
product No
qty number No
currency string No
clickAddToCart
clickAddToCart()
closeAddedToCartDialog
closeAddedToCartDialog()
getBaseUrlPrefix
getBaseUrlPrefix()
getCartItem
getCartItem(name)
Parameters :
Name Optional
name No
getOccUrlPrefix
getOccUrlPrefix()
goToCart
goToCart()
goToFirstProductFromSearch
goToFirstProductFromSearch(id, mobile: boolean)
Parameters :
Name Type Optional
id No
mobile boolean No
incrementQuantity
incrementQuantity()
loginCartUser
loginCartUser()
loginRegisteredUser
loginRegisteredUser()
logOutAndEmptyCart
logOutAndEmptyCart()
logOutAndNavigateToEmptyCart
logOutAndNavigateToEmptyCart()
manipulateCartQuantity
manipulateCartQuantity()
outOfStock
outOfStock()
registerCartPageRoute
registerCartPageRoute()
registerCartRefreshRoute
registerCartRefreshRoute()
registerCartUser
registerCartUser()
registerCreateCartRoute
registerCreateCartRoute()
registerDeleteCartItemRoute
registerDeleteCartItemRoute()
registerSaveCartRoute
registerSaveCartRoute()
removeAllItemsFromCart
removeAllItemsFromCart()
removeCartItem
removeCartItem(product)
Parameters :
Name Optional
product No
validateEmptyCart
validateEmptyCart()
verifyCartNotEmpty
verifyCartNotEmpty()
verifyMergedCartWhenLoggedIn
verifyMergedCartWhenLoggedIn()

projects/storefrontapp-e2e-cypress/cypress/helpers/applied-promotions.ts

addProductToCart
addProductToCart()
checkAppliedPromotions
checkAppliedPromotions()
checkAppliedPromotionsFordifferentCartTotals
checkAppliedPromotionsFordifferentCartTotals()
checkForAppliedPromotions
checkForAppliedPromotions()
checkForAppliedPromotionsInCartModal
checkForAppliedPromotionsInCartModal(productName)
Parameters :
Name Optional
productName No
decreaseQuantityOfCartEntry
decreaseQuantityOfCartEntry()
goToCartDetailsViewFromCartDialog
goToCartDetailsViewFromCartDialog()
goToOrderHistoryDetailsFromSummary
goToOrderHistoryDetailsFromSummary()
removeCartEntry
removeCartEntry()
selectDeliveryMethod
selectDeliveryMethod()
selectPaymentMethod
selectPaymentMethod()
selectShippingAddress
selectShippingAddress()

projects/storefrontapp-e2e-cypress/cypress/helpers/cart-import-export.ts

addProductToCart
addProductToCart(productCode)

Navigates to the PDP page to add the product with the given code.

Parameters :
Name Optional Description
productCode No

identifies the unique product to add.

attemptUpload
attemptUpload(csvPath)

Attempt to upload a csv by filling out import cart form and clicking "Upload".

Parameters :
Name Optional
csvPath No
convertCsvToArray
convertCsvToArray(csv)

Converts a csv into an array interpretable for the importCartTest method.

Parameters :
Name Optional
csv No
Returns : Array<string>
exportCart
exportCart(expectedData?)

Goes to the cart page and clicks the button to export cart.

Parameters :
Name Optional Description
expectedData Yes

will compare the data of the downloaded .csv to the parsed string.

getCsvHeaders
getCsvHeaders(csv)

Gets the header names of columns from a csv string.

Parameters :
Name Optional
csv No
Returns : Array<string>
getSavedDate
getSavedDate()

Gets the current date in a format matching the 'Saved Date' column.

Returns : string
importCartTestFromConfig
importCartTestFromConfig(config)

Standardized E2E Test for import cart scenarios.

Parameters :
Name Optional
config No
restoreCart
restoreCart(cart)

Restore the imported cart from the saved carts list.

Parameters :
Name Optional
cart No
verifyCart
verifyCart(config)

Check that the restored cart contains the correct products.

Parameters :
Name Optional
config No
verifyImportedData
verifyImportedData(config, cart)

Check that the imported cart displays correctly in saved carts list.

Parameters :
Name Optional
config No
cart No

projects/storefrontapp-e2e-cypress/cypress/helpers/save-for-later.ts

addProductToCart
addProductToCart(product)
Parameters :
Name Optional
product No
getItem
getItem(product, position)
Parameters :
Name Optional
product No
position No
moveItem
moveItem(product, targetPosition, isAnonymous: boolean)
Parameters :
Name Type Optional
product No
targetPosition No
isAnonymous boolean No
removeItem
removeItem(product, position)
Parameters :
Name Optional
product No
position No
stubForCartRefresh
stubForCartRefresh()
stubForCartsRefresh
stubForCartsRefresh()
validateCart
validateCart(qtyInCart, qtyInSavedCart)
Parameters :
Name Optional
qtyInCart No
qtyInSavedCart No
validateCartPromotion
validateCartPromotion(hasPromotion: boolean)
Parameters :
Name Type Optional
hasPromotion boolean No
validateProduct
validateProduct(product, qty: number, position)
Parameters :
Name Type Optional
product No
qty number No
position No
verifyMiniCartQty
verifyMiniCartQty(qty)
Parameters :
Name Optional
qty No

projects/storefrontapp-e2e-cypress/cypress/helpers/wish-list.ts

addProductToCart
addProductToCart(product)
Parameters :
Name Optional
product No
addToWishList
addToWishList(product)
Parameters :
Name Optional
product No
addToWishListAnonymous
addToWishListAnonymous(product)
Parameters :
Name Optional
product No
addToWishListFromPage
addToWishListFromPage()
checkoutFromCart
checkoutFromCart(checkoutProducts)
Parameters :
Name Optional
checkoutProducts No
checkoutFromWishList
checkoutFromWishList(checkoutProducts)
Parameters :
Name Optional
checkoutProducts No
checkWishListPersisted
checkWishListPersisted(product)
Parameters :
Name Optional
product No
fillAddressForm
fillAddressForm(shippingAddressData)
Parameters :
Name Optional
shippingAddressData No
fillPaymentForm
fillPaymentForm(paymentDetailsData, billingAddress?)
Parameters :
Name Optional
paymentDetailsData No
billingAddress Yes
getCartItem
getCartItem(name)
Parameters :
Name Optional
name No
getWishListItem
getWishListItem(name)
Parameters :
Name Optional
name No
goToCartAndCheckout
goToCartAndCheckout(checkoutProducts)
Parameters :
Name Optional
checkoutProducts No
goToProductPage
goToProductPage(product)
Parameters :
Name Optional
product No
loginWishListUser
loginWishListUser()
placeOrderWithProducts
placeOrderWithProducts(checkoutProducts)
Parameters :
Name Optional
checkoutProducts No
proceedToCheckout
proceedToCheckout()
registerWishListUser
registerWishListUser()
removeProductFromPdp
removeProductFromPdp()
removeProductFromWishListPage
removeProductFromWishListPage(product)
Parameters :
Name Optional
product No
verifyOrderConfirmationPage
verifyOrderConfirmationPage(checkoutProducts)
Parameters :
Name Optional
checkoutProducts No
verifyProductInWishList
verifyProductInWishList(product)
Parameters :
Name Optional
product No
verifyProductInWishListPdp
verifyProductInWishListPdp()
verifyProductNotInWishListPdp
verifyProductNotInWishListPdp()
waitForGetWishList
waitForGetWishList()

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-saved-cart.ts

addProductToCart
addProductToCart(product, quantity)
Parameters :
Name Optional
product No
quantity No
clickSavedCartButtonsFromCartPage
clickSavedCartButtonsFromCartPage(position)
Parameters :
Name Optional
position No
interceptCloneSavedCartEndpoint
interceptCloneSavedCartEndpoint(cartCode)
Parameters :
Name Optional
cartCode No
interceptDeleteCartEndpoint
interceptDeleteCartEndpoint(cartCode)
Parameters :
Name Optional
cartCode No
interceptGetAllSavedCartEndpoint
interceptGetAllSavedCartEndpoint()
interceptGetSavedCartEndpoint
interceptGetSavedCartEndpoint(cartCode)
Parameters :
Name Optional
cartCode No
interceptRestoreSavedCartEndpoint
interceptRestoreSavedCartEndpoint(cartCode)
Parameters :
Name Optional
cartCode No
interceptSaveCartEndpoint
interceptSaveCartEndpoint(cartCode)
Parameters :
Name Optional
cartCode No
loginB2bUser
loginB2bUser()
restoreCart
restoreCart(product, savedCartForm: any, isEmptyCart: boolean, cloneSavedCart)
Parameters :
Name Type Optional
product No
savedCartForm any No
isEmptyCart boolean No
cloneSavedCart No
saveActiveCart
saveActiveCart()
updateSavedCartAndDelete
updateSavedCartAndDelete(product, savedCartForm: any, deleteEntry: boolean)
Parameters :
Name Type Optional
product No
savedCartForm any No
deleteEntry boolean No
updateSavedCartAndRestore
updateSavedCartAndRestore(product, savedCartForm: any)
Parameters :
Name Type Optional
product No
savedCartForm any No
verifyActiveCartWasSaved
verifyActiveCartWasSaved(cartCode)
Parameters :
Name Optional
cartCode No
verifyCartDetails
verifyCartDetails(cart: any)
Parameters :
Name Type Optional
cart any No
verifyCartPageTabbingOrder
verifyCartPageTabbingOrder()
verifyDetailsTabbingOrder
verifyDetailsTabbingOrder()
verifyListingTabbingOrder
verifyListingTabbingOrder()
verifyMiniCartQuantity
verifyMiniCartQuantity(quantity)
Parameters :
Name Optional
quantity No
verifyModalTabbingOrder
verifyModalTabbingOrder()
visitCartPage
visitCartPage()
visitSavedCartDetailsPage
visitSavedCartDetailsPage(cartCode)
Parameters :
Name Optional
cartCode No
visitSavedCartListingPage
visitSavedCartListingPage()
waitForCartPageData
waitForCartPageData(product)
Parameters :
Name Optional
product No
waitForSavedCartDetailsPageData
waitForSavedCartDetailsPageData(product)
Parameters :
Name Optional
product No
waitForSavedCartListingPageData
waitForSavedCartListingPageData(product)
Parameters :
Name Optional
product No

projects/storefrontapp-e2e-cypress/cypress/helpers/coupons/cart-coupon.ts

addProductToCart
addProductToCart(productCode)
Parameters :
Name Optional
productCode No
applyCoupon
applyCoupon(couponCode)
Parameters :
Name Optional
couponCode No
applyMyCouponAsAnonymous
applyMyCouponAsAnonymous()
ApplyMyCoupons
ApplyMyCoupons(couponCode, checkOrderPromotion: boolean)
Parameters :
Name Type Optional
couponCode No
checkOrderPromotion boolean No
applyWrongCoupon
applyWrongCoupon()
claimCoupon
claimCoupon(couponCode)
Parameters :
Name Optional
couponCode No
getCouponItemFromCart
getCouponItemFromCart(couponCode)
Parameters :
Name Optional
couponCode No
getCouponItemOrderSummary
getCouponItemOrderSummary(couponCode)
Parameters :
Name Optional
couponCode No
navigateToCartPage
navigateToCartPage()
navigateToCheckoutPage
navigateToCheckoutPage()
navigateToOrderHistoryPage
navigateToOrderHistoryPage(orderData: any, couponCode)
Parameters :
Name Type Optional
orderData any No
couponCode No
placeOrder
placeOrder(token: any)
Parameters :
Name Type Optional
token any No
registerCartRefreshRoute
registerCartRefreshRoute()
registerOrderDetailsRoute
registerOrderDetailsRoute(orderCode)
Parameters :
Name Optional
orderCode No
registerProductDetailsRoute
registerProductDetailsRoute(productCode)
Parameters :
Name Optional
productCode No
removeCoupon
removeCoupon(couponCode)
Parameters :
Name Optional
couponCode No
verifyCouponAndPromotion
verifyCouponAndPromotion(couponCode, totalPrice, savedPrice)
Parameters :
Name Optional
couponCode No
totalPrice No
savedPrice No
verifyCouponAndSavedPrice
verifyCouponAndSavedPrice(couponCode, savedPrice)
Parameters :
Name Optional
couponCode No
savedPrice No
verifyCouponAndSavedPriceInOrder
verifyCouponAndSavedPriceInOrder(couponCode, savedPrice)
Parameters :
Name Optional
couponCode No
savedPrice No
verifyCouponInOrderHistory
verifyCouponInOrderHistory(couponCode, totalPrice, savedPrice)
Parameters :
Name Optional
couponCode No
totalPrice No
savedPrice No
verifyCustomerCouponRemoving
verifyCustomerCouponRemoving()
verifyGiftProductCoupon
verifyGiftProductCoupon(productCode)
Parameters :
Name Optional
productCode No
verifyMyCoupons
verifyMyCoupons()
verifyNoCouponInOrderHistory
verifyNoCouponInOrderHistory()
verifyOrderHistory
verifyOrderHistory(orderData: any, couponCode?)
Parameters :
Name Type Optional
orderData any No
couponCode Yes
verifyOrderHistoryForCouponAndPrice
verifyOrderHistoryForCouponAndPrice(orderData: any, couponCode?, savedPrice?)
Parameters :
Name Type Optional
orderData any No
couponCode Yes
savedPrice Yes
verifyOrderPlacingWithCouponAndCustomerCoupon
verifyOrderPlacingWithCouponAndCustomerCoupon()
verifyProductInCart
verifyProductInCart(productCode)
Parameters :
Name Optional
productCode No
visitProductPage
visitProductPage(productCode)
Parameters :
Name Optional
productCode No

projects/schematics/src/add-pwa/index.ts

addPWA
addPWA(options)
Parameters :
Name Optional
options No
Returns : Rule
removeServiceWorkerSetup
removeServiceWorkerSetup(host, modulePath)
Parameters :
Name Optional
host No
modulePath No
updateAppModule
updateAppModule(options: any)
Parameters :
Name Type Optional
options any No
Returns : Rule

feature-libs/qualtrics/schematics/add-qualtrics/index.ts

addQualtricsFeature
addQualtricsFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addQualtricsFeatures
addQualtricsFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/site-context-selector.ts

addressBookNextStep
addressBookNextStep()
assertSiteContextChange
assertSiteContextChange(testPath)
Parameters :
Name Optional
testPath No
Returns : void
deliveryModeNextStep
deliveryModeNextStep()
doPlaceOrder
doPlaceOrder()
paymentDetailsNextStep
paymentDetailsNextStep()
siteContextChange
siteContextChange(pagePath, alias, selectedOption, label)
Parameters :
Name Optional
pagePath No
alias No
selectedOption No
label No
Returns : void
stub
stub(request, alias)
Parameters :
Name Optional
request No
alias No
Returns : void
verifySiteContextChangeUrl
verifySiteContextChangeUrl(pagePath, alias, selectedOption, label, testPath)
Parameters :
Name Optional
pagePath No
alias No
selectedOption No
label No
testPath No
Returns : void

projects/schematics/src/migrations/3_0/ssr/ssr.ts

addSetupPackageJsonDependencies
addSetupPackageJsonDependencies(packageJson: any)
Parameters :
Name Type Optional
packageJson any No
Returns : Rule
migrate
migrate()
Returns : Rule
updateImport
updateImport()
Returns : Rule

feature-libs/smartedit/schematics/add-smartedit/index.ts

addSmartEditFeature
addSmartEditFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addSmartEditFeatures
addSmartEditFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/schematics/src/add-spartacus/index.ts

addSpartacus
addSpartacus(options)
Parameters :
Name Optional
options No
Returns : Rule
addSpartacusFeatures
addSpartacusFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule
increaseBudgets
increaseBudgets()
Returns : Rule
installStyles
installStyles(options)
Parameters :
Name Optional
options No
Returns : Rule
prepareDependencies
prepareDependencies()
Returns : NodeDependency[]
updateAppModule
updateAppModule(project)
Parameters :
Name Optional
project No
Returns : Rule
updateIndexFile
updateIndexFile(tree, options)
Parameters :
Name Optional
tree No
options No
Returns : Rule
updateMainComponent
updateMainComponent(project, options)
Parameters :
Name Optional
project No
options No
Returns : Rule

integration-libs/cdc/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

integration-libs/digital-payments/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

integration-libs/epd-visualization/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/asm/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/cart/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/order/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/product/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/organization/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/checkout/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/smartedit/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/product-configurator/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/storefinder/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/qualtrics/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/tracking/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

feature-libs/user/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

projects/schematics/src/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

integration-libs/cds/src/schematics/add-library/index.ts

addSpartacusLibrary
addSpartacusLibrary(taskOptions)
Parameters :
Name Optional
taskOptions No
Returns : Rule

projects/schematics/src/add-ssr/index.ts

addSSR
addSSR(options)
Parameters :
Name Optional
options No
Returns : Rule
modifyAppModuleFile
modifyAppModuleFile()
Returns : Rule
modifyAppServerModuleFile
modifyAppServerModuleFile()
Returns : Rule
modifyIndexHtmlFile
modifyIndexHtmlFile(options)
Parameters :
Name Optional
options No
Returns : Rule
prepareDependencies
prepareDependencies()
Returns : NodeDependency[]
provideServerFile
provideServerFile(options)
Parameters :
Name Optional
options No
Returns : Source

feature-libs/storefinder/schematics/add-storefinder/index.ts

addStorefinderFeature
addStorefinderFeature(options)
Parameters :
Name Optional
options No
Returns : Rule
addStorefinderFeatures
addStorefinderFeatures(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/schematics/src/migrations/3_0/storefinder/storefinder.ts

addStorefinderPackageJsonDependencies
addStorefinderPackageJsonDependencies(packageJson: any)
Parameters :
Name Type Optional
packageJson any No
Returns : Rule
isStorefinderPresent
isStorefinderPresent(tree, packageJson: any, appModulePath)
Parameters :
Name Type Optional
tree No
packageJson any No
appModulePath No
Returns : Promise<boolean>
migrate
migrate()
Returns : Rule
removeOldSetup
removeOldSetup(appModulePath)
Parameters :
Name Optional
appModulePath No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/support/utils/cart.ts

addToCart
addToCart(cartCode, productCode, quantity, accessToken)
Parameters :
Name Optional
cartCode No
productCode No
quantity No
accessToken No
createCart
createCart(accessToken)
Parameters :
Name Optional
accessToken No

projects/storefrontapp-e2e-cypress/cypress/helpers/textfield-configuration.ts

addToCartAndVerify
addToCartAndVerify(shopName, productId)

Add a product to the cart. Verifies whether the cart is not empty and contains the product.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : void
checkAttributeDisplayed
checkAttributeDisplayed(attributeName)

Verifies whether the attribute is displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
Returns : void
checkConfigurationPageIsDisplayed
checkConfigurationPageIsDisplayed()

Verifies whether the configuration page is visible.

Returns : void
checkTextfieldProductInCart
checkTextfieldProductInCart(productId)

Verifies whether the cart contains the product.

Parameters :
Name Optional Description
productId No
  • ProductID
Returns : void
clickAddToCartButton
clickAddToCartButton(shopName)

Clicks 'Add to Cart' button.

Parameters :
Name Optional Description
shopName No
  • shop name
Returns : void
clickOnAddToCartBtnOnPD
clickOnAddToCartBtnOnPD()

Clicks 'Add to Cart' button on the product details page.

Returns : void
clickOnConfigureButton
clickOnConfigureButton()

Clicks on 'Configure' button.

Returns : void
clickOnEditConfigurationLink
clickOnEditConfigurationLink(cartItemIndex)

Clicks on the 'Edit Configuration' link in cart for a certain cart item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
Returns : void
clickOnViewCartBtnOnPD
clickOnViewCartBtnOnPD()

Clicks on 'View Cart' on the product details page.

Returns : void
getAttributeId
getAttributeId(attributeName)

Retrieves attribute ID.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
Returns : string
  • Attribute ID
goToConfigurationPage
goToConfigurationPage(shopName, productId)

Navigates to the product configuration page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : Chainable<Window>
  • New configuration window
goToProductDetailsPage
goToProductDetailsPage(shopName, productId)

Navigates to the product configuration page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : Chainable<Window>
  • New configuration window
selectAttribute
selectAttribute(attributeName, value?)

Selects value of the corresponding attribute.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
value Yes
  • Value name
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/add-to-cart.ts

addToCartTabbingOrder
addToCartTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/anonymous-consents.ts

anonoymousConsentConfig
anonoymousConsentConfig(registerConsent, showLegalDescriptionInDialog: boolean, requiredConsents, consentManagementPage)
Parameters :
Name Type Optional
registerConsent No
showLegalDescriptionInDialog boolean No
requiredConsents No
consentManagementPage No
anonymousConfigTestFlow
anonymousConfigTestFlow()
changeLanguageTest
changeLanguageTest()
checkAllInputConsentState
checkAllInputConsentState(state)
Parameters :
Name Optional
state No
checkBannerHidden
checkBannerHidden()
checkConsentNotExist
checkConsentNotExist(text)
Parameters :
Name Optional
text No
checkConsentsInConsentPage
checkConsentsInConsentPage()
checkDialogClosed
checkDialogClosed()
checkDialogDescription
checkDialogDescription()
checkDialogOpen
checkDialogOpen()
checkInputConsentState
checkInputConsentState(position, state)
Parameters :
Name Optional
position No
state No
clearAllConsent
clearAllConsent()
clickAllowAllFromBanner
clickAllowAllFromBanner()
clickViewDetailsFromBanner
clickViewDetailsFromBanner()
closeAnonymousConsentsDialog
closeAnonymousConsentsDialog()
giveRegistrationConsentTest
giveRegistrationConsentTest()
loggedInUserBannerTest
loggedInUserBannerTest()
loggedInUserFooterLinkTest
loggedInUserFooterLinkTest()
movingFromAnonymousToRegisteredUser
movingFromAnonymousToRegisteredUser()
navigateToConsentPage
navigateToConsentPage()
openAnonymousConsentsDialog
openAnonymousConsentsDialog()
registerNewUserAndLogin
registerNewUserAndLogin(newUser, giveRegistrationConsent, hiddenConsent?)
Parameters :
Name Optional
newUser No
giveRegistrationConsent No
hiddenConsent Yes
registerUserAndCheckMyAccountConsent
registerUserAndCheckMyAccountConsent(user, consentCheckBox, position, hiddenConsent?)
Parameters :
Name Optional
user No
consentCheckBox No
position No
hiddenConsent Yes
seeBannerAsAnonymous
seeBannerAsAnonymous()
selectAllConsent
selectAllConsent()
sessionLogin
sessionLogin()
showAnonymousConfigTest
showAnonymousConfigTest()
testAsAnonymousUser
testAsAnonymousUser()
testAsLoggedInUser
testAsLoggedInUser()
toggleAnonymousConsent
toggleAnonymousConsent(position)
Parameters :
Name Optional
position No

projects/core/src/anonymous-consents/store/anonymous-consents-store.module.ts

anonymousConsentsStatePersistenceFactory
anonymousConsentsStatePersistenceFactory(anonymousConsentsStatePersistenceService)
Parameters :
Name Optional
anonymousConsentsStatePersistenceService No
Returns : void

projects/schematics/src/shared/utils/html-utils.ts

appendHtmlElementToHead
appendHtmlElementToHead(host, htmlFilePath, elementHtml)
Parameters :
Name Optional
host No
htmlFilePath No
elementHtml No
getChildElementIndentation
getChildElementIndentation(element)
Parameters :
Name Optional
element No
getElementByTagName
getElementByTagName(tagName, htmlContent)

Finds an element by its tag name.

Parameters :
Name Optional
tagName No
htmlContent No
Returns : DefaultTreeElement | null
getHtmlHeadTagElement
getHtmlHeadTagElement(htmlContent)

Parses the given HTML file and returns the head element if available.

Parameters :
Name Optional
htmlContent No
Returns : DefaultTreeElement | null

projects/storefrontapp-e2e-cypress/cypress/helpers/vendor/cds/merchandising-carousel.ts

applyFacet
applyFacet(facetGroup, facetName)
Parameters :
Name Optional
facetGroup No
facetName No
Returns : void
clickOnCarouselItem
clickOnCarouselItem(productId, checkForCarouselEvent?: boolean)
Parameters :
Name Type Optional
productId No
checkForCarouselEvent boolean Yes
Returns : void
navigateToCategory
navigateToCategory(categoryName)
Parameters :
Name Optional
categoryName No
Returns : void
navigateToHomepage
navigateToHomepage()
Returns : void
verifyCarouselClickEvent
verifyCarouselClickEvent(productSku, carouselEvent: any)
Parameters :
Name Type Optional
productSku No
carouselEvent any No
verifyCarouselEvent
verifyCarouselEvent(carouselEvent: any)
Parameters :
Name Type Optional
carouselEvent any No
verifyCarouselItemRendered
verifyCarouselItemRendered($carouselItem, index)
Parameters :
Name Optional
$carouselItem No
index No
Returns : void
verifyCarouselItemsRendered
verifyCarouselItemsRendered($merchandisingCarousel)
Parameters :
Name Optional
$merchandisingCarousel No
Returns : void
verifyCarouselLevelMetadata
verifyCarouselLevelMetadata($merchandisingCarousel)
Parameters :
Name Optional
$merchandisingCarousel No
Returns : void
verifyCarouselViewEvent
verifyCarouselViewEvent(carouselEvent: any)
Parameters :
Name Type Optional
carouselEvent any No
verifyFirstCarouselItemPrice
verifyFirstCarouselItemPrice(currencySymbol)
Parameters :
Name Optional
currencySymbol No
Returns : void
verifyFirstCarouselItemTextContent
verifyFirstCarouselItemTextContent(toContain, toNotContain)
Parameters :
Name Optional
toContain No
toNotContain No
Returns : void
verifyMerchandisingCarouselRendersOnBrandPage
verifyMerchandisingCarouselRendersOnBrandPage(strategyRequestAlias, brandCode, language?, additionalFacets?)
Parameters :
Name Optional
strategyRequestAlias No
brandCode No
language Yes
additionalFacets Yes
Returns : void
verifyMerchandisingCarouselRendersOnCategoryPage
verifyMerchandisingCarouselRendersOnCategoryPage(strategyRequestAlias, categoryCode, language?, additionalFacets?, containsConsentReference?: boolean)
Parameters :
Name Type Optional
strategyRequestAlias No
categoryCode No
language Yes
additionalFacets Yes
containsConsentReference boolean Yes
Returns : void
verifyMerchandisingCarouselRendersOnHomePage
verifyMerchandisingCarouselRendersOnHomePage(strategyRequestAlias, language?, containsConsentReference?: boolean)
Parameters :
Name Type Optional
strategyRequestAlias No
language Yes
containsConsentReference boolean Yes
Returns : void
verifyMerchandisingCarouselRendersOnPDPPage
verifyMerchandisingCarouselRendersOnPDPPage(strategyRequestAlias, productId, language?)
Parameters :
Name Optional
strategyRequestAlias No
productId No
language Yes
Returns : void
verifyMerchandisingCarouselRendersProducts
verifyMerchandisingCarouselRendersProducts()
Returns : void
verifyRequestToStrategyService
verifyRequestToStrategyService(requestAlias, strategyRequestContext)
Parameters :
Name Optional
requestAlias No
strategyRequestContext No
Returns : void
waitForCarouselViewEvent
waitForCarouselViewEvent()
Returns : void

feature-libs/asm/root/asm-loader.module.ts

asmFactory
asmFactory(asmEnablerService)

We do not like to block the UI, which is why we delgate loading of ASM to a real component; the router and state aren't available in an optimized way during the APP_INITIALIZER.

Parameters :
Name Optional
asmEnablerService No
Returns : void

feature-libs/asm/core/asm-core.module.ts

asmStatePersistenceFactory
asmStatePersistenceFactory(asmStatePersistenceService)
Parameters :
Name Optional
asmStatePersistenceService No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/asm.ts

asmTabbingOrderNoSelectedUser
asmTabbingOrderNoSelectedUser(config)
Parameters :
Name Optional
config No
asmTabbingOrderNotLoggedIn
asmTabbingOrderNotLoggedIn(config)
Parameters :
Name Optional
config No
asmTabbingOrderWithSelectedUser
asmTabbingOrderWithSelectedUser(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/infinite-scroll.ts

assertDefaultNumberOfProducts
assertDefaultNumberOfProducts(view)
Parameters :
Name Optional
view No
backtoTopIsNotVisible
backtoTopIsNotVisible()
backToTopIsVisible
backToTopIsVisible(isShowMoreButton?: boolean)
Parameters :
Name Type Optional
isShowMoreButton boolean Yes
configScroll
configScroll(active: boolean, productLimit, showMoreButton: boolean)
Parameters :
Name Type Optional
active boolean No
productLimit No
showMoreButton boolean No
isPaginationNotVisible
isPaginationNotVisible()
isPaginationVisible
isPaginationVisible()
scrollToFooter
scrollToFooter(totalResults, isShowMoreButton?: boolean, productLimit?)
Parameters :
Name Type Optional
totalResults No
isShowMoreButton boolean Yes
productLimit Yes
verifyFilterResetsList
verifyFilterResetsList()
verifyGridResetsList
verifyGridResetsList()
verifyNumberOfProducts
verifyNumberOfProducts(numberOfProducts)
Parameters :
Name Optional
numberOfProducts No
verifySortingResetsList
verifySortingResetsList()

projects/storefrontapp-e2e-cypress/cypress/helpers/product-search.ts

assertFirstProduct
assertFirstProduct()
assertNumberOfProducts
assertNumberOfProducts(alias, category)
Parameters :
Name Optional
alias No
category No
checkDistinctProductName
checkDistinctProductName(firstProduct)
Parameters :
Name Optional
firstProduct No
checkFirstItem
checkFirstItem(productName)
Parameters :
Name Optional
productName No
Returns : void
choosePage
choosePage(pageNumber)
Parameters :
Name Optional
pageNumber No
Returns : void
clearActiveFacet
clearActiveFacet()
clearSelectedFacet
clearSelectedFacet()
clickFacet
clickFacet(header)
Parameters :
Name Optional
header No
clickSearchIcon
clickSearchIcon()
createProductFacetQuery
createProductFacetQuery(param, search, alias)
Parameters :
Name Optional
param No
search No
alias No
Returns : void
createProductQuery
createProductQuery(alias, queryId, pageSize, currentPage)
Parameters :
Name Optional
alias No
queryId No
pageSize No
currentPage No
Returns : void
createProductSortQuery
createProductSortQuery(sort, alias)
Parameters :
Name Optional
sort No
alias No
Returns : void
enterProduct
enterProduct()
filterUsingFacetFiltering
filterUsingFacetFiltering()
nextPage
nextPage()
Returns : void
previousPage
previousPage()
Returns : void
searchForProduct
searchForProduct(product)
Parameters :
Name Optional
product No
searchResult
searchResult()
sortByHighestPrice
sortByHighestPrice()
sortByLowestPrice
sortByLowestPrice()
sortByNameAscending
sortByNameAscending()
sortByNameDescending
sortByNameDescending()
sortByRelevance
sortByRelevance()
sortByTopRated
sortByTopRated()
verifyChoosePage
verifyChoosePage(pageNumber)
Parameters :
Name Optional
pageNumber No
Returns : void
verifyNextPage
verifyNextPage(pageNumber)
Parameters :
Name Optional
pageNumber No
Returns : void
verifyPreviousPage
verifyPreviousPage(pageNumber)
Parameters :
Name Optional
pageNumber No
Returns : void
verifyProductSearch
verifyProductSearch(productAlias, sortingAlias, sortBy)
Parameters :
Name Optional
productAlias No
sortingAlias No
sortBy No
Returns : void
viewMode
viewMode()

projects/storefrontapp-e2e-cypress/cypress/helpers/inventory-display.ts

assertInventoryDisplay
assertInventoryDisplay(productCode, alias, functionality)
Parameters :
Name Optional
productCode No
alias No
functionality No
configureInventoryDisplay
configureInventoryDisplay(enable: boolean)
Parameters :
Name Type Optional
enable boolean No
interceptProductDetails
interceptProductDetails(productCode)
Parameters :
Name Optional
productCode No
runInventoryDisplayE2E
runInventoryDisplayE2E(business, sampleData: any)
Parameters :
Name Type Optional
business No
sampleData any No
testInventoryDisplay
testInventoryDisplay(productCode, functionality)
Parameters :
Name Optional
productCode No
functionality No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/assignments.ts

assignmentsTest
assignmentsTest(config)
Parameters :
Name Optional
config No

tools/build-lib/augmented-types/index.ts

augmentableTypesPostStep
augmentableTypesPostStep(context, options)

Post build step

Parameters :
Name Optional
context No
options No
Returns : Promise<BuilderOutput>
augmentedTypesBuilder
augmentedTypesBuilder(options, context)

Builder that runs default ng-packagr builder ('@angular-devkit/build-angular:ng-packagr') and performs additional post step to move augmentable types to root d.ts file.

It's a workaround to make TS types augmentable, reference issues:

Parameters :
Name Optional
options No
context No
Returns : Observable<BuilderOutput>
getNgPackgrLibOutputPath
getNgPackgrLibOutputPath(ngPackagerFile)

Get output directory for ng packager job

Parameters :
Name Optional
ngPackagerFile No
ngPackagrBuild
ngPackagrBuild(context, options)

Run ng packager build step as is

Parameters :
Name Optional
context No
options No
Returns : Promise<BuilderOutput>
propagateAugmentableTypes
propagateAugmentableTypes(libPath, logger)

Propagate augmentable types for every package.json file in the built in library

Parameters :
Name Optional
libPath No
logger No

projects/core/src/auth/user-auth/user-auth.module.ts

authStatePersistenceFactory
authStatePersistenceFactory(authStatePersistenceService)
Parameters :
Name Optional
authStatePersistenceService No
checkOAuthParamsInUrl
checkOAuthParamsInUrl(authService, configInit)

Initialize the check for token or code in the url returned from the OAuth server.

Parameters :
Name Optional
authService No
configInit No
Returns : Promise<void>

feature-libs/organization/administration/core/store/reducers/b2b-user.reducer.ts

b2bUserApproverListReducer
b2bUserApproverListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
b2bUserEntitiesReducer
b2bUserEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : B2BUser
b2bUserPermissionListReducer
b2bUserPermissionListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
b2bUserUserGroupListReducer
b2bUserUserGroupListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
userListReducer
userListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

projects/core/src/site-context/config/base-site-config-validator.ts

baseSiteConfigValidator
baseSiteConfigValidator(config)
Parameters :
Name Optional
config No

projects/core/src/auth/user-auth/config/base-url-config-validator.ts

baseUrlConfigValidator
baseUrlConfigValidator(config)
Parameters :
Name Optional
config No

tools/schematics/testing.ts

beforeExit
beforeExit()
Returns : void
buildLibs
buildLibs()
Returns : void
buildSchematics
buildSchematics(options)
Parameters :
Name Optional
options No
Returns : void
buildSchematicsAndPublish
buildSchematicsAndPublish(buildCmd)
Parameters :
Name Optional
buildCmd No
Returns : void
executeCommand
executeCommand(command)
Parameters :
Name Optional
command No
Returns : Promise<void>
program
program()
Returns : Promise<void>
publishLibs
publishLibs(reload)
Parameters :
Name Optional
reload No
Returns : void
startVerdaccio
startVerdaccio()
Returns : ChildProcess
testAllSchematics
testAllSchematics()
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/benchmark.ts

benchmark
benchmark()

Utility function to benchmark a test suite using events emmitted by the Cypress test runner

To benchmark your test, just import and call this function before the test suite runs.

feature-libs/organization/administration/core/store/reducers/budget.reducer.ts

budgetsEntitiesReducer
budgetsEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Budget
budgetsListReducer
budgetsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

feature-libs/organization/administration/components/budget/budget.config.ts

budgetTableConfigFactory
budgetTableConfigFactory()
Returns : TableConfig

projects/core/src/util/rxjs/buffer-debounce-time.ts

bufferDebounceTime
bufferDebounceTime(time, scheduler?)
Parameters :
Name Optional
time No
scheduler Yes
Returns : OperatorFunction<T, T[]>

projects/storefrontlib/cms-structure/utils/cms-structure.util.ts

buildCmsStructure
buildCmsStructure(undefined)
Parameters :
Name Optional
No
Returns : CmsStructureConfig
buildLayoutConfig
buildLayoutConfig(undefined)
Parameters :
Name Optional
No
Returns : LayoutConfig
provideCmsStructure
provideCmsStructure(options)

Helper function to simplify the creation of static CMS structure (CmsStructureConfig). The helper function leverage the provideConfig, and is only providing an easy way to generate the cms structure. The function creates a configuration structure for components, page slot and page template. The following example adds a component to a page slot:

```ts

  • provideCmsStructure({
  • componentId: 'LoginComponent',
  • pageSlotPosition: 'SiteLogin'
  • })
  • ```
Parameters :
Name Optional
options No
Returns : ValueProvider

projects/schematics/src/migrations/mechanism/removed-public-api-deprecations/removed-public-api-deprecation.ts

buildComment
buildComment(content)
Parameters :
Name Optional
content No
Returns : string
removedPublicApiDeprecation
removedPublicApiDeprecation(tree, context, removedNodes)
Parameters :
Name Optional
tree No
context No
removedNodes No
Returns : Tree

projects/schematics/src/shared/utils/workspace-utils.ts

buildDefaultPath
buildDefaultPath(project)

Build a default project path for generating.

Parameters :
Name Optional Description
project No

The project to build the path for.

Returns : string
getAngularJsonFile
getAngularJsonFile(tree, possibleProjectFiles)
Parameters :
Name Optional
tree No
possibleProjectFiles No
Returns : WorkspaceSchema
getDefaultProjectNameFromWorkspace
getDefaultProjectNameFromWorkspace(tree)
Parameters :
Name Optional
tree No
Returns : string
getProject
getProject(workspaceOrHost, projectName)
Parameters :
Name Optional
workspaceOrHost No
projectName No
getProjectFromWorkspace
getProjectFromWorkspace(tree, options, files)
Parameters :
Name Optional
tree No
options No
files No
getProjectTargets
getProjectTargets(project)
Parameters :
Name Optional
project No
Returns : WorkspaceTargets
getProjectTargets
getProjectTargets(workspaceOrHost, projectName)
Parameters :
Name Optional
workspaceOrHost No
projectName No
Returns : WorkspaceTargets
getProjectTargets
getProjectTargets(projectOrHost, projectName: string)
Parameters :
Name Type Optional
projectOrHost No
projectName string No
Returns : WorkspaceTargets
getSourceRoot
getSourceRoot(host, options)
Parameters :
Name Optional
host No
options No
Returns : string
getWorkspace
getWorkspace(host, files)
Parameters :
Name Optional
host No
files No
Returns : literal type
isWorkspaceProject
isWorkspaceProject(project: any)
Parameters :
Name Type Optional
project any No
Returns : WorkspaceProject
isWorkspaceSchema
isWorkspaceSchema(workspace: any)
Parameters :
Name Type Optional
workspace any No
Returns : WorkspaceSchema
scaffoldStructure
scaffoldStructure(options)
Parameters :
Name Optional
options No
Returns : Rule
validateSpartacusInstallation
validateSpartacusInstallation(packageJson: any)
Parameters :
Name Type Optional
packageJson any No
Returns : void

projects/schematics/src/migrations/mechanism/methods-and-properties-deprecations/methods-and-properties-deprecations.ts

buildMethodComment
buildMethodComment(oldApiMethod, newApiMethod?)
Parameters :
Name Optional
oldApiMethod No
newApiMethod Yes
Returns : string
migrateMethodPropertiesDeprecation
migrateMethodPropertiesDeprecation(tree, _context, methodProperties)
Parameters :
Name Optional
tree No
_context No
methodProperties No
Returns : Tree

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-replenishment-order-details.ts

cancellationButtons
cancellationButtons(numberOfButton)
Parameters :
Name Optional
numberOfButton No
cancelReplenishmentDetails
cancelReplenishmentDetails()
clickReplenishmentDetails
clickReplenishmentDetails(replenishmentOrderCode)
Parameters :
Name Optional
replenishmentOrderCode No
createReplenishmentDetailsRequestRoute
createReplenishmentDetailsRequestRoute(requestMethod, replenishmentOrderCode, alias)
Parameters :
Name Optional
requestMethod No
replenishmentOrderCode No
alias No
verifyOrderOverviewIsCancelled
verifyOrderOverviewIsCancelled()
verifyOrderOverviewIsNotCancelled
verifyOrderOverviewIsNotCancelled()
verifyReplenishmentIsCancelled
verifyReplenishmentIsCancelled(replenishmentOrderCode)
Parameters :
Name Optional
replenishmentOrderCode No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-replenishment-order-history.ts

cancelReplenishmentInHistory
cancelReplenishmentInHistory()
createReplenishmentRequestRoute
createReplenishmentRequestRoute(requestMethod)
Parameters :
Name Optional
requestMethod No
verifyFirstRowReplenishmentIsCancelled
verifyFirstRowReplenishmentIsCancelled()
verifyFirstRowReplenishmentIsNotCancelled
verifyFirstRowReplenishmentIsNotCancelled()
verifySorting
verifySorting()
visitReplenishmentHistory
visitReplenishmentHistory()
waitForReplenishmentOrders
waitForReplenishmentOrders()

projects/storefrontapp-e2e-cypress/cypress/helpers/order-cancellations-returns.ts

cancelReturnRequest
cancelReturnRequest()
confirmCancelOrder
confirmCancelOrder()
confirmReturnOrder
confirmReturnOrder()
getStubbedCancellableOrderDetails
getStubbedCancellableOrderDetails()
getStubbedReturnableOrderDetails
getStubbedReturnableOrderDetails()
getStubbedReturnRequestDetails
getStubbedReturnRequestDetails()
getStubbedReturnRequestDetailsAfterCancel
getStubbedReturnRequestDetailsAfterCancel()
getStubbedReturnRequestList
getStubbedReturnRequestList()
getStubbedReturnRequestListAfterCancel
getStubbedReturnRequestListAfterCancel()
visitCancelOrderPage
visitCancelOrderPage()
visitOrderDetailPage
visitOrderDetailPage()
visitReturnOrderPage
visitReturnOrderPage()
visitReturnRequestDetailsPage
visitReturnRequestDetailsPage()
visitReturnRequestListPage
visitReturnRequestListPage()

projects/storefrontapp-e2e-cypress/cypress/helpers/viewport-context.ts

capitalize
capitalize(str)
Parameters :
Name Optional
str No
viewportContext
viewportContext(viewportList, callback)

Runs the same tests against all the provided viewports

Parameters :
Name Optional Description
viewportList No

list of viewports you want to test

callback No

test body

projects/core/src/cart/cart-persistence.module.ts

cartStatePersistenceFactory
cartStatePersistenceFactory(cartStatePersistenceService, configInit)
Parameters :
Name Optional
cartStatePersistenceService No
configInit No
Returns : Promise<Config>
uninitializeActiveCartMetaReducerFactory
uninitializeActiveCartMetaReducerFactory()

Before MultiCartStatePersistenceService restores the active cart id ActiveCartService will use current cart instead of the one saved in browser. This meta reducer sets the value on store initialization to null cart which holds active cart loading until the data from storage is restored.

Returns : MetaReducer<any>

integration-libs/cdc/root/cdc-root.module.ts

cdcJsFactory
cdcJsFactory(cdcJsService, configInit)
Parameters :
Name Optional
cdcJsService No
configInit No
Returns : Promise<Config>
defaultCdcComponentsConfig
defaultCdcComponentsConfig()
Returns : CmsConfig

integration-libs/cds/src/config/cds-config-validator.ts

cdsConfigValidator
cdsConfigValidator(config)
Parameters :
Name Optional
config No
Returns : string | void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/change-password.ts

changePasswordTabbingOrder
changePasswordTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator.ts

checkAddToCartBtnDisplayed
checkAddToCartBtnDisplayed()

Verifies whether the 'add to cart' button is displayed.

Returns : void
checkAttributeDisplayed
checkAttributeDisplayed(attributeName, uiType)

Verifies whether the attribute is displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
Returns : void
checkAttributeNotDisplayed
checkAttributeNotDisplayed(attributeName, uiType)

Verifies whether the attribute is not displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
Returns : void
checkAttrValueDisplayed
checkAttrValueDisplayed(attributeName, uiType, valueName)

Verifies whether the attribute value is displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
Returns : void
checkAttrValueNotDisplayed
checkAttrValueNotDisplayed(attributeName, uiType, valueName)

Verifies whether the attribute value is not displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
Returns : void
checkCurrentGroupActive
checkCurrentGroupActive(currentGroup)

Verifies whether the current group is active.

Parameters :
Name Optional Description
currentGroup No
  • Active group
Returns : void
checkFocus
checkFocus(attributeName, uiType, valueName)

Verifies whether the corresponding value ID is focused.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
Returns : void
checkGroupFormDisplayed
checkGroupFormDisplayed()

Verifies whether the group form is displayed.

Returns : void
checkGroupMenuDisplayed
checkGroupMenuDisplayed()

Verifies whether the group menu is displayed.

Returns : void
checkGroupTitleDisplayed
checkGroupTitleDisplayed()

Verifies whether the group title is displayed.

Returns : void
checkHamburgerDisplayed
checkHamburgerDisplayed()

Verifies whether the group menu is displayed.

Returns : void
checkNextBtnDisabled
checkNextBtnDisabled()

Verifies whether the 'next' button is disabled.

Returns : void
checkNextBtnEnabled
checkNextBtnEnabled()

Verifies whether the 'next' button is enabled.

Returns : void
checkPreviousAndNextBtnsDispalyed
checkPreviousAndNextBtnsDispalyed()

Verifies whether the 'previous' and 'next' buttons are displayed.

Returns : void
checkPreviousBtnDisabled
checkPreviousBtnDisabled()

Verifies whether the 'previous' button is disabled.

Returns : void
checkPreviousBtnEnabled
checkPreviousBtnEnabled()

Verifies whether the 'previous' button is enabled.

Returns : void
checkPriceSummaryDisplayed
checkPriceSummaryDisplayed()

Verifies whether the price summary is displayed.

Returns : void
checkShowMoreLinkAtProductTitleDisplayed
checkShowMoreLinkAtProductTitleDisplayed()

Verifies whether 'show more' button is displayed in the product title component.

Returns : void
checkTabBarDisplayed
checkTabBarDisplayed()

Verifies whether the product title component is displayed.

Returns : void
checkTotalPrice
checkTotalPrice(formattedPrice)

Verifies the accuracy of the formatted price.

Parameters :
Name Optional Description
formattedPrice No
  • Formatted price
Returns : void
checkUpdatingMessageNotDisplayed
checkUpdatingMessageNotDisplayed()

Verifies whether the updating configuration message is not displayed on the top of the configuration.

Returns : void
checkValueSelected
checkValueSelected(uiType, attributeName, valueName)

Verifies whether a corresponding UI type is selected.

Parameters :
Name Optional Description
uiType No
  • UI type
attributeName No
  • Attribute name
valueName No
  • Value name
Returns : void
clickHamburger
clickHamburger()

Clicks the group menu.

Returns : void
clickOnAddToCartBtnOnPD
clickOnAddToCartBtnOnPD()

Clicks on 'Add to cart' on the product details page.

Returns : void
clickOnGroupByGroupIndex
clickOnGroupByGroupIndex(groupIndex)

Clicks on the group via its index in the group menu.

Parameters :
Name Optional Description
groupIndex No
  • Group index
Returns : void
clickOnNextBtn
clickOnNextBtn(nextGroup)

Clicks on the next group Button and verifies that an element of the next group is displayed.

Parameters :
Name Optional Description
nextGroup No
  • Expected next group name
Returns : void
clickOnPreviousBtn
clickOnPreviousBtn(previousGroup)

Clicks on the previous group Button and verifies that an element of the previous group is displayed.

Parameters :
Name Optional Description
previousGroup No
  • Expected previous group name
Returns : void
clickOnPreviousOrNextBtn
clickOnPreviousOrNextBtn(btnSelector, activeGroup)

Clicks on 'previous' or 'next' button.

Parameters :
Name Optional Description
btnSelector No
  • Button selector
activeGroup No
  • Name of the group that should be active after click
Returns : void
clickOnProceedToCheckoutBtnOnPD
clickOnProceedToCheckoutBtnOnPD()

Clicks on 'Proceed to Checkout' on the product details page.

Returns : void
clickOnViewCartBtnOnPD
clickOnViewCartBtnOnPD()

Clicks on 'View Cart' on the product details page.

Returns : void
completeOrderProcess
completeOrderProcess(productName)

Orders a product: (1) Registers a new user, (2) Logs in with the credentials of the newly registered user, (3) Searches for a corresponding product by a product name, (4) Adds a searched product to the cart, (5) Orders a product, (6) Verifies whether the order history contains the ordered product and (7) Navigates to the order details of the product via 'Display Configuration' link.

Parameters :
Name Optional Description
productName No
  • Product name
Returns : void
defineAliases
defineAliases(backendUrl)
Parameters :
Name Optional
backendUrl No
getAttributeId
getAttributeId(attributeName, uiType)

Retrieves attribute ID.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
Returns : string
  • Attribute ID
getAttributeLabelId
getAttributeLabelId(attributeName)

Retrieves the attribute label id.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
Returns : string
  • Attribute label ID
navigateToOverviewPage
navigateToOverviewPage()

Navigates to the overview page via the overview tab.

Returns : void
searchForProduct
searchForProduct(productName)

Searches for a product by a product name.

Parameters :
Name Optional Description
productName No
  • Product name
Returns : void
selectAttribute
selectAttribute(attributeName, uiType, valueName, value?)

Selects a corresponding attribute value.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
value Yes
  • Value
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-cart-cpq.ts

checkAmountOfBundleItems
checkAmountOfBundleItems(cartItemIndex, itemsAmount)

Verifies the amount of bundle items for a certain cart item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
itemsAmount No
  • Expected amount of bundle items
checkBundleItemName
checkBundleItemName(cartItemIndex, bundleItemIndex, name)

Verifies the name of bundle item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
bundleItemIndex No
  • Index of bundle item
name No
  • Expected name of bundle item
checkBundleItemPrice
checkBundleItemPrice(cartItemIndex, bundleItemIndex, price)

Verifies the price of bundle item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
bundleItemIndex No
  • Index of bundle item
price No
  • Expected price of bundle item
checkBundleItemQuantity
checkBundleItemQuantity(cartItemIndex, bundleInfoIndex, quantity)

Verifies the quantity of bundle item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
bundleInfoIndex No
  • Index of bundle item
quantity No
  • Expected quantity of bundle item
checkoutB2B
checkoutB2B()

Conducts the B2B checkout.

Returns : void
clickOnProceedToCheckoutBtnInCart
clickOnProceedToCheckoutBtnInCart()

Clicks on 'Proceed to Checkout' in the cart

Returns : void
clickOnResolveIssuesLinkInCart
clickOnResolveIssuesLinkInCart(cartItemIndex)

Clicks on 'Resolve Issues' link in the cart.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
Returns : void
defineDeliveryModeAlias
defineDeliveryModeAlias()

Define alias for deliveryMode API call.

findBundleItem
findBundleItem(cartItemIndex)

Search for a corresponding bundle item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
Returns : Chainable<JQuery<HTMLElement>>
  • Corresponding bundle item
goToOrderHistory
goToOrderHistory(shopName)

Navigates to the oder history page.

Parameters :
Name Optional Description
shopName No
  • shop name
Returns : Chainable<Window>
  • New order history window
searchForOrder
searchForOrder(orderNumber)

Verifies whether the searched order exists in the order history and sets the '@isFound' alias accordingly.

Parameters :
Name Optional Description
orderNumber No
  • Order number
Returns : void
selectOrderByOrderNumberAlias
selectOrderByOrderNumberAlias(shopName)

Selects the order by the oder number alias.

Parameters :
Name Optional Description
shopName No
  • shop name
Returns : void
toggleBundleItems
toggleBundleItems(linkName)

Toggle bundle items via 'show' or 'hide' link

Parameters :
Name Optional Description
linkName No
  • Name of the toggled link
verifyCartCount
verifyCartCount(expectedCount)

Verifies the amount of cart entries.

Parameters :
Name Optional Description
expectedCount No
  • Expected amount of cart entries

projects/schematics/src/migrations/mechanism/dependency-management/dependency-management.ts

checkAndLogRemovedDependencies
checkAndLogRemovedDependencies(packageJson: any, installedSpartacusLibs, removedDependencies, logger)
Parameters :
Name Type Optional
packageJson any No
installedSpartacusLibs No
removedDependencies No
logger No
Returns : void
collectSpartacusLibraryDependencies
collectSpartacusLibraryDependencies(packageJson: any)
Parameters :
Name Type Optional
packageJson any No
Returns : literal type
collectSpartacusPeerDeps
collectSpartacusPeerDeps(collectedDeps, name)
Parameters :
Name Optional
collectedDeps No
name No
Returns : string[]
createSpartacusLibraryDependencies
createSpartacusLibraryDependencies(allSpartacusLibraries, skipScopes)
Parameters :
Name Optional
allSpartacusLibraries No
skipScopes No
Returns : NodeDependency[]
getCurrentDependencyVersion
getCurrentDependencyVersion(dependency, packageJson: any)
Parameters :
Name Type Optional
dependency No
packageJson any No
Returns : semver.SemVer | null
migrateDependencies
migrateDependencies(tree, context, removedDependencies)
Parameters :
Name Optional
tree No
context No
removedDependencies No
Returns : Rule
updatePackageJsonDependencies
updatePackageJsonDependencies(dependencies, packageJson: any)
Parameters :
Name Type Optional
dependencies No
packageJson any No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-order-approval.ts

checkApprovalDashboardMenuOptionExistence
checkApprovalDashboardMenuOptionExistence(exists: boolean)
Parameters :
Name Type Optional
exists boolean No
getStubbedApprovedOrderApprovalDetail
getStubbedApprovedOrderApprovalDetail()
getStubbedOrderApprovalDetail
getStubbedOrderApprovalDetail()
getStubbedOrderApprovalList
getStubbedOrderApprovalList()
getStubbedPendingOrderDetails
getStubbedPendingOrderDetails()
getStubbedRejectedOrderApprovalDetail
getStubbedRejectedOrderApprovalDetail()
loginB2bApprover
loginB2bApprover()
loginB2bUser
loginB2bUser()
makeStubbedDecision
makeStubbedDecision()
visitOrderApprovalDetailPage
visitOrderApprovalDetailPage()
visitOrderApprovalListPage
visitOrderApprovalListPage()

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-overview-cpq.ts

checkAttrDisplayed
checkAttrDisplayed(attributeName, valueName, attributeIdx)

Verifies whether the attribute name and value are displayed at the given position.

Parameters :
Name Optional
attributeName No
valueName No
attributeIdx No
Returns : void
checkAttrPriceDisplayed
checkAttrPriceDisplayed(priceString, attributeIdx)

Verifies whether the attribute price is displayed at the given position.

Parameters :
Name Optional
priceString No
attributeIdx No
Returns : void
checkAttrType
checkAttrType(attributeType, attributeIdx)

Verifies whether the attribute name and value are displayed at the given position.

Parameters :
Name Optional
attributeType No
attributeIdx No
Returns : void
checkGroupHeaderDisplayed
checkGroupHeaderDisplayed(groupName, groupIdx)

Verifies whether the group header displayed.

Parameters :
Name Optional
groupName No
groupIdx No
Returns : void
checkGroupHeaderNotDisplayed
checkGroupHeaderNotDisplayed(groupName)

Verifies whether the group header is not displayed.

Parameters :
Name Optional
groupName No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-cpq.ts

checkAttributeHeaderDisplayed
checkAttributeHeaderDisplayed(attributeHeaders)

Verifies if all passed attribute headers are displayed

Parameters :
Name Optional Description
attributeHeaders No
  • List of attribute headers to check
Returns : void
checkConfigPageDisplayed
checkConfigPageDisplayed()

Verifies whether the configuration page is displayed.

Returns : void
checkPrice
checkPrice(uiType, priceFormula, attributeName, valueName?)

Selects a corresponding attribute value.

Parameters :
Name Optional Description
uiType No
  • UI type
priceFormula No
  • quantity
attributeName No
  • attribute name
valueName Yes
  • value name
Returns : void
checkProductTitleDisplayed
checkProductTitleDisplayed()

Verifies whether the product title component is displayed.

Returns : void
checkSuccessMessageNotDisplayed
checkSuccessMessageNotDisplayed()

Verifies whether the global success message is not displayed on the top of the configuration.

Returns : void
checkValueNotSelected
checkValueNotSelected(uiType, attributeName, valueName)

Verifies whether a corresponding UI type not selected.

Parameters :
Name Optional Description
uiType No
  • UI type
attributeName No
  • Attribute name
valueName No
  • Value name
clickAddToCartBtn
clickAddToCartBtn()

Clicks on the 'Add to cart' button.

Returns : void
clickOnConfigureBtnInCatalog
clickOnConfigureBtnInCatalog()

Clicks on 'Add to Cart' button in catalog list.

Returns : void
clickOnGroup
clickOnGroup(groupIndex)

Clicks on the group via its index in the group menu.

Parameters :
Name Optional Description
groupIndex No
  • Group index
Returns : void
convertCardTypeToUiType
convertCardTypeToUiType(cardType)

converts the given card/bundle type to the corresponding ui type

Parameters :
Name Optional Description
cardType No

card type

deSelectProductCard
deSelectProductCard(cardType, attributeName, valueName)

DeSelects a product card and waits until it's state changes.

Parameters :
Name Optional Description
cardType No
  • card type
attributeName No
  • Attribute name
valueName No
  • Value name
getNthGroupMenu
getNthGroupMenu(index)

Returns nth group menu link

Parameters :
Name Optional
index No
Returns : Chainable<JQuery<HTMLElement>>
goToConfigurationPage
goToConfigurationPage(shopName, productId, configurationType)

Navigates to the product configuration page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
configurationType No
  • configuration type used in configurator URL, default is "vc"
Returns : Chainable<Window>
  • New configuration window
goToCPQConfigurationPage
goToCPQConfigurationPage(shopName, productId)

Navigates to the CPQ product configuration page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : Chainable<Window>
  • New configuration window
goToPDPage
goToPDPage(shopName, productId)

Navigates to the product detail page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : void
login
login(email, password, name)

Logs in.

Parameters :
Name Optional
email No
password No
name No
Returns : void
selectAttributeAndWait
selectAttributeAndWait(attributeName, uiType, valueName, value?)

Selects a corresponding attribute value and wait.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
value Yes
  • Value
Returns : void
selectProductCard
selectProductCard(cardType, attributeName, valueName)

Selects a product card and waits until it's state changes.

Parameters :
Name Optional Description
cardType No
  • card type
attributeName No
  • Attribute name
valueName No
  • Value name
setQuantity
setQuantity(uiType, quantity, attributeName, valueName?)

Selects a corresponding attribute value.

Parameters :
Name Optional Description
uiType No
  • UI type
quantity No
  • quantity
attributeName No
  • attribute name
valueName Yes
  • value name
Returns : void
waitForProductCardsLoad
waitForProductCardsLoad(expectedLength)

Waiting for the product card to load correctly

Parameters :
Name Optional
expectedLength No

projects/storefrontapp-e2e-cypress/cypress/helpers/homepage.ts

checkBanner
checkBanner()
clickHamburger
clickHamburger()
waitForHomePage
waitForHomePage()

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-cart.ts

checkCartEmpty
checkCartEmpty()

Verifies whether the mini-cart displays zero cart items.

clickOnEditConfigurationLink
clickOnEditConfigurationLink(cartItemIndex)

Clicks on the 'Edit Configuration' link in cart for a certain cart item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
Returns : void
clickOnRemoveLink
clickOnRemoveLink(cartItemIndex)

Clicks on the 'Remove' link in cart for a certain cart item to remove a cart item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
Returns : void
defineOrderNumberAlias
defineOrderNumberAlias()

Defines the order number alias.

Returns : void
navigateToOrderDetails
navigateToOrderDetails()

Navigates to the order details page.

Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-overview.ts

checkConfigOverviewPageDisplayed
checkConfigOverviewPageDisplayed()

Verifies whether the product overview page is displayed.

Returns : void
checkContinueToCartBtnDisplayed
checkContinueToCartBtnDisplayed()

Verifies whether 'Continue to Cart' button is displayed.

Returns : void
clickContinueToCartBtnOnOP
clickContinueToCartBtnOnOP()

Clicks on 'Continue to cart' on the product overview page.

Returns : void
waitForNotificationBanner
waitForNotificationBanner(numberOfIssues?)

Waits for the notitication banner to display the correct number of issues

Parameters :
Name Optional Description
numberOfIssues Yes
  • Expected number of issues
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-vc.ts

checkConfigPageDisplayed
checkConfigPageDisplayed()

Verifies whether the configuration page is displayed.

Returns : void
checkConflictDescriptionDisplayed
checkConflictDescriptionDisplayed(description)

Verifies whether the conflict description is displayed.

Parameters :
Name Optional Description
description No
  • Conflict description
Returns : void
checkConflictDetectedMsgDisplayed
checkConflictDetectedMsgDisplayed(attributeName)

Verifies whether the conflict detected under the attribute name is displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
Returns : void
checkConflictDetectedMsgNotDisplayed
checkConflictDetectedMsgNotDisplayed(attributeName)

Verifies whether the conflict detected under the attribute name is not displayed.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
Returns : void
checkConflictHeaderGroupDisplayed
checkConflictHeaderGroupDisplayed()

Verifies whether the conflict header group is displayed.

Returns : void
checkConflictHeaderGroupNotDisplayed
checkConflictHeaderGroupNotDisplayed()

Verifies whether the conflict header group is not displayed.

Returns : void
checkGlobalMessageNotDisplayed
checkGlobalMessageNotDisplayed()

Verifies whether the global message is not displayed on the top of the configuration.

Returns : void
checkImageSelected
checkImageSelected(uiType, attributeName, valueName)

Verifies whether the image value is selected.

Parameters :
Name Optional Description
uiType No
  • UI type
attributeName No
  • Attribute name
valueName No
  • Value name
Returns : void
checkLoadingMsgNotDisplayed
checkLoadingMsgNotDisplayed()

Verifies whether the loading message is not displayed.

Returns : void
checkProductTitleDisplayed
checkProductTitleDisplayed()

Verifies whether the product title component is displayed.

Returns : void
checkStatusIconDisplayed
checkStatusIconDisplayed(groupName, status)

Verifies whether status icon is displayed.

Parameters :
Name Optional Description
groupName No
  • Group name
status No
  • Status
Returns : void
checkStatusIconNotDisplayed
checkStatusIconNotDisplayed(groupName)

Verifies whether status icon is not displayed.

Parameters :
Name Optional Description
groupName No
  • Group name
Returns : void
clickAddToCartBtn
clickAddToCartBtn()

Clicks on the 'Add to cart' button.

Returns : void
clickOnConfigureBtnInCatalog
clickOnConfigureBtnInCatalog()

Clicks on 'Add to Cart' button in catalog list.

Returns : void
clickOnGroup
clickOnGroup(groupIndex)

Clicks on the group via its index in the group menu.

Parameters :
Name Optional Description
groupIndex No
  • Group index
Returns : void
deselectConflictingValue
deselectConflictingValue(attributeName, uiType, valueName)

Deselects a conflicting value, namely deselects a value. Then verifies whether the conflict detected message under the attribute name is not displayed anymore and the conflict header group in the group menu is not displayed either.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
Returns : void
goToCart
goToCart(shopName)

Navigates to the cart page.

Parameters :
Name Optional Description
shopName No
  • shop name
goToConfigurationPage
goToConfigurationPage(shopName, productId)

Navigates to the product configuration page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
goToPDPage
goToPDPage(shopName, productId)

Navigates to the product detail page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : void
registerConfigurationRoute
registerConfigurationRoute()

Register configuration route.

selectConflictingValue
selectConflictingValue(attributeName, uiType, valueName, numberOfConflicts)

Selects a conflicting value, namely selects a value. Then verifies whether the conflict detected message under the attribute name is displayed, The conflict header group in the group menu is displayed and Finally verifies whether the expected number of conflicts is accurate.

Parameters :
Name Optional Description
attributeName No
  • Attribute name
uiType No
  • UI type
valueName No
  • Value name
numberOfConflicts No
  • Expected number of conflicts
Returns : void
verifyNumberOfConflicts
verifyNumberOfConflicts(numberOfConflicts)

Verifies whether the expected number of conflicts is accurate.

Parameters :
Name Optional Description
numberOfConflicts No
  • Expected number of conflicts
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/group-skipping/group-skipping.ts

checkFocusIsNotWithinGroupSkipper
checkFocusIsNotWithinGroupSkipper()
checkFocusIsWithinGroupSkipper
checkFocusIsWithinGroupSkipper()
checkGroupSkipperAnchorsHaveLoaded
checkGroupSkipperAnchorsHaveLoaded(noOfAnchors)
Parameters :
Name Optional
noOfAnchors No
verifyGroupSkippingFromConfig
verifyGroupSkippingFromConfig(config)
Parameters :
Name Optional
config No
verifyGroupSkippingOnPageFromConfig
verifyGroupSkippingOnPageFromConfig(config)
Parameters :
Name Optional
config No

projects/schematics/src/shared/utils/package-utils.ts

checkIfSSRIsUsed
checkIfSSRIsUsed(tree)
Parameters :
Name Optional
tree No
Returns : boolean
cleanSemverVersion
cleanSemverVersion(versionString)
Parameters :
Name Optional
versionString No
Returns : string
createDependencies
createDependencies(dependencyObject, options)
Parameters :
Name Optional
dependencyObject No
options No
Returns : NodeDependency[]
createSpartacusDependencies
createSpartacusDependencies(dependencyObject)
Parameters :
Name Optional
dependencyObject No
Returns : NodeDependency[]
getMajorVersionNumber
getMajorVersionNumber(versionString)
Parameters :
Name Optional
versionString No
Returns : number
getPrefixedSpartacusSchematicsVersion
getPrefixedSpartacusSchematicsVersion()
Returns : string
getSpartacusCurrentFeatureLevel
getSpartacusCurrentFeatureLevel()
Returns : string
getSpartacusSchematicsVersion
getSpartacusSchematicsVersion()
Returns : string
mapPackageToNodeDependencies
mapPackageToNodeDependencies(packageName, version, overwrite)
Parameters :
Name Optional
packageName No
version No
overwrite No
Returns : NodeDependency
prepare3rdPartyDependencies
prepare3rdPartyDependencies()
Returns : NodeDependency[]
prepareSpartacusDependencies
prepareSpartacusDependencies()
Returns : NodeDependency[]
readPackageJson
readPackageJson(tree)
Parameters :
Name Optional
tree No
Returns : any

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-cart-vc.ts

checkNotificationBanner
checkNotificationBanner(element, numberOfIssues?)

Verifies whether the issues banner is displayed.

Parameters :
Name Optional Description
element No
  • HTML element
numberOfIssues Yes
  • Expected number of conflicts
Returns : void
checkout
checkout()

Conducts the checkout.

Returns : void
verifyNotificationBannerInCart
verifyNotificationBannerInCart(cartItemIndex, numberOfIssues?)

Verifies whether the issues banner is displayed in the cart for a certain cart item.

Parameters :
Name Optional Description
cartItemIndex No
  • Index of cart item
numberOfIssues Yes
  • Expected number of conflicts
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/product-configurator-overview-vc.ts

checkNotificationBannerOnOP
checkNotificationBannerOnOP(element, numberOfIssues?)

Verifies whether the issues banner is displayed.

Parameters :
Name Optional Description
element No
  • HTML element
numberOfIssues Yes
  • Expected number of conflicts
Returns : void
clickOnResolveIssuesLinkOnOP
clickOnResolveIssuesLinkOnOP()

Clicks on 'Resolve Issues' link on the product overview page.

Returns : void
goToConfigOverviewPage
goToConfigOverviewPage(shopName, productId)

Navigates to the configured product overview page.

Parameters :
Name Optional Description
shopName No
  • shop name
productId No
  • Product ID
Returns : Chainable<Window>
  • New configuration overview window
navigateToConfigurationPage
navigateToConfigurationPage()

Navigates to the configuration page via configuration tab.

Returns : void
registerConfigurationOvOCC
registerConfigurationOvOCC()

Registers OCC call for OV page in order to wait for it

verifyNotificationBannerOnOP
verifyNotificationBannerOnOP(numberOfIssues?)

Verifies whether the issues banner is displayed and the number of issues are accurate.

Parameters :
Name Optional Description
numberOfIssues Yes
  • Expected number of issues
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/checkout/coupons.ts

checkoutAppliedCouponsTabbingOrder
checkoutAppliedCouponsTabbingOrder(config)
Parameters :
Name Optional
config No
checkoutCouponsTabbingOrder
checkoutCouponsTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/checkout/payment-details.ts

checkoutBillingAddressTabbingOrder
checkoutBillingAddressTabbingOrder(config)
Parameters :
Name Optional
config No
checkoutPaymentDetailsTabbingOrder
checkoutPaymentDetailsTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/vendor/digital-payments/user.ts

checkoutDeliveryMode
checkoutDeliveryMode()
checkoutPaymentDetails
checkoutPaymentDetails()
checkoutShippingAddress
checkoutShippingAddress()
orderConfirmation
orderConfirmation()
reviewAndPlaceOrder
reviewAndPlaceOrder()

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/checkout/delivery-mode.ts

checkoutDeliveryModeTabbingOrder
checkoutDeliveryModeTabbingOrder(config)
Parameters :
Name Optional
config No
checkoutDeliveryModeTabbingOrderAccount
checkoutDeliveryModeTabbingOrderAccount(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/my-coupons.ts

checkoutMyCouponsTabbingOrder
checkoutMyCouponsTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/checkout/review-order.ts

checkoutReviewOrderTabbingOrder
checkoutReviewOrderTabbingOrder(config, checkout: boolean)
Parameters :
Name Type Optional
config No
checkout boolean No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/checkout/shipping-address.ts

checkoutShippingAddressAccount
checkoutShippingAddressAccount(config)
Parameters :
Name Optional
config No
checkoutShippingAddressExistingTabbingOrder
checkoutShippingAddressExistingTabbingOrder(config)
Parameters :
Name Optional
config No
checkoutShippingAddressNewTabbingOrder
checkoutShippingAddressNewTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/cart-validation.ts

checkProductAvailabilityMessage
checkProductAvailabilityMessage()
checkReducedQuantity
checkReducedQuantity(product)
Parameters :
Name Optional
product No
validateStock
validateStock(mockResponse: object, alias: string)
Parameters :
Name Type Optional
mockResponse object No
alias string No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/utils/list.ts

checkRowHeaders
checkRowHeaders(configs)

Assert table headers are correctly labelled.

Parameters :
Name Optional Description
configs No

Row configurations containing header labels.

Returns : void
checkRows
checkRows(rows)
Parameters :
Name Optional
rows No
Returns : void
getFormattedDate
getFormattedDate(date)
Parameters :
Name Optional
date No
Returns : string
getListRowsFromBody
getListRowsFromBody(body: any, objectType, rows)
Parameters :
Name Type Optional
body any No
objectType No
rows No
getMonthPartFromDate
getMonthPartFromDate(date)
Parameters :
Name Optional
date No
Returns : string
getNestedRowsFromBody
getNestedRowsFromBody(body: any, config)

When getting the rows from a body with children, return body with child rows

Parameters :
Name Type Optional
body any No
config No
getRootRowsFromBody
getRootRowsFromBody(body: any, config)

When getting the rows from a body with children, only return the body row

Parameters :
Name Type Optional
body any No
config No
getVariableFromName
getVariableFromName(name, dataset: any)
Parameters :
Name Type Optional
name No
dataset any No
ngSelect
ngSelect(sortKey)
Parameters :
Name Optional
sortKey No
Returns : void
testList
testList(config, options?, suffix)
Parameters :
Name Optional
config No
options Yes
suffix No
Returns : void
testListSorting
testListSorting(config)
Parameters :
Name Optional
config No
Returns : void
verifyList
verifyList(rows, rowConfig)
Parameters :
Name Optional
rows No
rowConfig No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/coupons/my-coupons.ts

claimCoupon
claimCoupon(couponCode)
Parameters :
Name Optional
couponCode No
createStandardUser
createStandardUser()
goMyCoupon
goMyCoupon()
verfifyNotificationDisable
verfifyNotificationDisable()
verfifyNotificationEnable
verfifyNotificationEnable()
verifyClaimCouponFail
verifyClaimCouponFail(couponCode)
Parameters :
Name Optional
couponCode No
verifyClaimCouponSuccess
verifyClaimCouponSuccess(couponCode)
Parameters :
Name Optional
couponCode No
verifyCouponsClaiming
verifyCouponsClaiming()
verifyEnableDisableNotification
verifyEnableDisableNotification()
verifyFindProduct
verifyFindProduct(couponCode, productNumber)
Parameters :
Name Optional
couponCode No
productNumber No
verifyMyCoupons
verifyMyCoupons()
verifyPagingAndSorting
verifyPagingAndSorting()
verifyReadMore
verifyReadMore()
waitForClaimCoupon
waitForClaimCoupon(couponCode)
Parameters :
Name Optional
couponCode No
Returns : string
waitForGetCoupons
waitForGetCoupons()
Returns : string

projects/core/src/occ/utils/occ-url-util.ts

cleanSlashes
cleanSlashes(path)
Parameters :
Name Optional
path No
Returns : string
urlPathJoin
urlPathJoin(...parts: undefined)

Joins the multiple parts with '/' to create a url

Parameters :
Name Optional Description
parts No

the distinct parts of the url to join

Returns : string

tools/schematics/dependency-collector.ts

cleanup
cleanup()
Returns : void
collect
collect(directories)
Parameters :
Name Optional
directories No
Returns : Record<string, Record<string, string>>
compareFiles
compareFiles(options)
Parameters :
Name Optional
options No
Returns : void
format
format(path)
Parameters :
Name Optional
path No
Returns : void
read
read(path)
Parameters :
Name Optional
path No
Returns : string
readJson
readJson(path)
Parameters :
Name Optional
path No
Returns : any
run
run(options)
Parameters :
Name Optional
options No
Returns : void
save
save(path, content)
Parameters :
Name Optional
path No
content No
Returns : void

projects/core/src/anonymous-consents/store/reducers/index.ts

clearAnonymousConsentTemplates
clearAnonymousConsentTemplates(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<AnonymousConsentsState, Action>
getReducers
getReducers()
Returns : ActionReducerMap<AnonymousConsentsState>

projects/core/src/cms/store/reducers/index.ts

clearCmsState
clearCmsState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<StateWithCms, Action>
getReducers
getReducers()
Returns : ActionReducerMap<CmsState>

feature-libs/asm/core/store/reducers/index.ts

clearCustomerSupportAgentAsmState
clearCustomerSupportAgentAsmState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<AsmState, Action>
getReducers
getReducers()
Returns : ActionReducerMap<AsmState>

projects/core/src/cart/store/reducers/index.ts

clearMultiCartState
clearMultiCartState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<any>
getMultiCartReducers
getMultiCartReducers()
Returns : ActionReducerMap<MultiCartState>

feature-libs/organization/administration/core/store/reducers/index.ts

clearOrganizationState
clearOrganizationState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<OrganizationState, Action>
getReducers
getReducers()
Returns : ActionReducerMap<OrganizationState>

feature-libs/organization/order-approval/core/store/reducers/index.ts

clearOrganizationState
clearOrganizationState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<OrderApprovalState, Action>
getReducers
getReducers()
Returns : ActionReducerMap<OrderApprovalState>

projects/core/src/product/store/reducers/index.ts

clearProductsState
clearProductsState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<any>
getReducers
getReducers()
Returns : ActionReducerMap<ProductsState>

feature-libs/storefinder/core/store/reducers/index.ts

clearStoreFinderState
clearStoreFinderState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<StoresState, Action>
getReducers
getReducers()
Returns : ActionReducerMap<StoresState>

projects/core/src/user/store/reducers/index.ts

clearUserState
clearUserState(reducer)
Parameters :
Name Optional
reducer No
Returns : ActionReducer<any>
getReducers
getReducers()
Returns : ActionReducerMap<UserState>

projects/storefrontapp-e2e-cypress/cypress/helpers/notification.ts

clickNotifyMeBtn
clickNotifyMeBtn(productCode)
Parameters :
Name Optional
productCode No
disableNotificationChannel
disableNotificationChannel()
enableNotificationChannel
enableNotificationChannel()
interceptNotificationPreferencesChange
interceptNotificationPreferencesChange()
navigateToMyInterestsPage
navigateToMyInterestsPage()
navigateToNotificationPreferencePage
navigateToNotificationPreferencePage()
navigateToPDP
navigateToPDP(productCode)
Parameters :
Name Optional
productCode No
navigateToPDPInCustomerInterest
navigateToPDPInCustomerInterest(productCode)
Parameters :
Name Optional
productCode No
removeCustomerInterest
removeCustomerInterest(productCode)
Parameters :
Name Optional
productCode No
stubForPaginableMyInterests
stubForPaginableMyInterests(jsonfile, url)
Parameters :
Name Optional
jsonfile No
url No
subscribeStockNotification
subscribeStockNotification(productCode)
Parameters :
Name Optional
productCode No
unsubscribeStockNotification
unsubscribeStockNotification(productCode)
Parameters :
Name Optional
productCode No
updateEmail
updateEmail()
Returns : String
verifyCustomerInterest
verifyCustomerInterest(productCode)
Parameters :
Name Optional
productCode No
verifyCustomerInterests
verifyCustomerInterests()
verifyEmailChannel
verifyEmailChannel(email)
Parameters :
Name Optional
email No
verifyNavigateToMyInterestsInDialog
verifyNavigateToMyInterestsInDialog()
verifyNavigateToNotificationPreferenceInDialog
verifyNavigateToNotificationPreferenceInDialog()
verifyPagingAndSorting
verifyPagingAndSorting()
verifyRemovingCustomerInterestInPDP
verifyRemovingCustomerInterestInPDP()
verifyStockNotification
verifyStockNotification()
verifyStockNotificationAsGuest
verifyStockNotificationAsGuest()
verifyStockNotificationWithoutChannel
verifyStockNotificationWithoutChannel()
verifySubscriptionAndCustomerInterest
verifySubscriptionAndCustomerInterest(productCode)
Parameters :
Name Optional
productCode No
verifyUnsubscribe
verifyUnsubscribe()

projects/storefrontlib/shared/utils/forms/form-test-utils.ts

clickSubmit
clickSubmit(fixture)
Parameters :
Name Optional
fixture No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/close-account.ts

closeAccountTabbingOrder
closeAccountTabbingOrder(config)
Parameters :
Name Optional
config No

projects/core/src/cms/store/cms-store.module.ts

cmsStoreConfigFactory
cmsStoreConfigFactory()
Returns : StateConfig

tools/config/tsconfig-paths.ts

comparePathsConfigs
comparePathsConfigs(targetPaths, tsConfigPath, silent)

Compare target paths with current paths and reports extra or missing entries.

Parameters :
Name Optional Description
targetPaths No

paths that should be in the file

tsConfigPath No

path to targeted config

silent No

set to tru if you don't want to output errors (eg. in fix mode)

Returns : boolean

true when there were some errors

handleAppConfigs
handleAppConfigs(libraries, options)
Parameters :
Name Optional
libraries No
options No
Returns : void
handleConfigUpdate
handleConfigUpdate(targetPaths: any, file, options)

Compares paths and reports errors or updates configs.

Parameters :
Name Type Optional
targetPaths any No
file No
options No
Returns : boolean

true when there were some errors

handleLibConfigs
handleLibConfigs(libraries, options)

Adds paths to spartacus dependencies in tsconfig.lib.json files. We grab all spartacus dependencies and add for all of them all entry points.

Parameters :
Name Optional
libraries No
options No
Returns : void
handleRootConfigs
handleRootConfigs(libraries, options)

Add paths to all libraries and all their entry points to root tsconfig.json and tsconfig.compodoc.json files.

Parameters :
Name Optional
libraries No
options No
Returns : void
handleSchematicsConfigs
handleSchematicsConfigs(libraries, options)

When library have its own schematics ts config (tsconfig.schematics.json exists) and have schematics as peerDependency we add path to @spartacus/schematics lib.

Parameters :
Name Optional
libraries No
options No
Returns : void
joinPaths
joinPaths(...parts: undefined)
Parameters :
Name Optional
parts No
manageTsConfigs
manageTsConfigs(repository, options)

Checks and updates tsconfig files across repository.

Parameters :
Name Optional
repository No
options No
readTsConfigFile
readTsConfigFile(path)
Parameters :
Name Optional
path No
Returns : any
setCompilerOptionsPaths
setCompilerOptionsPaths(tsconfigPath, paths)
Parameters :
Name Optional
tsconfigPath No
paths No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/utils/form.ts

completeForm
completeForm(rowConfigs, formType)
Parameters :
Name Optional
rowConfigs No
formType No
getValueKey
getValueKey(formType)

Returns the key of the MyCompanyRowConfig for the item value.

Depending on the form type, it returns the key for creating OR updating value.

Parameters :
Name Optional
formType No
Returns : "createValue" | "updateValue"
verifyDetails
verifyDetails(config, formType)
Parameters :
Name Optional
config No
formType No

projects/core/src/cms/store/reducers/components.reducer.ts

componentExistsReducer
componentExistsReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : boolean
reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ComponentsContext

projects/core/src/config/config-tokens.ts

configFactory
configFactory()
defaultConfigFactory
defaultConfigFactory()
rootConfigFactory
rootConfigFactory()

projects/core/src/config/test-config.module.ts

configFromCookieFactory
configFromCookieFactory(cookieName, platform: any, document)
Parameters :
Name Type Optional
cookieName No
platform any No
document No
parseConfigJSON
parseConfigJSON(config)
Parameters :
Name Optional
config No

projects/core/src/config/config-initializer/config-initializer.module.ts

configInitializerFactory
configInitializerFactory(configInitializer, initializers)
Parameters :
Name Optional
configInitializer No
initializers No
Returns : Promise<void>
locationInitializedFactory
locationInitializedFactory(configInitializer)
Parameters :
Name Optional
configInitializer No
Returns : Promise<Config>

feature-libs/product-configurator/rulebased/core/state/reducers/configurator.reducer.ts

configuratorReducer
configuratorReducer(state, action)
Parameters :
Name Optional
state No
action No
setGroupsVisited
setGroupsVisited(changedInteractionState, groupId)
Parameters :
Name Optional
changedInteractionState No
groupId No
setInitialCurrentGroup
setInitialCurrentGroup(state)
Parameters :
Name Optional
state No
takeOverChanges
takeOverChanges(action, state)
Parameters :
Name Optional
action No
state No
takeOverPricingChanges
takeOverPricingChanges(action, state)
Parameters :
Name Optional
action No
state No

projects/storefrontapp-e2e-cypress/cypress/helpers/vendor/epd-visualization/visual-picking-tab.ts

configureDefaultProduct
configureDefaultProduct()
verifyTabbingOrder
verifyTabbingOrder()

projects/schematics/src/add-spartacus/spartacus-features.ts

configureSpartacusModules
configureSpartacusModules(tree, tsconfigPath, basePath)
Parameters :
Name Optional
tree No
tsconfigPath No
basePath No
Returns : void
setupSpartacusFeaturesModule
setupSpartacusFeaturesModule(project)

Migration which ensures the spartacus features are being correctly set up

Parameters :
Name Optional
project No
Returns : Rule

projects/schematics/src/add-spartacus/spartacus.ts

configureSpartacusModules
configureSpartacusModules(tree, tsconfigPath, basePath)
Parameters :
Name Optional
tree No
tsconfigPath No
basePath No
Returns : void
setupSpartacusModule
setupSpartacusModule(project)

Migration which ensures the spartacus is being correctly set up

Parameters :
Name Optional
project No
Returns : Rule

projects/schematics/src/add-spartacus/store.ts

configureStoreModules
configureStoreModules(tree, tsconfigPath, basePath)
Parameters :
Name Optional
tree No
tsconfigPath No
basePath No
Returns : void
setupStoreModules
setupStoreModules(project)

Migration that ensures that we have correct Store modules set

Parameters :
Name Optional
project No
Returns : Rule

projects/core/src/config/config-validator/config-validator.module.ts

configValidatorFactory
configValidatorFactory(configInitializer, validators)
Parameters :
Name Optional
configInitializer No
validators No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/consent-management.ts

consentManagementTabbingOrder
consentManagementTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/consignment-tracking.ts

consignmentTrackingEventsTabbingOrder
consignmentTrackingEventsTabbingOrder(config)
Parameters :
Name Optional
config No
consignmentTrackingTabbingOrder
consignmentTrackingTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontlib/shared/utils/validators/custom-form-validators.ts

controlsMustMatch
controlsMustMatch(formGroup, firstControlName, secondControlName, errorName)

Generic function for validators, which checks if two passed controls match.

Parameters :
Name Optional Description
formGroup No
firstControlName No

First control to check

secondControlName No

Second control to check

errorName No

Error which will be returned by validator

Returns : void

feature-libs/organization/administration/core/store/reducers/cost-center.reducer.ts

costCenterAssignedBudgetsListReducer
costCenterAssignedBudgetsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
costCentersEntitiesReducer
costCentersEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : CostCenter
costCentersListReducer
costCentersListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

feature-libs/organization/administration/components/cost-center/cost-center.config.ts

costCenterTableConfigFactory
costCenterTableConfigFactory()
Returns : TableConfig

projects/core/src/util/compare-equal-objects.ts

countOfDeepEqualObjects
countOfDeepEqualObjects(obj: any, arr)
Parameters :
Name Type Optional
obj any No
arr No
Returns : number
deepEqualObjects
deepEqualObjects(objA, objB)
Parameters :
Name Optional
objA No
objB No
Returns : boolean
indexOfFirstOccurrence
indexOfFirstOccurrence(obj: any, arr)
Parameters :
Name Type Optional
obj any No
arr No
Returns : number | undefined
shallowEqualObjects
shallowEqualObjects(objA, objB)
Parameters :
Name Optional
objA No
objB No
Returns : boolean

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/store-finder/countries-list.ts

countriesListTabbingOrder
countriesListTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/checkout-as-guest.ts

createAccountFromGuest
createAccountFromGuest(password)
Parameters :
Name Optional
password No
loginAsGuest
loginAsGuest(sampleUser)
Parameters :
Name Optional
sampleUser No

feature-libs/organization/administration/components/shared/utility/entity-code.ts

createCodeForEntityName
createCodeForEntityName(name, code)
Parameters :
Name Optional
name No
code No
Returns : void

projects/core/src/util/create-from.ts

createFrom
createFrom(type, data)

Creates an instance of the given class and fills its properties with the given data.

Parameters :
Name Optional Description
type No

reference to the class

data No

object with properties to be copied to the class

Returns : T

projects/schematics/src/shared/utils/program.ts

createProgram
createProgram(tree, basePath, tsconfigPath)
Parameters :
Name Optional
tree No
basePath No
tsconfigPath No
Returns : literal type
saveAndFormat
saveAndFormat(sourceFile)
Parameters :
Name Optional
sourceFile No
Returns : void

projects/core/src/state/utils/get-state-slice.ts

createShellObject
createShellObject(key, excludeKeys, value)
Parameters :
Name Optional
key No
excludeKeys No
value No
Returns : E
filterKeysByType
filterKeysByType(keys, type)
Parameters :
Name Optional
keys No
type No
Returns : string[]
getExclusionKeys
getExclusionKeys(key, excludeKeys)
Parameters :
Name Optional
key No
excludeKeys No
Returns : string[]
getStateSlice
getStateSlice(keys, excludeKeys, state)
Parameters :
Name Optional
keys No
excludeKeys No
state No
Returns : E
getStateSliceValue
getStateSliceValue(keys, state)
Parameters :
Name Optional
keys No
state No
Returns : E
handleExclusions
handleExclusions(key, excludeKeys, value: any)
Parameters :
Name Type Optional
key No
excludeKeys No
value any No
Returns : any

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/create.ts

createTest
createTest(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/auth-redirects.ts

createUser
createUser()

Creates user, but doesn't log in

Returns : AccountData
fakeExpiredAccessToken
fakeExpiredAccessToken()

Fakes the expiration of the access token by tampering it's value.

revokeAccessToken
revokeAccessToken()

Revokes access token via http endpoint

core-libs/setup/ssr/engine-decorator/ng-express-engine-decorator.ts

decorateExpressEngine
decorateExpressEngine(ngExpressEngine, optimizationOptions)
Parameters :
Name Optional
ngExpressEngine No
optimizationOptions No
Returns : NgExpressEngine

projects/core/src/config/utils/deep-merge.ts

deepMerge
deepMerge(target, ...sources: undefined)
Parameters :
Name Optional
target No
sources No
Returns : any
isObject
isObject(item: any)
Parameters :
Name Type Optional
item any No
Returns : boolean

projects/storefrontlib/utils/form-utils.ts

deepUpdateValueAndValidity
deepUpdateValueAndValidity(control, options)

Calls the native Angular method #updateValueAndValidity for the given from control and all its descendants (in case when it's FormGroup or FormArray).

In particular it's useful for triggering re-emission of observables valueChanges and statusChanges for all descendant form controls.

Note: Dropping this function may be considered, when it's implemented natively by Angular. See https://github.com/angular/angular/issues/6170

Parameters :
Name Optional Description
control No

form control

options No

additional options

  • emitEvent: When true or not given (the default), the statusChanges and valueChanges observables emit the latest status and value. When false, it doesn't trigger observables emission.
Returns : void

feature-libs/cart/saved-cart/root/saved-cart-root.module.ts

defaultCartSavedCartComponentsConfig
defaultCartSavedCartComponentsConfig()
Returns : CmsConfig

feature-libs/checkout/root/checkout-root.module.ts

defaultCheckoutComponentsConfig
defaultCheckoutComponentsConfig()

integration-libs/epd-visualization/root/epd-visualization-root.module.ts

defaultEpdVisualizationComponentsConfig
defaultEpdVisualizationComponentsConfig()
Returns : CmsConfig

projects/core/src/global-message/config/default-global-message-config.ts

defaultGlobalMessageConfigFactory
defaultGlobalMessageConfigFactory()

feature-libs/product/image-zoom/root/product-image-zoom-root.module.ts

defaultImageZoomComponentsConfig
defaultImageZoomComponentsConfig()

feature-libs/product-configurator/textfield/occ/default-occ-configurator-textfield-config.ts

defaultOccConfiguratorTextfieldConfigFactory
defaultOccConfiguratorTextfieldConfigFactory()
Returns : OccConfig

feature-libs/product-configurator/rulebased/cpq/occ/default-occ-configurator-cpq-config.ts

defaultOccCpqConfiguratorConfigFactory
defaultOccCpqConfiguratorConfigFactory()
Returns : OccConfig

feature-libs/product-configurator/rulebased/occ/variant/default-occ-configurator-variant-config.ts

defaultOccVariantConfiguratorConfigFactory
defaultOccVariantConfiguratorConfigFactory()
Returns : OccConfig

feature-libs/order/root/order-root.module.ts

defaultOrderComponentsConfig
defaultOrderComponentsConfig()
Returns : CmsConfig

feature-libs/organization/administration/root/administration-root.module.ts

defaultOrganizationAdministrationComponentsConfig
defaultOrganizationAdministrationComponentsConfig()
Returns : CmsConfig

feature-libs/organization/order-approval/root/order-approval-root.module.ts

defaultOrganizationOrderApprovalComponentsConfig
defaultOrganizationOrderApprovalComponentsConfig()
Returns : CmsConfig

feature-libs/tracking/personalization/root/personalization-root.module.ts

defaultPersonalizationComponentsConfig
defaultPersonalizationComponentsConfig()
Returns : CmsConfig

feature-libs/product/bulk-pricing/root/bulk-pricing-root.module.ts

defaultProductBulkPricingComponentsConfig
defaultProductBulkPricingComponentsConfig()
Returns : CmsConfig

feature-libs/product-configurator/rulebased/root/rulebased-configurator-root-feature.module.ts

defaultProductConfiguratorRulebasedComponentsConfig
defaultProductConfiguratorRulebasedComponentsConfig()
Returns : CmsConfig

feature-libs/product-configurator/textfield/root/textfield-configurator-root-feature.module.ts

defaultProductConfiguratorTextfieldComponentsConfig
defaultProductConfiguratorTextfieldComponentsConfig()
Returns : CmsConfig

feature-libs/product/variants/root/product-variants-root.module.ts

defaultProductVariantsComponentsConfig
defaultProductVariantsComponentsConfig()
Returns : CmsConfig

feature-libs/qualtrics/root/qualtrics-root.module.ts

defaultQualtricsComponentsConfig
defaultQualtricsComponentsConfig()
Returns : CmsConfig

feature-libs/cart/quick-order/root/quick-order-root.module.ts

defaultQuickOrderComponentsConfig
defaultQuickOrderComponentsConfig()

projects/core/src/site-context/config/default-site-context-config.ts

defaultSiteContextConfigFactory
defaultSiteContextConfigFactory()
Returns : SiteContextConfig

feature-libs/storefinder/root/store-finder-root.module.ts

defaultStoreFinderComponentsConfig
defaultStoreFinderComponentsConfig()
Returns : CmsConfig

feature-libs/user/account/root/user-account-root.module.ts

defaultUserAccountComponentsConfig
defaultUserAccountComponentsConfig()
Returns : CmsConfig

feature-libs/user/profile/root/user-profile-root.module.ts

defaultUserProfileComponentsConfig
defaultUserProfileComponentsConfig()
Returns : CmsConfig

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/store-finder/default-view.ts

defaultViewTabbingOrder
defaultViewTabbingOrder(config)
Parameters :
Name Optional
config No

projects/core/src/state/utils/serializer.ts

denormalizeCustomB2BSearch
denormalizeCustomB2BSearch(list, entities, params?, id?)
Parameters :
Name Optional
list No
entities No
params Yes
id Yes
Returns : LoaderState<EntitiesModel<T>>
denormalizeSearch
denormalizeSearch(state, params?)
Parameters :
Name Optional
state No
params Yes
Returns : LoaderState<EntitiesModel<T>>
normalizeListPage
normalizeListPage(list, id)
Parameters :
Name Optional
list No
id No
Returns : literal type
serializeParams
serializeParams(params, searchConfig)
Parameters :
Name Optional
params No
searchConfig No
Returns : string
serializeSearchConfig
serializeSearchConfig(config, id?)
Parameters :
Name Optional
config No
id Yes
Returns : string

.github/hs-deploy-action/src/deploy.ts

deploy
deploy(github: any, octoKit: any, branch)

Deploys an app to the hosting service

Parameters :
Name Type Optional Description
github any No

Github object

octoKit any No

Octokit object

branch No

Name of the branch to deploy

undeploy
undeploy(branch: any)

Undeploys an app from the Upscale hosting service

Parameters :
Name Type Optional Description
branch any No

Name of the branch to undeploy

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/disable.ts

disableTest
disableTest(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/order-history.ts

doPlaceOrder
doPlaceOrder(productData?: any)
Parameters :
Name Type Optional
productData any Yes

projects/core/src/state/utils/entity-loader/entity-loader.selectors.ts

entityErrorSelector
entityErrorSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : boolean
entityLoaderStateSelector
entityLoaderStateSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : LoaderState<T>
entityLoadingSelector
entityLoadingSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : boolean
entitySuccessSelector
entitySuccessSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : boolean
entityValueSelector
entityValueSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : T

projects/core/src/state/utils/entity-loader/entity-loader.action.ts

entityFailMeta
entityFailMeta(entityType, id, error?: any)
Parameters :
Name Type Optional
entityType No
id No
error any Yes
Returns : EntityLoaderMeta
entityLoadMeta
entityLoadMeta(entityType, id)
Parameters :
Name Optional
entityType No
id No
Returns : EntityLoaderMeta
entityResetMeta
entityResetMeta(entityType, id?)
Parameters :
Name Optional
entityType No
id Yes
Returns : EntityLoaderMeta
entitySuccessMeta
entitySuccessMeta(entityType, id)
Parameters :
Name Optional
entityType No
id No
Returns : EntityLoaderMeta

projects/core/src/state/utils/entity-processes-loader/entity-processes-loader.selectors.ts

entityHasPendingProcessesSelector
entityHasPendingProcessesSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : boolean
entityIsStableSelector
entityIsStableSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : boolean
entityProcessesLoaderStateSelector
entityProcessesLoaderStateSelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : ProcessesLoaderState<T>

projects/core/src/state/utils/entity-loader/entity-loader.reducer.ts

entityLoaderReducer
entityLoaderReducer(entityType, reducer?)

Higher order reducer that wraps LoaderReducer and EntityReducer enhancing single state reducer to support multiple entities with generic loading flags

Parameters :
Name Optional
entityType No
reducer Yes

projects/core/src/state/utils/entity/entity.action.ts

entityMeta
entityMeta(type, id?)
Parameters :
Name Optional
type No
id Yes
Returns : EntityMeta
entityRemoveAllMeta
entityRemoveAllMeta(type)
Parameters :
Name Optional
type No
Returns : EntityMeta
entityRemoveMeta
entityRemoveMeta(type, id)
Parameters :
Name Optional
type No
id No
Returns : EntityMeta

projects/core/src/state/utils/entity-processes-loader/entity-processes-loader.action.ts

entityProcessesDecrementMeta
entityProcessesDecrementMeta(entityType, id)
Parameters :
Name Optional
entityType No
id No
entityProcessesIncrementMeta
entityProcessesIncrementMeta(entityType, id)
Parameters :
Name Optional
entityType No
id No
entityProcessesLoaderResetMeta
entityProcessesLoaderResetMeta(entityType, id)
Parameters :
Name Optional
entityType No
id No

projects/core/src/state/utils/entity-processes-loader/entity-processes-loader.reducer.ts

entityProcessesLoaderReducer
entityProcessesLoaderReducer(entityType, reducer?)

Higher order reducer that wraps ProcessesLoaderReducer and EntityReducer enhancing single state reducer to support multiple entities with generic processesCount flag

Parameters :
Name Optional
entityType No
reducer Yes

projects/core/src/state/utils/entity/entity.reducer.ts

entityReducer
entityReducer(entityType, reducer)

Higher order reducer for reusing reducer logic for multiple entities

Utilizes entityId meta field to target entity by id in actions

Parameters :
Name Optional
entityType No
reducer No

projects/core/src/state/utils/scoped-loader/entity-scoped-loader.actions.ts

entityScopedFailMeta
entityScopedFailMeta(entityType, id, scope?, error?: any)
Parameters :
Name Type Optional
entityType No
id No
scope Yes
error any Yes
entityScopedLoadMeta
entityScopedLoadMeta(entityType, id, scope?)
Parameters :
Name Optional
entityType No
id No
scope Yes
entityScopedResetMeta
entityScopedResetMeta(entityType, id?, scope?)
Parameters :
Name Optional
entityType No
id Yes
scope Yes
entityScopedSuccessMeta
entityScopedSuccessMeta(entityType, id, scope?)
Parameters :
Name Optional
entityType No
id No
scope Yes

projects/core/src/state/utils/scoped-loader/entity-scoped-loader.reducer.ts

entityScopedLoaderReducer
entityScopedLoaderReducer(entityType, reducer?)

Higher order reducer that wraps scopedLoaderReducer and EntityReducer enhancing single state reducer to support multiple entities with generic loading flags and scopes

Parameters :
Name Optional
entityType No
reducer Yes

projects/core/src/state/utils/entity/entity.selectors.ts

entitySelector
entitySelector(state, id)
Parameters :
Name Optional
state No
id No
Returns : T

integration-libs/epd-visualization/root/config/epd-visualization-config-validator.ts

epdVisualizationConfigValidator
epdVisualizationConfigValidator(epdVisualizationConfig)
Parameters :
Name Optional
epdVisualizationConfig No
Returns : string | void
invalidUrlMessage
invalidUrlMessage(propertyName, url)
Parameters :
Name Optional
propertyName No
url No
invalidUrlProtocolMessage
invalidUrlProtocolMessage(propertyName)
Parameters :
Name Optional
propertyName No
unconfiguredPropertyMessage
unconfiguredPropertyMessage(propertyName)
Parameters :
Name Optional
propertyName No

tools/config/index.ts

error
error(file, errors, help)

Print error

Parameters :
Name Optional Description
file No

related file

errors No

list of errors

help No

help information

Returns : void
logUpdatedFile
logUpdatedFile(path)

Log updated file

Parameters :
Name Optional Description
path No

updated file path

Returns : void
logViolation
logViolation(file, violation, undefined)

Log violation (warning,error) for file

Parameters :
Name Optional Description
file No

related file

violation No
No
Returns : void
readJsonFile
readJsonFile(path)

Read content of json file

Parameters :
Name Optional Description
path No

file path

Returns : any
reportProgress
reportProgress(message)

Log script step

Parameters :
Name Optional Description
message No

step to log

Returns : void
success
success(message?)

Logger when everything was ok

Parameters :
Name Optional
message Yes
Returns : void
warning
warning(file, warnings, help)

Print warning

Parameters :
Name Optional Description
file No

related file

warnings No

list of warnings

help No

help information

Returns : void

projects/core/src/occ/utils/occ-fields.ts

extractFields
extractFields(data, fields)

Extract part of the object described by fields definition

Parameters :
Name Optional
data No
fields No
Returns : T
getObjectPart
getObjectPart(data, fields)
Parameters :
Name Optional
data No
fields No
Returns : T
mergeFields
mergeFields(fields)

Merge occ fields parameters

Parameters :
Name Optional Description
fields No

Fields definition as string or object

Returns : string
optimizeFields
optimizeFields(fields)

Optimize fields definition by removing not needed groups

Parameters :
Name Optional
fields No
Returns : object
parseFields
parseFields(fields, startIndex: number)

Parse string field definition to an AST object

Parameters :
Name Type Optional Description
fields No

Fields string definition

startIndex number No

Used for recurrence

Returns : | object
stringifyFields
stringifyFields(fields)

Convert AST object fields definition to string representation

Parameters :
Name Optional
fields No
Returns : string

scripts/versions.ts

extractPreviousVersionForChangelog
extractPreviousVersionForChangelog(packageVersions, newVersion)
Parameters :
Name Optional
packageVersions No
newVersion No
fetchPackageVersions
fetchPackageVersions(npmPackage)
Parameters :
Name Optional
npmPackage No
pkgVersionsPromise
pkgVersionsPromise(packageName)
Parameters :
Name Optional
packageName No

projects/core/src/lazy-loading/facade-factory/facade-factory.ts

facadeFactory
facadeFactory(descriptor)

Factory that will create proxy facade, which is a service that will expose methods and properties from a facade implemented in the lazy loaded module.

Returned proxy facade will lazy load the feature and facade implementation at first method call or when first property observable will be subscribed.

Parameters :
Name Optional
descriptor No
Returns : T

projects/core/src/state/utils/loader/loader.action.ts

failMeta
failMeta(entityType, error?: any)
Parameters :
Name Type Optional
entityType No
error any Yes
Returns : LoaderMeta
loadMeta
loadMeta(entityType)
Parameters :
Name Optional
entityType No
Returns : LoaderMeta
resetMeta
resetMeta(entityType)
Parameters :
Name Optional
entityType No
Returns : LoaderMeta
successMeta
successMeta(entityType)
Parameters :
Name Optional
entityType No
Returns : LoaderMeta

projects/storefrontapp-e2e-cypress/cypress/helpers/vendor/cdc/cdc.ts

fillAndSubmitRegistrationForm
fillAndSubmitRegistrationForm()
login
login()
register
register()
registerUser
registerUser()
updateUserProfile
updateUserProfile()
verifyLoginOrRegistrationSuccess
verifyLoginOrRegistrationSuccess()
verifyProfileUpdateSuccess
verifyProfileUpdateSuccess()

projects/storefrontapp-e2e-cypress/cypress/helpers/checkout-forms.ts

fillBillingAddress
fillBillingAddress(billingAddress)
Parameters :
Name Optional
billingAddress No
fillPaymentDetails
fillPaymentDetails(paymentDetails, billingAddress?, submitForm: boolean)
Parameters :
Name Type Optional
paymentDetails No
billingAddress Yes
submitForm boolean No
fillShippingAddress
fillShippingAddress(shippingAddress, submitForm: boolean)
Parameters :
Name Type Optional
shippingAddress No
submitForm boolean No

projects/storefrontapp-e2e-cypress/cypress/helpers/auth-forms.ts

fillLoginForm
fillLoginForm(undefined)
Parameters :
Name Optional
No
fillRegistrationForm
fillRegistrationForm(undefined, giveRegistrationConsent, hiddenConsent?)
Parameters :
Name Optional
No
giveRegistrationConsent No
hiddenConsent Yes
login
login(username, password)
Parameters :
Name Optional
username No
password No
register
register(user, giveRegistrationConsent, hiddenConsent?)
Parameters :
Name Optional
user No
giveRegistrationConsent No
hiddenConsent Yes

projects/storefrontlib/cms-structure/routing/suffix-routes/suffix-url-matcher.ts

findLastIndex
findLastIndex(elements, predicate)
Parameters :
Name Optional
elements No
predicate No
getSuffixUrlMatcher
getSuffixUrlMatcher(undefined)

Matches the pattern '[ ** / ] marker / :paramName'

Parameters :
Name Optional
No

feature-libs/storefinder/core/store/reducers/find-stores.reducer.ts

findStoresReducer
findStoresReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : FindStoresState

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/footer.ts

footerTabbingOrder
footerTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/reset-password.ts

forgotPasswordTabbingOrder
forgotPasswordTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/user.ts

generateMail
generateMail(alias, newTimestamp: boolean)
Parameters :
Name Type Optional
alias No
newTimestamp boolean No
randomString
randomString()

projects/storefrontapp-e2e-cypress/cypress/helpers/global-message.ts

getAlert
getAlert()
getErrorAlert
getErrorAlert()
getSuccessAlert
getSuccessAlert()
getWarningAlert
getWarningAlert()

projects/storefrontapp-e2e-cypress/cypress/sample-data/apparel-checkout-flow.ts

getApparelCheckoutUser
getApparelCheckoutUser()

projects/schematics/src/shared/utils/config-utils.ts

getB2bConfiguration
getB2bConfiguration()
Returns : CustomConfig[]
getSpartacusProviders
getSpartacusProviders(sourceFile)
Parameters :
Name Optional
sourceFile No
Returns : Node[]
normalizeConfiguration
normalizeConfiguration(config)
Parameters :
Name Optional
config No
Returns : string

projects/core/src/state/reducers/transfer-state.reducer.ts

getBrowserTransferStateReducer
getBrowserTransferStateReducer(transferState, keys, isLoggedIn: boolean)
Parameters :
Name Type Optional
transferState No
keys No
isLoggedIn boolean No
getServerTransferStateReducer
getServerTransferStateReducer(transferState, keys)
Parameters :
Name Optional
transferState No
keys No
getTransferStateReducer
getTransferStateReducer(platformId, transferState?, config?, authStatePersistenceService?)
Parameters :
Name Optional
platformId No
transferState Yes
config Yes
authStatePersistenceService Yes

projects/core/src/cart/utils/utils.ts

getCartIdByUserId
getCartIdByUserId(cart, userId)

Extract cart identifier for current user. Anonymous calls use guid and for logged users code is used.

Parameters :
Name Optional
cart No
userId No
Returns : string
getWishlistName
getWishlistName(customerId)

Compute wishlist cart name for customer.

Parameters :
Name Optional
customerId No
Returns : string
isCartNotFoundError
isCartNotFoundError(error)

Check if the returned error is of type notFound.

We additionally check if the cart is not a selective cart. For selective cart this error can happen only when extension is disabled. It should never happen, because in that case, selective cart should also be disabled in our configuration. However if that happens we want to handle these errors silently.

Parameters :
Name Optional
error No
Returns : boolean
isSelectiveCart
isSelectiveCart(cartId: string)

Check if cart is selective (save for later) based on id.

Parameters :
Name Type Optional
cartId string No
Returns : boolean
isTempCartId
isTempCartId(cartId)

What is a temporary cart?

  • frontend only cart entity!
  • can be identified in store by temp- prefix with some unique id (multiple carts can be created at the same time eg. active cart, wishlist)

Why we need temporary carts?

  • to have information about cart creation process (meta flags: loading, error - for showing loader, error message)
  • to know if there is currently a cart creation process in progress (eg. so, we don't create more than one active cart at the same time)
  • cart identifiers are created in the backend, so those are only known after cart is created

Temporary cart life cycle

  • create cart method invoked
  • new temp-${uuid} cart is created with loading=true state
  • backend returns created cart
  • normal cart entity is saved under correct id (eg. for logged user under cart code key)
  • temporary cart value is set to backend response (anyone observing this cart can read code/guid from it and switch selector to normal cart)
  • in next tick temporary cart is removed
Parameters :
Name Optional
cartId No
Returns : boolean

feature-libs/product-configurator/rulebased/core/state/reducers/index.ts

getConfiguratorReducers
getConfiguratorReducers()

feature-libs/product-configurator/textfield/core/state/reducers/index.ts

getConfiguratorTextfieldReducers
getConfiguratorTextfieldReducers()

projects/schematics/src/shared/utils/test-utils.ts

getConstructor
getConstructor(nodes)
Parameters :
Name Optional
nodes No
Returns : ts.Node
getParams
getParams(constructorNode, camelizedParamNames)
Parameters :
Name Optional
constructorNode No
camelizedParamNames No
Returns : string[]
getSuperNode
getSuperNode(constructorNode)
Parameters :
Name Optional
constructorNode No
runMigration
runMigration(appTree, schematicRunner, migrationScript, options: object)
Parameters :
Name Type Optional
appTree No
schematicRunner No
migrationScript No
options object No
Returns : Promise<UnitTestTree>
writeFile
writeFile(host, filePath, contents)
Parameters :
Name Optional
host No
filePath No
contents No
Returns : void

projects/core/src/site-context/config/context-config-utils.ts

getContextParameterDefault
getContextParameterDefault(config, parameter)

Helper function for calculating default value for context parameter from config

Parameters :
Name Optional
config No
parameter No
Returns : string | undefined
getContextParameterValues
getContextParameterValues(config, parameter)

Helper function for safely getting context parameter config

Parameters :
Name Optional
config No
parameter No
Returns : string[]

projects/core/src/config/utils/get-cookie.ts

getCookie
getCookie(cookie, name)
Parameters :
Name Optional
cookie No
name No

projects/storefrontapp-e2e-cypress/cypress/support/utils/delivery-modes.ts

getDefaultDeliveryModeCode
getDefaultDeliveryModeCode(accessToken, cartId?)
Parameters :
Name Optional
accessToken No
cartId Yes

projects/core/src/routing/url-matcher/default-url-matcher.ts

getDefaultUrlMatcherFactory
getDefaultUrlMatcherFactory(routingConfigService, urlMatcherService)
Parameters :
Name Optional
routingConfigService No
urlMatcherService No
Returns : UrlMatcherFactory

integration-libs/epd-visualization/root/config/epd-visualization-default-config.ts

getEpdVisualizationDefaultConfig
getEpdVisualizationDefaultConfig()

projects/core/src/util/glob-utils.ts

getGlobMatcher
getGlobMatcher(patterns)

For given list of glob-like patterns, returns a matcher function.

The matcher returns true for given URL only when ANY of the positive patterns is matched and NONE of the negative ones.

Parameters :
Name Optional
patterns No
Returns : boolean
globToRegex
globToRegex(glob, literalQuestionMark)

Converts the glob-like pattern into regex string.

Patterns use a limited glob format: ** matches 0 or more path segments * matches 0 or more characters excluding / ? matches exactly one character excluding / (but when @param literalQuestionMark is true, ? is treated as normal character) The ! prefix marks the pattern as being negative, meaning that only URLs that don't match the pattern will be included

Parameters :
Name Optional Description
glob No

glob-like pattern

literalQuestionMark No

when true, it tells that ? is treated as a normal character

Returns : string
processGlobPatterns
processGlobPatterns(urls)

Converts list of glob-like patterns into list of RegExps with information whether the glob pattern is positive or negative

Parameters :
Name Optional
urls No
Returns : literal type[]

feature-libs/organization/administration/core/utils/get-item-status.ts

getItemStatus
getItemStatus(itemState)
Parameters :
Name Optional
itemState No

projects/core/src/util/rxjs/get-last-value-sync.ts

getLastValueSync
getLastValueSync(source)

Will grab last synchronously available value from the observable stream at the time of the call.

Should be used with caution, as it's not a legitimate way for getting value from the observable. Observable composition or standard subscribe method should be used for most of the cases.

Parameters :
Name Optional
source No
Returns : T | undefined

projects/core/src/i18n/i18next/i18next-init.ts

getLoadPath
getLoadPath(path, serverRequestOrigin)

Resolves the relative path to the absolute one in SSR, using the server request's origin. It's needed, because Angular Universal doesn't support relative URLs in HttpClient. See Angular issues:

Parameters :
Name Optional
path No
serverRequestOrigin No
Returns : string
i18nextAddTranslations
i18nextAddTranslations(i18next, resources)
Parameters :
Name Optional
i18next No
resources No
Returns : void
i18nextGetHttpClient
i18nextGetHttpClient(httpClient)

Returns a function appropriate for i18next to make http calls for JSON files. See docs for i18next-http-backend: https://github.com/i18next/i18next-http-backend#backend-options

It uses Angular HttpClient under the hood, so it works in SSR.

Parameters :
Name Optional Description
httpClient No

Angular http client

Returns : void
i18nextInit
i18nextInit(i18next, configInit, languageService, httpClient, serverRequestOrigin, siteContextI18nextSynchronizer)
Parameters :
Name Optional
i18next No
configInit No
languageService No
httpClient No
serverRequestOrigin No
siteContextI18nextSynchronizer No
Returns : Promise<any>

projects/core/src/occ/config/config-from-meta-tag-factory.ts

getMetaTagContent
getMetaTagContent(name, meta)
Parameters :
Name Optional
name No
meta No
mediaServerConfigFromMetaTagFactory
mediaServerConfigFromMetaTagFactory(meta)
Parameters :
Name Optional
meta No
Returns : OccConfig
occServerConfigFromMetaTagFactory
occServerConfigFromMetaTagFactory(meta)
Parameters :
Name Optional
meta No
Returns : OccConfig
provideConfigFromMetaTags
provideConfigFromMetaTags()
Returns : Provider[]

projects/storefrontapp-e2e-cypress/cypress/support/utils/a11y-tab.ts

getNextFocusableElement
getNextFocusableElement(elements, activeElementIndex)
Parameters :
Name Optional
elements No
activeElementIndex No
Returns : HTMLElement
getPreviousFocusableElement
getPreviousFocusableElement(elements, activeElementIndex)
Parameters :
Name Optional
elements No
activeElementIndex No
Returns : HTMLElement

projects/core/src/process/store/selectors/process.selectors.ts

getProcessErrorFactory
getProcessErrorFactory(processId)
Parameters :
Name Optional
processId No
Returns : MemoizedSelector<StateWithProcess<T>, boolean>
getProcessLoadingFactory
getProcessLoadingFactory(processId)
Parameters :
Name Optional
processId No
Returns : MemoizedSelector<StateWithProcess<T>, boolean>
getProcessStateFactory
getProcessStateFactory(processId)
Parameters :
Name Optional
processId No
Returns : MemoizedSelector<StateWithProcess<T>, LoaderState<T>>
getProcessSuccessFactory
getProcessSuccessFactory(processId)
Parameters :
Name Optional
processId No
Returns : MemoizedSelector<StateWithProcess<T>, boolean>

projects/core/src/process/store/selectors/feature.selector.ts

getProcessState
getProcessState()

projects/storefrontlib/cms-pages/product-details-page/product-details-url-matcher.ts

getProductDetailsUrlMatcherFactory
getProductDetailsUrlMatcherFactory(service, defaultMatcherFactory)
Parameters :
Name Optional
service No
defaultMatcherFactory No
Returns : UrlMatcherFactory

projects/storefrontlib/cms-pages/product-listing-page/product-listing-url-matcher.ts

getProductListingUrlMatcherFactory
getProductListingUrlMatcherFactory(service, defaultMatcherFactory)
Parameters :
Name Optional
service No
defaultMatcherFactory No
Returns : UrlMatcherFactory

projects/schematics/src/shared/utils/project-tsconfig-paths.ts

getProjectTsConfigPaths
getProjectTsConfigPaths(tree, project?)

Gets all tsconfig paths (or only for specific project) from a CLI project by reading the workspace configuration and looking for common tsconfig locations.

Parameters :
Name Optional
tree No
project Yes
Returns : literal type
getTargetTsconfigPath
getTargetTsconfigPath(project, targetName)

Gets the tsconfig path from the given target within the specified project.

Parameters :
Name Optional
project No
targetName No
Returns : string | null

feature-libs/order/core/store/reducers/index.ts

getReducers
getReducers()
Returns : ActionReducerMap<OrderState, any>

feature-libs/checkout/core/store/reducers/index.ts

getReducers
getReducers()
Returns : ActionReducerMap<CheckoutState, any>

projects/core/src/global-message/store/reducers/index.ts

getReducers
getReducers()
Returns : ActionReducer<GlobalMessageState>

projects/core/src/routing/store/reducers/router.reducer.ts

getReducers
getReducers()
reducer
reducer(state, action: any)
Parameters :
Name Type Optional
state No
action any No
Returns : RouterState

projects/core/src/process/store/reducers/index.ts

getReducers
getReducers()

projects/core/src/site-context/store/reducers/index.ts

getReducers
getReducers()
Returns : ActionReducerMap<SiteContextState>

projects/core/src/auth/client-auth/store/reducers/index.ts

getReducers
getReducers()
Returns : ActionReducerMap<ClientAuthState>

projects/core/src/user/store/reducers/transitional.ts

getReducersTransitional
since 4.2 - use getReducersTransitional_4_2 with order lib instead
getReducersTransitional()
Returns : ActionReducerMap<Partial<UserState>>

projects/core/src/user/store/reducers/transitional_4_2.ts

getReducersTransitional_4_2
getReducersTransitional_4_2()
Returns : ActionReducerMap<Partial<UserState>>

core-libs/setup/ssr/util/request-origin.ts

getRequestOrigin
getRequestOrigin(req)
Parameters :
Name Optional
req No
Returns : string

core-libs/setup/ssr/util/request-url.ts

getRequestUrl
getRequestUrl(req)
Parameters :
Name Optional
req No
Returns : string

projects/storefrontapp-e2e-cypress/cypress/sample-data/checkout-flow.ts

getSampleUser
getSampleUser()

core-libs/setup/ssr/providers/ssr-providers.ts

getServerRequestProviders
getServerRequestProviders()

Returns Spartacus providers to be passed to the Angular express engine (in SSR)

Returns : StaticProvider[]

projects/core/src/state/utils/browser-storage.ts

getStorage
getStorage(storageType, winRef)
Parameters :
Name Optional
storageType No
winRef No
isSsr
isSsr(storage)
Parameters :
Name Optional
storage No
Returns : boolean
persistToStorage
persistToStorage(configKey, value: any, storage)
Parameters :
Name Type Optional
configKey No
value any No
storage No
Returns : void
readFromStorage
readFromStorage(storage, key)
Parameters :
Name Optional
storage No
key No
Returns : unknown

projects/storefrontlib/cms-structure/seo/structured-data/structured-data.module.ts

getStructuredDataFactory
getStructuredDataFactory(injector)

Factory to build the structure data without any interaction with the UI.

Parameters :
Name Optional
injector No
Returns : void

integration-libs/epd-visualization/root/testing/epd-visualization-test-config.ts

getTestConfig
getTestConfig()

integration-libs/epd-visualization/root/util/url-utils.ts

getUrl
getUrl(urlString)
Parameters :
Name Optional
urlString No
Returns : URL | null
isHttpOrHttps
isHttpOrHttps(url)
Parameters :
Name Optional
url No

projects/core/src/state/utils/processes-loader/processes-loader.selectors.ts

hasPendingProcessesSelector
hasPendingProcessesSelector(state)
Parameters :
Name Optional
state No
Returns : boolean
isStableSelector
isStableSelector(state)
Parameters :
Name Optional
state No
Returns : boolean

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/header.ts

headerTabbingOrder
headerTabbingOrder(config, mobile: boolean, loggedIn: boolean)
Parameters :
Name Type Optional
config No
mobile boolean No
loggedIn boolean No
subCategoryTabbingOrder
subCategoryTabbingOrder(config, subCategoryName, mobile: boolean)
Parameters :
Name Type Optional
config No
subCategoryName No
mobile boolean No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/home.ts

homeTabbingOrder
homeTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/my-company.utils.ts

ignoreCaseSensivity
ignoreCaseSensivity(base)

Converts string value to RegExp ignoring case sensivity.

Parameters :
Name Optional
base No
Returns : RegExp
loginAsMyCompanyAdmin
loginAsMyCompanyAdmin()

Login as user with organization administration powers.

Returns : void
testMyCompanyFeatureFromConfig
testMyCompanyFeatureFromConfig(config)
Parameters :
Name Optional
config No
waitForData
waitForData(suffix, thenCommand, waitForCommand)
Parameters :
Name Optional
suffix No
thenCommand No
waitForCommand No
Returns : void

projects/core/src/routing/routing.module.ts

initConfigurableRoutes
initConfigurableRoutes(service)
Parameters :
Name Optional
service No
Returns : void

projects/storefrontlib/layout/direction/direction.module.ts

initHtmlDirAttribute
initHtmlDirAttribute(directionService, featureConfigService)
Parameters :
Name Optional
directionService No
featureConfigService No
Returns : void

projects/core/src/i18n/i18n.module.ts

initI18nConfig
initI18nConfig(configInitializer, config)
Parameters :
Name Optional
configInitializer No
config No

projects/core/src/site-context/providers/context-initializer-providers.ts

initializeBaseSite
initializeBaseSite(baseSiteInitializer)
Parameters :
Name Optional
baseSiteInitializer No
Returns : void
initializeCurrency
initializeCurrency(currencyInitializer)
Parameters :
Name Optional
currencyInitializer No
Returns : void
initializeLanguage
initializeLanguage(languageInitializer)
Parameters :
Name Optional
languageInitializer No
Returns : void

projects/core/src/site-context/providers/context-service-providers.ts

initializeContext
initializeContext(configInit, siteContextRoutesHandler)
Parameters :
Name Optional
configInit No
siteContextRoutesHandler No
Returns : Promise<Config>

projects/storefrontlib/cms-structure/seo/seo.module.ts

initSeoService
initSeoService(injector)
Parameters :
Name Optional
injector No
Returns : void

projects/core/src/site-context/site-context.module.ts

initSiteContextConfig
initSiteContextConfig(configInitializer, config)

Initializes the site context config

Parameters :
Name Optional
configInitializer No
config No

projects/storefrontlib/layout/theme/theme.module.ts

initTheme
initTheme(themeService)
Parameters :
Name Optional
themeService No

projects/storefrontlib/cms-structure/services/cms-guards.service.ts

isCanActivate
isCanActivate(guard: any)
Parameters :
Name Type Optional
guard any No
Returns : CanActivate
isFunction
isFunction(v: any)
Parameters :
Name Type Optional
v any No
Returns : T
isPromise
isPromise(obj: any)
Parameters :
Name Type Optional
obj any No
Returns : Promise<any>
wrapIntoObservable
wrapIntoObservable(value)
Parameters :
Name Optional
value No
Returns : Observable<T>

projects/core/src/features-config/utils/feature-config-utils.ts

isFeatureConfig
isFeatureConfig(config)
Parameters :
Name Optional
config No
Returns : Required<FeaturesConfig>
isFeatureEnabled
isFeatureEnabled(config, feature)
Parameters :
Name Optional
config No
feature No
Returns : boolean
isFeatureLevel
isFeatureLevel(config, level)
Parameters :
Name Optional
config No
level No
Returns : boolean
isInLevel
isInLevel(level, version)
Parameters :
Name Optional
level No
version No
Returns : boolean

projects/schematics/src/shared/utils/import-utils.ts

isImportedFrom
isImportedFrom(node, importPath)
Parameters :
Name Optional
node No
importPath No
Returns : boolean
isImportedFromSpartacusLibs
isImportedFromSpartacusLibs(node)
Parameters :
Name Optional
node No
Returns : boolean

projects/core/src/util/type-guards.ts

isNotNullable
isNotNullable(value)
Parameters :
Name Optional
value No
Returns : NonNullable<T>
isNotUndefined
isNotUndefined(value)
Parameters :
Name Optional
value No
Returns : T

projects/core/src/routing/configurable-routes/url-translation/testing/mock-url.pipe.ts

isObject
isObject(item: any)
Parameters :
Name Type Optional
item any No
Returns : boolean

projects/storefrontlib/layout/a11y/keyboard-focus/keyboard-focus.module.ts

keyboardFocusFactory
since 4.2, refer to spartacus issues (#13762) Start keyboard focus services on app initialization.
keyboardFocusFactory(onNavigateFocusService)
Parameters :
Name Optional
onNavigateFocusService No

projects/storefrontapp-e2e-cypress/cypress/helpers/login.ts

listenForTokenAuthenticationRequest
listenForTokenAuthenticationRequest()
Returns : string
listenForTokenRevocationRequest
listenForTokenRevocationRequest()
Returns : string
loginAsDefaultUser
loginAsDefaultUser()
loginUser
loginUser()
loginWithBadCredentials
loginWithBadCredentials()
registerUser
registerUser()

Use only if you are outside of /login page. Redirects to /login page, then uses registerUserFromLoginPage() helper function.

registerUserFromLoginPage
registerUserFromLoginPage()

Use only if you already are on the /login page. Redirects to /register page and registers the user.

signOutUser
signOutUser()

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/list.ts

listTest
listTest(config)
Parameters :
Name Optional
config No
Returns : void

projects/core/src/state/utils/loader/loader.selectors.ts

loaderErrorSelector
loaderErrorSelector(state)
Parameters :
Name Optional
state No
Returns : boolean
loaderLoadingSelector
loaderLoadingSelector(state)
Parameters :
Name Optional
state No
Returns : boolean
loaderSuccessSelector
loaderSuccessSelector(state)
Parameters :
Name Optional
state No
Returns : boolean
loaderValueSelector
loaderValueSelector(state)
Parameters :
Name Optional
state No
Returns : T

projects/core/src/state/utils/loader/loader.reducer.ts

loaderReducer
loaderReducer(entityType, reducer?)

Higher order reducer that adds generic loading flag to chunk of the state

Utilizes "loader" meta field of actions to set specific flags for specific action (LOAD, SUCCESS, FAIL, RESET)

Parameters :
Name Optional
entityType No
reducer Yes
Returns : LoaderState<T>

scripts/packages.ts

loadPackageJson
loadPackageJson(p)
Parameters :
Name Optional
p No

projects/storefrontapp-e2e-cypress/cypress/support/utils/login.ts

login
login(uid, password, failOnStatusCode: boolean)
Parameters :
Name Type Optional
uid No
password No
failOnStatusCode boolean No
retrieveAuthToken
retrieveAuthToken()
setSessionData
setSessionData(data)
Parameters :
Name Optional
data No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/login.ts

loginTabbingOrder
loginTabbingOrder(config, prefillForm: boolean)
Parameters :
Name Type Optional
config No
prefillForm boolean No

projects/storefrontapp-e2e-cypress/cypress/helpers/consignment-tracking.ts

loginUsingUserWithOrder
loginUsingUserWithOrder()

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/user-password.ts

logOut
logOut()
userPasswordTest
userPasswordTest(config)
Parameters :
Name Optional
config No
Returns : void

projects/schematics/src/migrations/3_0/add-dependencies/add-dependencies.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/component-deprecations/component-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/config-deprecations/config-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/css/css.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/removed-public-api-deprecations/removed-public-api-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/3_0/constructor-deprecations/constructor-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/config-deprecations/config-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/constructor-deprecations/constructor-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/dependency-management/dependency-management.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/methods-and-properties-deprecations/methods-and-properties-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/missing-packages/missing-packages.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/css/css.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/removed-public-api-deprecations/removed-public-api-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/4_0/rename-symbol/rename-symbol.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/config-deprecations/config-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/component-deprecations/component-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/constructor-deprecations/constructor-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/dependency-management/dependency-management.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/removed-public-api-deprecations/removed-public-api-deprecation.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/missing-packages/missing-packages.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/rename-symbol/rename-symbol.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/test/methods-and-properties-deprecations/methods-and-properties-deprecations.ts

migrate
migrate()
Returns : Rule

projects/schematics/src/migrations/mechanism/component-deprecations/component-deprecations.ts

migrateComponentMigration
migrateComponentMigration(tree, context, componentData)
Parameters :
Name Optional
tree No
context No
componentData No
Returns : Tree

projects/schematics/src/migrations/mechanism/config-deprecations/config-deprecation.ts

migrateConfigDeprecation
migrateConfigDeprecation(tree, _context, configDeprecations)
Parameters :
Name Optional
tree No
_context No
configDeprecations No
Returns : Tree

projects/schematics/src/migrations/mechanism/constructor-deprecations/constructor-deprecations.ts

migrateConstructorDeprecation
migrateConstructorDeprecation(tree, context, constructorDeprecations)
Parameters :
Name Optional
tree No
context No
constructorDeprecations No
Returns : Tree

projects/schematics/src/migrations/mechanism/missing-packages/missing-packages.ts

migrateMissingPackage
migrateMissingPackage(tree, context, missingPackageConfig)
Parameters :
Name Optional
tree No
context No
missingPackageConfig No
Returns : Tree

projects/schematics/src/migrations/mechanism/rename-symbol/rename-symbol.ts

migrateRenamedSymbols
migrateRenamedSymbols(tree, renamedSymbols)
Parameters :
Name Optional
tree No
renamedSymbols No
Returns : Tree

projects/core/src/i18n/testing/mock-translate.ts

mockTranslate
mockTranslate(key, options: any)
Parameters :
Name Type Optional
key No
options any No

projects/core/src/lazy-loading/lazy-loading.module.ts

moduleInitializersFactory
moduleInitializersFactory(lazyModuleService, moduleInitializerFunctions)
Parameters :
Name Optional
lazyModuleService No
moduleInitializerFunctions No
Returns : any

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account.ts

myAccountTabbingOrder
myAccountTabbingOrder(config, mobile: boolean)
Parameters :
Name Type Optional
config No
mobile boolean No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/my-interests.ts

myInterestTabbingOrder
myInterestTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/nested-list.ts

nestedListTest
nestedListTest(config)
Parameters :
Name Optional
config No
Returns : void

projects/core/src/util/normalize-http-error.ts

normalizeHttpError
normalizeHttpError(error)

Normalizes HttpErrorResponse to HttpErrorModel.

Can be used as a safe and generic way for embodying http errors into NgRx Action payload, as it will strip potentially unserializable parts from it and warn in debug mode if passed error is not instance of HttpErrorModel (which usually happens when logic in NgRx Effect is not sealed correctly)

Parameters :
Name Optional
error No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/notification-preference.ts

notificationPreferenceTabbingOrder
notificationPreferenceTabbingOrder(config)
Parameters :
Name Optional
config No

projects/core/src/occ/config/occ-config-validator.ts

occConfigValidator
occConfigValidator(config)
Parameters :
Name Optional
config No

projects/storefrontlib/router/app-routing.module.ts

onNavigateFactory
onNavigateFactory(onNavigateService)
Parameters :
Name Optional
onNavigateService No
Returns : void

feature-libs/organization/order-approval/core/store/reducers/order-approval.reducer.ts

orderApprovalsEntitiesReducer
orderApprovalsEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : OrderApproval
orderApprovalsListReducer
orderApprovalsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/order-details.ts

orderDetailsTabbingOrder
orderDetailsTabbingOrder(config)
Parameters :
Name Optional
config No

feature-libs/order/root/facade/order.facade.ts

orderFacadeFactory
orderFacadeFactory()

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/order-history.ts

orderHistoryNoOrdersTabbingOrder
orderHistoryNoOrdersTabbingOrder(config)
Parameters :
Name Optional
config No
orderHistoryWithOrdersTabbingOrder
orderHistoryWithOrdersTabbingOrder()

feature-libs/order/root/facade/order-return-request.facade.ts

orderReturnRequestFacadeFactory
orderReturnRequestFacadeFactory()

feature-libs/organization/administration/core/store/reducers/org-unit.reducer.ts

orgUnitAddressListReducer
orgUnitAddressListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
orgUnitEntitiesReducer
orgUnitEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : B2BUnitNode
orgUnitListReducer
orgUnitListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
orgUnitUserListReducer
orgUnitUserListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

projects/schematics/src/shared/utils/transform-utils.ts

parseCSV
parseCSV(raw, defaultValues)
Parameters :
Name Optional
raw No
defaultValues No
Returns : string

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/payment-details.ts

paymentDetailsTabbingOrder
paymentDetailsTabbingOrder(config)
Parameters :
Name Optional
config No

feature-libs/organization/administration/core/store/reducers/permission.reducer.ts

permissionsEntitiesReducer
permissionsEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Permission
permissionsListReducer
permissionsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

feature-libs/organization/administration/components/permission/permission.config.ts

permissionTableConfigFactory
permissionTableConfigFactory()
Returns : TableConfig

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/personal-details.ts

personalDetailsTabbingOrder
personalDetailsTabbingOrder(config)
Parameters :
Name Optional
config No

.github/api-extractor-action/src/setup.ts

prepareRepositoryForApiExtractor
prepareRepositoryForApiExtractor(branch, baseCommit)

Prepare repository with base branch clone for api-extractor

Parameters :
Name Optional Description
branch No

base branch

baseCommit No

base commit

Returns : Promise<void>

projects/core/src/state/utils/processes-loader/processes-loader.action.ts

processesDecrementMeta
processesDecrementMeta(entityType)
Parameters :
Name Optional
entityType No
processesIncrementMeta
processesIncrementMeta(entityType)
Parameters :
Name Optional
entityType No
processesLoaderResetMeta
processesLoaderResetMeta(entityType)
Parameters :
Name Optional
entityType No

projects/core/src/state/utils/processes-loader/processes-loader.reducer.ts

processesLoaderReducer
processesLoaderReducer(entityType, reducer?)

Higher order reducer that adds processes count

Parameters :
Name Optional
entityType No
reducer Yes
Returns : ProcessesLoaderState<T>

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/product-list.ts

productListTabbingOrderDesktop
productListTabbingOrderDesktop(config)
Parameters :
Name Optional
config No
productListTabbingOrderMobile
productListTabbingOrderMobile(config)
Parameters :
Name Optional
config No
productListTabbingOrderMobileFilters
productListTabbingOrderMobileFilters(config)
Parameters :
Name Optional
config No
toggleProductView
toggleProductView()

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/product-page.ts

productPageTabbingOrder
productPageTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/product-page-tabs.ts

productPageTabsTabbingOrder
productPageTabsTabbingOrder()

projects/core/src/product/store/product-store.module.ts

productStoreConfigFactory
productStoreConfigFactory()
Returns : StateConfig

projects/core/src/config/config-providers.ts

provideConfig
provideConfig(config, defaultConfig)

Helper function to provide configuration chunk using ConfigChunk token

To provide default configuration in libraries provideDefaultConfig should be used instead.

Parameters :
Name Optional Description
config No

Config object to merge with the global configuration

defaultConfig No
Returns : ValueProvider
provideConfigFactory
provideConfigFactory(configFactory, deps?, defaultConfig)

Helper function to provide configuration with factory function, using ConfigChunk token

To provide default configuration in libraries provideDefaultConfigFactory should be used instead.

Parameters :
Name Optional Description
configFactory No

Factory Function that will generate config object

deps Yes

Optional dependencies to a factory function

defaultConfig No
Returns : FactoryProvider
provideDefaultConfig
provideDefaultConfig(config)

Helper function to provide default configuration chunk using DefaultConfigChunk token

Parameters :
Name Optional Description
config No

Config object to merge with the default configuration

Returns : ValueProvider
provideDefaultConfigFactory
provideDefaultConfigFactory(configFactory, deps?)

Helper function to provide default configuration with factory function, using DefaultConfigChunk token

Parameters :
Name Optional Description
configFactory No

Factory Function that will generate config object

deps Yes

Optional dependencies to a factory function

Returns : FactoryProvider

projects/core/src/config/config-validator/config-validator.ts

provideConfigValidator
provideConfigValidator(configValidator)

Use to probide config validation at app bootstrap (when all config chunks are merged)

Parameters :
Name Optional
configValidator No
Returns : Provider
validateConfig
validateConfig(config, configValidators)
Parameters :
Name Optional
config No
configValidators No

projects/storefrontlib/cms-structure/outlet/outlet.providers.ts

provideOutlet
provideOutlet(options)

Helper function to register a component for an outlet.

Parameters :
Name Optional
options No
Returns : StaticProvider

projects/storefrontlib/cms-structure/pwa/pwa.module.ts

pwaConfigurationFactory
pwaConfigurationFactory(pwaConfig)
Parameters :
Name Optional
pwaConfig No
pwaFactory
pwaFactory(addToHomeScreenService)
Parameters :
Name Optional
addToHomeScreenService No
Returns : any

feature-libs/cart/quick-order/root/facade/quick-order.facade.ts

quickOrderFacadeFactory
quickOrderFacadeFactory()

feature-libs/asm/core/store/reducers/asm-ui.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : AsmUi

feature-libs/order/core/store/reducers/consignment-tracking.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

feature-libs/order/core/store/reducers/order-details.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Order

feature-libs/order/core/store/reducers/order-return-request.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ReturnRequestList

feature-libs/order/core/store/reducers/orders.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : OrderHistoryList

feature-libs/order/core/store/reducers/replenishment-order-details.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ReplenishmentOrder

feature-libs/order/core/store/reducers/replenishment-orders.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

feature-libs/checkout/core/store/reducers/card-types.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : CardTypesState

feature-libs/checkout/core/store/reducers/checkout.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : CheckoutStepsState

feature-libs/checkout/core/store/reducers/payment-types.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : PaymentTypesState

feature-libs/checkout/core/store/reducers/order-types.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : OrderTypesState

feature-libs/product-configurator/textfield/core/state/reducers/configurator-textfield.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/anonymous-consents/store/reducers/anonymous-consents-banner.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : boolean

projects/core/src/anonymous-consents/store/reducers/anonymous-consents-update.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : boolean

projects/core/src/anonymous-consents/store/reducers/anonymous-consents.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : AnonymousConsent[]
toggleConsentStatus
toggleConsentStatus(consents, templateCode, status)
Parameters :
Name Optional
consents No
templateCode No
status No
Returns : AnonymousConsent[]

projects/core/src/cms/store/reducers/navigation-entry-item.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : NodeItem

projects/core/src/cms/store/reducers/page-data.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : EntityState<Page>

projects/core/src/cms/store/reducers/page-index.reducer.ts

reducer
reducer(entityType)
Parameters :
Name Optional
entityType No
Returns : string

projects/core/src/global-message/store/reducers/global-message.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : GlobalMessageState

projects/core/src/site-context/store/reducers/base-site.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : BaseSiteState

projects/core/src/site-context/store/reducers/currencies.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : CurrenciesState

projects/core/src/site-context/store/reducers/languages.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : LanguagesState

projects/core/src/user/store/reducers/consignment-tracking.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/billing-countries.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/customer-coupon.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/notification-preference.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/order-details.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Order

projects/core/src/user/store/reducers/delivery-countries.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/order-return-request.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ReturnRequestList

projects/core/src/user/store/reducers/payment-methods.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : PaymentDetails[]

projects/core/src/user/store/reducers/regions.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : RegionsState

projects/core/src/user/store/reducers/product-interests.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/user/store/reducers/replenishment-order-details.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ReplenishmentOrder

projects/core/src/user/store/reducers/user-addresses.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : Address[]

projects/core/src/user/store/reducers/user-consents.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ConsentTemplate[]

projects/core/src/user/store/reducers/user-cost-center.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : CostCenter[]

projects/core/src/user/store/reducers/user-orders.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : OrderHistoryList

projects/core/src/user/store/reducers/user-replenishment-orders.reducer.ts

reducer
since 4.2 - use order lib instead
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/product/store/reducers/product-references.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/product/store/reducers/product-search.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/core/src/product/store/reducers/product-reviews.reducer.ts

reducer
reducer(state, action)
Parameters :
Name Optional
state No
action No

projects/storefrontapp-e2e-cypress/cypress/helpers/update-email.ts

registerAndLogin
registerAndLogin()

projects/storefrontlib/cms-structure/outlet/outlet.module.ts

registerOutletsFactory
registerOutletsFactory(providedOutletOptions, componentFactoryResolver, outletService)
Parameters :
Name Optional
providedOutletOptions No
componentFactoryResolver No
outletService No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/register.ts

registerTabbingOrder
registerTabbingOrder(config)
Parameters :
Name Optional
config No

feature-libs/order/root/facade/replenishment-order.facade.ts

replenishmentOrderFacadeFactory
replenishmentOrderFacadeFactory()

projects/core/src/util/applicable.ts

resolveApplicable
resolveApplicable(applicables, matchParams, priorityParams)

Helper logic to resolve best matching Applicable

Finding best match is a two step process:

  1. Find all matching applicables
    • all applicables for which hasMatch(...matchParams) will return true
    • all applicables without hasMatch method (implicit always match)
  2. Find the applicable with highest priority
    • applicable with highest getPriority(...priorityParams) will win
    • applicable without getPriority method is treated as Priority.NORMAL or 0
    • applicables with the same priority are sorted by order of providers, the applicable that was provided later wins
Parameters :
Name Optional Description
applicables No
  • array or applicable-like instances
matchParams No
  • array of parameters passed for hasMatch calls
priorityParams No
  • array of parameters passed for getPriority calls
Returns : T | undefined

scripts/changelog.ts

run
run(args, logger)
Parameters :
Name Optional
args No
logger No

.github/cache-builded-libs/index.ts

run
run()

.github/api-extractor-action/src/index.ts

run
run()

.github/hs-deploy-action/src/index.ts

run
run()

projects/schematics/src/migrations/mechanism/scaffold-app-structure/scaffold-app-structure.ts

scaffoldAppStructure
scaffoldAppStructure()
Returns : Rule

projects/core/src/state/utils/scoped-loader/scoped-loader.reducer.ts

scopedLoaderReducer
scopedLoaderReducer(entityType, reducer?)

Higher order reducer designed to add scope support for loader reducer

Parameters :
Name Optional
entityType No
reducer Yes
Returns : ScopedLoaderState<T>

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/store-finder/search-results.ts

searchResultsTabbingOrder
searchResultsTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/product-details.ts

selectProductSizeVariant
selectProductSizeVariant()
selectProductSizeVariantWithoutStock
selectProductSizeVariantWithoutStock()
selectProductStyleVariant
selectProductStyleVariant()
verifyContentInReviewTab
verifyContentInReviewTab()
verifyCorrectTabs
verifyCorrectTabs()
verifyProductDetails
verifyProductDetails()
verifyQuantityInCart
verifyQuantityInCart()
verifyReviewForm
verifyReviewForm()
verifyTextInTabs
verifyTextInTabs()

projects/core/src/cms/utils/cms-utils.ts

serializePageContext
serializePageContext(pageContext, ignoreContentPageId?: boolean)

Serializes the provided page context. The pattern used for serialization is: pageContext.type-pageContext.id.

Parameters :
Name Type Optional Description
pageContext No

to serialize

ignoreContentPageId boolean Yes

if set to true, and the PageType is of type ContentPage, then the serialized page context will not contain the ID. Otherwise, the page context if fully serialized.

Returns : string

projects/core/src/site-context/providers/context-service-map.ts

serviceMapFactory
serviceMapFactory()

projects/storefrontlib/cms-structure/seo/html-lang-provider.ts

setHtmlLangAttribute
setHtmlLangAttribute(winRef, languageService)

Sets active language in

Parameters :
Name Optional
winRef No
languageService No
Returns : void

projects/storefrontapp-e2e-cypress/cypress/helpers/register.ts

signOut
signOut()
verifyGlobalMessageAfterRegistration
verifyGlobalMessageAfterRegistration()

projects/core/src/site-context/store/site-context-store.module.ts

siteContextStoreConfigFactory
siteContextStoreConfigFactory()
Returns : StateConfig

projects/storefrontlib/layout/a11y/skip-link/skip-link.module.ts

skipLinkFactory
skipLinkFactory(componentFactoryResolver, outletService)

Adds the skip link component before the cx-storefront.

Parameters :
Name Optional
componentFactoryResolver No
outletService No
Returns : void

feature-libs/smartedit/root/smart-edit-root.module.ts

smartEditFactory
smartEditFactory(smartEditLauncherService)
Parameters :
Name Optional
smartEditLauncherService No
Returns : void

projects/storefrontlib/shared/utils/forms/title-utils.ts

sortTitles
sortTitles(title1, title2)
Parameters :
Name Optional
title1 No
title2 No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/stock-notification.ts

stockNotificationDialogTabbingOrder
stockNotificationDialogTabbingOrder(config)
Parameters :
Name Optional
config No
stockNotificationNotLoginTabbingOrder
stockNotificationNotLoginTabbingOrder(config)
Parameters :
Name Optional
config No
stockNotificationTabbingOrderNotificationsAllowed
stockNotificationTabbingOrderNotificationsAllowed(config)
Parameters :
Name Optional
config No
stockNotificationTabbingOrderNotificationsNotAllowed
stockNotificationTabbingOrderNotificationsNotAllowed(config)
Parameters :
Name Optional
config No
stockNotificationTabbingOrderProductSubscribed
stockNotificationTabbingOrderProductSubscribed(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/store-finder/store-details.ts

storeDetailsTabbingOrder
storeDetailsTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/store-finder/stores-list.ts

storesListTabbingOrder
storesListTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/language.ts

switchLanguage
switchLanguage(lang)
Parameters :
Name Optional
lang No

projects/storefrontapp-e2e-cypress/cypress/support/utils/switch-site-context.ts

switchSiteContext
switchSiteContext(option, label)
Parameters :
Name Optional
option No
label No

projects/core/src/state/event/testing-utils/test-action-to-event-mapping.ts

testActionToEventMapping
testActionToEventMapping(undefined)
Parameters :
Name Optional
No

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/my-company-features.ts

testFeaturesFromConfig
testFeaturesFromConfig(config)
Parameters :
Name Optional
config No

feature-libs/tracking/tms/core/base-tms.module.ts

tmsFactory
tmsFactory(service)

The factory that conditionally (based on the configuration) starts collecting events

Parameters :
Name Optional
service No
Returns : void

projects/core/src/util/rxjs/unite-latest.ts

uniteLatest
uniteLatest(sources)

uniteLatest is an alternative to combineLatest. The first emission is emitted synchronously (just like combineLatest) and all following emissions are audited and emitted using asapScheduler.

It effectively smooths out emissions when multiple sources will emit at the same time: uniteLatest will have only one emission, where combine latest will have more than one (one per source changed).

Parameters :
Name Optional
sources No

feature-libs/organization/administration/components/unit/units.config.ts

unitsTableConfigFactory
unitsTableConfigFactory()
Returns : TableConfig

projects/schematics/src/ng-add/index.ts

Unnamed function
Unnamed function(options)
Parameters :
Name Optional
options No
Returns : Rule

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/update-email.ts

updateEmailTabbingOrder
updateEmailTabbingOrder(config)
Parameters :
Name Optional
config No

projects/storefrontapp-e2e-cypress/cypress/helpers/update-profile.ts

updateProfile
updateProfile()
validateUpdateProfileForm
validateUpdateProfileForm(title, firstName, lastName)
Parameters :
Name Optional
title No
firstName No
lastName No
verifyUpdatedProfile
verifyUpdatedProfile()

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/my-company/features/update.ts

updateTest
updateTest(config)
Parameters :
Name Optional
config No

feature-libs/organization/administration/core/store/reducers/user-group.reducer.ts

userGroupAvailableOrderApprovalPermissionsListReducer
userGroupAvailableOrderApprovalPermissionsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
userGroupAvailablOrgCustomersListReducer
userGroupAvailablOrgCustomersListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any
userGroupEntitiesReducer
userGroupEntitiesReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : UserGroup
userGroupsListReducer
userGroupsListReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : any

feature-libs/organization/administration/components/user-group/user-group.config.ts

userGroupTableConfigFactory
userGroupTableConfigFactory()
Returns : TableConfig

feature-libs/organization/administration/components/user/user.config.ts

userTableConfigFactory
userTableConfigFactory()
Returns : TableConfig

feature-libs/order/components/amend-order/amend-order.service.ts

ValidateQuantityToCancel
ValidateQuantityToCancel(control)
Parameters :
Name Optional
control No

projects/storefrontlib/cms-components/myaccount/order/amend-order/amend-order.service.ts

ValidateQuantityToCancel
ValidateQuantityToCancel(control)
Parameters :
Name Optional
control No

projects/storefrontapp-e2e-cypress/cypress/helpers/address-book.ts

verifyNewAddress
verifyNewAddress()

feature-libs/storefinder/core/store/reducers/view-all-stores.reducer.ts

viewAllStoresReducer
viewAllStoresReducer(state, action)
Parameters :
Name Optional
state No
action No
Returns : ViewAllStoresState

projects/storefrontapp-e2e-cypress/cypress/helpers/b2b/b2b-bulk-pricing.ts

visitProduct
visitProduct(productCode)
Parameters :
Name Optional
productCode No

projects/storefrontapp-e2e-cypress/cypress/support/utils/order-placed.ts

waitForOrderToBePlacedRequest
waitForOrderToBePlacedRequest(orderNumber?, contentCatalog, currency)

Waits until order is available in orders API response.

Parameters :
Name Optional Description
orderNumber Yes

Order number to wait for. Without this parameter it will check if at least one order exists

contentCatalog No

Content catalog you are testing

currency No

Currency you are using

waitForOrderWithConsignmentToBePlacedRequest
waitForOrderWithConsignmentToBePlacedRequest(orderNumber?, contentCatalog, elapsedTime: number)
Parameters :
Name Type Optional
orderNumber Yes
contentCatalog No
elapsedTime number No

projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/wishlist.ts

wishlistTabbingOrder
wishlistTabbingOrder(config)
Parameters :
Name Optional
config No

projects/core/src/util/rxjs/withdraw-on.ts

withdrawOn
withdrawOn(notifier)

Withdraw from the source observable when notifier emits a value

Withdraw will result in resubscribing to the source observable Operator is useful to kill ongoing emission transformation on notifier emission

Parameters :
Name Optional
notifier No
Returns : OperatorFunction<T, T>

result-matching ""

    No results matching ""