@salesforce/b2c-cli 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +56 -0
- package/dist/commands/setup/ide/tsserver-plugin.js +88 -0
- package/dist/commands/setup/ide/tsserver-plugin.js.map +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +44 -0
- package/dist/commands/setup/ide/vscode-types.js +141 -0
- package/dist/commands/setup/ide/vscode-types.js.map +1 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/package.json +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/plugin/index.js +575 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/APIException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ConversionError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/EvalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Fault.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/IOError.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/InternalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Module.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Namespace.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/QName.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/RangeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ReferenceError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/StopIteration.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SyntaxError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SystemError.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/TypeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/URIError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XML.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLList.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLStreamError.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/arguments.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alert.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alerts.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTest.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestMgr.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestSegment.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/AmountDiscount.d.ts +22 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ApproachingDiscount.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusChoiceDiscount.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusDiscount.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Campaign.d.ts +167 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignMgr.d.ts +192 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignStatusCodes.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Coupon.d.ts +146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponMgr.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponRedemption.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponStatusCodes.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Discount.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/DiscountPlan.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceShippingDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeShippingDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageOptionDiscount.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PriceBookPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Promotion.d.ts +455 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionMgr.d.ts +262 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionPlan.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SlotContent.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeGroup.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeStatusCodes.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/TotalFixedPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/index.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Catalog.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CatalogMgr.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Category.d.ts +592 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryAssignment.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryLink.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBook.d.ts +94 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBookMgr.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Product.d.ts +1100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductActiveData.d.ts +593 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAttributeModel.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityLevels.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityModel.d.ts +359 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryList.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryMgr.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryRecord.d.ts +296 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductLink.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductMgr.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOption.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionModel.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionValue.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceModel.d.ts +586 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceTable.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchHit.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchModel.d.ts +816 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementDefinition.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementValue.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinements.d.ts +142 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttribute.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttributeValue.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationModel.d.ts +508 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Recommendation.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchModel.d.ts +277 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementDefinition.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementValue.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinements.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingOption.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingRule.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Store.d.ts +214 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreGroup.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilter.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilterValue.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreMgr.d.ts +86 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Variant.d.ts +555 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/VariationGroup.d.ts +422 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/index.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Content.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentMgr.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementDefinition.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementValue.d.ts +10 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinements.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Folder.d.ts +186 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Library.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MarkupText.d.ts +125 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MediaFile.d.ts +297 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateRef.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateUtils.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Cipher.d.ts +178 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Encoding.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWE.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWEHeader.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWS.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWSHeader.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/KeyRef.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Mac.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/MessageDigest.d.ts +108 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/SecureRandom.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Signature.d.ts +88 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakCipher.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMac.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMessageDigest.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakSignature.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/X509Certificate.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/index.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AddressBook.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserMgr.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserStatusCodes.d.ts +64 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AuthenticationStatus.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Credentials.d.ts +266 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Customer.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerActiveData.d.ts +276 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerAddress.d.ts +280 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerCDPData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerContextMgr.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerGroup.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerList.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerMgr.d.ts +611 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPasswordConstraints.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPaymentInstrument.d.ts +118 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerStatusCodes.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/EncryptedObject.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ExternalProfile.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/OrderHistory.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductList.d.ts +376 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItem.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItemPurchase.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListMgr.d.ts +190 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListRegistrant.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Profile.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Wallet.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ConsentStatusEntry.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/MarketingConsentSubscription.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentErrorCodes.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentMgr.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/index.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthAccessTokenResponse.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthFinalizedResponse.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthLoginFlowMgr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthUserInfoResponse.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContext.d.ts +171 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextErrorCodes.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextMgr.d.ts +130 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/AspectAttributeValidationException.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Component.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentRenderSettings.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentScriptContext.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditor.d.ts +80 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditorResources.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Page.d.ts +255 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageMgr.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageScriptContext.d.ts +127 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Region.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/RegionRenderSettings.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/CMSRecord.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/FocalPoint.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/Image.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/ImageMetaData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/index.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHookResult.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHooks.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookFeedHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookProduct.d.ts +567 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/PaymentApiHooks.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHookResult.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHooks.d.ts +168 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenPaymentIntent.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenSavedPaymentMethod.d.ts +126 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceBancontactPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceCardPaymentDetails.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceEpsPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceIdealPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceKlarnaPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrder.d.ts +109 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderAddress.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderPayer.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentDetails.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentIntent.d.ts +116 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentMethod.d.ts +162 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentRequest.d.ts +562 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsHooks.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccount.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccountPaymentMethod.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMgr.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsSiteConfiguration.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsZone.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceSepaDebitPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceVenmoPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/index.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestAvailability.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestFeedHooks.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrder.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrderHooks.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestProduct.d.ts +302 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamReader.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamWriter.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/File.d.ts +343 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileReader.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileWriter.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/InputStream.d.ts +15 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/OutputStream.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/PrintWriter.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/RandomAccessFileReader.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Reader.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/StringWriter.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Writer.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLIndentingStreamWriter.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamConstants.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamReader.d.ts +674 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamWriter.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/index.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobExecution.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobStepExecution.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPClient.d.ts +219 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPFileInfo.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClient.d.ts +337 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClientLoggingConfig.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPRequestPart.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/Mail.d.ts +182 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPClient.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPFileInfo.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVClient.d.ts +324 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVFileInfo.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ActiveData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomAttributes.d.ts +143 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObject.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObjectMgr.d.ts +283 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Extensible.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ExtensibleObject.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Note.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeDefinition.d.ts +239 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeGroup.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeValueDefinition.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectTypeDefinition.d.ts +113 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/PersistentObject.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SimpleExtensible.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SystemObjectMgr.d.ts +319 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItem.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItemCtnr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Appeasement.d.ts +163 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AppeasementItem.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Basket.d.ts +476 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BasketMgr.d.ts +406 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BonusDiscountLineItem.d.ts +170 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CouponLineItem.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateAgentBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateBasketFromOrderException.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateCouponLineItemException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateOrderException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateTemporaryBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificate.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateLineItem.d.ts +124 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateMgr.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateStatusCodes.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Invoice.d.ts +284 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/InvoiceItem.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItem.d.ts +265 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemCtnr.d.ts +1146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemTax.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Order.d.ts +1360 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderAddress.d.ts +259 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderItem.d.ts +332 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderMgr.d.ts +864 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderPaymentInstrument.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderProcessStatusCodes.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentCard.d.ts +112 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentInstrument.d.ts +757 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMethod.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentProcessor.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentStatusCodes.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentTransaction.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustment.d.ts +430 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustmentLimitTypes.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductLineItem.d.ts +849 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingCost.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingLineItem.d.ts +154 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingModel.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Return.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCase.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCaseItem.d.ts +165 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnItem.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Shipment.d.ts +506 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingCost.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingModel.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLineItem.d.ts +151 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLocation.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMethod.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMgr.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrder.d.ts +304 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrderItem.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/SumItem.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxGroup.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxItem.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxMgr.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingInfo.d.ts +107 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingRef.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/BasketMergeHooks.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CalculateHooks.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CheckoutHooks.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/OrderHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/PaymentHooks.d.ts +189 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ReturnHooks.d.ts +274 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ShippingOrderHooks.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/TaxHooks.d.ts +378 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/index.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/index.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/SOAPUtil.d.ts +339 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/Stub.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/WebReference.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapFile.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/BrandSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CategorySuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ContentSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CustomSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ProductSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SearchPhraseSuggestions.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedCategory.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedContent.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedPhrase.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedProduct.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerm.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerms.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/Suggestions.d.ts +89 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPService.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPServiceDefinition.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormService.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPService.d.ts +147 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPServiceDefinition.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/LocalServiceRegistry.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Result.d.ts +133 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPService.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Service.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCallback.d.ts +172 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceConfig.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCredential.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceDefinition.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceProfile.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceRegistry.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/index.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/AgentUserStatusCodes.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Cache.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/CacheMgr.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/HookMgr.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/InternalObject.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/JobProcessMonitor.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Log.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/LogNDC.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Logger.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/OrganizationPreferences.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Pipeline.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/PipelineDictionary.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTErrorResponse.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTResponseMgr.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTSuccessResponse.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RemoteInclude.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Request.d.ts +363 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RequestHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Response.d.ts +278 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SearchStatus.d.ts +74 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Session.d.ts +263 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Site.d.ts +247 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SitePreferences.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Status.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/StatusItem.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/System.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Transaction.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/index.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/ISML.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/Velocity.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/ArrayList.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Assert.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/BigInteger.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Bytes.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Calendar.d.ts +450 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Collection.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Currency.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/DateUtils.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Decimal.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/FilteringCollection.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Geolocation.d.ts +111 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashMap.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashSet.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Iterator.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashMap.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashSet.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/List.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Locale.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Map.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MapEntry.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingKey.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingMgr.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/PropertyComparator.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureEncoder.d.ts +371 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureFilter.d.ts +340 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SeekableIterator.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Set.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedMap.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedSet.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/StringUtils.d.ts +191 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Template.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/UUIDUtils.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/index.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/EnumValue.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/MimeEncodedText.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Money.d.ts +196 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Quantity.d.ts +103 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/CSRFProtection.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStream.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStreamEntry.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookie.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookies.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Form.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormAction.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElement.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElementValidationResult.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormField.d.ts +331 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOption.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOptions.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormGroup.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormList.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormListItem.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Forms.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameter.d.ts +195 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameterMap.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/LoopIterator.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaData.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaTag.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PagingModel.d.ts +181 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Resource.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URL.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLAction.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLParameter.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirect.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirectMgr.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLUtils.d.ts +759 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/index.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/Port.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WSUtil.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WebReference2.d.ts +120 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/global.d.ts +1101 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/sfra/server.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-package.json +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-tsconfig.json +7 -0
- package/oclif.manifest.json +5512 -5207
- package/package.json +3 -3
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Page.d.ts
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import Region = require('./Region');
|
|
2
|
+
import Collection = require('../util/Collection');
|
|
3
|
+
import Folder = require('../content/Folder');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* This class represents a page designer managed page. A page comprises of
|
|
9
|
+
* multiple regions that hold components, which themselves again can have
|
|
10
|
+
* regions holding components, i.e. spanning a hierarchical tree of components.
|
|
11
|
+
*
|
|
12
|
+
* Using
|
|
13
|
+
*
|
|
14
|
+
* - PageMgr.renderPage
|
|
15
|
+
* - PageMgr.renderPage
|
|
16
|
+
*
|
|
17
|
+
* a page can be rendered. As such page implements a render function for creating
|
|
18
|
+
* render output the render function of the page itself will also want to access
|
|
19
|
+
* its various properties like the SEO title etc.
|
|
20
|
+
*
|
|
21
|
+
* Apart from rendering to markup a page can also be serialized, i.e. transformed
|
|
22
|
+
* into a json string using
|
|
23
|
+
*
|
|
24
|
+
* - PageMgr.serializePage
|
|
25
|
+
* - PageMgr.serializePage
|
|
26
|
+
* @see Region
|
|
27
|
+
* @see Component
|
|
28
|
+
* @see PageMgr
|
|
29
|
+
*/
|
|
30
|
+
declare class Page {
|
|
31
|
+
/**
|
|
32
|
+
* Returns the id of this page.
|
|
33
|
+
*/
|
|
34
|
+
readonly ID: string;
|
|
35
|
+
/**
|
|
36
|
+
* Get the aspect type of the page.
|
|
37
|
+
* If an aspect type is set for this page (and is found in the deployed code version), then the page is treated as dynamic page during
|
|
38
|
+
* rendering and serialization.
|
|
39
|
+
* @see PageMgr.renderPage
|
|
40
|
+
* @see PageMgr.serializePage
|
|
41
|
+
*/
|
|
42
|
+
readonly aspectTypeID: string;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the classification dw.content.Folder associated with this page.
|
|
45
|
+
*/
|
|
46
|
+
readonly classificationFolder: Folder | null;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the description of this page.
|
|
49
|
+
*/
|
|
50
|
+
readonly description: string;
|
|
51
|
+
/**
|
|
52
|
+
* Returns all folders to which this page is assigned.
|
|
53
|
+
*/
|
|
54
|
+
readonly folders: Collection<Folder>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the name of this page.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: string;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the SEO description of this page.
|
|
61
|
+
*/
|
|
62
|
+
readonly pageDescription: string;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the SEO keywords of this page.
|
|
65
|
+
*/
|
|
66
|
+
readonly pageKeywords: string;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the SEO title of this page.
|
|
69
|
+
*/
|
|
70
|
+
readonly pageTitle: string;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the search words of the page used for the search index.
|
|
73
|
+
*/
|
|
74
|
+
readonly searchWords: string;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the type id of this page.
|
|
77
|
+
*/
|
|
78
|
+
readonly typeID: string;
|
|
79
|
+
/**
|
|
80
|
+
* Returns `true` if the page is currently visible which is the case if:
|
|
81
|
+
*
|
|
82
|
+
* - page is published
|
|
83
|
+
* - the page is set to visible in the current locale
|
|
84
|
+
* - all visibility rules apply, requiring that
|
|
85
|
+
*
|
|
86
|
+
* - schedule matches
|
|
87
|
+
* - customer group matches
|
|
88
|
+
* - aspect attribute qualifiers match
|
|
89
|
+
* - campaign and promotion qualifiers match
|
|
90
|
+
*
|
|
91
|
+
* If any of these is not the case then `false` will be returned.
|
|
92
|
+
* <p style="color:red">
|
|
93
|
+
* As visibility is driven by the merchant configured dynamic visibility rules, e.g. scheduling and custom segmentation, this
|
|
94
|
+
* call should NOT happen in a pagecached context outside of the processing induced by rendering/serialization (see the corresponding
|
|
95
|
+
* methods in PageMgr).
|
|
96
|
+
*
|
|
97
|
+
* Use hasVisibilityRules prior to calling this method in order to check for the existence of visibility rules. If there are
|
|
98
|
+
* visibility rules then do not apply pagecaching. Otherwise the visibility decision making would end up in the pagecache and any subsequent
|
|
99
|
+
* call would just return from the pagecache instead of performing the isVisible check again as desired.
|
|
100
|
+
* @example
|
|
101
|
+
* ...
|
|
102
|
+
* var page = PageMgr.getPage(pageID);
|
|
103
|
+
* if (page.hasVisibilityRules())
|
|
104
|
+
* {
|
|
105
|
+
* // pagecaching is NOT ok here
|
|
106
|
+
* if (page.isVisible())
|
|
107
|
+
* {
|
|
108
|
+
* response.writer.print(PageMgr.renderPage(pageID, {});
|
|
109
|
+
* }
|
|
110
|
+
* }
|
|
111
|
+
* else
|
|
112
|
+
* {
|
|
113
|
+
* // pagecaching is ok here, but requires a pagecache refresh if merchants start adding visibility rules to the page
|
|
114
|
+
* }
|
|
115
|
+
* ...
|
|
116
|
+
* @see isVisible
|
|
117
|
+
*/
|
|
118
|
+
readonly visible: boolean;
|
|
119
|
+
private constructor();
|
|
120
|
+
/**
|
|
121
|
+
* Get the aspect type of the page.
|
|
122
|
+
* If an aspect type is set for this page (and is found in the deployed code version), then the page is treated as dynamic page during
|
|
123
|
+
* rendering and serialization.
|
|
124
|
+
* @see PageMgr.renderPage
|
|
125
|
+
* @see PageMgr.serializePage
|
|
126
|
+
*/
|
|
127
|
+
getAspectTypeID(): string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* Returns the raw attribute value identified by the specified attribute id.
|
|
131
|
+
* By raw attribute value we denote the unprocessed value as provided for the attribute
|
|
132
|
+
* driven by the type of the respective attribute definition:
|
|
133
|
+
*
|
|
134
|
+
* - `boolean` -> boolean
|
|
135
|
+
* - `category` -> string representing a catalog category ID
|
|
136
|
+
* - `custom` -> dw.util.Map that originates from a stringified curly brackets {} JSON object
|
|
137
|
+
* - `cms_record` -> dw.util.Map that originates from a stringified curly brackets {} JSON object whose entries must adhere to the `cmsrecord.json` schema
|
|
138
|
+
* - `enum` -> either string or integer
|
|
139
|
+
* - `file` -> string representing a file path within a library
|
|
140
|
+
* - `image` -> dw.util.Map that originates from a stringified curly brackets {} JSON object whose entries must adhere to the `content/schema/image.json` schema
|
|
141
|
+
* - `integer` -> integer
|
|
142
|
+
* - `markup` -> string representing HTML markup
|
|
143
|
+
* - `page` -> string representing a page ID
|
|
144
|
+
* - `product` -> string representing a product SKU
|
|
145
|
+
* - `string` -> string
|
|
146
|
+
* - `text` -> string
|
|
147
|
+
* - `url` -> string representing a URL
|
|
148
|
+
*
|
|
149
|
+
* There is two places an attribute value can come from - either it was persisted at design time (e.g.
|
|
150
|
+
* by the merchant by editing a component in Page Designer) or it was injected in shape of an aspect attribute at rendering time
|
|
151
|
+
* through the execution of code. The persistent value, if existing, takes precedence over the injected aspect
|
|
152
|
+
* attribute one. Injection of a value through an aspect attribute will only occur if the page attribute's
|
|
153
|
+
* attribute definition was declared using the `"dynamic_lookup"` property and its aspect attribute alias matches
|
|
154
|
+
* the ID of the respective aspect attribute.
|
|
155
|
+
*
|
|
156
|
+
* Accessing the raw value can be helpful if render and serialization logic of the
|
|
157
|
+
* page needs to operate on these unprocessed values. An unprocessed value
|
|
158
|
+
* might be fundamentally different from its processed counterpart, the latter being
|
|
159
|
+
* provided through the content dictionary (see PageScriptContext.getContent)
|
|
160
|
+
* when the render/serialize function of the page is invoked.
|
|
161
|
+
*/
|
|
162
|
+
getAttribute(attributeID: string): any | null;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the classification dw.content.Folder associated with this page.
|
|
165
|
+
*/
|
|
166
|
+
getClassificationFolder(): Folder | null;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the description of this page.
|
|
169
|
+
*/
|
|
170
|
+
getDescription(): string;
|
|
171
|
+
/**
|
|
172
|
+
* Returns all folders to which this page is assigned.
|
|
173
|
+
*/
|
|
174
|
+
getFolders(): Collection<Folder>;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the id of this page.
|
|
177
|
+
*/
|
|
178
|
+
getID(): string;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the name of this page.
|
|
181
|
+
*/
|
|
182
|
+
getName(): string;
|
|
183
|
+
/**
|
|
184
|
+
* Returns the SEO description of this page.
|
|
185
|
+
*/
|
|
186
|
+
getPageDescription(): string;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the SEO keywords of this page.
|
|
189
|
+
*/
|
|
190
|
+
getPageKeywords(): string;
|
|
191
|
+
/**
|
|
192
|
+
* Returns the SEO title of this page.
|
|
193
|
+
*/
|
|
194
|
+
getPageTitle(): string;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the page region that matches the given id.
|
|
197
|
+
*/
|
|
198
|
+
getRegion(id: string): Region | null;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the search words of the page used for the search index.
|
|
201
|
+
*/
|
|
202
|
+
getSearchWords(): string;
|
|
203
|
+
/**
|
|
204
|
+
* Returns the type id of this page.
|
|
205
|
+
*/
|
|
206
|
+
getTypeID(): string;
|
|
207
|
+
/**
|
|
208
|
+
* Returns `true` if the page has visibility rules (scheduling, customer groups, aspect attribute qualifiers,
|
|
209
|
+
* campaign and promotion qualifiers) applied, otherwise `false`. Use this
|
|
210
|
+
* method prior to isVisible, so you do not call the latter in a pagecached context.
|
|
211
|
+
*/
|
|
212
|
+
hasVisibilityRules(): boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Returns `true` if the page is currently visible which is the case if:
|
|
215
|
+
*
|
|
216
|
+
* - page is published
|
|
217
|
+
* - the page is set to visible in the current locale
|
|
218
|
+
* - all visibility rules apply, requiring that
|
|
219
|
+
*
|
|
220
|
+
* - schedule matches
|
|
221
|
+
* - customer group matches
|
|
222
|
+
* - aspect attribute qualifiers match
|
|
223
|
+
* - campaign and promotion qualifiers match
|
|
224
|
+
*
|
|
225
|
+
* If any of these is not the case then `false` will be returned.
|
|
226
|
+
* <p style="color:red">
|
|
227
|
+
* As visibility is driven by the merchant configured dynamic visibility rules, e.g. scheduling and custom segmentation, this
|
|
228
|
+
* call should NOT happen in a pagecached context outside of the processing induced by rendering/serialization (see the corresponding
|
|
229
|
+
* methods in PageMgr).
|
|
230
|
+
*
|
|
231
|
+
* Use hasVisibilityRules prior to calling this method in order to check for the existence of visibility rules. If there are
|
|
232
|
+
* visibility rules then do not apply pagecaching. Otherwise the visibility decision making would end up in the pagecache and any subsequent
|
|
233
|
+
* call would just return from the pagecache instead of performing the isVisible check again as desired.
|
|
234
|
+
* @example
|
|
235
|
+
* ...
|
|
236
|
+
* var page = PageMgr.getPage(pageID);
|
|
237
|
+
* if (page.hasVisibilityRules())
|
|
238
|
+
* {
|
|
239
|
+
* // pagecaching is NOT ok here
|
|
240
|
+
* if (page.isVisible())
|
|
241
|
+
* {
|
|
242
|
+
* response.writer.print(PageMgr.renderPage(pageID, {});
|
|
243
|
+
* }
|
|
244
|
+
* }
|
|
245
|
+
* else
|
|
246
|
+
* {
|
|
247
|
+
* // pagecaching is ok here, but requires a pagecache refresh if merchants start adding visibility rules to the page
|
|
248
|
+
* }
|
|
249
|
+
* ...
|
|
250
|
+
* @see isVisible
|
|
251
|
+
*/
|
|
252
|
+
isVisible(): boolean;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export = Page;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageMgr.d.ts
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import Page = require('./Page');
|
|
2
|
+
import utilMap = require('../util/Map');
|
|
3
|
+
import Region = require('./Region');
|
|
4
|
+
import RegionRenderSettings = require('./RegionRenderSettings');
|
|
5
|
+
import CustomEditor = require('./CustomEditor');
|
|
6
|
+
import Category = require('../catalog/Category');
|
|
7
|
+
import Product = require('../catalog/Product');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Provides functionality for getting, rendering and serializing page designer managed pages.
|
|
11
|
+
*
|
|
12
|
+
* The basic flow is to determine a page by either id, category or product
|
|
13
|
+
*
|
|
14
|
+
* - getPage
|
|
15
|
+
* - getPageByCategory
|
|
16
|
+
* - getPageByProduct
|
|
17
|
+
*
|
|
18
|
+
* and then to initiate rendering of this page via
|
|
19
|
+
*
|
|
20
|
+
* - renderPage
|
|
21
|
+
* - renderPage
|
|
22
|
+
*
|
|
23
|
+
* This will trigger page rendering from a top level perspective, i.e. the page serves as entry point and root container of components.
|
|
24
|
+
*
|
|
25
|
+
* As a related page or component template will likely want to trigger rendering of nested components
|
|
26
|
+
* within its regions it can do this by first fetching the desired region by ID via
|
|
27
|
+
* Page.getRegion or Component.getRegion and then call to PageMgr.renderRegion
|
|
28
|
+
* with the recently retrieved region (and optionally provide RegionRenderSettings for customized
|
|
29
|
+
* rendering of region and component wrapper elements).
|
|
30
|
+
*
|
|
31
|
+
* Similar to the rendering you can also serialize such page to json via
|
|
32
|
+
*
|
|
33
|
+
* - serializePage
|
|
34
|
+
* - serializePage
|
|
35
|
+
*
|
|
36
|
+
* This will trigger page serialization from a top level perspective, i.e. the page serves as entry point and root container of components,
|
|
37
|
+
* which will automatically traverse all visible components and attach their serialization result to the emitted json.
|
|
38
|
+
*
|
|
39
|
+
* Various attributes required for rendering and serialization in the corresponding template can be accessed with the
|
|
40
|
+
* accordant methods of Page and Component.
|
|
41
|
+
* @see Page
|
|
42
|
+
* @see Region
|
|
43
|
+
* @see Component
|
|
44
|
+
*/
|
|
45
|
+
declare class PageMgr {
|
|
46
|
+
private constructor();
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* Initialize the custom editor of given type id using the passed configuration. The initialization
|
|
51
|
+
* will trigger the `init` function of the respective custom editor type for which the passed
|
|
52
|
+
* custom editor object is being preinitialized with the given configuration (similar to what would
|
|
53
|
+
* happen through the `editor_definition` reference by any component type attribute definition).
|
|
54
|
+
*
|
|
55
|
+
* This method is useful to obtain any custom editor instance you want to reuse within the `init`
|
|
56
|
+
* method of another custom editor, e.g. as dependent breakout element.
|
|
57
|
+
*/
|
|
58
|
+
static getCustomEditor(customEditorTypeID: string, configuration: utilMap<any, any>): CustomEditor;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the page identified by the specified id.
|
|
61
|
+
*/
|
|
62
|
+
static getPage(pageID: string): Page | null;
|
|
63
|
+
/**
|
|
64
|
+
* Get the dynamic page for the given category (including bottom up traversal of the category tree) and aspect type.
|
|
65
|
+
* @deprecated Please use getPageByCategory instead.
|
|
66
|
+
*/
|
|
67
|
+
static getPage(category: Category, pageMustBeVisible: boolean, aspectTypeID: string): Page | null;
|
|
68
|
+
/**
|
|
69
|
+
* Get the dynamic page for the given category (including bottom up traversal of the category tree) and aspect type.
|
|
70
|
+
*/
|
|
71
|
+
static getPageByCategory(category: Category, pageMustBeVisible: boolean, aspectTypeID: string): Page | null;
|
|
72
|
+
/**
|
|
73
|
+
* Get the dynamic page for the given product and aspect type.
|
|
74
|
+
*
|
|
75
|
+
* No bottom up traversal of the product's category tree is performed. If you require this then a
|
|
76
|
+
* separate call to getPageByCategory (with the category of your choice, e.g. the default
|
|
77
|
+
* category of the product) needs to be made.
|
|
78
|
+
*/
|
|
79
|
+
static getPageByProduct(product: Product<any>, pageMustBeVisible: boolean, aspectTypeID: string): Page | null;
|
|
80
|
+
/**
|
|
81
|
+
* Render a page. All of this is going to happen in two layers of remote includes, therefore pagecaching of page rendering
|
|
82
|
+
* is separated from the pagecache lifecycle of the caller. The first one is going to be returned by this method.
|
|
83
|
+
*
|
|
84
|
+
* - layer 1 - determines visibility fingerprint for the page and all its nested components driven by its visibility rules. This remote include will only be pagecached for a fixed duration if neither the page nor any of its
|
|
85
|
+
* nested components carries a visibility rule (configurable in Business Manager via the site's page caching settings). It will then delegate to layer 2.
|
|
86
|
+
* - layer 2 - does the actual rendering of the page by invoking its render function. This remote include will factor the previously determined visibility fingerprint in to the pagecache key, in case you decide to use pagecaching.
|
|
87
|
+
*
|
|
88
|
+
* The layer 1 remote include is what is returned when calling this method.
|
|
89
|
+
*
|
|
90
|
+
* The provided `parameters` argument is passed through till the layer 2 remote include which does the actual rendering so that it will be available
|
|
91
|
+
* for the `render` function of the invoked page as part of PageScriptContext.getRuntimeParameters. You probably want to
|
|
92
|
+
* provide caller parameters from the outside in shape of a json String to the inside of the page rendering, e.g. to loop through query parameters.
|
|
93
|
+
*
|
|
94
|
+
* The layer 2 remote include performs the rendering of the page and all its nested components within one request. Thus data sharing between
|
|
95
|
+
* the page and its nested components can happen in scope of this request.
|
|
96
|
+
*
|
|
97
|
+
* The rendering of a page invokes the `render` function of the respective page type.
|
|
98
|
+
*
|
|
99
|
+
* ```
|
|
100
|
+
* `String : render( PageScriptContext context)`
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* The return value of the `render` function finally represents the markup produced by this page type.
|
|
104
|
+
*
|
|
105
|
+
* Nested page rendering, i.e. rendering a page within a page (or respectively its components), is not a supported use case.
|
|
106
|
+
*
|
|
107
|
+
* Due to the nature of the remote includes mentioned above this comes with the url length restriction as you already know it from
|
|
108
|
+
* remote includes you implement by hand within your templates. Thus the size of the `parameters` parameter of this
|
|
109
|
+
* method has a length limitation accordingly because it just translates into a url parameter of the aforementioned remote includes.
|
|
110
|
+
* As a best practice refrain from passing complex objects (e.g. full blown product models) but keep it rather slim (e.g. only product IDs).
|
|
111
|
+
* @see renderPage
|
|
112
|
+
*/
|
|
113
|
+
static renderPage(pageID: string, parameters: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Render a page. This is an extension of renderPage for the purpose of rendering a
|
|
116
|
+
* page that needs to determine pieces of its content at rendering time instead of design time only. Therefore it
|
|
117
|
+
* is possible to pass aspect attributes in case the given page is subject to an aspect type. The latter specifies the
|
|
118
|
+
* eligible aspect attribute definitions which the passed in aspect attributes will be validated against.
|
|
119
|
+
* If the validation fails for any of the following reasons an AspectAttributeValidationException
|
|
120
|
+
* will be thrown:
|
|
121
|
+
*
|
|
122
|
+
* - any aspect attribute value violates the value domain of the corresponding attribute definition
|
|
123
|
+
* - any required aspect attribute value is `null`
|
|
124
|
+
*
|
|
125
|
+
* Aspect attributes without corresponding attribute definition will be omitted. Once they made it into the rendering
|
|
126
|
+
* they will apply if no persistent attribute value exists (taking precedence over default attribute values
|
|
127
|
+
* as coming from the attribute definition json) and the attribute has the `dynamic_lookup`
|
|
128
|
+
* property defined which contains the aspect attribute alias. The aspect attribute value lookup then happens by taking
|
|
129
|
+
* this aspect attribute alias and using it as attribute identifier within the given map of aspect attributes.
|
|
130
|
+
*
|
|
131
|
+
* Due to the nature of using remote includes, also see renderPage, this comes with the url length
|
|
132
|
+
* restriction as you already know it from remote includes you implement by hand within your templates. Thus the size of both the
|
|
133
|
+
* `aspectAttributes` (keys and values) as well as the `parameters` parameter of this method
|
|
134
|
+
* are subject to a length limitation accordingly because they just translate into url parameters of the aforementioned remote includes.
|
|
135
|
+
* As a best practice refrain from passing complex objects (e.g. full blown product models) but keep it rather slim (e.g. only product IDs).
|
|
136
|
+
* @throws dw.experience.AspectAttributeValidationException if any given aspect attribute value does fulfill its respective attribute definition
|
|
137
|
+
* @see renderPage
|
|
138
|
+
*/
|
|
139
|
+
static renderPage(pageID: string, aspectAttributes: utilMap<any, any>, parameters: string): string;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* Renders a region by triggering rendering of all visible components within
|
|
143
|
+
* this region. For each of these components the render function of the respective component
|
|
144
|
+
* type is invoked.
|
|
145
|
+
*
|
|
146
|
+
* ```
|
|
147
|
+
* String : render( ComponentScriptContext context)
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* The return value of the `render` function will be wrapped by an HTML element - this
|
|
151
|
+
* finally represents the markup produced by this component type. The markup of the region
|
|
152
|
+
* accordingly represents the concatenation of all the components markup within an
|
|
153
|
+
* own wrapper element.
|
|
154
|
+
*
|
|
155
|
+
* In order to provide styling for these wrapper
|
|
156
|
+
* elements of the components and the region some render settings can optionally be provided,
|
|
157
|
+
* which basically allows to configure which kind of tag is used for the wrapper element and
|
|
158
|
+
* which attributes the wrapper element contains. A sample output could look like this if
|
|
159
|
+
* RegionRenderSettings are applied with customized tag names and attributes
|
|
160
|
+
* for the region and component wrapper elements.
|
|
161
|
+
*
|
|
162
|
+
* ```
|
|
163
|
+
* <p class="myRegionCssClass">
|
|
164
|
+
* <span class="myComponentCssClass myComponentCssClass1" data-foo="bar">
|
|
165
|
+
* ...
|
|
166
|
+
* </span>
|
|
167
|
+
* <span class="myComponentCssClass myComponentCssClass2">
|
|
168
|
+
* ...
|
|
169
|
+
* </span>
|
|
170
|
+
* </p>
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* In order to go with the default settings for the wrapper elements see
|
|
174
|
+
* PageMgr.renderRegion.
|
|
175
|
+
*
|
|
176
|
+
* <p style="color:red">
|
|
177
|
+
* You must NOT call this method outside of the processing induced by PageMgr.renderPage.
|
|
178
|
+
* @see RegionRenderSettings
|
|
179
|
+
*/
|
|
180
|
+
static renderRegion(region: Region, regionRenderSettings: RegionRenderSettings): string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* Renders a region by triggering rendering of all visible components within
|
|
184
|
+
* this region. For each of these components the render function of the respective component
|
|
185
|
+
* type is invoked.
|
|
186
|
+
*
|
|
187
|
+
* ```
|
|
188
|
+
* String : render( ComponentScriptContext params)
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* The return value of the `render` function will be wrapped by an HTML element - this
|
|
192
|
+
* finally represents the markup produced by this component type. The markup of the region
|
|
193
|
+
* accordingly represents the concatenation of all the components markup within an
|
|
194
|
+
* own wrapper element.
|
|
195
|
+
*
|
|
196
|
+
* The following sample shows how this would look like for a 'pictures' region
|
|
197
|
+
* that contains two components of type 'assets.image'.
|
|
198
|
+
*
|
|
199
|
+
* ```
|
|
200
|
+
* <div class="experience-region experience-pictures">
|
|
201
|
+
* <div class="experience-component experience-assets-image">
|
|
202
|
+
* ...
|
|
203
|
+
* </div>
|
|
204
|
+
* <div class="experience-component experience-assets-image">
|
|
205
|
+
* ..
|
|
206
|
+
* </div>
|
|
207
|
+
* </div>
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* The system default for region render settings are:
|
|
211
|
+
*
|
|
212
|
+
* - tag_name : div
|
|
213
|
+
* - attributes : {"class":"experience-region experience-[REGION_ID]"}
|
|
214
|
+
*
|
|
215
|
+
* The system default for component render settings are:
|
|
216
|
+
*
|
|
217
|
+
* - tag name : div
|
|
218
|
+
* - attributes : {"class":"experience-component experience-[COMPONENT_TYPE_ID]"}
|
|
219
|
+
*
|
|
220
|
+
* As the [COMPONENT_TYPE_ID] can contain dots due to its package like naming scheme (e.g. assets.image)
|
|
221
|
+
* any occurrences of these dots will be replaced by dashes (e.g. assets-image) so that CSS selectors
|
|
222
|
+
* do not have to be escaped.
|
|
223
|
+
*
|
|
224
|
+
* In order to provide your own settings for the wrapper elements see
|
|
225
|
+
* PageMgr.renderRegion.
|
|
226
|
+
*
|
|
227
|
+
* <p style="color:red">
|
|
228
|
+
* You must NOT call this method outside of the processing induced by PageMgr.renderPage.
|
|
229
|
+
*/
|
|
230
|
+
static renderRegion(region: Region): string;
|
|
231
|
+
/**
|
|
232
|
+
* Serialize a page as json string with the following properties:
|
|
233
|
+
*
|
|
234
|
+
* - `String id` - the id of the page
|
|
235
|
+
* - `String type_id` - the id of the page type
|
|
236
|
+
* - `Map<String, Object> data` - the content attribute key value pairs
|
|
237
|
+
* - `Map<String, Object> custom` - the custom key value pairs as produced by the optional page type `serialize` function
|
|
238
|
+
* - `List<Region> regions` - the regions of this page. A region consists of the following properties
|
|
239
|
+
*
|
|
240
|
+
* - `String id` - the id of the region
|
|
241
|
+
* - `List<Component> components` - the components of this region. A component consists of the following properties
|
|
242
|
+
*
|
|
243
|
+
* - `String id` - the id of the component
|
|
244
|
+
* - `String type_id` - the id of the component type
|
|
245
|
+
* - `Map<String, Object> data` - the content attribute key value pairs
|
|
246
|
+
* - `Map<String, Object> custom` - the custom key value pairs as produced by the optional component type `serialize` function
|
|
247
|
+
* - `List<Region> regions` - the regions of this component
|
|
248
|
+
*
|
|
249
|
+
* All of this is going to happen in two layers of remote includes, therefore pagecaching of page serialization
|
|
250
|
+
* is separated from the pagecache lifecycle of the caller. The first one is going to be returned by this method.
|
|
251
|
+
*
|
|
252
|
+
* - layer 1 - determines visibility fingerprint for the page and all its nested components driven by its visibility rules. This remote include will only be pagecached for a fixed duration if neither the page nor any of its
|
|
253
|
+
* nested components carries a visibility rule (configurable in Business Manager via the site's page caching settings). It will then delegate to layer 2.
|
|
254
|
+
* - layer 2 - does the actual rendering of the page by invoking its render function. This remote include will factor the previously determined visibility fingerprint in to the pagecache key, in case you decide to use pagecaching.
|
|
255
|
+
*
|
|
256
|
+
* The layer 1 remote include is what is returned when calling this method.
|
|
257
|
+
*
|
|
258
|
+
* The provided `parameters` argument is passed through till the layer 2 remote include which does the actual serialization so that it will be available
|
|
259
|
+
* for the `serialize` function of the invoked page as part of PageScriptContext.getRuntimeParameters. You probably want to
|
|
260
|
+
* provide caller parameters from the outside in shape of a json String to the inside of the page serialization, e.g. to loop through query parameters.
|
|
261
|
+
*
|
|
262
|
+
* The layer 2 remote include performs the serialization of the page and all its nested components within one request. Thus data sharing between
|
|
263
|
+
* the page and its nested components can happen in scope of this request.
|
|
264
|
+
*
|
|
265
|
+
* The serialization of a page also invokes the `serialize` function of the respective page type.
|
|
266
|
+
*
|
|
267
|
+
* ```
|
|
268
|
+
* `Object : serialize( PageScriptContext context)`
|
|
269
|
+
* ```
|
|
270
|
+
*
|
|
271
|
+
* The return value of the `serialize` function will be injected as property `custom`
|
|
272
|
+
* into the json string produced as serialization result for this page type.
|
|
273
|
+
*
|
|
274
|
+
* Nested page serialization, i.e. serializing a page within a page (or respectively its components), is not a supported use case.
|
|
275
|
+
*
|
|
276
|
+
* Due to the nature of the remote includes mentioned above this comes with the url length restriction as you already know it from
|
|
277
|
+
* remote includes you implement by hand within your templates. Thus the size of the `parameters` parameter of this
|
|
278
|
+
* method has a length limitation accordingly because it just translates into a url parameter of the aforementioned remote includes.
|
|
279
|
+
* As a best practice refrain from passing complex objects (e.g. full blown product models) but keep it rather slim (e.g. only product IDs).
|
|
280
|
+
* @see serializePage
|
|
281
|
+
*/
|
|
282
|
+
static serializePage(pageID: string, parameters: string): string;
|
|
283
|
+
/**
|
|
284
|
+
* Serialize a page as json string. This is an extension of serializePage for the purpose of serializing a
|
|
285
|
+
* page that needs to determine pieces of its content at serialization time instead of design time only. Therefore it
|
|
286
|
+
* is possible to pass aspect attributes in case the given page is subject to an aspect type. The latter specifies the
|
|
287
|
+
* eligible aspect attribute definitions which the passed in aspect attributes will be validated against.
|
|
288
|
+
* If the validation fails for any of the following reasons an AspectAttributeValidationException
|
|
289
|
+
* will be thrown:
|
|
290
|
+
*
|
|
291
|
+
* - any aspect attribute value violates the value domain of the corresponding attribute definition
|
|
292
|
+
* - any required aspect attribute value is `null`
|
|
293
|
+
*
|
|
294
|
+
* Aspect attributes without corresponding attribute definition will be omitted. Once they made it into the serialization
|
|
295
|
+
* they will apply if no persistent attribute value exists (taking precedence over default attribute values
|
|
296
|
+
* as coming from the attribute definition json) and the attribute has the `dynamic_lookup`
|
|
297
|
+
* property defined which contains the aspect attribute alias. The aspect attribute value lookup then happens by taking
|
|
298
|
+
* this aspect attribute alias and using it as attribute identifier within the given map of aspect attributes.
|
|
299
|
+
*
|
|
300
|
+
* Due to the nature of using remote includes, also see serializePage, this comes with the url length
|
|
301
|
+
* restriction as you already know it from remote includes you implement by hand within your templates. Thus the size of both the
|
|
302
|
+
* `aspectAttributes` (keys and values) as well as the `parameters` parameter of this method
|
|
303
|
+
* are subject to a length limitation accordingly because they just translate into url parameters of the aforementioned remote includes.
|
|
304
|
+
* As a best practice refrain from passing complex objects (e.g. full blown product models) but keep it rather slim (e.g. only product IDs).
|
|
305
|
+
* @throws dw.experience.AspectAttributeValidationException if any given aspect attribute value doesn't fulfill its respective attribute definition
|
|
306
|
+
* @see serializePage
|
|
307
|
+
*/
|
|
308
|
+
static serializePage(pageID: string, aspectAttributes: utilMap<any, any>, parameters: string): string;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export = PageMgr;
|