@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
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import Product = require('./Product');
|
|
2
|
+
import Collection = require('../util/Collection');
|
|
3
|
+
import Variant = require('./Variant');
|
|
4
|
+
import VariationGroup = require('./VariationGroup');
|
|
5
|
+
import ObjectAttributeDefinition = require('../object/ObjectAttributeDefinition');
|
|
6
|
+
import ObjectAttributeValueDefinition = require('../object/ObjectAttributeValueDefinition');
|
|
7
|
+
import HashMap = require('../util/HashMap');
|
|
8
|
+
import ProductVariationAttribute = require('./ProductVariationAttribute');
|
|
9
|
+
import ProductVariationAttributeValue = require('./ProductVariationAttributeValue');
|
|
10
|
+
import List = require('../util/List');
|
|
11
|
+
import Image = require('../experience/image/Image');
|
|
12
|
+
import MediaFile = require('../content/MediaFile');
|
|
13
|
+
import URL = require('../web/URL');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Class representing the complete variation information for a master product in
|
|
17
|
+
* the system. An instance of this class provides methods to access the
|
|
18
|
+
* following information:
|
|
19
|
+
*
|
|
20
|
+
* - The variation attributes of the master product (e.g. size and color). Use
|
|
21
|
+
* getProductVariationAttributes.
|
|
22
|
+
* - The variation attribute values (e.g. size=Small, Medium, Large and
|
|
23
|
+
* color=Red, Blue). Use getAllValues.
|
|
24
|
+
* - The variation groups which may represent a subset of variants by defining a
|
|
25
|
+
* subset of the variation attribute values (e.g. color=Red, size=empty). Use
|
|
26
|
+
* getVariationGroups.
|
|
27
|
+
* - The variants themselves (e.g. the products representing Small Red, Large
|
|
28
|
+
* Red, Small Blue, Large Blue, etc). Use getVariants.
|
|
29
|
+
* - The variation attribute values of those variants. Use
|
|
30
|
+
* getVariationValue.
|
|
31
|
+
*
|
|
32
|
+
* This model only considers variants which are complete (i.e. the variant has a
|
|
33
|
+
* value for each variation attribute), and currently online. Incomplete or
|
|
34
|
+
* offline variants will not be returned by any method that returns Variants,
|
|
35
|
+
* and their attribute values will not be considered in any method that returns
|
|
36
|
+
* values.
|
|
37
|
+
*
|
|
38
|
+
* In addition to providing access to this meta information,
|
|
39
|
+
* ProductVariationModel maintains a collection of selected variation attribute
|
|
40
|
+
* values, representing the selections that a customer makes in the storefront.
|
|
41
|
+
* If this model was constructed for a master product, then none of the
|
|
42
|
+
* attributes will have pre-selected values. If this model was constructed for a
|
|
43
|
+
* variant product, then all the attribute values of that variant will be
|
|
44
|
+
* pre-selected.
|
|
45
|
+
*
|
|
46
|
+
* It is possible to query the current selections by calling
|
|
47
|
+
* getSelectedValue or
|
|
48
|
+
* isSelectedAttributeValue.
|
|
49
|
+
*
|
|
50
|
+
* The method setSelectedAttributeValue can be used to modify
|
|
51
|
+
* the selected values. Depending on the product type, it's possible to select or modify
|
|
52
|
+
* variation attribute values:
|
|
53
|
+
*
|
|
54
|
+
* - If this model was constructed for a master product, it's possible to select and modify all variation attributes.
|
|
55
|
+
* - If this model was constructed for a variation group, it's possible to select and modify all variation attributes that are not defined by the variation group.
|
|
56
|
+
* - If this model was constructed for a variation product, it's not possible to select or modify any of the variation attributes.
|
|
57
|
+
*
|
|
58
|
+
* Furthermore, the model provides helper methods to generate URLs
|
|
59
|
+
* for selecting and unselecting variation attribute values. See those methods
|
|
60
|
+
* for details.
|
|
61
|
+
*
|
|
62
|
+
* If this model was constructed for a product that is neither a
|
|
63
|
+
* master nor a variant, then none of the methods will return useful values at
|
|
64
|
+
* all.
|
|
65
|
+
*
|
|
66
|
+
* The methods in this class which access the currently selected variation
|
|
67
|
+
* attribute values can be used on product detail pages to render information
|
|
68
|
+
* about which combinations are available or unavailable. The methods
|
|
69
|
+
* getFilteredValues and
|
|
70
|
+
* hasOrderableVariants
|
|
71
|
+
* can be used to determine this type of situation and render the appropriate
|
|
72
|
+
* message in the storefront.
|
|
73
|
+
*
|
|
74
|
+
* NOTE: Several methods in this class have a version taking a
|
|
75
|
+
* dw.catalog.ProductVariationAttribute parameter, and another
|
|
76
|
+
* deprecated version accepting a dw.object.ObjectAttributeDefinition
|
|
77
|
+
* parameter instead. The former should be strictly favored. The latter are
|
|
78
|
+
* historical leftovers from when object attributes were used directly as the
|
|
79
|
+
* basis for variation, and the value lists were stored directly on the
|
|
80
|
+
* ObjectAttributeDefinition. Every ProductVariationAttribute corresponds with
|
|
81
|
+
* exactly one ObjectAttributeDefinition, but values are now stored on the
|
|
82
|
+
* ProductVariationAttribute and not the ObjectAttributeDefinition.
|
|
83
|
+
*/
|
|
84
|
+
declare class ProductVariationModel {
|
|
85
|
+
/**
|
|
86
|
+
* Returns the object attribute definitions corresponding with the product
|
|
87
|
+
* variation attributes of the master product.
|
|
88
|
+
* @deprecated This method is deprecated since custom code should work with
|
|
89
|
+
* ProductVariationAttributes and not directly with their
|
|
90
|
+
* corresponding ObjectAttributeDefinitions. Use
|
|
91
|
+
* getProductVariationAttributes to get the
|
|
92
|
+
* product variation attributes.
|
|
93
|
+
*/
|
|
94
|
+
readonly attributeDefinitions: Collection<ObjectAttributeDefinition>;
|
|
95
|
+
/**
|
|
96
|
+
* Return the default variant of this model's master product. If no default
|
|
97
|
+
* variant has been defined, return an arbitrary variant.
|
|
98
|
+
*/
|
|
99
|
+
readonly defaultVariant: Variant | null;
|
|
100
|
+
/**
|
|
101
|
+
* Returns the master of the product variation.
|
|
102
|
+
*/
|
|
103
|
+
readonly master: Product<any>;
|
|
104
|
+
/**
|
|
105
|
+
* Returns a collection of product variation attributes of the variation.
|
|
106
|
+
*/
|
|
107
|
+
readonly productVariationAttributes: Collection<ProductVariationAttribute>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns the variant currently selected for this variation model.
|
|
110
|
+
* Returns null if no variant is selected.
|
|
111
|
+
*/
|
|
112
|
+
readonly selectedVariant: Variant | null;
|
|
113
|
+
/**
|
|
114
|
+
* Returns the variants currently selected for this variation model.
|
|
115
|
+
* Returns an empty collection if no variant is selected.
|
|
116
|
+
*/
|
|
117
|
+
readonly selectedVariants: Collection<Variant>;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the collection of product variants of this variation model.
|
|
120
|
+
* This collection only includes online variants. Offline variants are
|
|
121
|
+
* filtered out. If all variation products are required, consider using
|
|
122
|
+
* dw.catalog.Product.getVariants.
|
|
123
|
+
*
|
|
124
|
+
* The product variants are returned in no particular order.
|
|
125
|
+
*/
|
|
126
|
+
readonly variants: Collection<Variant>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the collection of variation groups of this variation model.
|
|
129
|
+
* This collection only includes online variation groups. Offline variation
|
|
130
|
+
* groups are filtered out. If all variation group products are required,
|
|
131
|
+
* consider using dw.catalog.Product.getVariationGroups.
|
|
132
|
+
*
|
|
133
|
+
* The variation groups are returned in no particular order.
|
|
134
|
+
*/
|
|
135
|
+
readonly variationGroups: Collection<VariationGroup>;
|
|
136
|
+
private constructor();
|
|
137
|
+
/**
|
|
138
|
+
* Returns the value definitions for the specified attribute. Only values
|
|
139
|
+
* that actually exist for at least one of the master product's currently
|
|
140
|
+
* online and complete variants are returned.
|
|
141
|
+
*
|
|
142
|
+
* Returns an empty collection if the passed attribute is not even a
|
|
143
|
+
* variation attribute of the master product.
|
|
144
|
+
* @deprecated This method is deprecated since custom code should work with
|
|
145
|
+
* ProductVariationAttributes and not directly with their
|
|
146
|
+
* corresponding ObjectAttributeDefinitions. Use
|
|
147
|
+
* getAllValues to get the
|
|
148
|
+
* collection of ProductVariationAttributeValue instances
|
|
149
|
+
* instead.
|
|
150
|
+
*/
|
|
151
|
+
getAllValues(attribute: ObjectAttributeDefinition): Collection<ObjectAttributeValueDefinition>;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the values for the specified attribute. Only values that actually
|
|
154
|
+
* exist for at least one of the master product's currently online and
|
|
155
|
+
* complete variants are returned.
|
|
156
|
+
*
|
|
157
|
+
* Returns an empty collection if the passed attribute is not even a
|
|
158
|
+
* variation attribute of the master product.
|
|
159
|
+
*/
|
|
160
|
+
getAllValues(attribute: ProductVariationAttribute): Collection<ObjectAttributeValueDefinition>;
|
|
161
|
+
/**
|
|
162
|
+
* Returns the object attribute definitions corresponding with the product
|
|
163
|
+
* variation attributes of the master product.
|
|
164
|
+
* @deprecated This method is deprecated since custom code should work with
|
|
165
|
+
* ProductVariationAttributes and not directly with their
|
|
166
|
+
* corresponding ObjectAttributeDefinitions. Use
|
|
167
|
+
* getProductVariationAttributes to get the
|
|
168
|
+
* product variation attributes.
|
|
169
|
+
*/
|
|
170
|
+
getAttributeDefinitions(): Collection<ObjectAttributeDefinition>;
|
|
171
|
+
/**
|
|
172
|
+
* Return the default variant of this model's master product. If no default
|
|
173
|
+
* variant has been defined, return an arbitrary variant.
|
|
174
|
+
*/
|
|
175
|
+
getDefaultVariant(): Variant | null;
|
|
176
|
+
/**
|
|
177
|
+
* Returns a collection of the value definitions defined for the specified
|
|
178
|
+
* attribute, filtered based on currently selected values.
|
|
179
|
+
*
|
|
180
|
+
* A value is only returned if it at least one variant has the value and
|
|
181
|
+
* also possesses the selected values for all previous attributes. It is
|
|
182
|
+
* important to know that the filter is applied in a certain order. The
|
|
183
|
+
* method looks at all ObjectAttributeDefinition instances that appear
|
|
184
|
+
* before the passed one in the sorted collection returned by
|
|
185
|
+
* getAttributeDefinitions. If the passed attribute is the first
|
|
186
|
+
* in this collection, then this method simply returns all its values. If an
|
|
187
|
+
* earlier attribute does not have a selected value, this method returns an
|
|
188
|
+
* empty list. Otherwise, the filter looks at all variants matching the
|
|
189
|
+
* selected value for all previous attributes, and considers the range of
|
|
190
|
+
* values possessed by these variants for the passed attribute.
|
|
191
|
+
*
|
|
192
|
+
* The idea behind this method is that customers in the storefront select
|
|
193
|
+
* variation attribute values one by one in the order the variation
|
|
194
|
+
* attributes are defined and displayed. After each selection, customer only
|
|
195
|
+
* wants to see values that he can possibly order for the remaining
|
|
196
|
+
* attributes.
|
|
197
|
+
*
|
|
198
|
+
* Returns an empty collection if the passed attribute is not even a
|
|
199
|
+
* variation attribute of the master product.
|
|
200
|
+
* @deprecated Use getFilteredValues to
|
|
201
|
+
* get the sorted and calculated collection of product variation
|
|
202
|
+
* attribute values.
|
|
203
|
+
*/
|
|
204
|
+
getFilteredValues(attribute: ObjectAttributeDefinition): Collection<ObjectAttributeValueDefinition>;
|
|
205
|
+
/**
|
|
206
|
+
* Returns a collection of the value definitions defined for the specified
|
|
207
|
+
* attribute, filtered based on currently selected values.
|
|
208
|
+
*
|
|
209
|
+
* A value is only returned if it at least one variant has the value and
|
|
210
|
+
* also possesses the selected values for all previous attributes. It is
|
|
211
|
+
* important to know that the filter is applied in a certain order. The
|
|
212
|
+
* method looks at all ProductVariationAttribute instances that appear
|
|
213
|
+
* before the passed one in the sorted collection returned by
|
|
214
|
+
* getProductVariationAttributes. If the passed attribute is the
|
|
215
|
+
* first in this collection, then this method simply returns all its values.
|
|
216
|
+
* If an earlier attribute does not have a selected value, this method
|
|
217
|
+
* returns an empty list. Otherwise, the filter looks at all variants
|
|
218
|
+
* matching the selected value for all previous attributes, and considers
|
|
219
|
+
* the range of values possessed by these variants for the passed attribute.
|
|
220
|
+
*
|
|
221
|
+
* The idea behind this method is that customers in the storefront select
|
|
222
|
+
* variation attribute values one by one in the order the variation
|
|
223
|
+
* attributes are defined and displayed. After each selection, customer only
|
|
224
|
+
* wants to see values that he can possibly order for the remaining
|
|
225
|
+
* attributes.
|
|
226
|
+
*
|
|
227
|
+
* Returns an empty collection if the passed attribute is not even a
|
|
228
|
+
* variation attribute of the master product.
|
|
229
|
+
*/
|
|
230
|
+
getFilteredValues(attribute: ProductVariationAttribute): Collection<ObjectAttributeValueDefinition>;
|
|
231
|
+
/**
|
|
232
|
+
* Returns an HTML representation of the variation attribute id. This method
|
|
233
|
+
* is deprecated. You should use getHtmlName(ProductVariationAttribute)
|
|
234
|
+
* instead.
|
|
235
|
+
* @deprecated Use getHtmlName to get
|
|
236
|
+
* the HTML representation of the product variation attribute
|
|
237
|
+
* id.
|
|
238
|
+
*/
|
|
239
|
+
getHtmlName(attribute: ObjectAttributeDefinition): string;
|
|
240
|
+
/**
|
|
241
|
+
* Returns an HTML representation of the variation attribute id with the
|
|
242
|
+
* custom prefix. This method is deprecated. You should use
|
|
243
|
+
* getHtmlName instead.
|
|
244
|
+
* @deprecated Use getHtmlName
|
|
245
|
+
* to get the HTML representation of the product variation
|
|
246
|
+
* attribute id with the custom prefix.
|
|
247
|
+
*/
|
|
248
|
+
getHtmlName(prefix: string, attribute: ObjectAttributeDefinition): string;
|
|
249
|
+
/**
|
|
250
|
+
* Returns an HTML representation of the product variation attribute id.
|
|
251
|
+
*/
|
|
252
|
+
getHtmlName(attribute: ProductVariationAttribute): string;
|
|
253
|
+
/**
|
|
254
|
+
* Returns an HTML representation of the product variation attribute id with the custom prefix.
|
|
255
|
+
*/
|
|
256
|
+
getHtmlName(prefix: string, attribute: ProductVariationAttribute): string;
|
|
257
|
+
/**
|
|
258
|
+
* The method returns the first image appropriate for the currently selected attribute values.
|
|
259
|
+
*
|
|
260
|
+
* The method first considers the most specific combination of attribute values (e.g
|
|
261
|
+
* "Red leather") and if that is not found, more general (e.g "Red"). If no image group
|
|
262
|
+
* is found for the attributes, returns null
|
|
263
|
+
*
|
|
264
|
+
* The view type parameter is required, otherwise a exception is thrown.
|
|
265
|
+
*/
|
|
266
|
+
getImage(viewtype: string, attribute: ProductVariationAttribute, value: ProductVariationAttributeValue): MediaFile | null;
|
|
267
|
+
/**
|
|
268
|
+
* The method returns an image appropriate for the current selected variation values
|
|
269
|
+
* with the specific index.
|
|
270
|
+
*
|
|
271
|
+
* If images are defined for this view type and variants, but not for
|
|
272
|
+
* specified index, the method returns null.
|
|
273
|
+
*
|
|
274
|
+
* If no images are defined for all variants and specified view type, the
|
|
275
|
+
* image at the specified index of the master product images is returned. If
|
|
276
|
+
* no master product image for specified index is defined, the method
|
|
277
|
+
* returns null.
|
|
278
|
+
*
|
|
279
|
+
* The view type parameter is required, otherwise a exception is thrown.
|
|
280
|
+
*/
|
|
281
|
+
getImage(viewtype: string, index: number): MediaFile | null;
|
|
282
|
+
/**
|
|
283
|
+
* The method returns the first image appropriate for the current selected variation values
|
|
284
|
+
* with the specific index.
|
|
285
|
+
*
|
|
286
|
+
* If images are defined for this view type and variants, but not for
|
|
287
|
+
* specified index, the method returns null.
|
|
288
|
+
*
|
|
289
|
+
* If no images are defined for all variants and specified view type, the
|
|
290
|
+
* image at the specified index of the master product images is returned. If
|
|
291
|
+
* no master product image for specified index is defined, the method
|
|
292
|
+
* returns null.
|
|
293
|
+
*
|
|
294
|
+
* The view type parameter is required, otherwise a exception is thrown.
|
|
295
|
+
*/
|
|
296
|
+
getImage(viewtype: string): MediaFile | null;
|
|
297
|
+
/**
|
|
298
|
+
* The method returns the image appropriate for the currently selected attribute values.
|
|
299
|
+
*
|
|
300
|
+
* The method first considers the most specific combination of attribute values (e.g
|
|
301
|
+
* "Red leather") and if that is not found, more general (e.g "Red"). If no image group
|
|
302
|
+
* is found for the attributes, returns null
|
|
303
|
+
*
|
|
304
|
+
* The view type parameter is required, otherwise a exception is thrown.
|
|
305
|
+
*/
|
|
306
|
+
getImages(viewtype: string): List<Image>;
|
|
307
|
+
/**
|
|
308
|
+
* Returns the master of the product variation.
|
|
309
|
+
*/
|
|
310
|
+
getMaster(): Product<any>;
|
|
311
|
+
/**
|
|
312
|
+
* Returns the product variation attribute for the specific id,
|
|
313
|
+
* or null if there is no product variation attribute for that id.
|
|
314
|
+
*/
|
|
315
|
+
getProductVariationAttribute(id: string): ProductVariationAttribute | null;
|
|
316
|
+
/**
|
|
317
|
+
* Returns a collection of product variation attributes of the variation.
|
|
318
|
+
*/
|
|
319
|
+
getProductVariationAttributes(): Collection<ProductVariationAttribute>;
|
|
320
|
+
/**
|
|
321
|
+
* Returns the selected value for the specified attribute. If no value is
|
|
322
|
+
* selected, null is returned.
|
|
323
|
+
* @deprecated Use getSelectedValue to
|
|
324
|
+
* get the selected product variation attribute value for the
|
|
325
|
+
* specified attribute.
|
|
326
|
+
*/
|
|
327
|
+
getSelectedValue(attribute: ObjectAttributeDefinition): ObjectAttributeValueDefinition | null;
|
|
328
|
+
/**
|
|
329
|
+
* Returns the selected value for the specified product variation attribute. If no value is
|
|
330
|
+
* selected, null is returned.
|
|
331
|
+
*/
|
|
332
|
+
getSelectedValue(attribute: ProductVariationAttribute): ProductVariationAttributeValue | null;
|
|
333
|
+
/**
|
|
334
|
+
* Returns the variant currently selected for this variation model.
|
|
335
|
+
* Returns null if no variant is selected.
|
|
336
|
+
*/
|
|
337
|
+
getSelectedVariant(): Variant | null;
|
|
338
|
+
/**
|
|
339
|
+
* Returns the variants currently selected for this variation model.
|
|
340
|
+
* Returns an empty collection if no variant is selected.
|
|
341
|
+
*/
|
|
342
|
+
getSelectedVariants(): Collection<Variant>;
|
|
343
|
+
/**
|
|
344
|
+
* Returns the collection of product variants of this variation model.
|
|
345
|
+
* This collection only includes online variants. Offline variants are
|
|
346
|
+
* filtered out. If all variation products are required, consider using
|
|
347
|
+
* dw.catalog.Product.getVariants.
|
|
348
|
+
*
|
|
349
|
+
* The product variants are returned in no particular order.
|
|
350
|
+
*/
|
|
351
|
+
getVariants(): Collection<Variant>;
|
|
352
|
+
/**
|
|
353
|
+
* Returns the variants that match the specified filter conditions. The
|
|
354
|
+
* filter conditions are specified as a hash map of <attribute_id> -
|
|
355
|
+
* <value_id>. This method does not consider the currently selected
|
|
356
|
+
* attribute values.
|
|
357
|
+
*/
|
|
358
|
+
getVariants(filter: HashMap<any, any>): Collection<Variant>;
|
|
359
|
+
/**
|
|
360
|
+
* Returns the collection of variation groups of this variation model.
|
|
361
|
+
* This collection only includes online variation groups. Offline variation
|
|
362
|
+
* groups are filtered out. If all variation group products are required,
|
|
363
|
+
* consider using dw.catalog.Product.getVariationGroups.
|
|
364
|
+
*
|
|
365
|
+
* The variation groups are returned in no particular order.
|
|
366
|
+
*/
|
|
367
|
+
getVariationGroups(): Collection<VariationGroup>;
|
|
368
|
+
/**
|
|
369
|
+
* Returns the value for the specified variant or variation group product and
|
|
370
|
+
* variation attribute. The specified product should be a dw.catalog.Variant
|
|
371
|
+
* returned by getVariants or a dw.catalog.VariationGroup returned by
|
|
372
|
+
* getVariationGroups. The variation attribute should be one returned by
|
|
373
|
+
* getProductVariationAttributes. If an invalid product or attribute is passed,
|
|
374
|
+
* null is returned. If null is passed for either argument, an exception is thrown.
|
|
375
|
+
*/
|
|
376
|
+
getVariationValue(variantOrVariationGroup: Product<any>, attribute: ProductVariationAttribute): ProductVariationAttributeValue | null;
|
|
377
|
+
/**
|
|
378
|
+
* Returns true if any variant is available with the specified value of the
|
|
379
|
+
* specified variation attribute. Available means that the variant is
|
|
380
|
+
* orderable according to the variant's availability model. This method
|
|
381
|
+
* takes currently selected attribute values into consideration. The
|
|
382
|
+
* specific rules are as follows:
|
|
383
|
+
*
|
|
384
|
+
* - If no variation value is currently selected, the method returns true
|
|
385
|
+
* if any variant with the specified value is available, else false.
|
|
386
|
+
* - if one or more variation values are selected, the method returns true
|
|
387
|
+
* if any variant with a combination of the specified value and the selected
|
|
388
|
+
* value is available, else false.
|
|
389
|
+
* - if all variation values are selected, the method returns true of the
|
|
390
|
+
* variant that is represented by the current selection is available, else
|
|
391
|
+
* false.
|
|
392
|
+
*/
|
|
393
|
+
hasOrderableVariants(attribute: ProductVariationAttribute, value: ProductVariationAttributeValue): boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Identifies if the specified variation value is the one currently
|
|
396
|
+
* selected.
|
|
397
|
+
* @deprecated Use
|
|
398
|
+
* isSelectedAttributeValue
|
|
399
|
+
* to identify if the specified product variation attribute
|
|
400
|
+
* value is the one currently selected.
|
|
401
|
+
*/
|
|
402
|
+
isSelectedAttributeValue(attribute: ObjectAttributeDefinition, value: ObjectAttributeValueDefinition): boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Identifies if the specified product variation attribute value is the one
|
|
405
|
+
* currently selected.
|
|
406
|
+
*/
|
|
407
|
+
isSelectedAttributeValue(attribute: ProductVariationAttribute, value: ProductVariationAttributeValue): boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Applies a selected attribute value to this model instance.
|
|
410
|
+
* Usually this method is used to set the model state corresponding to the variation attribute values
|
|
411
|
+
* specified by a URL. The URLs can be obtained by using one of the models URL methods, like
|
|
412
|
+
* urlSelectVariationValue and
|
|
413
|
+
* urlUnselectVariationValue.
|
|
414
|
+
*
|
|
415
|
+
* Anyway, there are some limitations to keep in mind when selecting variation attribute values.
|
|
416
|
+
* A Variation Model created for a Variation Group or Variant Product is bound to an initial state.
|
|
417
|
+
* Example:
|
|
418
|
+
*
|
|
419
|
+
* - A Variation Model created for Variation Group A can't be switched to Variation Group B.
|
|
420
|
+
* - A Variation Model created for Variant A can't be switched to Variant B.
|
|
421
|
+
* - The state of a Variation Model for a Variation Group that defines color = red can't be changed to color = black.
|
|
422
|
+
* - The state of a Variation Model for a Variant that defines color = red / size = L can't be changed to color = black / size = S.
|
|
423
|
+
* However, the state of a Variation Model created for a Variation Group that defines color = red
|
|
424
|
+
* can be changed to a more specific state by adding another selected value, e.g. size = L.
|
|
425
|
+
*
|
|
426
|
+
* The state of a Variation Model created for a Variation Master can be changed in any possible way
|
|
427
|
+
* because the initial state involves all variation values and Variants.
|
|
428
|
+
*/
|
|
429
|
+
setSelectedAttributeValue(variationAttributeID: string, variationAttributeValueID: string): void;
|
|
430
|
+
/**
|
|
431
|
+
* Constructs a URL to select a set of variation attribute values. The
|
|
432
|
+
* optional `varAttrAndValues` argument can be empty, or can
|
|
433
|
+
* contain one or more variation attribute / value pairs. This variable list
|
|
434
|
+
* should be even in length, with attributes and values alternating.
|
|
435
|
+
* Attributes can be specified as instances of ProductVariationAttribute, or
|
|
436
|
+
* String variation attribute ID. (Note: ObjectAttributeDefinition IDs are
|
|
437
|
+
* not supported.) Values can be specified as instances of
|
|
438
|
+
* ProductVariationAttributeValue or String or Integer depending on the data
|
|
439
|
+
* type of the variation attribute. If a parameter type is invalid, or does
|
|
440
|
+
* not reference a valid ProductVariationAttribute or
|
|
441
|
+
* ProductVariationAttributeValue, then the parameter pair is not included
|
|
442
|
+
* in the generated URL. The returned URL will contain variation attributes
|
|
443
|
+
* and values already selected in the product variation model, as well as
|
|
444
|
+
* attributes and values specified as method parameters.
|
|
445
|
+
*
|
|
446
|
+
* Sample usage:
|
|
447
|
+
* @example
|
|
448
|
+
* master.variationModel.url("Product-Show", "color", "red", "size", "XL");
|
|
449
|
+
*
|
|
450
|
+
* master.variationModel.url("Product-Show", colorVarAttr, colorValue, sizeVarAttr, sizeValue);
|
|
451
|
+
*
|
|
452
|
+
* // --> on/demandware.store/Sites-SiteGenesis-Site/default/Product-Show?pid=master_id&dwvar_color=red&dwvar_size=XL
|
|
453
|
+
*/
|
|
454
|
+
url(action: string, ...varAttrAndValues: any[]): URL;
|
|
455
|
+
/**
|
|
456
|
+
* Constructs an URL to select the specified value of the specified
|
|
457
|
+
* variation attribute.
|
|
458
|
+
*
|
|
459
|
+
* The generated URL will be an absolute URL which uses the protocol of the
|
|
460
|
+
* current request.
|
|
461
|
+
* @deprecated Use
|
|
462
|
+
* urlSelectVariationValue
|
|
463
|
+
* to construct an URL to select the specified product variation
|
|
464
|
+
* attribute value of the specified product variation attribute.
|
|
465
|
+
*/
|
|
466
|
+
urlSelectVariationValue(action: string, attribute: ObjectAttributeDefinition, value: ObjectAttributeValueDefinition): string;
|
|
467
|
+
/**
|
|
468
|
+
* Generates a URL for selecting a value for a given variation attribute.
|
|
469
|
+
* This URL is intended to be used on dynamic product detail pages. When a
|
|
470
|
+
* customer selects which value he wants for one of the variation
|
|
471
|
+
* attributes, the product detail page can issue a request to the passed URL
|
|
472
|
+
* which in turn can invoke the
|
|
473
|
+
* `UpdateProductVariationSelections` pipelet. That pipelet reads
|
|
474
|
+
* the querystring parameters and returns an updated variation model with
|
|
475
|
+
* the desired attribute value selected.
|
|
476
|
+
*
|
|
477
|
+
* The generated URL will be an absolute URL which uses the protocol of
|
|
478
|
+
* the current request.
|
|
479
|
+
*/
|
|
480
|
+
urlSelectVariationValue(action: string, attribute: ProductVariationAttribute, value: ProductVariationAttributeValue): string;
|
|
481
|
+
/**
|
|
482
|
+
* Constructs an URL to unselect the value of the specified variation
|
|
483
|
+
* attribute.
|
|
484
|
+
*
|
|
485
|
+
* The generated URL will be an absolute URL which uses the protocol of the
|
|
486
|
+
* current request.
|
|
487
|
+
* @deprecated Use
|
|
488
|
+
* urlUnselectVariationValue
|
|
489
|
+
* to unselect the product variation attribute value of the
|
|
490
|
+
* specified product variation attribute.
|
|
491
|
+
*/
|
|
492
|
+
urlUnselectVariationValue(action: string, attribute: ObjectAttributeDefinition): string;
|
|
493
|
+
/**
|
|
494
|
+
* Generates a URL for unselecting a value for a given variation attribute.
|
|
495
|
+
* This URL is intended to be used on dynamic product detail pages. When a
|
|
496
|
+
* customer deselects a value for one of the variation attributes, the
|
|
497
|
+
* product detail page can issue a request to the passed URL which in turn
|
|
498
|
+
* can invoke the `UpdateProductVariationSelections` pipelet.
|
|
499
|
+
* That pipelet reads the querystring parameters and returns an updated
|
|
500
|
+
* variation model with the desired attribute value unselected.
|
|
501
|
+
*
|
|
502
|
+
* The generated URL will be an absolute URL which uses the protocol of
|
|
503
|
+
* the current request.
|
|
504
|
+
*/
|
|
505
|
+
urlUnselectVariationValue(action: string, attribute: ProductVariationAttribute): string;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export = ProductVariationModel;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import ExtensibleObject = require('../object/ExtensibleObject');
|
|
2
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
3
|
+
import MarkupText = require('../content/MarkupText');
|
|
4
|
+
import MediaFile = require('../content/MediaFile');
|
|
5
|
+
import Catalog = require('./Catalog');
|
|
6
|
+
|
|
7
|
+
declare global {
|
|
8
|
+
module ICustomAttributes {
|
|
9
|
+
interface Recommendation extends CustomAttributes {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents a recommendation in Commerce Cloud Digital.
|
|
16
|
+
*/
|
|
17
|
+
declare class Recommendation extends ExtensibleObject<ICustomAttributes.Recommendation> {
|
|
18
|
+
/**
|
|
19
|
+
* Represents a cross-sell recommendation.
|
|
20
|
+
* @deprecated Use the integer value instead. The recommendation types
|
|
21
|
+
* and their meanings are now configurable in the Business Manager.
|
|
22
|
+
*/
|
|
23
|
+
static readonly RECOMMENDATION_TYPE_CROSS_SELL = 1;
|
|
24
|
+
/**
|
|
25
|
+
* Represents a recommendation that is neither a cross-sell or an up-sell.
|
|
26
|
+
* @deprecated Use the integer value instead. The recommendation types
|
|
27
|
+
* and their meanings are now configurable in the Business Manager.
|
|
28
|
+
*/
|
|
29
|
+
static readonly RECOMMENDATION_TYPE_OTHER = 3;
|
|
30
|
+
/**
|
|
31
|
+
* Represents an up-sell recommendation.
|
|
32
|
+
* @deprecated Use the integer value instead. The recommendation types
|
|
33
|
+
* and their meanings are now configurable in the Business Manager.
|
|
34
|
+
*/
|
|
35
|
+
static readonly RECOMMENDATION_TYPE_UP_SELL = 2;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the recommendation's callout message in the current locale.
|
|
38
|
+
*/
|
|
39
|
+
readonly calloutMsg: MarkupText | null;
|
|
40
|
+
/**
|
|
41
|
+
* Return the catalog containing the recommendation.
|
|
42
|
+
*/
|
|
43
|
+
readonly catalog: Catalog;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the recommendation's image.
|
|
46
|
+
*/
|
|
47
|
+
readonly image: MediaFile;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the recommendation's long description in the current locale.
|
|
50
|
+
*/
|
|
51
|
+
readonly longDescription: MarkupText | null;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the name of the recommended item in the current locale.
|
|
54
|
+
*/
|
|
55
|
+
readonly name: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the type of the recommendation.
|
|
58
|
+
*/
|
|
59
|
+
readonly recommendationType: number;
|
|
60
|
+
/**
|
|
61
|
+
* Return a reference to the recommended item. This will always be an
|
|
62
|
+
* object of type `dw.catalog.Product` since this is the only
|
|
63
|
+
* currently supported recommendation target type.
|
|
64
|
+
*/
|
|
65
|
+
readonly recommendedItem: any | null;
|
|
66
|
+
/**
|
|
67
|
+
* Return the ID of the recommended item. This will always be a product
|
|
68
|
+
* ID since this is the only currently supported recommendation target
|
|
69
|
+
* type.
|
|
70
|
+
*/
|
|
71
|
+
readonly recommendedItemID: string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the recommendation's short description in the current locale.
|
|
74
|
+
*/
|
|
75
|
+
readonly shortDescription: MarkupText | null;
|
|
76
|
+
/**
|
|
77
|
+
* Return a reference to the source item. This will be an object of type
|
|
78
|
+
* `dw.catalog.Product` or `dw.catalog.Category.`
|
|
79
|
+
*/
|
|
80
|
+
readonly sourceItem: any;
|
|
81
|
+
/**
|
|
82
|
+
* Return the ID of the recommendation source item. This will either be a
|
|
83
|
+
* product ID or category name.
|
|
84
|
+
*/
|
|
85
|
+
readonly sourceItemID: string;
|
|
86
|
+
private constructor();
|
|
87
|
+
/**
|
|
88
|
+
* Returns the recommendation's callout message in the current locale.
|
|
89
|
+
*/
|
|
90
|
+
getCalloutMsg(): MarkupText | null;
|
|
91
|
+
/**
|
|
92
|
+
* Return the catalog containing the recommendation.
|
|
93
|
+
*/
|
|
94
|
+
getCatalog(): Catalog;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the recommendation's image.
|
|
97
|
+
*/
|
|
98
|
+
getImage(): MediaFile;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the recommendation's long description in the current locale.
|
|
101
|
+
*/
|
|
102
|
+
getLongDescription(): MarkupText | null;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the name of the recommended item in the current locale.
|
|
105
|
+
*/
|
|
106
|
+
getName(): string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the type of the recommendation.
|
|
109
|
+
*/
|
|
110
|
+
getRecommendationType(): number;
|
|
111
|
+
/**
|
|
112
|
+
* Return a reference to the recommended item. This will always be an
|
|
113
|
+
* object of type `dw.catalog.Product` since this is the only
|
|
114
|
+
* currently supported recommendation target type.
|
|
115
|
+
*/
|
|
116
|
+
getRecommendedItem(): any | null;
|
|
117
|
+
/**
|
|
118
|
+
* Return the ID of the recommended item. This will always be a product
|
|
119
|
+
* ID since this is the only currently supported recommendation target
|
|
120
|
+
* type.
|
|
121
|
+
*/
|
|
122
|
+
getRecommendedItemID(): string;
|
|
123
|
+
/**
|
|
124
|
+
* Returns the recommendation's short description in the current locale.
|
|
125
|
+
*/
|
|
126
|
+
getShortDescription(): MarkupText | null;
|
|
127
|
+
/**
|
|
128
|
+
* Return a reference to the source item. This will be an object of type
|
|
129
|
+
* `dw.catalog.Product` or `dw.catalog.Category.`
|
|
130
|
+
*/
|
|
131
|
+
getSourceItem(): any;
|
|
132
|
+
/**
|
|
133
|
+
* Return the ID of the recommendation source item. This will either be a
|
|
134
|
+
* product ID or category name.
|
|
135
|
+
*/
|
|
136
|
+
getSourceItemID(): string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export = Recommendation;
|