@salesforce/b2c-cli 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/setup/ide/tsserver-plugin.d.ts +56 -0
- package/dist/commands/setup/ide/tsserver-plugin.js +88 -0
- package/dist/commands/setup/ide/tsserver-plugin.js.map +1 -0
- package/dist/commands/setup/ide/vscode-types.d.ts +44 -0
- package/dist/commands/setup/ide/vscode-types.js +141 -0
- package/dist/commands/setup/ide/vscode-types.js.map +1 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/package.json +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/plugin/index.js +575 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/APIException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ConversionError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/EvalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Fault.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/IOError.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/InternalError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Module.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/Namespace.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/QName.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/RangeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/ReferenceError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/StopIteration.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SyntaxError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/SystemError.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/TypeError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/URIError.d.ts +16 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XML.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLList.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/XMLStreamError.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/TopLevel/arguments.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alert.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/Alerts.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/alert/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTest.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestMgr.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ABTestSegment.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/AmountDiscount.d.ts +22 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/ApproachingDiscount.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusChoiceDiscount.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/BonusDiscount.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Campaign.d.ts +167 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignMgr.d.ts +192 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CampaignStatusCodes.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Coupon.d.ts +146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponMgr.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponRedemption.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/CouponStatusCodes.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Discount.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/DiscountPlan.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FixedPriceShippingDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/FreeShippingDiscount.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageDiscount.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PercentageOptionDiscount.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PriceBookPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/Promotion.d.ts +455 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionMgr.d.ts +262 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/PromotionPlan.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SlotContent.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeGroup.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/SourceCodeStatusCodes.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/TotalFixedPriceDiscount.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/campaign/index.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Catalog.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CatalogMgr.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Category.d.ts +592 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryAssignment.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/CategoryLink.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBook.d.ts +94 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/PriceBookMgr.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Product.d.ts +1100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductActiveData.d.ts +593 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAttributeModel.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityLevels.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductAvailabilityModel.d.ts +359 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryList.d.ts +65 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryMgr.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductInventoryRecord.d.ts +296 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductLink.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductMgr.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOption.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionModel.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductOptionValue.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceInfo.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceModel.d.ts +586 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductPriceTable.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchHit.d.ts +398 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchModel.d.ts +816 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementDefinition.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinementValue.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductSearchRefinements.d.ts +142 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttribute.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationAttributeValue.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/ProductVariationModel.d.ts +508 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Recommendation.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchModel.d.ts +277 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementDefinition.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinementValue.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SearchRefinements.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingOption.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/SortingRule.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Store.d.ts +214 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreGroup.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilter.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreInventoryFilterValue.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/StoreMgr.d.ts +86 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/Variant.d.ts +555 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/VariationGroup.d.ts +422 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/catalog/index.d.ts +93 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Content.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentMgr.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementDefinition.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinementValue.d.ts +10 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/ContentSearchRefinements.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Folder.d.ts +186 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/Library.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MarkupText.d.ts +125 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/MediaFile.d.ts +297 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/content/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateRef.d.ts +20 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/CertificateUtils.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Cipher.d.ts +178 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Encoding.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWE.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWEHeader.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWS.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/JWSHeader.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/KeyRef.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Mac.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/MessageDigest.d.ts +108 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/SecureRandom.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/Signature.d.ts +88 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakCipher.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMac.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakMessageDigest.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/WeakSignature.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/X509Certificate.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/crypto/index.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AddressBook.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserMgr.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AgentUserStatusCodes.d.ts +64 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/AuthenticationStatus.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Credentials.d.ts +266 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Customer.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerActiveData.d.ts +276 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerAddress.d.ts +280 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerCDPData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerContextMgr.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerGroup.d.ts +76 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerList.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerMgr.d.ts +611 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPasswordConstraints.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerPaymentInstrument.d.ts +118 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/CustomerStatusCodes.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/EncryptedObject.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ExternalProfile.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/OrderHistory.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductList.d.ts +376 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItem.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListItemPurchase.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListMgr.d.ts +190 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/ProductListRegistrant.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Profile.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/Wallet.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ConsentStatusEntry.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/MarketingConsentSubscription.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentErrorCodes.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/ShopperConsentMgr.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/consent/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/index.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthAccessTokenResponse.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthFinalizedResponse.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthLoginFlowMgr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/OAuthUserInfoResponse.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/oauth/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContext.d.ts +171 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextErrorCodes.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextException.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/ShopperContextMgr.d.ts +130 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/customer/shoppercontext/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/AspectAttributeValidationException.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Component.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentRenderSettings.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/ComponentScriptContext.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditor.d.ts +80 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/CustomEditorResources.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Page.d.ts +255 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageMgr.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/PageScriptContext.d.ts +127 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/Region.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/RegionRenderSettings.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/CMSRecord.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/cms/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/FocalPoint.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/Image.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/ImageMetaData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/image/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/experience/index.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHookResult.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/ApplePayHooks.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/applepay/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookFeedHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/FacebookProduct.d.ts +567 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/facebook/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/PaymentApiHooks.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentapi/index.d.ts +5 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHookResult.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/PaymentRequestHooks.d.ts +168 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/paymentrequest/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenPaymentIntent.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceAdyenSavedPaymentMethod.d.ts +126 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceBancontactPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceCardPaymentDetails.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceEpsPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceIdealPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceKlarnaPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrder.d.ts +109 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderAddress.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalOrderPayer.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePayPalPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentDetails.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentIntent.d.ts +116 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentMethod.d.ts +162 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentRequest.d.ts +562 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsHooks.d.ts +78 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccount.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMerchantAccountPaymentMethod.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsMgr.d.ts +420 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsSiteConfiguration.d.ts +84 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforcePaymentsZone.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceSepaDebitPaymentDetails.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/SalesforceVenmoPaymentDetails.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/payments/index.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestAvailability.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestFeedHooks.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrder.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestOrderHooks.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/PinterestProduct.d.ts +302 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/extensions/pinterest/index.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamReader.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/CSVStreamWriter.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/File.d.ts +343 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileReader.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/FileWriter.d.ts +62 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/InputStream.d.ts +15 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/OutputStream.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/PrintWriter.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/RandomAccessFileReader.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Reader.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/StringWriter.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/Writer.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLIndentingStreamWriter.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamConstants.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamReader.d.ts +674 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamWriter.d.ts +204 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/index.d.ts +35 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobExecution.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/JobStepExecution.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/job/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPClient.d.ts +219 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/FTPFileInfo.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClient.d.ts +337 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClientLoggingConfig.d.ts +180 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPRequestPart.d.ts +122 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/Mail.d.ts +182 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPClient.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/SFTPFileInfo.d.ts +45 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVClient.d.ts +324 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/WebDAVFileInfo.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/index.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ActiveData.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomAttributes.d.ts +143 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObject.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/CustomObjectMgr.d.ts +283 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Extensible.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ExtensibleObject.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/Note.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeDefinition.d.ts +239 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeGroup.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectAttributeValueDefinition.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/ObjectTypeDefinition.d.ts +113 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/PersistentObject.d.ts +33 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SimpleExtensible.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/SystemObjectMgr.d.ts +319 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/object/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItem.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AbstractItemCtnr.d.ts +100 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Appeasement.d.ts +163 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/AppeasementItem.d.ts +43 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Basket.d.ts +476 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BasketMgr.d.ts +406 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/BonusDiscountLineItem.d.ts +170 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CouponLineItem.d.ts +139 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateAgentBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateBasketFromOrderException.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateCouponLineItemException.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateOrderException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/CreateTemporaryBasketLimitExceededException.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificate.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateLineItem.d.ts +124 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateMgr.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/GiftCertificateStatusCodes.d.ts +42 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Invoice.d.ts +284 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/InvoiceItem.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItem.d.ts +265 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemCtnr.d.ts +1146 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/LineItemTax.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Order.d.ts +1360 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderAddress.d.ts +259 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderItem.d.ts +332 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderMgr.d.ts +864 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderPaymentInstrument.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/OrderProcessStatusCodes.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentCard.d.ts +112 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentInstrument.d.ts +757 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMethod.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentProcessor.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentStatusCodes.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PaymentTransaction.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustment.d.ts +430 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/PriceAdjustmentLimitTypes.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductLineItem.d.ts +849 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingCost.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingLineItem.d.ts +154 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ProductShippingModel.d.ts +73 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Return.d.ts +161 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCase.d.ts +215 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnCaseItem.d.ts +165 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ReturnItem.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/Shipment.d.ts +506 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingCost.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShipmentShippingModel.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLineItem.d.ts +151 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingLocation.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMethod.d.ts +114 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingMgr.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrder.d.ts +304 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/ShippingOrderItem.d.ts +210 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/SumItem.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxGroup.d.ts +49 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxItem.d.ts +29 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TaxMgr.d.ts +155 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingInfo.d.ts +107 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/TrackingRef.d.ts +44 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/BasketMergeHooks.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CalculateHooks.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/CheckoutHooks.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/OrderHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/PaymentHooks.d.ts +189 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ReturnHooks.d.ts +274 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/ShippingOrderHooks.d.ts +220 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/TaxHooks.d.ts +378 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/hooks/index.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/order/index.d.ts +123 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/SOAPUtil.d.ts +339 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/Stub.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/WebReference.d.ts +55 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/rpc/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapFile.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/SitemapMgr.d.ts +70 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/sitemap/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/BrandSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CategorySuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ContentSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/CustomSuggestions.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/ProductSuggestions.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SearchPhraseSuggestions.d.ts +53 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestModel.d.ts +230 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedCategory.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedContent.d.ts +19 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedPhrase.d.ts +25 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedProduct.d.ts +21 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerm.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/SuggestedTerms.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/Suggestions.d.ts +89 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/suggest/index.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPService.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/FTPServiceDefinition.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormService.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPFormServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPService.d.ts +147 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/HTTPServiceDefinition.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/LocalServiceRegistry.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Result.d.ts +133 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPService.d.ts +36 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/SOAPServiceDefinition.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/Service.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCallback.d.ts +172 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceConfig.d.ts +52 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceCredential.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceDefinition.d.ts +105 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceProfile.d.ts +66 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/ServiceRegistry.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/svc/index.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/AgentUserStatusCodes.d.ts +14 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Cache.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/CacheMgr.d.ts +39 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/HookMgr.d.ts +31 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/InternalObject.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/JobProcessMonitor.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Log.d.ts +77 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/LogNDC.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Logger.d.ts +83 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/OrganizationPreferences.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Pipeline.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/PipelineDictionary.d.ts +28 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTErrorResponse.d.ts +58 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTResponseMgr.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RESTSuccessResponse.d.ts +38 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RemoteInclude.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Request.d.ts +363 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/RequestHooks.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Response.d.ts +278 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SearchStatus.d.ts +74 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Session.d.ts +263 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Site.d.ts +247 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/SitePreferences.d.ts +51 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Status.d.ts +141 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/StatusItem.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/System.d.ts +96 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/Transaction.d.ts +60 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/system/index.d.ts +57 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/ISML.d.ts +32 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/Velocity.d.ts +71 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/template/index.d.ts +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/ArrayList.d.ts +40 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Assert.d.ts +159 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/BigInteger.d.ts +104 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Bytes.d.ts +99 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Calendar.d.ts +450 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Collection.d.ts +91 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Currency.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/DateUtils.d.ts +27 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Decimal.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/FilteringCollection.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Geolocation.d.ts +111 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashMap.d.ts +17 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/HashSet.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Iterator.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashMap.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/LinkedHashSet.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/List.d.ts +148 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Locale.d.ts +110 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Map.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MapEntry.d.ts +24 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingKey.d.ts +34 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/MappingMgr.d.ts +46 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/PropertyComparator.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureEncoder.d.ts +371 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SecureFilter.d.ts +340 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SeekableIterator.d.ts +85 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Set.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedMap.d.ts +59 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/SortedSet.d.ts +75 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/StringUtils.d.ts +191 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/Template.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/UUIDUtils.d.ts +12 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/util/index.d.ts +67 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/EnumValue.d.ts +50 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/MimeEncodedText.d.ts +47 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Money.d.ts +196 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/Quantity.d.ts +103 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/value/index.d.ts +11 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/CSRFProtection.d.ts +48 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStream.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/ClickStreamEntry.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookie.d.ts +166 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Cookies.d.ts +23 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Form.d.ts +30 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormAction.d.ts +82 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElement.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormElementValidationResult.d.ts +63 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormField.d.ts +331 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOption.d.ts +90 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormFieldOptions.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormGroup.d.ts +106 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormList.d.ts +56 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/FormListItem.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Forms.d.ts +13 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameter.d.ts +195 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/HttpParameterMap.d.ts +92 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/LoopIterator.d.ts +95 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaData.d.ts +87 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PageMetaTag.d.ts +81 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/PagingModel.d.ts +181 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/Resource.d.ts +69 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URL.d.ts +68 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLAction.d.ts +41 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLParameter.d.ts +18 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirect.d.ts +26 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLRedirectMgr.d.ts +37 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/URLUtils.d.ts +759 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/web/index.d.ts +61 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/Port.d.ts +54 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WSUtil.d.ts +311 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/WebReference2.d.ts +120 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/ws/index.d.ts +9 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/global.d.ts +1101 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/sfra/server.d.ts +271 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-package.json +7 -0
- package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/upstream-tsconfig.json +7 -0
- package/oclif.manifest.json +5512 -5207
- package/package.json +3 -3
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/net/HTTPClient.d.ts
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import KeyRef = require('../crypto/KeyRef');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
import HashMap = require('../util/HashMap');
|
|
4
|
+
import List = require('../util/List');
|
|
5
|
+
import utilMap = require('../util/Map');
|
|
6
|
+
import File = require('../io/File');
|
|
7
|
+
import HTTPRequestPart = require('./HTTPRequestPart');
|
|
8
|
+
import HTTPClientLoggingConfig = require('./HTTPClientLoggingConfig');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The HTTPClient class supports the HTTP methods GET, POST, HEAD, PUT, PATCH, OPTIONS, and DELETE.
|
|
12
|
+
* If a secure connection via HTTPS is
|
|
13
|
+
* established the used server certificate or the signing CAs certificate needs to be imported into the customer key
|
|
14
|
+
* store via Business Manager. Note: when this class is used with sensitive data, be careful in persisting
|
|
15
|
+
* sensitive information.
|
|
16
|
+
*
|
|
17
|
+
* Key selection for mutual TLS:
|
|
18
|
+
*
|
|
19
|
+
* - Check if there is an explicit identity requested dw.net.HTTPClient.setIdentity
|
|
20
|
+
* - Else, Check if there is a mapping for hostname in the keystore
|
|
21
|
+
* - Deprecated: Select an arbitrary private key from the keystore
|
|
22
|
+
* @example
|
|
23
|
+
* `
|
|
24
|
+
* var httpClient = new HTTPClient();
|
|
25
|
+
* var message;
|
|
26
|
+
* httpClient.open('GET', 'http://www.myinstance.com/feed.xml');
|
|
27
|
+
* httpClient.setTimeout(3000);
|
|
28
|
+
* httpClient.send();
|
|
29
|
+
* if (httpClient.statusCode == 200)
|
|
30
|
+
* {
|
|
31
|
+
* message = httpClient.text;
|
|
32
|
+
* }
|
|
33
|
+
* else
|
|
34
|
+
* {
|
|
35
|
+
* // error handling
|
|
36
|
+
* message = "An error occurred with status code "+httpClient.statusCode;
|
|
37
|
+
* }
|
|
38
|
+
* `
|
|
39
|
+
*/
|
|
40
|
+
declare class HTTPClient {
|
|
41
|
+
/**
|
|
42
|
+
* The default size for `sendAndReceiveToFile()` returning a File is 5MB deprecated in favor of
|
|
43
|
+
* MAX_GET_FILE_SIZE
|
|
44
|
+
* @deprecated Use MAX_GET_FILE_SIZE instead.
|
|
45
|
+
*/
|
|
46
|
+
static readonly DEFAULT_GET_FILE_SIZE: number;
|
|
47
|
+
/**
|
|
48
|
+
* The maximum permitted size (in bytes) of an HTTP response when calling operations which write the response to
|
|
49
|
+
* file. (200MB)
|
|
50
|
+
*/
|
|
51
|
+
static readonly MAX_GET_FILE_SIZE: number;
|
|
52
|
+
/**
|
|
53
|
+
* The maximum permitted size (in bytes) of an HTTP response when calling operations which store the response in
|
|
54
|
+
* memory. (10MB)
|
|
55
|
+
*/
|
|
56
|
+
static readonly MAX_GET_MEM_SIZE: number;
|
|
57
|
+
/**
|
|
58
|
+
* Returns all response headers as a map containing the name and value of the response header.
|
|
59
|
+
* @deprecated Use getResponseHeaders instead.
|
|
60
|
+
*/
|
|
61
|
+
readonly allResponseHeaders: HashMap<any, any>;
|
|
62
|
+
/**
|
|
63
|
+
* Determines whether redirect handling is enabled.
|
|
64
|
+
*/
|
|
65
|
+
allowRedirect: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the bytes in the message body for HTTP status codes between 200 and 299.
|
|
68
|
+
*/
|
|
69
|
+
readonly bytes: Bytes;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the returned message body as bytes for HTTP status code greater or equal to 400. Error messages are not
|
|
72
|
+
* written to the response file.
|
|
73
|
+
*/
|
|
74
|
+
readonly errorBytes: Bytes;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the returned message body as text for HTTP status code greater or equal to 400. Error messages are not
|
|
77
|
+
* written to the response file.
|
|
78
|
+
*/
|
|
79
|
+
readonly errorText: string;
|
|
80
|
+
/**
|
|
81
|
+
* Determines whether host name verification is enabled.
|
|
82
|
+
*/
|
|
83
|
+
hostNameVerification: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Gets the identity used for mutual TLS (mTLS).
|
|
86
|
+
*/
|
|
87
|
+
identity: KeyRef | null;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the logging configuration for this HTTP client.
|
|
90
|
+
*/
|
|
91
|
+
loggingConfig: HTTPClientLoggingConfig;
|
|
92
|
+
/**
|
|
93
|
+
* Returns all response headers as a map in which each entry represents an individual header. The key of the entry
|
|
94
|
+
* holds the header name and the entry value holds a list of all header values.
|
|
95
|
+
*/
|
|
96
|
+
readonly responseHeaders: utilMap<any, any>;
|
|
97
|
+
/**
|
|
98
|
+
* Returns the status code of the last HTTP operation.
|
|
99
|
+
*/
|
|
100
|
+
readonly statusCode: number;
|
|
101
|
+
/**
|
|
102
|
+
* Returns the message text of the last HTTP operation.
|
|
103
|
+
*/
|
|
104
|
+
readonly statusMessage: string;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the returned message body as text for HTTP status codes between 200 and 299.
|
|
107
|
+
*/
|
|
108
|
+
readonly text: string;
|
|
109
|
+
/**
|
|
110
|
+
* Returns the timeout for this client, in milliseconds.
|
|
111
|
+
*/
|
|
112
|
+
timeout: number;
|
|
113
|
+
/**
|
|
114
|
+
* Constructs the HTTPClient instance with the default configuration.
|
|
115
|
+
*/
|
|
116
|
+
constructor();
|
|
117
|
+
/**
|
|
118
|
+
* Constructs the HTTPClient instance with the given configuration.
|
|
119
|
+
*
|
|
120
|
+
* There is one supported configuration option. Unknown options are ignored.
|
|
121
|
+
*
|
|
122
|
+
* Supported configuration
|
|
123
|
+
*
|
|
124
|
+
* Name
|
|
125
|
+
* Type
|
|
126
|
+
* Description
|
|
127
|
+
*
|
|
128
|
+
* `allowHTTP2`
|
|
129
|
+
* `boolean`
|
|
130
|
+
* Allow connections over HTTP/2. This will still allow HTTP/1.1 if that is what the remote server
|
|
131
|
+
* supports. It will also cause all request and response headers to be case-insensitive.
|
|
132
|
+
* The default value is `false`.
|
|
133
|
+
*
|
|
134
|
+
* Sample usage:
|
|
135
|
+
* @example
|
|
136
|
+
* var httpClient = new HTTPClient( { allowHTTP2: true } )
|
|
137
|
+
*/
|
|
138
|
+
constructor(configMap: Object);
|
|
139
|
+
/**
|
|
140
|
+
* Calling this method enables caching for GET requests.
|
|
141
|
+
*
|
|
142
|
+
* It basically means that a response is cached, and before making a request the HTTP client looks into the cache to
|
|
143
|
+
* determine whether the response is already available. Only responses with a status code of 2xx, with a content
|
|
144
|
+
* length, with a size less than 50k, and which are not intended to be immediately written to a file are cached.
|
|
145
|
+
*
|
|
146
|
+
* The provided parameter defines the TTL (time to live) for the cached content. A value of 0 disables caching. The
|
|
147
|
+
* URL and the username are used as cache keys. The total size of the cacheable content and the number of cached
|
|
148
|
+
* items is limited and automatically managed by the system. Cache control information send by the remote server is
|
|
149
|
+
* ignored. Caching HTTP responses should be done very carefully. It is important to ensure that the response really
|
|
150
|
+
* depends only on the URL and doesn't contain any remote state information or time information which is independent
|
|
151
|
+
* of the URL. It is also important to verify that the application sends exactly the same URL multiple times.
|
|
152
|
+
*/
|
|
153
|
+
enableCaching(ttl: number): void;
|
|
154
|
+
/**
|
|
155
|
+
* Returns all response headers as a map containing the name and value of the response header.
|
|
156
|
+
* @deprecated Use getResponseHeaders instead.
|
|
157
|
+
*/
|
|
158
|
+
getAllResponseHeaders(): HashMap<any, any>;
|
|
159
|
+
/**
|
|
160
|
+
* Determines whether redirect handling is enabled.
|
|
161
|
+
*/
|
|
162
|
+
getAllowRedirect(): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the bytes in the message body for HTTP status codes between 200 and 299.
|
|
165
|
+
*/
|
|
166
|
+
getBytes(): Bytes;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the returned message body as bytes for HTTP status code greater or equal to 400. Error messages are not
|
|
169
|
+
* written to the response file.
|
|
170
|
+
*/
|
|
171
|
+
getErrorBytes(): Bytes;
|
|
172
|
+
/**
|
|
173
|
+
* Returns the returned message body as text for HTTP status code greater or equal to 400. Error messages are not
|
|
174
|
+
* written to the response file.
|
|
175
|
+
*/
|
|
176
|
+
getErrorText(): string;
|
|
177
|
+
/**
|
|
178
|
+
* Determines whether host name verification is enabled.
|
|
179
|
+
*/
|
|
180
|
+
getHostNameVerification(): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Gets the identity used for mutual TLS (mTLS).
|
|
183
|
+
*/
|
|
184
|
+
getIdentity(): KeyRef | null;
|
|
185
|
+
/**
|
|
186
|
+
* Gets the logging configuration for this HTTP client.
|
|
187
|
+
*/
|
|
188
|
+
getLoggingConfig(): HTTPClientLoggingConfig;
|
|
189
|
+
/**
|
|
190
|
+
* Returns a specific response header from the last HTTP operation. The method returns null if the specific header
|
|
191
|
+
* was not returned.
|
|
192
|
+
*/
|
|
193
|
+
getResponseHeader(header: string): string | null;
|
|
194
|
+
/**
|
|
195
|
+
* Returns all the values of a response header from the last HTTP operation as a list of strings. This reflects the
|
|
196
|
+
* fact that a specific header, e.g. `"Set-Cookie"`, may be set multiple times. In case there is no such
|
|
197
|
+
* header, the method returns an empty list.
|
|
198
|
+
*/
|
|
199
|
+
getResponseHeaders(name: string): List<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Returns all response headers as a map in which each entry represents an individual header. The key of the entry
|
|
202
|
+
* holds the header name and the entry value holds a list of all header values.
|
|
203
|
+
*/
|
|
204
|
+
getResponseHeaders(): utilMap<any, any>;
|
|
205
|
+
/**
|
|
206
|
+
* Returns the status code of the last HTTP operation.
|
|
207
|
+
*/
|
|
208
|
+
getStatusCode(): number;
|
|
209
|
+
/**
|
|
210
|
+
* Returns the message text of the last HTTP operation.
|
|
211
|
+
*/
|
|
212
|
+
getStatusMessage(): string;
|
|
213
|
+
/**
|
|
214
|
+
* Returns the returned message body as text for HTTP status codes between 200 and 299.
|
|
215
|
+
*/
|
|
216
|
+
getText(): string;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the returned message body as text for HTTP status codes between 200 and 299.
|
|
219
|
+
*/
|
|
220
|
+
getText(encoding: string): string;
|
|
221
|
+
/**
|
|
222
|
+
* Returns the timeout for this client, in milliseconds.
|
|
223
|
+
*/
|
|
224
|
+
getTimeout(): number;
|
|
225
|
+
/**
|
|
226
|
+
* Opens the specified URL using the specified method. The following methods are supported: GET, POST, HEAD, PUT,
|
|
227
|
+
* PATCH, OPTIONS, and DELETE
|
|
228
|
+
*/
|
|
229
|
+
open(method: string, url: string): void;
|
|
230
|
+
/**
|
|
231
|
+
* Deprecated method.
|
|
232
|
+
* @deprecated Use open instead.
|
|
233
|
+
*/
|
|
234
|
+
open(method: string, url: string, async: boolean, user: string, password: string): void;
|
|
235
|
+
/**
|
|
236
|
+
* Opens the specified URL with the in parameter method specified Http method with given credentials [user,
|
|
237
|
+
* password] using HTTP basic authentication. The following methods are supported: GET, POST, HEAD, PUT,
|
|
238
|
+
* PATCH, OPTIONS, and DELETE
|
|
239
|
+
*/
|
|
240
|
+
open(method: string, url: string, user: string, password: string): void;
|
|
241
|
+
/**
|
|
242
|
+
* Sends an HTTP request.
|
|
243
|
+
*/
|
|
244
|
+
send(): void;
|
|
245
|
+
/**
|
|
246
|
+
* This method performs the actual HTTP communication. The text is sent as a request body. If the text is null no
|
|
247
|
+
* data will be sent to the HTTP server.
|
|
248
|
+
*/
|
|
249
|
+
send(text: string): void;
|
|
250
|
+
/**
|
|
251
|
+
* This method performs the actual HTTP communication. The text is sent as a request body. If the text is null no
|
|
252
|
+
* data will be sent to the HTTP server.
|
|
253
|
+
*/
|
|
254
|
+
send(text: string, encoding: string): void;
|
|
255
|
+
/**
|
|
256
|
+
* This method performs the actual HTTP communication. Sends the file to the HTTP server. The file content is sent
|
|
257
|
+
* as a request body and is sent "as-is" (text or binary).
|
|
258
|
+
*/
|
|
259
|
+
send(file: File): void;
|
|
260
|
+
/**
|
|
261
|
+
* This method performs the actual HTTP communication. If the file is null no data will be sent to the HTTP server.
|
|
262
|
+
* If this method is used with a GET then the file parameter will contain the contents retrieved. When using this
|
|
263
|
+
* method with a PUT/POST then the contents of the file parameter will be sent to the server.
|
|
264
|
+
*/
|
|
265
|
+
sendAndReceiveToFile(file: File): boolean;
|
|
266
|
+
/**
|
|
267
|
+
* This method performs the actual HTTP communication. If the text is null no data will be sent to the HTTP server.
|
|
268
|
+
*/
|
|
269
|
+
sendAndReceiveToFile(text: string, outFile: File): boolean;
|
|
270
|
+
/**
|
|
271
|
+
* This method performs the actual HTTP communication. If the text is null no data will be sent to the HTTP server.
|
|
272
|
+
*/
|
|
273
|
+
sendAndReceiveToFile(text: string, encoding: string, outFile: File): boolean;
|
|
274
|
+
/**
|
|
275
|
+
* This method performs the actual HTTP communication. The bytes are sent as a request body. If the bytes are null no
|
|
276
|
+
* data will be sent to the HTTP server.
|
|
277
|
+
*/
|
|
278
|
+
sendBytes(body: Bytes): void;
|
|
279
|
+
/**
|
|
280
|
+
* This method performs the actual HTTP communication. If the body is null no data will be sent to the HTTP server.
|
|
281
|
+
* @throws IOException
|
|
282
|
+
*/
|
|
283
|
+
sendBytesAndReceiveToFile(body: Bytes, outFile: File): boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Sends a multipart HTTP request. This method should only be called if the connection to the remote URL was opened
|
|
286
|
+
* with a POST or PATCH method. All other methods will result in an exception being thrown. The request is constructed
|
|
287
|
+
* from the passed array of parts.
|
|
288
|
+
*/
|
|
289
|
+
sendMultiPart(parts: HTTPRequestPart[]): boolean;
|
|
290
|
+
/**
|
|
291
|
+
* Sets whether automatic HTTP redirect handling is enabled.
|
|
292
|
+
* The default value is true. Set it to false to disable all redirects.
|
|
293
|
+
*/
|
|
294
|
+
setAllowRedirect(allowRedirect: boolean): void;
|
|
295
|
+
/**
|
|
296
|
+
* Sets whether certificate host name verification is enabled.
|
|
297
|
+
* The default value is true. Set it to false to disable host name verification.
|
|
298
|
+
*/
|
|
299
|
+
setHostNameVerification(enable: boolean): void;
|
|
300
|
+
/**
|
|
301
|
+
* Sets the identity (private key) to use when mutual TLS (mTLS) is configured.
|
|
302
|
+
*
|
|
303
|
+
* If this is not set and mTLS is used then the private key will be chosen from the key store based on the host
|
|
304
|
+
* name.
|
|
305
|
+
* If this is set to a reference named "__NONE__" then no private key will be used even if one is requested by the remote server.
|
|
306
|
+
*/
|
|
307
|
+
setIdentity(keyRef: KeyRef): void;
|
|
308
|
+
/**
|
|
309
|
+
* Sets the logging configuration for this HTTP client.
|
|
310
|
+
*/
|
|
311
|
+
setLoggingConfig(config: HTTPClientLoggingConfig): void;
|
|
312
|
+
/**
|
|
313
|
+
* Sets a request header for the next HTTP operation.
|
|
314
|
+
*/
|
|
315
|
+
setRequestHeader(key: string, value: string): void;
|
|
316
|
+
/**
|
|
317
|
+
* Sets the timeout for connections made with this client to the given number of milliseconds. If the given timeout
|
|
318
|
+
* is less than or equal to zero, the timeout is set to a maximum value of 2 or 15 minutes, depending on the
|
|
319
|
+
* context.
|
|
320
|
+
*
|
|
321
|
+
* This timeout value controls both the "connection timeout" (how long it takes to connect to the remote host) and
|
|
322
|
+
* the "socket timeout" (how long, after connecting, it will wait without any data being read). Therefore, in the
|
|
323
|
+
* worst case scenario, the total time of inactivity could be twice as long as the specified value.
|
|
324
|
+
*
|
|
325
|
+
* The maximum timeout is 15 minutes when the client is used in a job, and 2 minutes otherwise. The default timeout
|
|
326
|
+
* for a new client is the maximum timeout value.
|
|
327
|
+
*
|
|
328
|
+
* This method can be called at any time, and will affect the next connection made with this client. It is not
|
|
329
|
+
* possible to set the timeout for an open connection.
|
|
330
|
+
*
|
|
331
|
+
* You should always set a reasonable timeout (e.g., a few seconds). Allowing connections to run long can result
|
|
332
|
+
* in thread exhaustion.
|
|
333
|
+
*/
|
|
334
|
+
setTimeout(timeoutMillis: number): void;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export = HTTPClient;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Script API for configuring HTTP client logging and sensitive data redaction.
|
|
3
|
+
*
|
|
4
|
+
* This class provides a customer-facing interface for configuring HTTP client logging behavior, including
|
|
5
|
+
* enabling/disabling logging, setting log levels, and defining sensitive fields that should be redacted from HTTP
|
|
6
|
+
* request and response bodies.
|
|
7
|
+
*
|
|
8
|
+
* Security Note: This class handles sensitive security-related data and logging
|
|
9
|
+
* configuration. Pay special attention to PCI DSS requirements when configuring sensitive field redaction to ensure
|
|
10
|
+
* proper data protection.
|
|
11
|
+
* Sensitive Fields of appropriate types MUST be set else logging will be skipped.
|
|
12
|
+
*
|
|
13
|
+
* Usage Example:
|
|
14
|
+
*
|
|
15
|
+
* ```
|
|
16
|
+
* var config = new dw.net.HTTPClientLoggingConfig();
|
|
17
|
+
* // Enable logging and set level
|
|
18
|
+
* config.setEnabled(true);
|
|
19
|
+
* config.setLevel("INFO");
|
|
20
|
+
* // Configure sensitive JSON fields
|
|
21
|
+
* config.setSensitiveJsonFields(["password", "creditCard", "ssn"]);
|
|
22
|
+
* // Configure sensitive XML fields
|
|
23
|
+
* config.setSensitiveXmlFields(["password", "creditCard", "ssn"]);
|
|
24
|
+
* // Configure sensitive headers
|
|
25
|
+
* config.setSensitiveHeaders(["authorization", "x-api-key", "cookie"]);
|
|
26
|
+
* // Configure sensitive body fields (for form data)
|
|
27
|
+
* config.setSensitiveBodyFields(["password", "creditCard", "ssn"]);
|
|
28
|
+
* // Configure text patterns for plain text/HTML content
|
|
29
|
+
* config.setSensitiveTextPatterns([["password\\s*=\\s*[^\\s&]+"]]);
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* Content Type Support:
|
|
33
|
+
*
|
|
34
|
+
* - JSON: Use setSensitiveJsonFields() to specify field names to redact
|
|
35
|
+
* - XML: Use setSensitiveXmlFields() to specify element/attribute names to redact
|
|
36
|
+
* - Form Data: Use setSensitiveBodyFields() to specify parameter names to redact
|
|
37
|
+
* - Plain Text/HTML: Use setSensitiveTextPatterns() to specify regex patterns
|
|
38
|
+
* - Binary/Multipart: Entire body is automatically treated as sensitive
|
|
39
|
+
*/
|
|
40
|
+
declare class HTTPClientLoggingConfig {
|
|
41
|
+
/**
|
|
42
|
+
* Gets whether HTTP client logging is enabled.
|
|
43
|
+
*/
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the current log level for HTTP client logging.
|
|
47
|
+
*/
|
|
48
|
+
level: string;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the sensitive body fields configured for form data redaction.
|
|
51
|
+
*/
|
|
52
|
+
sensitiveBodyFields: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Gets the sensitive headers configured for redaction.
|
|
55
|
+
*/
|
|
56
|
+
sensitiveHeaders: string[];
|
|
57
|
+
/**
|
|
58
|
+
* Gets the sensitive JSON fields configured for redaction.
|
|
59
|
+
*/
|
|
60
|
+
sensitiveJsonFields: string[];
|
|
61
|
+
/**
|
|
62
|
+
* Gets the sensitive XML fields configured for redaction.
|
|
63
|
+
*/
|
|
64
|
+
sensitiveXmlFields: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new HTTPClientLoggingConfig instance.
|
|
67
|
+
*
|
|
68
|
+
* The public constructor should only be called from JavaScript, but cfgAPI uses this constructor for creating the
|
|
69
|
+
* Service instance -> so fill the factory here
|
|
70
|
+
*/
|
|
71
|
+
constructor();
|
|
72
|
+
/**
|
|
73
|
+
* Gets the current log level for HTTP client logging.
|
|
74
|
+
*/
|
|
75
|
+
getLevel(): string;
|
|
76
|
+
/**
|
|
77
|
+
* Gets the sensitive body fields configured for form data redaction.
|
|
78
|
+
*/
|
|
79
|
+
getSensitiveBodyFields(): string[];
|
|
80
|
+
/**
|
|
81
|
+
* Gets the sensitive headers configured for redaction.
|
|
82
|
+
*/
|
|
83
|
+
getSensitiveHeaders(): string[];
|
|
84
|
+
/**
|
|
85
|
+
* Gets the sensitive JSON fields configured for redaction.
|
|
86
|
+
*/
|
|
87
|
+
getSensitiveJsonFields(): string[];
|
|
88
|
+
/**
|
|
89
|
+
* Gets the sensitive XML fields configured for redaction.
|
|
90
|
+
*/
|
|
91
|
+
getSensitiveXmlFields(): string[];
|
|
92
|
+
/**
|
|
93
|
+
* Gets whether HTTP client logging is enabled.
|
|
94
|
+
*/
|
|
95
|
+
isEnabled(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Sets whether HTTP client logging is enabled.
|
|
98
|
+
*
|
|
99
|
+
* When enabled, HTTP requests and responses will be logged according to the configured log level and sensitive
|
|
100
|
+
* field redaction settings. When disabled, no HTTP logging will occur.
|
|
101
|
+
*/
|
|
102
|
+
setEnabled(enabled: boolean): void;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the log level for HTTP client logging.
|
|
105
|
+
*
|
|
106
|
+
* The log level determines the verbosity of HTTP logging output. Available levels:
|
|
107
|
+
*
|
|
108
|
+
* - DEBUG: Most verbose, includes detailed request/response information
|
|
109
|
+
* - INFO: Standard level, includes basic request/response details
|
|
110
|
+
* - WARN: Only logs warnings and errors
|
|
111
|
+
* - ERROR: Only logs errors
|
|
112
|
+
*/
|
|
113
|
+
setLevel(level: string): void;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the sensitive body fields that should be redacted from HTTP form data.
|
|
116
|
+
*
|
|
117
|
+
* When HTTP requests or responses contain form data (application/x-www-form-urlencoded), any parameters matching
|
|
118
|
+
* the specified field names will be redacted with "****FILTERED****" in the logs.
|
|
119
|
+
* Sensitive Field MUST be set else logging will be skipped for form body type
|
|
120
|
+
* Setting with empty array will use default values ["name", "email", "email_address", "ssn", "first_name", "last_name"]
|
|
121
|
+
*
|
|
122
|
+
* Example:
|
|
123
|
+
* @example
|
|
124
|
+
* config.setSensitiveBodyFields(["fname", "creditCard", "ssn_last_4"]);
|
|
125
|
+
*/
|
|
126
|
+
setSensitiveBodyFields(fields: string[]): void;
|
|
127
|
+
/**
|
|
128
|
+
* Sets the sensitive headers that should be redacted from HTTP requests/responses.
|
|
129
|
+
*
|
|
130
|
+
* Any HTTP headers matching the specified names will be redacted with "****FILTERED****" in the logs. This is useful for
|
|
131
|
+
* protecting sensitive authentication tokens, API keys, and session information.
|
|
132
|
+
* Sensitive Headers MUST be set else logging will be skipped for headers
|
|
133
|
+
* Setting the sensitive headers with empty array will use default values ["authorization", "cookie"]
|
|
134
|
+
*
|
|
135
|
+
* Example:
|
|
136
|
+
* @example
|
|
137
|
+
* config.setSensitiveHeaders([ "x-api-key", "x-auth-token"]);
|
|
138
|
+
* config.setSensiviteHeaders([]);
|
|
139
|
+
*/
|
|
140
|
+
setSensitiveHeaders(headers: string[]): void;
|
|
141
|
+
/**
|
|
142
|
+
* Sets the sensitive JSON fields that should be redacted from HTTP request/response bodies.
|
|
143
|
+
*
|
|
144
|
+
* When HTTP requests or responses contain JSON content, any fields matching the specified names will be redacted
|
|
145
|
+
* with "****FILTERED****" in the logs.
|
|
146
|
+
* Sensitive Field MUST be set else logging will be skipped for JSON body type
|
|
147
|
+
* Setting with empty array will use default values ["name", "email", "email_address", "ssn", "first_name", "last_name", "password"]
|
|
148
|
+
*
|
|
149
|
+
* Example:
|
|
150
|
+
* @example
|
|
151
|
+
* config.setSensitiveJsonFields(["password", "creditCard", "ssn"]);
|
|
152
|
+
*/
|
|
153
|
+
setSensitiveJsonFields(fields: string[]): void;
|
|
154
|
+
/**
|
|
155
|
+
* Sets the sensitive text patterns that should be redacted from HTTP request/response bodies.
|
|
156
|
+
*
|
|
157
|
+
* When HTTP requests or responses contain text content, any text matching the specified regex patterns will be
|
|
158
|
+
* redacted with "****FILTERED****" in the logs.
|
|
159
|
+
*
|
|
160
|
+
* Example:
|
|
161
|
+
* @example
|
|
162
|
+
* config.setSensitiveTextPatterns(["password", "credit.*card", "\\d{3}-\\d{2}-\\d{4}"]);
|
|
163
|
+
*/
|
|
164
|
+
setSensitiveTextPatterns(patterns: string[]): void;
|
|
165
|
+
/**
|
|
166
|
+
* Sets the sensitive XML fields that should be redacted from HTTP request/response bodies.
|
|
167
|
+
*
|
|
168
|
+
* When HTTP requests or responses contain XML content, any elements or attributes matching the specified names will
|
|
169
|
+
* be redacted with "****FILTERED****" in the logs.
|
|
170
|
+
* Sensitive Field MUST be set else logging will be skipped for XML body type
|
|
171
|
+
* Setting with empty array will use default values ["name", "email", "email_address", "ssn", "first_name", "last_name", "password"]
|
|
172
|
+
*
|
|
173
|
+
* Example:
|
|
174
|
+
* @example
|
|
175
|
+
* config.setSensitiveXmlFields(["password", "creditCard", "ssn"]);
|
|
176
|
+
*/
|
|
177
|
+
setSensitiveXmlFields(fields: string[]): void;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export = HTTPClientLoggingConfig;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import File = require('../io/File');
|
|
2
|
+
import Bytes = require('../util/Bytes');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This represents a part in a multi-part HTTP POST request.
|
|
6
|
+
*
|
|
7
|
+
* A part always has a name and value. The value may be a String, Bytes, or the contents of a File.
|
|
8
|
+
*
|
|
9
|
+
* A character encoding may be specified for any of these, and the content type and a file name may additionally be
|
|
10
|
+
* specified for the Bytes and File types.
|
|
11
|
+
*
|
|
12
|
+
* Note: when this class is used with sensitive data, be careful in persisting sensitive information.
|
|
13
|
+
*/
|
|
14
|
+
declare class HTTPRequestPart {
|
|
15
|
+
/**
|
|
16
|
+
* Get the Bytes value of the part.
|
|
17
|
+
*/
|
|
18
|
+
readonly bytesValue: Bytes | null;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the content type of this part.
|
|
21
|
+
*/
|
|
22
|
+
readonly contentType: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Get the charset to be used to encode the string.
|
|
25
|
+
*/
|
|
26
|
+
readonly encoding: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Get the file name to use when sending a file part.
|
|
29
|
+
*/
|
|
30
|
+
readonly fileName: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Get the file value of the part.
|
|
33
|
+
*/
|
|
34
|
+
readonly fileValue: File | null;
|
|
35
|
+
/**
|
|
36
|
+
* Get the name of the part.
|
|
37
|
+
*/
|
|
38
|
+
readonly name: string;
|
|
39
|
+
/**
|
|
40
|
+
* Get the string value of the part.
|
|
41
|
+
*/
|
|
42
|
+
readonly stringValue: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Construct a part representing a simple string name/value pair. The HTTP
|
|
45
|
+
* message uses "US-ASCII" as the default character set for the part.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name: string, value: string);
|
|
48
|
+
/**
|
|
49
|
+
* Construct a part representing a simple string name/value pair. The HTTP
|
|
50
|
+
* message uses the specified encoding or "US-ASCII" if null is passed
|
|
51
|
+
* for the part.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, value: string, encoding: string);
|
|
54
|
+
/**
|
|
55
|
+
* Construct a part representing a name/File pair. The HTTP message will use
|
|
56
|
+
* "application/octet-stream" as the content type and "ISO-8859-1" as the character
|
|
57
|
+
* set for the part.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, file: File);
|
|
60
|
+
/**
|
|
61
|
+
* Construct a part representing a name/bytes pair. The HTTP message will use
|
|
62
|
+
* "application/octet-stream" as the content type without a character set.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, data: Bytes);
|
|
65
|
+
/**
|
|
66
|
+
* Construct a part representing a name/File pair.
|
|
67
|
+
*
|
|
68
|
+
* - If both contentType and encoding are null, then the part will be defaulted to use "application/octet-stream"
|
|
69
|
+
* as the content-type without an encoding.
|
|
70
|
+
* - If only the encoding is null, then the contentType will be used without an encoding.
|
|
71
|
+
* - If only the contentType is null, then it will be defaulted to "text/plain".
|
|
72
|
+
*/
|
|
73
|
+
constructor(name: string, data: Bytes, contentType: string | null, encoding: string | null, fileName: string | null);
|
|
74
|
+
/**
|
|
75
|
+
* Construct a part representing a name/File pair.
|
|
76
|
+
*
|
|
77
|
+
* - If both contentType and encoding are null, then the part will be defaulted to use "application/octet-stream"
|
|
78
|
+
* as the content-type and "ISO-8859-1" as the encoding.
|
|
79
|
+
* - If only the encoding is null, then the contentType will be used without an encoding.
|
|
80
|
+
* - If only the contentType is null, then it will be defaulted to "text/plain".
|
|
81
|
+
*/
|
|
82
|
+
constructor(name: string, file: File, contentType: string | null, encoding: string | null);
|
|
83
|
+
/**
|
|
84
|
+
* Construct a part representing a name/File pair.
|
|
85
|
+
*
|
|
86
|
+
* - If both contentType and encoding are null, then the part will be defaulted to use "application/octet-stream"
|
|
87
|
+
* as the content-type and "ISO-8859-1" as the encoding.
|
|
88
|
+
* - If only the encoding is null, then the contentType will be used without an encoding.
|
|
89
|
+
* - If only the contentType is null, then it will be defaulted to "text/plain".
|
|
90
|
+
*/
|
|
91
|
+
constructor(name: string, file: File, contentType: string | null, encoding: string | null, fileName: string | null);
|
|
92
|
+
/**
|
|
93
|
+
* Get the Bytes value of the part.
|
|
94
|
+
*/
|
|
95
|
+
getBytesValue(): Bytes | null;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the content type of this part.
|
|
98
|
+
*/
|
|
99
|
+
getContentType(): string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Get the charset to be used to encode the string.
|
|
102
|
+
*/
|
|
103
|
+
getEncoding(): string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Get the file name to use when sending a file part.
|
|
106
|
+
*/
|
|
107
|
+
getFileName(): string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Get the file value of the part.
|
|
110
|
+
*/
|
|
111
|
+
getFileValue(): File | null;
|
|
112
|
+
/**
|
|
113
|
+
* Get the name of the part.
|
|
114
|
+
*/
|
|
115
|
+
getName(): string;
|
|
116
|
+
/**
|
|
117
|
+
* Get the string value of the part.
|
|
118
|
+
*/
|
|
119
|
+
getStringValue(): string | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export = HTTPRequestPart;
|