ce-storefront 0.19.0 → 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/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/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 +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/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 +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
|
@@ -8,84 +8,40 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
Category,
|
|
13
|
-
Category$inboundSchema,
|
|
14
|
-
Category$Outbound,
|
|
15
|
-
Category$outboundSchema,
|
|
16
|
-
} from "./category.js";
|
|
11
|
+
import { Category, Category$inboundSchema } from "./category.js";
|
|
17
12
|
import {
|
|
18
13
|
LotBatchDetail,
|
|
19
14
|
LotBatchDetail$inboundSchema,
|
|
20
|
-
LotBatchDetail$Outbound,
|
|
21
|
-
LotBatchDetail$outboundSchema,
|
|
22
15
|
} from "./lotbatchdetail.js";
|
|
23
16
|
import {
|
|
24
17
|
ProductAttribute,
|
|
25
18
|
ProductAttribute$inboundSchema,
|
|
26
|
-
ProductAttribute$Outbound,
|
|
27
|
-
ProductAttribute$outboundSchema,
|
|
28
19
|
} from "./productattribute.js";
|
|
29
20
|
import {
|
|
30
21
|
ProductBundleItem,
|
|
31
22
|
ProductBundleItem$inboundSchema,
|
|
32
|
-
ProductBundleItem$Outbound,
|
|
33
|
-
ProductBundleItem$outboundSchema,
|
|
34
23
|
} from "./productbundleitem.js";
|
|
35
|
-
import {
|
|
36
|
-
ProductImage,
|
|
37
|
-
ProductImage$inboundSchema,
|
|
38
|
-
ProductImage$Outbound,
|
|
39
|
-
ProductImage$outboundSchema,
|
|
40
|
-
} from "./productimage.js";
|
|
24
|
+
import { ProductImage, ProductImage$inboundSchema } from "./productimage.js";
|
|
41
25
|
import {
|
|
42
26
|
ProductPricing,
|
|
43
27
|
ProductPricing$inboundSchema,
|
|
44
|
-
ProductPricing$Outbound,
|
|
45
|
-
ProductPricing$outboundSchema,
|
|
46
28
|
} from "./productpricing.js";
|
|
47
29
|
import {
|
|
48
30
|
ProductPromotion,
|
|
49
31
|
ProductPromotion$inboundSchema,
|
|
50
|
-
ProductPromotion$Outbound,
|
|
51
|
-
ProductPromotion$outboundSchema,
|
|
52
32
|
} from "./productpromotion.js";
|
|
53
33
|
import {
|
|
54
34
|
ProductShipping,
|
|
55
35
|
ProductShipping$inboundSchema,
|
|
56
|
-
ProductShipping$Outbound,
|
|
57
|
-
ProductShipping$outboundSchema,
|
|
58
36
|
} from "./productshipping.js";
|
|
59
37
|
import {
|
|
60
38
|
ProductSubscription,
|
|
61
39
|
ProductSubscription$inboundSchema,
|
|
62
|
-
ProductSubscription$Outbound,
|
|
63
|
-
ProductSubscription$outboundSchema,
|
|
64
40
|
} from "./productsubscription.js";
|
|
65
|
-
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
ProductVideo$outboundSchema,
|
|
70
|
-
} from "./productvideo.js";
|
|
71
|
-
import {
|
|
72
|
-
Seo,
|
|
73
|
-
Seo$inboundSchema,
|
|
74
|
-
Seo$Outbound,
|
|
75
|
-
Seo$outboundSchema,
|
|
76
|
-
} from "./seo.js";
|
|
77
|
-
import {
|
|
78
|
-
Variant,
|
|
79
|
-
Variant$inboundSchema,
|
|
80
|
-
Variant$Outbound,
|
|
81
|
-
Variant$outboundSchema,
|
|
82
|
-
} from "./variant.js";
|
|
83
|
-
import {
|
|
84
|
-
VariantOption,
|
|
85
|
-
VariantOption$inboundSchema,
|
|
86
|
-
VariantOption$Outbound,
|
|
87
|
-
VariantOption$outboundSchema,
|
|
88
|
-
} from "./variantoption.js";
|
|
41
|
+
import { ProductVideo, ProductVideo$inboundSchema } from "./productvideo.js";
|
|
42
|
+
import { Seo, Seo$inboundSchema } from "./seo.js";
|
|
43
|
+
import { Variant, Variant$inboundSchema } from "./variant.js";
|
|
44
|
+
import { VariantOption, VariantOption$inboundSchema } from "./variantoption.js";
|
|
89
45
|
|
|
90
46
|
export const ProductDetailProductType = {
|
|
91
47
|
Physical: "physical",
|
|
@@ -168,22 +124,6 @@ export const ProductDetailProductType$inboundSchema: z.ZodNativeEnum<
|
|
|
168
124
|
typeof ProductDetailProductType
|
|
169
125
|
> = z.nativeEnum(ProductDetailProductType);
|
|
170
126
|
|
|
171
|
-
/** @internal */
|
|
172
|
-
export const ProductDetailProductType$outboundSchema: z.ZodNativeEnum<
|
|
173
|
-
typeof ProductDetailProductType
|
|
174
|
-
> = ProductDetailProductType$inboundSchema;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @internal
|
|
178
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
179
|
-
*/
|
|
180
|
-
export namespace ProductDetailProductType$ {
|
|
181
|
-
/** @deprecated use `ProductDetailProductType$inboundSchema` instead. */
|
|
182
|
-
export const inboundSchema = ProductDetailProductType$inboundSchema;
|
|
183
|
-
/** @deprecated use `ProductDetailProductType$outboundSchema` instead. */
|
|
184
|
-
export const outboundSchema = ProductDetailProductType$outboundSchema;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
127
|
/** @internal */
|
|
188
128
|
export const ProductDetail$inboundSchema: z.ZodType<
|
|
189
129
|
ProductDetail,
|
|
@@ -243,120 +183,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
243
183
|
});
|
|
244
184
|
});
|
|
245
185
|
|
|
246
|
-
/** @internal */
|
|
247
|
-
export type ProductDetail$Outbound = {
|
|
248
|
-
id: string;
|
|
249
|
-
sku: string | null;
|
|
250
|
-
name: string;
|
|
251
|
-
slug: string;
|
|
252
|
-
short_description: string | null;
|
|
253
|
-
product_type: string;
|
|
254
|
-
active: boolean;
|
|
255
|
-
stock_available: boolean;
|
|
256
|
-
backorder?: boolean | undefined;
|
|
257
|
-
on_subscription: boolean;
|
|
258
|
-
on_promotion: boolean;
|
|
259
|
-
has_variant: boolean;
|
|
260
|
-
tags: Array<string> | null;
|
|
261
|
-
category_ids: Array<string>;
|
|
262
|
-
categories: Array<Category$Outbound>;
|
|
263
|
-
reviews_rating_sum: number;
|
|
264
|
-
reviews_count: number;
|
|
265
|
-
attributes: Array<ProductAttribute$Outbound>;
|
|
266
|
-
pricing: ProductPricing$Outbound;
|
|
267
|
-
variant_options: Array<VariantOption$Outbound> | null;
|
|
268
|
-
promotion: ProductPromotion$Outbound | null;
|
|
269
|
-
images: Array<ProductImage$Outbound>;
|
|
270
|
-
subscription: Array<ProductSubscription$Outbound>;
|
|
271
|
-
variants: Array<Variant$Outbound>;
|
|
272
|
-
bundle_items: Array<ProductBundleItem$Outbound>;
|
|
273
|
-
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
274
|
-
description: string | null;
|
|
275
|
-
hsn_code: string | null;
|
|
276
|
-
videos: Array<ProductVideo$Outbound>;
|
|
277
|
-
shipping: ProductShipping$Outbound | null;
|
|
278
|
-
upselling_product_ids: Array<string | null>;
|
|
279
|
-
crossselling_product_ids: Array<string>;
|
|
280
|
-
seo: Seo$Outbound;
|
|
281
|
-
metadata: { [k: string]: string } | null;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
/** @internal */
|
|
285
|
-
export const ProductDetail$outboundSchema: z.ZodType<
|
|
286
|
-
ProductDetail$Outbound,
|
|
287
|
-
z.ZodTypeDef,
|
|
288
|
-
ProductDetail
|
|
289
|
-
> = z.object({
|
|
290
|
-
id: z.string(),
|
|
291
|
-
sku: z.nullable(z.string()),
|
|
292
|
-
name: z.string(),
|
|
293
|
-
slug: z.string(),
|
|
294
|
-
shortDescription: z.nullable(z.string()),
|
|
295
|
-
productType: ProductDetailProductType$outboundSchema,
|
|
296
|
-
active: z.boolean(),
|
|
297
|
-
stockAvailable: z.boolean(),
|
|
298
|
-
backorder: z.boolean().optional(),
|
|
299
|
-
onSubscription: z.boolean(),
|
|
300
|
-
onPromotion: z.boolean(),
|
|
301
|
-
hasVariant: z.boolean(),
|
|
302
|
-
tags: z.nullable(z.array(z.string())),
|
|
303
|
-
categoryIds: z.array(z.string()),
|
|
304
|
-
categories: z.array(Category$outboundSchema),
|
|
305
|
-
reviewsRatingSum: z.number(),
|
|
306
|
-
reviewsCount: z.number().int(),
|
|
307
|
-
attributes: z.array(ProductAttribute$outboundSchema),
|
|
308
|
-
pricing: ProductPricing$outboundSchema,
|
|
309
|
-
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
|
|
310
|
-
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
311
|
-
images: z.array(ProductImage$outboundSchema),
|
|
312
|
-
subscription: z.array(ProductSubscription$outboundSchema),
|
|
313
|
-
variants: z.array(Variant$outboundSchema),
|
|
314
|
-
bundleItems: z.array(ProductBundleItem$outboundSchema),
|
|
315
|
-
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
316
|
-
description: z.nullable(z.string()),
|
|
317
|
-
hsnCode: z.nullable(z.string()),
|
|
318
|
-
videos: z.array(ProductVideo$outboundSchema),
|
|
319
|
-
shipping: z.nullable(ProductShipping$outboundSchema),
|
|
320
|
-
upsellingProductIds: z.array(z.nullable(z.string())),
|
|
321
|
-
crosssellingProductIds: z.array(z.string()),
|
|
322
|
-
seo: Seo$outboundSchema,
|
|
323
|
-
metadata: z.nullable(z.record(z.string())),
|
|
324
|
-
}).transform((v) => {
|
|
325
|
-
return remap$(v, {
|
|
326
|
-
shortDescription: "short_description",
|
|
327
|
-
productType: "product_type",
|
|
328
|
-
stockAvailable: "stock_available",
|
|
329
|
-
onSubscription: "on_subscription",
|
|
330
|
-
onPromotion: "on_promotion",
|
|
331
|
-
hasVariant: "has_variant",
|
|
332
|
-
categoryIds: "category_ids",
|
|
333
|
-
reviewsRatingSum: "reviews_rating_sum",
|
|
334
|
-
reviewsCount: "reviews_count",
|
|
335
|
-
variantOptions: "variant_options",
|
|
336
|
-
bundleItems: "bundle_items",
|
|
337
|
-
hsnCode: "hsn_code",
|
|
338
|
-
upsellingProductIds: "upselling_product_ids",
|
|
339
|
-
crosssellingProductIds: "crossselling_product_ids",
|
|
340
|
-
});
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
346
|
-
*/
|
|
347
|
-
export namespace ProductDetail$ {
|
|
348
|
-
/** @deprecated use `ProductDetail$inboundSchema` instead. */
|
|
349
|
-
export const inboundSchema = ProductDetail$inboundSchema;
|
|
350
|
-
/** @deprecated use `ProductDetail$outboundSchema` instead. */
|
|
351
|
-
export const outboundSchema = ProductDetail$outboundSchema;
|
|
352
|
-
/** @deprecated use `ProductDetail$Outbound` instead. */
|
|
353
|
-
export type Outbound = ProductDetail$Outbound;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export function productDetailToJSON(productDetail: ProductDetail): string {
|
|
357
|
-
return JSON.stringify(ProductDetail$outboundSchema.parse(productDetail));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
186
|
export function productDetailFromJSON(
|
|
361
187
|
jsonString: string,
|
|
362
188
|
): SafeParseResult<ProductDetail, SDKValidationError> {
|
|
@@ -47,60 +47,6 @@ export const ProductImage$inboundSchema: z.ZodType<
|
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type ProductImage$Outbound = {
|
|
52
|
-
id: string;
|
|
53
|
-
title: string | null;
|
|
54
|
-
alternate_text: string | null;
|
|
55
|
-
sort_order: number;
|
|
56
|
-
url_tiny: string;
|
|
57
|
-
url_thumbnail: string;
|
|
58
|
-
url_standard: string;
|
|
59
|
-
url_zoom: string;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const ProductImage$outboundSchema: z.ZodType<
|
|
64
|
-
ProductImage$Outbound,
|
|
65
|
-
z.ZodTypeDef,
|
|
66
|
-
ProductImage
|
|
67
|
-
> = z.object({
|
|
68
|
-
id: z.string(),
|
|
69
|
-
title: z.nullable(z.string()),
|
|
70
|
-
alternateText: z.nullable(z.string()),
|
|
71
|
-
sortOrder: z.number().int(),
|
|
72
|
-
urlTiny: z.string(),
|
|
73
|
-
urlThumbnail: z.string(),
|
|
74
|
-
urlStandard: z.string(),
|
|
75
|
-
urlZoom: z.string(),
|
|
76
|
-
}).transform((v) => {
|
|
77
|
-
return remap$(v, {
|
|
78
|
-
alternateText: "alternate_text",
|
|
79
|
-
sortOrder: "sort_order",
|
|
80
|
-
urlTiny: "url_tiny",
|
|
81
|
-
urlThumbnail: "url_thumbnail",
|
|
82
|
-
urlStandard: "url_standard",
|
|
83
|
-
urlZoom: "url_zoom",
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export namespace ProductImage$ {
|
|
92
|
-
/** @deprecated use `ProductImage$inboundSchema` instead. */
|
|
93
|
-
export const inboundSchema = ProductImage$inboundSchema;
|
|
94
|
-
/** @deprecated use `ProductImage$outboundSchema` instead. */
|
|
95
|
-
export const outboundSchema = ProductImage$outboundSchema;
|
|
96
|
-
/** @deprecated use `ProductImage$Outbound` instead. */
|
|
97
|
-
export type Outbound = ProductImage$Outbound;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function productImageToJSON(productImage: ProductImage): string {
|
|
101
|
-
return JSON.stringify(ProductImage$outboundSchema.parse(productImage));
|
|
102
|
-
}
|
|
103
|
-
|
|
104
50
|
export function productImageFromJSON(
|
|
105
51
|
jsonString: string,
|
|
106
52
|
): SafeParseResult<ProductImage, SDKValidationError> {
|
|
@@ -54,67 +54,6 @@ export const ProductPricing$inboundSchema: z.ZodType<
|
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
/** @internal */
|
|
58
|
-
export type ProductPricing$Outbound = {
|
|
59
|
-
currency: string;
|
|
60
|
-
tax_type: "GST";
|
|
61
|
-
tax_rate: number;
|
|
62
|
-
price_including_tax: boolean;
|
|
63
|
-
listing_price: number;
|
|
64
|
-
selling_price: number;
|
|
65
|
-
min_order_quantity: number;
|
|
66
|
-
max_order_quantity: number | null;
|
|
67
|
-
incremental_quantity: number;
|
|
68
|
-
selling_price_excluding_tax: number;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const ProductPricing$outboundSchema: z.ZodType<
|
|
73
|
-
ProductPricing$Outbound,
|
|
74
|
-
z.ZodTypeDef,
|
|
75
|
-
ProductPricing
|
|
76
|
-
> = z.object({
|
|
77
|
-
currency: z.string(),
|
|
78
|
-
taxType: z.literal("GST").default("GST" as const),
|
|
79
|
-
taxRate: z.number(),
|
|
80
|
-
priceIncludingTax: z.boolean(),
|
|
81
|
-
listingPrice: z.number(),
|
|
82
|
-
sellingPrice: z.number(),
|
|
83
|
-
minOrderQuantity: z.number().int().default(1),
|
|
84
|
-
maxOrderQuantity: z.nullable(z.number().int()),
|
|
85
|
-
incrementalQuantity: z.number().int().default(1),
|
|
86
|
-
sellingPriceExcludingTax: z.number(),
|
|
87
|
-
}).transform((v) => {
|
|
88
|
-
return remap$(v, {
|
|
89
|
-
taxType: "tax_type",
|
|
90
|
-
taxRate: "tax_rate",
|
|
91
|
-
priceIncludingTax: "price_including_tax",
|
|
92
|
-
listingPrice: "listing_price",
|
|
93
|
-
sellingPrice: "selling_price",
|
|
94
|
-
minOrderQuantity: "min_order_quantity",
|
|
95
|
-
maxOrderQuantity: "max_order_quantity",
|
|
96
|
-
incrementalQuantity: "incremental_quantity",
|
|
97
|
-
sellingPriceExcludingTax: "selling_price_excluding_tax",
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export namespace ProductPricing$ {
|
|
106
|
-
/** @deprecated use `ProductPricing$inboundSchema` instead. */
|
|
107
|
-
export const inboundSchema = ProductPricing$inboundSchema;
|
|
108
|
-
/** @deprecated use `ProductPricing$outboundSchema` instead. */
|
|
109
|
-
export const outboundSchema = ProductPricing$outboundSchema;
|
|
110
|
-
/** @deprecated use `ProductPricing$Outbound` instead. */
|
|
111
|
-
export type Outbound = ProductPricing$Outbound;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function productPricingToJSON(productPricing: ProductPricing): string {
|
|
115
|
-
return JSON.stringify(ProductPricing$outboundSchema.parse(productPricing));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
57
|
export function productPricingFromJSON(
|
|
119
58
|
jsonString: string,
|
|
120
59
|
): SafeParseResult<ProductPricing, SDKValidationError> {
|
|
@@ -10,26 +10,18 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import {
|
|
11
11
|
DiscountBasedPromotion,
|
|
12
12
|
DiscountBasedPromotion$inboundSchema,
|
|
13
|
-
DiscountBasedPromotion$Outbound,
|
|
14
|
-
DiscountBasedPromotion$outboundSchema,
|
|
15
13
|
} from "./discountbasedpromotion.js";
|
|
16
14
|
import {
|
|
17
15
|
FixedPricePromotion,
|
|
18
16
|
FixedPricePromotion$inboundSchema,
|
|
19
|
-
FixedPricePromotion$Outbound,
|
|
20
|
-
FixedPricePromotion$outboundSchema,
|
|
21
17
|
} from "./fixedpricepromotion.js";
|
|
22
18
|
import {
|
|
23
19
|
FreeGoodsPromotion,
|
|
24
20
|
FreeGoodsPromotion$inboundSchema,
|
|
25
|
-
FreeGoodsPromotion$Outbound,
|
|
26
|
-
FreeGoodsPromotion$outboundSchema,
|
|
27
21
|
} from "./freegoodspromotion.js";
|
|
28
22
|
import {
|
|
29
23
|
VolumeBasedPromotion,
|
|
30
24
|
VolumeBasedPromotion$inboundSchema,
|
|
31
|
-
VolumeBasedPromotion$Outbound,
|
|
32
|
-
VolumeBasedPromotion$outboundSchema,
|
|
33
25
|
} from "./volumebasedpromotion.js";
|
|
34
26
|
|
|
35
27
|
export type Details =
|
|
@@ -77,58 +69,6 @@ export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
|
77
69
|
),
|
|
78
70
|
]);
|
|
79
71
|
|
|
80
|
-
/** @internal */
|
|
81
|
-
export type Details$Outbound =
|
|
82
|
-
| (FreeGoodsPromotion$Outbound & { promotion_type: "free-goods" })
|
|
83
|
-
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
84
|
-
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
85
|
-
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" });
|
|
86
|
-
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const Details$outboundSchema: z.ZodType<
|
|
89
|
-
Details$Outbound,
|
|
90
|
-
z.ZodTypeDef,
|
|
91
|
-
Details
|
|
92
|
-
> = z.union([
|
|
93
|
-
FreeGoodsPromotion$outboundSchema.and(
|
|
94
|
-
z.object({ promotionType: z.literal("free-goods") }).transform((v) => ({
|
|
95
|
-
promotion_type: v.promotionType,
|
|
96
|
-
})),
|
|
97
|
-
),
|
|
98
|
-
DiscountBasedPromotion$outboundSchema.and(
|
|
99
|
-
z.object({ promotionType: z.literal("discount") }).transform((v) => ({
|
|
100
|
-
promotion_type: v.promotionType,
|
|
101
|
-
})),
|
|
102
|
-
),
|
|
103
|
-
FixedPricePromotion$outboundSchema.and(
|
|
104
|
-
z.object({ promotionType: z.literal("fixed-price") }).transform((v) => ({
|
|
105
|
-
promotion_type: v.promotionType,
|
|
106
|
-
})),
|
|
107
|
-
),
|
|
108
|
-
VolumeBasedPromotion$outboundSchema.and(
|
|
109
|
-
z.object({ promotionType: z.literal("volume-based") }).transform((v) => ({
|
|
110
|
-
promotion_type: v.promotionType,
|
|
111
|
-
})),
|
|
112
|
-
),
|
|
113
|
-
]);
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @internal
|
|
117
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
-
*/
|
|
119
|
-
export namespace Details$ {
|
|
120
|
-
/** @deprecated use `Details$inboundSchema` instead. */
|
|
121
|
-
export const inboundSchema = Details$inboundSchema;
|
|
122
|
-
/** @deprecated use `Details$outboundSchema` instead. */
|
|
123
|
-
export const outboundSchema = Details$outboundSchema;
|
|
124
|
-
/** @deprecated use `Details$Outbound` instead. */
|
|
125
|
-
export type Outbound = Details$Outbound;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function detailsToJSON(details: Details): string {
|
|
129
|
-
return JSON.stringify(Details$outboundSchema.parse(details));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
72
|
export function detailsFromJSON(
|
|
133
73
|
jsonString: string,
|
|
134
74
|
): SafeParseResult<Details, SDKValidationError> {
|
|
@@ -179,77 +119,6 @@ export const ProductPromotion$inboundSchema: z.ZodType<
|
|
|
179
119
|
});
|
|
180
120
|
});
|
|
181
121
|
|
|
182
|
-
/** @internal */
|
|
183
|
-
export type ProductPromotion$Outbound = {
|
|
184
|
-
id: string;
|
|
185
|
-
starts_at: string;
|
|
186
|
-
expires_at: string | null;
|
|
187
|
-
details:
|
|
188
|
-
| (FreeGoodsPromotion$Outbound & { promotion_type: "free-goods" })
|
|
189
|
-
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
190
|
-
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
191
|
-
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" });
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
/** @internal */
|
|
195
|
-
export const ProductPromotion$outboundSchema: z.ZodType<
|
|
196
|
-
ProductPromotion$Outbound,
|
|
197
|
-
z.ZodTypeDef,
|
|
198
|
-
ProductPromotion
|
|
199
|
-
> = z.object({
|
|
200
|
-
id: z.string(),
|
|
201
|
-
startsAt: z.date().transform(v => v.toISOString()),
|
|
202
|
-
expiresAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
203
|
-
details: z.union([
|
|
204
|
-
FreeGoodsPromotion$outboundSchema.and(
|
|
205
|
-
z.object({ promotionType: z.literal("free-goods") }).transform((v) => ({
|
|
206
|
-
promotion_type: v.promotionType,
|
|
207
|
-
})),
|
|
208
|
-
),
|
|
209
|
-
DiscountBasedPromotion$outboundSchema.and(
|
|
210
|
-
z.object({ promotionType: z.literal("discount") }).transform((v) => ({
|
|
211
|
-
promotion_type: v.promotionType,
|
|
212
|
-
})),
|
|
213
|
-
),
|
|
214
|
-
FixedPricePromotion$outboundSchema.and(
|
|
215
|
-
z.object({ promotionType: z.literal("fixed-price") }).transform((v) => ({
|
|
216
|
-
promotion_type: v.promotionType,
|
|
217
|
-
})),
|
|
218
|
-
),
|
|
219
|
-
VolumeBasedPromotion$outboundSchema.and(
|
|
220
|
-
z.object({ promotionType: z.literal("volume-based") }).transform((v) => ({
|
|
221
|
-
promotion_type: v.promotionType,
|
|
222
|
-
})),
|
|
223
|
-
),
|
|
224
|
-
]),
|
|
225
|
-
}).transform((v) => {
|
|
226
|
-
return remap$(v, {
|
|
227
|
-
startsAt: "starts_at",
|
|
228
|
-
expiresAt: "expires_at",
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* @internal
|
|
234
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
235
|
-
*/
|
|
236
|
-
export namespace ProductPromotion$ {
|
|
237
|
-
/** @deprecated use `ProductPromotion$inboundSchema` instead. */
|
|
238
|
-
export const inboundSchema = ProductPromotion$inboundSchema;
|
|
239
|
-
/** @deprecated use `ProductPromotion$outboundSchema` instead. */
|
|
240
|
-
export const outboundSchema = ProductPromotion$outboundSchema;
|
|
241
|
-
/** @deprecated use `ProductPromotion$Outbound` instead. */
|
|
242
|
-
export type Outbound = ProductPromotion$Outbound;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export function productPromotionToJSON(
|
|
246
|
-
productPromotion: ProductPromotion,
|
|
247
|
-
): string {
|
|
248
|
-
return JSON.stringify(
|
|
249
|
-
ProductPromotion$outboundSchema.parse(productPromotion),
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
122
|
export function productPromotionFromJSON(
|
|
254
123
|
jsonString: string,
|
|
255
124
|
): SafeParseResult<ProductPromotion, SDKValidationError> {
|