@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
package/dist/script-types/node_modules/@salesforce/b2c-script-types/types/dw/io/XMLStreamReader.d.ts
ADDED
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import Reader = require('./Reader');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The XMLStreamReader allows forward, read-only access to XML. It is designed
|
|
5
|
+
* to be the lowest level and most efficient way to read XML data.
|
|
6
|
+
*
|
|
7
|
+
* The XMLStreamReader is designed to iterate over XML using
|
|
8
|
+
* next() and hasNext(). The data can be accessed using methods such as getEventType(),
|
|
9
|
+
* getNamespaceURI(), getLocalName() and getText();
|
|
10
|
+
*
|
|
11
|
+
* The next method causes the reader to read the next parse event.
|
|
12
|
+
* The next() method returns an integer which identifies the type of event just read.
|
|
13
|
+
*
|
|
14
|
+
* The event type can be determined using getEventType.
|
|
15
|
+
*
|
|
16
|
+
* Parsing events are defined as the XML Declaration, a DTD,
|
|
17
|
+
* start tag, character data, white space, end tag, comment,
|
|
18
|
+
* or processing instruction. An attribute or namespace event may be encountered
|
|
19
|
+
* at the root level of a document as the result of a query operation.
|
|
20
|
+
*
|
|
21
|
+
* The following table describes which methods are valid in what state.
|
|
22
|
+
* If a method is called in an invalid state the method will throw a
|
|
23
|
+
* java.lang.IllegalStateException.
|
|
24
|
+
*
|
|
25
|
+
* Valid methods for each state
|
|
26
|
+
*
|
|
27
|
+
* Event Type
|
|
28
|
+
* Valid Methods
|
|
29
|
+
*
|
|
30
|
+
* All States
|
|
31
|
+
* getProperty(), hasNext(), require(), close(),
|
|
32
|
+
* getNamespaceURI(), isStartElement(),
|
|
33
|
+
* isEndElement(), isCharacters(), isWhiteSpace(),
|
|
34
|
+
* getNamespaceContext(), getEventType(),getLocation(),
|
|
35
|
+
* hasText(), hasName()
|
|
36
|
+
*
|
|
37
|
+
* START_ELEMENT
|
|
38
|
+
* next(), getName(), getLocalName(), hasName(), getPrefix(),
|
|
39
|
+
* getAttributeXXX(), isAttributeSpecified(),
|
|
40
|
+
* getNamespaceXXX(),
|
|
41
|
+
* getElementText(), nextTag(), getXMLObject()
|
|
42
|
+
*
|
|
43
|
+
* ATTRIBUTE
|
|
44
|
+
* next(), nextTag()
|
|
45
|
+
* getAttributeXXX(), isAttributeSpecified(),
|
|
46
|
+
*
|
|
47
|
+
* NAMESPACE
|
|
48
|
+
* next(), nextTag()
|
|
49
|
+
* getNamespaceXXX()
|
|
50
|
+
*
|
|
51
|
+
* END_ELEMENT
|
|
52
|
+
* next(), getName(), getLocalName(), hasName(), getPrefix(),
|
|
53
|
+
* getNamespaceXXX(), nextTag()
|
|
54
|
+
*
|
|
55
|
+
* CHARACTERS
|
|
56
|
+
* next(), getTextXXX(), nextTag()
|
|
57
|
+
*
|
|
58
|
+
* CDATA
|
|
59
|
+
* next(), getTextXXX(), nextTag()
|
|
60
|
+
*
|
|
61
|
+
* COMMENT
|
|
62
|
+
* next(), getTextXXX(), nextTag()
|
|
63
|
+
*
|
|
64
|
+
* SPACE
|
|
65
|
+
* next(), getTextXXX(), nextTag()
|
|
66
|
+
*
|
|
67
|
+
* START_DOCUMENT
|
|
68
|
+
* next(), getEncoding(), getVersion(), isStandalone(), standaloneSet(),
|
|
69
|
+
* getCharacterEncodingScheme(), nextTag()
|
|
70
|
+
*
|
|
71
|
+
* END_DOCUMENT
|
|
72
|
+
* close()
|
|
73
|
+
*
|
|
74
|
+
* PROCESSING_INSTRUCTION
|
|
75
|
+
* next(), getPITarget(), getPIData(), nextTag()
|
|
76
|
+
*
|
|
77
|
+
* ENTITY_REFERENCE
|
|
78
|
+
* next(), getLocalName(), getText(), nextTag()
|
|
79
|
+
*
|
|
80
|
+
* DTD
|
|
81
|
+
* next(), getText(), nextTag()
|
|
82
|
+
*
|
|
83
|
+
* The following is a code sample to read an XML file containing multiple
|
|
84
|
+
* "myobject" sub-elements. Only one myObject instance is kept in memory at
|
|
85
|
+
* any given time to keep memory consumption low:
|
|
86
|
+
* @example
|
|
87
|
+
* var fileReader : FileReader = new FileReader(file, "UTF-8");
|
|
88
|
+
* var xmlStreamReader : XMLStreamReader = new XMLStreamReader(fileReader);
|
|
89
|
+
*
|
|
90
|
+
* while (xmlStreamReader.hasNext())
|
|
91
|
+
* {
|
|
92
|
+
* if (xmlStreamReader.next() == XMLStreamConstants.START_ELEMENT)
|
|
93
|
+
* {
|
|
94
|
+
* var localElementName : String = xmlStreamReader.getLocalName();
|
|
95
|
+
* if (localElementName == "myobject")
|
|
96
|
+
* {
|
|
97
|
+
* // read single "myobject" as XML
|
|
98
|
+
* var myObject : XML = xmlStreamReader.getXMLObject();
|
|
99
|
+
*
|
|
100
|
+
* // process myObject
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
*
|
|
105
|
+
* xmlStreamReader.close();
|
|
106
|
+
* fileReader.close();
|
|
107
|
+
*/
|
|
108
|
+
declare class XMLStreamReader {
|
|
109
|
+
/**
|
|
110
|
+
* Get the data section of a processing instruction.
|
|
111
|
+
*/
|
|
112
|
+
readonly PIData: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Get the target of a processing instruction.
|
|
115
|
+
*/
|
|
116
|
+
readonly PITarget: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Reads a sub-tree of the XML document and parses it as XML object.
|
|
119
|
+
*
|
|
120
|
+
* The stream must be positioned on a START_ELEMENT. Do not call the method
|
|
121
|
+
* when the stream is positioned at document's root element. This would
|
|
122
|
+
* cause the whole document to be parsed into a single XML what may lead to
|
|
123
|
+
* an out-of-memory condition. Instead use #next() to navigate to
|
|
124
|
+
* sub-elements and invoke getXMLObject() there. Do not keep references to
|
|
125
|
+
* more than the currently processed XML to keep memory consumption low. The
|
|
126
|
+
* method reads the stream up to the matching END_ELEMENT. When the method
|
|
127
|
+
* returns the current event is the END_ELEMENT event.
|
|
128
|
+
* @deprecated Use readXMLObject
|
|
129
|
+
*/
|
|
130
|
+
readonly XMLObject: any;
|
|
131
|
+
/**
|
|
132
|
+
* Returns the count of attributes on this START_ELEMENT,
|
|
133
|
+
* this method is only valid on a START_ELEMENT or ATTRIBUTE. This
|
|
134
|
+
* count excludes namespace definitions. Attribute indices are
|
|
135
|
+
* zero-based.
|
|
136
|
+
*/
|
|
137
|
+
readonly attributeCount: number;
|
|
138
|
+
/**
|
|
139
|
+
* Returns the character encoding declared on the XML declaration
|
|
140
|
+
* Returns null if none was declared.
|
|
141
|
+
*/
|
|
142
|
+
readonly characterEncodingScheme: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Identifies if the cursor points to a character data event.
|
|
145
|
+
*/
|
|
146
|
+
readonly characters: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Returns the column number where the current event ends or -1 if none is
|
|
149
|
+
* available.
|
|
150
|
+
*/
|
|
151
|
+
readonly columnNumber: number;
|
|
152
|
+
/**
|
|
153
|
+
* Reads the content of a text-only element, an exception is thrown if this is not a text-only element. This method
|
|
154
|
+
* always returns coalesced content.
|
|
155
|
+
*
|
|
156
|
+
* Precondition: the current event is START_ELEMENT.
|
|
157
|
+
*
|
|
158
|
+
* Postcondition: the current event is the corresponding END_ELEMENT.
|
|
159
|
+
*
|
|
160
|
+
* The method does the following (implementations are free to be optimized but must do equivalent processing):
|
|
161
|
+
* @example
|
|
162
|
+
* if ( getEventType() != XMLStreamConstants.START_ELEMENT )
|
|
163
|
+
* {
|
|
164
|
+
* throw new XMLStreamException( "parser must be on START_ELEMENT to read next text", getLocation() );
|
|
165
|
+
* }
|
|
166
|
+
* int eventType = next();
|
|
167
|
+
* StringBuffer content = new StringBuffer();
|
|
168
|
+
* while ( eventType != XMLStreamConstants.END_ELEMENT )
|
|
169
|
+
* {
|
|
170
|
+
* if ( eventType == XMLStreamConstants.CHARACTERS || eventType == XMLStreamConstants.CDATA
|
|
171
|
+
* || eventType == XMLStreamConstants.SPACE || eventType == XMLStreamConstants.ENTITY_REFERENCE )
|
|
172
|
+
* {
|
|
173
|
+
* buf.append( getText() );
|
|
174
|
+
* }
|
|
175
|
+
* else if ( eventType == XMLStreamConstants.PROCESSING_INSTRUCTION || eventType == XMLStreamConstants.COMMENT )
|
|
176
|
+
* {
|
|
177
|
+
* // skipping
|
|
178
|
+
* }
|
|
179
|
+
* else if ( eventType == XMLStreamConstants.END_DOCUMENT )
|
|
180
|
+
* {
|
|
181
|
+
* throw new XMLStreamException( "unexpected end of document when reading element text content", this );
|
|
182
|
+
* }
|
|
183
|
+
* else if ( eventType == XMLStreamConstants.START_ELEMENT )
|
|
184
|
+
* {
|
|
185
|
+
* throw new XMLStreamException( "element text content may not contain START_ELEMENT", getLocation() );
|
|
186
|
+
* }
|
|
187
|
+
* else
|
|
188
|
+
* {
|
|
189
|
+
* throw new XMLStreamException( "Unexpected event type " + eventType, getLocation() );
|
|
190
|
+
* }
|
|
191
|
+
* eventType = next();
|
|
192
|
+
* }
|
|
193
|
+
* return buf.toString();
|
|
194
|
+
* @deprecated Use readElementText
|
|
195
|
+
*/
|
|
196
|
+
readonly elementText: string;
|
|
197
|
+
/**
|
|
198
|
+
* Return input encoding if known or null if unknown.
|
|
199
|
+
*/
|
|
200
|
+
readonly encoding: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Identifies if the cursor points to an end tag.
|
|
203
|
+
*/
|
|
204
|
+
readonly endElement: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Returns an integer code that indicates the type
|
|
207
|
+
* of the event the cursor is pointing to.
|
|
208
|
+
*/
|
|
209
|
+
readonly eventType: number;
|
|
210
|
+
/**
|
|
211
|
+
* Returns the line number where the current event ends or -1 if none is
|
|
212
|
+
* available.
|
|
213
|
+
*/
|
|
214
|
+
readonly lineNumber: number;
|
|
215
|
+
/**
|
|
216
|
+
* Returns the (local) name of the current event.
|
|
217
|
+
* For START_ELEMENT or END_ELEMENT returns the (local) name of the current element.
|
|
218
|
+
* For ENTITY_REFERENCE it returns entity name.
|
|
219
|
+
* The current event must be START_ELEMENT or END_ELEMENT,
|
|
220
|
+
* or ENTITY_REFERENCE.
|
|
221
|
+
*/
|
|
222
|
+
readonly localName: string;
|
|
223
|
+
/**
|
|
224
|
+
* Returns the count of namespaces declared on this START_ELEMENT or END_ELEMENT,
|
|
225
|
+
* this method is only valid on a START_ELEMENT, END_ELEMENT or NAMESPACE. On
|
|
226
|
+
* an END_ELEMENT the count is of the namespaces that are about to go
|
|
227
|
+
* out of scope. This is the equivalent of the information reported
|
|
228
|
+
* by SAX callback for an end element event.
|
|
229
|
+
*/
|
|
230
|
+
readonly namespaceCount: number;
|
|
231
|
+
/**
|
|
232
|
+
* If the current event is a START_ELEMENT or END_ELEMENT this method
|
|
233
|
+
* returns the URI of the prefix or the default namespace.
|
|
234
|
+
* Returns null if the event does not have a prefix.
|
|
235
|
+
*/
|
|
236
|
+
readonly namespaceURI: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the prefix of the current event or null if the event does not have a prefix
|
|
239
|
+
*/
|
|
240
|
+
readonly prefix: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* Get the standalone declaration from the xml declaration.
|
|
243
|
+
*/
|
|
244
|
+
readonly standalone: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Identifies if the cursor points to a start tag.
|
|
247
|
+
*/
|
|
248
|
+
readonly startElement: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Returns the current value of the parse event as a string,
|
|
251
|
+
* this returns the string value of a CHARACTERS event,
|
|
252
|
+
* returns the value of a COMMENT, the replacement value
|
|
253
|
+
* for an ENTITY_REFERENCE, the string value of a CDATA section,
|
|
254
|
+
* the string value for a SPACE event,
|
|
255
|
+
* or the String value of the internal subset of the DTD.
|
|
256
|
+
* If an ENTITY_REFERENCE has been resolved, any character data
|
|
257
|
+
* will be reported as CHARACTERS events.
|
|
258
|
+
*/
|
|
259
|
+
readonly text: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* Returns the length of the sequence of characters for this
|
|
262
|
+
* Text event within the text character array.
|
|
263
|
+
*/
|
|
264
|
+
readonly textLength: number;
|
|
265
|
+
/**
|
|
266
|
+
* Returns the offset into the text character array where the first
|
|
267
|
+
* character (of this text event) is stored.
|
|
268
|
+
*/
|
|
269
|
+
readonly textStart: number;
|
|
270
|
+
/**
|
|
271
|
+
* Get the xml version declared on the xml declaration.
|
|
272
|
+
* Returns null if none was declared.
|
|
273
|
+
*/
|
|
274
|
+
readonly version: string | null;
|
|
275
|
+
/**
|
|
276
|
+
* Identifies if the cursor points to a character data event
|
|
277
|
+
* that consists of all whitespace.
|
|
278
|
+
*/
|
|
279
|
+
readonly whiteSpace: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Constructs the stream readon on behalf of the reader.
|
|
282
|
+
*/
|
|
283
|
+
constructor(reader: Reader);
|
|
284
|
+
/**
|
|
285
|
+
* Frees any resources associated with this Reader. This method does not close the
|
|
286
|
+
* underlying reader.
|
|
287
|
+
*/
|
|
288
|
+
close(): void;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the count of attributes on this START_ELEMENT,
|
|
291
|
+
* this method is only valid on a START_ELEMENT or ATTRIBUTE. This
|
|
292
|
+
* count excludes namespace definitions. Attribute indices are
|
|
293
|
+
* zero-based.
|
|
294
|
+
*/
|
|
295
|
+
getAttributeCount(): number;
|
|
296
|
+
/**
|
|
297
|
+
* Returns the localName of the attribute at the provided
|
|
298
|
+
* index.
|
|
299
|
+
*/
|
|
300
|
+
getAttributeLocalName(index: number): string;
|
|
301
|
+
/**
|
|
302
|
+
* Returns the namespace of the attribute at the provided
|
|
303
|
+
* index.
|
|
304
|
+
*/
|
|
305
|
+
getAttributeNamespace(index: number): string;
|
|
306
|
+
/**
|
|
307
|
+
* Returns the prefix of this attribute at the
|
|
308
|
+
* provided index.
|
|
309
|
+
*/
|
|
310
|
+
getAttributePrefix(index: number): string;
|
|
311
|
+
/**
|
|
312
|
+
* Returns the XML type of the attribute at the provided
|
|
313
|
+
* index.
|
|
314
|
+
*/
|
|
315
|
+
getAttributeType(index: number): string;
|
|
316
|
+
/**
|
|
317
|
+
* Returns the normalized attribute value of the
|
|
318
|
+
* attribute with the namespace and localName
|
|
319
|
+
* If the namespaceURI is null the namespace
|
|
320
|
+
* is not checked for equality
|
|
321
|
+
*/
|
|
322
|
+
getAttributeValue(namespaceURI: string, localName: string): string | null;
|
|
323
|
+
/**
|
|
324
|
+
* Returns the value of the attribute at the
|
|
325
|
+
* index.
|
|
326
|
+
*/
|
|
327
|
+
getAttributeValue(index: number): string;
|
|
328
|
+
/**
|
|
329
|
+
* Returns the character encoding declared on the XML declaration
|
|
330
|
+
* Returns null if none was declared.
|
|
331
|
+
*/
|
|
332
|
+
getCharacterEncodingScheme(): string | null;
|
|
333
|
+
/**
|
|
334
|
+
* Returns the column number where the current event ends or -1 if none is
|
|
335
|
+
* available.
|
|
336
|
+
*/
|
|
337
|
+
getColumnNumber(): number;
|
|
338
|
+
/**
|
|
339
|
+
* Reads the content of a text-only element, an exception is thrown if this is not a text-only element. This method
|
|
340
|
+
* always returns coalesced content.
|
|
341
|
+
*
|
|
342
|
+
* Precondition: the current event is START_ELEMENT.
|
|
343
|
+
*
|
|
344
|
+
* Postcondition: the current event is the corresponding END_ELEMENT.
|
|
345
|
+
*
|
|
346
|
+
* The method does the following (implementations are free to be optimized but must do equivalent processing):
|
|
347
|
+
* @example
|
|
348
|
+
* if ( getEventType() != XMLStreamConstants.START_ELEMENT )
|
|
349
|
+
* {
|
|
350
|
+
* throw new XMLStreamException( "parser must be on START_ELEMENT to read next text", getLocation() );
|
|
351
|
+
* }
|
|
352
|
+
* int eventType = next();
|
|
353
|
+
* StringBuffer content = new StringBuffer();
|
|
354
|
+
* while ( eventType != XMLStreamConstants.END_ELEMENT )
|
|
355
|
+
* {
|
|
356
|
+
* if ( eventType == XMLStreamConstants.CHARACTERS || eventType == XMLStreamConstants.CDATA
|
|
357
|
+
* || eventType == XMLStreamConstants.SPACE || eventType == XMLStreamConstants.ENTITY_REFERENCE )
|
|
358
|
+
* {
|
|
359
|
+
* buf.append( getText() );
|
|
360
|
+
* }
|
|
361
|
+
* else if ( eventType == XMLStreamConstants.PROCESSING_INSTRUCTION || eventType == XMLStreamConstants.COMMENT )
|
|
362
|
+
* {
|
|
363
|
+
* // skipping
|
|
364
|
+
* }
|
|
365
|
+
* else if ( eventType == XMLStreamConstants.END_DOCUMENT )
|
|
366
|
+
* {
|
|
367
|
+
* throw new XMLStreamException( "unexpected end of document when reading element text content", this );
|
|
368
|
+
* }
|
|
369
|
+
* else if ( eventType == XMLStreamConstants.START_ELEMENT )
|
|
370
|
+
* {
|
|
371
|
+
* throw new XMLStreamException( "element text content may not contain START_ELEMENT", getLocation() );
|
|
372
|
+
* }
|
|
373
|
+
* else
|
|
374
|
+
* {
|
|
375
|
+
* throw new XMLStreamException( "Unexpected event type " + eventType, getLocation() );
|
|
376
|
+
* }
|
|
377
|
+
* eventType = next();
|
|
378
|
+
* }
|
|
379
|
+
* return buf.toString();
|
|
380
|
+
* @deprecated Use readElementText
|
|
381
|
+
*/
|
|
382
|
+
getElementText(): string;
|
|
383
|
+
/**
|
|
384
|
+
* Return input encoding if known or null if unknown.
|
|
385
|
+
*/
|
|
386
|
+
getEncoding(): string | null;
|
|
387
|
+
/**
|
|
388
|
+
* Returns an integer code that indicates the type
|
|
389
|
+
* of the event the cursor is pointing to.
|
|
390
|
+
*/
|
|
391
|
+
getEventType(): number;
|
|
392
|
+
/**
|
|
393
|
+
* Returns the line number where the current event ends or -1 if none is
|
|
394
|
+
* available.
|
|
395
|
+
*/
|
|
396
|
+
getLineNumber(): number;
|
|
397
|
+
/**
|
|
398
|
+
* Returns the (local) name of the current event.
|
|
399
|
+
* For START_ELEMENT or END_ELEMENT returns the (local) name of the current element.
|
|
400
|
+
* For ENTITY_REFERENCE it returns entity name.
|
|
401
|
+
* The current event must be START_ELEMENT or END_ELEMENT,
|
|
402
|
+
* or ENTITY_REFERENCE.
|
|
403
|
+
*/
|
|
404
|
+
getLocalName(): string;
|
|
405
|
+
/**
|
|
406
|
+
* Returns the count of namespaces declared on this START_ELEMENT or END_ELEMENT,
|
|
407
|
+
* this method is only valid on a START_ELEMENT, END_ELEMENT or NAMESPACE. On
|
|
408
|
+
* an END_ELEMENT the count is of the namespaces that are about to go
|
|
409
|
+
* out of scope. This is the equivalent of the information reported
|
|
410
|
+
* by SAX callback for an end element event.
|
|
411
|
+
*/
|
|
412
|
+
getNamespaceCount(): number;
|
|
413
|
+
/**
|
|
414
|
+
* Returns the prefix for the namespace declared at the
|
|
415
|
+
* index. Returns null if this is the default namespace
|
|
416
|
+
* declaration.
|
|
417
|
+
*/
|
|
418
|
+
getNamespacePrefix(index: number): string | null;
|
|
419
|
+
/**
|
|
420
|
+
* Return the uri for the given prefix.
|
|
421
|
+
* The uri returned depends on the current state of the processor.
|
|
422
|
+
*
|
|
423
|
+
* NOTE:The 'xml' prefix is bound as defined in
|
|
424
|
+
* Namespaces in XML
|
|
425
|
+
* specification to "http://www.w3.org/XML/1998/namespace".
|
|
426
|
+
*
|
|
427
|
+
* NOTE: The 'xmlns' prefix must be resolved to following namespace
|
|
428
|
+
* http://www.w3.org/2000/xmlns/
|
|
429
|
+
*/
|
|
430
|
+
getNamespaceURI(prefix: string): string | null;
|
|
431
|
+
/**
|
|
432
|
+
* Returns the uri for the namespace declared at the
|
|
433
|
+
* index.
|
|
434
|
+
*/
|
|
435
|
+
getNamespaceURI(index: number): string;
|
|
436
|
+
/**
|
|
437
|
+
* If the current event is a START_ELEMENT or END_ELEMENT this method
|
|
438
|
+
* returns the URI of the prefix or the default namespace.
|
|
439
|
+
* Returns null if the event does not have a prefix.
|
|
440
|
+
*/
|
|
441
|
+
getNamespaceURI(): string | null;
|
|
442
|
+
/**
|
|
443
|
+
* Get the data section of a processing instruction.
|
|
444
|
+
*/
|
|
445
|
+
getPIData(): string | null;
|
|
446
|
+
/**
|
|
447
|
+
* Get the target of a processing instruction.
|
|
448
|
+
*/
|
|
449
|
+
getPITarget(): string | null;
|
|
450
|
+
/**
|
|
451
|
+
* Returns the prefix of the current event or null if the event does not have a prefix
|
|
452
|
+
*/
|
|
453
|
+
getPrefix(): string | null;
|
|
454
|
+
/**
|
|
455
|
+
* Returns the current value of the parse event as a string,
|
|
456
|
+
* this returns the string value of a CHARACTERS event,
|
|
457
|
+
* returns the value of a COMMENT, the replacement value
|
|
458
|
+
* for an ENTITY_REFERENCE, the string value of a CDATA section,
|
|
459
|
+
* the string value for a SPACE event,
|
|
460
|
+
* or the String value of the internal subset of the DTD.
|
|
461
|
+
* If an ENTITY_REFERENCE has been resolved, any character data
|
|
462
|
+
* will be reported as CHARACTERS events.
|
|
463
|
+
*/
|
|
464
|
+
getText(): string | null;
|
|
465
|
+
/**
|
|
466
|
+
* Returns the length of the sequence of characters for this
|
|
467
|
+
* Text event within the text character array.
|
|
468
|
+
*/
|
|
469
|
+
getTextLength(): number;
|
|
470
|
+
/**
|
|
471
|
+
* Returns the offset into the text character array where the first
|
|
472
|
+
* character (of this text event) is stored.
|
|
473
|
+
*/
|
|
474
|
+
getTextStart(): number;
|
|
475
|
+
/**
|
|
476
|
+
* Get the xml version declared on the xml declaration.
|
|
477
|
+
* Returns null if none was declared.
|
|
478
|
+
*/
|
|
479
|
+
getVersion(): string | null;
|
|
480
|
+
/**
|
|
481
|
+
* Reads a sub-tree of the XML document and parses it as XML object.
|
|
482
|
+
*
|
|
483
|
+
* The stream must be positioned on a START_ELEMENT. Do not call the method
|
|
484
|
+
* when the stream is positioned at document's root element. This would
|
|
485
|
+
* cause the whole document to be parsed into a single XML what may lead to
|
|
486
|
+
* an out-of-memory condition. Instead use #next() to navigate to
|
|
487
|
+
* sub-elements and invoke getXMLObject() there. Do not keep references to
|
|
488
|
+
* more than the currently processed XML to keep memory consumption low. The
|
|
489
|
+
* method reads the stream up to the matching END_ELEMENT. When the method
|
|
490
|
+
* returns the current event is the END_ELEMENT event.
|
|
491
|
+
* @deprecated Use readXMLObject
|
|
492
|
+
*/
|
|
493
|
+
getXMLObject(): any;
|
|
494
|
+
/**
|
|
495
|
+
* Identifies if the current event has a name (is a START_ELEMENT or END_ELEMENT)
|
|
496
|
+
*/
|
|
497
|
+
hasName(): boolean;
|
|
498
|
+
/**
|
|
499
|
+
* Returns true if there are more parsing events and false
|
|
500
|
+
* if there are no more events. This method will return
|
|
501
|
+
* false if the current state of the XMLStreamReader is
|
|
502
|
+
* END_DOCUMENT
|
|
503
|
+
*/
|
|
504
|
+
hasNext(): boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Indicates if the current event has text.
|
|
507
|
+
* The following events have text:
|
|
508
|
+
* CHARACTERS,DTD ,ENTITY_REFERENCE, COMMENT, SPACE.
|
|
509
|
+
*/
|
|
510
|
+
hasText(): boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Identifies if this
|
|
513
|
+
* attribute was created by default.
|
|
514
|
+
*/
|
|
515
|
+
isAttributeSpecified(index: number): boolean;
|
|
516
|
+
/**
|
|
517
|
+
* Identifies if the cursor points to a character data event.
|
|
518
|
+
*/
|
|
519
|
+
isCharacters(): boolean;
|
|
520
|
+
/**
|
|
521
|
+
* Identifies if the cursor points to an end tag.
|
|
522
|
+
*/
|
|
523
|
+
isEndElement(): boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Get the standalone declaration from the xml declaration.
|
|
526
|
+
*/
|
|
527
|
+
isStandalone(): boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Identifies if the cursor points to a start tag.
|
|
530
|
+
*/
|
|
531
|
+
isStartElement(): boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Identifies if the cursor points to a character data event
|
|
534
|
+
* that consists of all whitespace.
|
|
535
|
+
*/
|
|
536
|
+
isWhiteSpace(): boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Get next parsing event - a processor may return all contiguous
|
|
539
|
+
* character data in a single chunk, or it may split it into several chunks.
|
|
540
|
+
* If the property javax.xml.stream.isCoalescing is set to true
|
|
541
|
+
* element content must be coalesced and only one CHARACTERS event
|
|
542
|
+
* must be returned for contiguous element content or
|
|
543
|
+
* CDATA Sections.
|
|
544
|
+
*
|
|
545
|
+
* By default entity references must be
|
|
546
|
+
* expanded and reported transparently to the application.
|
|
547
|
+
* An exception will be thrown if an entity reference cannot be expanded.
|
|
548
|
+
* If element content is empty (i.e. content is "") then no CHARACTERS event will be reported.
|
|
549
|
+
*
|
|
550
|
+
* Given the following XML:
|
|
551
|
+
*
|
|
552
|
+
* <foo><!--description-->content text<![CDATA[<greeting>Hello</greeting>]]>other content</foo>
|
|
553
|
+
*
|
|
554
|
+
* The behavior of calling next() when being on foo will be:
|
|
555
|
+
*
|
|
556
|
+
* 1- the comment (COMMENT)
|
|
557
|
+
*
|
|
558
|
+
* 2- then the characters section (CHARACTERS)
|
|
559
|
+
*
|
|
560
|
+
* 3- then the CDATA section (another CHARACTERS)
|
|
561
|
+
*
|
|
562
|
+
* 4- then the next characters section (another CHARACTERS)
|
|
563
|
+
*
|
|
564
|
+
* 5- then the END_ELEMENT
|
|
565
|
+
*
|
|
566
|
+
* NOTE: empty element (such as <tag/>) will be reported
|
|
567
|
+
* with two separate events: START_ELEMENT, END_ELEMENT - This preserves
|
|
568
|
+
* parsing equivalency of empty element to <tag></tag>.
|
|
569
|
+
*
|
|
570
|
+
* This method will throw an IllegalStateException if it is called after hasNext() returns false.
|
|
571
|
+
*/
|
|
572
|
+
next(): number;
|
|
573
|
+
/**
|
|
574
|
+
* Skips any white space (isWhiteSpace() returns true), COMMENT,
|
|
575
|
+
* or PROCESSING_INSTRUCTION,
|
|
576
|
+
* until a START_ELEMENT or END_ELEMENT is reached.
|
|
577
|
+
* If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
|
|
578
|
+
* are encountered, an exception is thrown. This method should
|
|
579
|
+
* be used when processing element-only content separated by white space.
|
|
580
|
+
*
|
|
581
|
+
* Precondition: none
|
|
582
|
+
*
|
|
583
|
+
* Postcondition: the current event is START_ELEMENT or END_ELEMENT
|
|
584
|
+
* and cursor may have moved over any whitespace event.
|
|
585
|
+
*
|
|
586
|
+
* Essentially it does the following (implementations are free to optimized
|
|
587
|
+
* but must do equivalent processing):
|
|
588
|
+
* @example
|
|
589
|
+
* int eventType = next();
|
|
590
|
+
* while ( (eventType == XMLStreamConstants.CHARACTERS && isWhiteSpace() )
|
|
591
|
+
* || (eventType == XMLStreamConstants.CDATA && isWhiteSpace())
|
|
592
|
+
* || eventType == XMLStreamConstants.SPACE
|
|
593
|
+
* || eventType == XMLStreamConstants.PROCESSING_INSTRUCTION
|
|
594
|
+
* || eventType == XMLStreamConstants.COMMENT )
|
|
595
|
+
* {
|
|
596
|
+
* eventType = next();
|
|
597
|
+
* }
|
|
598
|
+
* if ( eventType != XMLStreamConstants.START_ELEMENT && eventType != XMLStreamConstants.END_ELEMENT )
|
|
599
|
+
* {
|
|
600
|
+
* throw new String XMLStreamException( "expected start or end tag", getLocation() );
|
|
601
|
+
* }
|
|
602
|
+
* return eventType;
|
|
603
|
+
*/
|
|
604
|
+
nextTag(): number;
|
|
605
|
+
/**
|
|
606
|
+
* Reads the content of a text-only element, an exception is thrown if this is not a text-only element. This method
|
|
607
|
+
* always returns coalesced content.
|
|
608
|
+
*
|
|
609
|
+
* Precondition: the current event is START_ELEMENT.
|
|
610
|
+
*
|
|
611
|
+
* Postcondition: the current event is the corresponding END_ELEMENT.
|
|
612
|
+
*
|
|
613
|
+
* The method does the following (implementations are free to be optimized but must do equivalent processing):
|
|
614
|
+
* @example
|
|
615
|
+
* if ( getEventType() != XMLStreamConstants.START_ELEMENT )
|
|
616
|
+
* {
|
|
617
|
+
* throw new XMLStreamException( "parser must be on START_ELEMENT to read next text", getLocation() );
|
|
618
|
+
* }
|
|
619
|
+
* int eventType = next();
|
|
620
|
+
* StringBuffer content = new StringBuffer();
|
|
621
|
+
* while ( eventType != XMLStreamConstants.END_ELEMENT )
|
|
622
|
+
* {
|
|
623
|
+
* if ( eventType == XMLStreamConstants.CHARACTERS || eventType == XMLStreamConstants.CDATA
|
|
624
|
+
* || eventType == XMLStreamConstants.SPACE || eventType == XMLStreamConstants.ENTITY_REFERENCE )
|
|
625
|
+
* {
|
|
626
|
+
* buf.append( getText() );
|
|
627
|
+
* }
|
|
628
|
+
* else if ( eventType == XMLStreamConstants.PROCESSING_INSTRUCTION || eventType == XMLStreamConstants.COMMENT )
|
|
629
|
+
* {
|
|
630
|
+
* // skipping
|
|
631
|
+
* }
|
|
632
|
+
* else if ( eventType == XMLStreamConstants.END_DOCUMENT )
|
|
633
|
+
* {
|
|
634
|
+
* throw new XMLStreamException( "unexpected end of document when reading element text content", this );
|
|
635
|
+
* }
|
|
636
|
+
* else if ( eventType == XMLStreamConstants.START_ELEMENT )
|
|
637
|
+
* {
|
|
638
|
+
* throw new XMLStreamException( "element text content may not contain START_ELEMENT", getLocation() );
|
|
639
|
+
* }
|
|
640
|
+
* else
|
|
641
|
+
* {
|
|
642
|
+
* throw new XMLStreamException( "Unexpected event type " + eventType, getLocation() );
|
|
643
|
+
* }
|
|
644
|
+
* eventType = next();
|
|
645
|
+
* }
|
|
646
|
+
* return buf.toString();
|
|
647
|
+
*/
|
|
648
|
+
readElementText(): string;
|
|
649
|
+
/**
|
|
650
|
+
* Reads a sub-tree of the XML document and parses it as XML object.
|
|
651
|
+
*
|
|
652
|
+
* The stream must be positioned on a START_ELEMENT. Do not call the method
|
|
653
|
+
* when the stream is positioned at document's root element. This would
|
|
654
|
+
* cause the whole document to be parsed into a single XML what may lead to
|
|
655
|
+
* an out-of-memory condition. Instead use #next() to navigate to
|
|
656
|
+
* sub-elements and invoke getXMLObject() there. Do not keep references to
|
|
657
|
+
* more than the currently processed XML to keep memory consumption low. The
|
|
658
|
+
* method reads the stream up to the matching END_ELEMENT. When the method
|
|
659
|
+
* returns the current event is the END_ELEMENT event.
|
|
660
|
+
*/
|
|
661
|
+
readXMLObject(): any;
|
|
662
|
+
/**
|
|
663
|
+
* Test if the current event is of the given type and if the namespace and name match the current
|
|
664
|
+
* namespace and name of the current event. If the namespaceURI is null it is not checked for equality,
|
|
665
|
+
* if the localName is null it is not checked for equality.
|
|
666
|
+
*/
|
|
667
|
+
require(type: number, namespaceURI: string | null, localName: string | null): void;
|
|
668
|
+
/**
|
|
669
|
+
* Identifies if standalone was set in the document.
|
|
670
|
+
*/
|
|
671
|
+
standaloneSet(): boolean;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export = XMLStreamReader;
|