ce-storefront 0.18.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- 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 +0 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -3
- 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 +1 -76
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +1 -71
- 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/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 +2 -89
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +2 -114
- 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 +0 -3
- 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 +1 -110
- 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/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 +4 -205
- 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 -583
- package/docs/sdks/shipping/README.md +0 -169
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +0 -115
- package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/juspaypaymentgatewayparams.js +0 -98
- package/esm/models/components/juspaypaymentgatewayparams.js.map +0 -1
- package/esm/models/components/paymentgatewayparams.d.ts +0 -38
- package/esm/models/components/paymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/paymentgatewayparams.js +0 -43
- package/esm/models/components/paymentgatewayparams.js.map +0 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts +0 -36
- package/esm/models/components/payupaymentgatewayparams.d.ts.map +0 -1
- package/esm/models/components/payupaymentgatewayparams.js +0 -44
- package/esm/models/components/payupaymentgatewayparams.js.map +0 -1
- package/examples/README.md +0 -31
- package/src/models/components/juspaypaymentgatewayparams.ts +0 -181
- package/src/models/components/paymentgatewayparams.ts +0 -99
- package/src/models/components/payupaymentgatewayparams.ts +0 -86
|
@@ -7,41 +7,20 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
AppliedCoupon,
|
|
12
|
-
AppliedCoupon$inboundSchema,
|
|
13
|
-
AppliedCoupon$Outbound,
|
|
14
|
-
AppliedCoupon$outboundSchema,
|
|
15
|
-
} from "./appliedcoupon.js";
|
|
10
|
+
import { AppliedCoupon, AppliedCoupon$inboundSchema } from "./appliedcoupon.js";
|
|
16
11
|
import {
|
|
17
12
|
AppliedPromotion,
|
|
18
13
|
AppliedPromotion$inboundSchema,
|
|
19
|
-
AppliedPromotion$Outbound,
|
|
20
|
-
AppliedPromotion$outboundSchema,
|
|
21
14
|
} from "./appliedpromotion.js";
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
CartItem$inboundSchema,
|
|
25
|
-
CartItem$Outbound,
|
|
26
|
-
CartItem$outboundSchema,
|
|
27
|
-
} from "./cartitem.js";
|
|
28
|
-
import {
|
|
29
|
-
Currency,
|
|
30
|
-
Currency$inboundSchema,
|
|
31
|
-
Currency$Outbound,
|
|
32
|
-
Currency$outboundSchema,
|
|
33
|
-
} from "./currency.js";
|
|
15
|
+
import { CartItem, CartItem$inboundSchema } from "./cartitem.js";
|
|
16
|
+
import { Currency, Currency$inboundSchema } from "./currency.js";
|
|
34
17
|
import {
|
|
35
18
|
CustomerAddress,
|
|
36
19
|
CustomerAddress$inboundSchema,
|
|
37
|
-
CustomerAddress$Outbound,
|
|
38
|
-
CustomerAddress$outboundSchema,
|
|
39
20
|
} from "./customeraddress.js";
|
|
40
21
|
import {
|
|
41
22
|
FulfillmentPreference,
|
|
42
23
|
FulfillmentPreference$inboundSchema,
|
|
43
|
-
FulfillmentPreference$Outbound,
|
|
44
|
-
FulfillmentPreference$outboundSchema,
|
|
45
24
|
} from "./fulfillmentpreference.js";
|
|
46
25
|
|
|
47
26
|
/**
|
|
@@ -284,159 +263,6 @@ export const Cart$inboundSchema: z.ZodType<Cart, z.ZodTypeDef, unknown> = z
|
|
|
284
263
|
});
|
|
285
264
|
});
|
|
286
265
|
|
|
287
|
-
/** @internal */
|
|
288
|
-
export type Cart$Outbound = {
|
|
289
|
-
id: string;
|
|
290
|
-
active: boolean;
|
|
291
|
-
customer_note: string | null;
|
|
292
|
-
is_promotion_applied: boolean;
|
|
293
|
-
is_coupon_applied: boolean;
|
|
294
|
-
coupon_code: string | null;
|
|
295
|
-
coupon_discount_amount: number;
|
|
296
|
-
coupon_discount_percent: number;
|
|
297
|
-
promotion_discount_amount: number;
|
|
298
|
-
promotion_discount_percent?: number | undefined;
|
|
299
|
-
subtotal: number;
|
|
300
|
-
items_tax_amount: number;
|
|
301
|
-
subtotal_including_tax: number;
|
|
302
|
-
shipping_estimated_cost: number | null;
|
|
303
|
-
shipping_discount_amount: number | null;
|
|
304
|
-
shipping_amount: number | null;
|
|
305
|
-
shipping_tax_rate: number | null;
|
|
306
|
-
shipping_tax_amount: number | null;
|
|
307
|
-
shipping_amount_including_tax: number | null;
|
|
308
|
-
fulfillment_preference?: FulfillmentPreference$Outbound | undefined;
|
|
309
|
-
estimated_delivery_days: number | null;
|
|
310
|
-
handling_charge_excluding_tax: number;
|
|
311
|
-
handling_charge_tax_amount: number;
|
|
312
|
-
handling_charge_including_tax: number;
|
|
313
|
-
total_tax: number;
|
|
314
|
-
grand_total: number;
|
|
315
|
-
credit_balance_used: number;
|
|
316
|
-
to_be_paid: number;
|
|
317
|
-
loyalty_points_redeemed: number;
|
|
318
|
-
loyalty_points_earned: number;
|
|
319
|
-
cart_items_count: number;
|
|
320
|
-
cart_items: Array<CartItem$Outbound>;
|
|
321
|
-
billing_address: CustomerAddress$Outbound | null;
|
|
322
|
-
shipping_address: CustomerAddress$Outbound | null;
|
|
323
|
-
currency: Currency$Outbound;
|
|
324
|
-
metadata: { [k: string]: string } | null;
|
|
325
|
-
expires_at: string | null;
|
|
326
|
-
applied_promotions: Array<AppliedPromotion$Outbound>;
|
|
327
|
-
applied_coupons: Array<AppliedCoupon$Outbound>;
|
|
328
|
-
promotion_savings: number;
|
|
329
|
-
coupon_savings: number;
|
|
330
|
-
other_savings: number;
|
|
331
|
-
total_savings: number;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
/** @internal */
|
|
335
|
-
export const Cart$outboundSchema: z.ZodType<Cart$Outbound, z.ZodTypeDef, Cart> =
|
|
336
|
-
z.object({
|
|
337
|
-
id: z.string(),
|
|
338
|
-
active: z.boolean(),
|
|
339
|
-
customerNote: z.nullable(z.string()),
|
|
340
|
-
isPromotionApplied: z.boolean(),
|
|
341
|
-
isCouponApplied: z.boolean(),
|
|
342
|
-
couponCode: z.nullable(z.string()),
|
|
343
|
-
couponDiscountAmount: z.number(),
|
|
344
|
-
couponDiscountPercent: z.number(),
|
|
345
|
-
promotionDiscountAmount: z.number(),
|
|
346
|
-
promotionDiscountPercent: z.number().optional(),
|
|
347
|
-
subtotal: z.number(),
|
|
348
|
-
itemsTaxAmount: z.number(),
|
|
349
|
-
subtotalIncludingTax: z.number(),
|
|
350
|
-
shippingEstimatedCost: z.nullable(z.number()),
|
|
351
|
-
shippingDiscountAmount: z.nullable(z.number()),
|
|
352
|
-
shippingAmount: z.nullable(z.number()),
|
|
353
|
-
shippingTaxRate: z.nullable(z.number()),
|
|
354
|
-
shippingTaxAmount: z.nullable(z.number()),
|
|
355
|
-
shippingAmountIncludingTax: z.nullable(z.number()),
|
|
356
|
-
fulfillmentPreference: FulfillmentPreference$outboundSchema.optional(),
|
|
357
|
-
estimatedDeliveryDays: z.nullable(z.number().int()),
|
|
358
|
-
handlingChargeExcludingTax: z.number(),
|
|
359
|
-
handlingChargeTaxAmount: z.number(),
|
|
360
|
-
handlingChargeIncludingTax: z.number(),
|
|
361
|
-
totalTax: z.number(),
|
|
362
|
-
grandTotal: z.number(),
|
|
363
|
-
creditBalanceUsed: z.number(),
|
|
364
|
-
toBePaid: z.number(),
|
|
365
|
-
loyaltyPointsRedeemed: z.number().int(),
|
|
366
|
-
loyaltyPointsEarned: z.number().int(),
|
|
367
|
-
cartItemsCount: z.number().int(),
|
|
368
|
-
cartItems: z.array(CartItem$outboundSchema),
|
|
369
|
-
billingAddress: z.nullable(CustomerAddress$outboundSchema),
|
|
370
|
-
shippingAddress: z.nullable(CustomerAddress$outboundSchema),
|
|
371
|
-
currency: Currency$outboundSchema,
|
|
372
|
-
metadata: z.nullable(z.record(z.string())),
|
|
373
|
-
expiresAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
374
|
-
appliedPromotions: z.array(AppliedPromotion$outboundSchema),
|
|
375
|
-
appliedCoupons: z.array(AppliedCoupon$outboundSchema),
|
|
376
|
-
promotionSavings: z.number(),
|
|
377
|
-
couponSavings: z.number(),
|
|
378
|
-
otherSavings: z.number(),
|
|
379
|
-
totalSavings: z.number(),
|
|
380
|
-
}).transform((v) => {
|
|
381
|
-
return remap$(v, {
|
|
382
|
-
customerNote: "customer_note",
|
|
383
|
-
isPromotionApplied: "is_promotion_applied",
|
|
384
|
-
isCouponApplied: "is_coupon_applied",
|
|
385
|
-
couponCode: "coupon_code",
|
|
386
|
-
couponDiscountAmount: "coupon_discount_amount",
|
|
387
|
-
couponDiscountPercent: "coupon_discount_percent",
|
|
388
|
-
promotionDiscountAmount: "promotion_discount_amount",
|
|
389
|
-
promotionDiscountPercent: "promotion_discount_percent",
|
|
390
|
-
itemsTaxAmount: "items_tax_amount",
|
|
391
|
-
subtotalIncludingTax: "subtotal_including_tax",
|
|
392
|
-
shippingEstimatedCost: "shipping_estimated_cost",
|
|
393
|
-
shippingDiscountAmount: "shipping_discount_amount",
|
|
394
|
-
shippingAmount: "shipping_amount",
|
|
395
|
-
shippingTaxRate: "shipping_tax_rate",
|
|
396
|
-
shippingTaxAmount: "shipping_tax_amount",
|
|
397
|
-
shippingAmountIncludingTax: "shipping_amount_including_tax",
|
|
398
|
-
fulfillmentPreference: "fulfillment_preference",
|
|
399
|
-
estimatedDeliveryDays: "estimated_delivery_days",
|
|
400
|
-
handlingChargeExcludingTax: "handling_charge_excluding_tax",
|
|
401
|
-
handlingChargeTaxAmount: "handling_charge_tax_amount",
|
|
402
|
-
handlingChargeIncludingTax: "handling_charge_including_tax",
|
|
403
|
-
totalTax: "total_tax",
|
|
404
|
-
grandTotal: "grand_total",
|
|
405
|
-
creditBalanceUsed: "credit_balance_used",
|
|
406
|
-
toBePaid: "to_be_paid",
|
|
407
|
-
loyaltyPointsRedeemed: "loyalty_points_redeemed",
|
|
408
|
-
loyaltyPointsEarned: "loyalty_points_earned",
|
|
409
|
-
cartItemsCount: "cart_items_count",
|
|
410
|
-
cartItems: "cart_items",
|
|
411
|
-
billingAddress: "billing_address",
|
|
412
|
-
shippingAddress: "shipping_address",
|
|
413
|
-
expiresAt: "expires_at",
|
|
414
|
-
appliedPromotions: "applied_promotions",
|
|
415
|
-
appliedCoupons: "applied_coupons",
|
|
416
|
-
promotionSavings: "promotion_savings",
|
|
417
|
-
couponSavings: "coupon_savings",
|
|
418
|
-
otherSavings: "other_savings",
|
|
419
|
-
totalSavings: "total_savings",
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @internal
|
|
425
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
426
|
-
*/
|
|
427
|
-
export namespace Cart$ {
|
|
428
|
-
/** @deprecated use `Cart$inboundSchema` instead. */
|
|
429
|
-
export const inboundSchema = Cart$inboundSchema;
|
|
430
|
-
/** @deprecated use `Cart$outboundSchema` instead. */
|
|
431
|
-
export const outboundSchema = Cart$outboundSchema;
|
|
432
|
-
/** @deprecated use `Cart$Outbound` instead. */
|
|
433
|
-
export type Outbound = Cart$Outbound;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export function cartToJSON(cart: Cart): string {
|
|
437
|
-
return JSON.stringify(Cart$outboundSchema.parse(cart));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
266
|
export function cartFromJSON(
|
|
441
267
|
jsonString: string,
|
|
442
268
|
): SafeParseResult<Cart, SDKValidationError> {
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
|
|
11
8
|
/**
|
|
12
9
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/CartBasedServiceabilityCheck} - API reference for the CartBasedServiceabilityCheck schema
|
|
@@ -16,21 +13,6 @@ export type CartBasedServiceabilityCheck = {
|
|
|
16
13
|
cartId: string;
|
|
17
14
|
};
|
|
18
15
|
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const CartBasedServiceabilityCheck$inboundSchema: z.ZodType<
|
|
21
|
-
CartBasedServiceabilityCheck,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
unknown
|
|
24
|
-
> = z.object({
|
|
25
|
-
delivery_pincode: z.string(),
|
|
26
|
-
cart_id: z.string(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
"delivery_pincode": "deliveryPincode",
|
|
30
|
-
"cart_id": "cartId",
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
16
|
/** @internal */
|
|
35
17
|
export type CartBasedServiceabilityCheck$Outbound = {
|
|
36
18
|
delivery_pincode: string;
|
|
@@ -52,19 +34,6 @@ export const CartBasedServiceabilityCheck$outboundSchema: z.ZodType<
|
|
|
52
34
|
});
|
|
53
35
|
});
|
|
54
36
|
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export namespace CartBasedServiceabilityCheck$ {
|
|
60
|
-
/** @deprecated use `CartBasedServiceabilityCheck$inboundSchema` instead. */
|
|
61
|
-
export const inboundSchema = CartBasedServiceabilityCheck$inboundSchema;
|
|
62
|
-
/** @deprecated use `CartBasedServiceabilityCheck$outboundSchema` instead. */
|
|
63
|
-
export const outboundSchema = CartBasedServiceabilityCheck$outboundSchema;
|
|
64
|
-
/** @deprecated use `CartBasedServiceabilityCheck$Outbound` instead. */
|
|
65
|
-
export type Outbound = CartBasedServiceabilityCheck$Outbound;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
37
|
export function cartBasedServiceabilityCheckToJSON(
|
|
69
38
|
cartBasedServiceabilityCheck: CartBasedServiceabilityCheck,
|
|
70
39
|
): string {
|
|
@@ -74,13 +43,3 @@ export function cartBasedServiceabilityCheckToJSON(
|
|
|
74
43
|
),
|
|
75
44
|
);
|
|
76
45
|
}
|
|
77
|
-
|
|
78
|
-
export function cartBasedServiceabilityCheckFromJSON(
|
|
79
|
-
jsonString: string,
|
|
80
|
-
): SafeParseResult<CartBasedServiceabilityCheck, SDKValidationError> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) => CartBasedServiceabilityCheck$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
-
`Failed to parse 'CartBasedServiceabilityCheck' from JSON`,
|
|
85
|
-
);
|
|
86
|
-
}
|
|
@@ -11,20 +11,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
import {
|
|
12
12
|
AssociatedOption,
|
|
13
13
|
AssociatedOption$inboundSchema,
|
|
14
|
-
AssociatedOption$Outbound,
|
|
15
|
-
AssociatedOption$outboundSchema,
|
|
16
14
|
} from "./associatedoption.js";
|
|
17
15
|
import {
|
|
18
16
|
ProductAttribute,
|
|
19
17
|
ProductAttribute$inboundSchema,
|
|
20
|
-
ProductAttribute$Outbound,
|
|
21
|
-
ProductAttribute$outboundSchema,
|
|
22
18
|
} from "./productattribute.js";
|
|
23
19
|
import {
|
|
24
20
|
ProductSubscription,
|
|
25
21
|
ProductSubscription$inboundSchema,
|
|
26
|
-
ProductSubscription$Outbound,
|
|
27
|
-
ProductSubscription$outboundSchema,
|
|
28
22
|
} from "./productsubscription.js";
|
|
29
23
|
|
|
30
24
|
export const ProductType = {
|
|
@@ -145,21 +139,6 @@ export type CartItem = {
|
|
|
145
139
|
export const ProductType$inboundSchema: z.ZodNativeEnum<typeof ProductType> = z
|
|
146
140
|
.nativeEnum(ProductType);
|
|
147
141
|
|
|
148
|
-
/** @internal */
|
|
149
|
-
export const ProductType$outboundSchema: z.ZodNativeEnum<typeof ProductType> =
|
|
150
|
-
ProductType$inboundSchema;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export namespace ProductType$ {
|
|
157
|
-
/** @deprecated use `ProductType$inboundSchema` instead. */
|
|
158
|
-
export const inboundSchema = ProductType$inboundSchema;
|
|
159
|
-
/** @deprecated use `ProductType$outboundSchema` instead. */
|
|
160
|
-
export const outboundSchema = ProductType$outboundSchema;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
142
|
/** @internal */
|
|
164
143
|
export const CartItem$inboundSchema: z.ZodType<
|
|
165
144
|
CartItem,
|
|
@@ -231,131 +210,6 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
231
210
|
});
|
|
232
211
|
});
|
|
233
212
|
|
|
234
|
-
/** @internal */
|
|
235
|
-
export type CartItem$Outbound = {
|
|
236
|
-
product_id: string;
|
|
237
|
-
variant_id: string | null;
|
|
238
|
-
sku: string | null;
|
|
239
|
-
slug: string;
|
|
240
|
-
product_name: string;
|
|
241
|
-
variant_name: string | null;
|
|
242
|
-
product_type: string;
|
|
243
|
-
product_image_url: string;
|
|
244
|
-
stock_available: boolean;
|
|
245
|
-
backorder: boolean;
|
|
246
|
-
on_subscription: boolean;
|
|
247
|
-
on_promotion: boolean;
|
|
248
|
-
quantity: number;
|
|
249
|
-
is_free_item: boolean;
|
|
250
|
-
free_quantity: number;
|
|
251
|
-
promotion_discount_amount: number;
|
|
252
|
-
coupon_discount_amount: number;
|
|
253
|
-
price_including_tax: boolean;
|
|
254
|
-
listing_price: number;
|
|
255
|
-
selling_price: number;
|
|
256
|
-
selling_price_excluding_tax: number;
|
|
257
|
-
min_order_quantity: number;
|
|
258
|
-
max_order_quantity: number | null;
|
|
259
|
-
incremental_quantity: number;
|
|
260
|
-
handling_charge_excluding_tax: number;
|
|
261
|
-
handling_charge_tax_rate: number;
|
|
262
|
-
handling_charge_including_tax: number;
|
|
263
|
-
tax_type: "GST";
|
|
264
|
-
tax_rate: number;
|
|
265
|
-
tax_amount: number;
|
|
266
|
-
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
267
|
-
attributes: Array<ProductAttribute$Outbound>;
|
|
268
|
-
subscriptions: Array<ProductSubscription$Outbound> | null;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
/** @internal */
|
|
272
|
-
export const CartItem$outboundSchema: z.ZodType<
|
|
273
|
-
CartItem$Outbound,
|
|
274
|
-
z.ZodTypeDef,
|
|
275
|
-
CartItem
|
|
276
|
-
> = z.object({
|
|
277
|
-
productId: z.string(),
|
|
278
|
-
variantId: z.nullable(z.string()),
|
|
279
|
-
sku: z.nullable(z.string()),
|
|
280
|
-
slug: z.string(),
|
|
281
|
-
productName: z.string(),
|
|
282
|
-
variantName: z.nullable(z.string()),
|
|
283
|
-
productType: ProductType$outboundSchema,
|
|
284
|
-
productImageUrl: z.string(),
|
|
285
|
-
stockAvailable: z.boolean(),
|
|
286
|
-
backorder: z.boolean(),
|
|
287
|
-
onSubscription: z.boolean(),
|
|
288
|
-
onPromotion: z.boolean(),
|
|
289
|
-
quantity: z.number().int(),
|
|
290
|
-
isFreeItem: z.boolean(),
|
|
291
|
-
freeQuantity: z.number().int(),
|
|
292
|
-
promotionDiscountAmount: z.number(),
|
|
293
|
-
couponDiscountAmount: z.number(),
|
|
294
|
-
priceIncludingTax: z.boolean(),
|
|
295
|
-
listingPrice: z.number(),
|
|
296
|
-
sellingPrice: z.number(),
|
|
297
|
-
sellingPriceExcludingTax: z.number(),
|
|
298
|
-
minOrderQuantity: z.number().int().default(1),
|
|
299
|
-
maxOrderQuantity: z.nullable(z.number().int()),
|
|
300
|
-
incrementalQuantity: z.number().int().default(1),
|
|
301
|
-
handlingChargeExcludingTax: z.number(),
|
|
302
|
-
handlingChargeTaxRate: z.number(),
|
|
303
|
-
handlingChargeIncludingTax: z.number(),
|
|
304
|
-
taxType: z.literal("GST").default("GST" as const),
|
|
305
|
-
taxRate: z.number(),
|
|
306
|
-
taxAmount: z.number(),
|
|
307
|
-
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
308
|
-
attributes: z.array(ProductAttribute$outboundSchema),
|
|
309
|
-
subscriptions: z.nullable(z.array(ProductSubscription$outboundSchema)),
|
|
310
|
-
}).transform((v) => {
|
|
311
|
-
return remap$(v, {
|
|
312
|
-
productId: "product_id",
|
|
313
|
-
variantId: "variant_id",
|
|
314
|
-
productName: "product_name",
|
|
315
|
-
variantName: "variant_name",
|
|
316
|
-
productType: "product_type",
|
|
317
|
-
productImageUrl: "product_image_url",
|
|
318
|
-
stockAvailable: "stock_available",
|
|
319
|
-
onSubscription: "on_subscription",
|
|
320
|
-
onPromotion: "on_promotion",
|
|
321
|
-
isFreeItem: "is_free_item",
|
|
322
|
-
freeQuantity: "free_quantity",
|
|
323
|
-
promotionDiscountAmount: "promotion_discount_amount",
|
|
324
|
-
couponDiscountAmount: "coupon_discount_amount",
|
|
325
|
-
priceIncludingTax: "price_including_tax",
|
|
326
|
-
listingPrice: "listing_price",
|
|
327
|
-
sellingPrice: "selling_price",
|
|
328
|
-
sellingPriceExcludingTax: "selling_price_excluding_tax",
|
|
329
|
-
minOrderQuantity: "min_order_quantity",
|
|
330
|
-
maxOrderQuantity: "max_order_quantity",
|
|
331
|
-
incrementalQuantity: "incremental_quantity",
|
|
332
|
-
handlingChargeExcludingTax: "handling_charge_excluding_tax",
|
|
333
|
-
handlingChargeTaxRate: "handling_charge_tax_rate",
|
|
334
|
-
handlingChargeIncludingTax: "handling_charge_including_tax",
|
|
335
|
-
taxType: "tax_type",
|
|
336
|
-
taxRate: "tax_rate",
|
|
337
|
-
taxAmount: "tax_amount",
|
|
338
|
-
associatedOptions: "associated_options",
|
|
339
|
-
});
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* @internal
|
|
344
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
345
|
-
*/
|
|
346
|
-
export namespace CartItem$ {
|
|
347
|
-
/** @deprecated use `CartItem$inboundSchema` instead. */
|
|
348
|
-
export const inboundSchema = CartItem$inboundSchema;
|
|
349
|
-
/** @deprecated use `CartItem$outboundSchema` instead. */
|
|
350
|
-
export const outboundSchema = CartItem$outboundSchema;
|
|
351
|
-
/** @deprecated use `CartItem$Outbound` instead. */
|
|
352
|
-
export type Outbound = CartItem$Outbound;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export function cartItemToJSON(cartItem: CartItem): string {
|
|
356
|
-
return JSON.stringify(CartItem$outboundSchema.parse(cartItem));
|
|
357
|
-
}
|
|
358
|
-
|
|
359
213
|
export function cartItemFromJSON(
|
|
360
214
|
jsonString: string,
|
|
361
215
|
): SafeParseResult<CartItem, SDKValidationError> {
|
|
@@ -41,54 +41,6 @@ export const Category$inboundSchema: z.ZodType<
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type Category$Outbound = {
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
slug: string;
|
|
49
|
-
description: string | null;
|
|
50
|
-
parent_category_id: string | null;
|
|
51
|
-
product_count: number;
|
|
52
|
-
active: boolean;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const Category$outboundSchema: z.ZodType<
|
|
57
|
-
Category$Outbound,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
Category
|
|
60
|
-
> = z.object({
|
|
61
|
-
id: z.string(),
|
|
62
|
-
name: z.string(),
|
|
63
|
-
slug: z.string(),
|
|
64
|
-
description: z.nullable(z.string()),
|
|
65
|
-
parentCategoryId: z.nullable(z.string()),
|
|
66
|
-
productCount: z.number().int(),
|
|
67
|
-
active: z.boolean(),
|
|
68
|
-
}).transform((v) => {
|
|
69
|
-
return remap$(v, {
|
|
70
|
-
parentCategoryId: "parent_category_id",
|
|
71
|
-
productCount: "product_count",
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace Category$ {
|
|
80
|
-
/** @deprecated use `Category$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = Category$inboundSchema;
|
|
82
|
-
/** @deprecated use `Category$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = Category$outboundSchema;
|
|
84
|
-
/** @deprecated use `Category$Outbound` instead. */
|
|
85
|
-
export type Outbound = Category$Outbound;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function categoryToJSON(category: Category): string {
|
|
89
|
-
return JSON.stringify(Category$outboundSchema.parse(category));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
44
|
export function categoryFromJSON(
|
|
93
45
|
jsonString: string,
|
|
94
46
|
): SafeParseResult<Category, SDKValidationError> {
|
|
@@ -38,51 +38,6 @@ export const CollectInStore$inboundSchema: z.ZodType<
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type CollectInStore$Outbound = {
|
|
43
|
-
id?: string | undefined;
|
|
44
|
-
name?: string | undefined;
|
|
45
|
-
distance_km?: number | undefined;
|
|
46
|
-
collect_eta_minutes?: number | undefined;
|
|
47
|
-
is_recommended?: boolean | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const CollectInStore$outboundSchema: z.ZodType<
|
|
52
|
-
CollectInStore$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
CollectInStore
|
|
55
|
-
> = z.object({
|
|
56
|
-
id: z.string().optional(),
|
|
57
|
-
name: z.string().optional(),
|
|
58
|
-
distanceKm: z.number().optional(),
|
|
59
|
-
collectEtaMinutes: z.number().int().optional(),
|
|
60
|
-
isRecommended: z.boolean().optional(),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
distanceKm: "distance_km",
|
|
64
|
-
collectEtaMinutes: "collect_eta_minutes",
|
|
65
|
-
isRecommended: "is_recommended",
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
export namespace CollectInStore$ {
|
|
74
|
-
/** @deprecated use `CollectInStore$inboundSchema` instead. */
|
|
75
|
-
export const inboundSchema = CollectInStore$inboundSchema;
|
|
76
|
-
/** @deprecated use `CollectInStore$outboundSchema` instead. */
|
|
77
|
-
export const outboundSchema = CollectInStore$outboundSchema;
|
|
78
|
-
/** @deprecated use `CollectInStore$Outbound` instead. */
|
|
79
|
-
export type Outbound = CollectInStore$Outbound;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function collectInStoreToJSON(collectInStore: CollectInStore): string {
|
|
83
|
-
return JSON.stringify(CollectInStore$outboundSchema.parse(collectInStore));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
41
|
export function collectInStoreFromJSON(
|
|
87
42
|
jsonString: string,
|
|
88
43
|
): SafeParseResult<CollectInStore, SDKValidationError> {
|
|
@@ -30,22 +30,6 @@ export const PreferenceType$inboundSchema: z.ZodNativeEnum<
|
|
|
30
30
|
typeof PreferenceType
|
|
31
31
|
> = z.nativeEnum(PreferenceType);
|
|
32
32
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const PreferenceType$outboundSchema: z.ZodNativeEnum<
|
|
35
|
-
typeof PreferenceType
|
|
36
|
-
> = PreferenceType$inboundSchema;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
-
*/
|
|
42
|
-
export namespace PreferenceType$ {
|
|
43
|
-
/** @deprecated use `PreferenceType$inboundSchema` instead. */
|
|
44
|
-
export const inboundSchema = PreferenceType$inboundSchema;
|
|
45
|
-
/** @deprecated use `PreferenceType$outboundSchema` instead. */
|
|
46
|
-
export const outboundSchema = PreferenceType$outboundSchema;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
33
|
/** @internal */
|
|
50
34
|
export const CollectInStoreFulfillment$inboundSchema: z.ZodType<
|
|
51
35
|
CollectInStoreFulfillment,
|
|
@@ -66,54 +50,6 @@ export const CollectInStoreFulfillment$inboundSchema: z.ZodType<
|
|
|
66
50
|
});
|
|
67
51
|
});
|
|
68
52
|
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type CollectInStoreFulfillment$Outbound = {
|
|
71
|
-
fulfillment_type: "collect-in-store";
|
|
72
|
-
preference_type?: string | undefined;
|
|
73
|
-
pickup_location_id: string;
|
|
74
|
-
pickup_location_name?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const CollectInStoreFulfillment$outboundSchema: z.ZodType<
|
|
79
|
-
CollectInStoreFulfillment$Outbound,
|
|
80
|
-
z.ZodTypeDef,
|
|
81
|
-
CollectInStoreFulfillment
|
|
82
|
-
> = z.object({
|
|
83
|
-
fulfillmentType: z.literal("collect-in-store"),
|
|
84
|
-
preferenceType: PreferenceType$outboundSchema.optional(),
|
|
85
|
-
pickupLocationId: z.string(),
|
|
86
|
-
pickupLocationName: z.string().optional(),
|
|
87
|
-
}).transform((v) => {
|
|
88
|
-
return remap$(v, {
|
|
89
|
-
fulfillmentType: "fulfillment_type",
|
|
90
|
-
preferenceType: "preference_type",
|
|
91
|
-
pickupLocationId: "pickup_location_id",
|
|
92
|
-
pickupLocationName: "pickup_location_name",
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
export namespace CollectInStoreFulfillment$ {
|
|
101
|
-
/** @deprecated use `CollectInStoreFulfillment$inboundSchema` instead. */
|
|
102
|
-
export const inboundSchema = CollectInStoreFulfillment$inboundSchema;
|
|
103
|
-
/** @deprecated use `CollectInStoreFulfillment$outboundSchema` instead. */
|
|
104
|
-
export const outboundSchema = CollectInStoreFulfillment$outboundSchema;
|
|
105
|
-
/** @deprecated use `CollectInStoreFulfillment$Outbound` instead. */
|
|
106
|
-
export type Outbound = CollectInStoreFulfillment$Outbound;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function collectInStoreFulfillmentToJSON(
|
|
110
|
-
collectInStoreFulfillment: CollectInStoreFulfillment,
|
|
111
|
-
): string {
|
|
112
|
-
return JSON.stringify(
|
|
113
|
-
CollectInStoreFulfillment$outboundSchema.parse(collectInStoreFulfillment),
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
53
|
export function collectInStoreFulfillmentFromJSON(
|
|
118
54
|
jsonString: string,
|
|
119
55
|
): SafeParseResult<CollectInStoreFulfillment, SDKValidationError> {
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
|
|
11
8
|
/**
|
|
12
9
|
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/CollectInStoreFulfillment} - API reference for the CollectInStoreFulfillment schema
|
|
@@ -16,22 +13,6 @@ export type CollectInStoreFulfillmentInput = {
|
|
|
16
13
|
pickupLocationId: string;
|
|
17
14
|
};
|
|
18
15
|
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const CollectInStoreFulfillmentInput$inboundSchema: z.ZodType<
|
|
21
|
-
CollectInStoreFulfillmentInput,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
unknown
|
|
24
|
-
> = z.object({
|
|
25
|
-
fulfillment_type: z.literal("collect-in-store").default("collect-in-store")
|
|
26
|
-
.optional(),
|
|
27
|
-
pickup_location_id: z.string(),
|
|
28
|
-
}).transform((v) => {
|
|
29
|
-
return remap$(v, {
|
|
30
|
-
"fulfillment_type": "fulfillmentType",
|
|
31
|
-
"pickup_location_id": "pickupLocationId",
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
16
|
/** @internal */
|
|
36
17
|
export type CollectInStoreFulfillmentInput$Outbound = {
|
|
37
18
|
fulfillment_type: "collect-in-store";
|
|
@@ -53,19 +34,6 @@ export const CollectInStoreFulfillmentInput$outboundSchema: z.ZodType<
|
|
|
53
34
|
});
|
|
54
35
|
});
|
|
55
36
|
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace CollectInStoreFulfillmentInput$ {
|
|
61
|
-
/** @deprecated use `CollectInStoreFulfillmentInput$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = CollectInStoreFulfillmentInput$inboundSchema;
|
|
63
|
-
/** @deprecated use `CollectInStoreFulfillmentInput$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = CollectInStoreFulfillmentInput$outboundSchema;
|
|
65
|
-
/** @deprecated use `CollectInStoreFulfillmentInput$Outbound` instead. */
|
|
66
|
-
export type Outbound = CollectInStoreFulfillmentInput$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
37
|
export function collectInStoreFulfillmentInputToJSON(
|
|
70
38
|
collectInStoreFulfillmentInput: CollectInStoreFulfillmentInput,
|
|
71
39
|
): string {
|
|
@@ -75,13 +43,3 @@ export function collectInStoreFulfillmentInputToJSON(
|
|
|
75
43
|
),
|
|
76
44
|
);
|
|
77
45
|
}
|
|
78
|
-
|
|
79
|
-
export function collectInStoreFulfillmentInputFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<CollectInStoreFulfillmentInput, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) => CollectInStoreFulfillmentInput$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
-
`Failed to parse 'CollectInStoreFulfillmentInput' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|