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
|
@@ -47,140 +47,17 @@ export type PincodeServiceability = {
|
|
|
47
47
|
/** @internal */
|
|
48
48
|
export declare const ShippingType$inboundSchema: z.ZodNativeEnum<typeof ShippingType>;
|
|
49
49
|
/** @internal */
|
|
50
|
-
export declare const ShippingType$outboundSchema: z.ZodNativeEnum<typeof ShippingType>;
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export declare namespace ShippingType$ {
|
|
56
|
-
/** @deprecated use `ShippingType$inboundSchema` instead. */
|
|
57
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
58
|
-
readonly Auto: "auto";
|
|
59
|
-
readonly Manual: "manual";
|
|
60
|
-
}>;
|
|
61
|
-
/** @deprecated use `ShippingType$outboundSchema` instead. */
|
|
62
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
63
|
-
readonly Auto: "auto";
|
|
64
|
-
readonly Manual: "manual";
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
/** @internal */
|
|
68
50
|
export declare const Id$inboundSchema: z.ZodType<Id, z.ZodTypeDef, unknown>;
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type Id$Outbound = string | number;
|
|
71
|
-
/** @internal */
|
|
72
|
-
export declare const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id>;
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export declare namespace Id$ {
|
|
78
|
-
/** @deprecated use `Id$inboundSchema` instead. */
|
|
79
|
-
const inboundSchema: z.ZodType<Id, z.ZodTypeDef, unknown>;
|
|
80
|
-
/** @deprecated use `Id$outboundSchema` instead. */
|
|
81
|
-
const outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id>;
|
|
82
|
-
/** @deprecated use `Id$Outbound` instead. */
|
|
83
|
-
type Outbound = Id$Outbound;
|
|
84
|
-
}
|
|
85
|
-
export declare function idToJSON(id: Id): string;
|
|
86
51
|
export declare function idFromJSON(jsonString: string): SafeParseResult<Id, SDKValidationError>;
|
|
87
52
|
/** @internal */
|
|
88
53
|
export declare const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
89
54
|
/** @internal */
|
|
90
|
-
export declare const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
-
*/
|
|
95
|
-
export declare namespace Mode$ {
|
|
96
|
-
/** @deprecated use `Mode$inboundSchema` instead. */
|
|
97
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
98
|
-
readonly Air: "air";
|
|
99
|
-
readonly Surface: "surface";
|
|
100
|
-
}>;
|
|
101
|
-
/** @deprecated use `Mode$outboundSchema` instead. */
|
|
102
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
103
|
-
readonly Air: "air";
|
|
104
|
-
readonly Surface: "surface";
|
|
105
|
-
}>;
|
|
106
|
-
}
|
|
107
|
-
/** @internal */
|
|
108
55
|
export declare const CourierCompanies$inboundSchema: z.ZodType<CourierCompanies, z.ZodTypeDef, unknown>;
|
|
109
|
-
/** @internal */
|
|
110
|
-
export type CourierCompanies$Outbound = {
|
|
111
|
-
id?: string | number | undefined;
|
|
112
|
-
name?: string | undefined;
|
|
113
|
-
shipping_amount?: number | undefined;
|
|
114
|
-
estimated_delivery_days?: string | undefined;
|
|
115
|
-
is_recommended?: boolean | undefined;
|
|
116
|
-
is_hyperlocal?: boolean | undefined;
|
|
117
|
-
mode?: string | undefined;
|
|
118
|
-
rating?: number | undefined;
|
|
119
|
-
};
|
|
120
|
-
/** @internal */
|
|
121
|
-
export declare const CourierCompanies$outboundSchema: z.ZodType<CourierCompanies$Outbound, z.ZodTypeDef, CourierCompanies>;
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
-
*/
|
|
126
|
-
export declare namespace CourierCompanies$ {
|
|
127
|
-
/** @deprecated use `CourierCompanies$inboundSchema` instead. */
|
|
128
|
-
const inboundSchema: z.ZodType<CourierCompanies, z.ZodTypeDef, unknown>;
|
|
129
|
-
/** @deprecated use `CourierCompanies$outboundSchema` instead. */
|
|
130
|
-
const outboundSchema: z.ZodType<CourierCompanies$Outbound, z.ZodTypeDef, CourierCompanies>;
|
|
131
|
-
/** @deprecated use `CourierCompanies$Outbound` instead. */
|
|
132
|
-
type Outbound = CourierCompanies$Outbound;
|
|
133
|
-
}
|
|
134
|
-
export declare function courierCompaniesToJSON(courierCompanies: CourierCompanies): string;
|
|
135
56
|
export declare function courierCompaniesFromJSON(jsonString: string): SafeParseResult<CourierCompanies, SDKValidationError>;
|
|
136
57
|
/** @internal */
|
|
137
58
|
export declare const ShippingMethods$inboundSchema: z.ZodType<ShippingMethods, z.ZodTypeDef, unknown>;
|
|
138
|
-
/** @internal */
|
|
139
|
-
export type ShippingMethods$Outbound = {
|
|
140
|
-
id?: string | undefined;
|
|
141
|
-
name?: string | undefined;
|
|
142
|
-
shipping_type?: string | undefined;
|
|
143
|
-
shipping_amount?: string | undefined;
|
|
144
|
-
estimated_delivery_days?: string | undefined;
|
|
145
|
-
courier_companies?: Array<CourierCompanies$Outbound> | undefined;
|
|
146
|
-
};
|
|
147
|
-
/** @internal */
|
|
148
|
-
export declare const ShippingMethods$outboundSchema: z.ZodType<ShippingMethods$Outbound, z.ZodTypeDef, ShippingMethods>;
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
-
*/
|
|
153
|
-
export declare namespace ShippingMethods$ {
|
|
154
|
-
/** @deprecated use `ShippingMethods$inboundSchema` instead. */
|
|
155
|
-
const inboundSchema: z.ZodType<ShippingMethods, z.ZodTypeDef, unknown>;
|
|
156
|
-
/** @deprecated use `ShippingMethods$outboundSchema` instead. */
|
|
157
|
-
const outboundSchema: z.ZodType<ShippingMethods$Outbound, z.ZodTypeDef, ShippingMethods>;
|
|
158
|
-
/** @deprecated use `ShippingMethods$Outbound` instead. */
|
|
159
|
-
type Outbound = ShippingMethods$Outbound;
|
|
160
|
-
}
|
|
161
|
-
export declare function shippingMethodsToJSON(shippingMethods: ShippingMethods): string;
|
|
162
59
|
export declare function shippingMethodsFromJSON(jsonString: string): SafeParseResult<ShippingMethods, SDKValidationError>;
|
|
163
60
|
/** @internal */
|
|
164
61
|
export declare const PincodeServiceability$inboundSchema: z.ZodType<PincodeServiceability, z.ZodTypeDef, unknown>;
|
|
165
|
-
/** @internal */
|
|
166
|
-
export type PincodeServiceability$Outbound = {
|
|
167
|
-
is_serviceable: boolean;
|
|
168
|
-
shipping_methods: Array<ShippingMethods$Outbound>;
|
|
169
|
-
};
|
|
170
|
-
/** @internal */
|
|
171
|
-
export declare const PincodeServiceability$outboundSchema: z.ZodType<PincodeServiceability$Outbound, z.ZodTypeDef, PincodeServiceability>;
|
|
172
|
-
/**
|
|
173
|
-
* @internal
|
|
174
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
175
|
-
*/
|
|
176
|
-
export declare namespace PincodeServiceability$ {
|
|
177
|
-
/** @deprecated use `PincodeServiceability$inboundSchema` instead. */
|
|
178
|
-
const inboundSchema: z.ZodType<PincodeServiceability, z.ZodTypeDef, unknown>;
|
|
179
|
-
/** @deprecated use `PincodeServiceability$outboundSchema` instead. */
|
|
180
|
-
const outboundSchema: z.ZodType<PincodeServiceability$Outbound, z.ZodTypeDef, PincodeServiceability>;
|
|
181
|
-
/** @deprecated use `PincodeServiceability$Outbound` instead. */
|
|
182
|
-
type Outbound = PincodeServiceability$Outbound;
|
|
183
|
-
}
|
|
184
|
-
export declare function pincodeServiceabilityToJSON(pincodeServiceability: PincodeServiceability): string;
|
|
185
62
|
export declare function pincodeServiceabilityFromJSON(jsonString: string): SafeParseResult<PincodeServiceability, SDKValidationError>;
|
|
186
63
|
//# sourceMappingURL=pincodeserviceability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pincodeserviceability.d.ts","sourceRoot":"","sources":["../../../src/models/components/pincodeserviceability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MA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AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"pincodeserviceability.d.ts","sourceRoot":"","sources":["../../../src/models/components/pincodeserviceability.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,MAAM,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjC,eAAO,MAAM,IAAI;;;CAGP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,M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ChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -15,59 +15,16 @@ export const Mode = {
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export const ShippingType$inboundSchema = z.nativeEnum(ShippingType);
|
|
17
17
|
/** @internal */
|
|
18
|
-
export const ShippingType$outboundSchema = ShippingType$inboundSchema;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export var ShippingType$;
|
|
24
|
-
(function (ShippingType$) {
|
|
25
|
-
/** @deprecated use `ShippingType$inboundSchema` instead. */
|
|
26
|
-
ShippingType$.inboundSchema = ShippingType$inboundSchema;
|
|
27
|
-
/** @deprecated use `ShippingType$outboundSchema` instead. */
|
|
28
|
-
ShippingType$.outboundSchema = ShippingType$outboundSchema;
|
|
29
|
-
})(ShippingType$ || (ShippingType$ = {}));
|
|
30
|
-
/** @internal */
|
|
31
18
|
export const Id$inboundSchema = z.union([
|
|
32
19
|
z.string(),
|
|
33
20
|
z.number(),
|
|
34
21
|
]);
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Id$outboundSchema = z
|
|
37
|
-
.union([z.string(), z.number()]);
|
|
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 var Id$;
|
|
43
|
-
(function (Id$) {
|
|
44
|
-
/** @deprecated use `Id$inboundSchema` instead. */
|
|
45
|
-
Id$.inboundSchema = Id$inboundSchema;
|
|
46
|
-
/** @deprecated use `Id$outboundSchema` instead. */
|
|
47
|
-
Id$.outboundSchema = Id$outboundSchema;
|
|
48
|
-
})(Id$ || (Id$ = {}));
|
|
49
|
-
export function idToJSON(id) {
|
|
50
|
-
return JSON.stringify(Id$outboundSchema.parse(id));
|
|
51
|
-
}
|
|
52
22
|
export function idFromJSON(jsonString) {
|
|
53
23
|
return safeParse(jsonString, (x) => Id$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Id' from JSON`);
|
|
54
24
|
}
|
|
55
25
|
/** @internal */
|
|
56
26
|
export const Mode$inboundSchema = z.nativeEnum(Mode);
|
|
57
27
|
/** @internal */
|
|
58
|
-
export const Mode$outboundSchema = Mode$inboundSchema;
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export var Mode$;
|
|
64
|
-
(function (Mode$) {
|
|
65
|
-
/** @deprecated use `Mode$inboundSchema` instead. */
|
|
66
|
-
Mode$.inboundSchema = Mode$inboundSchema;
|
|
67
|
-
/** @deprecated use `Mode$outboundSchema` instead. */
|
|
68
|
-
Mode$.outboundSchema = Mode$outboundSchema;
|
|
69
|
-
})(Mode$ || (Mode$ = {}));
|
|
70
|
-
/** @internal */
|
|
71
28
|
export const CourierCompanies$inboundSchema = z.object({
|
|
72
29
|
id: z.union([z.string(), z.number()]).optional(),
|
|
73
30
|
name: z.string().optional(),
|
|
@@ -85,38 +42,6 @@ export const CourierCompanies$inboundSchema = z.object({
|
|
|
85
42
|
"is_hyperlocal": "isHyperlocal",
|
|
86
43
|
});
|
|
87
44
|
});
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const CourierCompanies$outboundSchema = z.object({
|
|
90
|
-
id: z.union([z.string(), z.number()]).optional(),
|
|
91
|
-
name: z.string().optional(),
|
|
92
|
-
shippingAmount: z.number().optional(),
|
|
93
|
-
estimatedDeliveryDays: z.string().optional(),
|
|
94
|
-
isRecommended: z.boolean().optional(),
|
|
95
|
-
isHyperlocal: z.boolean().optional(),
|
|
96
|
-
mode: Mode$outboundSchema.optional(),
|
|
97
|
-
rating: z.number().optional(),
|
|
98
|
-
}).transform((v) => {
|
|
99
|
-
return remap$(v, {
|
|
100
|
-
shippingAmount: "shipping_amount",
|
|
101
|
-
estimatedDeliveryDays: "estimated_delivery_days",
|
|
102
|
-
isRecommended: "is_recommended",
|
|
103
|
-
isHyperlocal: "is_hyperlocal",
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export var CourierCompanies$;
|
|
111
|
-
(function (CourierCompanies$) {
|
|
112
|
-
/** @deprecated use `CourierCompanies$inboundSchema` instead. */
|
|
113
|
-
CourierCompanies$.inboundSchema = CourierCompanies$inboundSchema;
|
|
114
|
-
/** @deprecated use `CourierCompanies$outboundSchema` instead. */
|
|
115
|
-
CourierCompanies$.outboundSchema = CourierCompanies$outboundSchema;
|
|
116
|
-
})(CourierCompanies$ || (CourierCompanies$ = {}));
|
|
117
|
-
export function courierCompaniesToJSON(courierCompanies) {
|
|
118
|
-
return JSON.stringify(CourierCompanies$outboundSchema.parse(courierCompanies));
|
|
119
|
-
}
|
|
120
45
|
export function courierCompaniesFromJSON(jsonString) {
|
|
121
46
|
return safeParse(jsonString, (x) => CourierCompanies$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CourierCompanies' from JSON`);
|
|
122
47
|
}
|
|
@@ -137,37 +62,6 @@ export const ShippingMethods$inboundSchema = z.object({
|
|
|
137
62
|
"courier_companies": "courierCompanies",
|
|
138
63
|
});
|
|
139
64
|
});
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const ShippingMethods$outboundSchema = z.object({
|
|
142
|
-
id: z.string().optional(),
|
|
143
|
-
name: z.string().optional(),
|
|
144
|
-
shippingType: ShippingType$outboundSchema.optional(),
|
|
145
|
-
shippingAmount: z.string().optional(),
|
|
146
|
-
estimatedDeliveryDays: z.string().optional(),
|
|
147
|
-
courierCompanies: z.array(z.lazy(() => CourierCompanies$outboundSchema))
|
|
148
|
-
.optional(),
|
|
149
|
-
}).transform((v) => {
|
|
150
|
-
return remap$(v, {
|
|
151
|
-
shippingType: "shipping_type",
|
|
152
|
-
shippingAmount: "shipping_amount",
|
|
153
|
-
estimatedDeliveryDays: "estimated_delivery_days",
|
|
154
|
-
courierCompanies: "courier_companies",
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
160
|
-
*/
|
|
161
|
-
export var ShippingMethods$;
|
|
162
|
-
(function (ShippingMethods$) {
|
|
163
|
-
/** @deprecated use `ShippingMethods$inboundSchema` instead. */
|
|
164
|
-
ShippingMethods$.inboundSchema = ShippingMethods$inboundSchema;
|
|
165
|
-
/** @deprecated use `ShippingMethods$outboundSchema` instead. */
|
|
166
|
-
ShippingMethods$.outboundSchema = ShippingMethods$outboundSchema;
|
|
167
|
-
})(ShippingMethods$ || (ShippingMethods$ = {}));
|
|
168
|
-
export function shippingMethodsToJSON(shippingMethods) {
|
|
169
|
-
return JSON.stringify(ShippingMethods$outboundSchema.parse(shippingMethods));
|
|
170
|
-
}
|
|
171
65
|
export function shippingMethodsFromJSON(jsonString) {
|
|
172
66
|
return safeParse(jsonString, (x) => ShippingMethods$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ShippingMethods' from JSON`);
|
|
173
67
|
}
|
|
@@ -181,30 +75,6 @@ export const PincodeServiceability$inboundSchema = z.object({
|
|
|
181
75
|
"shipping_methods": "shippingMethods",
|
|
182
76
|
});
|
|
183
77
|
});
|
|
184
|
-
/** @internal */
|
|
185
|
-
export const PincodeServiceability$outboundSchema = z.object({
|
|
186
|
-
isServiceable: z.boolean(),
|
|
187
|
-
shippingMethods: z.array(z.lazy(() => ShippingMethods$outboundSchema)),
|
|
188
|
-
}).transform((v) => {
|
|
189
|
-
return remap$(v, {
|
|
190
|
-
isServiceable: "is_serviceable",
|
|
191
|
-
shippingMethods: "shipping_methods",
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
/**
|
|
195
|
-
* @internal
|
|
196
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
-
*/
|
|
198
|
-
export var PincodeServiceability$;
|
|
199
|
-
(function (PincodeServiceability$) {
|
|
200
|
-
/** @deprecated use `PincodeServiceability$inboundSchema` instead. */
|
|
201
|
-
PincodeServiceability$.inboundSchema = PincodeServiceability$inboundSchema;
|
|
202
|
-
/** @deprecated use `PincodeServiceability$outboundSchema` instead. */
|
|
203
|
-
PincodeServiceability$.outboundSchema = PincodeServiceability$outboundSchema;
|
|
204
|
-
})(PincodeServiceability$ || (PincodeServiceability$ = {}));
|
|
205
|
-
export function pincodeServiceabilityToJSON(pincodeServiceability) {
|
|
206
|
-
return JSON.stringify(PincodeServiceability$outboundSchema.parse(pincodeServiceability));
|
|
207
|
-
}
|
|
208
78
|
export function pincodeServiceabilityFromJSON(jsonString) {
|
|
209
79
|
return safeParse(jsonString, (x) => PincodeServiceability$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PincodeServiceability' from JSON`);
|
|
210
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pincodeserviceability.js","sourceRoot":"","sources":["../../../src/models/components/pincodeserviceability.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAKX,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACV,CAAC;AAqCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AAE7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"pincodeserviceability.js","sourceRoot":"","sources":["../../../src/models/components/pincodeserviceability.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAKX,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;CACV,CAAC;AAqCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;AAE7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,gBAAgB,GAAyC,CAAC,CAAC,KAAK,CAAC;IAC5E,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC;AAEH,MAAM,UAAU,UAAU,CACxB,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAA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AAC;CACvE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;QACjC,kBAAkB,EAAE,iBAAiB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -2,16 +2,16 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import { Category
|
|
6
|
-
import { LotBatchDetail
|
|
7
|
-
import { ProductAttribute
|
|
8
|
-
import { ProductBundleItem
|
|
9
|
-
import { ProductImage
|
|
10
|
-
import { ProductPricing
|
|
11
|
-
import { ProductPromotion
|
|
12
|
-
import { ProductSubscription
|
|
13
|
-
import { Variant
|
|
14
|
-
import { VariantOption
|
|
5
|
+
import { Category } from "./category.js";
|
|
6
|
+
import { LotBatchDetail } from "./lotbatchdetail.js";
|
|
7
|
+
import { ProductAttribute } from "./productattribute.js";
|
|
8
|
+
import { ProductBundleItem } from "./productbundleitem.js";
|
|
9
|
+
import { ProductImage } from "./productimage.js";
|
|
10
|
+
import { ProductPricing } from "./productpricing.js";
|
|
11
|
+
import { ProductPromotion } from "./productpromotion.js";
|
|
12
|
+
import { ProductSubscription } from "./productsubscription.js";
|
|
13
|
+
import { Variant } from "./variant.js";
|
|
14
|
+
import { VariantOption } from "./variantoption.js";
|
|
15
15
|
export declare const ProductProductType: {
|
|
16
16
|
readonly Physical: "physical";
|
|
17
17
|
readonly Digital: "digital";
|
|
@@ -73,70 +73,6 @@ export type Product = {
|
|
|
73
73
|
/** @internal */
|
|
74
74
|
export declare const ProductProductType$inboundSchema: z.ZodNativeEnum<typeof ProductProductType>;
|
|
75
75
|
/** @internal */
|
|
76
|
-
export declare const ProductProductType$outboundSchema: z.ZodNativeEnum<typeof ProductProductType>;
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
export declare namespace ProductProductType$ {
|
|
82
|
-
/** @deprecated use `ProductProductType$inboundSchema` instead. */
|
|
83
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
84
|
-
readonly Physical: "physical";
|
|
85
|
-
readonly Digital: "digital";
|
|
86
|
-
readonly Bundle: "bundle";
|
|
87
|
-
}>;
|
|
88
|
-
/** @deprecated use `ProductProductType$outboundSchema` instead. */
|
|
89
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
90
|
-
readonly Physical: "physical";
|
|
91
|
-
readonly Digital: "digital";
|
|
92
|
-
readonly Bundle: "bundle";
|
|
93
|
-
}>;
|
|
94
|
-
}
|
|
95
|
-
/** @internal */
|
|
96
76
|
export declare const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type Product$Outbound = {
|
|
99
|
-
id: string;
|
|
100
|
-
sku: string | null;
|
|
101
|
-
name: string;
|
|
102
|
-
slug: string;
|
|
103
|
-
short_description: string | null;
|
|
104
|
-
product_type: string;
|
|
105
|
-
active: boolean;
|
|
106
|
-
stock_available: boolean;
|
|
107
|
-
backorder?: boolean | undefined;
|
|
108
|
-
on_subscription: boolean;
|
|
109
|
-
on_promotion: boolean;
|
|
110
|
-
has_variant: boolean;
|
|
111
|
-
tags: Array<string> | null;
|
|
112
|
-
category_ids: Array<string>;
|
|
113
|
-
categories: Array<Category$Outbound>;
|
|
114
|
-
reviews_rating_sum: number;
|
|
115
|
-
reviews_count: number;
|
|
116
|
-
attributes: Array<ProductAttribute$Outbound>;
|
|
117
|
-
pricing: ProductPricing$Outbound;
|
|
118
|
-
variant_options: Array<VariantOption$Outbound> | null;
|
|
119
|
-
promotion: ProductPromotion$Outbound | null;
|
|
120
|
-
images: Array<ProductImage$Outbound>;
|
|
121
|
-
subscription: Array<ProductSubscription$Outbound>;
|
|
122
|
-
variants: Array<Variant$Outbound>;
|
|
123
|
-
bundle_items: Array<ProductBundleItem$Outbound>;
|
|
124
|
-
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
125
|
-
};
|
|
126
|
-
/** @internal */
|
|
127
|
-
export declare const Product$outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
|
-
*/
|
|
132
|
-
export declare namespace Product$ {
|
|
133
|
-
/** @deprecated use `Product$inboundSchema` instead. */
|
|
134
|
-
const inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
135
|
-
/** @deprecated use `Product$outboundSchema` instead. */
|
|
136
|
-
const outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
137
|
-
/** @deprecated use `Product$Outbound` instead. */
|
|
138
|
-
type Outbound = Product$Outbound;
|
|
139
|
-
}
|
|
140
|
-
export declare function productToJSON(product: Product): string;
|
|
141
77
|
export declare function productFromJSON(jsonString: string): SafeParseResult<Product, SDKValidationError>;
|
|
142
78
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/models/components/product.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAA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xE,CAAC;AAEL,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Category$inboundSchema
|
|
8
|
-
import { LotBatchDetail$inboundSchema,
|
|
9
|
-
import { ProductAttribute$inboundSchema,
|
|
10
|
-
import { ProductBundleItem$inboundSchema,
|
|
11
|
-
import { ProductImage$inboundSchema
|
|
12
|
-
import { ProductPricing$inboundSchema,
|
|
13
|
-
import { ProductPromotion$inboundSchema,
|
|
14
|
-
import { ProductSubscription$inboundSchema,
|
|
15
|
-
import { Variant$inboundSchema
|
|
16
|
-
import { VariantOption$inboundSchema
|
|
7
|
+
import { Category$inboundSchema } from "./category.js";
|
|
8
|
+
import { LotBatchDetail$inboundSchema, } from "./lotbatchdetail.js";
|
|
9
|
+
import { ProductAttribute$inboundSchema, } from "./productattribute.js";
|
|
10
|
+
import { ProductBundleItem$inboundSchema, } from "./productbundleitem.js";
|
|
11
|
+
import { ProductImage$inboundSchema } from "./productimage.js";
|
|
12
|
+
import { ProductPricing$inboundSchema, } from "./productpricing.js";
|
|
13
|
+
import { ProductPromotion$inboundSchema, } from "./productpromotion.js";
|
|
14
|
+
import { ProductSubscription$inboundSchema, } from "./productsubscription.js";
|
|
15
|
+
import { Variant$inboundSchema } from "./variant.js";
|
|
16
|
+
import { VariantOption$inboundSchema } from "./variantoption.js";
|
|
17
17
|
export const ProductProductType = {
|
|
18
18
|
Physical: "physical",
|
|
19
19
|
Digital: "digital",
|
|
@@ -22,19 +22,6 @@ export const ProductProductType = {
|
|
|
22
22
|
/** @internal */
|
|
23
23
|
export const ProductProductType$inboundSchema = z.nativeEnum(ProductProductType);
|
|
24
24
|
/** @internal */
|
|
25
|
-
export const ProductProductType$outboundSchema = ProductProductType$inboundSchema;
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export var ProductProductType$;
|
|
31
|
-
(function (ProductProductType$) {
|
|
32
|
-
/** @deprecated use `ProductProductType$inboundSchema` instead. */
|
|
33
|
-
ProductProductType$.inboundSchema = ProductProductType$inboundSchema;
|
|
34
|
-
/** @deprecated use `ProductProductType$outboundSchema` instead. */
|
|
35
|
-
ProductProductType$.outboundSchema = ProductProductType$outboundSchema;
|
|
36
|
-
})(ProductProductType$ || (ProductProductType$ = {}));
|
|
37
|
-
/** @internal */
|
|
38
25
|
export const Product$inboundSchema = z.object({
|
|
39
26
|
id: z.string(),
|
|
40
27
|
sku: z.nullable(z.string()),
|
|
@@ -77,63 +64,6 @@ export const Product$inboundSchema = z.object({
|
|
|
77
64
|
"bundle_items": "bundleItems",
|
|
78
65
|
});
|
|
79
66
|
});
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const Product$outboundSchema = z.object({
|
|
82
|
-
id: z.string(),
|
|
83
|
-
sku: z.nullable(z.string()),
|
|
84
|
-
name: z.string(),
|
|
85
|
-
slug: z.string(),
|
|
86
|
-
shortDescription: z.nullable(z.string()),
|
|
87
|
-
productType: ProductProductType$outboundSchema,
|
|
88
|
-
active: z.boolean(),
|
|
89
|
-
stockAvailable: z.boolean(),
|
|
90
|
-
backorder: z.boolean().optional(),
|
|
91
|
-
onSubscription: z.boolean(),
|
|
92
|
-
onPromotion: z.boolean(),
|
|
93
|
-
hasVariant: z.boolean(),
|
|
94
|
-
tags: z.nullable(z.array(z.string())),
|
|
95
|
-
categoryIds: z.array(z.string()),
|
|
96
|
-
categories: z.array(Category$outboundSchema),
|
|
97
|
-
reviewsRatingSum: z.number(),
|
|
98
|
-
reviewsCount: z.number().int(),
|
|
99
|
-
attributes: z.array(ProductAttribute$outboundSchema),
|
|
100
|
-
pricing: ProductPricing$outboundSchema,
|
|
101
|
-
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
|
|
102
|
-
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
103
|
-
images: z.array(ProductImage$outboundSchema),
|
|
104
|
-
subscription: z.array(ProductSubscription$outboundSchema),
|
|
105
|
-
variants: z.array(Variant$outboundSchema),
|
|
106
|
-
bundleItems: z.array(ProductBundleItem$outboundSchema),
|
|
107
|
-
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
108
|
-
}).transform((v) => {
|
|
109
|
-
return remap$(v, {
|
|
110
|
-
shortDescription: "short_description",
|
|
111
|
-
productType: "product_type",
|
|
112
|
-
stockAvailable: "stock_available",
|
|
113
|
-
onSubscription: "on_subscription",
|
|
114
|
-
onPromotion: "on_promotion",
|
|
115
|
-
hasVariant: "has_variant",
|
|
116
|
-
categoryIds: "category_ids",
|
|
117
|
-
reviewsRatingSum: "reviews_rating_sum",
|
|
118
|
-
reviewsCount: "reviews_count",
|
|
119
|
-
variantOptions: "variant_options",
|
|
120
|
-
bundleItems: "bundle_items",
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
-
*/
|
|
127
|
-
export var Product$;
|
|
128
|
-
(function (Product$) {
|
|
129
|
-
/** @deprecated use `Product$inboundSchema` instead. */
|
|
130
|
-
Product$.inboundSchema = Product$inboundSchema;
|
|
131
|
-
/** @deprecated use `Product$outboundSchema` instead. */
|
|
132
|
-
Product$.outboundSchema = Product$outboundSchema;
|
|
133
|
-
})(Product$ || (Product$ = {}));
|
|
134
|
-
export function productToJSON(product) {
|
|
135
|
-
return JSON.stringify(Product$outboundSchema.parse(product));
|
|
136
|
-
}
|
|
137
67
|
export function productFromJSON(jsonString) {
|
|
138
68
|
return safeParse(jsonString, (x) => Product$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Product' from JSON`);
|
|
139
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/models/components/product.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/models/components/product.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAAY,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAW,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAiB,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAwD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