ce-storefront 0.16.0 → 0.16.2
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/docs/sdks/auth/README.md +10 -10
- package/docs/sdks/carts/README.md +17 -15
- package/docs/sdks/catalog/README.md +11 -11
- package/docs/sdks/common/README.md +1 -1
- package/docs/sdks/customers/README.md +7 -7
- package/docs/sdks/orders/README.md +7 -7
- package/docs/sdks/shipping/README.md +3 -3
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.js +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +1 -1
- package/esm/funcs/authGetAnonymousToken.js +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.js +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.js +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +1 -1
- package/esm/funcs/authLogout.d.ts +1 -1
- package/esm/funcs/authLogout.js +1 -1
- package/esm/funcs/authRefreshToken.d.ts +1 -1
- package/esm/funcs/authRefreshToken.js +1 -1
- package/esm/funcs/authUpdateUser.d.ts +1 -1
- package/esm/funcs/authUpdateUser.js +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -1
- package/esm/funcs/cartsAddShippingMethod.d.ts +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -1
- package/esm/funcs/cartsGetCart.d.ts +1 -1
- package/esm/funcs/cartsGetCart.js +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.d.ts +1 -1
- package/esm/funcs/cartsUpdateFulfillmentPreference.js +4 -2
- package/esm/funcs/cartsUpdateFulfillmentPreference.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +1 -1
- package/esm/funcs/catalogGetProductDetail.js +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -1
- package/esm/funcs/catalogListCategories.d.ts +1 -1
- package/esm/funcs/catalogListCategories.js +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -1
- package/esm/funcs/catalogListProducts.d.ts +1 -1
- package/esm/funcs/catalogListProducts.js +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -1
- package/esm/funcs/catalogListSkus.d.ts +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +1 -1
- package/esm/funcs/catalogSearchProducts.js +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.d.ts +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +1 -1
- package/esm/funcs/customersListAddresses.d.ts +1 -1
- package/esm/funcs/customersListAddresses.js +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -1
- package/esm/funcs/ordersListOrders.d.ts +1 -1
- package/esm/funcs/ordersListOrders.js +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -1
- package/esm/funcs/shippingCheckServiceability.d.ts +1 -1
- package/esm/funcs/shippingCheckServiceability.js +1 -1
- package/esm/funcs/shippingFulfillmentOptions.d.ts +1 -1
- package/esm/funcs/shippingFulfillmentOptions.js +1 -1
- package/esm/funcs/shippingShippingMethods.d.ts +1 -1
- package/esm/funcs/shippingShippingMethods.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/anonymoususer.d.ts +1 -1
- package/esm/models/components/appliedcoupon.d.ts +1 -1
- package/esm/models/components/appliedpromotion.d.ts +1 -1
- package/esm/models/components/banktransfer.d.ts +1 -1
- package/esm/models/components/booleanattribute.d.ts +1 -1
- package/esm/models/components/cardpayment.d.ts +1 -1
- package/esm/models/components/cart.d.ts +1 -12
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +0 -21
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/cartbasedserviceabilitycheck.d.ts +1 -1
- package/esm/models/components/cartitem.d.ts +1 -1
- package/esm/models/components/category.d.ts +1 -1
- package/esm/models/components/collectinstore.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
- package/esm/models/components/colorattribute.d.ts +1 -1
- package/esm/models/components/coloroption.d.ts +1 -1
- package/esm/models/components/currency.d.ts +1 -1
- package/esm/models/components/customeraddress.d.ts +1 -1
- package/esm/models/components/customeraddressinput.d.ts +1 -1
- package/esm/models/components/customerloyalty.d.ts +1 -1
- package/esm/models/components/customerreadyforreview.d.ts +1 -1
- package/esm/models/components/customerreview.d.ts +1 -1
- package/esm/models/components/dateattribute.d.ts +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +3 -3
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +2 -2
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts +36 -0
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -0
- package/esm/models/components/deliveryfulfillmentinput.js +48 -0
- package/esm/models/components/deliveryfulfillmentinput.js.map +1 -0
- package/esm/models/components/discountbasedpromotion.d.ts +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +1 -1
- package/esm/models/components/fulfillmentitem.d.ts +40 -0
- package/esm/models/components/fulfillmentitem.d.ts.map +1 -0
- package/esm/models/components/fulfillmentitem.js +54 -0
- package/esm/models/components/fulfillmentitem.js.map +1 -0
- package/esm/models/components/fulfillmentiteminput.d.ts +36 -0
- package/esm/models/components/fulfillmentiteminput.d.ts.map +1 -0
- package/esm/models/components/fulfillmentiteminput.js +46 -0
- package/esm/models/components/fulfillmentiteminput.js.map +1 -0
- package/esm/models/components/fulfillmentpreference.d.ts +15 -3
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +12 -6
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +43 -0
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -0
- package/esm/models/components/fulfillmentpreferenceinput.js +44 -0
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -0
- package/esm/models/components/generateotpwithemail.d.ts +1 -1
- package/esm/models/components/generateotpwithphone.d.ts +1 -1
- package/esm/models/components/index.d.ts +4 -1
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +4 -1
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +1 -1
- package/esm/models/components/multiselectattribute.d.ts +1 -1
- package/esm/models/components/netbankingpayment.d.ts +1 -1
- package/esm/models/components/notificationchannelpreferences.d.ts +1 -1
- package/esm/models/components/notificationpreferences.d.ts +1 -1
- package/esm/models/components/numberattribute.d.ts +1 -1
- package/esm/models/components/order.d.ts +1 -12
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +0 -21
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -12
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +0 -21
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +1 -1
- package/esm/models/components/orderlist.d.ts +1 -1
- package/esm/models/components/orderpayment.d.ts +1 -1
- package/esm/models/components/ordershipment.d.ts +1 -1
- package/esm/models/components/pagination.d.ts +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +27 -115
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +30 -138
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +25 -105
- package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.js +28 -118
- package/esm/models/components/partialcollectanddeliveryinput.js.map +1 -1
- package/esm/models/components/paymentgateway.d.ts +2 -2
- package/esm/models/components/paymentgateway.js +1 -1
- package/esm/models/components/paymentgatewayparams.d.ts +1 -1
- package/esm/models/components/payupaymentgatewayparams.d.ts +1 -1
- package/esm/models/components/payupaymentinfo.d.ts +1 -1
- package/esm/models/components/pincode.d.ts +1 -1
- package/esm/models/components/pincodeserviceability.d.ts +1 -1
- package/esm/models/components/product.d.ts +1 -1
- package/esm/models/components/productattribute.d.ts +1 -1
- package/esm/models/components/productbundleitem.d.ts +1 -1
- package/esm/models/components/productcategory.d.ts +1 -1
- package/esm/models/components/productdetail.d.ts +1 -1
- package/esm/models/components/productimage.d.ts +1 -1
- package/esm/models/components/productpricing.d.ts +1 -1
- package/esm/models/components/productpromotion.d.ts +1 -1
- package/esm/models/components/productreview.d.ts +1 -1
- package/esm/models/components/productshipping.d.ts +1 -1
- package/esm/models/components/productsubscription.d.ts +1 -1
- package/esm/models/components/productvideo.d.ts +1 -1
- package/esm/models/components/searchproduct.d.ts +1 -1
- package/esm/models/components/seo.d.ts +1 -1
- package/esm/models/components/shipmentitem.d.ts +1 -1
- package/esm/models/components/singleselectattribute.d.ts +1 -1
- package/esm/models/components/singleselectoption.d.ts +1 -1
- package/esm/models/components/textattribute.d.ts +1 -1
- package/esm/models/components/updatecartitem.d.ts +1 -1
- package/esm/models/components/upipayment.d.ts +1 -1
- package/esm/models/components/user.d.ts +2 -2
- package/esm/models/components/variant.d.ts +1 -1
- package/esm/models/components/variantdetail.d.ts +1 -1
- package/esm/models/components/variantoption.d.ts +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +1 -1
- package/esm/models/components/walletpayment.d.ts +1 -1
- package/esm/models/operations/createaddress.d.ts +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +1 -1
- package/esm/models/operations/listaddresses.d.ts +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +32 -23
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +31 -41
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/esm/sdk/auth.d.ts +10 -10
- package/esm/sdk/auth.js +10 -10
- package/esm/sdk/carts.d.ts +13 -13
- package/esm/sdk/carts.js +13 -13
- package/esm/sdk/catalog.d.ts +11 -11
- package/esm/sdk/catalog.js +11 -11
- package/esm/sdk/common.d.ts +1 -1
- package/esm/sdk/common.js +1 -1
- package/esm/sdk/customers.d.ts +7 -7
- package/esm/sdk/customers.js +7 -7
- package/esm/sdk/orders.d.ts +7 -7
- package/esm/sdk/orders.js +7 -7
- package/esm/sdk/shipping.d.ts +3 -3
- package/esm/sdk/shipping.js +3 -3
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +1 -1
- package/src/funcs/authGetAnonymousToken.ts +1 -1
- package/src/funcs/authGetUserDetail.ts +1 -1
- package/src/funcs/authLoginWithEmail.ts +1 -1
- package/src/funcs/authLoginWithPhone.ts +1 -1
- package/src/funcs/authLoginWithWhatsapp.ts +1 -1
- package/src/funcs/authLogout.ts +1 -1
- package/src/funcs/authRefreshToken.ts +1 -1
- package/src/funcs/authUpdateUser.ts +1 -1
- package/src/funcs/authVerifyOtp.ts +1 -1
- package/src/funcs/cartsAddShippingMethod.ts +1 -1
- package/src/funcs/cartsApplyCoupon.ts +1 -1
- package/src/funcs/cartsCreateCart.ts +1 -1
- package/src/funcs/cartsCreateCartAddress.ts +1 -1
- package/src/funcs/cartsDeleteCart.ts +1 -1
- package/src/funcs/cartsGetCart.ts +1 -1
- package/src/funcs/cartsGetUserCart.ts +1 -1
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +1 -1
- package/src/funcs/cartsRemoveCoupon.ts +1 -1
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +1 -1
- package/src/funcs/cartsRemoveUserCart.ts +1 -1
- package/src/funcs/cartsUpdateCart.ts +1 -1
- package/src/funcs/cartsUpdateFulfillmentPreference.ts +4 -2
- package/src/funcs/catalogGetProductDetail.ts +1 -1
- package/src/funcs/catalogGetVariantDetail.ts +1 -1
- package/src/funcs/catalogListCategories.ts +1 -1
- package/src/funcs/catalogListCrosssellProducts.ts +1 -1
- package/src/funcs/catalogListProductReviews.ts +1 -1
- package/src/funcs/catalogListProductVariants.ts +1 -1
- package/src/funcs/catalogListProducts.ts +1 -1
- package/src/funcs/catalogListSimilarProducts.ts +1 -1
- package/src/funcs/catalogListSkus.ts +1 -1
- package/src/funcs/catalogListUpsellProducts.ts +1 -1
- package/src/funcs/catalogSearchProducts.ts +1 -1
- package/src/funcs/commonListCountryPincodes.ts +1 -1
- package/src/funcs/customersCreateAddress.ts +1 -1
- package/src/funcs/customersDeleteAddress.ts +1 -1
- package/src/funcs/customersGetAddressDetail.ts +1 -1
- package/src/funcs/customersGetLoyaltyDetails.ts +1 -1
- package/src/funcs/customersListAddresses.ts +1 -1
- package/src/funcs/customersListUserReviews.ts +1 -1
- package/src/funcs/customersUpdateAddressDetail.ts +1 -1
- package/src/funcs/ordersCancelOrder.ts +1 -1
- package/src/funcs/ordersCreateOrder.ts +1 -1
- package/src/funcs/ordersGetOrderDetail.ts +1 -1
- package/src/funcs/ordersGetPaymentStatus.ts +1 -1
- package/src/funcs/ordersListOrderShipments.ts +1 -1
- package/src/funcs/ordersListOrders.ts +1 -1
- package/src/funcs/ordersRetryOrderPayment.ts +1 -1
- package/src/funcs/shippingCheckServiceability.ts +1 -1
- package/src/funcs/shippingFulfillmentOptions.ts +1 -1
- package/src/funcs/shippingShippingMethods.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/anonymoususer.ts +1 -1
- package/src/models/components/appliedcoupon.ts +1 -1
- package/src/models/components/appliedpromotion.ts +1 -1
- package/src/models/components/banktransfer.ts +1 -1
- package/src/models/components/booleanattribute.ts +1 -1
- package/src/models/components/cardpayment.ts +1 -1
- package/src/models/components/cart.ts +1 -36
- package/src/models/components/cartbasedserviceabilitycheck.ts +1 -1
- package/src/models/components/cartitem.ts +1 -1
- package/src/models/components/category.ts +1 -1
- package/src/models/components/collectinstore.ts +1 -1
- package/src/models/components/collectinstorefulfillment.ts +1 -1
- package/src/models/components/colorattribute.ts +1 -1
- package/src/models/components/coloroption.ts +1 -1
- package/src/models/components/currency.ts +1 -1
- package/src/models/components/customeraddress.ts +1 -1
- package/src/models/components/customeraddressinput.ts +1 -1
- package/src/models/components/customerloyalty.ts +1 -1
- package/src/models/components/customerreadyforreview.ts +1 -1
- package/src/models/components/customerreview.ts +1 -1
- package/src/models/components/dateattribute.ts +1 -1
- package/src/models/components/deliveryfulfillment.ts +5 -5
- package/src/models/components/deliveryfulfillmentinput.ts +90 -0
- package/src/models/components/discountbasedpromotion.ts +1 -1
- package/src/models/components/fixedpricepromotion.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +1 -1
- package/src/models/components/fulfillmentitem.ts +98 -0
- package/src/models/components/fulfillmentiteminput.ts +88 -0
- package/src/models/components/fulfillmentpreference.ts +41 -13
- package/src/models/components/fulfillmentpreferenceinput.ts +121 -0
- package/src/models/components/generateotpwithemail.ts +1 -1
- package/src/models/components/generateotpwithphone.ts +1 -1
- package/src/models/components/index.ts +4 -1
- package/src/models/components/item.ts +1 -1
- package/src/models/components/juspaypaymentgatewayparams.ts +1 -1
- package/src/models/components/juspaypaymentinfo.ts +1 -1
- package/src/models/components/lotbatchdetail.ts +1 -1
- package/src/models/components/multiselectattribute.ts +1 -1
- package/src/models/components/netbankingpayment.ts +1 -1
- package/src/models/components/notificationchannelpreferences.ts +1 -1
- package/src/models/components/notificationpreferences.ts +1 -1
- package/src/models/components/numberattribute.ts +1 -1
- package/src/models/components/order.ts +1 -36
- package/src/models/components/orderdetail.ts +1 -36
- package/src/models/components/orderitem.ts +1 -1
- package/src/models/components/orderlist.ts +1 -1
- package/src/models/components/orderpayment.ts +1 -1
- package/src/models/components/ordershipment.ts +1 -1
- package/src/models/components/pagination.ts +1 -1
- package/src/models/components/partialcollectanddelivery.ts +71 -254
- package/src/models/components/partialcollectanddeliveryinput.ts +59 -265
- package/src/models/components/paymentgateway.ts +2 -2
- package/src/models/components/paymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentgatewayparams.ts +1 -1
- package/src/models/components/payupaymentinfo.ts +1 -1
- package/src/models/components/pincode.ts +1 -1
- package/src/models/components/pincodeserviceability.ts +1 -1
- package/src/models/components/product.ts +1 -1
- package/src/models/components/productattribute.ts +1 -1
- package/src/models/components/productbundleitem.ts +1 -1
- package/src/models/components/productcategory.ts +1 -1
- package/src/models/components/productdetail.ts +1 -1
- package/src/models/components/productimage.ts +1 -1
- package/src/models/components/productpricing.ts +1 -1
- package/src/models/components/productpromotion.ts +1 -1
- package/src/models/components/productreview.ts +1 -1
- package/src/models/components/productshipping.ts +1 -1
- package/src/models/components/productsubscription.ts +1 -1
- package/src/models/components/productvideo.ts +1 -1
- package/src/models/components/searchproduct.ts +1 -1
- package/src/models/components/seo.ts +1 -1
- package/src/models/components/shipmentitem.ts +1 -1
- package/src/models/components/singleselectattribute.ts +1 -1
- package/src/models/components/singleselectoption.ts +1 -1
- package/src/models/components/textattribute.ts +1 -1
- package/src/models/components/updatecartitem.ts +1 -1
- package/src/models/components/upipayment.ts +1 -1
- package/src/models/components/user.ts +2 -2
- package/src/models/components/variant.ts +1 -1
- package/src/models/components/variantdetail.ts +1 -1
- package/src/models/components/variantoption.ts +1 -1
- package/src/models/components/volumebasedpromotion.ts +1 -1
- package/src/models/components/walletpayment.ts +1 -1
- package/src/models/operations/createaddress.ts +1 -1
- package/src/models/operations/getaddressdetail.ts +1 -1
- package/src/models/operations/listaddresses.ts +1 -1
- package/src/models/operations/updateaddressdetail.ts +1 -1
- package/src/models/operations/updatefulfillmentpreference.ts +75 -90
- package/src/sdk/auth.ts +10 -10
- package/src/sdk/carts.ts +13 -13
- package/src/sdk/catalog.ts +11 -11
- package/src/sdk/common.ts +1 -1
- package/src/sdk/customers.ts +7 -7
- package/src/sdk/orders.ts +7 -7
- package/src/sdk/shipping.ts +3 -3
- package/esm/models/components/fulfillmenttype.d.ts +0 -37
- package/esm/models/components/fulfillmenttype.d.ts.map +0 -1
- package/esm/models/components/fulfillmenttype.js +0 -28
- package/esm/models/components/fulfillmenttype.js.map +0 -1
- package/src/models/components/fulfillmenttype.ts +0 -40
|
@@ -7,215 +7,66 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export type PartialCollectAndDeliveryPreferenceItemsInput = {
|
|
22
|
-
productId: string;
|
|
23
|
-
variantId: string | null;
|
|
24
|
-
quantity: number;
|
|
10
|
+
import {
|
|
11
|
+
FulfillmentItemInput,
|
|
12
|
+
FulfillmentItemInput$inboundSchema,
|
|
13
|
+
FulfillmentItemInput$Outbound,
|
|
14
|
+
FulfillmentItemInput$outboundSchema,
|
|
15
|
+
} from "./fulfillmentiteminput.js";
|
|
16
|
+
|
|
17
|
+
export type PartialCollectAndDeliveryCollectInStoreInput = {
|
|
18
|
+
pickupLocationId?: string | undefined;
|
|
19
|
+
items?: Array<FulfillmentItemInput> | undefined;
|
|
25
20
|
};
|
|
26
21
|
|
|
27
22
|
export type PartialCollectAndDeliveryDelivery = {
|
|
28
23
|
shippingProviderId: string | null;
|
|
29
24
|
courierCompanyId?: string | null | undefined;
|
|
30
|
-
items: Array<
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type PartialCollectAndDeliveryPreference = {
|
|
34
|
-
pickup: PartialCollectAndDeliveryPickup;
|
|
35
|
-
delivery: PartialCollectAndDeliveryDelivery;
|
|
25
|
+
items: Array<FulfillmentItemInput>;
|
|
36
26
|
};
|
|
37
27
|
|
|
38
28
|
/**
|
|
39
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PartialCollectAndDelivery} - API reference for the PartialCollectAndDelivery schema
|
|
29
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PartialCollectAndDelivery} - API reference for the PartialCollectAndDelivery schema
|
|
40
30
|
*/
|
|
41
31
|
export type PartialCollectAndDeliveryInput = {
|
|
42
32
|
fulfillmentType?: "partial-collect-and-delivery" | undefined;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const PartialCollectAndDeliveryItemsInput$inboundSchema: z.ZodType<
|
|
48
|
-
PartialCollectAndDeliveryItemsInput,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
product_id: z.string(),
|
|
53
|
-
variant_id: z.nullable(z.string()),
|
|
54
|
-
quantity: z.number().int(),
|
|
55
|
-
}).transform((v) => {
|
|
56
|
-
return remap$(v, {
|
|
57
|
-
"product_id": "productId",
|
|
58
|
-
"variant_id": "variantId",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type PartialCollectAndDeliveryItemsInput$Outbound = {
|
|
64
|
-
product_id: string;
|
|
65
|
-
variant_id: string | null;
|
|
66
|
-
quantity: number;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const PartialCollectAndDeliveryItemsInput$outboundSchema: z.ZodType<
|
|
71
|
-
PartialCollectAndDeliveryItemsInput$Outbound,
|
|
72
|
-
z.ZodTypeDef,
|
|
73
|
-
PartialCollectAndDeliveryItemsInput
|
|
74
|
-
> = z.object({
|
|
75
|
-
productId: z.string(),
|
|
76
|
-
variantId: z.nullable(z.string()),
|
|
77
|
-
quantity: z.number().int(),
|
|
78
|
-
}).transform((v) => {
|
|
79
|
-
return remap$(v, {
|
|
80
|
-
productId: "product_id",
|
|
81
|
-
variantId: "variant_id",
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export namespace PartialCollectAndDeliveryItemsInput$ {
|
|
90
|
-
/** @deprecated use `PartialCollectAndDeliveryItemsInput$inboundSchema` instead. */
|
|
91
|
-
export const inboundSchema =
|
|
92
|
-
PartialCollectAndDeliveryItemsInput$inboundSchema;
|
|
93
|
-
/** @deprecated use `PartialCollectAndDeliveryItemsInput$outboundSchema` instead. */
|
|
94
|
-
export const outboundSchema =
|
|
95
|
-
PartialCollectAndDeliveryItemsInput$outboundSchema;
|
|
96
|
-
/** @deprecated use `PartialCollectAndDeliveryItemsInput$Outbound` instead. */
|
|
97
|
-
export type Outbound = PartialCollectAndDeliveryItemsInput$Outbound;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function partialCollectAndDeliveryItemsInputToJSON(
|
|
101
|
-
partialCollectAndDeliveryItemsInput: PartialCollectAndDeliveryItemsInput,
|
|
102
|
-
): string {
|
|
103
|
-
return JSON.stringify(
|
|
104
|
-
PartialCollectAndDeliveryItemsInput$outboundSchema.parse(
|
|
105
|
-
partialCollectAndDeliveryItemsInput,
|
|
106
|
-
),
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function partialCollectAndDeliveryItemsInputFromJSON(
|
|
111
|
-
jsonString: string,
|
|
112
|
-
): SafeParseResult<PartialCollectAndDeliveryItemsInput, SDKValidationError> {
|
|
113
|
-
return safeParse(
|
|
114
|
-
jsonString,
|
|
115
|
-
(x) =>
|
|
116
|
-
PartialCollectAndDeliveryItemsInput$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'PartialCollectAndDeliveryItemsInput' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const PartialCollectAndDeliveryPickup$inboundSchema: z.ZodType<
|
|
123
|
-
PartialCollectAndDeliveryPickup,
|
|
124
|
-
z.ZodTypeDef,
|
|
125
|
-
unknown
|
|
126
|
-
> = z.object({
|
|
127
|
-
items: z.array(
|
|
128
|
-
z.lazy(() => PartialCollectAndDeliveryItemsInput$inboundSchema),
|
|
129
|
-
).optional(),
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
export type PartialCollectAndDeliveryPickup$Outbound = {
|
|
134
|
-
items?: Array<PartialCollectAndDeliveryItemsInput$Outbound> | undefined;
|
|
33
|
+
collectInStore: PartialCollectAndDeliveryCollectInStoreInput;
|
|
34
|
+
delivery: PartialCollectAndDeliveryDelivery;
|
|
135
35
|
};
|
|
136
36
|
|
|
137
37
|
/** @internal */
|
|
138
|
-
export const
|
|
139
|
-
PartialCollectAndDeliveryPickup$Outbound,
|
|
140
|
-
z.ZodTypeDef,
|
|
141
|
-
PartialCollectAndDeliveryPickup
|
|
142
|
-
> = z.object({
|
|
143
|
-
items: z.array(
|
|
144
|
-
z.lazy(() => PartialCollectAndDeliveryItemsInput$outboundSchema),
|
|
145
|
-
).optional(),
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
-
*/
|
|
152
|
-
export namespace PartialCollectAndDeliveryPickup$ {
|
|
153
|
-
/** @deprecated use `PartialCollectAndDeliveryPickup$inboundSchema` instead. */
|
|
154
|
-
export const inboundSchema = PartialCollectAndDeliveryPickup$inboundSchema;
|
|
155
|
-
/** @deprecated use `PartialCollectAndDeliveryPickup$outboundSchema` instead. */
|
|
156
|
-
export const outboundSchema = PartialCollectAndDeliveryPickup$outboundSchema;
|
|
157
|
-
/** @deprecated use `PartialCollectAndDeliveryPickup$Outbound` instead. */
|
|
158
|
-
export type Outbound = PartialCollectAndDeliveryPickup$Outbound;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export function partialCollectAndDeliveryPickupToJSON(
|
|
162
|
-
partialCollectAndDeliveryPickup: PartialCollectAndDeliveryPickup,
|
|
163
|
-
): string {
|
|
164
|
-
return JSON.stringify(
|
|
165
|
-
PartialCollectAndDeliveryPickup$outboundSchema.parse(
|
|
166
|
-
partialCollectAndDeliveryPickup,
|
|
167
|
-
),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function partialCollectAndDeliveryPickupFromJSON(
|
|
172
|
-
jsonString: string,
|
|
173
|
-
): SafeParseResult<PartialCollectAndDeliveryPickup, SDKValidationError> {
|
|
174
|
-
return safeParse(
|
|
175
|
-
jsonString,
|
|
176
|
-
(x) => PartialCollectAndDeliveryPickup$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
-
`Failed to parse 'PartialCollectAndDeliveryPickup' from JSON`,
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** @internal */
|
|
182
|
-
export const PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema:
|
|
38
|
+
export const PartialCollectAndDeliveryCollectInStoreInput$inboundSchema:
|
|
183
39
|
z.ZodType<
|
|
184
|
-
|
|
40
|
+
PartialCollectAndDeliveryCollectInStoreInput,
|
|
185
41
|
z.ZodTypeDef,
|
|
186
42
|
unknown
|
|
187
43
|
> = z.object({
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
quantity: z.number().int(),
|
|
44
|
+
pickup_location_id: z.string().optional(),
|
|
45
|
+
items: z.array(FulfillmentItemInput$inboundSchema).optional(),
|
|
191
46
|
}).transform((v) => {
|
|
192
47
|
return remap$(v, {
|
|
193
|
-
"
|
|
194
|
-
"variant_id": "variantId",
|
|
48
|
+
"pickup_location_id": "pickupLocationId",
|
|
195
49
|
});
|
|
196
50
|
});
|
|
197
51
|
|
|
198
52
|
/** @internal */
|
|
199
|
-
export type
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
quantity: number;
|
|
53
|
+
export type PartialCollectAndDeliveryCollectInStoreInput$Outbound = {
|
|
54
|
+
pickup_location_id?: string | undefined;
|
|
55
|
+
items?: Array<FulfillmentItemInput$Outbound> | undefined;
|
|
203
56
|
};
|
|
204
57
|
|
|
205
58
|
/** @internal */
|
|
206
|
-
export const
|
|
59
|
+
export const PartialCollectAndDeliveryCollectInStoreInput$outboundSchema:
|
|
207
60
|
z.ZodType<
|
|
208
|
-
|
|
61
|
+
PartialCollectAndDeliveryCollectInStoreInput$Outbound,
|
|
209
62
|
z.ZodTypeDef,
|
|
210
|
-
|
|
63
|
+
PartialCollectAndDeliveryCollectInStoreInput
|
|
211
64
|
> = z.object({
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
quantity: z.number().int(),
|
|
65
|
+
pickupLocationId: z.string().optional(),
|
|
66
|
+
items: z.array(FulfillmentItemInput$outboundSchema).optional(),
|
|
215
67
|
}).transform((v) => {
|
|
216
68
|
return remap$(v, {
|
|
217
|
-
|
|
218
|
-
variantId: "variant_id",
|
|
69
|
+
pickupLocationId: "pickup_location_id",
|
|
219
70
|
});
|
|
220
71
|
});
|
|
221
72
|
|
|
@@ -223,41 +74,41 @@ export const PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema:
|
|
|
223
74
|
* @internal
|
|
224
75
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
225
76
|
*/
|
|
226
|
-
export namespace
|
|
227
|
-
/** @deprecated use `
|
|
77
|
+
export namespace PartialCollectAndDeliveryCollectInStoreInput$ {
|
|
78
|
+
/** @deprecated use `PartialCollectAndDeliveryCollectInStoreInput$inboundSchema` instead. */
|
|
228
79
|
export const inboundSchema =
|
|
229
|
-
|
|
230
|
-
/** @deprecated use `
|
|
80
|
+
PartialCollectAndDeliveryCollectInStoreInput$inboundSchema;
|
|
81
|
+
/** @deprecated use `PartialCollectAndDeliveryCollectInStoreInput$outboundSchema` instead. */
|
|
231
82
|
export const outboundSchema =
|
|
232
|
-
|
|
233
|
-
/** @deprecated use `
|
|
234
|
-
export type Outbound =
|
|
83
|
+
PartialCollectAndDeliveryCollectInStoreInput$outboundSchema;
|
|
84
|
+
/** @deprecated use `PartialCollectAndDeliveryCollectInStoreInput$Outbound` instead. */
|
|
85
|
+
export type Outbound = PartialCollectAndDeliveryCollectInStoreInput$Outbound;
|
|
235
86
|
}
|
|
236
87
|
|
|
237
|
-
export function
|
|
238
|
-
|
|
239
|
-
|
|
88
|
+
export function partialCollectAndDeliveryCollectInStoreInputToJSON(
|
|
89
|
+
partialCollectAndDeliveryCollectInStoreInput:
|
|
90
|
+
PartialCollectAndDeliveryCollectInStoreInput,
|
|
240
91
|
): string {
|
|
241
92
|
return JSON.stringify(
|
|
242
|
-
|
|
243
|
-
|
|
93
|
+
PartialCollectAndDeliveryCollectInStoreInput$outboundSchema.parse(
|
|
94
|
+
partialCollectAndDeliveryCollectInStoreInput,
|
|
244
95
|
),
|
|
245
96
|
);
|
|
246
97
|
}
|
|
247
98
|
|
|
248
|
-
export function
|
|
99
|
+
export function partialCollectAndDeliveryCollectInStoreInputFromJSON(
|
|
249
100
|
jsonString: string,
|
|
250
101
|
): SafeParseResult<
|
|
251
|
-
|
|
102
|
+
PartialCollectAndDeliveryCollectInStoreInput,
|
|
252
103
|
SDKValidationError
|
|
253
104
|
> {
|
|
254
105
|
return safeParse(
|
|
255
106
|
jsonString,
|
|
256
107
|
(x) =>
|
|
257
|
-
|
|
108
|
+
PartialCollectAndDeliveryCollectInStoreInput$inboundSchema.parse(
|
|
258
109
|
JSON.parse(x),
|
|
259
110
|
),
|
|
260
|
-
`Failed to parse '
|
|
111
|
+
`Failed to parse 'PartialCollectAndDeliveryCollectInStoreInput' from JSON`,
|
|
261
112
|
);
|
|
262
113
|
}
|
|
263
114
|
|
|
@@ -269,9 +120,7 @@ export const PartialCollectAndDeliveryDelivery$inboundSchema: z.ZodType<
|
|
|
269
120
|
> = z.object({
|
|
270
121
|
shipping_provider_id: z.nullable(z.string()),
|
|
271
122
|
courier_company_id: z.nullable(z.string()).optional(),
|
|
272
|
-
items: z.array(
|
|
273
|
-
z.lazy(() => PartialCollectAndDeliveryPreferenceItemsInput$inboundSchema),
|
|
274
|
-
),
|
|
123
|
+
items: z.array(FulfillmentItemInput$inboundSchema),
|
|
275
124
|
}).transform((v) => {
|
|
276
125
|
return remap$(v, {
|
|
277
126
|
"shipping_provider_id": "shippingProviderId",
|
|
@@ -283,7 +132,7 @@ export const PartialCollectAndDeliveryDelivery$inboundSchema: z.ZodType<
|
|
|
283
132
|
export type PartialCollectAndDeliveryDelivery$Outbound = {
|
|
284
133
|
shipping_provider_id: string | null;
|
|
285
134
|
courier_company_id?: string | null | undefined;
|
|
286
|
-
items: Array<
|
|
135
|
+
items: Array<FulfillmentItemInput$Outbound>;
|
|
287
136
|
};
|
|
288
137
|
|
|
289
138
|
/** @internal */
|
|
@@ -294,9 +143,7 @@ export const PartialCollectAndDeliveryDelivery$outboundSchema: z.ZodType<
|
|
|
294
143
|
> = z.object({
|
|
295
144
|
shippingProviderId: z.nullable(z.string()),
|
|
296
145
|
courierCompanyId: z.nullable(z.string()).optional(),
|
|
297
|
-
items: z.array(
|
|
298
|
-
z.lazy(() => PartialCollectAndDeliveryPreferenceItemsInput$outboundSchema),
|
|
299
|
-
),
|
|
146
|
+
items: z.array(FulfillmentItemInput$outboundSchema),
|
|
300
147
|
}).transform((v) => {
|
|
301
148
|
return remap$(v, {
|
|
302
149
|
shippingProviderId: "shipping_provider_id",
|
|
@@ -338,68 +185,6 @@ export function partialCollectAndDeliveryDeliveryFromJSON(
|
|
|
338
185
|
);
|
|
339
186
|
}
|
|
340
187
|
|
|
341
|
-
/** @internal */
|
|
342
|
-
export const PartialCollectAndDeliveryPreference$inboundSchema: z.ZodType<
|
|
343
|
-
PartialCollectAndDeliveryPreference,
|
|
344
|
-
z.ZodTypeDef,
|
|
345
|
-
unknown
|
|
346
|
-
> = z.object({
|
|
347
|
-
pickup: z.lazy(() => PartialCollectAndDeliveryPickup$inboundSchema),
|
|
348
|
-
delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$inboundSchema),
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
/** @internal */
|
|
352
|
-
export type PartialCollectAndDeliveryPreference$Outbound = {
|
|
353
|
-
pickup: PartialCollectAndDeliveryPickup$Outbound;
|
|
354
|
-
delivery: PartialCollectAndDeliveryDelivery$Outbound;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
/** @internal */
|
|
358
|
-
export const PartialCollectAndDeliveryPreference$outboundSchema: z.ZodType<
|
|
359
|
-
PartialCollectAndDeliveryPreference$Outbound,
|
|
360
|
-
z.ZodTypeDef,
|
|
361
|
-
PartialCollectAndDeliveryPreference
|
|
362
|
-
> = z.object({
|
|
363
|
-
pickup: z.lazy(() => PartialCollectAndDeliveryPickup$outboundSchema),
|
|
364
|
-
delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$outboundSchema),
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
370
|
-
*/
|
|
371
|
-
export namespace PartialCollectAndDeliveryPreference$ {
|
|
372
|
-
/** @deprecated use `PartialCollectAndDeliveryPreference$inboundSchema` instead. */
|
|
373
|
-
export const inboundSchema =
|
|
374
|
-
PartialCollectAndDeliveryPreference$inboundSchema;
|
|
375
|
-
/** @deprecated use `PartialCollectAndDeliveryPreference$outboundSchema` instead. */
|
|
376
|
-
export const outboundSchema =
|
|
377
|
-
PartialCollectAndDeliveryPreference$outboundSchema;
|
|
378
|
-
/** @deprecated use `PartialCollectAndDeliveryPreference$Outbound` instead. */
|
|
379
|
-
export type Outbound = PartialCollectAndDeliveryPreference$Outbound;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export function partialCollectAndDeliveryPreferenceToJSON(
|
|
383
|
-
partialCollectAndDeliveryPreference: PartialCollectAndDeliveryPreference,
|
|
384
|
-
): string {
|
|
385
|
-
return JSON.stringify(
|
|
386
|
-
PartialCollectAndDeliveryPreference$outboundSchema.parse(
|
|
387
|
-
partialCollectAndDeliveryPreference,
|
|
388
|
-
),
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export function partialCollectAndDeliveryPreferenceFromJSON(
|
|
393
|
-
jsonString: string,
|
|
394
|
-
): SafeParseResult<PartialCollectAndDeliveryPreference, SDKValidationError> {
|
|
395
|
-
return safeParse(
|
|
396
|
-
jsonString,
|
|
397
|
-
(x) =>
|
|
398
|
-
PartialCollectAndDeliveryPreference$inboundSchema.parse(JSON.parse(x)),
|
|
399
|
-
`Failed to parse 'PartialCollectAndDeliveryPreference' from JSON`,
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
188
|
/** @internal */
|
|
404
189
|
export const PartialCollectAndDeliveryInput$inboundSchema: z.ZodType<
|
|
405
190
|
PartialCollectAndDeliveryInput,
|
|
@@ -409,17 +194,22 @@ export const PartialCollectAndDeliveryInput$inboundSchema: z.ZodType<
|
|
|
409
194
|
fulfillment_type: z.literal("partial-collect-and-delivery").default(
|
|
410
195
|
"partial-collect-and-delivery",
|
|
411
196
|
).optional(),
|
|
412
|
-
|
|
197
|
+
"collect-in-store": z.lazy(() =>
|
|
198
|
+
PartialCollectAndDeliveryCollectInStoreInput$inboundSchema
|
|
199
|
+
),
|
|
200
|
+
delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$inboundSchema),
|
|
413
201
|
}).transform((v) => {
|
|
414
202
|
return remap$(v, {
|
|
415
203
|
"fulfillment_type": "fulfillmentType",
|
|
204
|
+
"collect-in-store": "collectInStore",
|
|
416
205
|
});
|
|
417
206
|
});
|
|
418
207
|
|
|
419
208
|
/** @internal */
|
|
420
209
|
export type PartialCollectAndDeliveryInput$Outbound = {
|
|
421
210
|
fulfillment_type: "partial-collect-and-delivery";
|
|
422
|
-
|
|
211
|
+
"collect-in-store": PartialCollectAndDeliveryCollectInStoreInput$Outbound;
|
|
212
|
+
delivery: PartialCollectAndDeliveryDelivery$Outbound;
|
|
423
213
|
};
|
|
424
214
|
|
|
425
215
|
/** @internal */
|
|
@@ -431,10 +221,14 @@ export const PartialCollectAndDeliveryInput$outboundSchema: z.ZodType<
|
|
|
431
221
|
fulfillmentType: z.literal("partial-collect-and-delivery").default(
|
|
432
222
|
"partial-collect-and-delivery" as const,
|
|
433
223
|
),
|
|
434
|
-
|
|
224
|
+
collectInStore: z.lazy(() =>
|
|
225
|
+
PartialCollectAndDeliveryCollectInStoreInput$outboundSchema
|
|
226
|
+
),
|
|
227
|
+
delivery: z.lazy(() => PartialCollectAndDeliveryDelivery$outboundSchema),
|
|
435
228
|
}).transform((v) => {
|
|
436
229
|
return remap$(v, {
|
|
437
230
|
fulfillmentType: "fulfillment_type",
|
|
231
|
+
collectInStore: "collect-in-store",
|
|
438
232
|
});
|
|
439
233
|
});
|
|
440
234
|
|
|
@@ -6,14 +6,14 @@ import * as z from "zod";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PaymentGateway} - API reference for the PaymentGateway schema
|
|
9
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PaymentGateway} - API reference for the PaymentGateway schema
|
|
10
10
|
*/
|
|
11
11
|
export const PaymentGateway = {
|
|
12
12
|
Payu: "PAYU",
|
|
13
13
|
Juspay: "JUSPAY",
|
|
14
14
|
} as const;
|
|
15
15
|
/**
|
|
16
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PaymentGateway} - API reference for the PaymentGateway schema
|
|
16
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PaymentGateway} - API reference for the PaymentGateway schema
|
|
17
17
|
*/
|
|
18
18
|
export type PaymentGateway = ClosedEnum<typeof PaymentGateway>;
|
|
19
19
|
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./payupaymentgatewayparams.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PaymentGatewayParams} - API reference for the PaymentGatewayParams schema
|
|
23
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PaymentGatewayParams} - API reference for the PaymentGatewayParams schema
|
|
24
24
|
*/
|
|
25
25
|
export type PaymentGatewayParams =
|
|
26
26
|
| (JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PayuPaymentGatewayParams} - API reference for the PayuPaymentGatewayParams schema
|
|
12
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PayuPaymentGatewayParams} - API reference for the PayuPaymentGatewayParams schema
|
|
13
13
|
*/
|
|
14
14
|
export type PayuPaymentGatewayParams = {
|
|
15
15
|
paymentGateway?: "PAYU" | undefined;
|
|
@@ -44,7 +44,7 @@ export type SiDetails = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PayuPaymentInfo} - API reference for the PayuPaymentInfo schema
|
|
47
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PayuPaymentInfo} - API reference for the PayuPaymentInfo schema
|
|
48
48
|
*/
|
|
49
49
|
export type PayuPaymentInfo = {
|
|
50
50
|
key?: string | undefined;
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Pincode model
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/Pincode} - API reference for the Pincode schema
|
|
14
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/Pincode} - API reference for the Pincode schema
|
|
15
15
|
*/
|
|
16
16
|
export type Pincode = {
|
|
17
17
|
pincode?: string | undefined;
|
|
@@ -50,7 +50,7 @@ export type ShippingMethods = {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/PincodeServiceability} - API reference for the PincodeServiceability schema
|
|
53
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/PincodeServiceability} - API reference for the PincodeServiceability schema
|
|
54
54
|
*/
|
|
55
55
|
export type PincodeServiceability = {
|
|
56
56
|
isServiceable: boolean;
|
|
@@ -77,7 +77,7 @@ export const ProductProductType = {
|
|
|
77
77
|
export type ProductProductType = ClosedEnum<typeof ProductProductType>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/Product} - API reference for the Product schema
|
|
80
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/Product} - API reference for the Product schema
|
|
81
81
|
*/
|
|
82
82
|
export type Product = {
|
|
83
83
|
/**
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./textattribute.js";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductAttribute} - API reference for the ProductAttribute schema
|
|
53
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductAttribute} - API reference for the ProductAttribute schema
|
|
54
54
|
*/
|
|
55
55
|
export type ProductAttribute =
|
|
56
56
|
| (ColorAttribute & { type: "color" })
|
|
@@ -67,7 +67,7 @@ export type ProductBundleItemProductType = ClosedEnum<
|
|
|
67
67
|
>;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/Item} - API reference for the Item schema
|
|
70
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/Item} - API reference for the Item schema
|
|
71
71
|
*/
|
|
72
72
|
export type ProductBundleItem = {
|
|
73
73
|
quantity: number;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./category.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductCategory} - API reference for the ProductCategory schema
|
|
18
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductCategory} - API reference for the ProductCategory schema
|
|
19
19
|
*/
|
|
20
20
|
export type ProductCategory = {
|
|
21
21
|
id: string;
|
|
@@ -97,7 +97,7 @@ export type ProductDetailProductType = ClosedEnum<
|
|
|
97
97
|
>;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductDetail} - API reference for the ProductDetail schema
|
|
100
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductDetail} - API reference for the ProductDetail schema
|
|
101
101
|
*/
|
|
102
102
|
export type ProductDetail = {
|
|
103
103
|
/**
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductImage} - API reference for the ProductImage schema
|
|
12
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductImage} - API reference for the ProductImage schema
|
|
13
13
|
*/
|
|
14
14
|
export type ProductImage = {
|
|
15
15
|
id: string;
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductPricing} - API reference for the ProductPricing schema
|
|
12
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductPricing} - API reference for the ProductPricing schema
|
|
13
13
|
*/
|
|
14
14
|
export type ProductPricing = {
|
|
15
15
|
currency: string;
|
|
@@ -39,7 +39,7 @@ export type Details =
|
|
|
39
39
|
| (VolumeBasedPromotion & { promotionType: "volume-based" });
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductPromotion} - API reference for the ProductPromotion schema
|
|
42
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductPromotion} - API reference for the ProductPromotion schema
|
|
43
43
|
*/
|
|
44
44
|
export type ProductPromotion = {
|
|
45
45
|
id: string;
|
|
@@ -46,7 +46,7 @@ export type Videos = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductReview} - API reference for the ProductReview schema
|
|
49
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductReview} - API reference for the ProductReview schema
|
|
50
50
|
*/
|
|
51
51
|
export type ProductReview = {
|
|
52
52
|
/**
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductShipping} - API reference for the ProductShipping schema
|
|
12
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductShipping} - API reference for the ProductShipping schema
|
|
13
13
|
*/
|
|
14
14
|
export type ProductShipping = {
|
|
15
15
|
handlingChargesIncludingTax: number;
|
|
@@ -24,7 +24,7 @@ export const OrderFrequency = {
|
|
|
24
24
|
export type OrderFrequency = ClosedEnum<typeof OrderFrequency>;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductSubscription} - API reference for the ProductSubscription schema
|
|
27
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductSubscription} - API reference for the ProductSubscription schema
|
|
28
28
|
*/
|
|
29
29
|
export type ProductSubscription = {
|
|
30
30
|
id: string;
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ProductVideo} - API reference for the ProductVideo schema
|
|
12
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ProductVideo} - API reference for the ProductVideo schema
|
|
13
13
|
*/
|
|
14
14
|
export type ProductVideo = {
|
|
15
15
|
title: string | null;
|
|
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Payload for searching products.
|
|
12
12
|
*
|
|
13
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/SearchProduct} - API reference for the SearchProduct schema
|
|
13
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/SearchProduct} - API reference for the SearchProduct schema
|
|
14
14
|
*/
|
|
15
15
|
export type SearchProduct = {
|
|
16
16
|
/**
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/Seo} - API reference for the Seo schema
|
|
11
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/Seo} - API reference for the Seo schema
|
|
12
12
|
*/
|
|
13
13
|
export type Seo = {
|
|
14
14
|
slug: string;
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Shipment item model
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://llm-docs.commercengine.io/schemas/ShipmentItem} - API reference for the ShipmentItem schema
|
|
14
|
+
* @see {@link https://llm-docs.commercengine.io/storefront/schemas/ShipmentItem} - API reference for the ShipmentItem schema
|
|
15
15
|
*/
|
|
16
16
|
export type ShipmentItem = {
|
|
17
17
|
productId?: string | undefined;
|