sfcc-dev-mcp 1.0.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/LICENSE +15 -0
- package/README.md +338 -0
- package/dist/best-practices-client.d.ts +55 -0
- package/dist/best-practices-client.d.ts.map +1 -0
- package/dist/best-practices-client.js +201 -0
- package/dist/best-practices-client.js.map +1 -0
- package/dist/cache.d.ts +105 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +225 -0
- package/dist/cache.js.map +1 -0
- package/dist/config.d.ts +26 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +67 -0
- package/dist/config.js.map +1 -0
- package/dist/docs-client.d.ts +124 -0
- package/dist/docs-client.d.ts.map +1 -0
- package/dist/docs-client.js +442 -0
- package/dist/docs-client.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/log-client.d.ts +79 -0
- package/dist/log-client.d.ts.map +1 -0
- package/dist/log-client.js +226 -0
- package/dist/log-client.js.map +1 -0
- package/dist/main.d.ts +15 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +110 -0
- package/dist/main.js.map +1 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +539 -0
- package/dist/server.js.map +1 -0
- package/dist/types.d.ts +79 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +46 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +96 -0
- package/dist/utils.js.map +1 -0
- package/docs/TopLevel/APIException.md +68 -0
- package/docs/TopLevel/Array.md +897 -0
- package/docs/TopLevel/ArrayBuffer.md +79 -0
- package/docs/TopLevel/BigInt.md +132 -0
- package/docs/TopLevel/Boolean.md +62 -0
- package/docs/TopLevel/ConversionError.md +23 -0
- package/docs/TopLevel/DataView.md +352 -0
- package/docs/TopLevel/Date.md +924 -0
- package/docs/TopLevel/ES6Iterator.md +33 -0
- package/docs/TopLevel/Error.md +88 -0
- package/docs/TopLevel/EvalError.md +23 -0
- package/docs/TopLevel/Fault.md +87 -0
- package/docs/TopLevel/Float32Array.md +124 -0
- package/docs/TopLevel/Float64Array.md +124 -0
- package/docs/TopLevel/Function.md +105 -0
- package/docs/TopLevel/Generator.md +78 -0
- package/docs/TopLevel/IOError.md +62 -0
- package/docs/TopLevel/Int16Array.md +124 -0
- package/docs/TopLevel/Int32Array.md +124 -0
- package/docs/TopLevel/Int8Array.md +124 -0
- package/docs/TopLevel/InternalError.md +23 -0
- package/docs/TopLevel/Iterable.md +41 -0
- package/docs/TopLevel/Iterator.md +48 -0
- package/docs/TopLevel/JSON.md +162 -0
- package/docs/TopLevel/Map.md +216 -0
- package/docs/TopLevel/Math.md +865 -0
- package/docs/TopLevel/Module.md +45 -0
- package/docs/TopLevel/Namespace.md +96 -0
- package/docs/TopLevel/Number.md +375 -0
- package/docs/TopLevel/Object.md +641 -0
- package/docs/TopLevel/QName.md +96 -0
- package/docs/TopLevel/RangeError.md +23 -0
- package/docs/TopLevel/ReferenceError.md +23 -0
- package/docs/TopLevel/RegExp.md +109 -0
- package/docs/TopLevel/Set.md +165 -0
- package/docs/TopLevel/StopIteration.md +20 -0
- package/docs/TopLevel/String.md +1299 -0
- package/docs/TopLevel/Symbol.md +78 -0
- package/docs/TopLevel/SyntaxError.md +23 -0
- package/docs/TopLevel/SystemError.md +62 -0
- package/docs/TopLevel/TypeError.md +23 -0
- package/docs/TopLevel/URIError.md +23 -0
- package/docs/TopLevel/Uint16Array.md +124 -0
- package/docs/TopLevel/Uint32Array.md +124 -0
- package/docs/TopLevel/Uint8Array.md +124 -0
- package/docs/TopLevel/Uint8ClampedArray.md +124 -0
- package/docs/TopLevel/WeakMap.md +137 -0
- package/docs/TopLevel/WeakSet.md +92 -0
- package/docs/TopLevel/XML.md +937 -0
- package/docs/TopLevel/XMLList.md +484 -0
- package/docs/TopLevel/XMLStreamError.md +74 -0
- package/docs/TopLevel/arguments.md +34 -0
- package/docs/TopLevel/global.md +462 -0
- package/docs/best-practices/ocapi_hooks.md +295 -0
- package/docs/best-practices/scapi_custom_endpoint.md +176 -0
- package/docs/best-practices/scapi_hooks.md +295 -0
- package/docs/best-practices/sfra_controllers.md +190 -0
- package/docs/dw_campaign/ABTest.md +47 -0
- package/docs/dw_campaign/ABTestMgr.md +70 -0
- package/docs/dw_campaign/ABTestSegment.md +96 -0
- package/docs/dw_campaign/AmountDiscount.md +51 -0
- package/docs/dw_campaign/ApproachingDiscount.md +124 -0
- package/docs/dw_campaign/BonusChoiceDiscount.md +146 -0
- package/docs/dw_campaign/BonusDiscount.md +48 -0
- package/docs/dw_campaign/Campaign.md +365 -0
- package/docs/dw_campaign/CampaignMgr.md +395 -0
- package/docs/dw_campaign/CampaignStatusCodes.md +24 -0
- package/docs/dw_campaign/Coupon.md +292 -0
- package/docs/dw_campaign/CouponMgr.md +138 -0
- package/docs/dw_campaign/CouponRedemption.md +94 -0
- package/docs/dw_campaign/CouponStatusCodes.md +20 -0
- package/docs/dw_campaign/Discount.md +160 -0
- package/docs/dw_campaign/DiscountPlan.md +282 -0
- package/docs/dw_campaign/FixedPriceDiscount.md +52 -0
- package/docs/dw_campaign/FixedPriceShippingDiscount.md +52 -0
- package/docs/dw_campaign/FreeDiscount.md +17 -0
- package/docs/dw_campaign/FreeShippingDiscount.md +17 -0
- package/docs/dw_campaign/PercentageDiscount.md +52 -0
- package/docs/dw_campaign/PercentageOptionDiscount.md +48 -0
- package/docs/dw_campaign/PriceBookPriceDiscount.md +47 -0
- package/docs/dw_campaign/Promotion.md +826 -0
- package/docs/dw_campaign/PromotionMgr.md +386 -0
- package/docs/dw_campaign/PromotionPlan.md +318 -0
- package/docs/dw_campaign/SlotContent.md +144 -0
- package/docs/dw_campaign/SourceCodeGroup.md +72 -0
- package/docs/dw_campaign/SourceCodeInfo.md +126 -0
- package/docs/dw_campaign/SourceCodeStatusCodes.md +24 -0
- package/docs/dw_campaign/TotalFixedPriceDiscount.md +47 -0
- package/docs/dw_catalog/Catalog.md +122 -0
- package/docs/dw_catalog/CatalogMgr.md +182 -0
- package/docs/dw_catalog/Category.md +1296 -0
- package/docs/dw_catalog/CategoryAssignment.md +192 -0
- package/docs/dw_catalog/CategoryLink.md +96 -0
- package/docs/dw_catalog/PriceBook.md +242 -0
- package/docs/dw_catalog/PriceBookMgr.md +205 -0
- package/docs/dw_catalog/Product.md +2593 -0
- package/docs/dw_catalog/ProductActiveData.md +1275 -0
- package/docs/dw_catalog/ProductAttributeModel.md +277 -0
- package/docs/dw_catalog/ProductAvailabilityLevels.md +142 -0
- package/docs/dw_catalog/ProductAvailabilityModel.md +356 -0
- package/docs/dw_catalog/ProductInventoryList.md +140 -0
- package/docs/dw_catalog/ProductInventoryMgr.md +99 -0
- package/docs/dw_catalog/ProductInventoryRecord.md +563 -0
- package/docs/dw_catalog/ProductLink.md +96 -0
- package/docs/dw_catalog/ProductMgr.md +138 -0
- package/docs/dw_catalog/ProductOption.md +214 -0
- package/docs/dw_catalog/ProductOptionModel.md +246 -0
- package/docs/dw_catalog/ProductOptionValue.md +123 -0
- package/docs/dw_catalog/ProductPriceInfo.md +172 -0
- package/docs/dw_catalog/ProductPriceModel.md +745 -0
- package/docs/dw_catalog/ProductPriceTable.md +134 -0
- package/docs/dw_catalog/ProductSearchHit.md +545 -0
- package/docs/dw_catalog/ProductSearchModel.md +1912 -0
- package/docs/dw_catalog/ProductSearchRefinementDefinition.md +97 -0
- package/docs/dw_catalog/ProductSearchRefinementValue.md +73 -0
- package/docs/dw_catalog/ProductSearchRefinements.md +216 -0
- package/docs/dw_catalog/ProductVariationAttribute.md +100 -0
- package/docs/dw_catalog/ProductVariationAttributeValue.md +238 -0
- package/docs/dw_catalog/ProductVariationModel.md +849 -0
- package/docs/dw_catalog/Recommendation.md +296 -0
- package/docs/dw_catalog/SearchModel.md +877 -0
- package/docs/dw_catalog/SearchRefinementDefinition.md +146 -0
- package/docs/dw_catalog/SearchRefinementValue.md +185 -0
- package/docs/dw_catalog/SearchRefinements.md +156 -0
- package/docs/dw_catalog/SortingOption.md +120 -0
- package/docs/dw_catalog/SortingRule.md +47 -0
- package/docs/dw_catalog/Store.md +562 -0
- package/docs/dw_catalog/StoreGroup.md +96 -0
- package/docs/dw_catalog/StoreInventoryFilter.md +74 -0
- package/docs/dw_catalog/StoreInventoryFilterValue.md +74 -0
- package/docs/dw_catalog/StoreMgr.md +236 -0
- package/docs/dw_catalog/Variant.md +859 -0
- package/docs/dw_catalog/VariationGroup.md +792 -0
- package/docs/dw_content/Content.md +534 -0
- package/docs/dw_content/ContentMgr.md +160 -0
- package/docs/dw_content/ContentSearchModel.md +670 -0
- package/docs/dw_content/ContentSearchRefinementDefinition.md +49 -0
- package/docs/dw_content/ContentSearchRefinementValue.md +17 -0
- package/docs/dw_content/ContentSearchRefinements.md +208 -0
- package/docs/dw_content/Folder.md +467 -0
- package/docs/dw_content/Library.md +121 -0
- package/docs/dw_content/MarkupText.md +88 -0
- package/docs/dw_content/MediaFile.md +317 -0
- package/docs/dw_crypto/CertificateRef.md +42 -0
- package/docs/dw_crypto/Cipher.md +524 -0
- package/docs/dw_crypto/Encoding.md +220 -0
- package/docs/dw_crypto/JWE.md +182 -0
- package/docs/dw_crypto/JWS.md +264 -0
- package/docs/dw_crypto/JWSHeader.md +148 -0
- package/docs/dw_crypto/KeyRef.md +44 -0
- package/docs/dw_crypto/Mac.md +109 -0
- package/docs/dw_crypto/MessageDigest.md +139 -0
- package/docs/dw_crypto/SecureRandom.md +148 -0
- package/docs/dw_crypto/Signature.md +246 -0
- package/docs/dw_crypto/WeakCipher.md +532 -0
- package/docs/dw_crypto/WeakMac.md +109 -0
- package/docs/dw_crypto/WeakMessageDigest.md +139 -0
- package/docs/dw_crypto/WeakSignature.md +242 -0
- package/docs/dw_customer/AddressBook.md +163 -0
- package/docs/dw_customer/AgentUserMgr.md +83 -0
- package/docs/dw_customer/AgentUserStatusCodes.md +24 -0
- package/docs/dw_customer/AuthenticationStatus.md +96 -0
- package/docs/dw_customer/Credentials.md +494 -0
- package/docs/dw_customer/Customer.md +571 -0
- package/docs/dw_customer/CustomerActiveData.md +552 -0
- package/docs/dw_customer/CustomerAddress.md +852 -0
- package/docs/dw_customer/CustomerCDPData.md +70 -0
- package/docs/dw_customer/CustomerContextMgr.md +64 -0
- package/docs/dw_customer/CustomerGroup.md +134 -0
- package/docs/dw_customer/CustomerList.md +71 -0
- package/docs/dw_customer/CustomerMgr.md +735 -0
- package/docs/dw_customer/CustomerPasswordConstraints.md +142 -0
- package/docs/dw_customer/CustomerPaymentInstrument.md +125 -0
- package/docs/dw_customer/CustomerStatusCodes.md +24 -0
- package/docs/dw_customer/EncryptedObject.md +18 -0
- package/docs/dw_customer/ExternalProfile.md +160 -0
- package/docs/dw_customer/OrderHistory.md +111 -0
- package/docs/dw_customer/ProductList.md +952 -0
- package/docs/dw_customer/ProductListItem.md +492 -0
- package/docs/dw_customer/ProductListItemPurchase.md +145 -0
- package/docs/dw_customer/ProductListMgr.md +234 -0
- package/docs/dw_customer/ProductListRegistrant.md +193 -0
- package/docs/dw_customer/Profile.md +1128 -0
- package/docs/dw_customer/Wallet.md +118 -0
- package/docs/dw_extensions.applepay/ApplePayHookResult.md +161 -0
- package/docs/dw_extensions.applepay/ApplePayHooks.md +255 -0
- package/docs/dw_extensions.facebook/FacebookFeedHooks.md +47 -0
- package/docs/dw_extensions.facebook/FacebookProduct.md +1483 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHookResult.md +159 -0
- package/docs/dw_extensions.paymentrequest/PaymentRequestHooks.md +160 -0
- package/docs/dw_extensions.payments/SalesforceBancontactPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforceCardPaymentDetails.md +103 -0
- package/docs/dw_extensions.payments/SalesforceEpsPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceIdealPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceKlarnaPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrder.md +234 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderAddress.md +191 -0
- package/docs/dw_extensions.payments/SalesforcePayPalOrderPayer.md +118 -0
- package/docs/dw_extensions.payments/SalesforcePayPalPaymentDetails.md +79 -0
- package/docs/dw_extensions.payments/SalesforcePaymentDetails.md +57 -0
- package/docs/dw_extensions.payments/SalesforcePaymentIntent.md +269 -0
- package/docs/dw_extensions.payments/SalesforcePaymentMethod.md +304 -0
- package/docs/dw_extensions.payments/SalesforcePaymentRequest.md +622 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsHooks.md +45 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +592 -0
- package/docs/dw_extensions.payments/SalesforcePaymentsSiteConfiguration.md +95 -0
- package/docs/dw_extensions.payments/SalesforceSepaDebitPaymentDetails.md +51 -0
- package/docs/dw_extensions.payments/SalesforceVenmoPaymentDetails.md +79 -0
- package/docs/dw_extensions.pinterest/PinterestAvailability.md +86 -0
- package/docs/dw_extensions.pinterest/PinterestFeedHooks.md +69 -0
- package/docs/dw_extensions.pinterest/PinterestOrder.md +172 -0
- package/docs/dw_extensions.pinterest/PinterestOrderHooks.md +45 -0
- package/docs/dw_extensions.pinterest/PinterestProduct.md +814 -0
- package/docs/dw_io/CSVStreamReader.md +80 -0
- package/docs/dw_io/CSVStreamWriter.md +60 -0
- package/docs/dw_io/File.md +554 -0
- package/docs/dw_io/FileReader.md +41 -0
- package/docs/dw_io/FileWriter.md +103 -0
- package/docs/dw_io/InputStream.md +34 -0
- package/docs/dw_io/OutputStream.md +34 -0
- package/docs/dw_io/PrintWriter.md +71 -0
- package/docs/dw_io/RandomAccessFileReader.md +167 -0
- package/docs/dw_io/Reader.md +274 -0
- package/docs/dw_io/StringWriter.md +81 -0
- package/docs/dw_io/Writer.md +92 -0
- package/docs/dw_io/XMLIndentingStreamWriter.md +112 -0
- package/docs/dw_io/XMLStreamConstants.md +24 -0
- package/docs/dw_io/XMLStreamReader.md +1043 -0
- package/docs/dw_io/XMLStreamWriter.md +572 -0
- package/docs/dw_net/FTPClient.md +675 -0
- package/docs/dw_net/FTPFileInfo.md +122 -0
- package/docs/dw_net/HTTPClient.md +769 -0
- package/docs/dw_net/HTTPRequestPart.md +206 -0
- package/docs/dw_net/Mail.md +431 -0
- package/docs/dw_net/SFTPClient.md +579 -0
- package/docs/dw_net/SFTPFileInfo.md +122 -0
- package/docs/dw_net/WebDAVClient.md +667 -0
- package/docs/dw_net/WebDAVFileInfo.md +184 -0
- package/docs/dw_object/ActiveData.md +75 -0
- package/docs/dw_object/CustomAttributes.md +16 -0
- package/docs/dw_object/CustomObject.md +73 -0
- package/docs/dw_object/CustomObjectMgr.md +291 -0
- package/docs/dw_object/Extensible.md +64 -0
- package/docs/dw_object/ExtensibleObject.md +68 -0
- package/docs/dw_object/Note.md +121 -0
- package/docs/dw_object/ObjectAttributeDefinition.md +373 -0
- package/docs/dw_object/ObjectAttributeGroup.md +170 -0
- package/docs/dw_object/ObjectAttributeValueDefinition.md +72 -0
- package/docs/dw_object/ObjectTypeDefinition.md +216 -0
- package/docs/dw_object/PersistentObject.md +94 -0
- package/docs/dw_object/SimpleExtensible.md +46 -0
- package/docs/dw_object/SystemObjectMgr.md +153 -0
- package/docs/dw_order/AbstractItem.md +244 -0
- package/docs/dw_order/AbstractItemCtnr.md +240 -0
- package/docs/dw_order/Appeasement.md +325 -0
- package/docs/dw_order/AppeasementItem.md +90 -0
- package/docs/dw_order/Basket.md +362 -0
- package/docs/dw_order/BasketMgr.md +402 -0
- package/docs/dw_order/BonusDiscountLineItem.md +248 -0
- package/docs/dw_order/CouponLineItem.md +272 -0
- package/docs/dw_order/CreateAgentBasketLimitExceededException.md +18 -0
- package/docs/dw_order/CreateBasketFromOrderException.md +26 -0
- package/docs/dw_order/CreateCouponLineItemException.md +26 -0
- package/docs/dw_order/CreateOrderException.md +18 -0
- package/docs/dw_order/CreateTemporaryBasketLimitExceededException.md +18 -0
- package/docs/dw_order/GiftCertificate.md +545 -0
- package/docs/dw_order/GiftCertificateLineItem.md +324 -0
- package/docs/dw_order/GiftCertificateMgr.md +161 -0
- package/docs/dw_order/GiftCertificateStatusCodes.md +24 -0
- package/docs/dw_order/Invoice.md +316 -0
- package/docs/dw_order/InvoiceItem.md +222 -0
- package/docs/dw_order/LineItem.md +532 -0
- package/docs/dw_order/LineItemCtnr.md +2317 -0
- package/docs/dw_order/Order.md +2441 -0
- package/docs/dw_order/OrderAddress.md +807 -0
- package/docs/dw_order/OrderItem.md +476 -0
- package/docs/dw_order/OrderMgr.md +535 -0
- package/docs/dw_order/OrderPaymentInstrument.md +220 -0
- package/docs/dw_order/OrderProcessStatusCodes.md +24 -0
- package/docs/dw_order/PaymentCard.md +217 -0
- package/docs/dw_order/PaymentInstrument.md +1414 -0
- package/docs/dw_order/PaymentMethod.md +242 -0
- package/docs/dw_order/PaymentMgr.md +117 -0
- package/docs/dw_order/PaymentProcessor.md +70 -0
- package/docs/dw_order/PaymentStatusCodes.md +24 -0
- package/docs/dw_order/PaymentTransaction.md +304 -0
- package/docs/dw_order/PriceAdjustment.md +640 -0
- package/docs/dw_order/PriceAdjustmentLimitTypes.md +20 -0
- package/docs/dw_order/ProductLineItem.md +1821 -0
- package/docs/dw_order/ProductShippingCost.md +96 -0
- package/docs/dw_order/ProductShippingLineItem.md +320 -0
- package/docs/dw_order/ProductShippingModel.md +125 -0
- package/docs/dw_order/Return.md +318 -0
- package/docs/dw_order/ReturnCase.md +340 -0
- package/docs/dw_order/ReturnCaseItem.md +343 -0
- package/docs/dw_order/ReturnItem.md +362 -0
- package/docs/dw_order/Shipment.md +1227 -0
- package/docs/dw_order/ShipmentShippingCost.md +46 -0
- package/docs/dw_order/ShipmentShippingModel.md +146 -0
- package/docs/dw_order/ShippingLineItem.md +272 -0
- package/docs/dw_order/ShippingLocation.md +366 -0
- package/docs/dw_order/ShippingMethod.md +266 -0
- package/docs/dw_order/ShippingMgr.md +158 -0
- package/docs/dw_order/ShippingOrder.md +507 -0
- package/docs/dw_order/ShippingOrderItem.md +331 -0
- package/docs/dw_order/SumItem.md +147 -0
- package/docs/dw_order/TaxGroup.md +143 -0
- package/docs/dw_order/TaxItem.md +74 -0
- package/docs/dw_order/TaxMgr.md +215 -0
- package/docs/dw_order/TrackingInfo.md +312 -0
- package/docs/dw_order/TrackingRef.md +113 -0
- package/docs/dw_order.hooks/CalculateHooks.md +77 -0
- package/docs/dw_order.hooks/OrderHooks.md +41 -0
- package/docs/dw_order.hooks/PaymentHooks.md +180 -0
- package/docs/dw_order.hooks/ReturnHooks.md +135 -0
- package/docs/dw_order.hooks/ShippingOrderHooks.md +245 -0
- package/docs/dw_rpc/SOAPUtil.md +333 -0
- package/docs/dw_rpc/Stub.md +259 -0
- package/docs/dw_rpc/WebReference.md +83 -0
- package/docs/dw_suggest/BrandSuggestions.md +17 -0
- package/docs/dw_suggest/CategorySuggestions.md +53 -0
- package/docs/dw_suggest/ContentSuggestions.md +53 -0
- package/docs/dw_suggest/CustomSuggestions.md +17 -0
- package/docs/dw_suggest/ProductSuggestions.md +53 -0
- package/docs/dw_suggest/SearchPhraseSuggestions.md +117 -0
- package/docs/dw_suggest/SuggestModel.md +397 -0
- package/docs/dw_suggest/SuggestedCategory.md +46 -0
- package/docs/dw_suggest/SuggestedContent.md +46 -0
- package/docs/dw_suggest/SuggestedPhrase.md +70 -0
- package/docs/dw_suggest/SuggestedProduct.md +47 -0
- package/docs/dw_suggest/SuggestedTerm.md +143 -0
- package/docs/dw_suggest/SuggestedTerms.md +132 -0
- package/docs/dw_suggest/Suggestions.md +179 -0
- package/docs/dw_svc/FTPService.md +118 -0
- package/docs/dw_svc/FTPServiceDefinition.md +69 -0
- package/docs/dw_svc/HTTPFormService.md +18 -0
- package/docs/dw_svc/HTTPFormServiceDefinition.md +18 -0
- package/docs/dw_svc/HTTPService.md +415 -0
- package/docs/dw_svc/HTTPServiceDefinition.md +303 -0
- package/docs/dw_svc/LocalServiceRegistry.md +43 -0
- package/docs/dw_svc/Result.md +255 -0
- package/docs/dw_svc/SOAPService.md +115 -0
- package/docs/dw_svc/SOAPServiceDefinition.md +17 -0
- package/docs/dw_svc/Service.md +295 -0
- package/docs/dw_svc/ServiceCallback.md +268 -0
- package/docs/dw_svc/ServiceConfig.md +120 -0
- package/docs/dw_svc/ServiceCredential.md +150 -0
- package/docs/dw_svc/ServiceDefinition.md +176 -0
- package/docs/dw_svc/ServiceProfile.md +168 -0
- package/docs/dw_svc/ServiceRegistry.md +109 -0
- package/docs/dw_system/AgentUserStatusCodes.md +21 -0
- package/docs/dw_system/Cache.md +102 -0
- package/docs/dw_system/CacheMgr.md +42 -0
- package/docs/dw_system/HookMgr.md +66 -0
- package/docs/dw_system/InternalObject.md +56 -0
- package/docs/dw_system/JobProcessMonitor.md +124 -0
- package/docs/dw_system/Log.md +237 -0
- package/docs/dw_system/LogNDC.md +88 -0
- package/docs/dw_system/Logger.md +263 -0
- package/docs/dw_system/OrganizationPreferences.md +18 -0
- package/docs/dw_system/Pipeline.md +73 -0
- package/docs/dw_system/PipelineDictionary.md +16 -0
- package/docs/dw_system/RESTErrorResponse.md +66 -0
- package/docs/dw_system/RESTResponseMgr.md +258 -0
- package/docs/dw_system/RESTSuccessResponse.md +39 -0
- package/docs/dw_system/RemoteInclude.md +74 -0
- package/docs/dw_system/Request.md +839 -0
- package/docs/dw_system/RequestHooks.md +59 -0
- package/docs/dw_system/Response.md +318 -0
- package/docs/dw_system/SearchStatus.md +91 -0
- package/docs/dw_system/Session.md +476 -0
- package/docs/dw_system/Site.md +567 -0
- package/docs/dw_system/SitePreferences.md +49 -0
- package/docs/dw_system/Status.md +273 -0
- package/docs/dw_system/StatusItem.md +273 -0
- package/docs/dw_system/System.md +182 -0
- package/docs/dw_system/Transaction.md +84 -0
- package/docs/dw_util/ArrayList.md +50 -0
- package/docs/dw_util/Assert.md +391 -0
- package/docs/dw_util/BigInteger.md +326 -0
- package/docs/dw_util/Bytes.md +246 -0
- package/docs/dw_util/Calendar.md +663 -0
- package/docs/dw_util/Collection.md +338 -0
- package/docs/dw_util/Currency.md +163 -0
- package/docs/dw_util/DateUtils.md +86 -0
- package/docs/dw_util/Decimal.md +438 -0
- package/docs/dw_util/FilteringCollection.md +87 -0
- package/docs/dw_util/Geolocation.md +271 -0
- package/docs/dw_util/HashMap.md +43 -0
- package/docs/dw_util/HashSet.md +46 -0
- package/docs/dw_util/Iterator.md +97 -0
- package/docs/dw_util/LinkedHashMap.md +43 -0
- package/docs/dw_util/LinkedHashSet.md +46 -0
- package/docs/dw_util/List.md +519 -0
- package/docs/dw_util/Locale.md +267 -0
- package/docs/dw_util/Map.md +313 -0
- package/docs/dw_util/MapEntry.md +70 -0
- package/docs/dw_util/MappingKey.md +76 -0
- package/docs/dw_util/MappingMgr.md +122 -0
- package/docs/dw_util/PropertyComparator.md +51 -0
- package/docs/dw_util/SecureEncoder.md +350 -0
- package/docs/dw_util/SecureFilter.md +350 -0
- package/docs/dw_util/SeekableIterator.md +176 -0
- package/docs/dw_util/Set.md +19 -0
- package/docs/dw_util/SortedMap.md +148 -0
- package/docs/dw_util/SortedSet.md +151 -0
- package/docs/dw_util/StringUtils.md +717 -0
- package/docs/dw_util/Template.md +88 -0
- package/docs/dw_util/UUIDUtils.md +38 -0
- package/docs/dw_value/EnumValue.md +92 -0
- package/docs/dw_value/MimeEncodedText.md +103 -0
- package/docs/dw_value/Money.md +604 -0
- package/docs/dw_value/Quantity.md +376 -0
- package/docs/dw_web/CSRFProtection.md +83 -0
- package/docs/dw_web/ClickStream.md +157 -0
- package/docs/dw_web/ClickStreamEntry.md +289 -0
- package/docs/dw_web/Cookie.md +390 -0
- package/docs/dw_web/Cookies.md +46 -0
- package/docs/dw_web/Form.md +74 -0
- package/docs/dw_web/FormAction.md +199 -0
- package/docs/dw_web/FormElement.md +220 -0
- package/docs/dw_web/FormElementValidationResult.md +157 -0
- package/docs/dw_web/FormField.md +603 -0
- package/docs/dw_web/FormFieldOption.md +238 -0
- package/docs/dw_web/FormFieldOptions.md +42 -0
- package/docs/dw_web/FormGroup.md +199 -0
- package/docs/dw_web/FormList.md +126 -0
- package/docs/dw_web/FormListItem.md +48 -0
- package/docs/dw_web/Forms.md +16 -0
- package/docs/dw_web/HttpParameter.md +513 -0
- package/docs/dw_web/HttpParameterMap.md +185 -0
- package/docs/dw_web/LoopIterator.md +261 -0
- package/docs/dw_web/PageMetaData.md +230 -0
- package/docs/dw_web/PageMetaTag.md +142 -0
- package/docs/dw_web/PagingModel.md +365 -0
- package/docs/dw_web/Resource.md +126 -0
- package/docs/dw_web/URL.md +213 -0
- package/docs/dw_web/URLAction.md +26 -0
- package/docs/dw_web/URLParameter.md +22 -0
- package/docs/dw_web/URLRedirect.md +71 -0
- package/docs/dw_web/URLRedirectMgr.md +73 -0
- package/docs/dw_web/URLUtils.md +1246 -0
- package/package.json +43 -0
- package/scripts/convert-docs.js +617 -0
- package/src/best-practices-client.ts +243 -0
- package/src/cache.ts +291 -0
- package/src/config.ts +77 -0
- package/src/docs-client.ts +540 -0
- package/src/index.ts +22 -0
- package/src/log-client.ts +260 -0
- package/src/main.ts +133 -0
- package/src/server.ts +614 -0
- package/src/types.ts +83 -0
- package/src/utils.ts +103 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
## Package: dw.net
|
|
2
|
+
|
|
3
|
+
# Class WebDAVFileInfo
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.net.WebDAVFileInfo
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
Simple class representing a file on a remote WebDAV location. The class possesses only read-only attributes of the file and does not permit any manipulation of the file itself. Instances of this class are returned by WebDAVClient.propfind(String) which is used to get a listing of files in a WebDAV directory. Note: when this class is used with sensitive data, be careful in persisting sensitive information to disk.
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### contentType
|
|
17
|
+
|
|
18
|
+
**Type:** String (Read Only)
|
|
19
|
+
|
|
20
|
+
The content type of the file.
|
|
21
|
+
|
|
22
|
+
### creationDate
|
|
23
|
+
|
|
24
|
+
**Type:** Date (Read Only)
|
|
25
|
+
|
|
26
|
+
The creationDate of the file.
|
|
27
|
+
|
|
28
|
+
### directory
|
|
29
|
+
|
|
30
|
+
**Type:** boolean (Read Only)
|
|
31
|
+
|
|
32
|
+
Identifies if the file is a directory.
|
|
33
|
+
|
|
34
|
+
### name
|
|
35
|
+
|
|
36
|
+
**Type:** String (Read Only)
|
|
37
|
+
|
|
38
|
+
The name of the file.
|
|
39
|
+
|
|
40
|
+
### path
|
|
41
|
+
|
|
42
|
+
**Type:** String (Read Only)
|
|
43
|
+
|
|
44
|
+
The path of the file.
|
|
45
|
+
|
|
46
|
+
### size
|
|
47
|
+
|
|
48
|
+
**Type:** Number (Read Only)
|
|
49
|
+
|
|
50
|
+
The size of the file.
|
|
51
|
+
|
|
52
|
+
## Constructor Summary
|
|
53
|
+
|
|
54
|
+
## Method Summary
|
|
55
|
+
|
|
56
|
+
### getContentType
|
|
57
|
+
|
|
58
|
+
**Signature:** `getContentType() : String`
|
|
59
|
+
|
|
60
|
+
Returns the content type of the file.
|
|
61
|
+
|
|
62
|
+
### getCreationDate
|
|
63
|
+
|
|
64
|
+
**Signature:** `getCreationDate() : Date`
|
|
65
|
+
|
|
66
|
+
Returns the creationDate of the file.
|
|
67
|
+
|
|
68
|
+
### getName
|
|
69
|
+
|
|
70
|
+
**Signature:** `getName() : String`
|
|
71
|
+
|
|
72
|
+
Returns the name of the file.
|
|
73
|
+
|
|
74
|
+
### getPath
|
|
75
|
+
|
|
76
|
+
**Signature:** `getPath() : String`
|
|
77
|
+
|
|
78
|
+
Returns the path of the file.
|
|
79
|
+
|
|
80
|
+
### getSize
|
|
81
|
+
|
|
82
|
+
**Signature:** `getSize() : Number`
|
|
83
|
+
|
|
84
|
+
Returns the size of the file.
|
|
85
|
+
|
|
86
|
+
### isDirectory
|
|
87
|
+
|
|
88
|
+
**Signature:** `isDirectory() : boolean`
|
|
89
|
+
|
|
90
|
+
Identifies if the file is a directory.
|
|
91
|
+
|
|
92
|
+
### lastModified
|
|
93
|
+
|
|
94
|
+
**Signature:** `lastModified() : Date`
|
|
95
|
+
|
|
96
|
+
Returns the lastModified date of the file.
|
|
97
|
+
|
|
98
|
+
## Method Detail
|
|
99
|
+
|
|
100
|
+
## Method Details
|
|
101
|
+
|
|
102
|
+
### getContentType
|
|
103
|
+
|
|
104
|
+
**Signature:** `getContentType() : String`
|
|
105
|
+
|
|
106
|
+
**Description:** Returns the content type of the file.
|
|
107
|
+
|
|
108
|
+
**Returns:**
|
|
109
|
+
|
|
110
|
+
the content type of the file.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### getCreationDate
|
|
115
|
+
|
|
116
|
+
**Signature:** `getCreationDate() : Date`
|
|
117
|
+
|
|
118
|
+
**Description:** Returns the creationDate of the file.
|
|
119
|
+
|
|
120
|
+
**Returns:**
|
|
121
|
+
|
|
122
|
+
the creationDate of the file.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### getName
|
|
127
|
+
|
|
128
|
+
**Signature:** `getName() : String`
|
|
129
|
+
|
|
130
|
+
**Description:** Returns the name of the file.
|
|
131
|
+
|
|
132
|
+
**Returns:**
|
|
133
|
+
|
|
134
|
+
the name of the file.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
### getPath
|
|
139
|
+
|
|
140
|
+
**Signature:** `getPath() : String`
|
|
141
|
+
|
|
142
|
+
**Description:** Returns the path of the file.
|
|
143
|
+
|
|
144
|
+
**Returns:**
|
|
145
|
+
|
|
146
|
+
the path of the file.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### getSize
|
|
151
|
+
|
|
152
|
+
**Signature:** `getSize() : Number`
|
|
153
|
+
|
|
154
|
+
**Description:** Returns the size of the file.
|
|
155
|
+
|
|
156
|
+
**Returns:**
|
|
157
|
+
|
|
158
|
+
the size of the file.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### isDirectory
|
|
163
|
+
|
|
164
|
+
**Signature:** `isDirectory() : boolean`
|
|
165
|
+
|
|
166
|
+
**Description:** Identifies if the file is a directory.
|
|
167
|
+
|
|
168
|
+
**Returns:**
|
|
169
|
+
|
|
170
|
+
true if the file is a directory, false otherwise.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### lastModified
|
|
175
|
+
|
|
176
|
+
**Signature:** `lastModified() : Date`
|
|
177
|
+
|
|
178
|
+
**Description:** Returns the lastModified date of the file.
|
|
179
|
+
|
|
180
|
+
**Returns:**
|
|
181
|
+
|
|
182
|
+
the lastModified date of the file.
|
|
183
|
+
|
|
184
|
+
---
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
## Package: dw.object
|
|
2
|
+
|
|
3
|
+
# Class ActiveData
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.object.PersistentObject
|
|
9
|
+
- dw.object.ExtensibleObject
|
|
10
|
+
- dw.object.ActiveData
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Represents the active data for an object in Commerce Cloud Digital.
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
### custom
|
|
19
|
+
|
|
20
|
+
**Type:** CustomAttributes (Read Only)
|
|
21
|
+
|
|
22
|
+
The custom attributes for this object. The returned object can
|
|
23
|
+
only be used for retrieving attribute values, not storing them. See
|
|
24
|
+
CustomAttributes for a detailed example of the syntax for
|
|
25
|
+
working with custom attributes.
|
|
26
|
+
|
|
27
|
+
### empty
|
|
28
|
+
|
|
29
|
+
**Type:** boolean (Read Only)
|
|
30
|
+
|
|
31
|
+
Return true if the ActiveData doesn't exist for the object
|
|
32
|
+
|
|
33
|
+
## Constructor Summary
|
|
34
|
+
|
|
35
|
+
## Method Summary
|
|
36
|
+
|
|
37
|
+
### getCustom
|
|
38
|
+
|
|
39
|
+
**Signature:** `getCustom() : CustomAttributes`
|
|
40
|
+
|
|
41
|
+
Returns the custom attributes for this object.
|
|
42
|
+
|
|
43
|
+
### isEmpty
|
|
44
|
+
|
|
45
|
+
**Signature:** `isEmpty() : boolean`
|
|
46
|
+
|
|
47
|
+
Return true if the ActiveData doesn't exist for the object
|
|
48
|
+
|
|
49
|
+
## Method Detail
|
|
50
|
+
|
|
51
|
+
## Method Details
|
|
52
|
+
|
|
53
|
+
### getCustom
|
|
54
|
+
|
|
55
|
+
**Signature:** `getCustom() : CustomAttributes`
|
|
56
|
+
|
|
57
|
+
**Description:** Returns the custom attributes for this object. The returned object can only be used for retrieving attribute values, not storing them. See CustomAttributes for a detailed example of the syntax for working with custom attributes.
|
|
58
|
+
|
|
59
|
+
**Returns:**
|
|
60
|
+
|
|
61
|
+
the custom attributes for this object.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### isEmpty
|
|
66
|
+
|
|
67
|
+
**Signature:** `isEmpty() : boolean`
|
|
68
|
+
|
|
69
|
+
**Description:** Return true if the ActiveData doesn't exist for the object
|
|
70
|
+
|
|
71
|
+
**Returns:**
|
|
72
|
+
|
|
73
|
+
true if ActiveData is empty, false otherwise
|
|
74
|
+
|
|
75
|
+
---
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## Package: dw.object
|
|
2
|
+
|
|
3
|
+
# Class CustomAttributes
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.object.CustomAttributes
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
This class is used together with other classes that contain custom attributes and is used to read and write these attributes. The actual attributes are accessible as ECMA properties. The syntax for setting and retrieving the value of a custom attribute depends upon the type of the attribute. If the wrong syntax is used to set an individual attribute than an exception will be thrown. The following script examples demonstrate how to work with custom attributes. Suppose we have an ExtensibleObject named "eo" possessing attributes of all the different types supported by the Commerce Cloud Digital metadata system. The following script snippet shows that setting single-valued attributes is simply a matter of using the assignment operator and standard ECMA primitives and built-in types: // attribute of value type 'Boolean' eo.custom.bvalue = true; var b : Boolean = eo.custom.bvalue; // attribute of value type 'Integer' eo.custom.ivalue = 10; var i : Number = eo.custom.ivalue; // attribute of value type 'Number' eo.custom.dvalue = 99.99; var d : Number = eo.custom.dvalue; // attribute of value type 'String' eo.custom.svalue = "String1"; var s : String = eo.custom.svalue; // attribute of value type 'Email' eo.custom.emailvalue = "email@demandware.com"; var e : String = eo.custom.emailvalue; // attribute of value type 'Text' eo.custom.tvalue = "laaaaaaaaaaaarge text"; var t : String = eo.custom.tvalue; // attribute of value type 'Date' eo.custom.dtvalue = new Date; var date : Date = eo.custom.dtvalue; Setting and retrieving the values for multi-value attributes is also straightforward and uses ECMA arrays to represent the multiple values. Set-of attributes and enum-of attributes are handled in a very similar manner. The chief difference is that enum-of attributes are limited to a prescribed set of value definitions whereas set-of attributes are open-ended. Furthermore, each value in an enum-of attribute has a value and a display name which affects the retrieval logic. Multi-value attributes are returned as an array. This array is read-only and can't be used to update the multi-value attribute. To update the multi-value attribute an array with new values must be assigned to the attribute. // attribute of value type 'Set of String' // set the attribute value only if it hasn't been already set if( !('setofstringvalue' in eo.custom) ) { eo.custom.setofstringvalue = new Array("abc","def","ghi"); } // returns an Array of String instances var setofstring : Array = eo.custom.setofstringvalue; var s1 : String = setofstring[0]; var s2 : String = setofstring[1]; var s3 : String = setofstring[2]; // attribute of value type 'Enum of Integer' with multi-value handling eo.custom.enumofintmultivalue = new Array(1, 2, 3); // returns an Array of EnumValue instances var enumofintmulti : Array = eo.custom.enumofintmultivalue; var value1 : Number = enumofintmulti[0].getValue(); var displayvalue1 : String = enumofintmulti[0].getDisplayValue(); var value2 : Number = enumofintmulti[1].getValue(); var displayvalue2 : String = enumofintmulti[1].getDisplayValue(); var value3 : Number = enumofintmulti[2].getValue(); var displayvalue3 : String = enumofintmulti[2].getDisplayValue(); For further details on the Commerce Cloud Digital attribute system, see the core Commerce Cloud Digital documentation.
|
|
13
|
+
|
|
14
|
+
## Constructor Summary
|
|
15
|
+
|
|
16
|
+
## Method Summary
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
## Package: dw.object
|
|
2
|
+
|
|
3
|
+
# Class CustomObject
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.object.PersistentObject
|
|
9
|
+
- dw.object.ExtensibleObject
|
|
10
|
+
- dw.object.CustomObject
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Represents a custom object and its corresponding attributes.
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
### custom
|
|
19
|
+
|
|
20
|
+
**Type:** CustomAttributes (Read Only)
|
|
21
|
+
|
|
22
|
+
The custom attributes of this
|
|
23
|
+
object.
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
**Type:** String (Read Only)
|
|
28
|
+
|
|
29
|
+
The type of the CustomObject.
|
|
30
|
+
|
|
31
|
+
## Constructor Summary
|
|
32
|
+
|
|
33
|
+
## Method Summary
|
|
34
|
+
|
|
35
|
+
### getCustom
|
|
36
|
+
|
|
37
|
+
**Signature:** `getCustom() : CustomAttributes`
|
|
38
|
+
|
|
39
|
+
Returns the custom attributes of this object.
|
|
40
|
+
|
|
41
|
+
### getType
|
|
42
|
+
|
|
43
|
+
**Signature:** `getType() : String`
|
|
44
|
+
|
|
45
|
+
Returns the type of the CustomObject.
|
|
46
|
+
|
|
47
|
+
## Method Detail
|
|
48
|
+
|
|
49
|
+
## Method Details
|
|
50
|
+
|
|
51
|
+
### getCustom
|
|
52
|
+
|
|
53
|
+
**Signature:** `getCustom() : CustomAttributes`
|
|
54
|
+
|
|
55
|
+
**Description:** Returns the custom attributes of this object.
|
|
56
|
+
|
|
57
|
+
**Returns:**
|
|
58
|
+
|
|
59
|
+
the custom attributes of this object.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### getType
|
|
64
|
+
|
|
65
|
+
**Signature:** `getType() : String`
|
|
66
|
+
|
|
67
|
+
**Description:** Returns the type of the CustomObject.
|
|
68
|
+
|
|
69
|
+
**Returns:**
|
|
70
|
+
|
|
71
|
+
the type of the CustomObject.
|
|
72
|
+
|
|
73
|
+
---
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
## Package: dw.object
|
|
2
|
+
|
|
3
|
+
# Class CustomObjectMgr
|
|
4
|
+
|
|
5
|
+
## Inheritance Hierarchy
|
|
6
|
+
|
|
7
|
+
- Object
|
|
8
|
+
- dw.object.CustomObjectMgr
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
|
|
12
|
+
Manager class which provides methods for creating, retrieving, deleting, and searching for custom objects. To search for system objects, use SystemObjectMgr.
|
|
13
|
+
|
|
14
|
+
## Constructor Summary
|
|
15
|
+
|
|
16
|
+
## Method Summary
|
|
17
|
+
|
|
18
|
+
### createCustomObject
|
|
19
|
+
|
|
20
|
+
**Signature:** `static createCustomObject(type : String, keyValue : String) : CustomObject`
|
|
21
|
+
|
|
22
|
+
Returns a new custom object instance of the specified type, using the given key value.
|
|
23
|
+
|
|
24
|
+
### createCustomObject
|
|
25
|
+
|
|
26
|
+
**Signature:** `static createCustomObject(type : String, keyValue : Number) : CustomObject`
|
|
27
|
+
|
|
28
|
+
Returns a new custom object instance of the specified type, using the given key value.
|
|
29
|
+
|
|
30
|
+
### describe
|
|
31
|
+
|
|
32
|
+
**Signature:** `static describe(type : String) : ObjectTypeDefinition`
|
|
33
|
+
|
|
34
|
+
Returns the meta data for the given type.
|
|
35
|
+
|
|
36
|
+
### getAllCustomObjects
|
|
37
|
+
|
|
38
|
+
**Signature:** `static getAllCustomObjects(type : String) : SeekableIterator`
|
|
39
|
+
|
|
40
|
+
Returns all custom objects of a specific type.
|
|
41
|
+
|
|
42
|
+
### getCustomObject
|
|
43
|
+
|
|
44
|
+
**Signature:** `static getCustomObject(type : String, keyValue : String) : CustomObject`
|
|
45
|
+
|
|
46
|
+
Returns a custom object based on it's type and unique key.
|
|
47
|
+
|
|
48
|
+
### getCustomObject
|
|
49
|
+
|
|
50
|
+
**Signature:** `static getCustomObject(type : String, keyValue : Number) : CustomObject`
|
|
51
|
+
|
|
52
|
+
Returns a custom object based on it's type and unique key.
|
|
53
|
+
|
|
54
|
+
### queryCustomObject
|
|
55
|
+
|
|
56
|
+
**Signature:** `static queryCustomObject(type : String, queryString : String, args : Object...) : CustomObject`
|
|
57
|
+
|
|
58
|
+
Searches for a single custom object instance.
|
|
59
|
+
|
|
60
|
+
### queryCustomObjects
|
|
61
|
+
|
|
62
|
+
**Signature:** `static queryCustomObjects(type : String, queryString : String, sortString : String, args : Object...) : SeekableIterator`
|
|
63
|
+
|
|
64
|
+
Searches for custom object instances.
|
|
65
|
+
|
|
66
|
+
### queryCustomObjects
|
|
67
|
+
|
|
68
|
+
**Signature:** `static queryCustomObjects(type : String, queryAttributes : Map, sortString : String) : SeekableIterator`
|
|
69
|
+
|
|
70
|
+
Searches for custom object instances.
|
|
71
|
+
|
|
72
|
+
### remove
|
|
73
|
+
|
|
74
|
+
**Signature:** `static remove(object : CustomObject) : void`
|
|
75
|
+
|
|
76
|
+
Removes a given custom object.
|
|
77
|
+
|
|
78
|
+
## Method Detail
|
|
79
|
+
|
|
80
|
+
## Method Details
|
|
81
|
+
|
|
82
|
+
### createCustomObject
|
|
83
|
+
|
|
84
|
+
**Signature:** `static createCustomObject(type : String, keyValue : String) : CustomObject`
|
|
85
|
+
|
|
86
|
+
**Description:** Returns a new custom object instance of the specified type, using the given key value. Custom object keys need to be unique for custom object type.
|
|
87
|
+
|
|
88
|
+
**Parameters:**
|
|
89
|
+
|
|
90
|
+
- `type`: The unique name of the custom object type.
|
|
91
|
+
- `keyValue`: The unique key value for the instance.
|
|
92
|
+
|
|
93
|
+
**Returns:**
|
|
94
|
+
|
|
95
|
+
The newly created custom object instance.
|
|
96
|
+
|
|
97
|
+
**Throws:**
|
|
98
|
+
|
|
99
|
+
IllegalArgumentException - if the given type is invalid
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### createCustomObject
|
|
104
|
+
|
|
105
|
+
**Signature:** `static createCustomObject(type : String, keyValue : Number) : CustomObject`
|
|
106
|
+
|
|
107
|
+
**Description:** Returns a new custom object instance of the specified type, using the given key value. Custom object keys need to be unique for custom object type.
|
|
108
|
+
|
|
109
|
+
**Parameters:**
|
|
110
|
+
|
|
111
|
+
- `type`: The unique name of the custom object type.
|
|
112
|
+
- `keyValue`: The unique key value for the instance.
|
|
113
|
+
|
|
114
|
+
**Returns:**
|
|
115
|
+
|
|
116
|
+
The newly created custom object instance.
|
|
117
|
+
|
|
118
|
+
**Throws:**
|
|
119
|
+
|
|
120
|
+
IllegalArgumentException - if the given type is invalid
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### describe
|
|
125
|
+
|
|
126
|
+
**Signature:** `static describe(type : String) : ObjectTypeDefinition`
|
|
127
|
+
|
|
128
|
+
**Description:** Returns the meta data for the given type.
|
|
129
|
+
|
|
130
|
+
**Parameters:**
|
|
131
|
+
|
|
132
|
+
- `type`: the type whose meta data is returned.
|
|
133
|
+
|
|
134
|
+
**Returns:**
|
|
135
|
+
|
|
136
|
+
the meta data for the given type.
|
|
137
|
+
|
|
138
|
+
**Throws:**
|
|
139
|
+
|
|
140
|
+
IllegalArgumentException - if the given type is invalid
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### getAllCustomObjects
|
|
145
|
+
|
|
146
|
+
**Signature:** `static getAllCustomObjects(type : String) : SeekableIterator`
|
|
147
|
+
|
|
148
|
+
**Description:** Returns all custom objects of a specific type. It is strongly recommended to call close() on the returned SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system resources.
|
|
149
|
+
|
|
150
|
+
**Parameters:**
|
|
151
|
+
|
|
152
|
+
- `type`: The name of the custom object type.
|
|
153
|
+
|
|
154
|
+
**See Also:**
|
|
155
|
+
|
|
156
|
+
SeekableIterator.close()
|
|
157
|
+
|
|
158
|
+
**Throws:**
|
|
159
|
+
|
|
160
|
+
IllegalArgumentException - if the given type is invalid
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### getCustomObject
|
|
165
|
+
|
|
166
|
+
**Signature:** `static getCustomObject(type : String, keyValue : String) : CustomObject`
|
|
167
|
+
|
|
168
|
+
**Description:** Returns a custom object based on it's type and unique key.
|
|
169
|
+
|
|
170
|
+
**Parameters:**
|
|
171
|
+
|
|
172
|
+
- `type`: The name of the custom object type.
|
|
173
|
+
- `keyValue`: The unique key value.
|
|
174
|
+
|
|
175
|
+
**Returns:**
|
|
176
|
+
|
|
177
|
+
The matching custom object instance or null in case no matching custom object instance could be found.
|
|
178
|
+
|
|
179
|
+
**Throws:**
|
|
180
|
+
|
|
181
|
+
IllegalArgumentException - if the given type is invalid
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
### getCustomObject
|
|
186
|
+
|
|
187
|
+
**Signature:** `static getCustomObject(type : String, keyValue : Number) : CustomObject`
|
|
188
|
+
|
|
189
|
+
**Description:** Returns a custom object based on it's type and unique key.
|
|
190
|
+
|
|
191
|
+
**Parameters:**
|
|
192
|
+
|
|
193
|
+
- `type`: The name of the custom object type.
|
|
194
|
+
- `keyValue`: The unique key value.
|
|
195
|
+
|
|
196
|
+
**Returns:**
|
|
197
|
+
|
|
198
|
+
The matching custom object instance or null in case no matching custom object instance could be found.
|
|
199
|
+
|
|
200
|
+
**Throws:**
|
|
201
|
+
|
|
202
|
+
IllegalArgumentException - if the given type is invalid
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
### queryCustomObject
|
|
207
|
+
|
|
208
|
+
**Signature:** `static queryCustomObject(type : String, queryString : String, args : Object...) : CustomObject`
|
|
209
|
+
|
|
210
|
+
**Description:** Searches for a single custom object instance. The search can be configured using a simple query language, which provides most common filter and operator functionality. The identifier for an attribute to use in a query condition is always the ID of the attribute as defined in the type definition. For custom defined attributes the prefix custom is required in the search term (e.g. custom.color = {1}), while for system attributes no prefix is used (e.g. name = {4}). Supported attribute value types with sample expression values: String 'String', 'Str*', 'Strin?' Integer 1, 3E4 Number 1.0, 3.99E5 Date yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC) DateTime yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00 Boolean true, false Email 'search@demandware.com', '*@demandware.com' Set of String 'String', 'Str*', 'Strin?' Set of Integer 1, 3E4 Set of Number 1.0, 3.99E5 Enum of String 'String', 'Str*', 'Strin?' Enum of Integer 1, 3E4 The following types of attributes are not queryable: Image HTML Text Quantity Password Note, that some system attributes are not queryable by default regardless of the actual value type code. The following operators are supported in a condition: = Equals - All types; supports NULL value (thumbnail = NULL) != Not equals - All types; supports NULL value (thumbnail != NULL) < Less than - Integer, Number and Date types only > Greater than - Integer, Number and Date types only <= Less or equals than - Integer, Number and Date types only >= Greater or equals than - Integer, Number and Date types only LIKE Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search(custom.country LIKE 'US*') ILIKE Case-independent Like - String types and Email only, use to support case insensitive query (custom.country ILIKE 'usa'), does also support wildcards for substring matching Conditions can be combined using logical expressions 'AND', 'OR' and 'NOT' and nested using parenthesis e.g. gender = {1} AND (age >= {2} OR (NOT profession LIKE {3})). The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by braces. The first Integer value must be '0', the second '1' and so on, e.g. querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date) If there is more than one object matching the specified query criteria, the result is not deterministic. In order to retrieve a single object from a sorted result set it is recommended to use the following code: queryCustomObjects("", "custom.myAttr asc", null).first(). The method first() returns only the next element and closes the iterator. This method does not consider locale specific attributes. It returns all objects by checking the default non-localizable attributes. Any locale specific filtering after fetching the objects must be done by other custom code. Example: Get the custom objects using this method with non-localized attributes query. Access the obj.getCustom("myattr"). It returns the localized value of the attribute.
|
|
211
|
+
|
|
212
|
+
**Parameters:**
|
|
213
|
+
|
|
214
|
+
- `type`: the custom object type for the query.
|
|
215
|
+
- `queryString`: the actual query.
|
|
216
|
+
- `args`: optional parameters for the queryString.
|
|
217
|
+
|
|
218
|
+
**Returns:**
|
|
219
|
+
|
|
220
|
+
the custom object defined by type which was found when executing the queryString.
|
|
221
|
+
|
|
222
|
+
**Throws:**
|
|
223
|
+
|
|
224
|
+
IllegalArgumentException - if the given type is invalid
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
### queryCustomObjects
|
|
229
|
+
|
|
230
|
+
**Signature:** `static queryCustomObjects(type : String, queryString : String, sortString : String, args : Object...) : SeekableIterator`
|
|
231
|
+
|
|
232
|
+
**Description:** Searches for custom object instances. The search can be configured using a simple query language, which provides most common filter and operator functionality. The identifier for an attribute to use in a query condition is always the ID of the attribute as defined in the type definition. For custom defined attributes the prefix custom is required in the search term (e.g. custom.color = {1}), while for system attributes no prefix is used (e.g. name = {4}). Supported attribute value types with sample expression values: String 'String', 'Str*', 'Strin?' Integer 1, 3E4 Number 1.0, 3.99E5 Date yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC) DateTime yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00 Boolean true, false Email 'search@demandware.com', '*@demandware.com' Set of String 'String', 'Str*', 'Strin?' Set of Integer 1, 3E4 Set of Number 1.0, 3.99E5 Enum of String 'String', 'Str*', 'Strin?' Enum of Integer 1, 3E4 The following types of attributes are not queryable: Image HTML Text Quantity Password Note, that some system attributes are not queryable by default regardless of the actual value type code. The following operators are supported in a condition: = Equals - All types; supports NULL value (thumbnail = NULL) != Not equals - All types; supports NULL value (thumbnail != NULL) < Less than - Integer, Number and Date types only > Greater than - Integer, Number and Date types only <= Less or equals than - Integer, Number and Date types only >= Greater or equals than - Integer, Number and Date types only LIKE Like - String types and Email only; use if leading or trailing wildcards will be used to support substring search(custom.country LIKE 'US*') ILIKE Caseindependent Like - String types and Email only, use to support case insensitive query (custom.country ILIKE 'usa'), does also support wildcards for substring matching Conditions can be combined using logical expressions 'AND', 'OR' and 'NOT' and nested using parenthesis e.g. gender = {1} AND (age >= {2} OR (NOT profession LIKE {3})). The query language provides a placeholder syntax to pass objects as additional search parameters. Each passed object is related to a placeholder in the query string. The placeholder must be an Integer that is surrounded by braces. The first Integer value must be '0', the second '1' and so on, e.g. querySystemObjects("sample", "age = {0} or creationDate >= {1}", 18, date) The sorting parameter is optional and may contain a comma separated list of attribute names to sort by. Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). Default sorting directions is ascending, if no direction was specified. Example: age desc, name Please note that specifying a localized custom attribute as the sorting attribute is currently not supported. Sometimes it is desired to get all instances of specified type with a special sorting condition. This can be easily done by providing the 'type' of the custom object and the 'sortString' in combination with an empty 'queryString', e.g. queryCustomObjects("sample", "", "custom.myAttr asc") It is strongly recommended to call close() on the returned SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system resources. This method does not consider locale specific attributes. It returns all objects by checking the default non-localizable attributes. Any locale specific filtering after fetching the objects must be done by other custom code. Example: Get the custom objects using this method with non-localized attributes query. Access the obj.getCustom("myattr"). It returns the localized value of the attribute.
|
|
233
|
+
|
|
234
|
+
**Parameters:**
|
|
235
|
+
|
|
236
|
+
- `type`: the custom object type for the query.
|
|
237
|
+
- `queryString`: the actual query.
|
|
238
|
+
- `sortString`: an optional sorting or null if no sorting is necessary.
|
|
239
|
+
- `args`: optional parameters for the queryString.
|
|
240
|
+
|
|
241
|
+
**Returns:**
|
|
242
|
+
|
|
243
|
+
SeekableIterator containing the result set of the query.
|
|
244
|
+
|
|
245
|
+
**See Also:**
|
|
246
|
+
|
|
247
|
+
SeekableIterator.close()
|
|
248
|
+
|
|
249
|
+
**Throws:**
|
|
250
|
+
|
|
251
|
+
IllegalArgumentException - if the given type is invalid
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
### queryCustomObjects
|
|
256
|
+
|
|
257
|
+
**Signature:** `static queryCustomObjects(type : String, queryAttributes : Map, sortString : String) : SeekableIterator`
|
|
258
|
+
|
|
259
|
+
**Description:** Searches for custom object instances. The search can be configured with a map, which key-value pairs are converted into a query expression. The key-value pairs are turned into a sequence of '=' or 'like' conditions, which are combined with AND statements. Example: A map with the key/value pairs: 'name'/'tom*', 'age'/66 will be converted as follows: "name like 'tom*' and age = 66" The identifier for an attribute to use in a query condition is always the ID of the attribute as defined in the type definition. For custom defined attributes the prefix custom is required in the search term (e.g. custom.color = {1}), while for system attributes no prefix is used (e.g. name = {4}). Supported attribute value types with sample expression values: String 'String', 'Str*', 'Strin?' Integer 1, 3E4 Number 1.0, 3.99E5 Date yyyy-MM-dd e.g. 2007-05-31 (Default TimeZone = UTC) DateTime yyyy-MM-dd'T'hh:mm:ss+Z e.g. 2007-05-31T00:00+Z (Z TimeZone = UTC) or 2007-05-31T00:00:00 Boolean true, false Email 'search@demandware.com', '*@demandware.com' Set of String 'String', 'Str*', 'Strin?' Set of Integer 1, 3E4 Set of Number 1.0, 3.99E5 Enum of String 'String', 'Str*', 'Strin?' Enum of Integer 1, 3E4 The following types of attributes are not queryable: Image HTML Text Quantity Password Note, that some system attributes are not queryable by default regardless of the actual value type code. The sorting parameter is optional and may contain a comma separated list of attribute names to sort by. Each sort attribute name may be followed by an optional sort direction specifier ('asc' | 'desc'). Default sorting directions is ascending, if no direction was specified. Example: age desc, name Please note that specifying a localized custom attribute as the sorting attribute is currently not supported. It is strongly recommended to call close() on the returned SeekableIterator if not all of its elements are being retrieved. This will ensure the proper cleanup of system resources. This method does not consider locale specific attributes. It returns all objects by checking the default non-localizable attributes. Any locale specific filtering after fetching the objects must be done by other custom code. Example: Get the custom objects using this method with non-localized attributes query. Access the obj.getCustom("myattr"). It returns the localized value of the attribute.
|
|
260
|
+
|
|
261
|
+
**Parameters:**
|
|
262
|
+
|
|
263
|
+
- `type`: the custom object type for the query.
|
|
264
|
+
- `queryAttributes`: key-value pairs, which define the query.
|
|
265
|
+
- `sortString`: an optional sorting or null if no sorting is necessary.
|
|
266
|
+
|
|
267
|
+
**Returns:**
|
|
268
|
+
|
|
269
|
+
SeekableIterator containing the result set of the query.
|
|
270
|
+
|
|
271
|
+
**See Also:**
|
|
272
|
+
|
|
273
|
+
SeekableIterator.close()
|
|
274
|
+
|
|
275
|
+
**Throws:**
|
|
276
|
+
|
|
277
|
+
IllegalArgumentException - if the given type is invalid
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
### remove
|
|
282
|
+
|
|
283
|
+
**Signature:** `static remove(object : CustomObject) : void`
|
|
284
|
+
|
|
285
|
+
**Description:** Removes a given custom object.
|
|
286
|
+
|
|
287
|
+
**Parameters:**
|
|
288
|
+
|
|
289
|
+
- `object`: the custom object to remove, must not be null.
|
|
290
|
+
|
|
291
|
+
---
|