@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,50 @@
|
|
|
1
|
+
import Status = require('./Status');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This class represents all script hooks that can be registered to receive notifications about storefront requests.
|
|
5
|
+
* It contains the extension points (hook names), and the functions that are called by each extension point.
|
|
6
|
+
* A function must be defined inside a JavaScript source and must be exported.
|
|
7
|
+
* The script with the exported hook function must be located inside a site cartridge.
|
|
8
|
+
* Inside the site cartridge a 'package.json' file with a 'hooks' entry must exist.
|
|
9
|
+
*
|
|
10
|
+
* ```
|
|
11
|
+
* "hooks": "./hooks.json"
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* The hooks entry links to a json file, relative to the 'package.json' file.
|
|
15
|
+
* This file lists all registered hooks inside the hooks property:
|
|
16
|
+
*
|
|
17
|
+
* ```
|
|
18
|
+
* "hooks": [
|
|
19
|
+
* {"name": "dw.system.request.onSession", "script": "./script.js"},
|
|
20
|
+
* {"name": "dw.system.request.onRequest", "script": "./script.js"},
|
|
21
|
+
* ]
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* A hook entry has a 'name' and a 'script' property.
|
|
25
|
+
*
|
|
26
|
+
* - The 'name' contains the extension point, the hook name.
|
|
27
|
+
* - The 'script' contains the script relative to the hooks file, with the exported hook function.
|
|
28
|
+
*/
|
|
29
|
+
declare interface RequestHooks {
|
|
30
|
+
/**
|
|
31
|
+
* The extension point name extensionPointOnRequest.
|
|
32
|
+
*/
|
|
33
|
+
readonly extensionPointOnRequest: "dw.system.request.onRequest";
|
|
34
|
+
/**
|
|
35
|
+
* The extension point name extensionPointOnSession.
|
|
36
|
+
*/
|
|
37
|
+
readonly extensionPointOnSession: "dw.system.request.onSession";
|
|
38
|
+
/**
|
|
39
|
+
* The function is called by extension point extensionPointOnRequest.
|
|
40
|
+
* It is called when a storefront request was received from the client.
|
|
41
|
+
*/
|
|
42
|
+
onRequest(): Status;
|
|
43
|
+
/**
|
|
44
|
+
* The function is called by extension point extensionPointOnSession.
|
|
45
|
+
* It is called when a new storefront session was started.
|
|
46
|
+
*/
|
|
47
|
+
onSession(): Status;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export = RequestHooks;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Response.d.ts
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import Cookie = require('../web/Cookie');
|
|
2
|
+
import URL = require('../web/URL');
|
|
3
|
+
import URLRedirect = require('../web/URLRedirect');
|
|
4
|
+
import PrintWriter = require('../io/PrintWriter');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Represents an HTTP response in Commerce Cloud Digital. An instance of this class is implicitly available within
|
|
8
|
+
* Digital script under the variable "response". The Response object can be used to set cookies and specific HTTP
|
|
9
|
+
* headers, for directly accessing the output stream or for sending redirects.
|
|
10
|
+
*/
|
|
11
|
+
declare class Response {
|
|
12
|
+
/**
|
|
13
|
+
* An allowed header name constant for Access-Control-Allow-Credentials
|
|
14
|
+
*/
|
|
15
|
+
static readonly ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";
|
|
16
|
+
/**
|
|
17
|
+
* An allowed header name constant for Access-Control-Allow-Headers
|
|
18
|
+
*/
|
|
19
|
+
static readonly ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers";
|
|
20
|
+
/**
|
|
21
|
+
* An allowed header name constant for Access-Control-Allow-Methods
|
|
22
|
+
*/
|
|
23
|
+
static readonly ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";
|
|
24
|
+
/**
|
|
25
|
+
* An allowed header name constant for Access-Control-Allow-Origin
|
|
26
|
+
*/
|
|
27
|
+
static readonly ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";
|
|
28
|
+
/**
|
|
29
|
+
* An allowed header name constant for Access-Control-Expose-Headers
|
|
30
|
+
*/
|
|
31
|
+
static readonly ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";
|
|
32
|
+
/**
|
|
33
|
+
* An allowed header name constant for Allow
|
|
34
|
+
*/
|
|
35
|
+
static readonly ALLOW = "Allow";
|
|
36
|
+
/**
|
|
37
|
+
* An allowed header name constant for Content-Disposition
|
|
38
|
+
*/
|
|
39
|
+
static readonly CONTENT_DISPOSITION = "Content-Disposition";
|
|
40
|
+
/**
|
|
41
|
+
* An allowed header name constant for Content-Language
|
|
42
|
+
*/
|
|
43
|
+
static readonly CONTENT_LANGUAGE = "Content-Language";
|
|
44
|
+
/**
|
|
45
|
+
* An allowed header name constant for Content-Location
|
|
46
|
+
*/
|
|
47
|
+
static readonly CONTENT_LOCATION = "Content-Location";
|
|
48
|
+
/**
|
|
49
|
+
* An allowed header name constant for Content-MD5
|
|
50
|
+
*/
|
|
51
|
+
static readonly CONTENT_MD5 = "Content-MD5";
|
|
52
|
+
/**
|
|
53
|
+
* An allowed header name constant for Content-Security-Policy.
|
|
54
|
+
*
|
|
55
|
+
* Note: The Commerce Cloud platform can override this header for tools like the Storefront Toolkit.
|
|
56
|
+
*/
|
|
57
|
+
static readonly CONTENT_SECURITY_POLICY = "Content-Security-Policy";
|
|
58
|
+
/**
|
|
59
|
+
* An allowed header name constant for Content-Security-Policy-Report-Only.
|
|
60
|
+
*
|
|
61
|
+
* You can set this response header only for storefront requests. Report recipient can't be a B2C Commerce system.
|
|
62
|
+
*/
|
|
63
|
+
static readonly CONTENT_SECURITY_POLICY_REPORT_ONLY = "Content-Security-Policy-Report-Only";
|
|
64
|
+
/**
|
|
65
|
+
* An allowed header name constant for Content-Type
|
|
66
|
+
*/
|
|
67
|
+
static readonly CONTENT_TYPE = "Content-Type";
|
|
68
|
+
/**
|
|
69
|
+
* An allowed header name constant for Cross-Origin-Embedder-Policy
|
|
70
|
+
*/
|
|
71
|
+
static readonly CROSS_ORIGIN_EMBEDDER_POLICY = "Cross-Origin-Embedder-Policy";
|
|
72
|
+
/**
|
|
73
|
+
* An allowed header name constant for Cross-Origin-Embedder-Policy-Report-Only.
|
|
74
|
+
*
|
|
75
|
+
* You can set this response header only for storefront requests. Report recipient can't be a B2C Commerce system.
|
|
76
|
+
*/
|
|
77
|
+
static readonly CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY = "Cross-Origin-Embedder-Policy-Report-Only";
|
|
78
|
+
/**
|
|
79
|
+
* An allowed header name constant for Cross-Origin-Opener-Policy
|
|
80
|
+
*/
|
|
81
|
+
static readonly CROSS_ORIGIN_OPENER_POLICY = "Cross-Origin-Opener-Policy";
|
|
82
|
+
/**
|
|
83
|
+
* An allowed header name constant for Cross-Origin-Opener-Policy-Report-Only.
|
|
84
|
+
*
|
|
85
|
+
* You can set this response header only for storefront requests. Report recipient can't be a B2C Commerce system.
|
|
86
|
+
*/
|
|
87
|
+
static readonly CROSS_ORIGIN_OPENER_POLICY_REPORT_ONLY = "Cross-Origin-Opener-Policy-Report-Only";
|
|
88
|
+
/**
|
|
89
|
+
* An allowed header name constant for Cross-Origin-Resource-Policy
|
|
90
|
+
*/
|
|
91
|
+
static readonly CROSS_ORIGIN_RESOURCE_POLICY = "Cross-Origin-Resource-Policy";
|
|
92
|
+
/**
|
|
93
|
+
* An allowed header name constant for Link
|
|
94
|
+
*/
|
|
95
|
+
static readonly LINK = "Link";
|
|
96
|
+
/**
|
|
97
|
+
* An allowed header name constant for Location
|
|
98
|
+
*/
|
|
99
|
+
static readonly LOCATION = "Location";
|
|
100
|
+
/**
|
|
101
|
+
* An allowed header name constant for Permissions-Policy
|
|
102
|
+
*/
|
|
103
|
+
static readonly PERMISSIONS_POLICY = "Permissions-Policy";
|
|
104
|
+
/**
|
|
105
|
+
* An allowed header name constant for Platform for Privacy Preferences Project
|
|
106
|
+
*/
|
|
107
|
+
static readonly PLATFORM_FOR_PRIVACY_PREFERENCES_PROJECT = "P3P";
|
|
108
|
+
/**
|
|
109
|
+
* An allowed header name constant for Referrer-Policy
|
|
110
|
+
*/
|
|
111
|
+
static readonly REFERRER_POLICY = "Referrer-Policy";
|
|
112
|
+
/**
|
|
113
|
+
* An allowed header name constant for Refresh
|
|
114
|
+
*/
|
|
115
|
+
static readonly REFRESH = "Refresh";
|
|
116
|
+
/**
|
|
117
|
+
* An allowed header name constant for Retry-After
|
|
118
|
+
*/
|
|
119
|
+
static readonly RETRY_AFTER = "Retry-After";
|
|
120
|
+
/**
|
|
121
|
+
* An allowed header name constant for service-worker-allowed
|
|
122
|
+
*/
|
|
123
|
+
static readonly SERVICE_WORKER_ALLOWED = "service-worker-allowed";
|
|
124
|
+
/**
|
|
125
|
+
* An allowed header name constant for Vary
|
|
126
|
+
*/
|
|
127
|
+
static readonly VARY = "Vary";
|
|
128
|
+
/**
|
|
129
|
+
* An allowed header name constant for X-Content-Type-Options
|
|
130
|
+
*/
|
|
131
|
+
static readonly X_CONTENT_TYPE_OPTIONS = "X-Content-Type-Options";
|
|
132
|
+
/**
|
|
133
|
+
* An allowed header name constant for X-FRAME-OPTIONS.
|
|
134
|
+
*
|
|
135
|
+
* Note: The Commerce Cloud platform can override this header for tools like the Storefront Toolkit.
|
|
136
|
+
*/
|
|
137
|
+
static readonly X_FRAME_OPTIONS = "X-FRAME-OPTIONS";
|
|
138
|
+
/**
|
|
139
|
+
* An allowed value ALLOW-FROM for X-FRAME-OPTIONS
|
|
140
|
+
*/
|
|
141
|
+
static readonly X_FRAME_OPTIONS_ALLOW_FROM = "ALLOW-FROM";
|
|
142
|
+
/**
|
|
143
|
+
* An allowed value DENY for X-FRAME-OPTIONS
|
|
144
|
+
*/
|
|
145
|
+
static readonly X_FRAME_OPTIONS_DENY_VALUE = "DENY";
|
|
146
|
+
/**
|
|
147
|
+
* An allowed value SAME-ORIGIN value for X-FRAME-OPTIONS
|
|
148
|
+
*/
|
|
149
|
+
static readonly X_FRAME_OPTIONS_SAMEORIGIN_VALUE = "SAMEORIGIN";
|
|
150
|
+
/**
|
|
151
|
+
* An allowed header name constant for X-Robots-Tag
|
|
152
|
+
*/
|
|
153
|
+
static readonly X_ROBOTS_TAG = "X-Robots-Tag";
|
|
154
|
+
/**
|
|
155
|
+
* An allowed header name constant for X-XSS-Protection
|
|
156
|
+
*/
|
|
157
|
+
static readonly X_XSS_PROTECTION = "X-XSS-Protection";
|
|
158
|
+
/**
|
|
159
|
+
* Returns a print writer which can be used to print content directly to the response.
|
|
160
|
+
*/
|
|
161
|
+
readonly writer: PrintWriter;
|
|
162
|
+
private constructor();
|
|
163
|
+
/**
|
|
164
|
+
* Adds the specified cookie to the outgoing response. This method can be called multiple times to set more than one
|
|
165
|
+
* cookie. If a cookie with the same cookie name, domain and path is set multiple times for the same response, only
|
|
166
|
+
* the last set cookie with this name is sent to the client. This method can be used to set, update or delete
|
|
167
|
+
* cookies at the client. If the cookie doesn't exist at the client, it is set initially. If a cookie with the same
|
|
168
|
+
* name, domain and path already exists at the client, it is updated. A cookie can be deleted at the client by
|
|
169
|
+
* submitting a cookie with the maxAge attribute set to 0 (see `Cookie.setMaxAge()
|
|
170
|
+
* ` for more information).
|
|
171
|
+
*
|
|
172
|
+
* ```
|
|
173
|
+
* Example, how a cookie can be deleted at the client:
|
|
174
|
+
*
|
|
175
|
+
* var cookie : Cookie = new Cookie("SomeName", "Simple Value");
|
|
176
|
+
*
|
|
177
|
+
* cookie.setMaxAge(0);
|
|
178
|
+
*
|
|
179
|
+
* response.addHttpCookie(cookie);
|
|
180
|
+
*
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* You can't set a cookie's SameSite attribute using the API. The server sets SameSite to None if either the
|
|
184
|
+
* developer sets the cookie's Secure flag or the global security preference Enforce HTTPS is enabled, in which case
|
|
185
|
+
* the Secure flag is also set. Otherwise, the server doesn't set the SameSite attribute and the browser uses its
|
|
186
|
+
* own default SameSite setting. The SameSite attribute is not sent with a cookie if the server detects that the
|
|
187
|
+
* client doesn't correctly interpret the attribute.
|
|
188
|
+
*/
|
|
189
|
+
addHttpCookie(cookie: Cookie): void;
|
|
190
|
+
/**
|
|
191
|
+
* Adds a response header with the given name and value. This method allows response headers to have multiple
|
|
192
|
+
* values.
|
|
193
|
+
*
|
|
194
|
+
* For public headers, only the names listed in the "Constants" section are allowed. Custom header names must begin
|
|
195
|
+
* with the prefix "X-SF-CC-" and can contain only alphanumeric characters, dash, and underscore.
|
|
196
|
+
*/
|
|
197
|
+
addHttpHeader(name: string, value: string): void;
|
|
198
|
+
/**
|
|
199
|
+
* Checks whether the response message header has a field with the specified name.
|
|
200
|
+
*/
|
|
201
|
+
containsHttpHeader(name: string): boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Returns a print writer which can be used to print content directly to the response.
|
|
204
|
+
*/
|
|
205
|
+
getWriter(): PrintWriter;
|
|
206
|
+
/**
|
|
207
|
+
* Sends a temporary redirect response (HTTP status 302) to the client for the specified redirect location URL.
|
|
208
|
+
*/
|
|
209
|
+
redirect(url: URL): void;
|
|
210
|
+
/**
|
|
211
|
+
* Sends a redirect response with the given status to the client for the specified redirect location URL.
|
|
212
|
+
*/
|
|
213
|
+
redirect(url: URL, status: number): void;
|
|
214
|
+
/**
|
|
215
|
+
* Sends a temporary redirect response (HTTP status 302) to the client for the specified redirect location URL. The
|
|
216
|
+
* target location must be a relative or an absolute URL.
|
|
217
|
+
*/
|
|
218
|
+
redirect(location: string): void;
|
|
219
|
+
/**
|
|
220
|
+
* Sends a redirect response with the given status to the client for the specified redirect location URL.
|
|
221
|
+
*/
|
|
222
|
+
redirect(location: string, status: number): void;
|
|
223
|
+
/**
|
|
224
|
+
* Sends a redirect response with the given status to the client for the specified redirect location URL.
|
|
225
|
+
*/
|
|
226
|
+
redirect(redirect: URLRedirect): void;
|
|
227
|
+
/**
|
|
228
|
+
* Sets whether the output should be buffered or streamed directly to the client. By default, buffering is enabled.
|
|
229
|
+
* The mode can only be changed before anything has been written to the response. Switching buffering off and using
|
|
230
|
+
* streaming mode is recommended for sending large responses.
|
|
231
|
+
*/
|
|
232
|
+
setBuffered(buffered: boolean): void;
|
|
233
|
+
/**
|
|
234
|
+
* Sets the content type for this response. This method may only be called before any output is written to the
|
|
235
|
+
* response.
|
|
236
|
+
*/
|
|
237
|
+
setContentType(contentType: string): void;
|
|
238
|
+
/**
|
|
239
|
+
* Sets the cache expiration time for the response. The response will only be cached if caching was not disabled
|
|
240
|
+
* previously. By default, responses are not cached. This method can be called multiple times during request
|
|
241
|
+
* processing. If caching is enabled, the lowest expiration time, resulting from the invocations of the method
|
|
242
|
+
* becomes the cache expiration time. This is only used for HTTP requests. Streamed responses cannot be cached. This
|
|
243
|
+
* method is an alternative for setting the cache time using the <iscache> tag in ISML templates.
|
|
244
|
+
*/
|
|
245
|
+
setExpires(expires: number): void;
|
|
246
|
+
/**
|
|
247
|
+
* Convenience method for setExpires which takes a Date object.
|
|
248
|
+
*/
|
|
249
|
+
setExpires(expires: Date): void;
|
|
250
|
+
/**
|
|
251
|
+
* Adds a response header with the given name and value. If one or more value(s) have already been set, the new
|
|
252
|
+
* value overwrites the previous one. The containsHttpHeader method can be used to test for the
|
|
253
|
+
* presence of a header before setting its value.
|
|
254
|
+
*
|
|
255
|
+
* For public headers, only the names listed in the "Constants" section are allowed. Custom header names must begin
|
|
256
|
+
* with the prefix "X-SF-CC-" and can contain only alphanumeric characters, dash, and underscore.
|
|
257
|
+
*/
|
|
258
|
+
setHttpHeader(name: string, value: string): void;
|
|
259
|
+
/**
|
|
260
|
+
* Sets the HTTP response code.
|
|
261
|
+
*/
|
|
262
|
+
setStatus(status: number): void;
|
|
263
|
+
/**
|
|
264
|
+
* Marks the response as personalized with the given variant identifier. Commerce Cloud Digital identifies unique
|
|
265
|
+
* pages based on a combination of pricebook, promotion, sorting rule and A/B test segments, caches the different
|
|
266
|
+
* variants of the page, and then delivers the correct version to the user. If a page is personalized by means other
|
|
267
|
+
* than pricebook, promotion, sorting rule and A/B test, the page must not be cached, because the wrong variants of
|
|
268
|
+
* the page would be delivered to the user. For performance reasons, a page should only be marked as personalized if
|
|
269
|
+
* it really is. Otherwise, the performance can unnecessarily degrade.
|
|
270
|
+
*
|
|
271
|
+
* This method has the same effect as using <iscache varyby="price_promotion" /> tag in an ISML template. Once
|
|
272
|
+
* the vary-by value was set, either using this method or by the <iscache> tag in a template, the entire
|
|
273
|
+
* response is treated as personalized.
|
|
274
|
+
*/
|
|
275
|
+
setVaryBy(varyBy: string): void;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export = Response;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A SearchStatus is used for communicating a Search API status back to a client. A status consists of status code and
|
|
3
|
+
* description. More information about search API call can be fetched by using SearchStatus class method getStatusCode
|
|
4
|
+
* and getDescription, which can be used by clients to perform different operations.
|
|
5
|
+
*/
|
|
6
|
+
declare class SearchStatus {
|
|
7
|
+
/**
|
|
8
|
+
* EMPTY_QUERY search result status code 6, this indicates that search has been made with empty query.
|
|
9
|
+
*/
|
|
10
|
+
static readonly EMPTY_QUERY: number;
|
|
11
|
+
/**
|
|
12
|
+
* ERROR search result status code 9, this indicates that internal server error has been occurred.
|
|
13
|
+
*/
|
|
14
|
+
static readonly ERROR: number;
|
|
15
|
+
/**
|
|
16
|
+
* LIMITED search result status code 2, this indicates that limitations on search result have been applied and
|
|
17
|
+
* full search result is not returned.
|
|
18
|
+
*/
|
|
19
|
+
static readonly LIMITED: number;
|
|
20
|
+
/**
|
|
21
|
+
* NOT_EXECUTED search result status code 0, this indicates that search API call has not been made on SearchModel.
|
|
22
|
+
*/
|
|
23
|
+
static readonly NOT_EXECUTED: number;
|
|
24
|
+
/**
|
|
25
|
+
* NO_CATALOG search result status code 4, this indicates that there is no catalog associated for search query.
|
|
26
|
+
*/
|
|
27
|
+
static readonly NO_CATALOG: number;
|
|
28
|
+
/**
|
|
29
|
+
* NO_CATEGORY search result status code 5, this indicates that there is no category associated for search query.
|
|
30
|
+
*/
|
|
31
|
+
static readonly NO_CATEGORY: number;
|
|
32
|
+
/**
|
|
33
|
+
* NO_INDEX search result status code 8, this indicates that there is no active search index available.
|
|
34
|
+
*/
|
|
35
|
+
static readonly NO_INDEX: number;
|
|
36
|
+
/**
|
|
37
|
+
* OFFLINE_CATEGORY search result status code 7, this indicates that the category associated with search query
|
|
38
|
+
* is offline.
|
|
39
|
+
*/
|
|
40
|
+
static readonly OFFLINE_CATEGORY: number;
|
|
41
|
+
/**
|
|
42
|
+
* ROOT_SEARCH search result status code 3, this indicates that search result is returned for ROOT search.
|
|
43
|
+
*/
|
|
44
|
+
static readonly ROOT_SEARCH: number;
|
|
45
|
+
/**
|
|
46
|
+
* SUCCESSFUL search result status code 1, this indicates that search API call is executed without any issue.
|
|
47
|
+
*/
|
|
48
|
+
static readonly SUCCESSFUL: number;
|
|
49
|
+
/**
|
|
50
|
+
* Returns status code description of search result, it provides more details about search API call status.
|
|
51
|
+
*/
|
|
52
|
+
readonly description: string;
|
|
53
|
+
/**
|
|
54
|
+
* Returns status code of search result, by default it will return 0 which means that search has not been executed
|
|
55
|
+
* on SearchModel.
|
|
56
|
+
*/
|
|
57
|
+
readonly statusCode: number;
|
|
58
|
+
private constructor();
|
|
59
|
+
/**
|
|
60
|
+
* Returns status code description of search result, it provides more details about search API call status.
|
|
61
|
+
*/
|
|
62
|
+
getDescription(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Returns status code of search result, by default it will return 0 which means that search has not been executed
|
|
65
|
+
* on SearchModel.
|
|
66
|
+
*/
|
|
67
|
+
getStatusCode(): number;
|
|
68
|
+
/**
|
|
69
|
+
* Returns string values of status code and description.
|
|
70
|
+
*/
|
|
71
|
+
toString(): string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export = SearchStatus;
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Session.d.ts
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import Customer = require('../customer/Customer');
|
|
2
|
+
import Currency = require('../util/Currency');
|
|
3
|
+
import ClickStream = require('../web/ClickStream');
|
|
4
|
+
import CustomAttributes = require('../object/CustomAttributes');
|
|
5
|
+
import SourceCodeInfo = require('../campaign/SourceCodeInfo');
|
|
6
|
+
import Forms = require('../web/Forms');
|
|
7
|
+
import Status = require('./Status');
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Represents a session in B2C Commerce. The session has some well-defined
|
|
11
|
+
* attributes like the current authenticated customer or the click stream, but also
|
|
12
|
+
* supports storing custom values in the session.
|
|
13
|
+
*
|
|
14
|
+
* The Digital session handling works in the following way:
|
|
15
|
+
*
|
|
16
|
+
* -
|
|
17
|
+
* A session is created in Digital on the first user click. This is guaranteed even if
|
|
18
|
+
* B2C Commerce caches the HTML pages. It is not guaranteed when the pages are cached by a CDN.
|
|
19
|
+
*
|
|
20
|
+
* -
|
|
21
|
+
* A session is identified with a unique ID, called the session ID.
|
|
22
|
+
*
|
|
23
|
+
* -
|
|
24
|
+
* When a session is created, the application server calls the pipeline OnSession-Start. It can
|
|
25
|
+
* be used to pre-initialize the session, before the actual request hits the server.
|
|
26
|
+
*
|
|
27
|
+
* -
|
|
28
|
+
* Digital uses session stickiness and always routes requests within a single session to the same
|
|
29
|
+
* application server.
|
|
30
|
+
*
|
|
31
|
+
* -
|
|
32
|
+
* Session data is also stored in a persistent location.
|
|
33
|
+
*
|
|
34
|
+
* -
|
|
35
|
+
* In case of a fail-over situation, requests are re-routed to another application server, which then
|
|
36
|
+
* loads the session data from the persistent storage.
|
|
37
|
+
*
|
|
38
|
+
* -
|
|
39
|
+
* There are two session timeouts. A soft timeout occurs 30 minutes after the last request has been made.
|
|
40
|
+
* The soft timeout logs out and clears all privacy data, but it is still possible to use the session ID
|
|
41
|
+
* to reopen the session. A hard timeout renders a session ID invalid after six hours, even if the session
|
|
42
|
+
* is still in use. The hard timeout prevents a session from being reopened. For example, if the session ID
|
|
43
|
+
* is pasted into a URL after the hard timeout, the session doesn't reopen.
|
|
44
|
+
*
|
|
45
|
+
* Certain rules apply for what and how much data can be stored in a session:
|
|
46
|
+
*
|
|
47
|
+
* -
|
|
48
|
+
* All primitive types (boolean, number, string, Number, String, Boolean, Date) are supported.
|
|
49
|
+
*
|
|
50
|
+
* -
|
|
51
|
+
* All B2C Commerce value types (Money, Quantity, Decimal, Calendar) are supported.
|
|
52
|
+
*
|
|
53
|
+
* -
|
|
54
|
+
* Strings are limited to 2000 characters.
|
|
55
|
+
*
|
|
56
|
+
* -
|
|
57
|
+
* No other types can be stored in a session. In particular, persistent objects,
|
|
58
|
+
* collections, and scripted objects cannot be stored in a session. B2C Commerce
|
|
59
|
+
* will report unsupported values with a deprecation message in the log files.
|
|
60
|
+
* An unsupported value will be stored in the session, but the results are undefined.
|
|
61
|
+
* Since version compatibility mode 19.10 unsupported types will no longer be accepted,
|
|
62
|
+
* and an exception will be thrown.
|
|
63
|
+
*
|
|
64
|
+
* -
|
|
65
|
+
* There is a 10 KB size limit for the overall serialized session.
|
|
66
|
+
*/
|
|
67
|
+
declare class Session {
|
|
68
|
+
/**
|
|
69
|
+
* Returns the current click stream if this is an HTTP session, null otherwise.
|
|
70
|
+
*/
|
|
71
|
+
readonly clickStream: ClickStream | null;
|
|
72
|
+
/**
|
|
73
|
+
* Get the currency associated with the current session. The session
|
|
74
|
+
* currency is established at session construction time and is typically
|
|
75
|
+
* equal to the site default currency. In the case of a multi-currency site,
|
|
76
|
+
* the session currency may be different than the site default currency.
|
|
77
|
+
*/
|
|
78
|
+
currency: Currency;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the session's custom attributes. The
|
|
81
|
+
* attributes are stored for the lifetime of the session and are not
|
|
82
|
+
* cleared when the customer logs out.
|
|
83
|
+
*/
|
|
84
|
+
readonly custom: CustomAttributes;
|
|
85
|
+
/**
|
|
86
|
+
* Returns the customer associated with this storefront session. The method
|
|
87
|
+
* always returns `null` if called for a non-storefront session
|
|
88
|
+
* (e.g., within a job or within Business Manager). For a storefront
|
|
89
|
+
* session, the method always returns a customer. The returned customer
|
|
90
|
+
* may be anonymous if the customer could not be identified via the
|
|
91
|
+
* customer cookie.
|
|
92
|
+
*/
|
|
93
|
+
readonly customer: Customer | null;
|
|
94
|
+
/**
|
|
95
|
+
* Identifies whether the customer associated with this session
|
|
96
|
+
* is authenticated. This call is equivalent to customer.isAuthenticated().
|
|
97
|
+
*/
|
|
98
|
+
readonly customerAuthenticated: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Identifies whether the customer associated with this session
|
|
101
|
+
* is externally authenticated.
|
|
102
|
+
*/
|
|
103
|
+
readonly customerExternallyAuthenticated: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Returns the forms object that provides access to all current forms of a customer in the session.
|
|
106
|
+
*/
|
|
107
|
+
readonly forms: Forms;
|
|
108
|
+
/**
|
|
109
|
+
* Returns information on the last source code handled by the session.
|
|
110
|
+
* This may or may not be the session's active source code, e.g., the
|
|
111
|
+
* last received source code was inactive and therefore was not
|
|
112
|
+
* set as the session's active source code.
|
|
113
|
+
*/
|
|
114
|
+
readonly lastReceivedSourceCodeInfo: SourceCodeInfo;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the session's custom privacy attributes.
|
|
117
|
+
* The attributes are stored for the lifetime of the session and are
|
|
118
|
+
* automatically cleared when the customer logs out.
|
|
119
|
+
*/
|
|
120
|
+
readonly privacy: CustomAttributes;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the unique session id. This can safely be used as an identifier
|
|
123
|
+
* against external systems.
|
|
124
|
+
*/
|
|
125
|
+
readonly sessionID: string;
|
|
126
|
+
/**
|
|
127
|
+
* Returns information on the session's active source-code.
|
|
128
|
+
*/
|
|
129
|
+
readonly sourceCodeInfo: SourceCodeInfo;
|
|
130
|
+
/**
|
|
131
|
+
* Returns whether the tracking allowed flag is set in the session.
|
|
132
|
+
* The value for newly created sessions defaults to the Site Preference "TrackingAllowed" unless
|
|
133
|
+
* a cookie named "dw_dnt" is found in which case the cookie value takes precedence.
|
|
134
|
+
*/
|
|
135
|
+
trackingAllowed: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Identifies whether the agent user associated with this session
|
|
138
|
+
* is authenticated.
|
|
139
|
+
*/
|
|
140
|
+
readonly userAuthenticated: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Returns the current agent user name associated with this session.
|
|
143
|
+
*
|
|
144
|
+
* Note: this class allows access to sensitive security-related data.
|
|
145
|
+
* Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
146
|
+
*/
|
|
147
|
+
readonly userName: string;
|
|
148
|
+
private constructor();
|
|
149
|
+
/**
|
|
150
|
+
* Generates a new guest session signature.
|
|
151
|
+
*
|
|
152
|
+
* This is intended for guest authentication with the Shopper Login and API Access Service (SLAS).
|
|
153
|
+
*/
|
|
154
|
+
generateGuestSessionSignature(): string;
|
|
155
|
+
/**
|
|
156
|
+
* Generates a new registered session signature.
|
|
157
|
+
*
|
|
158
|
+
* This is intended for use with registered session-bridge call of Shopper Login and API Access Service (SLAS).
|
|
159
|
+
*/
|
|
160
|
+
generateRegisteredSessionSignature(): string;
|
|
161
|
+
/**
|
|
162
|
+
* Returns the current click stream if this is an HTTP session, null otherwise.
|
|
163
|
+
*/
|
|
164
|
+
getClickStream(): ClickStream | null;
|
|
165
|
+
/**
|
|
166
|
+
* Get the currency associated with the current session. The session
|
|
167
|
+
* currency is established at session construction time and is typically
|
|
168
|
+
* equal to the site default currency. In the case of a multi-currency site,
|
|
169
|
+
* the session currency may be different than the site default currency.
|
|
170
|
+
*/
|
|
171
|
+
getCurrency(): Currency;
|
|
172
|
+
/**
|
|
173
|
+
* Returns the session's custom attributes. The
|
|
174
|
+
* attributes are stored for the lifetime of the session and are not
|
|
175
|
+
* cleared when the customer logs out.
|
|
176
|
+
*/
|
|
177
|
+
getCustom(): CustomAttributes;
|
|
178
|
+
/**
|
|
179
|
+
* Returns the customer associated with this storefront session. The method
|
|
180
|
+
* always returns `null` if called for a non-storefront session
|
|
181
|
+
* (e.g., within a job or within Business Manager). For a storefront
|
|
182
|
+
* session, the method always returns a customer. The returned customer
|
|
183
|
+
* may be anonymous if the customer could not be identified via the
|
|
184
|
+
* customer cookie.
|
|
185
|
+
*/
|
|
186
|
+
getCustomer(): Customer | null;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the forms object that provides access to all current forms of a customer in the session.
|
|
189
|
+
*/
|
|
190
|
+
getForms(): Forms;
|
|
191
|
+
/**
|
|
192
|
+
* Returns information on the last source code handled by the session.
|
|
193
|
+
* This may or may not be the session's active source code, e.g., the
|
|
194
|
+
* last received source code was inactive and therefore was not
|
|
195
|
+
* set as the session's active source code.
|
|
196
|
+
*/
|
|
197
|
+
getLastReceivedSourceCodeInfo(): SourceCodeInfo;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the session's custom privacy attributes.
|
|
200
|
+
* The attributes are stored for the lifetime of the session and are
|
|
201
|
+
* automatically cleared when the customer logs out.
|
|
202
|
+
*/
|
|
203
|
+
getPrivacy(): CustomAttributes;
|
|
204
|
+
/**
|
|
205
|
+
* Returns the unique session id. This can safely be used as an identifier
|
|
206
|
+
* against external systems.
|
|
207
|
+
*/
|
|
208
|
+
getSessionID(): string;
|
|
209
|
+
/**
|
|
210
|
+
* Returns information on the session's active source-code.
|
|
211
|
+
*/
|
|
212
|
+
getSourceCodeInfo(): SourceCodeInfo;
|
|
213
|
+
/**
|
|
214
|
+
* Returns the current agent user name associated with this session.
|
|
215
|
+
*
|
|
216
|
+
* Note: this class allows access to sensitive security-related data.
|
|
217
|
+
* Pay special attention to PCI DSS v3 requirements 2, 4, and 12.
|
|
218
|
+
*/
|
|
219
|
+
getUserName(): string;
|
|
220
|
+
/**
|
|
221
|
+
* Identifies whether the customer associated with this session
|
|
222
|
+
* is authenticated. This call is equivalent to customer.isAuthenticated().
|
|
223
|
+
*/
|
|
224
|
+
isCustomerAuthenticated(): boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Identifies whether the customer associated with this session
|
|
227
|
+
* is externally authenticated.
|
|
228
|
+
*/
|
|
229
|
+
isCustomerExternallyAuthenticated(): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Returns whether the tracking allowed flag is set in the session.
|
|
232
|
+
* The value for newly created sessions defaults to the Site Preference "TrackingAllowed" unless
|
|
233
|
+
* a cookie named "dw_dnt" is found in which case the cookie value takes precedence.
|
|
234
|
+
*/
|
|
235
|
+
isTrackingAllowed(): boolean;
|
|
236
|
+
/**
|
|
237
|
+
* Identifies whether the agent user associated with this session
|
|
238
|
+
* is authenticated.
|
|
239
|
+
*/
|
|
240
|
+
isUserAuthenticated(): boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Sets the session currency.
|
|
243
|
+
*/
|
|
244
|
+
setCurrency(newCurrency: Currency): void;
|
|
245
|
+
/**
|
|
246
|
+
* Applies the specified source code to the current session and basket. This API processes the source code exactly as if it
|
|
247
|
+
* were supplied on the URL query string, with the additional benefit of returning error information. If no input
|
|
248
|
+
* parameter is passed, then the active source code in the session and basket is removed. If a basket exists, and the modification fails,
|
|
249
|
+
* then the session is not written to either. This method may open and commit a transaction, if none is currently active.
|
|
250
|
+
*/
|
|
251
|
+
setSourceCode(sourceCode: string): Status;
|
|
252
|
+
/**
|
|
253
|
+
* Sets the tracking allowed flag for the session. If tracking is not allowed, multiple services
|
|
254
|
+
* depending on tracking will be restricted or disabled: Predictive Intelligence recommendations,
|
|
255
|
+
* Active Data, Analytics of the customer behavior in the storefront.
|
|
256
|
+
* Additionally, collected clicks in the session click stream will be cleared.
|
|
257
|
+
* Setting this property to either value also results in setting a session-scoped cookie named "dw_dnt"
|
|
258
|
+
* (1=DoNotTrack; 0=Track)
|
|
259
|
+
*/
|
|
260
|
+
setTrackingAllowed(trackingAllowed: boolean): void;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export = Session;
|