@salesforce/b2c-cli 1.11.0 → 1.12.0
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 +5721 -5416
- package/package.json +2 -2
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import Collection = require('../util/Collection');
|
|
2
|
+
import Campaign = require('./Campaign');
|
|
3
|
+
import Promotion = require('./Promotion');
|
|
4
|
+
import PromotionPlan = require('./PromotionPlan');
|
|
5
|
+
import DiscountPlan = require('./DiscountPlan');
|
|
6
|
+
import LineItemCtnr = require('../order/LineItemCtnr');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* dw.campaign.PromotionMgr is used to access campaigns and promotion
|
|
10
|
+
* definitions, display active or upcoming promotions in a storefront, and to
|
|
11
|
+
* calculate and apply promotional discounts to line item containers.
|
|
12
|
+
*
|
|
13
|
+
* To access campaign and promotion definitions, use methods
|
|
14
|
+
* getCampaigns, getCampaign,
|
|
15
|
+
* getPromotions and getPromotion.
|
|
16
|
+
*
|
|
17
|
+
* To display active or upcoming promotions in the storefront, e.g. on product
|
|
18
|
+
* pages, various methods are provided. getActivePromotions returns
|
|
19
|
+
* a dw.campaign.PromotionPlan with all enabled promotions scheduled for now.
|
|
20
|
+
* getActiveCustomerPromotions returns a dw.campaign.PromotionPlan with
|
|
21
|
+
* all enabled promotions scheduled for now and applicable for the
|
|
22
|
+
* session currency, current customer and active source code.
|
|
23
|
+
* getUpcomingPromotions returns a dw.campaign.PromotionPlan with all
|
|
24
|
+
* promotions that are enabled, not scheduled for now, but scheduled for
|
|
25
|
+
* any time between now and now + previewTime(hours).
|
|
26
|
+
*
|
|
27
|
+
* Applying promotions to line item containers is a 3-step process, and
|
|
28
|
+
* dw.campaign.PromotionMgr provides methods supporting each of these steps.
|
|
29
|
+
* Convenience methods can be used that execute all three steps at once,
|
|
30
|
+
* or the steps can be executed individually if you need to customize
|
|
31
|
+
* the output of the steps due to specific business rules.
|
|
32
|
+
*
|
|
33
|
+
* - Step 1 - calculate active customer promotions: Determine the active
|
|
34
|
+
* promotions for the session currency, current customer, source code and redeemed coupons.
|
|
35
|
+
* - Step 2 - calculate applicable discounts: Based on the active promotions
|
|
36
|
+
* determined in step 1, applicable discounts are calculated.
|
|
37
|
+
* - Step 3 - apply discounts: applicable discounts are applied to a line
|
|
38
|
+
* item container by creating price adjustment line items.
|
|
39
|
+
*
|
|
40
|
+
* The simpliest way to execute steps 1-3 is to use method
|
|
41
|
+
* applyDiscounts. The method identifies all active
|
|
42
|
+
* customer promotions, calculates and applies applicable discounts.
|
|
43
|
+
*
|
|
44
|
+
* Due to specific business rules it might be necessary to manipulate
|
|
45
|
+
* the set of applicable discounts calculated by the promotion engine
|
|
46
|
+
* before applying them to the line item container. To implement such a scenario,
|
|
47
|
+
* you want to use method getDiscounts, which
|
|
48
|
+
* identifies all active customer promotions, and calculates and returns
|
|
49
|
+
* applicable discounts in an instance of dw.campaign.DiscountPlan. The discount
|
|
50
|
+
* plan contains a description for all applicable discounts for the specified line
|
|
51
|
+
* item container, and you can remove discounts from it if necessary.
|
|
52
|
+
* The customized discount plan can then be passed on for application by
|
|
53
|
+
* using method applyDiscounts.
|
|
54
|
+
*
|
|
55
|
+
* Due to specific business rules it might be necessary to manipulate the
|
|
56
|
+
* set of active customer promotions before calculating applicable discounts
|
|
57
|
+
* from it. For example, you might want to add promotions to the
|
|
58
|
+
* plan or remove promotions from it.
|
|
59
|
+
* You want to use method getActiveCustomerPromotions and
|
|
60
|
+
* getActiveCustomerPromotions, which
|
|
61
|
+
* identifies all active customer promotions and returns an instance of
|
|
62
|
+
* dw.campaign.PromotionPlan. You can add promotions to the promotion plan
|
|
63
|
+
* or remove promotions from the plan. The customized promotion plan can then be
|
|
64
|
+
* passed on to calculate applicable discounts by using method
|
|
65
|
+
* getDiscounts.
|
|
66
|
+
*/
|
|
67
|
+
declare class PromotionMgr {
|
|
68
|
+
/**
|
|
69
|
+
* Returns all promotions scheduled for now and applicable for the
|
|
70
|
+
* session currency, current customer, source code, or presented coupons.
|
|
71
|
+
*
|
|
72
|
+
* The active promotions are returned in an instance of
|
|
73
|
+
* dw.campaign.PromotionPlan. The promotion plan contains all
|
|
74
|
+
* promotions assigned to any customer group of the current customer, the
|
|
75
|
+
* current source code, or coupons in the current session basket.
|
|
76
|
+
* @see getActivePromotions
|
|
77
|
+
*/
|
|
78
|
+
static readonly activeCustomerPromotions: PromotionPlan;
|
|
79
|
+
/**
|
|
80
|
+
* Returns all promotions scheduled for now, and applicable for the
|
|
81
|
+
* session currency but regardless of current customer or source code.
|
|
82
|
+
*
|
|
83
|
+
* The active promotions are returned in an instance of dw.campaign.PromotionPlan.
|
|
84
|
+
* @see getActiveCustomerPromotions
|
|
85
|
+
*/
|
|
86
|
+
static readonly activePromotions: PromotionPlan;
|
|
87
|
+
/**
|
|
88
|
+
* Returns all campaigns of the current site in no specific order.
|
|
89
|
+
*/
|
|
90
|
+
static readonly campaigns: Collection<Campaign>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns all promotions of the current site in no specific order.
|
|
93
|
+
*/
|
|
94
|
+
static readonly promotions: Collection<Promotion>;
|
|
95
|
+
private constructor();
|
|
96
|
+
/**
|
|
97
|
+
* Identifies active promotions, calculates the applicable
|
|
98
|
+
* discounts from these promotions and applies these discounts to the
|
|
99
|
+
* specified line item container.
|
|
100
|
+
*
|
|
101
|
+
* As a result of this method, the specified line item container
|
|
102
|
+
* contains price adjustments and/or bonus product line items for
|
|
103
|
+
* all applicable discounts. The method also removes price
|
|
104
|
+
* adjustment and/or bonus product line items from the line item
|
|
105
|
+
* container if the related to promotions/discounts are no longer
|
|
106
|
+
* applicable.
|
|
107
|
+
*/
|
|
108
|
+
static applyDiscounts(lineItemCtnr: LineItemCtnr<any>): void;
|
|
109
|
+
/**
|
|
110
|
+
* Applies the discounts contained in the specified discount plan
|
|
111
|
+
* to the line item container associated with the discount
|
|
112
|
+
* plan.
|
|
113
|
+
*
|
|
114
|
+
* As a result of this method, the specified line item container
|
|
115
|
+
* contains price adjustments and/or bonus product line items for
|
|
116
|
+
* all discounts contained in the specified discount plan.
|
|
117
|
+
* The method also removes price adjustment and/or bonus product line items
|
|
118
|
+
* from the line item container if the specified discount plan does not
|
|
119
|
+
* contain the related discount.
|
|
120
|
+
*
|
|
121
|
+
* Note that the method does not evaluate if the discounts in the specified
|
|
122
|
+
* discount plan are applicable nor that the promotions related to these
|
|
123
|
+
* discounts are active.
|
|
124
|
+
* @see getDiscounts
|
|
125
|
+
* @see applyDiscounts
|
|
126
|
+
*/
|
|
127
|
+
static applyDiscounts(discountPlan: DiscountPlan): void;
|
|
128
|
+
/**
|
|
129
|
+
* Returns all promotions scheduled for now and applicable for the
|
|
130
|
+
* session currency, current customer, source code, or presented coupons.
|
|
131
|
+
*
|
|
132
|
+
* The active promotions are returned in an instance of
|
|
133
|
+
* dw.campaign.PromotionPlan. The promotion plan contains all
|
|
134
|
+
* promotions assigned to any customer group of the current customer, the
|
|
135
|
+
* current source code, or coupons in the current session basket.
|
|
136
|
+
* @see getActivePromotions
|
|
137
|
+
*/
|
|
138
|
+
static getActiveCustomerPromotions(): PromotionPlan;
|
|
139
|
+
/**
|
|
140
|
+
* Returns all promotions scheduled for now and applicable for the
|
|
141
|
+
* session currency, current customer, source code, or presented coupons.
|
|
142
|
+
*
|
|
143
|
+
* The active promotions are returned in an instance of
|
|
144
|
+
* dw.campaign.PromotionPlan. The promotion plan contains all
|
|
145
|
+
* promotions assigned to any customer group of the current customer, the
|
|
146
|
+
* current source code, or coupons in the current session basket.
|
|
147
|
+
*/
|
|
148
|
+
static getActiveCustomerPromotions(ignoreCouponCondition: boolean): PromotionPlan;
|
|
149
|
+
/**
|
|
150
|
+
* Returns all promotions assigned to the passed campaign, which are active
|
|
151
|
+
* at some point within the specified date range, and are applicable for the
|
|
152
|
+
* current customer, source code, or presented coupons. A promotion must be
|
|
153
|
+
* active for an actual time period within the passed date range, and not
|
|
154
|
+
* just a single point.
|
|
155
|
+
*
|
|
156
|
+
* The passed campaign and dates must not be null or an exception is thrown.
|
|
157
|
+
* It is valid for the from and to dates to be in the past. If an invalid
|
|
158
|
+
* time range is specified (i.e. from is after to), the returned
|
|
159
|
+
* PromotionPlan will be empty.
|
|
160
|
+
*/
|
|
161
|
+
static getActiveCustomerPromotionsForCampaign(campaign: Campaign | null, from: Date, to: Date): PromotionPlan | null;
|
|
162
|
+
/**
|
|
163
|
+
* Returns all promotions scheduled for now, and applicable for the
|
|
164
|
+
* session currency but regardless of current customer or source code.
|
|
165
|
+
*
|
|
166
|
+
* The active promotions are returned in an instance of dw.campaign.PromotionPlan.
|
|
167
|
+
* @see getActiveCustomerPromotions
|
|
168
|
+
*/
|
|
169
|
+
static getActivePromotions(): PromotionPlan;
|
|
170
|
+
/**
|
|
171
|
+
* Returns all promotions assigned to the passed campaign which are active
|
|
172
|
+
* at some point within the specified date range. A promotion must be active
|
|
173
|
+
* for an actual time period within the passed date range, and not just a
|
|
174
|
+
* single point. A promotion must be applicable for the session currency.
|
|
175
|
+
*
|
|
176
|
+
* This method considers only the enabled flags and time conditions of the
|
|
177
|
+
* promotion and campaign. It does not consider whether the current customer
|
|
178
|
+
* satisfies the qualifiers of the promotion (customer group, source code,
|
|
179
|
+
* or coupon).
|
|
180
|
+
*
|
|
181
|
+
* The passed campaign and dates must not be null or an exception is thrown.
|
|
182
|
+
* It is valid for the from and/or to dates to be in the past. If an invalid
|
|
183
|
+
* time range is specified (i.e. from is after to), the returned
|
|
184
|
+
* PromotionPlan will be empty.
|
|
185
|
+
*/
|
|
186
|
+
static getActivePromotionsForCampaign(campaign: Campaign, from: Date, to: Date): PromotionPlan | null;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the campaign identified by the specified ID.
|
|
189
|
+
*/
|
|
190
|
+
static getCampaign(id: string): Campaign | null;
|
|
191
|
+
/**
|
|
192
|
+
* Returns all campaigns of the current site in no specific order.
|
|
193
|
+
*/
|
|
194
|
+
static getCampaigns(): Collection<Campaign>;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the discounts applicable for the current customer, active
|
|
197
|
+
* source code and specified line item container.
|
|
198
|
+
*
|
|
199
|
+
* This method identifies all active promotions assigned to the customer
|
|
200
|
+
* groups of the current customer, the active source code and any coupon
|
|
201
|
+
* contained in the specified line item container, and calculates applicable
|
|
202
|
+
* discounts from these promotions.
|
|
203
|
+
*
|
|
204
|
+
* The applicable discounts are contained in the returned instance of
|
|
205
|
+
* dw.campaign.DiscountPlan.
|
|
206
|
+
*/
|
|
207
|
+
static getDiscounts(lineItemCtnr: LineItemCtnr<any>): DiscountPlan;
|
|
208
|
+
/**
|
|
209
|
+
* Returns the discounts applicable for the current customer, active
|
|
210
|
+
* source code and specified line item container, based on the specified
|
|
211
|
+
* promotion plan.
|
|
212
|
+
*
|
|
213
|
+
* This method calculates applicable discounts from the promotions in the
|
|
214
|
+
* specified promotion plan. Note that any promotion in the promotion
|
|
215
|
+
* plan that is inactive, or not applicable for the current customer
|
|
216
|
+
* or source code, is being ignored.
|
|
217
|
+
*
|
|
218
|
+
* The applicable discounts are contained in the returned instance of
|
|
219
|
+
* dw.campaign.DiscountPlan.
|
|
220
|
+
*/
|
|
221
|
+
static getDiscounts(lineItemCtnr: LineItemCtnr<any>, promotionPlan: PromotionPlan): DiscountPlan;
|
|
222
|
+
/**
|
|
223
|
+
* Returns the promotion identified by the specified ID. The same logical
|
|
224
|
+
* promotion may be assigned to multiple campaigns or AB-tests. In this
|
|
225
|
+
* case, the system returns the instance of highest rank. Some attributes of
|
|
226
|
+
* the returned Promotion may vary based on exactly which instance is
|
|
227
|
+
* returned. This method returns null if there is no promotion in the system
|
|
228
|
+
* with the given ID, or if a promotion with the given ID exists but it is
|
|
229
|
+
* not assigned to any campaign or AB-test.
|
|
230
|
+
*/
|
|
231
|
+
static getPromotion(id: string): Promotion | null;
|
|
232
|
+
/**
|
|
233
|
+
* Returns all promotions of the current site in no specific order.
|
|
234
|
+
*/
|
|
235
|
+
static getPromotions(): Collection<Promotion>;
|
|
236
|
+
/**
|
|
237
|
+
* Returns all promotions currently inactive, but scheduled
|
|
238
|
+
* for any time between now and now + previewTime(hours),
|
|
239
|
+
* and which are applicable based on the current customer, source code, and
|
|
240
|
+
* coupons in the current basket.
|
|
241
|
+
*
|
|
242
|
+
* The parameter previewTime specifies for how many hours promotions
|
|
243
|
+
* should be previewed.
|
|
244
|
+
* @see getActivePromotions
|
|
245
|
+
*/
|
|
246
|
+
static getUpcomingCustomerPromotions(previewTime: number): PromotionPlan;
|
|
247
|
+
/**
|
|
248
|
+
* Returns all promotions currently inactive, but scheduled
|
|
249
|
+
* for any time between now and now + previewTime(hours).
|
|
250
|
+
*
|
|
251
|
+
* The upcoming promotions are returned in an instance of
|
|
252
|
+
* dw.campaign.PromotionPlan and might not necessarily be applicable for
|
|
253
|
+
* the current customer or source code.
|
|
254
|
+
*
|
|
255
|
+
* The parameter previewTime specifies for how many hours promotions
|
|
256
|
+
* should be previewed.
|
|
257
|
+
* @see getActivePromotions
|
|
258
|
+
*/
|
|
259
|
+
static getUpcomingPromotions(previewTime: number): PromotionPlan;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export = PromotionMgr;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import Collection = require('../util/Collection');
|
|
2
|
+
import Promotion = require('./Promotion');
|
|
3
|
+
import Product = require('../catalog/Product');
|
|
4
|
+
import ShippingMethod = require('../order/ShippingMethod');
|
|
5
|
+
import PaymentMethod = require('../order/PaymentMethod');
|
|
6
|
+
import PaymentCard = require('../order/PaymentCard');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* PromotionPlan represents a set of dw.campaign.Promotion instances and
|
|
10
|
+
* is used to display active or upcoming promotions on storefront pages, or to
|
|
11
|
+
* pass it to the dw.campaign.PromotionMgr to calculate a
|
|
12
|
+
* dw.campaign.DiscountPlan and subsequently apply discounts to a line
|
|
13
|
+
* item container. Instances of the class are returned by the
|
|
14
|
+
* dw.campaign.PromotionMgr.getActivePromotions,
|
|
15
|
+
* dw.campaign.PromotionMgr.getActiveCustomerPromotions and
|
|
16
|
+
* dw.campaign.PromotionMgr.getUpcomingPromotions.
|
|
17
|
+
*
|
|
18
|
+
* PromotionPlan provides methods to access the promotions in the plan and to
|
|
19
|
+
* remove promotions from the plan. All methods which return a collection of
|
|
20
|
+
* promotions sort them by the following ordered criteria:
|
|
21
|
+
*
|
|
22
|
+
* - Exclusivity: GLOBAL exclusive promotions first, followed by CLASS
|
|
23
|
+
* exclusive promotions, and NO exclusive promotions last.
|
|
24
|
+
* - Rank: sorted ascending
|
|
25
|
+
* - Promotion Class: PRODUCT promotions first, followed by ORDER promotions,
|
|
26
|
+
* and SHIPPING promotions last.
|
|
27
|
+
* - Discount type: Fixed price promotions first, followed by free,
|
|
28
|
+
* amount-off, percentage-off, and bonus product promotions last.
|
|
29
|
+
* - Best discount: Sorted descending. For example, 30% off comes before 20%
|
|
30
|
+
* off.
|
|
31
|
+
* - ID: alphanumeric ascending.
|
|
32
|
+
* @see dw.campaign.PromotionMgr
|
|
33
|
+
*/
|
|
34
|
+
declare class PromotionPlan {
|
|
35
|
+
/**
|
|
36
|
+
* Constant indicating that a collection of promotions should be sorted
|
|
37
|
+
* first by exclusivity, then rank, promotion class, etc. See class-level
|
|
38
|
+
* javadoc for details. This is the default sort order for methods that
|
|
39
|
+
* return a collection of promotions.
|
|
40
|
+
*/
|
|
41
|
+
static readonly SORT_BY_EXCLUSIVITY = 1;
|
|
42
|
+
/**
|
|
43
|
+
* Constant indicating that a collection of promotions should be sorted by
|
|
44
|
+
* start date ascending. If there is no explicit start date for a promotion
|
|
45
|
+
* the start date of its containing Campaign or AB-test is used instead.
|
|
46
|
+
* Promotions without a start date are sorted before promotions with a start
|
|
47
|
+
* date in the future and after promotions with a start date in the past. In
|
|
48
|
+
* case two promotion assignments have the same start date, they are sorted
|
|
49
|
+
* by their ID.
|
|
50
|
+
*/
|
|
51
|
+
static readonly SORT_BY_START_DATE = 2;
|
|
52
|
+
/**
|
|
53
|
+
* Returns all order promotions contained in this plan.
|
|
54
|
+
*/
|
|
55
|
+
readonly orderPromotions: Collection<Promotion>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns all product promotions contained in this plan.
|
|
58
|
+
*/
|
|
59
|
+
readonly productPromotions: Collection<Promotion>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns all promotions contained in this plan sorted by exclusivity.
|
|
62
|
+
*/
|
|
63
|
+
readonly promotions: Collection<Promotion>;
|
|
64
|
+
/**
|
|
65
|
+
* Returns all shipping promotions contained in this plan.
|
|
66
|
+
*/
|
|
67
|
+
readonly shippingPromotions: Collection<Promotion>;
|
|
68
|
+
private constructor();
|
|
69
|
+
/**
|
|
70
|
+
* Returns all order promotions contained in this plan.
|
|
71
|
+
*/
|
|
72
|
+
getOrderPromotions(): Collection<Promotion>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns the order promotions explicitly associated to the specified
|
|
75
|
+
* discounted payment card.
|
|
76
|
+
*
|
|
77
|
+
* This method is usually used to display order promotions along with
|
|
78
|
+
* payment card choices.
|
|
79
|
+
*/
|
|
80
|
+
getPaymentCardPromotions(paymentCard: PaymentCard): Collection<Promotion>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the order promotions explicitly associated to the specified
|
|
83
|
+
* discounted payment method.
|
|
84
|
+
*
|
|
85
|
+
* This method is usually used to display order promotions along with
|
|
86
|
+
* payment method choices.
|
|
87
|
+
*/
|
|
88
|
+
getPaymentMethodPromotions(paymentMethod: PaymentMethod): Collection<Promotion>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns all product promotions contained in this plan.
|
|
91
|
+
*/
|
|
92
|
+
getProductPromotions(): Collection<Promotion>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns the promotions related to the specified product.
|
|
95
|
+
*
|
|
96
|
+
* The method returns all promotions where the product is either a
|
|
97
|
+
* qualifying product, or a discounted product, or both. It also returns
|
|
98
|
+
* promotions where the specified product is a bonus product.
|
|
99
|
+
*
|
|
100
|
+
* This method is usually used to display product promotions on a product
|
|
101
|
+
* details page.
|
|
102
|
+
*
|
|
103
|
+
* If a master product is passed, then this method will return promotions
|
|
104
|
+
* which are relevant for the master itself or at least one of its variants.
|
|
105
|
+
*/
|
|
106
|
+
getProductPromotions(product: Product<any>): Collection<Promotion>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the product promotions for which the specified product is a
|
|
109
|
+
* discounted (and possibly also a qualifying) product. It also returns
|
|
110
|
+
* promotions where the specified product is a bonus product.
|
|
111
|
+
*
|
|
112
|
+
* This method is usually used to display product promotions on a product
|
|
113
|
+
* details page when separate callout messages are defined depending on if
|
|
114
|
+
* the product is a qualifying or discounted product for the promotion.
|
|
115
|
+
*
|
|
116
|
+
* If a master product is passed, then this method will return promotions
|
|
117
|
+
* for which the master product itself or at least one of its product's
|
|
118
|
+
* variants is a discounted product.
|
|
119
|
+
*/
|
|
120
|
+
getProductPromotionsForDiscountedProduct(product: Product<any>): Collection<Promotion>;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the product promotions for which the specified product is a
|
|
123
|
+
* qualifying but NOT a discounted product.
|
|
124
|
+
*
|
|
125
|
+
* This method is usually used to display product promotions on a product
|
|
126
|
+
* details page when separate callout messages are defined depending on if
|
|
127
|
+
* the product is a qualifying or discounted product for the promotion.
|
|
128
|
+
*
|
|
129
|
+
* If a master product is passed, then this method will return promotions
|
|
130
|
+
* for which the master product itself or at least one of its product's
|
|
131
|
+
* variants is a qualifying product.
|
|
132
|
+
*/
|
|
133
|
+
getProductPromotionsForQualifyingProduct(product: Product<any>): Collection<Promotion>;
|
|
134
|
+
/**
|
|
135
|
+
* Returns all promotions contained in this plan sorted by exclusivity.
|
|
136
|
+
*/
|
|
137
|
+
getPromotions(): Collection<Promotion>;
|
|
138
|
+
/**
|
|
139
|
+
* Returns all promotions contained in this plan sorted according to the
|
|
140
|
+
* specified sort order. If the passed sort order is invalid, then the
|
|
141
|
+
* returned promotions will be sorted by exclusivity.
|
|
142
|
+
*/
|
|
143
|
+
getPromotions(sortOrder: number): Collection<Promotion>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns the promotions related to the specified product.
|
|
146
|
+
*
|
|
147
|
+
* The method returns all promotions where the product is either
|
|
148
|
+
* a qualifying product, or a discounted product, or both. It also
|
|
149
|
+
* returns promotions where the specified product is a bonus product.
|
|
150
|
+
*
|
|
151
|
+
* This method is usually used to display product promotions on a
|
|
152
|
+
* product details page.
|
|
153
|
+
* @deprecated Use getProductPromotions
|
|
154
|
+
*/
|
|
155
|
+
getPromotions(product: Product<any>): Collection<Promotion>;
|
|
156
|
+
/**
|
|
157
|
+
* Returns all shipping promotions contained in this plan.
|
|
158
|
+
*/
|
|
159
|
+
getShippingPromotions(): Collection<Promotion>;
|
|
160
|
+
/**
|
|
161
|
+
* Returns the shipping promotions related to the specified discounted
|
|
162
|
+
* shipping method, i.e. the returned promotions apply a discount on
|
|
163
|
+
* the specified shipping method.
|
|
164
|
+
*
|
|
165
|
+
* This method is usually used to display shipping promotions along with
|
|
166
|
+
* shipping methods.
|
|
167
|
+
*/
|
|
168
|
+
getShippingPromotions(shippingMethod: ShippingMethod): Collection<Promotion>;
|
|
169
|
+
/**
|
|
170
|
+
* Remove promotion from promotion plan.
|
|
171
|
+
*
|
|
172
|
+
* Please note that this is the only way to remove promotions from the
|
|
173
|
+
* plan, i.e. removing promotions from the collections returned
|
|
174
|
+
* by methods such as getProductPromotions has no effect
|
|
175
|
+
* on the promotion plan.
|
|
176
|
+
*/
|
|
177
|
+
removePromotion(promotion: Promotion): void;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export = PromotionPlan;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import MarkupText = require('../content/MarkupText');
|
|
2
|
+
import Collection = require('../util/Collection');
|
|
3
|
+
import utilMap = require('../util/Map');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Represents content for a slot.
|
|
7
|
+
*/
|
|
8
|
+
declare class SlotContent {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the callout message for the slot.
|
|
11
|
+
*/
|
|
12
|
+
readonly calloutMsg: MarkupText;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a collection of content based on the content type
|
|
15
|
+
* for the slot. The collection will include one of the following
|
|
16
|
+
* types: dw.catalog.Product, dw.content.Content, dw.catalog.Category, or dw.content.MarkupText.
|
|
17
|
+
*/
|
|
18
|
+
readonly content: Collection<any>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the custom attributes for the slot.
|
|
21
|
+
*/
|
|
22
|
+
readonly custom: utilMap<any, any>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the recommender name for slot configurations of type 'Recommendation'
|
|
25
|
+
*/
|
|
26
|
+
readonly recommenderName: string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the unique slot ID.
|
|
29
|
+
*/
|
|
30
|
+
readonly slotID: string;
|
|
31
|
+
private constructor();
|
|
32
|
+
/**
|
|
33
|
+
* Returns the callout message for the slot.
|
|
34
|
+
*/
|
|
35
|
+
getCalloutMsg(): MarkupText;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a collection of content based on the content type
|
|
38
|
+
* for the slot. The collection will include one of the following
|
|
39
|
+
* types: dw.catalog.Product, dw.content.Content, dw.catalog.Category, or dw.content.MarkupText.
|
|
40
|
+
*/
|
|
41
|
+
getContent(): Collection<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the custom attributes for the slot.
|
|
44
|
+
*/
|
|
45
|
+
getCustom(): utilMap<any, any>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the recommender name for slot configurations of type 'Recommendation'
|
|
48
|
+
*/
|
|
49
|
+
getRecommenderName(): string;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the unique slot ID.
|
|
52
|
+
*/
|
|
53
|
+
getSlotID(): string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export = SlotContent;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import ExtensibleObject = require('../object/ExtensibleObject');
|
|
2
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
3
|
+
import Collection = require('../util/Collection');
|
|
4
|
+
import PriceBook = require('../catalog/PriceBook');
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
module ICustomAttributes {
|
|
8
|
+
interface SourceCodeGroup extends CustomAttributes {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A source code group defines a collection of source codes. Source code groups
|
|
15
|
+
* are generally pattern based and any source code satisfying the pattern
|
|
16
|
+
* belongs to the group. In this way, merchants may define a large set of source
|
|
17
|
+
* codes which qualify a customer for site experiences (different prices, for
|
|
18
|
+
* example), which customers without that source code do not receive.
|
|
19
|
+
* The class dw.campaign.SourceCodeInfo represents an individual source
|
|
20
|
+
* code.
|
|
21
|
+
*/
|
|
22
|
+
declare class SourceCodeGroup extends ExtensibleObject<ICustomAttributes.SourceCodeGroup> {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the SourceCodeGroup.
|
|
25
|
+
*/
|
|
26
|
+
readonly ID: string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a Collection of PriceBooks the SourceCodeGroup is assigned to.
|
|
29
|
+
*/
|
|
30
|
+
readonly priceBooks: Collection<PriceBook>;
|
|
31
|
+
private constructor();
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the SourceCodeGroup.
|
|
34
|
+
*/
|
|
35
|
+
getID(): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a Collection of PriceBooks the SourceCodeGroup is assigned to.
|
|
38
|
+
*/
|
|
39
|
+
getPriceBooks(): Collection<PriceBook>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export = SourceCodeGroup;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import SourceCodeGroup = require('./SourceCodeGroup');
|
|
2
|
+
import URLRedirect = require('../web/URLRedirect');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Class representing a code (i.e. a "source code") that has been applied to a
|
|
6
|
+
* customer's session. Source codes can qualify customers for different
|
|
7
|
+
* campaigns, promotions, and other site experiences from those that the typical
|
|
8
|
+
* customer sees. Codes are organized into source code groups.
|
|
9
|
+
*
|
|
10
|
+
* Typically, a code is applied to a customer's session automatically by
|
|
11
|
+
* Commerce Cloud Digital when a customer accesses a Digital URL with a well
|
|
12
|
+
* known request parameter in the querystring. A code may also be explicitly
|
|
13
|
+
* applied to a customer session using the `SetSourceCode`
|
|
14
|
+
* pipelet.
|
|
15
|
+
*/
|
|
16
|
+
declare class SourceCodeInfo {
|
|
17
|
+
/**
|
|
18
|
+
* The literal source-code is found and currently active.
|
|
19
|
+
*/
|
|
20
|
+
static readonly STATUS_ACTIVE = 2;
|
|
21
|
+
/**
|
|
22
|
+
* The literal source-code is found but not active.
|
|
23
|
+
*/
|
|
24
|
+
static readonly STATUS_INACTIVE = 1;
|
|
25
|
+
/**
|
|
26
|
+
* The literal source-code is not found in the system.
|
|
27
|
+
*/
|
|
28
|
+
static readonly STATUS_INVALID = 0;
|
|
29
|
+
/**
|
|
30
|
+
* The literal source-code.
|
|
31
|
+
*/
|
|
32
|
+
readonly code: string;
|
|
33
|
+
/**
|
|
34
|
+
* The associated source-code group.
|
|
35
|
+
*/
|
|
36
|
+
readonly group: SourceCodeGroup;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the redirect information from the last processed SourceCodeGroup (active or inactive). If none exists,
|
|
39
|
+
* then the redirect information is retrieved from the source-code preferences, based on the active/inactive status
|
|
40
|
+
* of the SourceCodeGroup. The redirect information is then resolved to the output URL. If the redirect information
|
|
41
|
+
* cannot be resolved to a URL, or there is an error retrieving the preferences, then null is returned.
|
|
42
|
+
*/
|
|
43
|
+
readonly redirect: URLRedirect | null;
|
|
44
|
+
/**
|
|
45
|
+
* The status of the source-code. One of the following:
|
|
46
|
+
* STATUS_INVALID - The source code is not found in the system.
|
|
47
|
+
* STATUS_INACTIVE - The source code is found but not active.
|
|
48
|
+
* STATUS_INACTIVE - The source code is found and active.
|
|
49
|
+
*/
|
|
50
|
+
readonly status: number;
|
|
51
|
+
private constructor();
|
|
52
|
+
/**
|
|
53
|
+
* The literal source-code.
|
|
54
|
+
*/
|
|
55
|
+
getCode(): string;
|
|
56
|
+
/**
|
|
57
|
+
* The associated source-code group.
|
|
58
|
+
*/
|
|
59
|
+
getGroup(): SourceCodeGroup;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves the redirect information from the last processed SourceCodeGroup (active or inactive). If none exists,
|
|
62
|
+
* then the redirect information is retrieved from the source-code preferences, based on the active/inactive status
|
|
63
|
+
* of the SourceCodeGroup. The redirect information is then resolved to the output URL. If the redirect information
|
|
64
|
+
* cannot be resolved to a URL, or there is an error retrieving the preferences, then null is returned.
|
|
65
|
+
*/
|
|
66
|
+
getRedirect(): URLRedirect | null;
|
|
67
|
+
/**
|
|
68
|
+
* The status of the source-code. One of the following:
|
|
69
|
+
* STATUS_INVALID - The source code is not found in the system.
|
|
70
|
+
* STATUS_INACTIVE - The source code is found but not active.
|
|
71
|
+
* STATUS_INACTIVE - The source code is found and active.
|
|
72
|
+
*/
|
|
73
|
+
getStatus(): number;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export = SourceCodeInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper class which contains error result codes returned by the SetSourceCode
|
|
3
|
+
* pipelet.
|
|
4
|
+
*/
|
|
5
|
+
declare class SourceCodeStatusCodes {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates that the specified source code was found in one or more
|
|
8
|
+
* source-code groups, none of which are active.
|
|
9
|
+
*/
|
|
10
|
+
static readonly CODE_INACTIVE = "CODE_INACTIVE";
|
|
11
|
+
/**
|
|
12
|
+
* Indicates that the specified source code is not contained
|
|
13
|
+
* in any source-code group.
|
|
14
|
+
*/
|
|
15
|
+
static readonly CODE_INVALID = "CODE_INVALID";
|
|
16
|
+
private constructor();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export = SourceCodeStatusCodes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Discount = require('./Discount');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents a total fix price discount on a group of products in the
|
|
5
|
+
* discount plan. For example: "buy 3 products of type X for a total price
|
|
6
|
+
* of $29.99".
|
|
7
|
+
*/
|
|
8
|
+
declare class TotalFixedPriceDiscount extends Discount {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the total fixed price amount.
|
|
11
|
+
*/
|
|
12
|
+
readonly totalFixedPrice: number;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Returns the total fixed price amount.
|
|
16
|
+
*/
|
|
17
|
+
getTotalFixedPrice(): number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export = TotalFixedPriceDiscount;
|