ce-storefront 0.20.0 → 0.21.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 +28 -3
- package/esm/funcs/marketplaceGetProductDetail.d.ts +20 -0
- package/esm/funcs/marketplaceGetProductDetail.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetProductDetail.js +91 -0
- package/esm/funcs/marketplaceGetProductDetail.js.map +1 -0
- package/esm/funcs/marketplaceGetVariantDetail.d.ts +20 -0
- package/esm/funcs/marketplaceGetVariantDetail.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetVariantDetail.js +98 -0
- package/esm/funcs/marketplaceGetVariantDetail.js.map +1 -0
- package/esm/funcs/marketplaceListCategories.d.ts +20 -0
- package/esm/funcs/marketplaceListCategories.d.ts.map +1 -0
- package/esm/funcs/marketplaceListCategories.js +91 -0
- package/esm/funcs/marketplaceListCategories.js.map +1 -0
- package/esm/funcs/marketplaceListCrosssellProducts.d.ts +20 -0
- package/esm/funcs/marketplaceListCrosssellProducts.d.ts.map +1 -0
- package/esm/funcs/marketplaceListCrosssellProducts.js +91 -0
- package/esm/funcs/marketplaceListCrosssellProducts.js.map +1 -0
- package/esm/funcs/marketplaceListProductReviews.d.ts +20 -0
- package/esm/funcs/marketplaceListProductReviews.d.ts.map +1 -0
- package/esm/funcs/marketplaceListProductReviews.js +97 -0
- package/esm/funcs/marketplaceListProductReviews.js.map +1 -0
- package/esm/funcs/marketplaceListProductVariants.d.ts +20 -0
- package/esm/funcs/marketplaceListProductVariants.d.ts.map +1 -0
- package/esm/funcs/marketplaceListProductVariants.js +94 -0
- package/esm/funcs/marketplaceListProductVariants.js.map +1 -0
- package/esm/funcs/marketplaceListProducts.d.ts +20 -0
- package/esm/funcs/marketplaceListProducts.d.ts.map +1 -0
- package/esm/funcs/marketplaceListProducts.js +93 -0
- package/esm/funcs/marketplaceListProducts.js.map +1 -0
- package/esm/funcs/marketplaceListSimilarProducts.d.ts +20 -0
- package/esm/funcs/marketplaceListSimilarProducts.d.ts.map +1 -0
- package/esm/funcs/marketplaceListSimilarProducts.js +91 -0
- package/esm/funcs/marketplaceListSimilarProducts.js.map +1 -0
- package/esm/funcs/marketplaceListSkus.d.ts +20 -0
- package/esm/funcs/marketplaceListSkus.d.ts.map +1 -0
- package/esm/funcs/marketplaceListSkus.js +93 -0
- package/esm/funcs/marketplaceListSkus.js.map +1 -0
- package/esm/funcs/marketplaceListUpsellProducts.d.ts +20 -0
- package/esm/funcs/marketplaceListUpsellProducts.d.ts.map +1 -0
- package/esm/funcs/marketplaceListUpsellProducts.js +91 -0
- package/esm/funcs/marketplaceListUpsellProducts.js.map +1 -0
- package/esm/funcs/marketplaceSearchProducts.d.ts +20 -0
- package/esm/funcs/marketplaceSearchProducts.d.ts.map +1 -0
- package/esm/funcs/marketplaceSearchProducts.js +85 -0
- package/esm/funcs/marketplaceSearchProducts.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +12 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/models/components/booleanattribute.d.ts +1 -1
- package/esm/models/components/booleanattribute.d.ts.map +1 -1
- package/esm/models/components/booleanattribute.js +1 -1
- package/esm/models/components/booleanattribute.js.map +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillment.d.ts.map +1 -1
- package/esm/models/components/collectinstorefulfillment.js +1 -2
- package/esm/models/components/collectinstorefulfillment.js.map +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts +1 -1
- package/esm/models/components/collectinstorefulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/colorattribute.d.ts +1 -1
- package/esm/models/components/colorattribute.d.ts.map +1 -1
- package/esm/models/components/colorattribute.js +1 -1
- package/esm/models/components/colorattribute.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +1 -1
- package/esm/models/components/coloroption.d.ts.map +1 -1
- package/esm/models/components/coloroption.js +1 -1
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/customeraddress.d.ts +1 -1
- package/esm/models/components/customeraddress.d.ts.map +1 -1
- package/esm/models/components/customeraddress.js +1 -1
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.d.ts +1 -1
- package/esm/models/components/customeraddressinput.d.ts.map +1 -1
- package/esm/models/components/dateattribute.d.ts +1 -1
- package/esm/models/components/dateattribute.js +1 -1
- package/esm/models/components/dateattribute.js.map +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts +1 -1
- package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
- package/esm/models/components/deliveryfulfillment.js +1 -1
- package/esm/models/components/deliveryfulfillment.js.map +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts +1 -1
- package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +1 -10
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +1 -9
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +1 -11
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +1 -9
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +1 -11
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +1 -9
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/fulfillmentpreference.d.ts +1 -7
- package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreference.js +3 -6
- package/esm/models/components/fulfillmentpreference.js.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.d.ts +2 -14
- package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -1
- package/esm/models/components/fulfillmentpreferenceinput.js +3 -6
- package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -1
- package/esm/models/components/generateotpwithemail.d.ts +1 -1
- package/esm/models/components/generateotpwithemail.d.ts.map +1 -1
- package/esm/models/components/index.d.ts +1 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/juspayhypercheckout.d.ts +1 -1
- package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -1
- package/esm/models/components/juspayhypercheckoutresponse.js +2 -3
- package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -1
- package/esm/models/components/juspaynetbanking.d.ts +2 -2
- package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
- package/esm/models/components/juspaynewcard.d.ts +3 -3
- package/esm/models/components/juspaynewcard.d.ts.map +1 -1
- package/esm/models/components/juspaysavedcardtoken.d.ts +3 -3
- package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
- package/esm/models/components/juspayupicollect.d.ts +3 -3
- package/esm/models/components/juspayupicollect.d.ts.map +1 -1
- package/esm/models/components/juspayupiintent.d.ts +3 -3
- package/esm/models/components/juspayupiintent.d.ts.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +1 -1
- package/esm/models/components/multiselectattribute.d.ts.map +1 -1
- package/esm/models/components/multiselectattribute.js +1 -1
- package/esm/models/components/multiselectattribute.js.map +1 -1
- package/esm/models/components/numberattribute.d.ts +1 -1
- package/esm/models/components/numberattribute.d.ts.map +1 -1
- package/esm/models/components/numberattribute.js +1 -1
- package/esm/models/components/numberattribute.js.map +1 -1
- package/esm/models/components/ordershipment.d.ts +2 -19
- package/esm/models/components/ordershipment.d.ts.map +1 -1
- package/esm/models/components/ordershipment.js +2 -17
- package/esm/models/components/ordershipment.js.map +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts +1 -1
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
- package/esm/models/components/partialcollectanddelivery.js +1 -1
- package/esm/models/components/partialcollectanddelivery.js.map +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts +1 -1
- package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -1
- package/esm/models/components/payupaymentinfo.js +3 -3
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +1 -15
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +7 -15
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +2 -18
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +8 -20
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/shipmentstatus.d.ts +27 -0
- package/esm/models/components/shipmentstatus.d.ts.map +1 -0
- package/esm/models/components/shipmentstatus.js +25 -0
- package/esm/models/components/shipmentstatus.js.map +1 -0
- package/esm/models/components/singleselectattribute.d.ts +1 -1
- package/esm/models/components/singleselectattribute.d.ts.map +1 -1
- package/esm/models/components/singleselectattribute.js +1 -1
- package/esm/models/components/singleselectattribute.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +1 -1
- package/esm/models/components/singleselectoption.d.ts.map +1 -1
- package/esm/models/components/singleselectoption.js +1 -1
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/textattribute.d.ts +1 -1
- package/esm/models/components/textattribute.js +1 -1
- package/esm/models/components/textattribute.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.d.ts +1 -11
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +1 -9
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/operations/createaddress.d.ts +1 -1
- package/esm/models/operations/createaddress.d.ts.map +1 -1
- package/esm/models/operations/generateotp.d.ts +20 -4
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +4 -2
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getaddressdetail.d.ts +1 -1
- package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
- package/esm/models/operations/getaddressdetail.js +1 -1
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getmarketplaceproductdetail.d.ts +45 -0
- package/esm/models/operations/getmarketplaceproductdetail.d.ts.map +1 -0
- package/esm/models/operations/getmarketplaceproductdetail.js +38 -0
- package/esm/models/operations/getmarketplaceproductdetail.js.map +1 -0
- package/esm/models/operations/getmarketplacevariantdetail.d.ts +50 -0
- package/esm/models/operations/getmarketplacevariantdetail.d.ts.map +1 -0
- package/esm/models/operations/getmarketplacevariantdetail.js +40 -0
- package/esm/models/operations/getmarketplacevariantdetail.js.map +1 -0
- package/esm/models/operations/index.d.ts +11 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +11 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +1 -1
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +1 -1
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listmarketplacecategories.d.ts +59 -0
- package/esm/models/operations/listmarketplacecategories.d.ts.map +1 -0
- package/esm/models/operations/listmarketplacecategories.js +43 -0
- package/esm/models/operations/listmarketplacecategories.js.map +1 -0
- package/esm/models/operations/listmarketplacecrosssellproducts.d.ts +59 -0
- package/esm/models/operations/listmarketplacecrosssellproducts.d.ts.map +1 -0
- package/esm/models/operations/listmarketplacecrosssellproducts.js +42 -0
- package/esm/models/operations/listmarketplacecrosssellproducts.js.map +1 -0
- package/esm/models/operations/listmarketplaceproductreviews.d.ts +65 -0
- package/esm/models/operations/listmarketplaceproductreviews.d.ts.map +1 -0
- package/esm/models/operations/listmarketplaceproductreviews.js +48 -0
- package/esm/models/operations/listmarketplaceproductreviews.js.map +1 -0
- package/esm/models/operations/listmarketplaceproducts.d.ts +69 -0
- package/esm/models/operations/listmarketplaceproducts.d.ts.map +1 -0
- package/esm/models/operations/listmarketplaceproducts.js +45 -0
- package/esm/models/operations/listmarketplaceproducts.js.map +1 -0
- package/esm/models/operations/listmarketplaceproductvariants.d.ts +45 -0
- package/esm/models/operations/listmarketplaceproductvariants.d.ts.map +1 -0
- package/esm/models/operations/listmarketplaceproductvariants.js +38 -0
- package/esm/models/operations/listmarketplaceproductvariants.js.map +1 -0
- package/esm/models/operations/listmarketplacesimilarproducts.d.ts +59 -0
- package/esm/models/operations/listmarketplacesimilarproducts.d.ts.map +1 -0
- package/esm/models/operations/listmarketplacesimilarproducts.js +42 -0
- package/esm/models/operations/listmarketplacesimilarproducts.js.map +1 -0
- package/esm/models/operations/listmarketplaceskus.d.ts +69 -0
- package/esm/models/operations/listmarketplaceskus.d.ts.map +1 -0
- package/esm/models/operations/listmarketplaceskus.js +44 -0
- package/esm/models/operations/listmarketplaceskus.js.map +1 -0
- package/esm/models/operations/listmarketplaceupsellproducts.d.ts +62 -0
- package/esm/models/operations/listmarketplaceupsellproducts.d.ts.map +1 -0
- package/esm/models/operations/listmarketplaceupsellproducts.js +42 -0
- package/esm/models/operations/listmarketplaceupsellproducts.js.map +1 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +1 -1
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/searchmarketplaceproducts.d.ts +56 -0
- package/esm/models/operations/searchmarketplaceproducts.d.ts.map +1 -0
- package/esm/models/operations/searchmarketplaceproducts.js +53 -0
- package/esm/models/operations/searchmarketplaceproducts.js.map +1 -0
- package/esm/models/operations/searchproducts.d.ts +4 -4
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +4 -4
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts +1 -1
- package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
- package/esm/sdk/marketplace.d.ts +104 -0
- package/esm/sdk/marketplace.d.ts.map +1 -0
- package/esm/sdk/marketplace.js +140 -0
- package/esm/sdk/marketplace.js.map +1 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/types/enums.d.ts +8 -11
- package/esm/types/enums.d.ts.map +1 -1
- package/esm/types/enums.js +22 -2
- package/esm/types/enums.js.map +1 -1
- package/esm/types/index.d.ts +2 -2
- package/esm/types/index.d.ts.map +1 -1
- package/esm/types/index.js +1 -1
- package/esm/types/index.js.map +1 -1
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/marketplaceGetProductDetail.ts +198 -0
- package/src/funcs/marketplaceGetVariantDetail.ts +201 -0
- package/src/funcs/marketplaceListCategories.ts +188 -0
- package/src/funcs/marketplaceListCrosssellProducts.ts +193 -0
- package/src/funcs/marketplaceListProductReviews.ts +198 -0
- package/src/funcs/marketplaceListProductVariants.ts +199 -0
- package/src/funcs/marketplaceListProducts.ts +190 -0
- package/src/funcs/marketplaceListSimilarProducts.ts +193 -0
- package/src/funcs/marketplaceListSkus.ts +190 -0
- package/src/funcs/marketplaceListUpsellProducts.ts +193 -0
- package/src/funcs/marketplaceSearchProducts.ts +177 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/models/components/booleanattribute.ts +2 -2
- package/src/models/components/collectinstorefulfillment.ts +2 -3
- package/src/models/components/collectinstorefulfillmentinput.ts +1 -1
- package/src/models/components/colorattribute.ts +2 -2
- package/src/models/components/coloroption.ts +2 -2
- package/src/models/components/customeraddress.ts +2 -2
- package/src/models/components/customeraddressinput.ts +1 -1
- package/src/models/components/dateattribute.ts +2 -2
- package/src/models/components/deliveryfulfillment.ts +2 -2
- package/src/models/components/deliveryfulfillmentinput.ts +1 -1
- package/src/models/components/discountbasedpromotion.ts +2 -17
- package/src/models/components/fixedpricepromotion.ts +2 -18
- package/src/models/components/freegoodspromotion.ts +2 -18
- package/src/models/components/fulfillmentpreference.ts +6 -19
- package/src/models/components/fulfillmentpreferenceinput.ts +9 -26
- package/src/models/components/generateotpwithemail.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/juspayhypercheckout.ts +1 -1
- package/src/models/components/juspayhypercheckoutresponse.ts +2 -3
- package/src/models/components/juspaynetbanking.ts +2 -2
- package/src/models/components/juspaynewcard.ts +3 -3
- package/src/models/components/juspaysavedcardtoken.ts +3 -3
- package/src/models/components/juspayupicollect.ts +3 -3
- package/src/models/components/juspayupiintent.ts +3 -3
- package/src/models/components/multiselectattribute.ts +2 -2
- package/src/models/components/numberattribute.ts +2 -2
- package/src/models/components/ordershipment.ts +6 -24
- package/src/models/components/partialcollectanddelivery.ts +2 -4
- package/src/models/components/partialcollectanddeliveryinput.ts +1 -1
- package/src/models/components/payupaymentinfo.ts +3 -3
- package/src/models/components/productattribute.ts +14 -36
- package/src/models/components/productpromotion.ts +16 -48
- package/src/models/components/shipmentstatus.ts +34 -0
- package/src/models/components/singleselectattribute.ts +2 -2
- package/src/models/components/singleselectoption.ts +2 -2
- package/src/models/components/textattribute.ts +2 -2
- package/src/models/components/volumebasedpromotion.ts +2 -18
- package/src/models/operations/createaddress.ts +1 -1
- package/src/models/operations/generateotp.ts +20 -6
- package/src/models/operations/getaddressdetail.ts +2 -2
- package/src/models/operations/getmarketplaceproductdetail.ts +118 -0
- package/src/models/operations/getmarketplacevariantdetail.ts +125 -0
- package/src/models/operations/index.ts +11 -0
- package/src/models/operations/listaddresses.ts +2 -2
- package/src/models/operations/listmarketplacecategories.ts +131 -0
- package/src/models/operations/listmarketplacecrosssellproducts.ts +145 -0
- package/src/models/operations/listmarketplaceproductreviews.ts +148 -0
- package/src/models/operations/listmarketplaceproducts.ts +143 -0
- package/src/models/operations/listmarketplaceproductvariants.ts +118 -0
- package/src/models/operations/listmarketplacesimilarproducts.ts +136 -0
- package/src/models/operations/listmarketplaceskus.ts +139 -0
- package/src/models/operations/listmarketplaceupsellproducts.ts +139 -0
- package/src/models/operations/loginwithwhatsapp.ts +2 -2
- package/src/models/operations/searchmarketplaceproducts.ts +142 -0
- package/src/models/operations/searchproducts.ts +9 -9
- package/src/models/operations/updateaddressdetail.ts +1 -1
- package/src/sdk/marketplace.ts +229 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/types/enums.ts +38 -9
- package/src/types/index.ts +2 -2
- package/src/types/unrecognized.ts +35 -0
- package/tsconfig.json +1 -2
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListMarketplaceSkusRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* page number of pagination list
|
|
15
|
+
*/
|
|
16
|
+
page?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* no of rows per page
|
|
19
|
+
*/
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* JSON string format: {"field1":"asc", "field2":"desc"}
|
|
23
|
+
*/
|
|
24
|
+
sortBy?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
27
|
+
*/
|
|
28
|
+
xCustomerGroupId?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* filter sku by categories
|
|
31
|
+
*/
|
|
32
|
+
categoryId?: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Determines whether to include or exlude inventory details in response json
|
|
35
|
+
*/
|
|
36
|
+
inventory?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* array of sku
|
|
39
|
+
*/
|
|
40
|
+
sku?: Array<string> | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type ListMarketplaceSkusContent = {
|
|
44
|
+
skus: Array<components.Item>;
|
|
45
|
+
/**
|
|
46
|
+
* pagination metadata structure
|
|
47
|
+
*/
|
|
48
|
+
pagination: components.Pagination;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Success response
|
|
53
|
+
*/
|
|
54
|
+
export type ListMarketplaceSkusResponseBody = {
|
|
55
|
+
message: string;
|
|
56
|
+
success: boolean;
|
|
57
|
+
content: ListMarketplaceSkusContent;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type ListMarketplaceSkusRequest$Outbound = {
|
|
62
|
+
page?: number | undefined;
|
|
63
|
+
limit?: number | undefined;
|
|
64
|
+
sort_by?: string | undefined;
|
|
65
|
+
"x-customer-group-id"?: string | undefined;
|
|
66
|
+
category_id?: Array<string> | undefined;
|
|
67
|
+
inventory?: boolean | undefined;
|
|
68
|
+
sku?: Array<string> | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ListMarketplaceSkusRequest$outboundSchema: z.ZodType<
|
|
73
|
+
ListMarketplaceSkusRequest$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
ListMarketplaceSkusRequest
|
|
76
|
+
> = z.object({
|
|
77
|
+
page: z.number().optional(),
|
|
78
|
+
limit: z.number().int().optional(),
|
|
79
|
+
sortBy: z.string().optional(),
|
|
80
|
+
xCustomerGroupId: z.string().optional(),
|
|
81
|
+
categoryId: z.array(z.string()).optional(),
|
|
82
|
+
inventory: z.boolean().optional(),
|
|
83
|
+
sku: z.array(z.string()).optional(),
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
sortBy: "sort_by",
|
|
87
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
88
|
+
categoryId: "category_id",
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export function listMarketplaceSkusRequestToJSON(
|
|
93
|
+
listMarketplaceSkusRequest: ListMarketplaceSkusRequest,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
ListMarketplaceSkusRequest$outboundSchema.parse(listMarketplaceSkusRequest),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const ListMarketplaceSkusContent$inboundSchema: z.ZodType<
|
|
102
|
+
ListMarketplaceSkusContent,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
skus: z.array(components.Item$inboundSchema),
|
|
107
|
+
pagination: components.Pagination$inboundSchema,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function listMarketplaceSkusContentFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListMarketplaceSkusContent, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListMarketplaceSkusContent$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListMarketplaceSkusContent' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const ListMarketplaceSkusResponseBody$inboundSchema: z.ZodType<
|
|
122
|
+
ListMarketplaceSkusResponseBody,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
message: z.string(),
|
|
127
|
+
success: z.boolean(),
|
|
128
|
+
content: z.lazy(() => ListMarketplaceSkusContent$inboundSchema),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export function listMarketplaceSkusResponseBodyFromJSON(
|
|
132
|
+
jsonString: string,
|
|
133
|
+
): SafeParseResult<ListMarketplaceSkusResponseBody, SDKValidationError> {
|
|
134
|
+
return safeParse(
|
|
135
|
+
jsonString,
|
|
136
|
+
(x) => ListMarketplaceSkusResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
+
`Failed to parse 'ListMarketplaceSkusResponseBody' from JSON`,
|
|
138
|
+
);
|
|
139
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListMarketplaceUpsellProductsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
15
|
+
*/
|
|
16
|
+
xCustomerGroupId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* no of rows per page
|
|
19
|
+
*/
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* page number in pagination
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Product ids of cart items
|
|
27
|
+
*/
|
|
28
|
+
productId?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* json to sort records
|
|
31
|
+
*/
|
|
32
|
+
sortBy?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type ListMarketplaceUpsellProductsContent = {
|
|
36
|
+
products: Array<components.Item>;
|
|
37
|
+
/**
|
|
38
|
+
* pagination metadata structure
|
|
39
|
+
*/
|
|
40
|
+
pagination: components.Pagination;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Success response
|
|
45
|
+
*/
|
|
46
|
+
export type ListMarketplaceUpsellProductsResponseBody = {
|
|
47
|
+
/**
|
|
48
|
+
* Masssage
|
|
49
|
+
*/
|
|
50
|
+
message: string;
|
|
51
|
+
success: boolean;
|
|
52
|
+
content: ListMarketplaceUpsellProductsContent;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type ListMarketplaceUpsellProductsRequest$Outbound = {
|
|
57
|
+
"x-customer-group-id"?: string | undefined;
|
|
58
|
+
limit?: number | undefined;
|
|
59
|
+
page?: number | undefined;
|
|
60
|
+
product_id?: Array<string> | undefined;
|
|
61
|
+
sort_by?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const ListMarketplaceUpsellProductsRequest$outboundSchema: z.ZodType<
|
|
66
|
+
ListMarketplaceUpsellProductsRequest$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
ListMarketplaceUpsellProductsRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
xCustomerGroupId: z.string().optional(),
|
|
71
|
+
limit: z.number().int().optional(),
|
|
72
|
+
page: z.number().int().optional(),
|
|
73
|
+
productId: z.array(z.string()).optional(),
|
|
74
|
+
sortBy: z.string().optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
78
|
+
productId: "product_id",
|
|
79
|
+
sortBy: "sort_by",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export function listMarketplaceUpsellProductsRequestToJSON(
|
|
84
|
+
listMarketplaceUpsellProductsRequest: ListMarketplaceUpsellProductsRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
ListMarketplaceUpsellProductsRequest$outboundSchema.parse(
|
|
88
|
+
listMarketplaceUpsellProductsRequest,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ListMarketplaceUpsellProductsContent$inboundSchema: z.ZodType<
|
|
95
|
+
ListMarketplaceUpsellProductsContent,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
products: z.array(components.Item$inboundSchema),
|
|
100
|
+
pagination: components.Pagination$inboundSchema,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export function listMarketplaceUpsellProductsContentFromJSON(
|
|
104
|
+
jsonString: string,
|
|
105
|
+
): SafeParseResult<ListMarketplaceUpsellProductsContent, SDKValidationError> {
|
|
106
|
+
return safeParse(
|
|
107
|
+
jsonString,
|
|
108
|
+
(x) =>
|
|
109
|
+
ListMarketplaceUpsellProductsContent$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'ListMarketplaceUpsellProductsContent' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const ListMarketplaceUpsellProductsResponseBody$inboundSchema: z.ZodType<
|
|
116
|
+
ListMarketplaceUpsellProductsResponseBody,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.object({
|
|
120
|
+
message: z.string(),
|
|
121
|
+
success: z.boolean(),
|
|
122
|
+
content: z.lazy(() => ListMarketplaceUpsellProductsContent$inboundSchema),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export function listMarketplaceUpsellProductsResponseBodyFromJSON(
|
|
126
|
+
jsonString: string,
|
|
127
|
+
): SafeParseResult<
|
|
128
|
+
ListMarketplaceUpsellProductsResponseBody,
|
|
129
|
+
SDKValidationError
|
|
130
|
+
> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) =>
|
|
134
|
+
ListMarketplaceUpsellProductsResponseBody$inboundSchema.parse(
|
|
135
|
+
JSON.parse(x),
|
|
136
|
+
),
|
|
137
|
+
`Failed to parse 'ListMarketplaceUpsellProductsResponseBody' from JSON`,
|
|
138
|
+
);
|
|
139
|
+
}
|
|
@@ -69,7 +69,7 @@ export type LoginWithWhatsappResponseBody = {
|
|
|
69
69
|
|
|
70
70
|
/** @internal */
|
|
71
71
|
export type LoginWithWhatsappRequestBody$Outbound = {
|
|
72
|
-
country_code
|
|
72
|
+
country_code?: "+91" | undefined;
|
|
73
73
|
phone: string;
|
|
74
74
|
register_if_not_exists?: boolean | undefined;
|
|
75
75
|
};
|
|
@@ -80,7 +80,7 @@ export const LoginWithWhatsappRequestBody$outboundSchema: z.ZodType<
|
|
|
80
80
|
z.ZodTypeDef,
|
|
81
81
|
LoginWithWhatsappRequestBody
|
|
82
82
|
> = z.object({
|
|
83
|
-
countryCode: z.literal("+91"),
|
|
83
|
+
countryCode: z.literal("+91").optional(),
|
|
84
84
|
phone: z.string(),
|
|
85
85
|
registerIfNotExists: z.boolean().optional(),
|
|
86
86
|
}).transform((v) => {
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type SearchMarketplaceProductsRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
15
|
+
*/
|
|
16
|
+
xCustomerGroupId?: string | undefined;
|
|
17
|
+
searchProduct: components.SearchProduct;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type FacetStats = {
|
|
21
|
+
min: number;
|
|
22
|
+
max: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type SearchMarketplaceProductsContent = {
|
|
26
|
+
skus: Array<components.Item>;
|
|
27
|
+
facetDistribution: { [k: string]: { [k: string]: number } };
|
|
28
|
+
facetStats: { [k: string]: FacetStats };
|
|
29
|
+
/**
|
|
30
|
+
* pagination metadata structure
|
|
31
|
+
*/
|
|
32
|
+
pagination: components.Pagination;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Success response
|
|
37
|
+
*/
|
|
38
|
+
export type SearchMarketplaceProductsResponseBody = {
|
|
39
|
+
message: string;
|
|
40
|
+
success: boolean;
|
|
41
|
+
content: SearchMarketplaceProductsContent;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type SearchMarketplaceProductsRequest$Outbound = {
|
|
46
|
+
"x-customer-group-id"?: string | undefined;
|
|
47
|
+
SearchProduct: components.SearchProduct$Outbound;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const SearchMarketplaceProductsRequest$outboundSchema: z.ZodType<
|
|
52
|
+
SearchMarketplaceProductsRequest$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
SearchMarketplaceProductsRequest
|
|
55
|
+
> = z.object({
|
|
56
|
+
xCustomerGroupId: z.string().optional(),
|
|
57
|
+
searchProduct: components.SearchProduct$outboundSchema,
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
61
|
+
searchProduct: "SearchProduct",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function searchMarketplaceProductsRequestToJSON(
|
|
66
|
+
searchMarketplaceProductsRequest: SearchMarketplaceProductsRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
SearchMarketplaceProductsRequest$outboundSchema.parse(
|
|
70
|
+
searchMarketplaceProductsRequest,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const FacetStats$inboundSchema: z.ZodType<
|
|
77
|
+
FacetStats,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
unknown
|
|
80
|
+
> = z.object({
|
|
81
|
+
min: z.number(),
|
|
82
|
+
max: z.number(),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function facetStatsFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<FacetStats, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => FacetStats$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'FacetStats' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const SearchMarketplaceProductsContent$inboundSchema: z.ZodType<
|
|
97
|
+
SearchMarketplaceProductsContent,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
skus: z.array(components.Item$inboundSchema),
|
|
102
|
+
facet_distribution: z.record(z.record(z.number().int())),
|
|
103
|
+
facet_stats: z.record(z.lazy(() => FacetStats$inboundSchema)),
|
|
104
|
+
pagination: components.Pagination$inboundSchema,
|
|
105
|
+
}).transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
"facet_distribution": "facetDistribution",
|
|
108
|
+
"facet_stats": "facetStats",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export function searchMarketplaceProductsContentFromJSON(
|
|
113
|
+
jsonString: string,
|
|
114
|
+
): SafeParseResult<SearchMarketplaceProductsContent, SDKValidationError> {
|
|
115
|
+
return safeParse(
|
|
116
|
+
jsonString,
|
|
117
|
+
(x) => SearchMarketplaceProductsContent$inboundSchema.parse(JSON.parse(x)),
|
|
118
|
+
`Failed to parse 'SearchMarketplaceProductsContent' from JSON`,
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const SearchMarketplaceProductsResponseBody$inboundSchema: z.ZodType<
|
|
124
|
+
SearchMarketplaceProductsResponseBody,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
unknown
|
|
127
|
+
> = z.object({
|
|
128
|
+
message: z.string(),
|
|
129
|
+
success: z.boolean(),
|
|
130
|
+
content: z.lazy(() => SearchMarketplaceProductsContent$inboundSchema),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
export function searchMarketplaceProductsResponseBodyFromJSON(
|
|
134
|
+
jsonString: string,
|
|
135
|
+
): SafeParseResult<SearchMarketplaceProductsResponseBody, SDKValidationError> {
|
|
136
|
+
return safeParse(
|
|
137
|
+
jsonString,
|
|
138
|
+
(x) =>
|
|
139
|
+
SearchMarketplaceProductsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'SearchMarketplaceProductsResponseBody' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
@@ -17,7 +17,7 @@ export type SearchProductsRequest = {
|
|
|
17
17
|
searchProduct: components.SearchProduct;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export type
|
|
20
|
+
export type SearchProductsFacetStats = {
|
|
21
21
|
min: number;
|
|
22
22
|
max: number;
|
|
23
23
|
};
|
|
@@ -25,7 +25,7 @@ export type FacetStats = {
|
|
|
25
25
|
export type SearchProductsContent = {
|
|
26
26
|
skus: Array<components.Item>;
|
|
27
27
|
facetDistribution: { [k: string]: { [k: string]: number } };
|
|
28
|
-
facetStats: { [k: string]:
|
|
28
|
+
facetStats: { [k: string]: SearchProductsFacetStats };
|
|
29
29
|
/**
|
|
30
30
|
* pagination metadata structure
|
|
31
31
|
*/
|
|
@@ -71,8 +71,8 @@ export function searchProductsRequestToJSON(
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/** @internal */
|
|
74
|
-
export const
|
|
75
|
-
|
|
74
|
+
export const SearchProductsFacetStats$inboundSchema: z.ZodType<
|
|
75
|
+
SearchProductsFacetStats,
|
|
76
76
|
z.ZodTypeDef,
|
|
77
77
|
unknown
|
|
78
78
|
> = z.object({
|
|
@@ -80,13 +80,13 @@ export const FacetStats$inboundSchema: z.ZodType<
|
|
|
80
80
|
max: z.number(),
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
export function
|
|
83
|
+
export function searchProductsFacetStatsFromJSON(
|
|
84
84
|
jsonString: string,
|
|
85
|
-
): SafeParseResult<
|
|
85
|
+
): SafeParseResult<SearchProductsFacetStats, SDKValidationError> {
|
|
86
86
|
return safeParse(
|
|
87
87
|
jsonString,
|
|
88
|
-
(x) =>
|
|
89
|
-
`Failed to parse '
|
|
88
|
+
(x) => SearchProductsFacetStats$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'SearchProductsFacetStats' from JSON`,
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -98,7 +98,7 @@ export const SearchProductsContent$inboundSchema: z.ZodType<
|
|
|
98
98
|
> = z.object({
|
|
99
99
|
skus: z.array(components.Item$inboundSchema),
|
|
100
100
|
facet_distribution: z.record(z.record(z.number().int())),
|
|
101
|
-
facet_stats: z.record(z.lazy(() =>
|
|
101
|
+
facet_stats: z.record(z.lazy(() => SearchProductsFacetStats$inboundSchema)),
|
|
102
102
|
pagination: components.Pagination$inboundSchema,
|
|
103
103
|
}).transform((v) => {
|
|
104
104
|
return remap$(v, {
|