@salesforce/b2c-cli 1.10.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/job/import.d.ts +1 -0
- package/dist/commands/job/import.js +15 -0
- package/dist/commands/job/import.js.map +1 -1
- 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 +4160 -3853
- package/package.json +3 -3
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import Collection = require('../../util/Collection');
|
|
2
|
+
import MarketingConsentSubscription = require('./MarketingConsentSubscription');
|
|
3
|
+
import List = require('../../util/List');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Provides static helper methods for managing shopper marketing consent subscriptions.
|
|
7
|
+
*
|
|
8
|
+
* This API enables retrieving and updating marketing consent preferences.
|
|
9
|
+
* Consent subscriptions define communication categories (e.g., "Newsletter", "Product Updates")
|
|
10
|
+
* and the channels (EMAIL, SMS, WHATSAPP) through which marketing communications can be sent.
|
|
11
|
+
*
|
|
12
|
+
* Prerequisites:
|
|
13
|
+
*
|
|
14
|
+
* - The Marketing Consent feature must be enabled and configured
|
|
15
|
+
* - For consent status retrieval, the current request must have a customer context
|
|
16
|
+
*
|
|
17
|
+
* Example usage:
|
|
18
|
+
* @example
|
|
19
|
+
* `
|
|
20
|
+
* var ShopperConsentMgr = require('dw/customer/consent/ShopperConsentMgr');
|
|
21
|
+
*
|
|
22
|
+
* // Get all subscriptions for the current site
|
|
23
|
+
* var subscriptions = ShopperConsentMgr.getSubscriptions();
|
|
24
|
+
*
|
|
25
|
+
* for each (var sub in subscriptions) {
|
|
26
|
+
* trace('Subscription: ' + sub.subscriptionId + ' - ' + sub.title);
|
|
27
|
+
* trace('Available channels: ' + sub.channels.join(', '));
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
* // Get subscriptions with consent status (for authenticated customers)
|
|
31
|
+
* var subsWithStatus = ShopperConsentMgr.getSubscriptions(null, true);
|
|
32
|
+
*
|
|
33
|
+
* // Update consent for a specific subscription
|
|
34
|
+
* ShopperConsentMgr.updateSubscription(
|
|
35
|
+
* 'customer@example.com',
|
|
36
|
+
* 'newsletter-subscription',
|
|
37
|
+
* 'EMAIL',
|
|
38
|
+
* 'OPT_IN'
|
|
39
|
+
* );
|
|
40
|
+
* `
|
|
41
|
+
* @see MarketingConsentSubscription
|
|
42
|
+
* @see ConsentStatusEntry
|
|
43
|
+
*/
|
|
44
|
+
declare class ShopperConsentMgr {
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves marketing consent subscriptions for the current site.
|
|
47
|
+
*
|
|
48
|
+
* This method returns all available consent subscriptions without consent status information.
|
|
49
|
+
* @throws ShopperConsentException if the consent feature is not enabled or retrieval fails.
|
|
50
|
+
*/
|
|
51
|
+
static readonly subscriptions: Collection<MarketingConsentSubscription>;
|
|
52
|
+
private constructor();
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves marketing consent subscriptions for the current site.
|
|
55
|
+
*
|
|
56
|
+
* This method returns all available consent subscriptions without consent status information.
|
|
57
|
+
* @throws ShopperConsentException if the consent feature is not enabled or retrieval fails.
|
|
58
|
+
*/
|
|
59
|
+
static getSubscriptions(): Collection<MarketingConsentSubscription>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves marketing consent subscriptions for the current site with optional filtering and status.
|
|
62
|
+
*
|
|
63
|
+
* Use this method to retrieve subscriptions filtered by tags and optionally include
|
|
64
|
+
* the current consent status for authenticated customers.
|
|
65
|
+
* @throws ShopperConsentException if the consent feature is not enabled, retrieval fails, or consent status retrieval fails.
|
|
66
|
+
*/
|
|
67
|
+
static getSubscriptions(tags: List<any>, includeConsentStatus: boolean): Collection<MarketingConsentSubscription>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates consent status for a subscription.
|
|
70
|
+
*
|
|
71
|
+
* This method updates the consent status in Salesforce Core for the specified
|
|
72
|
+
* contact point and subscription channel combination.
|
|
73
|
+
* @throws ShopperConsentException if the consent feature is not enabled or update fails.
|
|
74
|
+
*/
|
|
75
|
+
static updateSubscription(contactPointValue: string, subscriptionId: string, channel: string, status: string): void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export = ShopperConsentMgr;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ConsentStatusEntry = require('./ConsentStatusEntry');
|
|
2
|
+
import MarketingConsentSubscription = require('./MarketingConsentSubscription');
|
|
3
|
+
import ShopperConsentErrorCodes = require('./ShopperConsentErrorCodes');
|
|
4
|
+
import ShopperConsentException = require('./ShopperConsentException');
|
|
5
|
+
import ShopperConsentMgr = require('./ShopperConsentMgr');
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
ConsentStatusEntry,
|
|
9
|
+
MarketingConsentSubscription,
|
|
10
|
+
ShopperConsentErrorCodes,
|
|
11
|
+
ShopperConsentException,
|
|
12
|
+
ShopperConsentMgr
|
|
13
|
+
};
|
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import AddressBook = require('./AddressBook');
|
|
2
|
+
import AgentUserMgr = require('./AgentUserMgr');
|
|
3
|
+
import AgentUserStatusCodes = require('./AgentUserStatusCodes');
|
|
4
|
+
import AuthenticationStatus = require('./AuthenticationStatus');
|
|
5
|
+
import Credentials = require('./Credentials');
|
|
6
|
+
import Customer = require('./Customer');
|
|
7
|
+
import CustomerActiveData = require('./CustomerActiveData');
|
|
8
|
+
import CustomerAddress = require('./CustomerAddress');
|
|
9
|
+
import CustomerCDPData = require('./CustomerCDPData');
|
|
10
|
+
import CustomerContextMgr = require('./CustomerContextMgr');
|
|
11
|
+
import CustomerGroup = require('./CustomerGroup');
|
|
12
|
+
import CustomerList = require('./CustomerList');
|
|
13
|
+
import CustomerMgr = require('./CustomerMgr');
|
|
14
|
+
import CustomerPasswordConstraints = require('./CustomerPasswordConstraints');
|
|
15
|
+
import CustomerPaymentInstrument = require('./CustomerPaymentInstrument');
|
|
16
|
+
import CustomerStatusCodes = require('./CustomerStatusCodes');
|
|
17
|
+
import EncryptedObject = require('./EncryptedObject');
|
|
18
|
+
import ExternalProfile = require('./ExternalProfile');
|
|
19
|
+
import OrderHistory = require('./OrderHistory');
|
|
20
|
+
import ProductList = require('./ProductList');
|
|
21
|
+
import ProductListItem = require('./ProductListItem');
|
|
22
|
+
import ProductListItemPurchase = require('./ProductListItemPurchase');
|
|
23
|
+
import ProductListMgr = require('./ProductListMgr');
|
|
24
|
+
import ProductListRegistrant = require('./ProductListRegistrant');
|
|
25
|
+
import Profile = require('./Profile');
|
|
26
|
+
import Wallet = require('./Wallet');
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
AddressBook,
|
|
30
|
+
AgentUserMgr,
|
|
31
|
+
AgentUserStatusCodes,
|
|
32
|
+
AuthenticationStatus,
|
|
33
|
+
Credentials,
|
|
34
|
+
Customer,
|
|
35
|
+
CustomerActiveData,
|
|
36
|
+
CustomerAddress,
|
|
37
|
+
CustomerCDPData,
|
|
38
|
+
CustomerContextMgr,
|
|
39
|
+
CustomerGroup,
|
|
40
|
+
CustomerList,
|
|
41
|
+
CustomerMgr,
|
|
42
|
+
CustomerPasswordConstraints,
|
|
43
|
+
CustomerPaymentInstrument,
|
|
44
|
+
CustomerStatusCodes,
|
|
45
|
+
EncryptedObject,
|
|
46
|
+
ExternalProfile,
|
|
47
|
+
OrderHistory,
|
|
48
|
+
ProductList,
|
|
49
|
+
ProductListItem,
|
|
50
|
+
ProductListItemPurchase,
|
|
51
|
+
ProductListMgr,
|
|
52
|
+
ProductListRegistrant,
|
|
53
|
+
Profile,
|
|
54
|
+
Wallet
|
|
55
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import utilMap = require('../../util/Map');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Contains OAuth-related artifacts from the HTTP response from the third-party
|
|
5
|
+
* OAuth server when requesting an access token
|
|
6
|
+
*/
|
|
7
|
+
declare class OAuthAccessTokenResponse {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the ID token, if available
|
|
10
|
+
*/
|
|
11
|
+
readonly IDToken: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the access token
|
|
14
|
+
*/
|
|
15
|
+
readonly accessToken: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the access token expiration
|
|
18
|
+
*/
|
|
19
|
+
readonly accessTokenExpiry: number;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the error status.
|
|
22
|
+
* In cases of errors - more detailed error information
|
|
23
|
+
* can be seen in the error log files (specifity of error details vary by OAuth provider).
|
|
24
|
+
*/
|
|
25
|
+
readonly errorStatus: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a map of additional tokens found in the response.
|
|
28
|
+
*/
|
|
29
|
+
readonly extraTokens: utilMap<any, any> | null;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the OAuth provider id
|
|
32
|
+
*/
|
|
33
|
+
readonly oauthProviderId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the refresh token
|
|
36
|
+
*/
|
|
37
|
+
readonly refreshToken: string | null;
|
|
38
|
+
private constructor();
|
|
39
|
+
/**
|
|
40
|
+
* Returns the access token
|
|
41
|
+
*/
|
|
42
|
+
getAccessToken(): string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the access token expiration
|
|
45
|
+
*/
|
|
46
|
+
getAccessTokenExpiry(): number;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the error status.
|
|
49
|
+
* In cases of errors - more detailed error information
|
|
50
|
+
* can be seen in the error log files (specifity of error details vary by OAuth provider).
|
|
51
|
+
*/
|
|
52
|
+
getErrorStatus(): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Returns a map of additional tokens found in the response.
|
|
55
|
+
*/
|
|
56
|
+
getExtraTokens(): utilMap<any, any> | null;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the ID token, if available
|
|
59
|
+
*/
|
|
60
|
+
getIDToken(): string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the OAuth provider id
|
|
63
|
+
*/
|
|
64
|
+
getOauthProviderId(): string;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the refresh token
|
|
67
|
+
*/
|
|
68
|
+
getRefreshToken(): string | null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export = OAuthAccessTokenResponse;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import OAuthUserInfoResponse = require('./OAuthUserInfoResponse');
|
|
2
|
+
import OAuthAccessTokenResponse = require('./OAuthAccessTokenResponse');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Contains the combined responses from the third-party OAuth server when
|
|
6
|
+
* finalizing the authentication.
|
|
7
|
+
*
|
|
8
|
+
* Contains both the dw.customer.oauth.OAuthAccessTokenResponse
|
|
9
|
+
*
|
|
10
|
+
* and the dw.customer.oauth.OAuthUserInfoResponse
|
|
11
|
+
*/
|
|
12
|
+
declare class OAuthFinalizedResponse {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the access token response
|
|
15
|
+
*/
|
|
16
|
+
readonly accessTokenResponse: OAuthAccessTokenResponse;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the user info response
|
|
19
|
+
*/
|
|
20
|
+
readonly userInfoResponse: OAuthUserInfoResponse;
|
|
21
|
+
private constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Returns the access token response
|
|
24
|
+
*/
|
|
25
|
+
getAccessTokenResponse(): OAuthAccessTokenResponse;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the user info response
|
|
28
|
+
*/
|
|
29
|
+
getUserInfoResponse(): OAuthUserInfoResponse;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export = OAuthFinalizedResponse;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import URLRedirect = require('../../web/URLRedirect');
|
|
2
|
+
import OAuthFinalizedResponse = require('./OAuthFinalizedResponse');
|
|
3
|
+
import OAuthAccessTokenResponse = require('./OAuthAccessTokenResponse');
|
|
4
|
+
import OAuthUserInfoResponse = require('./OAuthUserInfoResponse');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The OAuthLoginFlowMgr encapsulates interactions with third party
|
|
8
|
+
* OAuth providers to support the Authorization Code Flow.
|
|
9
|
+
*
|
|
10
|
+
* The way to use is:
|
|
11
|
+
*
|
|
12
|
+
* - call initiateOAuthLogin
|
|
13
|
+
* - redirect the user to the returned link
|
|
14
|
+
* - when the user authenticates there the server will call back to
|
|
15
|
+
* a URL configured on the provider's web site
|
|
16
|
+
* - when processing the request made from the provider's web site
|
|
17
|
+
* you have two choices - either call the obtainAccessToken
|
|
18
|
+
* and obtainUserInfo
|
|
19
|
+
* methods one after another separately (gives you more flexibility),
|
|
20
|
+
* or call the finalizeOAuthLogin method which internally
|
|
21
|
+
* calls the other two (simpler to use).
|
|
22
|
+
*
|
|
23
|
+
* Sample code for using it:
|
|
24
|
+
*
|
|
25
|
+
* ```
|
|
26
|
+
* `
|
|
27
|
+
* var finalizedResponse : OAuthFinalizedResponse = OAuthLoginFlowMgr.finalizeOAuthLogin();
|
|
28
|
+
* var userInfo = finalizedResponse.userInfoResponse.userInfo;
|
|
29
|
+
* `
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* or:
|
|
33
|
+
* @example
|
|
34
|
+
* `
|
|
35
|
+
* var accessTokenResponse : OAuthAccessTokenResponse = OAuthLoginFlowMgr.obtainAccessToken();
|
|
36
|
+
* var userInfoResponse : OAuthUserInfoResponse = OAuthLoginFlowMgr.obtainUserInfo(
|
|
37
|
+
* accessTokenResponse.oauthProviderId, accessTokenResponse.accessToken);
|
|
38
|
+
* var userInfo = userInfoResponse.userInfo;
|
|
39
|
+
* `
|
|
40
|
+
*/
|
|
41
|
+
declare class OAuthLoginFlowMgr {
|
|
42
|
+
private constructor();
|
|
43
|
+
/**
|
|
44
|
+
* This method works in tandem with the initiateOAuthLogin method.
|
|
45
|
+
* After the user has been redirected to the URL returned by that method
|
|
46
|
+
* to the external OAuth2 provider and the user has interacted with the provider's
|
|
47
|
+
* site, the browser is redirected to a URL configured on the provider's web
|
|
48
|
+
* site. This URL should be that of a pipeline that contains
|
|
49
|
+
* a script invoking the finalizeOAuthLogin method.
|
|
50
|
+
*
|
|
51
|
+
* At this point the user has either been authenticated by the external provider
|
|
52
|
+
* or not (forgot password, or simply refused to provide credentials). If the user
|
|
53
|
+
* has been authenticated by the external provider and the provider returns an
|
|
54
|
+
* authentication code, this method exchanges the code for a token and with that
|
|
55
|
+
* token it requests from the provider the user information specified by the
|
|
56
|
+
* configured scope (id, first/last name, email, etc.).
|
|
57
|
+
*
|
|
58
|
+
* The method is aggregation of two other methods - obtainAccessToken
|
|
59
|
+
* and obtainUserInfo
|
|
60
|
+
* and is provided for convenience. You may want to
|
|
61
|
+
* use the two individual methods instead if you need more flexibility.
|
|
62
|
+
*
|
|
63
|
+
* This supports the Authorization Code Flow.
|
|
64
|
+
*/
|
|
65
|
+
static finalizeOAuthLogin(): OAuthFinalizedResponse | null;
|
|
66
|
+
/**
|
|
67
|
+
* This method works in tandem with another method - finalizeOAuthLogin.
|
|
68
|
+
* It starts the process of authentication via an external OAuth2 provider. It
|
|
69
|
+
* takes one parameter - OAuthProviderId (as configured in the system). Outputs
|
|
70
|
+
* an URL pointing to the OAuth2 provider's web page to which the browser should
|
|
71
|
+
* redirect to initiate the actual user authentication or NULL if there is an
|
|
72
|
+
* invalid configuration or an error occurs.
|
|
73
|
+
* The method stores a few key/values in the session
|
|
74
|
+
* (dw.system.Session.getPrivacy, implementation specific parameters and may change at any time)
|
|
75
|
+
* to be picked up by the finalizeOAuthLogin method when the provider redirects back.
|
|
76
|
+
*
|
|
77
|
+
* This supports the Authorization Code Flow.
|
|
78
|
+
*/
|
|
79
|
+
static initiateOAuthLogin(oauthProviderId: string): URLRedirect | null;
|
|
80
|
+
/**
|
|
81
|
+
* This method is called internally by finalizeOAuthLogin.
|
|
82
|
+
* There are customer requests to expose a more granular way of
|
|
83
|
+
* doing the interactions that finalizeOAuthLogin is currently doing
|
|
84
|
+
* with the third party OAuth server to accommodate certain providers.
|
|
85
|
+
*
|
|
86
|
+
* This supports the Authorization Code Flow.
|
|
87
|
+
*/
|
|
88
|
+
static obtainAccessToken(): OAuthAccessTokenResponse;
|
|
89
|
+
/**
|
|
90
|
+
* This method is called internally by finalizeOAuthLogin.
|
|
91
|
+
* There are customer requests to expose a more granular way of
|
|
92
|
+
* doing the interactions that finalizeOAuthLogin is currently doing
|
|
93
|
+
* with the third party OAuth server to accommodate certain providers.
|
|
94
|
+
*
|
|
95
|
+
* This supports the Authorization Code Flow.
|
|
96
|
+
*/
|
|
97
|
+
static obtainUserInfo(oauthProviderId: string, accessToken: string): OAuthUserInfoResponse;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export = OAuthLoginFlowMgr;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains the response from the third-party OAuth server when
|
|
3
|
+
* requesting user info. Refer to the corresponding OAuth provider documentation
|
|
4
|
+
* regarding what the format might be (in most cases it would be JSON).
|
|
5
|
+
* The data returned would also vary depending on the scope.
|
|
6
|
+
*/
|
|
7
|
+
declare class OAuthUserInfoResponse {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the error status
|
|
10
|
+
* In cases of errors - more detailed error information
|
|
11
|
+
* can be seen in the error log files (specificity of error details vary by OAuth provider).
|
|
12
|
+
*/
|
|
13
|
+
readonly errorStatus: string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the user info as a String. Refer to the corresponding OAuth provider documentation
|
|
16
|
+
* regarding what the format might be (in most cases it would be JSON).
|
|
17
|
+
* The data returned would also vary depending on the configured 'scope'.
|
|
18
|
+
*/
|
|
19
|
+
readonly userInfo: string;
|
|
20
|
+
private constructor();
|
|
21
|
+
/**
|
|
22
|
+
* Returns the error status
|
|
23
|
+
* In cases of errors - more detailed error information
|
|
24
|
+
* can be seen in the error log files (specificity of error details vary by OAuth provider).
|
|
25
|
+
*/
|
|
26
|
+
getErrorStatus(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the user info as a String. Refer to the corresponding OAuth provider documentation
|
|
29
|
+
* regarding what the format might be (in most cases it would be JSON).
|
|
30
|
+
* The data returned would also vary depending on the configured 'scope'.
|
|
31
|
+
*/
|
|
32
|
+
getUserInfo(): string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export = OAuthUserInfoResponse;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import OAuthAccessTokenResponse = require('./OAuthAccessTokenResponse');
|
|
2
|
+
import OAuthFinalizedResponse = require('./OAuthFinalizedResponse');
|
|
3
|
+
import OAuthLoginFlowMgr = require('./OAuthLoginFlowMgr');
|
|
4
|
+
import OAuthUserInfoResponse = require('./OAuthUserInfoResponse');
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
OAuthAccessTokenResponse,
|
|
8
|
+
OAuthFinalizedResponse,
|
|
9
|
+
OAuthLoginFlowMgr,
|
|
10
|
+
OAuthUserInfoResponse
|
|
11
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import utilMap = require('../../util/Map');
|
|
2
|
+
import utilSet = require('../../util/Set');
|
|
3
|
+
import Geolocation = require('../../util/Geolocation');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The class represents Shopper Context. It is used to manage personalized shopping experiences on your storefront.
|
|
7
|
+
*
|
|
8
|
+
* Shopper Context is used to personalize shopper experiences with context values such as custom session attributes,
|
|
9
|
+
* assignment qualifiers, geolocation, clientIP address, effective date time, source code, coupon code and customer
|
|
10
|
+
* groups.
|
|
11
|
+
*
|
|
12
|
+
* When Shopper Context is set for a shopper, the context is applied in the next request and can activate promotions or
|
|
13
|
+
* price books assigned to customer groups, source codes, or stores (via assignments).
|
|
14
|
+
* Also see: dw.customer.shoppercontext.ShopperContextMgr
|
|
15
|
+
*/
|
|
16
|
+
declare class ShopperContext {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the assignment qualifiers from the Shopper Context. Assignment qualifiers are set when using the
|
|
19
|
+
* assignment framework to trigger pricing and promotion experiences for Products, Product Search, Basket, Shipping
|
|
20
|
+
* methods etc.
|
|
21
|
+
*/
|
|
22
|
+
assignmentQualifiers: utilMap<any, any>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the IP address of the client from the Shopper Context.
|
|
25
|
+
*/
|
|
26
|
+
clientIP: string;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the Coupon codes from the Shopper Context.
|
|
29
|
+
*/
|
|
30
|
+
couponCodes: utilSet<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the custom qualifiers from the Shopper Context. Custom qualifiers contain the custom session attributes
|
|
33
|
+
* set in the Shopper Context.
|
|
34
|
+
*/
|
|
35
|
+
customQualifiers: utilMap<any, any>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns customer group IDs from the Shopper Context to apply. The customer group IDs set in Shopper Context
|
|
38
|
+
* evaluate to customer groups that trigger the promotions (campaign assignment) assigned to the customer groups.
|
|
39
|
+
*/
|
|
40
|
+
customerGroupIDs: utilSet<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the effective date time from the Shopper Context. With the effective date time you can retrieve
|
|
43
|
+
* promotions that are active at a particular time. For example, "Shop the Future" use cases.
|
|
44
|
+
*/
|
|
45
|
+
effectiveDateTime: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the geographic location from the Shopper Context.
|
|
48
|
+
*/
|
|
49
|
+
geolocation: Geolocation;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the source code from the Shopper Context. The source code set in Shopper Context evaluates to source code
|
|
52
|
+
* group that triggers the promotion (campaign assignment) and Price books (assigned to Source code group).
|
|
53
|
+
*/
|
|
54
|
+
sourceCode: string;
|
|
55
|
+
/**
|
|
56
|
+
* Constructor for ShopperContext.
|
|
57
|
+
*
|
|
58
|
+
* This constructor is used to create an empty object. The object will be empty and must be populated with the
|
|
59
|
+
* appropriate setter methods. For example:
|
|
60
|
+
* @example
|
|
61
|
+
* `
|
|
62
|
+
* ShopperContext context = new ShopperContext();
|
|
63
|
+
* context.setSourceCode( "sourcecode" );
|
|
64
|
+
* ShopperContextMgr.setShopperContext( context, true );
|
|
65
|
+
* `
|
|
66
|
+
*/
|
|
67
|
+
constructor();
|
|
68
|
+
/**
|
|
69
|
+
* Returns the assignment qualifiers from the Shopper Context. Assignment qualifiers are set when using the
|
|
70
|
+
* assignment framework to trigger pricing and promotion experiences for Products, Product Search, Basket, Shipping
|
|
71
|
+
* methods etc.
|
|
72
|
+
*/
|
|
73
|
+
getAssignmentQualifiers(): utilMap<any, any>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the IP address of the client from the Shopper Context.
|
|
76
|
+
*/
|
|
77
|
+
getClientIP(): string;
|
|
78
|
+
/**
|
|
79
|
+
* Returns the Coupon codes from the Shopper Context.
|
|
80
|
+
*/
|
|
81
|
+
getCouponCodes(): utilSet<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the custom qualifiers from the Shopper Context. Custom qualifiers contain the custom session attributes
|
|
84
|
+
* set in the Shopper Context.
|
|
85
|
+
*/
|
|
86
|
+
getCustomQualifiers(): utilMap<any, any>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns customer group IDs from the Shopper Context to apply. The customer group IDs set in Shopper Context
|
|
89
|
+
* evaluate to customer groups that trigger the promotions (campaign assignment) assigned to the customer groups.
|
|
90
|
+
*/
|
|
91
|
+
getCustomerGroupIDs(): utilSet<any>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns the effective date time from the Shopper Context. With the effective date time you can retrieve
|
|
94
|
+
* promotions that are active at a particular time. For example, "Shop the Future" use cases.
|
|
95
|
+
*/
|
|
96
|
+
getEffectiveDateTime(): Date;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the geographic location from the Shopper Context.
|
|
99
|
+
*/
|
|
100
|
+
getGeolocation(): Geolocation;
|
|
101
|
+
/**
|
|
102
|
+
* Returns the source code from the Shopper Context. The source code set in Shopper Context evaluates to source code
|
|
103
|
+
* group that triggers the promotion (campaign assignment) and Price books (assigned to Source code group).
|
|
104
|
+
*/
|
|
105
|
+
getSourceCode(): string;
|
|
106
|
+
/**
|
|
107
|
+
* Sets the assignment qualifiers in the Shopper Context. Assignment qualifiers are set when using the assignment
|
|
108
|
+
* framework to trigger pricing and promotion experiences for Products, Product Search, Basket, Shipping methods
|
|
109
|
+
* etc.
|
|
110
|
+
*
|
|
111
|
+
* Example: Assignment qualifier for store can be set as follows:
|
|
112
|
+
* @example
|
|
113
|
+
* `
|
|
114
|
+
* var assignmentQualifiers = new dw.util.HashMap();
|
|
115
|
+
* assignmentQualifiers.put( "storeId", "Boston" );
|
|
116
|
+
* ShopperContext context = new ShopperContext();
|
|
117
|
+
* context.setAssignmentQualifiers( customQualifiers );
|
|
118
|
+
* ShopperContextMgr.setShopperContext( context, true );
|
|
119
|
+
* `
|
|
120
|
+
*/
|
|
121
|
+
setAssignmentQualifiers(assignmentQualifiers: utilMap<any, any>): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the IP address of the client in the Shopper Context. The client IP evaluates to a geolocation. If the client
|
|
124
|
+
* IP address is not a valid IPv4/IPv6 address an error is thrown.
|
|
125
|
+
*/
|
|
126
|
+
setClientIP(clientIP: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the Coupon codes in the Shopper Context. When you set coupon codes, it is saved as context for subsequent
|
|
129
|
+
* requests and can then trigger promotions via the campaign which are tied to the coupon. A maximum of 5 coupon
|
|
130
|
+
* codes can be set in the ShopperContext.
|
|
131
|
+
*/
|
|
132
|
+
setCouponCodes(couponCodes: utilSet<any>): void;
|
|
133
|
+
/**
|
|
134
|
+
* Sets the session custom attributes as custom qualifiers in the Shopper Context. Custom qualifiers are set when
|
|
135
|
+
* you want to trigger pricing and promotion experiences using a dynamic session-based customer groups.
|
|
136
|
+
*
|
|
137
|
+
* Example: A session custom attribute 'device_type' can be saved as follows:
|
|
138
|
+
* @example
|
|
139
|
+
* `
|
|
140
|
+
* var customQualifiers = new dw.util.HashMap();
|
|
141
|
+
* customQualifiers.put( "deviceType", "iPad" );
|
|
142
|
+
* ShopperContext context = new ShopperContext();
|
|
143
|
+
* context.setCustomQualifiers( customQualifiers );
|
|
144
|
+
* ShopperContextMgr.setShopperContext( context, true );
|
|
145
|
+
* `
|
|
146
|
+
*/
|
|
147
|
+
setCustomQualifiers(customQualifiers: utilMap<any, any>): void;
|
|
148
|
+
/**
|
|
149
|
+
* Sets the customer group IDs for the Shopper Context to apply. Set the customer group IDs to evaluate customer
|
|
150
|
+
* groups that trigger the promotions (campaign assignment) assigned to the customer groups.
|
|
151
|
+
*/
|
|
152
|
+
setCustomerGroupIDs(customerGroupIDs: utilSet<any>): void;
|
|
153
|
+
/**
|
|
154
|
+
* Sets the effective date time for the context to apply. With the effective date time you can retrieve promotions
|
|
155
|
+
* that are active at a particular time. For example, "Shop the Future" use cases.
|
|
156
|
+
*/
|
|
157
|
+
setEffectiveDateTime(effectiveDateTime: Date): void;
|
|
158
|
+
/**
|
|
159
|
+
* Sets the geographic location of the client in the Shopper Context. When you set a geolocation, it is saved as
|
|
160
|
+
* context for subsequent requests. This overrides any context previously saved using clientIP in the Shopper
|
|
161
|
+
* Context.
|
|
162
|
+
*/
|
|
163
|
+
setGeolocation(geolocation: Geolocation): void;
|
|
164
|
+
/**
|
|
165
|
+
* Sets the source code for the Shopper Context to apply. Set the source code to evaluate source code group that
|
|
166
|
+
* triggers the promotion (campaign assignment) and Price books (assigned to Source code group).
|
|
167
|
+
*/
|
|
168
|
+
setSourceCode(sourceCode: string): void;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export = ShopperContext;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper class containing error codes to indicate why a Shopper Context cannot be accessed, set or modified.
|
|
3
|
+
*/
|
|
4
|
+
declare class ShopperContextErrorCodes {
|
|
5
|
+
/**
|
|
6
|
+
* Indicates that the assignment qualifiers limit exceeded
|
|
7
|
+
*/
|
|
8
|
+
static readonly ASSIGNMENT_QUALIFIERS_LIMIT_EXCEEDED = "ASSIGNMENT_QUALIFIERS_LIMIT_EXCEEDED";
|
|
9
|
+
/**
|
|
10
|
+
* Indicates that the coupon codes limit exceeded
|
|
11
|
+
*/
|
|
12
|
+
static readonly COUPON_CODES_LIMIT_EXCEEDED = "COUPON_CODES_LIMIT_EXCEEDED";
|
|
13
|
+
/**
|
|
14
|
+
* Indicates that the custom qualifiers limit exceeded
|
|
15
|
+
*/
|
|
16
|
+
static readonly CUSTOM_QUALIFIERS_LIMIT_EXCEEDED = "CUSTOM_QUALIFIERS_LIMIT_EXCEEDED";
|
|
17
|
+
/**
|
|
18
|
+
* Indicates that the feature toggle 'ShopperContextEnabled' is not enabled.
|
|
19
|
+
*/
|
|
20
|
+
static readonly FEATURE_DISABLED = "FEATURE_DISABLED";
|
|
21
|
+
/**
|
|
22
|
+
* Indicates that an internal error occurred while setting, retrieving or deleting the shopper context
|
|
23
|
+
*/
|
|
24
|
+
static readonly INTERNAL_ERROR = "INTERNAL_ERROR";
|
|
25
|
+
/**
|
|
26
|
+
* Indicates an invalid argument was provided
|
|
27
|
+
*/
|
|
28
|
+
static readonly INVALID_ARGUMENT = "INVALID_ARGUMENT";
|
|
29
|
+
/**
|
|
30
|
+
* Indicates that the request type is invalid. Request must be a SCAPI request, or a hybrid storefront request, or
|
|
31
|
+
* an ocapi request using a SLAS token.
|
|
32
|
+
*/
|
|
33
|
+
static readonly INVALID_REQUEST_TYPE = "INVALID_REQUEST_TYPE";
|
|
34
|
+
/**
|
|
35
|
+
* Indicates that the quota limit for the shopper context has been reached.
|
|
36
|
+
*/
|
|
37
|
+
static readonly QUOTA_LIMIT_EXCEEDED = "QUOTA_LIMIT_EXCEEDED";
|
|
38
|
+
private constructor();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export = ShopperContextErrorCodes;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This exception could be thrown by
|
|
3
|
+
* dw.customer.shoppercontext.ShopperContextMgr.setShopperContext,
|
|
4
|
+
* dw.customer.shoppercontext.ShopperContextMgr.getShopperContext and
|
|
5
|
+
* ShopperContextMgr.removeShopperContext when an error occurs.
|
|
6
|
+
*
|
|
7
|
+
* 'errorCode' property is set to one of the following values:
|
|
8
|
+
*
|
|
9
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.FEATURE_DISABLED = Indicates that the Shopper Context
|
|
10
|
+
* Feature is not enabled.
|
|
11
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.CUSTOM_QUALIFIERS_LIMIT_EXCEEDED = Indicates that the
|
|
12
|
+
* number of custom qualifiers in dw.customer.shoppercontext.ShopperContext has exceeded the allowed limit.
|
|
13
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.ASSIGNMENT_QUALIFIERS_LIMIT_EXCEEDED = Indicates that
|
|
14
|
+
* the number of assignment qualifiers in dw.customer.shoppercontext.ShopperContext has exceeded the allowed
|
|
15
|
+
* limit.
|
|
16
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.QUOTA_LIMIT_EXCEEDED = Indicates that the quota limit
|
|
17
|
+
* for the Shopper Context has been reached.
|
|
18
|
+
*
|
|
19
|
+
* For more information on shopper context quota limits please refer to:
|
|
20
|
+
* Shopper Context Quota Limits
|
|
21
|
+
*
|
|
22
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.INTERNAL_ERROR = Indicates that an error occurred
|
|
23
|
+
* while setting, retrieving or deleting the shopper context.
|
|
24
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.INVALID_ARGUMENT = Indicates that an invalid client
|
|
25
|
+
* IP address was set in the Shopper Context.
|
|
26
|
+
* - dw.customer.shoppercontext.ShopperContextErrorCodes.INVALID_REQUEST_TYPE = Indicates that the request
|
|
27
|
+
* type is invalid. Request must be a SCAPI request, or a hybrid storefront request, or an OCAPI request using a SLAS
|
|
28
|
+
* token.
|
|
29
|
+
*/
|
|
30
|
+
declare class ShopperContextException {
|
|
31
|
+
/**
|
|
32
|
+
* Indicates reason why the following methods failed:
|
|
33
|
+
* dw.customer.shoppercontext.ShopperContextMgr.setShopperContext or
|
|
34
|
+
* dw.customer.shoppercontext.ShopperContextMgr.getShopperContext or
|
|
35
|
+
* dw.customer.shoppercontext.ShopperContextMgr.removeShopperContext failed.
|
|
36
|
+
*/
|
|
37
|
+
readonly errorCode: string;
|
|
38
|
+
private constructor();
|
|
39
|
+
/**
|
|
40
|
+
* Indicates reason why the following methods failed:
|
|
41
|
+
* dw.customer.shoppercontext.ShopperContextMgr.setShopperContext or
|
|
42
|
+
* dw.customer.shoppercontext.ShopperContextMgr.getShopperContext or
|
|
43
|
+
* dw.customer.shoppercontext.ShopperContextMgr.removeShopperContext failed.
|
|
44
|
+
*/
|
|
45
|
+
getErrorCode(): string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export = ShopperContextException;
|