ce-storefront 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/anonymoususer.d.ts +0 -30
- package/esm/models/components/anonymoususer.d.ts.map +1 -1
- package/esm/models/components/anonymoususer.js +0 -41
- package/esm/models/components/anonymoususer.js.map +1 -1
- package/esm/models/components/appliedcoupon.d.ts +0 -53
- package/esm/models/components/appliedcoupon.d.ts.map +1 -1
- package/esm/models/components/appliedcoupon.js +0 -46
- package/esm/models/components/appliedcoupon.js.map +1 -1
- package/esm/models/components/appliedpromotion.d.ts +0 -51
- package/esm/models/components/appliedpromotion.d.ts.map +1 -1
- package/esm/models/components/appliedpromotion.js +0 -49
- package/esm/models/components/appliedpromotion.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +2 -19
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +2 -18
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/banktransfer.d.ts +0 -70
- package/esm/models/components/banktransfer.d.ts.map +1 -1
- package/esm/models/components/banktransfer.js +0 -65
- package/esm/models/components/banktransfer.js.map +1 -1
- package/esm/models/components/booleanattribute.d.ts +0 -23
- package/esm/models/components/booleanattribute.d.ts.map +1 -1
- package/esm/models/components/booleanattribute.js +0 -22
- package/esm/models/components/booleanattribute.js.map +1 -1
- package/esm/models/components/cardpayment.d.ts +0 -92
- package/esm/models/components/cardpayment.d.ts.map +1 -1
- package/esm/models/components/cardpayment.js +0 -78
- package/esm/models/components/cardpayment.js.map +1 -1
- package/esm/models/components/cart.d.ts +6 -69
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +6 -107
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts +0 -17
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.js +0 -25
- package/esm/models/components/cartbasedserviceabilitycheck.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +3 -76
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +3 -96
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/category.d.ts +0 -25
- package/esm/models/components/category.d.ts.map +1 -1
- package/esm/models/components/category.js +0 -29
- package/esm/models/components/category.js.map +1 -1
- package/esm/models/components/collectinstore.d.ts +0 -23
- package/esm/models/components/collectinstore.d.ts.map +1 -1
- package/esm/models/components/collectinstore.js +0 -28
- package/esm/models/components/collectinstore.js.map +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +0 -40
- package/esm/models/components/collectinstorefulfillment.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillment.js +0 -41
- package/esm/models/components/collectinstorefulfillment.js.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts +0 -17
- package/esm/models/components/collectinstorefulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.js +0 -26
- package/esm/models/components/collectinstorefulfillmentinput.js.map +1 -1
- package/esm/models/components/colorattribute.d.ts +0 -43
- package/esm/models/components/colorattribute.d.ts.map +1 -1
- package/esm/models/components/colorattribute.js +0 -41
- package/esm/models/components/colorattribute.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +0 -41
- package/esm/models/components/coloroption.d.ts.map +1 -1
- package/esm/models/components/coloroption.js +0 -39
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/currency.d.ts +0 -21
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +0 -20
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/customeraddress.d.ts +0 -35
- package/esm/models/components/customeraddress.d.ts.map +1 -1
- package/esm/models/components/customeraddress.js +0 -46
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.d.ts +0 -17
- package/esm/models/components/customeraddressinput.d.ts.map +1 -1
- package/esm/models/components/customeraddressinput.js +0 -43
- package/esm/models/components/customeraddressinput.js.map +1 -1
- package/esm/models/components/customerloyalty.d.ts +0 -27
- package/esm/models/components/customerloyalty.d.ts.map +1 -1
- package/esm/models/components/customerloyalty.js +0 -38
- package/esm/models/components/customerloyalty.js.map +1 -1
- package/esm/models/components/customerreadyforreview.d.ts +0 -24
- package/esm/models/components/customerreadyforreview.d.ts.map +1 -1
- package/esm/models/components/customerreadyforreview.js +0 -32
- package/esm/models/components/customerreadyforreview.js.map +1 -1
- package/esm/models/components/customerreview.d.ts +0 -99
- package/esm/models/components/customerreview.d.ts.map +1 -1
- package/esm/models/components/customerreview.js +0 -121
- package/esm/models/components/customerreview.js.map +1 -1
- package/esm/models/components/dateattribute.d.ts +0 -23
- package/esm/models/components/dateattribute.d.ts.map +1 -1
- package/esm/models/components/dateattribute.js +0 -22
- package/esm/models/components/dateattribute.js.map +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +0 -42
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +0 -45
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts +0 -17
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.js +0 -27
- package/esm/models/components/deliveryfulfillmentinput.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +0 -62
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +0 -54
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +0 -42
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +0 -37
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +0 -43
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +0 -39
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/fulfillmentitem.d.ts +0 -23
- package/esm/models/components/fulfillmentitem.d.ts.map +1 -1
- package/esm/models/components/fulfillmentitem.js +0 -29
- package/esm/models/components/fulfillmentitem.js.map +1 -1
- package/esm/models/components/fulfillmentiteminput.d.ts +0 -17
- package/esm/models/components/fulfillmentiteminput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentiteminput.js +0 -26
- package/esm/models/components/fulfillmentiteminput.js.map +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +3 -26
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +3 -26
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +0 -17
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.js +3 -27
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -1
- package/esm/models/components/generateotpwithemail.d.ts +0 -39
- package/esm/models/components/generateotpwithemail.d.ts.map +1 -1
- package/esm/models/components/generateotpwithemail.js +1 -39
- package/esm/models/components/generateotpwithemail.js.map +1 -1
- package/esm/models/components/generateotpwithphone.d.ts +0 -57
- package/esm/models/components/generateotpwithphone.d.ts.map +1 -1
- package/esm/models/components/generateotpwithphone.js +2 -55
- package/esm/models/components/generateotpwithphone.js.map +1 -1
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +8 -73
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +8 -79
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/juspayexpresscheckout.d.ts +0 -17
- package/esm/models/components/juspayexpresscheckout.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckout.js +5 -28
- package/esm/models/components/juspayexpresscheckout.js.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts +0 -129
- package/esm/models/components/juspayexpresscheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayexpresscheckoutresponse.js +0 -147
- package/esm/models/components/juspayexpresscheckoutresponse.js.map +1 -1
- package/esm/models/components/juspayhypercheckout.d.ts +0 -33
- package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckout.js +1 -45
- package/esm/models/components/juspayhypercheckout.js.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.d.ts +0 -125
- package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.js +0 -130
- package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -1
- package/esm/models/components/juspaynetbanking.d.ts +2 -19
- package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
- package/esm/models/components/juspaynetbanking.js +1 -39
- package/esm/models/components/juspaynetbanking.js.map +1 -1
- package/esm/models/components/juspaynewcard.d.ts +2 -39
- package/esm/models/components/juspaynewcard.d.ts.map +1 -1
- package/esm/models/components/juspaynewcard.js +2 -69
- package/esm/models/components/juspaynewcard.js.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.d.ts +2 -39
- package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.js +2 -63
- package/esm/models/components/juspaysavedcardtoken.js.map +1 -1
- package/esm/models/components/juspayupicollect.d.ts +2 -19
- package/esm/models/components/juspayupicollect.d.ts.map +1 -1
- package/esm/models/components/juspayupicollect.js +1 -41
- package/esm/models/components/juspayupicollect.js.map +1 -1
- package/esm/models/components/juspayupiintent.d.ts +2 -19
- package/esm/models/components/juspayupiintent.d.ts.map +1 -1
- package/esm/models/components/juspayupiintent.js +1 -43
- package/esm/models/components/juspayupiintent.js.map +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +0 -23
- package/esm/models/components/lotbatchdetail.d.ts.map +1 -1
- package/esm/models/components/lotbatchdetail.js +0 -29
- package/esm/models/components/lotbatchdetail.js.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +0 -23
- package/esm/models/components/multiselectattribute.d.ts.map +1 -1
- package/esm/models/components/multiselectattribute.js +0 -22
- package/esm/models/components/multiselectattribute.js.map +1 -1
- package/esm/models/components/netbankingpayment.d.ts +0 -69
- package/esm/models/components/netbankingpayment.d.ts.map +1 -1
- package/esm/models/components/netbankingpayment.js +0 -63
- package/esm/models/components/netbankingpayment.js.map +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts +0 -12
- package/esm/models/components/notificationchannelpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationchannelpreferences.js +0 -11
- package/esm/models/components/notificationchannelpreferences.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +0 -12
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +0 -11
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/numberattribute.d.ts +0 -23
- package/esm/models/components/numberattribute.d.ts.map +1 -1
- package/esm/models/components/numberattribute.js +0 -22
- package/esm/models/components/numberattribute.js.map +1 -1
- package/esm/models/components/order.d.ts +5 -202
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +5 -207
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +6 -204
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +6 -209
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +2 -73
- package/esm/models/components/orderitem.d.ts.map +1 -1
- package/esm/models/components/orderitem.js +2 -93
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/components/orderlist.d.ts +1 -122
- package/esm/models/components/orderlist.d.ts.map +1 -1
- package/esm/models/components/orderlist.js +1 -101
- package/esm/models/components/orderlist.js.map +1 -1
- package/esm/models/components/orderpayment.d.ts +5 -22
- package/esm/models/components/orderpayment.d.ts.map +1 -1
- package/esm/models/components/orderpayment.js +5 -27
- package/esm/models/components/orderpayment.js.map +1 -1
- package/esm/models/components/ordershipment.d.ts +3 -95
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +3 -88
- package/esm/models/components/ordershipment.js.map +1 -1
- package/esm/models/components/pagination.d.ts +0 -23
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +0 -29
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +1 -85
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +1 -96
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +0 -47
- package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.js +1 -75
- package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -1
- package/esm/models/components/paymentmethodpayload.d.ts +0 -17
- package/esm/models/components/paymentmethodpayload.d.ts.map +1 -1
- package/esm/models/components/paymentmethodpayload.js +2 -22
- package/esm/models/components/paymentmethodpayload.js.map +1 -1
- package/esm/models/components/payupaymentinfo.d.ts +0 -55
- package/esm/models/components/payupaymentinfo.d.ts.map +1 -1
- package/esm/models/components/payupaymentinfo.js +0 -58
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/pincode.d.ts +0 -23
- package/esm/models/components/pincode.d.ts.map +1 -1
- package/esm/models/components/pincode.js +0 -28
- package/esm/models/components/pincode.js.map +1 -1
- package/esm/models/components/pincodeserviceability.d.ts +0 -123
- package/esm/models/components/pincodeserviceability.d.ts.map +1 -1
- package/esm/models/components/pincodeserviceability.js +0 -130
- package/esm/models/components/pincodeserviceability.js.map +1 -1
- package/esm/models/components/product.d.ts +10 -74
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +10 -80
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +7 -38
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +7 -39
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +8 -74
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +8 -80
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +1 -27
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +1 -32
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +13 -87
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +13 -94
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +0 -26
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +0 -34
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +0 -28
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +0 -39
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +4 -59
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +4 -72
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/productreview.d.ts +0 -110
- package/esm/models/components/productreview.d.ts.map +1 -1
- package/esm/models/components/productreview.js +0 -122
- package/esm/models/components/productreview.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +0 -22
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +0 -28
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productsubscription.d.ts +0 -70
- package/esm/models/components/productsubscription.d.ts.map +1 -1
- package/esm/models/components/productsubscription.js +0 -69
- package/esm/models/components/productsubscription.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +0 -26
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +0 -35
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/savedpaymentmethod.d.ts +0 -172
- package/esm/models/components/savedpaymentmethod.d.ts.map +1 -1
- package/esm/models/components/savedpaymentmethod.js +0 -227
- package/esm/models/components/savedpaymentmethod.js.map +1 -1
- package/esm/models/components/searchproduct.d.ts +0 -17
- package/esm/models/components/searchproduct.d.ts.map +1 -1
- package/esm/models/components/searchproduct.js +0 -22
- package/esm/models/components/searchproduct.js.map +1 -1
- package/esm/models/components/security.d.ts +0 -17
- package/esm/models/components/security.d.ts.map +1 -1
- package/esm/models/components/security.js +0 -23
- package/esm/models/components/security.js.map +1 -1
- package/esm/models/components/seo.d.ts +0 -22
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +0 -22
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/shipmentitem.d.ts +0 -25
- package/esm/models/components/shipmentitem.d.ts.map +1 -1
- package/esm/models/components/shipmentitem.js +0 -32
- package/esm/models/components/shipmentitem.js.map +1 -1
- package/esm/models/components/shipmentstatus.d.ts +27 -0
- package/esm/models/components/shipmentstatus.d.ts.map +1 -0
- package/esm/models/components/shipmentstatus.js +25 -0
- package/esm/models/components/shipmentstatus.js.map +1 -0
- package/esm/models/components/singleselectattribute.d.ts +0 -23
- package/esm/models/components/singleselectattribute.d.ts.map +1 -1
- package/esm/models/components/singleselectattribute.js +0 -22
- package/esm/models/components/singleselectattribute.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +0 -21
- package/esm/models/components/singleselectoption.d.ts.map +1 -1
- package/esm/models/components/singleselectoption.js +0 -20
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/textattribute.d.ts +0 -23
- package/esm/models/components/textattribute.d.ts.map +1 -1
- package/esm/models/components/textattribute.js +0 -22
- package/esm/models/components/textattribute.js.map +1 -1
- package/esm/models/components/updatecartitem.d.ts +0 -17
- package/esm/models/components/updatecartitem.d.ts.map +1 -1
- package/esm/models/components/updatecartitem.js +0 -26
- package/esm/models/components/updatecartitem.js.map +1 -1
- package/esm/models/components/upipayment.d.ts +0 -69
- package/esm/models/components/upipayment.d.ts.map +1 -1
- package/esm/models/components/upipayment.js +0 -63
- package/esm/models/components/upipayment.js.map +1 -1
- package/esm/models/components/user.d.ts +0 -68
- package/esm/models/components/user.d.ts.map +1 -1
- package/esm/models/components/user.js +0 -92
- package/esm/models/components/user.js.map +1 -1
- package/esm/models/components/variant.d.ts +6 -45
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +6 -53
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +11 -86
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +11 -93
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +0 -74
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +0 -67
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +0 -62
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +0 -60
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/components/walletpayment.d.ts +0 -69
- package/esm/models/components/walletpayment.d.ts.map +1 -1
- package/esm/models/components/walletpayment.js +0 -63
- package/esm/models/components/walletpayment.js.map +1 -1
- package/esm/models/errors/badrequest.d.ts +0 -38
- package/esm/models/errors/badrequest.d.ts.map +1 -1
- package/esm/models/errors/badrequest.js +0 -36
- package/esm/models/errors/badrequest.js.map +1 -1
- package/esm/models/errors/notfound.d.ts +0 -20
- package/esm/models/errors/notfound.d.ts.map +1 -1
- package/esm/models/errors/notfound.js +0 -19
- package/esm/models/errors/notfound.js.map +1 -1
- package/esm/models/errors/unauthorized.d.ts +0 -20
- package/esm/models/errors/unauthorized.d.ts.map +1 -1
- package/esm/models/errors/unauthorized.js +0 -19
- package/esm/models/errors/unauthorized.js.map +1 -1
- package/esm/models/operations/applycoupon.d.ts +0 -70
- package/esm/models/operations/applycoupon.d.ts.map +1 -1
- package/esm/models/operations/applycoupon.js +0 -83
- package/esm/models/operations/applycoupon.js.map +1 -1
- package/esm/models/operations/cancelorder.d.ts +0 -88
- package/esm/models/operations/cancelorder.d.ts.map +1 -1
- package/esm/models/operations/cancelorder.js +1 -103
- package/esm/models/operations/cancelorder.js.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.d.ts +0 -55
- package/esm/models/operations/checkpincodeserviceability.d.ts.map +1 -1
- package/esm/models/operations/checkpincodeserviceability.js +0 -60
- package/esm/models/operations/checkpincodeserviceability.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +0 -70
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/createaddress.js +0 -108
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createcart.d.ts +0 -55
- package/esm/models/operations/createcart.d.ts.map +1 -1
- package/esm/models/operations/createcart.js +0 -57
- package/esm/models/operations/createcart.js.map +1 -1
- package/esm/models/operations/createcartaddress.d.ts +0 -100
- package/esm/models/operations/createcartaddress.d.ts.map +1 -1
- package/esm/models/operations/createcartaddress.js +0 -131
- package/esm/models/operations/createcartaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +0 -74
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +0 -93
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +0 -35
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +0 -43
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +0 -35
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +0 -37
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +0 -35
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +0 -41
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +0 -71
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +0 -90
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +0 -92
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +0 -112
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getanonymoustoken.d.ts +0 -57
- package/esm/models/operations/getanonymoustoken.d.ts.map +1 -1
- package/esm/models/operations/getanonymoustoken.js +0 -67
- package/esm/models/operations/getanonymoustoken.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +0 -55
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +0 -56
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.d.ts +0 -82
- package/esm/models/operations/getfulfillmentoptions.d.ts.map +1 -1
- package/esm/models/operations/getfulfillmentoptions.js +0 -81
- package/esm/models/operations/getfulfillmentoptions.js.map +1 -1
- package/esm/models/operations/getloyaltydetails.d.ts +0 -56
- package/esm/models/operations/getloyaltydetails.d.ts.map +1 -1
- package/esm/models/operations/getloyaltydetails.js +0 -65
- package/esm/models/operations/getloyaltydetails.js.map +1 -1
- package/esm/models/operations/getorderdetail.d.ts +0 -55
- package/esm/models/operations/getorderdetail.d.ts.map +1 -1
- package/esm/models/operations/getorderdetail.js +0 -60
- package/esm/models/operations/getorderdetail.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +0 -80
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +0 -82
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +0 -55
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +0 -63
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +0 -55
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +0 -60
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +0 -55
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +0 -56
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +0 -55
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +0 -65
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +0 -93
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +0 -114
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +0 -56
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +0 -68
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listcountrypincodes.d.ts +0 -55
- package/esm/models/operations/listcountrypincodes.d.ts.map +1 -1
- package/esm/models/operations/listcountrypincodes.js +0 -63
- package/esm/models/operations/listcountrypincodes.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +0 -56
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +0 -67
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listorders.d.ts +0 -56
- package/esm/models/operations/listorders.d.ts.map +1 -1
- package/esm/models/operations/listorders.js +0 -66
- package/esm/models/operations/listorders.js.map +1 -1
- package/esm/models/operations/listordershipments.d.ts +0 -55
- package/esm/models/operations/listordershipments.d.ts.map +1 -1
- package/esm/models/operations/listordershipments.js +0 -60
- package/esm/models/operations/listordershipments.js.map +1 -1
- package/esm/models/operations/listproductreviews.d.ts +0 -57
- package/esm/models/operations/listproductreviews.d.ts.map +1 -1
- package/esm/models/operations/listproductreviews.js +0 -73
- package/esm/models/operations/listproductreviews.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +0 -56
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +0 -70
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +0 -55
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +0 -63
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsavedpaymentmethods.d.ts +0 -55
- package/esm/models/operations/listsavedpaymentmethods.d.ts.map +1 -1
- package/esm/models/operations/listsavedpaymentmethods.js +0 -65
- package/esm/models/operations/listsavedpaymentmethods.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +0 -56
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +0 -67
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +0 -56
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +0 -69
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +0 -56
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +0 -67
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/listuserreviews.d.ts +0 -56
- package/esm/models/operations/listuserreviews.d.ts.map +1 -1
- package/esm/models/operations/listuserreviews.js +0 -66
- package/esm/models/operations/listuserreviews.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +0 -71
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +0 -91
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +0 -71
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +0 -93
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +0 -71
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +0 -93
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +0 -42
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +0 -45
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.d.ts +0 -70
- package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/redeemloyaltypoints.js +0 -83
- package/esm/models/operations/redeemloyaltypoints.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +0 -56
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +0 -66
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/removecoupon.d.ts +0 -55
- package/esm/models/operations/removecoupon.d.ts.map +1 -1
- package/esm/models/operations/removecoupon.js +0 -56
- package/esm/models/operations/removecoupon.js.map +1 -1
- package/esm/models/operations/removeloyaltypoints.d.ts +0 -55
- package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -1
- package/esm/models/operations/removeloyaltypoints.js +0 -56
- package/esm/models/operations/removeloyaltypoints.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +0 -87
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +0 -112
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +0 -84
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +0 -89
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +0 -70
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +0 -110
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +0 -55
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +0 -61
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +0 -55
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +0 -61
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +0 -55
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +0 -61
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +0 -85
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +1 -84
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/anonymoususer.ts +0 -65
- package/src/models/components/appliedcoupon.ts +0 -67
- package/src/models/components/appliedpromotion.ts +0 -77
- package/src/models/components/associatedoption.ts +1 -41
- package/src/models/components/banktransfer.ts +0 -93
- package/src/models/components/booleanattribute.ts +0 -43
- package/src/models/components/cardpayment.ts +0 -108
- package/src/models/components/cart.ts +3 -177
- package/src/models/components/cartbasedserviceabilitycheck.ts +0 -41
- package/src/models/components/cartitem.ts +0 -146
- package/src/models/components/category.ts +0 -48
- package/src/models/components/collectinstore.ts +0 -45
- package/src/models/components/collectinstorefulfillment.ts +0 -64
- package/src/models/components/collectinstorefulfillmentinput.ts +0 -42
- package/src/models/components/colorattribute.ts +0 -76
- package/src/models/components/coloroption.ts +0 -68
- package/src/models/components/currency.ts +0 -35
- package/src/models/components/customeraddress.ts +0 -77
- package/src/models/components/customeraddressinput.ts +0 -59
- package/src/models/components/customerloyalty.ts +0 -61
- package/src/models/components/customerreadyforreview.ts +0 -54
- package/src/models/components/customerreview.ts +0 -208
- package/src/models/components/dateattribute.ts +0 -39
- package/src/models/components/deliveryfulfillment.ts +0 -71
- package/src/models/components/deliveryfulfillmentinput.ts +0 -43
- package/src/models/components/discountbasedpromotion.ts +0 -81
- package/src/models/components/fixedpricepromotion.ts +0 -58
- package/src/models/components/freegoodspromotion.ts +0 -61
- package/src/models/components/fulfillmentitem.ts +0 -48
- package/src/models/components/fulfillmentiteminput.ts +0 -42
- package/src/models/components/fulfillmentpreference.ts +0 -59
- package/src/models/components/fulfillmentpreferenceinput.ts +0 -51
- package/src/models/components/generateotpwithemail.ts +1 -58
- package/src/models/components/generateotpwithphone.ts +2 -75
- package/src/models/components/index.ts +1 -0
- package/src/models/components/item.ts +1 -128
- package/src/models/components/juspayexpresscheckout.ts +0 -44
- package/src/models/components/juspayexpresscheckoutresponse.ts +0 -246
- package/src/models/components/juspayhypercheckout.ts +1 -63
- package/src/models/components/juspayhypercheckoutresponse.ts +0 -220
- package/src/models/components/juspaynetbanking.ts +3 -57
- package/src/models/components/juspaynewcard.ts +4 -92
- package/src/models/components/juspaysavedcardtoken.ts +4 -87
- package/src/models/components/juspayupicollect.ts +3 -59
- package/src/models/components/juspayupiintent.ts +3 -61
- package/src/models/components/lotbatchdetail.ts +0 -46
- package/src/models/components/multiselectattribute.ts +0 -43
- package/src/models/components/netbankingpayment.ts +0 -94
- package/src/models/components/notificationchannelpreferences.ts +0 -15
- package/src/models/components/notificationpreferences.ts +0 -15
- package/src/models/components/numberattribute.ts +0 -41
- package/src/models/components/order.ts +2 -327
- package/src/models/components/orderdetail.ts +3 -346
- package/src/models/components/orderitem.ts +0 -144
- package/src/models/components/orderlist.ts +1 -161
- package/src/models/components/orderpayment.ts +4 -64
- package/src/models/components/ordershipment.ts +6 -133
- package/src/models/components/pagination.ts +0 -46
- package/src/models/components/partialcollectanddelivery.ts +0 -165
- package/src/models/components/partialcollectanddeliveryinput.ts +0 -133
- package/src/models/components/paymentmethodpayload.ts +0 -38
- package/src/models/components/payupaymentinfo.ts +0 -103
- package/src/models/components/pincode.ts +0 -45
- package/src/models/components/pincodeserviceability.ts +0 -203
- package/src/models/components/product.ts +4 -147
- package/src/models/components/productattribute.ts +2 -90
- package/src/models/components/productbundleitem.ts +1 -137
- package/src/models/components/productcategory.ts +1 -59
- package/src/models/components/productdetail.ts +6 -180
- package/src/models/components/productimage.ts +0 -54
- package/src/models/components/productpricing.ts +0 -61
- package/src/models/components/productpromotion.ts +0 -131
- package/src/models/components/productreview.ts +0 -194
- package/src/models/components/productshipping.ts +0 -46
- package/src/models/components/productsubscription.ts +0 -103
- package/src/models/components/productvideo.ts +0 -55
- package/src/models/components/savedpaymentmethod.ts +0 -362
- package/src/models/components/searchproduct.ts +0 -38
- package/src/models/components/security.ts +0 -39
- package/src/models/components/seo.ts +0 -34
- package/src/models/components/shipmentitem.ts +0 -51
- package/src/models/components/shipmentstatus.ts +34 -0
- package/src/models/components/singleselectattribute.ts +0 -43
- package/src/models/components/singleselectoption.ts +0 -39
- package/src/models/components/textattribute.ts +0 -39
- package/src/models/components/updatecartitem.ts +0 -42
- package/src/models/components/upipayment.ts +0 -90
- package/src/models/components/user.ts +0 -131
- package/src/models/components/variant.ts +1 -94
- package/src/models/components/variantdetail.ts +4 -168
- package/src/models/components/variantoption.ts +0 -107
- package/src/models/components/volumebasedpromotion.ts +0 -96
- package/src/models/components/walletpayment.ts +0 -90
- package/src/models/errors/badrequest.ts +0 -62
- package/src/models/errors/notfound.ts +0 -33
- package/src/models/errors/unauthorized.ts +0 -33
- package/src/models/operations/applycoupon.ts +0 -147
- package/src/models/operations/cancelorder.ts +1 -169
- package/src/models/operations/checkpincodeserviceability.ts +0 -119
- package/src/models/operations/createaddress.ts +0 -172
- package/src/models/operations/createcart.ts +0 -107
- package/src/models/operations/createcartaddress.ts +0 -225
- package/src/models/operations/createorder.ts +0 -162
- package/src/models/operations/deleteaddress.ts +0 -75
- package/src/models/operations/deletecart.ts +0 -69
- package/src/models/operations/deleteusercart.ts +0 -73
- package/src/models/operations/generateotp.ts +0 -155
- package/src/models/operations/getaddressdetail.ts +0 -195
- package/src/models/operations/getanonymoustoken.ts +0 -117
- package/src/models/operations/getcart.ts +0 -102
- package/src/models/operations/getfulfillmentoptions.ts +0 -143
- package/src/models/operations/getloyaltydetails.ts +0 -118
- package/src/models/operations/getorderdetail.ts +0 -110
- package/src/models/operations/getpaymentstatus.ts +0 -139
- package/src/models/operations/getproductdetail.ts +0 -115
- package/src/models/operations/getusercart.ts +0 -110
- package/src/models/operations/getuserdetail.ts +0 -106
- package/src/models/operations/getvariantdetail.ts +0 -117
- package/src/models/operations/listaddresses.ts +0 -196
- package/src/models/operations/listcategories.ts +0 -119
- package/src/models/operations/listcountrypincodes.ts +0 -115
- package/src/models/operations/listcrosssellproducts.ts +0 -123
- package/src/models/operations/listorders.ts +0 -117
- package/src/models/operations/listordershipments.ts +0 -112
- package/src/models/operations/listproductreviews.ts +0 -127
- package/src/models/operations/listproducts.ts +0 -121
- package/src/models/operations/listproductvariants.ts +0 -115
- package/src/models/operations/listsavedpaymentmethods.ts +0 -121
- package/src/models/operations/listsimilarproducts.ts +0 -120
- package/src/models/operations/listskus.ts +0 -118
- package/src/models/operations/listupsellproducts.ts +0 -120
- package/src/models/operations/listuserreviews.ts +0 -121
- package/src/models/operations/loginwithemail.ts +0 -156
- package/src/models/operations/loginwithphone.ts +0 -158
- package/src/models/operations/loginwithwhatsapp.ts +0 -160
- package/src/models/operations/logout.ts +0 -79
- package/src/models/operations/redeemloyaltypoints.ts +0 -149
- package/src/models/operations/refreshtoken.ts +0 -117
- package/src/models/operations/removecoupon.ts +0 -106
- package/src/models/operations/removeloyaltypoints.ts +0 -108
- package/src/models/operations/retryorderpayment.ts +0 -201
- package/src/models/operations/searchproducts.ts +0 -156
- package/src/models/operations/updateaddressdetail.ts +0 -178
- package/src/models/operations/updatecart.ts +0 -111
- package/src/models/operations/updatefulfillmentpreference.ts +0 -121
- package/src/models/operations/updateuser.ts +0 -111
- package/src/models/operations/verifyotp.ts +1 -138
- package/docs/sdks/auth/README.md +0 -874
- package/docs/sdks/carts/README.md +0 -1030
- package/docs/sdks/catalog/README.md +0 -876
- package/docs/sdks/common/README.md +0 -87
- package/docs/sdks/customers/README.md +0 -714
- package/docs/sdks/orders/README.md +0 -571
- package/docs/sdks/shipping/README.md +0 -169
- package/examples/README.md +0 -31
|
@@ -1,876 +0,0 @@
|
|
|
1
|
-
# Catalog
|
|
2
|
-
(*catalog*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [listCategories](#listcategories) - List all categories
|
|
9
|
-
* [listProducts](#listproducts) - List all products
|
|
10
|
-
* [listCrosssellProducts](#listcrosssellproducts) - Retrieve cross-sell products
|
|
11
|
-
* [searchProducts](#searchproducts) - Search products
|
|
12
|
-
* [listSimilarProducts](#listsimilarproducts) - Retrieve similar products
|
|
13
|
-
* [listUpsellProducts](#listupsellproducts) - Retrieve up-sell products
|
|
14
|
-
* [getProductDetail](#getproductdetail) - Retrieve a product detail
|
|
15
|
-
* [listProductReviews](#listproductreviews) - List all product reviews
|
|
16
|
-
* [listProductVariants](#listproductvariants) - Retrieve product variants
|
|
17
|
-
* [getVariantDetail](#getvariantdetail) - Retrieve variant detail
|
|
18
|
-
* [listSkus](#listskus) - List all SKUs
|
|
19
|
-
|
|
20
|
-
## listCategories
|
|
21
|
-
|
|
22
|
-
Returns a list of your product categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.
|
|
23
|
-
|
|
24
|
-
API reference for the list-categories operation
|
|
25
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-categories>
|
|
26
|
-
|
|
27
|
-
### Example Usage
|
|
28
|
-
|
|
29
|
-
<!-- UsageSnippet language="typescript" operationID="list-categories" method="get" path="/catalog/categories" -->
|
|
30
|
-
```typescript
|
|
31
|
-
import { CeStorefront } from "ce-storefront";
|
|
32
|
-
|
|
33
|
-
const ceStorefront = new CeStorefront({
|
|
34
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
async function run() {
|
|
38
|
-
const result = await ceStorefront.catalog.listCategories({
|
|
39
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
40
|
-
parentCategoryId: "01JWZW41Y3FBKTZSP399SKANY7",
|
|
41
|
-
parentCategorySlug: "vitals",
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
console.log(result);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
run();
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Standalone function
|
|
51
|
-
|
|
52
|
-
The standalone function version of this method:
|
|
53
|
-
|
|
54
|
-
```typescript
|
|
55
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
56
|
-
import { catalogListCategories } from "ce-storefront/funcs/catalogListCategories.js";
|
|
57
|
-
|
|
58
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
59
|
-
// You can create one instance of it to use across an application.
|
|
60
|
-
const ceStorefront = new CeStorefrontCore({
|
|
61
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
async function run() {
|
|
65
|
-
const res = await catalogListCategories(ceStorefront, {
|
|
66
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
67
|
-
parentCategoryId: "01JWZW41Y3FBKTZSP399SKANY7",
|
|
68
|
-
parentCategorySlug: "vitals",
|
|
69
|
-
});
|
|
70
|
-
if (res.ok) {
|
|
71
|
-
const { value: result } = res;
|
|
72
|
-
console.log(result);
|
|
73
|
-
} else {
|
|
74
|
-
console.log("catalogListCategories failed:", res.error);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
run();
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Parameters
|
|
82
|
-
|
|
83
|
-
| Parameter | Type | Required | Description |
|
|
84
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
85
|
-
| `request` | [operations.ListCategoriesRequest](../../models/operations/listcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
86
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
87
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
88
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
89
|
-
|
|
90
|
-
### Response
|
|
91
|
-
|
|
92
|
-
**Promise\<[operations.ListCategoriesResponseBody](../../models/operations/listcategoriesresponsebody.md)\>**
|
|
93
|
-
|
|
94
|
-
### Errors
|
|
95
|
-
|
|
96
|
-
| Error Type | Status Code | Content Type |
|
|
97
|
-
| ------------------- | ------------------- | ------------------- |
|
|
98
|
-
| errors.BadRequest | 400 | application/json |
|
|
99
|
-
| errors.Unauthorized | 401 | application/json |
|
|
100
|
-
| errors.NotFound | 404 | application/json |
|
|
101
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
102
|
-
|
|
103
|
-
## listProducts
|
|
104
|
-
|
|
105
|
-
Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.
|
|
106
|
-
|
|
107
|
-
API reference for the list-products operation
|
|
108
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-products>
|
|
109
|
-
|
|
110
|
-
### Example Usage
|
|
111
|
-
|
|
112
|
-
<!-- UsageSnippet language="typescript" operationID="list-products" method="get" path="/catalog/products" -->
|
|
113
|
-
```typescript
|
|
114
|
-
import { CeStorefront } from "ce-storefront";
|
|
115
|
-
|
|
116
|
-
const ceStorefront = new CeStorefront({
|
|
117
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
async function run() {
|
|
121
|
-
const result = await ceStorefront.catalog.listProducts({
|
|
122
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
console.log(result);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
run();
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Standalone function
|
|
132
|
-
|
|
133
|
-
The standalone function version of this method:
|
|
134
|
-
|
|
135
|
-
```typescript
|
|
136
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
137
|
-
import { catalogListProducts } from "ce-storefront/funcs/catalogListProducts.js";
|
|
138
|
-
|
|
139
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
140
|
-
// You can create one instance of it to use across an application.
|
|
141
|
-
const ceStorefront = new CeStorefrontCore({
|
|
142
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
async function run() {
|
|
146
|
-
const res = await catalogListProducts(ceStorefront, {
|
|
147
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
148
|
-
});
|
|
149
|
-
if (res.ok) {
|
|
150
|
-
const { value: result } = res;
|
|
151
|
-
console.log(result);
|
|
152
|
-
} else {
|
|
153
|
-
console.log("catalogListProducts failed:", res.error);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
run();
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Parameters
|
|
161
|
-
|
|
162
|
-
| Parameter | Type | Required | Description |
|
|
163
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
164
|
-
| `request` | [operations.ListProductsRequest](../../models/operations/listproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
165
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
166
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
167
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
168
|
-
|
|
169
|
-
### Response
|
|
170
|
-
|
|
171
|
-
**Promise\<[operations.ListProductsResponseBody](../../models/operations/listproductsresponsebody.md)\>**
|
|
172
|
-
|
|
173
|
-
### Errors
|
|
174
|
-
|
|
175
|
-
| Error Type | Status Code | Content Type |
|
|
176
|
-
| ------------------- | ------------------- | ------------------- |
|
|
177
|
-
| errors.Unauthorized | 401 | application/json |
|
|
178
|
-
| errors.NotFound | 404 | application/json |
|
|
179
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
180
|
-
|
|
181
|
-
## listCrosssellProducts
|
|
182
|
-
|
|
183
|
-
Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.
|
|
184
|
-
|
|
185
|
-
API reference for the list-crosssell-products operation
|
|
186
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-crosssell-products>
|
|
187
|
-
|
|
188
|
-
### Example Usage
|
|
189
|
-
|
|
190
|
-
<!-- UsageSnippet language="typescript" operationID="list-crosssell-products" method="get" path="/catalog/products/cross-sell" -->
|
|
191
|
-
```typescript
|
|
192
|
-
import { CeStorefront } from "ce-storefront";
|
|
193
|
-
|
|
194
|
-
const ceStorefront = new CeStorefront({
|
|
195
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
async function run() {
|
|
199
|
-
const result = await ceStorefront.catalog.listCrosssellProducts({});
|
|
200
|
-
|
|
201
|
-
console.log(result);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
run();
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Standalone function
|
|
208
|
-
|
|
209
|
-
The standalone function version of this method:
|
|
210
|
-
|
|
211
|
-
```typescript
|
|
212
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
213
|
-
import { catalogListCrosssellProducts } from "ce-storefront/funcs/catalogListCrosssellProducts.js";
|
|
214
|
-
|
|
215
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
216
|
-
// You can create one instance of it to use across an application.
|
|
217
|
-
const ceStorefront = new CeStorefrontCore({
|
|
218
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
async function run() {
|
|
222
|
-
const res = await catalogListCrosssellProducts(ceStorefront, {});
|
|
223
|
-
if (res.ok) {
|
|
224
|
-
const { value: result } = res;
|
|
225
|
-
console.log(result);
|
|
226
|
-
} else {
|
|
227
|
-
console.log("catalogListCrosssellProducts failed:", res.error);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
run();
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
### Parameters
|
|
235
|
-
|
|
236
|
-
| Parameter | Type | Required | Description |
|
|
237
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
238
|
-
| `request` | [operations.ListCrosssellProductsRequest](../../models/operations/listcrosssellproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
239
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
240
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
241
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
242
|
-
|
|
243
|
-
### Response
|
|
244
|
-
|
|
245
|
-
**Promise\<[operations.ListCrosssellProductsResponseBody](../../models/operations/listcrosssellproductsresponsebody.md)\>**
|
|
246
|
-
|
|
247
|
-
### Errors
|
|
248
|
-
|
|
249
|
-
| Error Type | Status Code | Content Type |
|
|
250
|
-
| ------------------- | ------------------- | ------------------- |
|
|
251
|
-
| errors.Unauthorized | 401 | application/json |
|
|
252
|
-
| errors.NotFound | 404 | application/json |
|
|
253
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
254
|
-
|
|
255
|
-
## searchProducts
|
|
256
|
-
|
|
257
|
-
Search for products matching a specific words or characters given.
|
|
258
|
-
|
|
259
|
-
API reference for the search-products operation
|
|
260
|
-
<https://llm-docs.commercengine.io/storefront/operations/search-products>
|
|
261
|
-
|
|
262
|
-
### Example Usage
|
|
263
|
-
|
|
264
|
-
<!-- UsageSnippet language="typescript" operationID="search-products" method="post" path="/catalog/products/search" -->
|
|
265
|
-
```typescript
|
|
266
|
-
import { CeStorefront } from "ce-storefront";
|
|
267
|
-
|
|
268
|
-
const ceStorefront = new CeStorefront({
|
|
269
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
async function run() {
|
|
273
|
-
const result = await ceStorefront.catalog.searchProducts({
|
|
274
|
-
searchProduct: {
|
|
275
|
-
query: "<value>",
|
|
276
|
-
},
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
console.log(result);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
run();
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### Standalone function
|
|
286
|
-
|
|
287
|
-
The standalone function version of this method:
|
|
288
|
-
|
|
289
|
-
```typescript
|
|
290
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
291
|
-
import { catalogSearchProducts } from "ce-storefront/funcs/catalogSearchProducts.js";
|
|
292
|
-
|
|
293
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
294
|
-
// You can create one instance of it to use across an application.
|
|
295
|
-
const ceStorefront = new CeStorefrontCore({
|
|
296
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
async function run() {
|
|
300
|
-
const res = await catalogSearchProducts(ceStorefront, {
|
|
301
|
-
searchProduct: {
|
|
302
|
-
query: "<value>",
|
|
303
|
-
},
|
|
304
|
-
});
|
|
305
|
-
if (res.ok) {
|
|
306
|
-
const { value: result } = res;
|
|
307
|
-
console.log(result);
|
|
308
|
-
} else {
|
|
309
|
-
console.log("catalogSearchProducts failed:", res.error);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
run();
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
### Parameters
|
|
317
|
-
|
|
318
|
-
| Parameter | Type | Required | Description |
|
|
319
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
320
|
-
| `request` | [operations.SearchProductsRequest](../../models/operations/searchproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
321
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
322
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
323
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
324
|
-
|
|
325
|
-
### Response
|
|
326
|
-
|
|
327
|
-
**Promise\<[operations.SearchProductsResponseBody](../../models/operations/searchproductsresponsebody.md)\>**
|
|
328
|
-
|
|
329
|
-
### Errors
|
|
330
|
-
|
|
331
|
-
| Error Type | Status Code | Content Type |
|
|
332
|
-
| ------------------- | ------------------- | ------------------- |
|
|
333
|
-
| errors.Unauthorized | 401 | application/json |
|
|
334
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
335
|
-
|
|
336
|
-
## listSimilarProducts
|
|
337
|
-
|
|
338
|
-
Retrieves a list of products similar to a specified product based on their attributes and category. The similar products are returned sorted by relevance, with the most closely matching products appearing first. Useful for providing product recommendations to your customers.
|
|
339
|
-
|
|
340
|
-
API reference for the list-similar-products operation
|
|
341
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-similar-products>
|
|
342
|
-
|
|
343
|
-
### Example Usage
|
|
344
|
-
|
|
345
|
-
<!-- UsageSnippet language="typescript" operationID="list-similar-products" method="get" path="/catalog/products/similar" -->
|
|
346
|
-
```typescript
|
|
347
|
-
import { CeStorefront } from "ce-storefront";
|
|
348
|
-
|
|
349
|
-
const ceStorefront = new CeStorefront({
|
|
350
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
async function run() {
|
|
354
|
-
const result = await ceStorefront.catalog.listSimilarProducts({});
|
|
355
|
-
|
|
356
|
-
console.log(result);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
run();
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
### Standalone function
|
|
363
|
-
|
|
364
|
-
The standalone function version of this method:
|
|
365
|
-
|
|
366
|
-
```typescript
|
|
367
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
368
|
-
import { catalogListSimilarProducts } from "ce-storefront/funcs/catalogListSimilarProducts.js";
|
|
369
|
-
|
|
370
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
371
|
-
// You can create one instance of it to use across an application.
|
|
372
|
-
const ceStorefront = new CeStorefrontCore({
|
|
373
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
374
|
-
});
|
|
375
|
-
|
|
376
|
-
async function run() {
|
|
377
|
-
const res = await catalogListSimilarProducts(ceStorefront, {});
|
|
378
|
-
if (res.ok) {
|
|
379
|
-
const { value: result } = res;
|
|
380
|
-
console.log(result);
|
|
381
|
-
} else {
|
|
382
|
-
console.log("catalogListSimilarProducts failed:", res.error);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
run();
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
### Parameters
|
|
390
|
-
|
|
391
|
-
| Parameter | Type | Required | Description |
|
|
392
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
393
|
-
| `request` | [operations.ListSimilarProductsRequest](../../models/operations/listsimilarproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
394
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
395
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
396
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
397
|
-
|
|
398
|
-
### Response
|
|
399
|
-
|
|
400
|
-
**Promise\<[operations.ListSimilarProductsResponseBody](../../models/operations/listsimilarproductsresponsebody.md)\>**
|
|
401
|
-
|
|
402
|
-
### Errors
|
|
403
|
-
|
|
404
|
-
| Error Type | Status Code | Content Type |
|
|
405
|
-
| ------------------- | ------------------- | ------------------- |
|
|
406
|
-
| errors.Unauthorized | 401 | application/json |
|
|
407
|
-
| errors.NotFound | 404 | application/json |
|
|
408
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
409
|
-
|
|
410
|
-
## listUpsellProducts
|
|
411
|
-
|
|
412
|
-
Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.
|
|
413
|
-
|
|
414
|
-
API reference for the list-upsell-products operation
|
|
415
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-upsell-products>
|
|
416
|
-
|
|
417
|
-
### Example Usage
|
|
418
|
-
|
|
419
|
-
<!-- UsageSnippet language="typescript" operationID="list-upsell-products" method="get" path="/catalog/products/up-sell" -->
|
|
420
|
-
```typescript
|
|
421
|
-
import { CeStorefront } from "ce-storefront";
|
|
422
|
-
|
|
423
|
-
const ceStorefront = new CeStorefront({
|
|
424
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
async function run() {
|
|
428
|
-
const result = await ceStorefront.catalog.listUpsellProducts({});
|
|
429
|
-
|
|
430
|
-
console.log(result);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
run();
|
|
434
|
-
```
|
|
435
|
-
|
|
436
|
-
### Standalone function
|
|
437
|
-
|
|
438
|
-
The standalone function version of this method:
|
|
439
|
-
|
|
440
|
-
```typescript
|
|
441
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
442
|
-
import { catalogListUpsellProducts } from "ce-storefront/funcs/catalogListUpsellProducts.js";
|
|
443
|
-
|
|
444
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
445
|
-
// You can create one instance of it to use across an application.
|
|
446
|
-
const ceStorefront = new CeStorefrontCore({
|
|
447
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
async function run() {
|
|
451
|
-
const res = await catalogListUpsellProducts(ceStorefront, {});
|
|
452
|
-
if (res.ok) {
|
|
453
|
-
const { value: result } = res;
|
|
454
|
-
console.log(result);
|
|
455
|
-
} else {
|
|
456
|
-
console.log("catalogListUpsellProducts failed:", res.error);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
run();
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
### Parameters
|
|
464
|
-
|
|
465
|
-
| Parameter | Type | Required | Description |
|
|
466
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
467
|
-
| `request` | [operations.ListUpsellProductsRequest](../../models/operations/listupsellproductsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
468
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
469
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
470
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
471
|
-
|
|
472
|
-
### Response
|
|
473
|
-
|
|
474
|
-
**Promise\<[operations.ListUpsellProductsResponseBody](../../models/operations/listupsellproductsresponsebody.md)\>**
|
|
475
|
-
|
|
476
|
-
### Errors
|
|
477
|
-
|
|
478
|
-
| Error Type | Status Code | Content Type |
|
|
479
|
-
| ------------------- | ------------------- | ------------------- |
|
|
480
|
-
| errors.Unauthorized | 401 | application/json |
|
|
481
|
-
| errors.NotFound | 404 | application/json |
|
|
482
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
483
|
-
|
|
484
|
-
## getProductDetail
|
|
485
|
-
|
|
486
|
-
Retrieves the details of an existing product. Supply either the unique product ID or the unique slug, and Commerce Engine will return the corresponding product information.
|
|
487
|
-
|
|
488
|
-
API reference for the get-product-detail operation
|
|
489
|
-
<https://llm-docs.commercengine.io/storefront/operations/get-product-detail>
|
|
490
|
-
|
|
491
|
-
### Example Usage
|
|
492
|
-
|
|
493
|
-
<!-- UsageSnippet language="typescript" operationID="get-product-detail" method="get" path="/catalog/products/{product_id_or_slug}" -->
|
|
494
|
-
```typescript
|
|
495
|
-
import { CeStorefront } from "ce-storefront";
|
|
496
|
-
|
|
497
|
-
const ceStorefront = new CeStorefront({
|
|
498
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
async function run() {
|
|
502
|
-
const result = await ceStorefront.catalog.getProductDetail({
|
|
503
|
-
productIdOrSlug: "01XGCYCT8CRHXW4BG91JXCMDCW",
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
console.log(result);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
run();
|
|
510
|
-
```
|
|
511
|
-
|
|
512
|
-
### Standalone function
|
|
513
|
-
|
|
514
|
-
The standalone function version of this method:
|
|
515
|
-
|
|
516
|
-
```typescript
|
|
517
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
518
|
-
import { catalogGetProductDetail } from "ce-storefront/funcs/catalogGetProductDetail.js";
|
|
519
|
-
|
|
520
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
521
|
-
// You can create one instance of it to use across an application.
|
|
522
|
-
const ceStorefront = new CeStorefrontCore({
|
|
523
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
async function run() {
|
|
527
|
-
const res = await catalogGetProductDetail(ceStorefront, {
|
|
528
|
-
productIdOrSlug: "01XGCYCT8CRHXW4BG91JXCMDCW",
|
|
529
|
-
});
|
|
530
|
-
if (res.ok) {
|
|
531
|
-
const { value: result } = res;
|
|
532
|
-
console.log(result);
|
|
533
|
-
} else {
|
|
534
|
-
console.log("catalogGetProductDetail failed:", res.error);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
run();
|
|
539
|
-
```
|
|
540
|
-
|
|
541
|
-
### Parameters
|
|
542
|
-
|
|
543
|
-
| Parameter | Type | Required | Description |
|
|
544
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
545
|
-
| `request` | [operations.GetProductDetailRequest](../../models/operations/getproductdetailrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
546
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
547
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
548
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
549
|
-
|
|
550
|
-
### Response
|
|
551
|
-
|
|
552
|
-
**Promise\<[operations.GetProductDetailResponseBody](../../models/operations/getproductdetailresponsebody.md)\>**
|
|
553
|
-
|
|
554
|
-
### Errors
|
|
555
|
-
|
|
556
|
-
| Error Type | Status Code | Content Type |
|
|
557
|
-
| ------------------- | ------------------- | ------------------- |
|
|
558
|
-
| errors.Unauthorized | 401 | application/json |
|
|
559
|
-
| errors.NotFound | 404 | application/json |
|
|
560
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
561
|
-
|
|
562
|
-
## listProductReviews
|
|
563
|
-
|
|
564
|
-
List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.
|
|
565
|
-
|
|
566
|
-
API reference for the list-product-reviews operation
|
|
567
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-product-reviews>
|
|
568
|
-
|
|
569
|
-
### Example Usage
|
|
570
|
-
|
|
571
|
-
<!-- UsageSnippet language="typescript" operationID="list-product-reviews" method="get" path="/catalog/products/{product_id}/reviews" -->
|
|
572
|
-
```typescript
|
|
573
|
-
import { CeStorefront } from "ce-storefront";
|
|
574
|
-
|
|
575
|
-
const ceStorefront = new CeStorefront({
|
|
576
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
577
|
-
});
|
|
578
|
-
|
|
579
|
-
async function run() {
|
|
580
|
-
const result = await ceStorefront.catalog.listProductReviews({
|
|
581
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
582
|
-
productId: "<id>",
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
console.log(result);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
run();
|
|
589
|
-
```
|
|
590
|
-
|
|
591
|
-
### Standalone function
|
|
592
|
-
|
|
593
|
-
The standalone function version of this method:
|
|
594
|
-
|
|
595
|
-
```typescript
|
|
596
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
597
|
-
import { catalogListProductReviews } from "ce-storefront/funcs/catalogListProductReviews.js";
|
|
598
|
-
|
|
599
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
600
|
-
// You can create one instance of it to use across an application.
|
|
601
|
-
const ceStorefront = new CeStorefrontCore({
|
|
602
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
async function run() {
|
|
606
|
-
const res = await catalogListProductReviews(ceStorefront, {
|
|
607
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
608
|
-
productId: "<id>",
|
|
609
|
-
});
|
|
610
|
-
if (res.ok) {
|
|
611
|
-
const { value: result } = res;
|
|
612
|
-
console.log(result);
|
|
613
|
-
} else {
|
|
614
|
-
console.log("catalogListProductReviews failed:", res.error);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
run();
|
|
619
|
-
```
|
|
620
|
-
|
|
621
|
-
### Parameters
|
|
622
|
-
|
|
623
|
-
| Parameter | Type | Required | Description |
|
|
624
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
625
|
-
| `request` | [operations.ListProductReviewsRequest](../../models/operations/listproductreviewsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
626
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
627
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
628
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
629
|
-
|
|
630
|
-
### Response
|
|
631
|
-
|
|
632
|
-
**Promise\<[operations.ListProductReviewsResponseBody](../../models/operations/listproductreviewsresponsebody.md)\>**
|
|
633
|
-
|
|
634
|
-
### Errors
|
|
635
|
-
|
|
636
|
-
| Error Type | Status Code | Content Type |
|
|
637
|
-
| ------------------- | ------------------- | ------------------- |
|
|
638
|
-
| errors.Unauthorized | 401 | application/json |
|
|
639
|
-
| errors.NotFound | 404 | application/json |
|
|
640
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
641
|
-
|
|
642
|
-
## listProductVariants
|
|
643
|
-
|
|
644
|
-
Retrieves the variants of an existing product. Supply the unique product ID, and Commerce Engine will return the corresponding product variants information.
|
|
645
|
-
|
|
646
|
-
API reference for the list-product-variants operation
|
|
647
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-product-variants>
|
|
648
|
-
|
|
649
|
-
### Example Usage
|
|
650
|
-
|
|
651
|
-
<!-- UsageSnippet language="typescript" operationID="list-product-variants" method="get" path="/catalog/products/{product_id}/variants" -->
|
|
652
|
-
```typescript
|
|
653
|
-
import { CeStorefront } from "ce-storefront";
|
|
654
|
-
|
|
655
|
-
const ceStorefront = new CeStorefront({
|
|
656
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
657
|
-
});
|
|
658
|
-
|
|
659
|
-
async function run() {
|
|
660
|
-
const result = await ceStorefront.catalog.listProductVariants({
|
|
661
|
-
productId: "01H7YK0C86V9PGT0HXRJVEZXJQ",
|
|
662
|
-
});
|
|
663
|
-
|
|
664
|
-
console.log(result);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
run();
|
|
668
|
-
```
|
|
669
|
-
|
|
670
|
-
### Standalone function
|
|
671
|
-
|
|
672
|
-
The standalone function version of this method:
|
|
673
|
-
|
|
674
|
-
```typescript
|
|
675
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
676
|
-
import { catalogListProductVariants } from "ce-storefront/funcs/catalogListProductVariants.js";
|
|
677
|
-
|
|
678
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
679
|
-
// You can create one instance of it to use across an application.
|
|
680
|
-
const ceStorefront = new CeStorefrontCore({
|
|
681
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
682
|
-
});
|
|
683
|
-
|
|
684
|
-
async function run() {
|
|
685
|
-
const res = await catalogListProductVariants(ceStorefront, {
|
|
686
|
-
productId: "01H7YK0C86V9PGT0HXRJVEZXJQ",
|
|
687
|
-
});
|
|
688
|
-
if (res.ok) {
|
|
689
|
-
const { value: result } = res;
|
|
690
|
-
console.log(result);
|
|
691
|
-
} else {
|
|
692
|
-
console.log("catalogListProductVariants failed:", res.error);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
run();
|
|
697
|
-
```
|
|
698
|
-
|
|
699
|
-
### Parameters
|
|
700
|
-
|
|
701
|
-
| Parameter | Type | Required | Description |
|
|
702
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
703
|
-
| `request` | [operations.ListProductVariantsRequest](../../models/operations/listproductvariantsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
704
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
705
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
706
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
707
|
-
|
|
708
|
-
### Response
|
|
709
|
-
|
|
710
|
-
**Promise\<[operations.ListProductVariantsResponseBody](../../models/operations/listproductvariantsresponsebody.md)\>**
|
|
711
|
-
|
|
712
|
-
### Errors
|
|
713
|
-
|
|
714
|
-
| Error Type | Status Code | Content Type |
|
|
715
|
-
| ------------------- | ------------------- | ------------------- |
|
|
716
|
-
| errors.Unauthorized | 401 | application/json |
|
|
717
|
-
| errors.NotFound | 404 | application/json |
|
|
718
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
719
|
-
|
|
720
|
-
## getVariantDetail
|
|
721
|
-
|
|
722
|
-
Retrieves the details of a particular variant. Supply the unique product ID, and variant ID.
|
|
723
|
-
|
|
724
|
-
API reference for the get-variant-detail operation
|
|
725
|
-
<https://llm-docs.commercengine.io/storefront/operations/get-variant-detail>
|
|
726
|
-
|
|
727
|
-
### Example Usage
|
|
728
|
-
|
|
729
|
-
<!-- UsageSnippet language="typescript" operationID="get-variant-detail" method="get" path="/catalog/products/{product_id}/variants/{variant_id}" -->
|
|
730
|
-
```typescript
|
|
731
|
-
import { CeStorefront } from "ce-storefront";
|
|
732
|
-
|
|
733
|
-
const ceStorefront = new CeStorefront({
|
|
734
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
735
|
-
});
|
|
736
|
-
|
|
737
|
-
async function run() {
|
|
738
|
-
const result = await ceStorefront.catalog.getVariantDetail({
|
|
739
|
-
productId: "01H7YK0C86V9PGT0HXRJVEZXJQ",
|
|
740
|
-
variantId: "<id>",
|
|
741
|
-
});
|
|
742
|
-
|
|
743
|
-
console.log(result);
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
run();
|
|
747
|
-
```
|
|
748
|
-
|
|
749
|
-
### Standalone function
|
|
750
|
-
|
|
751
|
-
The standalone function version of this method:
|
|
752
|
-
|
|
753
|
-
```typescript
|
|
754
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
755
|
-
import { catalogGetVariantDetail } from "ce-storefront/funcs/catalogGetVariantDetail.js";
|
|
756
|
-
|
|
757
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
758
|
-
// You can create one instance of it to use across an application.
|
|
759
|
-
const ceStorefront = new CeStorefrontCore({
|
|
760
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
761
|
-
});
|
|
762
|
-
|
|
763
|
-
async function run() {
|
|
764
|
-
const res = await catalogGetVariantDetail(ceStorefront, {
|
|
765
|
-
productId: "01H7YK0C86V9PGT0HXRJVEZXJQ",
|
|
766
|
-
variantId: "<id>",
|
|
767
|
-
});
|
|
768
|
-
if (res.ok) {
|
|
769
|
-
const { value: result } = res;
|
|
770
|
-
console.log(result);
|
|
771
|
-
} else {
|
|
772
|
-
console.log("catalogGetVariantDetail failed:", res.error);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
run();
|
|
777
|
-
```
|
|
778
|
-
|
|
779
|
-
### Parameters
|
|
780
|
-
|
|
781
|
-
| Parameter | Type | Required | Description |
|
|
782
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
783
|
-
| `request` | [operations.GetVariantDetailRequest](../../models/operations/getvariantdetailrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
784
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
785
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
786
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
787
|
-
|
|
788
|
-
### Response
|
|
789
|
-
|
|
790
|
-
**Promise\<[operations.GetVariantDetailResponseBody](../../models/operations/getvariantdetailresponsebody.md)\>**
|
|
791
|
-
|
|
792
|
-
### Errors
|
|
793
|
-
|
|
794
|
-
| Error Type | Status Code | Content Type |
|
|
795
|
-
| ------------------- | ------------------- | ------------------- |
|
|
796
|
-
| errors.Unauthorized | 401 | application/json |
|
|
797
|
-
| errors.NotFound | 404 | application/json |
|
|
798
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|
|
799
|
-
|
|
800
|
-
## listSkus
|
|
801
|
-
|
|
802
|
-
Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.
|
|
803
|
-
|
|
804
|
-
API reference for the list-skus operation
|
|
805
|
-
<https://llm-docs.commercengine.io/storefront/operations/list-skus>
|
|
806
|
-
|
|
807
|
-
### Example Usage
|
|
808
|
-
|
|
809
|
-
<!-- UsageSnippet language="typescript" operationID="list-skus" method="get" path="/catalog/skus" -->
|
|
810
|
-
```typescript
|
|
811
|
-
import { CeStorefront } from "ce-storefront";
|
|
812
|
-
|
|
813
|
-
const ceStorefront = new CeStorefront({
|
|
814
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
815
|
-
});
|
|
816
|
-
|
|
817
|
-
async function run() {
|
|
818
|
-
const result = await ceStorefront.catalog.listSkus({
|
|
819
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
820
|
-
});
|
|
821
|
-
|
|
822
|
-
console.log(result);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
run();
|
|
826
|
-
```
|
|
827
|
-
|
|
828
|
-
### Standalone function
|
|
829
|
-
|
|
830
|
-
The standalone function version of this method:
|
|
831
|
-
|
|
832
|
-
```typescript
|
|
833
|
-
import { CeStorefrontCore } from "ce-storefront/core.js";
|
|
834
|
-
import { catalogListSkus } from "ce-storefront/funcs/catalogListSkus.js";
|
|
835
|
-
|
|
836
|
-
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
837
|
-
// You can create one instance of it to use across an application.
|
|
838
|
-
const ceStorefront = new CeStorefrontCore({
|
|
839
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
840
|
-
});
|
|
841
|
-
|
|
842
|
-
async function run() {
|
|
843
|
-
const res = await catalogListSkus(ceStorefront, {
|
|
844
|
-
sortBy: "{\"country\":\"asc\",\"city\":\"asc\",\"population\":\"desc\"}",
|
|
845
|
-
});
|
|
846
|
-
if (res.ok) {
|
|
847
|
-
const { value: result } = res;
|
|
848
|
-
console.log(result);
|
|
849
|
-
} else {
|
|
850
|
-
console.log("catalogListSkus failed:", res.error);
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
run();
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
### Parameters
|
|
858
|
-
|
|
859
|
-
| Parameter | Type | Required | Description |
|
|
860
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
861
|
-
| `request` | [operations.ListSkusRequest](../../models/operations/listskusrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
862
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
863
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
864
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
865
|
-
|
|
866
|
-
### Response
|
|
867
|
-
|
|
868
|
-
**Promise\<[operations.ListSkusResponseBody](../../models/operations/listskusresponsebody.md)\>**
|
|
869
|
-
|
|
870
|
-
### Errors
|
|
871
|
-
|
|
872
|
-
| Error Type | Status Code | Content Type |
|
|
873
|
-
| ------------------- | ------------------- | ------------------- |
|
|
874
|
-
| errors.Unauthorized | 401 | application/json |
|
|
875
|
-
| errors.NotFound | 404 | application/json |
|
|
876
|
-
| errors.CeError | 4XX, 5XX | \*/\* |
|