@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,215 @@
|
|
|
1
|
+
import Collection = require('../util/Collection');
|
|
2
|
+
import ObjectAttributeGroup = require('../object/ObjectAttributeGroup');
|
|
3
|
+
import ObjectAttributeDefinition = require('../object/ObjectAttributeDefinition');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Class representing the complete attribute model for products in the system.
|
|
7
|
+
* An instance of this class provides methods to access the attribute
|
|
8
|
+
* definitions and groups for the system object type 'Product' and perhaps
|
|
9
|
+
* additional information depending on how the instance is obtained.
|
|
10
|
+
* A ProductAttributeModel can be obtained in one of three ways:
|
|
11
|
+
*
|
|
12
|
+
* - ProductAttributeModel: When the no-arg constructor is
|
|
13
|
+
* used the model represents:
|
|
14
|
+
*
|
|
15
|
+
* - the attribute groups of the system object type 'Product' (i.e. the
|
|
16
|
+
* global product attribute groups) and their bound attributes
|
|
17
|
+
*
|
|
18
|
+
* - dw.catalog.Category.getProductAttributeModel: When the
|
|
19
|
+
* attribute model for a Category is retrieved, the model represents:
|
|
20
|
+
*
|
|
21
|
+
* - the global product attribute groups
|
|
22
|
+
* - product attribute groups of the calling category
|
|
23
|
+
* - product attribute groups of any parent categories of the calling category
|
|
24
|
+
*
|
|
25
|
+
* - dw.catalog.Product.getAttributeModel: When the attribute
|
|
26
|
+
* model for a Product is retrieved, the model represents:
|
|
27
|
+
*
|
|
28
|
+
* - the global product attribute groups
|
|
29
|
+
* - product attribute groups of the product's classification category
|
|
30
|
+
* - product attribute groups of any parent categories of the product's classification category
|
|
31
|
+
*
|
|
32
|
+
* In this case, the model additionally provides access to the attribute values
|
|
33
|
+
* of the product. If the product lacks a classification category, then only
|
|
34
|
+
* the global product attribute group is considered by the model.
|
|
35
|
+
*
|
|
36
|
+
* The ProductAttributeModel provides a generic way to display the attribute
|
|
37
|
+
* values of a product on a product detail page organized into appropriate
|
|
38
|
+
* visual groups. This is typically done as follows:
|
|
39
|
+
*
|
|
40
|
+
* - On the product detail page, call
|
|
41
|
+
* dw.catalog.Product.getAttributeModel to get the attribute model for
|
|
42
|
+
* the product.
|
|
43
|
+
* - Call getVisibleAttributeGroups to get the groups that are
|
|
44
|
+
* appropriate for this product and all other products assigned to the same
|
|
45
|
+
* classification category.
|
|
46
|
+
* - Iterate the groups, and display each as a "group" in the UI.
|
|
47
|
+
* - Call getVisibleAttributeDefinitions for
|
|
48
|
+
* each group. Iterate and display the attribute names using
|
|
49
|
+
* dw.object.ObjectAttributeDefinition.getDisplayName.
|
|
50
|
+
* - For each attribute, get the product's display value(s) for that
|
|
51
|
+
* attribute, using `getDisplayValue()`. This might require custom
|
|
52
|
+
* display logic based on the type of attribute (strings, dates, multi-value
|
|
53
|
+
* attributes, etc).
|
|
54
|
+
*/
|
|
55
|
+
declare class ProductAttributeModel {
|
|
56
|
+
/**
|
|
57
|
+
* Returns a sorted collection of attribute groups of this model. The groups
|
|
58
|
+
* returned depends on how this model is constructed and what it represents.
|
|
59
|
+
* (See class-level documentation for details).
|
|
60
|
+
*
|
|
61
|
+
* The collection of returned groups is sorted first by scope and secondly
|
|
62
|
+
* by explicit sort order. Global groups always appear before
|
|
63
|
+
* category-specific groups in the list. Groups of parent categories always
|
|
64
|
+
* appear before groups belonging to subcategories. At each scope, groups
|
|
65
|
+
* have an explicit sort order which can be managed within the Business
|
|
66
|
+
* Manager.
|
|
67
|
+
*
|
|
68
|
+
* When there are multiple attribute groups with the same ID, the following
|
|
69
|
+
* rules apply:
|
|
70
|
+
*
|
|
71
|
+
* - If this model represents the global product attribute group only
|
|
72
|
+
* (e.g. the no-arg constructor was used), duplicates cannot occur since
|
|
73
|
+
* only one group can be defined with a given ID at that scope.
|
|
74
|
+
* - If this model is associated with specific categories (e.g. it is
|
|
75
|
+
* constructed from a product with a classification category), then a
|
|
76
|
+
* category product attribute group might have the same ID as a global
|
|
77
|
+
* product attribute group. In this case, the category group overrides the
|
|
78
|
+
* global one.
|
|
79
|
+
* - If a category and one of its ancestor categories both define a
|
|
80
|
+
* product attribute group with the same ID, the sub-category group
|
|
81
|
+
* overrides the parent group.
|
|
82
|
+
*
|
|
83
|
+
* As a result of these rules, this method will never return two attribute
|
|
84
|
+
* groups with the same ID.
|
|
85
|
+
*/
|
|
86
|
+
readonly attributeGroups: Collection<ObjectAttributeGroup>;
|
|
87
|
+
/**
|
|
88
|
+
* Returns an unsorted collection of attribute definitions marked as
|
|
89
|
+
* order-required. Order-required attributes are usually copied into order
|
|
90
|
+
* line items.
|
|
91
|
+
*
|
|
92
|
+
* The returned attribute definitions are sorted according to the explicit
|
|
93
|
+
* sort order defined for the attributes in the group. This is managed by
|
|
94
|
+
* merchant in the Business Manager.
|
|
95
|
+
*/
|
|
96
|
+
readonly orderRequiredAttributeDefinitions: Collection<ObjectAttributeDefinition>;
|
|
97
|
+
/**
|
|
98
|
+
* Returns a sorted collection of visible attribute groups of this model.
|
|
99
|
+
* This method is similar to getAttributeGroups but only includes
|
|
100
|
+
* attribute groups containing at least one attribute definition that is
|
|
101
|
+
* visible. See
|
|
102
|
+
* getVisibleAttributeDefinitions.
|
|
103
|
+
*/
|
|
104
|
+
readonly visibleAttributeGroups: Collection<ObjectAttributeGroup>;
|
|
105
|
+
/**
|
|
106
|
+
* Constructs a product attribute model that is not based on a product nor
|
|
107
|
+
* a category. Therefore, the model only describes the product attributes
|
|
108
|
+
* globally defined for the system object type 'Product'.
|
|
109
|
+
*/
|
|
110
|
+
constructor();
|
|
111
|
+
/**
|
|
112
|
+
* Returns the attribute definition with the given id from the product attribute
|
|
113
|
+
* model. If attribute definition does not exist, null is returned.
|
|
114
|
+
*/
|
|
115
|
+
getAttributeDefinition(id: string): ObjectAttributeDefinition | null;
|
|
116
|
+
/**
|
|
117
|
+
* Returns a sorted collection of attribute definitions for the given attribute
|
|
118
|
+
* group. If no attribute definition exist for the group, an empty collection
|
|
119
|
+
* is returned.
|
|
120
|
+
*
|
|
121
|
+
* The returned attribute definitions are sorted according to the explicit
|
|
122
|
+
* sort order defined for the attributes in the group. This is managed
|
|
123
|
+
* by merchant in the Business Manager.
|
|
124
|
+
*/
|
|
125
|
+
getAttributeDefinitions(group: ObjectAttributeGroup): Collection<ObjectAttributeDefinition>;
|
|
126
|
+
/**
|
|
127
|
+
* Returns the attribute group with the given id from the product attribute
|
|
128
|
+
* model. If attribute group does not exist, null is returned.
|
|
129
|
+
*/
|
|
130
|
+
getAttributeGroup(id: string): ObjectAttributeGroup | null;
|
|
131
|
+
/**
|
|
132
|
+
* Returns a sorted collection of attribute groups of this model. The groups
|
|
133
|
+
* returned depends on how this model is constructed and what it represents.
|
|
134
|
+
* (See class-level documentation for details).
|
|
135
|
+
*
|
|
136
|
+
* The collection of returned groups is sorted first by scope and secondly
|
|
137
|
+
* by explicit sort order. Global groups always appear before
|
|
138
|
+
* category-specific groups in the list. Groups of parent categories always
|
|
139
|
+
* appear before groups belonging to subcategories. At each scope, groups
|
|
140
|
+
* have an explicit sort order which can be managed within the Business
|
|
141
|
+
* Manager.
|
|
142
|
+
*
|
|
143
|
+
* When there are multiple attribute groups with the same ID, the following
|
|
144
|
+
* rules apply:
|
|
145
|
+
*
|
|
146
|
+
* - If this model represents the global product attribute group only
|
|
147
|
+
* (e.g. the no-arg constructor was used), duplicates cannot occur since
|
|
148
|
+
* only one group can be defined with a given ID at that scope.
|
|
149
|
+
* - If this model is associated with specific categories (e.g. it is
|
|
150
|
+
* constructed from a product with a classification category), then a
|
|
151
|
+
* category product attribute group might have the same ID as a global
|
|
152
|
+
* product attribute group. In this case, the category group overrides the
|
|
153
|
+
* global one.
|
|
154
|
+
* - If a category and one of its ancestor categories both define a
|
|
155
|
+
* product attribute group with the same ID, the sub-category group
|
|
156
|
+
* overrides the parent group.
|
|
157
|
+
*
|
|
158
|
+
* As a result of these rules, this method will never return two attribute
|
|
159
|
+
* groups with the same ID.
|
|
160
|
+
*/
|
|
161
|
+
getAttributeGroups(): Collection<ObjectAttributeGroup>;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the value that the underlying product defines for the given
|
|
164
|
+
* attribute definition in the current locale. In case the attribute
|
|
165
|
+
* definition defines localized attribute values, the product's value is
|
|
166
|
+
* used as an id to find the localized display value.
|
|
167
|
+
*/
|
|
168
|
+
getDisplayValue(definition: ObjectAttributeDefinition): any;
|
|
169
|
+
/**
|
|
170
|
+
* Returns an unsorted collection of attribute definitions marked as
|
|
171
|
+
* order-required. Order-required attributes are usually copied into order
|
|
172
|
+
* line items.
|
|
173
|
+
*
|
|
174
|
+
* The returned attribute definitions are sorted according to the explicit
|
|
175
|
+
* sort order defined for the attributes in the group. This is managed by
|
|
176
|
+
* merchant in the Business Manager.
|
|
177
|
+
*/
|
|
178
|
+
getOrderRequiredAttributeDefinitions(): Collection<ObjectAttributeDefinition>;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the attribute value for the specified attribute
|
|
181
|
+
* definition. If the product does not define a value, null is returned.
|
|
182
|
+
*
|
|
183
|
+
* Note: this method may only be used where the attribute model was created for
|
|
184
|
+
* a specific product; otherwise it will always return null.
|
|
185
|
+
*
|
|
186
|
+
* If the attribute is localized, the value for the current session locale
|
|
187
|
+
* is returned.
|
|
188
|
+
*/
|
|
189
|
+
getValue(definition: ObjectAttributeDefinition): any | null;
|
|
190
|
+
/**
|
|
191
|
+
* Returns a sorted collection of all visible attribute definitions for the
|
|
192
|
+
* given attribute group. If no visible attribute definition exist for the
|
|
193
|
+
* group, an empty collection is returned.
|
|
194
|
+
*
|
|
195
|
+
* An attribute definition is considered visible if is marked as visible. If
|
|
196
|
+
* the product attribute model is created for a specific product, the
|
|
197
|
+
* product must also define a value for the attribute definition; else the
|
|
198
|
+
* attribute definition is considered as invisible.
|
|
199
|
+
*
|
|
200
|
+
* The returned attribute definitions are sorted according to the explicit
|
|
201
|
+
* sort order defined for the attributes in the group. This is managed by
|
|
202
|
+
* merchant in the Business Manager.
|
|
203
|
+
*/
|
|
204
|
+
getVisibleAttributeDefinitions(group: ObjectAttributeGroup): Collection<ObjectAttributeDefinition>;
|
|
205
|
+
/**
|
|
206
|
+
* Returns a sorted collection of visible attribute groups of this model.
|
|
207
|
+
* This method is similar to getAttributeGroups but only includes
|
|
208
|
+
* attribute groups containing at least one attribute definition that is
|
|
209
|
+
* visible. See
|
|
210
|
+
* getVisibleAttributeDefinitions.
|
|
211
|
+
*/
|
|
212
|
+
getVisibleAttributeGroups(): Collection<ObjectAttributeGroup>;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export = ProductAttributeModel;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Quantity = require('../value/Quantity');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Encapsulates the quantity of items available for each availability status.
|
|
5
|
+
*/
|
|
6
|
+
declare class ProductAvailabilityLevels {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the backorder quantity.
|
|
9
|
+
*/
|
|
10
|
+
readonly backorder: Quantity;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the number of attributes that contain non-zero quantities.
|
|
13
|
+
*/
|
|
14
|
+
readonly count: number;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the quantity in stock.
|
|
17
|
+
*/
|
|
18
|
+
readonly inStock: Quantity;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the quantity that is not available.
|
|
21
|
+
*/
|
|
22
|
+
readonly notAvailable: Quantity;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the pre-order quantity.
|
|
25
|
+
*/
|
|
26
|
+
readonly preorder: Quantity;
|
|
27
|
+
private constructor();
|
|
28
|
+
/**
|
|
29
|
+
* Returns the backorder quantity.
|
|
30
|
+
*/
|
|
31
|
+
getBackorder(): Quantity;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the number of attributes that contain non-zero quantities.
|
|
34
|
+
*/
|
|
35
|
+
getCount(): number;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the quantity in stock.
|
|
38
|
+
*/
|
|
39
|
+
getInStock(): Quantity;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the quantity that is not available.
|
|
42
|
+
*/
|
|
43
|
+
getNotAvailable(): Quantity;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the pre-order quantity.
|
|
46
|
+
*/
|
|
47
|
+
getPreorder(): Quantity;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export = ProductAvailabilityLevels;
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import ProductInventoryRecord = require('./ProductInventoryRecord');
|
|
2
|
+
import ProductAvailabilityLevels = require('./ProductAvailabilityLevels');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The ProductAvailabilityModel provides methods for retrieving all information
|
|
6
|
+
* on availability of a single product.
|
|
7
|
+
*
|
|
8
|
+
* When using Omnichannel Inventory (OCI):
|
|
9
|
+
*
|
|
10
|
+
* - OCI supports backorders, but does not support preorders or perpetual availability. OCI refers to expected
|
|
11
|
+
* restocks as Future inventory.
|
|
12
|
+
* - OCI uses an eventual consistency model with asynchronous inventory data updates. Your code must not assume that
|
|
13
|
+
* inventory-affecting actions, such as placing orders, will immediately change inventory levels.
|
|
14
|
+
*/
|
|
15
|
+
declare class ProductAvailabilityModel {
|
|
16
|
+
/**
|
|
17
|
+
* Indicates that the product stock has run out, but will be replenished, and is therefore available for ordering.
|
|
18
|
+
*/
|
|
19
|
+
static readonly AVAILABILITY_STATUS_BACKORDER: string;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates that the product is in stock and available for ordering.
|
|
22
|
+
*/
|
|
23
|
+
static readonly AVAILABILITY_STATUS_IN_STOCK: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates that the product is not currently available for ordering.
|
|
26
|
+
*/
|
|
27
|
+
static readonly AVAILABILITY_STATUS_NOT_AVAILABLE: string;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates that the product is not yet in stock but is available for ordering.
|
|
30
|
+
*/
|
|
31
|
+
static readonly AVAILABILITY_STATUS_PREORDER: string;
|
|
32
|
+
/**
|
|
33
|
+
* Returns the SKU coverage of the product. The basic formula for a
|
|
34
|
+
* master product is the ratio of online variations that are in stock
|
|
35
|
+
* to the total number of online variations. The following specific rules
|
|
36
|
+
* apply for standard products:
|
|
37
|
+
*
|
|
38
|
+
* - If the product is in stock this method returns the availability of the product.
|
|
39
|
+
* - If the product is out of stock this method returns 0.
|
|
40
|
+
*
|
|
41
|
+
* The following rules apply for special product types:
|
|
42
|
+
*
|
|
43
|
+
* - For a master product this method returns the average SKU coverage
|
|
44
|
+
* of its online variations.
|
|
45
|
+
* - For a master product with no online variations this method returns 0.
|
|
46
|
+
* - For a product set this method returns the ratio of orderable SKUs in the product set
|
|
47
|
+
* over the total number of online SKUs in the product set.
|
|
48
|
+
* - For a product set with no online products this method returns 0.
|
|
49
|
+
* - For a product bundle this method returns 1 if all of the bundled
|
|
50
|
+
* products are online, and 0 otherwise.
|
|
51
|
+
* - For a product bundle with no online bundled products this method
|
|
52
|
+
* returns 0.
|
|
53
|
+
*/
|
|
54
|
+
readonly SKUCoverage: number;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the availability of the product, which roughly defined is the
|
|
57
|
+
* ratio of the original stock that is still available to sell. The basic
|
|
58
|
+
* formula, if the current site uses an
|
|
59
|
+
* inventory list, is the ATS quantity divided by allocation
|
|
60
|
+
* amount. If the product is not orderable at all this method returns 0.
|
|
61
|
+
* The following specific rules apply for standard products:
|
|
62
|
+
*
|
|
63
|
+
* - If inventory lists are in use:
|
|
64
|
+
*
|
|
65
|
+
* - If no inventory record exists and the inventory list default-in-stock flag is true this method returns 1.
|
|
66
|
+
* - If no inventory record exists the inventory list default-in-stock flag is false this method returns 0.
|
|
67
|
+
* - If the product is not available this method returns 0.
|
|
68
|
+
* - If the product is perpetually available this method returns 1.
|
|
69
|
+
* - Otherwise, this method returns ATS / (allocation + preorderBackorderAllocation). (Values from dw.catalog.ProductInventoryRecord.)
|
|
70
|
+
*
|
|
71
|
+
* If inventory lists are not in use the method returns 0.
|
|
72
|
+
*
|
|
73
|
+
* The following rules apply for special product types:
|
|
74
|
+
*
|
|
75
|
+
* - For a master product this method returns the average availability
|
|
76
|
+
* of its online variations.
|
|
77
|
+
* - For a master product with no online variations this method returns 0.
|
|
78
|
+
* - For a master product with own inventory record the rules of the standard
|
|
79
|
+
* products apply. Note: In this case the availability of the variations is not considered.
|
|
80
|
+
* - For a product set this method returns the greatest availability of
|
|
81
|
+
* the online products in the set.
|
|
82
|
+
* - For a product set with no online products this method returns 0.
|
|
83
|
+
* - For a product set with an inventory record the rules of the standard
|
|
84
|
+
* products apply. Note: In this case the availability of the set products is not considered.
|
|
85
|
+
* - For a bundle, this method returns the least availability of the bundled
|
|
86
|
+
* products according to their bundled quantity and if it exist also from
|
|
87
|
+
* the bundle inventory record.
|
|
88
|
+
*/
|
|
89
|
+
readonly availability: number;
|
|
90
|
+
/**
|
|
91
|
+
* Returns the availability-status for the minimum-orderable-quantity (MOQ) of
|
|
92
|
+
* the product. The MOQ essentially represents a single orderable unit, and
|
|
93
|
+
* therefore can be represented by a single availability-status. This
|
|
94
|
+
* method is essentially a convenience method. The same information
|
|
95
|
+
* can be retrieved by calling getAvailabilityLevels
|
|
96
|
+
* with the MOQ of the product as the parameter and then retrieving the
|
|
97
|
+
* single status from the returned map.
|
|
98
|
+
*
|
|
99
|
+
* This method is typically used to display a product's availability in
|
|
100
|
+
* the catalog when the order quantity is not known.
|
|
101
|
+
*/
|
|
102
|
+
readonly availabilityStatus: string;
|
|
103
|
+
/**
|
|
104
|
+
* Convenience method for isInStock. Returns true, if the
|
|
105
|
+
* Product is available in the minimum-order-quantity. If the product does
|
|
106
|
+
* not have a minimum-order-quantity defined, in-stock is checked for a
|
|
107
|
+
* quantity value 1.
|
|
108
|
+
*/
|
|
109
|
+
readonly inStock: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Returns the ProductInventoryRecord for the Product associated
|
|
112
|
+
* with this model.
|
|
113
|
+
*/
|
|
114
|
+
readonly inventoryRecord: ProductInventoryRecord | null;
|
|
115
|
+
/**
|
|
116
|
+
* Convenience method for isOrderable. Returns true if the
|
|
117
|
+
* Product is currently online (based on its online flag and online dates)
|
|
118
|
+
* and is orderable in its minimum-order-quantity. If the product does not
|
|
119
|
+
* have a minimum-order-quantity specified, then 1 is used. The method
|
|
120
|
+
* returns false otherwise.
|
|
121
|
+
*
|
|
122
|
+
* Note: Orderable status is more general than in-stock status. A product
|
|
123
|
+
* may be out-of-stock but orderable because it is back-orderable or
|
|
124
|
+
* pre-orderable.
|
|
125
|
+
*/
|
|
126
|
+
readonly orderable: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the number of hours before the product is expected to go out
|
|
129
|
+
* of stock. The basic formula is the ATS quantity divided by the
|
|
130
|
+
* sales velocity for the most recent day. The following specific rules
|
|
131
|
+
* apply for standard products:
|
|
132
|
+
*
|
|
133
|
+
* - If the product is out of stock this method returns 0.
|
|
134
|
+
* - If the product is perpetually available this method returns 1.
|
|
135
|
+
* - If the sales velocity or ATS is not available this method returns 0.
|
|
136
|
+
* - Otherwise this method returns ATS / sales velocity.
|
|
137
|
+
*
|
|
138
|
+
* The following rules apply for special product types:
|
|
139
|
+
*
|
|
140
|
+
* - For a master product this method returns the greatest time to out
|
|
141
|
+
* of stock of its online variations.
|
|
142
|
+
* - For a master product with no online variations this method returns 0.
|
|
143
|
+
* - For a product set this method returns the greatest time to out
|
|
144
|
+
* of stock of the online products in the set.
|
|
145
|
+
* - For a product set with no online products this method returns 0.
|
|
146
|
+
* - For a bundle with no product inventory record, this method returns
|
|
147
|
+
* the least time to out of stock of the online bundled products.
|
|
148
|
+
* - For a bundle with no product inventory record, and no online
|
|
149
|
+
* bundled products, this method returns 0.
|
|
150
|
+
*/
|
|
151
|
+
readonly timeToOutOfStock: number;
|
|
152
|
+
private constructor();
|
|
153
|
+
/**
|
|
154
|
+
* Returns the availability of the product, which roughly defined is the
|
|
155
|
+
* ratio of the original stock that is still available to sell. The basic
|
|
156
|
+
* formula, if the current site uses an
|
|
157
|
+
* inventory list, is the ATS quantity divided by allocation
|
|
158
|
+
* amount. If the product is not orderable at all this method returns 0.
|
|
159
|
+
* The following specific rules apply for standard products:
|
|
160
|
+
*
|
|
161
|
+
* - If inventory lists are in use:
|
|
162
|
+
*
|
|
163
|
+
* - If no inventory record exists and the inventory list default-in-stock flag is true this method returns 1.
|
|
164
|
+
* - If no inventory record exists the inventory list default-in-stock flag is false this method returns 0.
|
|
165
|
+
* - If the product is not available this method returns 0.
|
|
166
|
+
* - If the product is perpetually available this method returns 1.
|
|
167
|
+
* - Otherwise, this method returns ATS / (allocation + preorderBackorderAllocation). (Values from dw.catalog.ProductInventoryRecord.)
|
|
168
|
+
*
|
|
169
|
+
* If inventory lists are not in use the method returns 0.
|
|
170
|
+
*
|
|
171
|
+
* The following rules apply for special product types:
|
|
172
|
+
*
|
|
173
|
+
* - For a master product this method returns the average availability
|
|
174
|
+
* of its online variations.
|
|
175
|
+
* - For a master product with no online variations this method returns 0.
|
|
176
|
+
* - For a master product with own inventory record the rules of the standard
|
|
177
|
+
* products apply. Note: In this case the availability of the variations is not considered.
|
|
178
|
+
* - For a product set this method returns the greatest availability of
|
|
179
|
+
* the online products in the set.
|
|
180
|
+
* - For a product set with no online products this method returns 0.
|
|
181
|
+
* - For a product set with an inventory record the rules of the standard
|
|
182
|
+
* products apply. Note: In this case the availability of the set products is not considered.
|
|
183
|
+
* - For a bundle, this method returns the least availability of the bundled
|
|
184
|
+
* products according to their bundled quantity and if it exist also from
|
|
185
|
+
* the bundle inventory record.
|
|
186
|
+
*/
|
|
187
|
+
getAvailability(): number;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* Returns an instance of dw.catalog.ProductAvailabilityLevels,
|
|
191
|
+
* where each available quantity represents a part of the input quantity.
|
|
192
|
+
* This method is typically used to display availability information in
|
|
193
|
+
* the context of a known order quantity, e.g. a shopping cart.
|
|
194
|
+
*
|
|
195
|
+
* For example, if for a given product
|
|
196
|
+
* there are 3 pieces in stock with no pre/backorder handling specified,
|
|
197
|
+
* and the order quantity is 10, then the return instance would have the
|
|
198
|
+
* following state:
|
|
199
|
+
*
|
|
200
|
+
* - dw.catalog.ProductAvailabilityLevels.getInStock - 3
|
|
201
|
+
* - dw.catalog.ProductAvailabilityLevels.getPreorder - 0
|
|
202
|
+
* - dw.catalog.ProductAvailabilityLevels.getBackorder - 0
|
|
203
|
+
* - dw.catalog.ProductAvailabilityLevels.getNotAvailable - 7
|
|
204
|
+
*
|
|
205
|
+
* The following assertions can be made about the state of the returned instance.
|
|
206
|
+
*
|
|
207
|
+
* - Between 1 and 3 levels are non-zero.
|
|
208
|
+
* - The sum of the levels equals the input quantity.
|
|
209
|
+
* - dw.catalog.ProductAvailabilityLevels.getPreorder or dw.catalog.ProductAvailabilityLevels.getBackorder may be available, but not both.
|
|
210
|
+
*
|
|
211
|
+
* Product bundles are handled specially: The availability of product
|
|
212
|
+
* bundles is calculated based on the availability of the bundled products.
|
|
213
|
+
* Therefore, if a bundle contains products that are not in stock, then
|
|
214
|
+
* the bundle itself is not in stock. If all the products in the bundle
|
|
215
|
+
* are on backorder, then the bundle itself is backordered. If a product
|
|
216
|
+
* bundle has its own inventory record, then this record may
|
|
217
|
+
* further limit the availability. If a bundle has no record, then
|
|
218
|
+
* only the records of the bundled products are considered.
|
|
219
|
+
*
|
|
220
|
+
* Product masters and product sets without an own inventory record are
|
|
221
|
+
* handled specially too: The availability is calculated based on the
|
|
222
|
+
* availability of the variants or set products. A product master or product
|
|
223
|
+
* set is in stock as soon as one of its variants or set products is in stock.
|
|
224
|
+
* Each product master or product set availability level reflects the sum of
|
|
225
|
+
* the variant or set product availability levels up to the specified quantity.
|
|
226
|
+
*
|
|
227
|
+
* Product masters or product sets with own inventory record are handled like
|
|
228
|
+
* standard products. The availability of the variants or set products is not
|
|
229
|
+
* considered. (Such an inventory scenario should be avoided.)
|
|
230
|
+
*
|
|
231
|
+
* Offline products are always unavailable and will result in returned
|
|
232
|
+
* levels that are all unavailable.
|
|
233
|
+
*
|
|
234
|
+
* When using Omnichannel Inventory (OCI), future restocks provided by OCI are mapped to
|
|
235
|
+
* ProductAvailabilityModel.AVAILABILITY_STATUS_BACKORDER. For more information, see the comments for
|
|
236
|
+
* dw.catalog.ProductInventoryRecord.
|
|
237
|
+
* @throws IllegalArgumentException if the specified quantity is less or equal than zero
|
|
238
|
+
* @see dw.catalog.ProductAvailabilityLevels
|
|
239
|
+
*/
|
|
240
|
+
getAvailabilityLevels(quantity: number): ProductAvailabilityLevels;
|
|
241
|
+
/**
|
|
242
|
+
* Returns the availability-status for the minimum-orderable-quantity (MOQ) of
|
|
243
|
+
* the product. The MOQ essentially represents a single orderable unit, and
|
|
244
|
+
* therefore can be represented by a single availability-status. This
|
|
245
|
+
* method is essentially a convenience method. The same information
|
|
246
|
+
* can be retrieved by calling getAvailabilityLevels
|
|
247
|
+
* with the MOQ of the product as the parameter and then retrieving the
|
|
248
|
+
* single status from the returned map.
|
|
249
|
+
*
|
|
250
|
+
* This method is typically used to display a product's availability in
|
|
251
|
+
* the catalog when the order quantity is not known.
|
|
252
|
+
*/
|
|
253
|
+
getAvailabilityStatus(): string;
|
|
254
|
+
/**
|
|
255
|
+
* Returns the ProductInventoryRecord for the Product associated
|
|
256
|
+
* with this model.
|
|
257
|
+
*/
|
|
258
|
+
getInventoryRecord(): ProductInventoryRecord | null;
|
|
259
|
+
/**
|
|
260
|
+
* Returns the SKU coverage of the product. The basic formula for a
|
|
261
|
+
* master product is the ratio of online variations that are in stock
|
|
262
|
+
* to the total number of online variations. The following specific rules
|
|
263
|
+
* apply for standard products:
|
|
264
|
+
*
|
|
265
|
+
* - If the product is in stock this method returns the availability of the product.
|
|
266
|
+
* - If the product is out of stock this method returns 0.
|
|
267
|
+
*
|
|
268
|
+
* The following rules apply for special product types:
|
|
269
|
+
*
|
|
270
|
+
* - For a master product this method returns the average SKU coverage
|
|
271
|
+
* of its online variations.
|
|
272
|
+
* - For a master product with no online variations this method returns 0.
|
|
273
|
+
* - For a product set this method returns the ratio of orderable SKUs in the product set
|
|
274
|
+
* over the total number of online SKUs in the product set.
|
|
275
|
+
* - For a product set with no online products this method returns 0.
|
|
276
|
+
* - For a product bundle this method returns 1 if all of the bundled
|
|
277
|
+
* products are online, and 0 otherwise.
|
|
278
|
+
* - For a product bundle with no online bundled products this method
|
|
279
|
+
* returns 0.
|
|
280
|
+
*/
|
|
281
|
+
getSKUCoverage(): number;
|
|
282
|
+
/**
|
|
283
|
+
* Returns the number of hours before the product is expected to go out
|
|
284
|
+
* of stock. The basic formula is the ATS quantity divided by the
|
|
285
|
+
* sales velocity for the most recent day. The following specific rules
|
|
286
|
+
* apply for standard products:
|
|
287
|
+
*
|
|
288
|
+
* - If the product is out of stock this method returns 0.
|
|
289
|
+
* - If the product is perpetually available this method returns 1.
|
|
290
|
+
* - If the sales velocity or ATS is not available this method returns 0.
|
|
291
|
+
* - Otherwise this method returns ATS / sales velocity.
|
|
292
|
+
*
|
|
293
|
+
* The following rules apply for special product types:
|
|
294
|
+
*
|
|
295
|
+
* - For a master product this method returns the greatest time to out
|
|
296
|
+
* of stock of its online variations.
|
|
297
|
+
* - For a master product with no online variations this method returns 0.
|
|
298
|
+
* - For a product set this method returns the greatest time to out
|
|
299
|
+
* of stock of the online products in the set.
|
|
300
|
+
* - For a product set with no online products this method returns 0.
|
|
301
|
+
* - For a bundle with no product inventory record, this method returns
|
|
302
|
+
* the least time to out of stock of the online bundled products.
|
|
303
|
+
* - For a bundle with no product inventory record, and no online
|
|
304
|
+
* bundled products, this method returns 0.
|
|
305
|
+
*/
|
|
306
|
+
getTimeToOutOfStock(): number;
|
|
307
|
+
/**
|
|
308
|
+
* Returns true if the Product is in-stock in the given quantity. This is
|
|
309
|
+
* determined as follows:
|
|
310
|
+
*
|
|
311
|
+
* - If the product is not currently online (based on its online flag and
|
|
312
|
+
* online dates), then return false.
|
|
313
|
+
* - If there is no inventory-list for the current site, then return
|
|
314
|
+
* false.
|
|
315
|
+
* - If there is no inventory-record for the product, then return the
|
|
316
|
+
* default setting on the inventory-list.
|
|
317
|
+
* - If there is no allocation-amount on the inventory-record, then return
|
|
318
|
+
* the value of the perpetual-flag.
|
|
319
|
+
* - If there is an allocation-amount, but the perpetual-flag is true,
|
|
320
|
+
* then return true.
|
|
321
|
+
* - If the quantity is less than or equal to the stock-level, then return
|
|
322
|
+
* true.
|
|
323
|
+
* - Otherwise return false.
|
|
324
|
+
* @throws Exception if the specified quantity is less or equal than zero
|
|
325
|
+
*/
|
|
326
|
+
isInStock(quantity: number): boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Convenience method for isInStock. Returns true, if the
|
|
329
|
+
* Product is available in the minimum-order-quantity. If the product does
|
|
330
|
+
* not have a minimum-order-quantity defined, in-stock is checked for a
|
|
331
|
+
* quantity value 1.
|
|
332
|
+
*/
|
|
333
|
+
isInStock(): boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Returns true if the Product is currently online (based on its online flag
|
|
336
|
+
* and online dates) and the specified quantity does not exceed the quantity
|
|
337
|
+
* available for sale, and returns false otherwise.
|
|
338
|
+
*
|
|
339
|
+
* Note: Orderable status is more general than in-stock status. A product
|
|
340
|
+
* may be out-of-stock but orderable because it is back-orderable or
|
|
341
|
+
* pre-orderable.
|
|
342
|
+
* @throws Exception if the specified quantity is less or equal than zero
|
|
343
|
+
*/
|
|
344
|
+
isOrderable(quantity: number): boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Convenience method for isOrderable. Returns true if the
|
|
347
|
+
* Product is currently online (based on its online flag and online dates)
|
|
348
|
+
* and is orderable in its minimum-order-quantity. If the product does not
|
|
349
|
+
* have a minimum-order-quantity specified, then 1 is used. The method
|
|
350
|
+
* returns false otherwise.
|
|
351
|
+
*
|
|
352
|
+
* Note: Orderable status is more general than in-stock status. A product
|
|
353
|
+
* may be out-of-stock but orderable because it is back-orderable or
|
|
354
|
+
* pre-orderable.
|
|
355
|
+
*/
|
|
356
|
+
isOrderable(): boolean;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export = ProductAvailabilityModel;
|