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.
Files changed (342) hide show
  1. package/README.md +28 -3
  2. package/esm/funcs/marketplaceGetProductDetail.d.ts +20 -0
  3. package/esm/funcs/marketplaceGetProductDetail.d.ts.map +1 -0
  4. package/esm/funcs/marketplaceGetProductDetail.js +91 -0
  5. package/esm/funcs/marketplaceGetProductDetail.js.map +1 -0
  6. package/esm/funcs/marketplaceGetVariantDetail.d.ts +20 -0
  7. package/esm/funcs/marketplaceGetVariantDetail.d.ts.map +1 -0
  8. package/esm/funcs/marketplaceGetVariantDetail.js +98 -0
  9. package/esm/funcs/marketplaceGetVariantDetail.js.map +1 -0
  10. package/esm/funcs/marketplaceListCategories.d.ts +20 -0
  11. package/esm/funcs/marketplaceListCategories.d.ts.map +1 -0
  12. package/esm/funcs/marketplaceListCategories.js +91 -0
  13. package/esm/funcs/marketplaceListCategories.js.map +1 -0
  14. package/esm/funcs/marketplaceListCrosssellProducts.d.ts +20 -0
  15. package/esm/funcs/marketplaceListCrosssellProducts.d.ts.map +1 -0
  16. package/esm/funcs/marketplaceListCrosssellProducts.js +91 -0
  17. package/esm/funcs/marketplaceListCrosssellProducts.js.map +1 -0
  18. package/esm/funcs/marketplaceListProductReviews.d.ts +20 -0
  19. package/esm/funcs/marketplaceListProductReviews.d.ts.map +1 -0
  20. package/esm/funcs/marketplaceListProductReviews.js +97 -0
  21. package/esm/funcs/marketplaceListProductReviews.js.map +1 -0
  22. package/esm/funcs/marketplaceListProductVariants.d.ts +20 -0
  23. package/esm/funcs/marketplaceListProductVariants.d.ts.map +1 -0
  24. package/esm/funcs/marketplaceListProductVariants.js +94 -0
  25. package/esm/funcs/marketplaceListProductVariants.js.map +1 -0
  26. package/esm/funcs/marketplaceListProducts.d.ts +20 -0
  27. package/esm/funcs/marketplaceListProducts.d.ts.map +1 -0
  28. package/esm/funcs/marketplaceListProducts.js +93 -0
  29. package/esm/funcs/marketplaceListProducts.js.map +1 -0
  30. package/esm/funcs/marketplaceListSimilarProducts.d.ts +20 -0
  31. package/esm/funcs/marketplaceListSimilarProducts.d.ts.map +1 -0
  32. package/esm/funcs/marketplaceListSimilarProducts.js +91 -0
  33. package/esm/funcs/marketplaceListSimilarProducts.js.map +1 -0
  34. package/esm/funcs/marketplaceListSkus.d.ts +20 -0
  35. package/esm/funcs/marketplaceListSkus.d.ts.map +1 -0
  36. package/esm/funcs/marketplaceListSkus.js +93 -0
  37. package/esm/funcs/marketplaceListSkus.js.map +1 -0
  38. package/esm/funcs/marketplaceListUpsellProducts.d.ts +20 -0
  39. package/esm/funcs/marketplaceListUpsellProducts.d.ts.map +1 -0
  40. package/esm/funcs/marketplaceListUpsellProducts.js +91 -0
  41. package/esm/funcs/marketplaceListUpsellProducts.js.map +1 -0
  42. package/esm/funcs/marketplaceSearchProducts.d.ts +20 -0
  43. package/esm/funcs/marketplaceSearchProducts.d.ts.map +1 -0
  44. package/esm/funcs/marketplaceSearchProducts.js +85 -0
  45. package/esm/funcs/marketplaceSearchProducts.js.map +1 -0
  46. package/esm/lib/config.d.ts +3 -3
  47. package/esm/lib/config.js +3 -3
  48. package/esm/lib/encodings.d.ts +1 -0
  49. package/esm/lib/encodings.d.ts.map +1 -1
  50. package/esm/lib/encodings.js +12 -1
  51. package/esm/lib/encodings.js.map +1 -1
  52. package/esm/models/components/booleanattribute.d.ts +1 -1
  53. package/esm/models/components/booleanattribute.d.ts.map +1 -1
  54. package/esm/models/components/booleanattribute.js +1 -1
  55. package/esm/models/components/booleanattribute.js.map +1 -1
  56. package/esm/models/components/collectinstorefulfillment.d.ts +1 -1
  57. package/esm/models/components/collectinstorefulfillment.d.ts.map +1 -1
  58. package/esm/models/components/collectinstorefulfillment.js +1 -2
  59. package/esm/models/components/collectinstorefulfillment.js.map +1 -1
  60. package/esm/models/components/collectinstorefulfillmentinput.d.ts +1 -1
  61. package/esm/models/components/collectinstorefulfillmentinput.d.ts.map +1 -1
  62. package/esm/models/components/colorattribute.d.ts +1 -1
  63. package/esm/models/components/colorattribute.d.ts.map +1 -1
  64. package/esm/models/components/colorattribute.js +1 -1
  65. package/esm/models/components/colorattribute.js.map +1 -1
  66. package/esm/models/components/coloroption.d.ts +1 -1
  67. package/esm/models/components/coloroption.d.ts.map +1 -1
  68. package/esm/models/components/coloroption.js +1 -1
  69. package/esm/models/components/coloroption.js.map +1 -1
  70. package/esm/models/components/customeraddress.d.ts +1 -1
  71. package/esm/models/components/customeraddress.d.ts.map +1 -1
  72. package/esm/models/components/customeraddress.js +1 -1
  73. package/esm/models/components/customeraddress.js.map +1 -1
  74. package/esm/models/components/customeraddressinput.d.ts +1 -1
  75. package/esm/models/components/customeraddressinput.d.ts.map +1 -1
  76. package/esm/models/components/dateattribute.d.ts +1 -1
  77. package/esm/models/components/dateattribute.js +1 -1
  78. package/esm/models/components/dateattribute.js.map +1 -1
  79. package/esm/models/components/deliveryfulfillment.d.ts +1 -1
  80. package/esm/models/components/deliveryfulfillment.d.ts.map +1 -1
  81. package/esm/models/components/deliveryfulfillment.js +1 -1
  82. package/esm/models/components/deliveryfulfillment.js.map +1 -1
  83. package/esm/models/components/deliveryfulfillmentinput.d.ts +1 -1
  84. package/esm/models/components/deliveryfulfillmentinput.d.ts.map +1 -1
  85. package/esm/models/components/discountbasedpromotion.d.ts +1 -10
  86. package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
  87. package/esm/models/components/discountbasedpromotion.js +1 -9
  88. package/esm/models/components/discountbasedpromotion.js.map +1 -1
  89. package/esm/models/components/fixedpricepromotion.d.ts +1 -11
  90. package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
  91. package/esm/models/components/fixedpricepromotion.js +1 -9
  92. package/esm/models/components/fixedpricepromotion.js.map +1 -1
  93. package/esm/models/components/freegoodspromotion.d.ts +1 -11
  94. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  95. package/esm/models/components/freegoodspromotion.js +1 -9
  96. package/esm/models/components/freegoodspromotion.js.map +1 -1
  97. package/esm/models/components/fulfillmentpreference.d.ts +1 -7
  98. package/esm/models/components/fulfillmentpreference.d.ts.map +1 -1
  99. package/esm/models/components/fulfillmentpreference.js +3 -6
  100. package/esm/models/components/fulfillmentpreference.js.map +1 -1
  101. package/esm/models/components/fulfillmentpreferenceinput.d.ts +2 -14
  102. package/esm/models/components/fulfillmentpreferenceinput.d.ts.map +1 -1
  103. package/esm/models/components/fulfillmentpreferenceinput.js +3 -6
  104. package/esm/models/components/fulfillmentpreferenceinput.js.map +1 -1
  105. package/esm/models/components/generateotpwithemail.d.ts +1 -1
  106. package/esm/models/components/generateotpwithemail.d.ts.map +1 -1
  107. package/esm/models/components/index.d.ts +1 -0
  108. package/esm/models/components/index.d.ts.map +1 -1
  109. package/esm/models/components/index.js +1 -0
  110. package/esm/models/components/index.js.map +1 -1
  111. package/esm/models/components/juspayhypercheckout.d.ts +1 -1
  112. package/esm/models/components/juspayhypercheckout.d.ts.map +1 -1
  113. package/esm/models/components/juspayhypercheckoutresponse.d.ts.map +1 -1
  114. package/esm/models/components/juspayhypercheckoutresponse.js +2 -3
  115. package/esm/models/components/juspayhypercheckoutresponse.js.map +1 -1
  116. package/esm/models/components/juspaynetbanking.d.ts +2 -2
  117. package/esm/models/components/juspaynetbanking.d.ts.map +1 -1
  118. package/esm/models/components/juspaynewcard.d.ts +3 -3
  119. package/esm/models/components/juspaynewcard.d.ts.map +1 -1
  120. package/esm/models/components/juspaysavedcardtoken.d.ts +3 -3
  121. package/esm/models/components/juspaysavedcardtoken.d.ts.map +1 -1
  122. package/esm/models/components/juspayupicollect.d.ts +3 -3
  123. package/esm/models/components/juspayupicollect.d.ts.map +1 -1
  124. package/esm/models/components/juspayupiintent.d.ts +3 -3
  125. package/esm/models/components/juspayupiintent.d.ts.map +1 -1
  126. package/esm/models/components/multiselectattribute.d.ts +1 -1
  127. package/esm/models/components/multiselectattribute.d.ts.map +1 -1
  128. package/esm/models/components/multiselectattribute.js +1 -1
  129. package/esm/models/components/multiselectattribute.js.map +1 -1
  130. package/esm/models/components/numberattribute.d.ts +1 -1
  131. package/esm/models/components/numberattribute.d.ts.map +1 -1
  132. package/esm/models/components/numberattribute.js +1 -1
  133. package/esm/models/components/numberattribute.js.map +1 -1
  134. package/esm/models/components/ordershipment.d.ts +2 -19
  135. package/esm/models/components/ordershipment.d.ts.map +1 -1
  136. package/esm/models/components/ordershipment.js +2 -17
  137. package/esm/models/components/ordershipment.js.map +1 -1
  138. package/esm/models/components/partialcollectanddelivery.d.ts +1 -1
  139. package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -1
  140. package/esm/models/components/partialcollectanddelivery.js +1 -1
  141. package/esm/models/components/partialcollectanddelivery.js.map +1 -1
  142. package/esm/models/components/partialcollectanddeliveryinput.d.ts +1 -1
  143. package/esm/models/components/partialcollectanddeliveryinput.d.ts.map +1 -1
  144. package/esm/models/components/payupaymentinfo.js +3 -3
  145. package/esm/models/components/payupaymentinfo.js.map +1 -1
  146. package/esm/models/components/productattribute.d.ts +1 -15
  147. package/esm/models/components/productattribute.d.ts.map +1 -1
  148. package/esm/models/components/productattribute.js +7 -15
  149. package/esm/models/components/productattribute.js.map +1 -1
  150. package/esm/models/components/productpromotion.d.ts +2 -18
  151. package/esm/models/components/productpromotion.d.ts.map +1 -1
  152. package/esm/models/components/productpromotion.js +8 -20
  153. package/esm/models/components/productpromotion.js.map +1 -1
  154. package/esm/models/components/shipmentstatus.d.ts +27 -0
  155. package/esm/models/components/shipmentstatus.d.ts.map +1 -0
  156. package/esm/models/components/shipmentstatus.js +25 -0
  157. package/esm/models/components/shipmentstatus.js.map +1 -0
  158. package/esm/models/components/singleselectattribute.d.ts +1 -1
  159. package/esm/models/components/singleselectattribute.d.ts.map +1 -1
  160. package/esm/models/components/singleselectattribute.js +1 -1
  161. package/esm/models/components/singleselectattribute.js.map +1 -1
  162. package/esm/models/components/singleselectoption.d.ts +1 -1
  163. package/esm/models/components/singleselectoption.d.ts.map +1 -1
  164. package/esm/models/components/singleselectoption.js +1 -1
  165. package/esm/models/components/singleselectoption.js.map +1 -1
  166. package/esm/models/components/textattribute.d.ts +1 -1
  167. package/esm/models/components/textattribute.js +1 -1
  168. package/esm/models/components/textattribute.js.map +1 -1
  169. package/esm/models/components/volumebasedpromotion.d.ts +1 -11
  170. package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
  171. package/esm/models/components/volumebasedpromotion.js +1 -9
  172. package/esm/models/components/volumebasedpromotion.js.map +1 -1
  173. package/esm/models/operations/createaddress.d.ts +1 -1
  174. package/esm/models/operations/createaddress.d.ts.map +1 -1
  175. package/esm/models/operations/generateotp.d.ts +20 -4
  176. package/esm/models/operations/generateotp.d.ts.map +1 -1
  177. package/esm/models/operations/generateotp.js +4 -2
  178. package/esm/models/operations/generateotp.js.map +1 -1
  179. package/esm/models/operations/getaddressdetail.d.ts +1 -1
  180. package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
  181. package/esm/models/operations/getaddressdetail.js +1 -1
  182. package/esm/models/operations/getaddressdetail.js.map +1 -1
  183. package/esm/models/operations/getmarketplaceproductdetail.d.ts +45 -0
  184. package/esm/models/operations/getmarketplaceproductdetail.d.ts.map +1 -0
  185. package/esm/models/operations/getmarketplaceproductdetail.js +38 -0
  186. package/esm/models/operations/getmarketplaceproductdetail.js.map +1 -0
  187. package/esm/models/operations/getmarketplacevariantdetail.d.ts +50 -0
  188. package/esm/models/operations/getmarketplacevariantdetail.d.ts.map +1 -0
  189. package/esm/models/operations/getmarketplacevariantdetail.js +40 -0
  190. package/esm/models/operations/getmarketplacevariantdetail.js.map +1 -0
  191. package/esm/models/operations/index.d.ts +11 -0
  192. package/esm/models/operations/index.d.ts.map +1 -1
  193. package/esm/models/operations/index.js +11 -0
  194. package/esm/models/operations/index.js.map +1 -1
  195. package/esm/models/operations/listaddresses.d.ts +1 -1
  196. package/esm/models/operations/listaddresses.d.ts.map +1 -1
  197. package/esm/models/operations/listaddresses.js +1 -1
  198. package/esm/models/operations/listaddresses.js.map +1 -1
  199. package/esm/models/operations/listmarketplacecategories.d.ts +59 -0
  200. package/esm/models/operations/listmarketplacecategories.d.ts.map +1 -0
  201. package/esm/models/operations/listmarketplacecategories.js +43 -0
  202. package/esm/models/operations/listmarketplacecategories.js.map +1 -0
  203. package/esm/models/operations/listmarketplacecrosssellproducts.d.ts +59 -0
  204. package/esm/models/operations/listmarketplacecrosssellproducts.d.ts.map +1 -0
  205. package/esm/models/operations/listmarketplacecrosssellproducts.js +42 -0
  206. package/esm/models/operations/listmarketplacecrosssellproducts.js.map +1 -0
  207. package/esm/models/operations/listmarketplaceproductreviews.d.ts +65 -0
  208. package/esm/models/operations/listmarketplaceproductreviews.d.ts.map +1 -0
  209. package/esm/models/operations/listmarketplaceproductreviews.js +48 -0
  210. package/esm/models/operations/listmarketplaceproductreviews.js.map +1 -0
  211. package/esm/models/operations/listmarketplaceproducts.d.ts +69 -0
  212. package/esm/models/operations/listmarketplaceproducts.d.ts.map +1 -0
  213. package/esm/models/operations/listmarketplaceproducts.js +45 -0
  214. package/esm/models/operations/listmarketplaceproducts.js.map +1 -0
  215. package/esm/models/operations/listmarketplaceproductvariants.d.ts +45 -0
  216. package/esm/models/operations/listmarketplaceproductvariants.d.ts.map +1 -0
  217. package/esm/models/operations/listmarketplaceproductvariants.js +38 -0
  218. package/esm/models/operations/listmarketplaceproductvariants.js.map +1 -0
  219. package/esm/models/operations/listmarketplacesimilarproducts.d.ts +59 -0
  220. package/esm/models/operations/listmarketplacesimilarproducts.d.ts.map +1 -0
  221. package/esm/models/operations/listmarketplacesimilarproducts.js +42 -0
  222. package/esm/models/operations/listmarketplacesimilarproducts.js.map +1 -0
  223. package/esm/models/operations/listmarketplaceskus.d.ts +69 -0
  224. package/esm/models/operations/listmarketplaceskus.d.ts.map +1 -0
  225. package/esm/models/operations/listmarketplaceskus.js +44 -0
  226. package/esm/models/operations/listmarketplaceskus.js.map +1 -0
  227. package/esm/models/operations/listmarketplaceupsellproducts.d.ts +62 -0
  228. package/esm/models/operations/listmarketplaceupsellproducts.d.ts.map +1 -0
  229. package/esm/models/operations/listmarketplaceupsellproducts.js +42 -0
  230. package/esm/models/operations/listmarketplaceupsellproducts.js.map +1 -0
  231. package/esm/models/operations/loginwithwhatsapp.d.ts +1 -1
  232. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  233. package/esm/models/operations/loginwithwhatsapp.js +1 -1
  234. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  235. package/esm/models/operations/searchmarketplaceproducts.d.ts +56 -0
  236. package/esm/models/operations/searchmarketplaceproducts.d.ts.map +1 -0
  237. package/esm/models/operations/searchmarketplaceproducts.js +53 -0
  238. package/esm/models/operations/searchmarketplaceproducts.js.map +1 -0
  239. package/esm/models/operations/searchproducts.d.ts +4 -4
  240. package/esm/models/operations/searchproducts.d.ts.map +1 -1
  241. package/esm/models/operations/searchproducts.js +4 -4
  242. package/esm/models/operations/searchproducts.js.map +1 -1
  243. package/esm/models/operations/updateaddressdetail.d.ts +1 -1
  244. package/esm/models/operations/updateaddressdetail.d.ts.map +1 -1
  245. package/esm/sdk/marketplace.d.ts +104 -0
  246. package/esm/sdk/marketplace.d.ts.map +1 -0
  247. package/esm/sdk/marketplace.js +140 -0
  248. package/esm/sdk/marketplace.js.map +1 -0
  249. package/esm/sdk/sdk.d.ts +3 -0
  250. package/esm/sdk/sdk.d.ts.map +1 -1
  251. package/esm/sdk/sdk.js +4 -0
  252. package/esm/sdk/sdk.js.map +1 -1
  253. package/esm/types/enums.d.ts +8 -11
  254. package/esm/types/enums.d.ts.map +1 -1
  255. package/esm/types/enums.js +22 -2
  256. package/esm/types/enums.js.map +1 -1
  257. package/esm/types/index.d.ts +2 -2
  258. package/esm/types/index.d.ts.map +1 -1
  259. package/esm/types/index.js +1 -1
  260. package/esm/types/index.js.map +1 -1
  261. package/esm/types/unrecognized.d.ts +16 -0
  262. package/esm/types/unrecognized.d.ts.map +1 -0
  263. package/esm/types/unrecognized.js +31 -0
  264. package/esm/types/unrecognized.js.map +1 -0
  265. package/examples/package-lock.json +1 -1
  266. package/jsr.json +1 -1
  267. package/package.json +1 -1
  268. package/src/funcs/marketplaceGetProductDetail.ts +198 -0
  269. package/src/funcs/marketplaceGetVariantDetail.ts +201 -0
  270. package/src/funcs/marketplaceListCategories.ts +188 -0
  271. package/src/funcs/marketplaceListCrosssellProducts.ts +193 -0
  272. package/src/funcs/marketplaceListProductReviews.ts +198 -0
  273. package/src/funcs/marketplaceListProductVariants.ts +199 -0
  274. package/src/funcs/marketplaceListProducts.ts +190 -0
  275. package/src/funcs/marketplaceListSimilarProducts.ts +193 -0
  276. package/src/funcs/marketplaceListSkus.ts +190 -0
  277. package/src/funcs/marketplaceListUpsellProducts.ts +193 -0
  278. package/src/funcs/marketplaceSearchProducts.ts +177 -0
  279. package/src/lib/config.ts +3 -3
  280. package/src/lib/encodings.ts +17 -3
  281. package/src/models/components/booleanattribute.ts +2 -2
  282. package/src/models/components/collectinstorefulfillment.ts +2 -3
  283. package/src/models/components/collectinstorefulfillmentinput.ts +1 -1
  284. package/src/models/components/colorattribute.ts +2 -2
  285. package/src/models/components/coloroption.ts +2 -2
  286. package/src/models/components/customeraddress.ts +2 -2
  287. package/src/models/components/customeraddressinput.ts +1 -1
  288. package/src/models/components/dateattribute.ts +2 -2
  289. package/src/models/components/deliveryfulfillment.ts +2 -2
  290. package/src/models/components/deliveryfulfillmentinput.ts +1 -1
  291. package/src/models/components/discountbasedpromotion.ts +2 -17
  292. package/src/models/components/fixedpricepromotion.ts +2 -18
  293. package/src/models/components/freegoodspromotion.ts +2 -18
  294. package/src/models/components/fulfillmentpreference.ts +6 -19
  295. package/src/models/components/fulfillmentpreferenceinput.ts +9 -26
  296. package/src/models/components/generateotpwithemail.ts +1 -1
  297. package/src/models/components/index.ts +1 -0
  298. package/src/models/components/juspayhypercheckout.ts +1 -1
  299. package/src/models/components/juspayhypercheckoutresponse.ts +2 -3
  300. package/src/models/components/juspaynetbanking.ts +2 -2
  301. package/src/models/components/juspaynewcard.ts +3 -3
  302. package/src/models/components/juspaysavedcardtoken.ts +3 -3
  303. package/src/models/components/juspayupicollect.ts +3 -3
  304. package/src/models/components/juspayupiintent.ts +3 -3
  305. package/src/models/components/multiselectattribute.ts +2 -2
  306. package/src/models/components/numberattribute.ts +2 -2
  307. package/src/models/components/ordershipment.ts +6 -24
  308. package/src/models/components/partialcollectanddelivery.ts +2 -4
  309. package/src/models/components/partialcollectanddeliveryinput.ts +1 -1
  310. package/src/models/components/payupaymentinfo.ts +3 -3
  311. package/src/models/components/productattribute.ts +14 -36
  312. package/src/models/components/productpromotion.ts +16 -48
  313. package/src/models/components/shipmentstatus.ts +34 -0
  314. package/src/models/components/singleselectattribute.ts +2 -2
  315. package/src/models/components/singleselectoption.ts +2 -2
  316. package/src/models/components/textattribute.ts +2 -2
  317. package/src/models/components/volumebasedpromotion.ts +2 -18
  318. package/src/models/operations/createaddress.ts +1 -1
  319. package/src/models/operations/generateotp.ts +20 -6
  320. package/src/models/operations/getaddressdetail.ts +2 -2
  321. package/src/models/operations/getmarketplaceproductdetail.ts +118 -0
  322. package/src/models/operations/getmarketplacevariantdetail.ts +125 -0
  323. package/src/models/operations/index.ts +11 -0
  324. package/src/models/operations/listaddresses.ts +2 -2
  325. package/src/models/operations/listmarketplacecategories.ts +131 -0
  326. package/src/models/operations/listmarketplacecrosssellproducts.ts +145 -0
  327. package/src/models/operations/listmarketplaceproductreviews.ts +148 -0
  328. package/src/models/operations/listmarketplaceproducts.ts +143 -0
  329. package/src/models/operations/listmarketplaceproductvariants.ts +118 -0
  330. package/src/models/operations/listmarketplacesimilarproducts.ts +136 -0
  331. package/src/models/operations/listmarketplaceskus.ts +139 -0
  332. package/src/models/operations/listmarketplaceupsellproducts.ts +139 -0
  333. package/src/models/operations/loginwithwhatsapp.ts +2 -2
  334. package/src/models/operations/searchmarketplaceproducts.ts +142 -0
  335. package/src/models/operations/searchproducts.ts +9 -9
  336. package/src/models/operations/updateaddressdetail.ts +1 -1
  337. package/src/sdk/marketplace.ts +229 -0
  338. package/src/sdk/sdk.ts +6 -0
  339. package/src/types/enums.ts +38 -9
  340. package/src/types/index.ts +2 -2
  341. package/src/types/unrecognized.ts +35 -0
  342. package/tsconfig.json +1 -2
@@ -0,0 +1,145 @@
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 ListMarketplaceCrosssellProductsRequest = {
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 ListMarketplaceCrosssellProductsContent = {
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 ListMarketplaceCrosssellProductsResponseBody = {
47
+ message: string;
48
+ success: boolean;
49
+ content: ListMarketplaceCrosssellProductsContent;
50
+ };
51
+
52
+ /** @internal */
53
+ export type ListMarketplaceCrosssellProductsRequest$Outbound = {
54
+ "x-customer-group-id"?: string | undefined;
55
+ limit?: number | undefined;
56
+ page?: number | undefined;
57
+ product_id?: Array<string> | undefined;
58
+ sort_by?: string | undefined;
59
+ };
60
+
61
+ /** @internal */
62
+ export const ListMarketplaceCrosssellProductsRequest$outboundSchema: z.ZodType<
63
+ ListMarketplaceCrosssellProductsRequest$Outbound,
64
+ z.ZodTypeDef,
65
+ ListMarketplaceCrosssellProductsRequest
66
+ > = z.object({
67
+ xCustomerGroupId: z.string().optional(),
68
+ limit: z.number().int().optional(),
69
+ page: z.number().int().optional(),
70
+ productId: z.array(z.string()).optional(),
71
+ sortBy: z.string().optional(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ xCustomerGroupId: "x-customer-group-id",
75
+ productId: "product_id",
76
+ sortBy: "sort_by",
77
+ });
78
+ });
79
+
80
+ export function listMarketplaceCrosssellProductsRequestToJSON(
81
+ listMarketplaceCrosssellProductsRequest:
82
+ ListMarketplaceCrosssellProductsRequest,
83
+ ): string {
84
+ return JSON.stringify(
85
+ ListMarketplaceCrosssellProductsRequest$outboundSchema.parse(
86
+ listMarketplaceCrosssellProductsRequest,
87
+ ),
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const ListMarketplaceCrosssellProductsContent$inboundSchema: z.ZodType<
93
+ ListMarketplaceCrosssellProductsContent,
94
+ z.ZodTypeDef,
95
+ unknown
96
+ > = z.object({
97
+ products: z.array(components.Item$inboundSchema),
98
+ pagination: components.Pagination$inboundSchema,
99
+ });
100
+
101
+ export function listMarketplaceCrosssellProductsContentFromJSON(
102
+ jsonString: string,
103
+ ): SafeParseResult<
104
+ ListMarketplaceCrosssellProductsContent,
105
+ SDKValidationError
106
+ > {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) =>
110
+ ListMarketplaceCrosssellProductsContent$inboundSchema.parse(
111
+ JSON.parse(x),
112
+ ),
113
+ `Failed to parse 'ListMarketplaceCrosssellProductsContent' from JSON`,
114
+ );
115
+ }
116
+
117
+ /** @internal */
118
+ export const ListMarketplaceCrosssellProductsResponseBody$inboundSchema:
119
+ z.ZodType<
120
+ ListMarketplaceCrosssellProductsResponseBody,
121
+ z.ZodTypeDef,
122
+ unknown
123
+ > = z.object({
124
+ message: z.string(),
125
+ success: z.boolean(),
126
+ content: z.lazy(() =>
127
+ ListMarketplaceCrosssellProductsContent$inboundSchema
128
+ ),
129
+ });
130
+
131
+ export function listMarketplaceCrosssellProductsResponseBodyFromJSON(
132
+ jsonString: string,
133
+ ): SafeParseResult<
134
+ ListMarketplaceCrosssellProductsResponseBody,
135
+ SDKValidationError
136
+ > {
137
+ return safeParse(
138
+ jsonString,
139
+ (x) =>
140
+ ListMarketplaceCrosssellProductsResponseBody$inboundSchema.parse(
141
+ JSON.parse(x),
142
+ ),
143
+ `Failed to parse 'ListMarketplaceCrosssellProductsResponseBody' from JSON`,
144
+ );
145
+ }
@@ -0,0 +1,148 @@
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 ListMarketplaceProductReviewsRequest = {
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
+ * search keyword
27
+ */
28
+ search?: string | undefined;
29
+ /**
30
+ * id of a particular product
31
+ */
32
+ productId: string;
33
+ /**
34
+ * filter review with review tag
35
+ */
36
+ reviewTag?: string | undefined;
37
+ };
38
+
39
+ export type ListMarketplaceProductReviewsContent = {
40
+ reviews: Array<components.ProductReview>;
41
+ reviewTags?: Array<string> | null | undefined;
42
+ /**
43
+ * pagination metadata structure
44
+ */
45
+ pagination?: components.Pagination | undefined;
46
+ };
47
+
48
+ /**
49
+ * Success response
50
+ */
51
+ export type ListMarketplaceProductReviewsResponseBody = {
52
+ message: string;
53
+ success: boolean;
54
+ content: ListMarketplaceProductReviewsContent;
55
+ };
56
+
57
+ /** @internal */
58
+ export type ListMarketplaceProductReviewsRequest$Outbound = {
59
+ page?: number | undefined;
60
+ limit?: number | undefined;
61
+ sort_by?: string | undefined;
62
+ search?: string | undefined;
63
+ product_id: string;
64
+ review_tag?: string | undefined;
65
+ };
66
+
67
+ /** @internal */
68
+ export const ListMarketplaceProductReviewsRequest$outboundSchema: z.ZodType<
69
+ ListMarketplaceProductReviewsRequest$Outbound,
70
+ z.ZodTypeDef,
71
+ ListMarketplaceProductReviewsRequest
72
+ > = z.object({
73
+ page: z.number().optional(),
74
+ limit: z.number().int().optional(),
75
+ sortBy: z.string().optional(),
76
+ search: z.string().optional(),
77
+ productId: z.string(),
78
+ reviewTag: z.string().optional(),
79
+ }).transform((v) => {
80
+ return remap$(v, {
81
+ sortBy: "sort_by",
82
+ productId: "product_id",
83
+ reviewTag: "review_tag",
84
+ });
85
+ });
86
+
87
+ export function listMarketplaceProductReviewsRequestToJSON(
88
+ listMarketplaceProductReviewsRequest: ListMarketplaceProductReviewsRequest,
89
+ ): string {
90
+ return JSON.stringify(
91
+ ListMarketplaceProductReviewsRequest$outboundSchema.parse(
92
+ listMarketplaceProductReviewsRequest,
93
+ ),
94
+ );
95
+ }
96
+
97
+ /** @internal */
98
+ export const ListMarketplaceProductReviewsContent$inboundSchema: z.ZodType<
99
+ ListMarketplaceProductReviewsContent,
100
+ z.ZodTypeDef,
101
+ unknown
102
+ > = z.object({
103
+ reviews: z.array(components.ProductReview$inboundSchema),
104
+ review_tags: z.nullable(z.array(z.string())).optional(),
105
+ pagination: components.Pagination$inboundSchema.optional(),
106
+ }).transform((v) => {
107
+ return remap$(v, {
108
+ "review_tags": "reviewTags",
109
+ });
110
+ });
111
+
112
+ export function listMarketplaceProductReviewsContentFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<ListMarketplaceProductReviewsContent, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) =>
118
+ ListMarketplaceProductReviewsContent$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'ListMarketplaceProductReviewsContent' from JSON`,
120
+ );
121
+ }
122
+
123
+ /** @internal */
124
+ export const ListMarketplaceProductReviewsResponseBody$inboundSchema: z.ZodType<
125
+ ListMarketplaceProductReviewsResponseBody,
126
+ z.ZodTypeDef,
127
+ unknown
128
+ > = z.object({
129
+ message: z.string(),
130
+ success: z.boolean(),
131
+ content: z.lazy(() => ListMarketplaceProductReviewsContent$inboundSchema),
132
+ });
133
+
134
+ export function listMarketplaceProductReviewsResponseBodyFromJSON(
135
+ jsonString: string,
136
+ ): SafeParseResult<
137
+ ListMarketplaceProductReviewsResponseBody,
138
+ SDKValidationError
139
+ > {
140
+ return safeParse(
141
+ jsonString,
142
+ (x) =>
143
+ ListMarketplaceProductReviewsResponseBody$inboundSchema.parse(
144
+ JSON.parse(x),
145
+ ),
146
+ `Failed to parse 'ListMarketplaceProductReviewsResponseBody' from JSON`,
147
+ );
148
+ }
@@ -0,0 +1,143 @@
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 ListMarketplaceProductsRequest = {
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 products by categories ids
31
+ */
32
+ categoryId?: Array<string> | undefined;
33
+ /**
34
+ * filter products by categories slugs
35
+ */
36
+ categorySlug?: Array<string> | undefined;
37
+ /**
38
+ * Determines whether to include or exlude inventory details in response json
39
+ */
40
+ inventory?: boolean | undefined;
41
+ };
42
+
43
+ export type ListMarketplaceProductsContent = {
44
+ products: Array<components.Product>;
45
+ /**
46
+ * pagination metadata structure
47
+ */
48
+ pagination: components.Pagination;
49
+ };
50
+
51
+ /**
52
+ * Success response
53
+ */
54
+ export type ListMarketplaceProductsResponseBody = {
55
+ message: string;
56
+ success: boolean;
57
+ content: ListMarketplaceProductsContent;
58
+ };
59
+
60
+ /** @internal */
61
+ export type ListMarketplaceProductsRequest$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
+ category_slug?: Array<string> | undefined;
68
+ inventory?: boolean | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const ListMarketplaceProductsRequest$outboundSchema: z.ZodType<
73
+ ListMarketplaceProductsRequest$Outbound,
74
+ z.ZodTypeDef,
75
+ ListMarketplaceProductsRequest
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
+ categorySlug: z.array(z.string()).optional(),
83
+ inventory: z.boolean().optional(),
84
+ }).transform((v) => {
85
+ return remap$(v, {
86
+ sortBy: "sort_by",
87
+ xCustomerGroupId: "x-customer-group-id",
88
+ categoryId: "category_id",
89
+ categorySlug: "category_slug",
90
+ });
91
+ });
92
+
93
+ export function listMarketplaceProductsRequestToJSON(
94
+ listMarketplaceProductsRequest: ListMarketplaceProductsRequest,
95
+ ): string {
96
+ return JSON.stringify(
97
+ ListMarketplaceProductsRequest$outboundSchema.parse(
98
+ listMarketplaceProductsRequest,
99
+ ),
100
+ );
101
+ }
102
+
103
+ /** @internal */
104
+ export const ListMarketplaceProductsContent$inboundSchema: z.ZodType<
105
+ ListMarketplaceProductsContent,
106
+ z.ZodTypeDef,
107
+ unknown
108
+ > = z.object({
109
+ products: z.array(components.Product$inboundSchema),
110
+ pagination: components.Pagination$inboundSchema,
111
+ });
112
+
113
+ export function listMarketplaceProductsContentFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<ListMarketplaceProductsContent, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => ListMarketplaceProductsContent$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'ListMarketplaceProductsContent' from JSON`,
120
+ );
121
+ }
122
+
123
+ /** @internal */
124
+ export const ListMarketplaceProductsResponseBody$inboundSchema: z.ZodType<
125
+ ListMarketplaceProductsResponseBody,
126
+ z.ZodTypeDef,
127
+ unknown
128
+ > = z.object({
129
+ message: z.string(),
130
+ success: z.boolean(),
131
+ content: z.lazy(() => ListMarketplaceProductsContent$inboundSchema),
132
+ });
133
+
134
+ export function listMarketplaceProductsResponseBodyFromJSON(
135
+ jsonString: string,
136
+ ): SafeParseResult<ListMarketplaceProductsResponseBody, SDKValidationError> {
137
+ return safeParse(
138
+ jsonString,
139
+ (x) =>
140
+ ListMarketplaceProductsResponseBody$inboundSchema.parse(JSON.parse(x)),
141
+ `Failed to parse 'ListMarketplaceProductsResponseBody' from JSON`,
142
+ );
143
+ }
@@ -0,0 +1,118 @@
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 ListMarketplaceProductVariantsRequest = {
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
+ * Determines whether to include or exlude inventory details in response json
19
+ */
20
+ inventory?: boolean | undefined;
21
+ /**
22
+ * ID of a particular product
23
+ */
24
+ productId: string;
25
+ };
26
+
27
+ export type ListMarketplaceProductVariantsContent = {
28
+ variants: Array<components.Variant>;
29
+ };
30
+
31
+ /**
32
+ * Success response
33
+ */
34
+ export type ListMarketplaceProductVariantsResponseBody = {
35
+ message: string;
36
+ success: boolean;
37
+ content: ListMarketplaceProductVariantsContent;
38
+ };
39
+
40
+ /** @internal */
41
+ export type ListMarketplaceProductVariantsRequest$Outbound = {
42
+ "x-customer-group-id"?: string | undefined;
43
+ inventory?: boolean | undefined;
44
+ product_id: string;
45
+ };
46
+
47
+ /** @internal */
48
+ export const ListMarketplaceProductVariantsRequest$outboundSchema: z.ZodType<
49
+ ListMarketplaceProductVariantsRequest$Outbound,
50
+ z.ZodTypeDef,
51
+ ListMarketplaceProductVariantsRequest
52
+ > = z.object({
53
+ xCustomerGroupId: z.string().optional(),
54
+ inventory: z.boolean().optional(),
55
+ productId: z.string(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ xCustomerGroupId: "x-customer-group-id",
59
+ productId: "product_id",
60
+ });
61
+ });
62
+
63
+ export function listMarketplaceProductVariantsRequestToJSON(
64
+ listMarketplaceProductVariantsRequest: ListMarketplaceProductVariantsRequest,
65
+ ): string {
66
+ return JSON.stringify(
67
+ ListMarketplaceProductVariantsRequest$outboundSchema.parse(
68
+ listMarketplaceProductVariantsRequest,
69
+ ),
70
+ );
71
+ }
72
+
73
+ /** @internal */
74
+ export const ListMarketplaceProductVariantsContent$inboundSchema: z.ZodType<
75
+ ListMarketplaceProductVariantsContent,
76
+ z.ZodTypeDef,
77
+ unknown
78
+ > = z.object({
79
+ variants: z.array(components.Variant$inboundSchema),
80
+ });
81
+
82
+ export function listMarketplaceProductVariantsContentFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<ListMarketplaceProductVariantsContent, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) =>
88
+ ListMarketplaceProductVariantsContent$inboundSchema.parse(JSON.parse(x)),
89
+ `Failed to parse 'ListMarketplaceProductVariantsContent' from JSON`,
90
+ );
91
+ }
92
+
93
+ /** @internal */
94
+ export const ListMarketplaceProductVariantsResponseBody$inboundSchema:
95
+ z.ZodType<ListMarketplaceProductVariantsResponseBody, z.ZodTypeDef, unknown> =
96
+ z.object({
97
+ message: z.string(),
98
+ success: z.boolean(),
99
+ content: z.lazy(() =>
100
+ ListMarketplaceProductVariantsContent$inboundSchema
101
+ ),
102
+ });
103
+
104
+ export function listMarketplaceProductVariantsResponseBodyFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<
107
+ ListMarketplaceProductVariantsResponseBody,
108
+ SDKValidationError
109
+ > {
110
+ return safeParse(
111
+ jsonString,
112
+ (x) =>
113
+ ListMarketplaceProductVariantsResponseBody$inboundSchema.parse(
114
+ JSON.parse(x),
115
+ ),
116
+ `Failed to parse 'ListMarketplaceProductVariantsResponseBody' from JSON`,
117
+ );
118
+ }
@@ -0,0 +1,136 @@
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 ListMarketplaceSimilarProductsRequest = {
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
+ * to retrieve similar products of specified products
27
+ */
28
+ productId?: Array<string> | undefined;
29
+ /**
30
+ * json to sort records
31
+ */
32
+ sortBy?: string | undefined;
33
+ };
34
+
35
+ export type ListMarketplaceSimilarProductsContent = {
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 ListMarketplaceSimilarProductsResponseBody = {
47
+ message: string;
48
+ success: boolean;
49
+ content: ListMarketplaceSimilarProductsContent;
50
+ };
51
+
52
+ /** @internal */
53
+ export type ListMarketplaceSimilarProductsRequest$Outbound = {
54
+ "x-customer-group-id"?: string | undefined;
55
+ limit?: number | undefined;
56
+ page?: number | undefined;
57
+ product_id?: Array<string> | undefined;
58
+ sort_by?: string | undefined;
59
+ };
60
+
61
+ /** @internal */
62
+ export const ListMarketplaceSimilarProductsRequest$outboundSchema: z.ZodType<
63
+ ListMarketplaceSimilarProductsRequest$Outbound,
64
+ z.ZodTypeDef,
65
+ ListMarketplaceSimilarProductsRequest
66
+ > = z.object({
67
+ xCustomerGroupId: z.string().optional(),
68
+ limit: z.number().int().optional(),
69
+ page: z.number().int().optional(),
70
+ productId: z.array(z.string()).optional(),
71
+ sortBy: z.string().optional(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ xCustomerGroupId: "x-customer-group-id",
75
+ productId: "product_id",
76
+ sortBy: "sort_by",
77
+ });
78
+ });
79
+
80
+ export function listMarketplaceSimilarProductsRequestToJSON(
81
+ listMarketplaceSimilarProductsRequest: ListMarketplaceSimilarProductsRequest,
82
+ ): string {
83
+ return JSON.stringify(
84
+ ListMarketplaceSimilarProductsRequest$outboundSchema.parse(
85
+ listMarketplaceSimilarProductsRequest,
86
+ ),
87
+ );
88
+ }
89
+
90
+ /** @internal */
91
+ export const ListMarketplaceSimilarProductsContent$inboundSchema: z.ZodType<
92
+ ListMarketplaceSimilarProductsContent,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.object({
96
+ products: z.array(components.Item$inboundSchema),
97
+ pagination: components.Pagination$inboundSchema,
98
+ });
99
+
100
+ export function listMarketplaceSimilarProductsContentFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<ListMarketplaceSimilarProductsContent, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) =>
106
+ ListMarketplaceSimilarProductsContent$inboundSchema.parse(JSON.parse(x)),
107
+ `Failed to parse 'ListMarketplaceSimilarProductsContent' from JSON`,
108
+ );
109
+ }
110
+
111
+ /** @internal */
112
+ export const ListMarketplaceSimilarProductsResponseBody$inboundSchema:
113
+ z.ZodType<ListMarketplaceSimilarProductsResponseBody, z.ZodTypeDef, unknown> =
114
+ z.object({
115
+ message: z.string(),
116
+ success: z.boolean(),
117
+ content: z.lazy(() =>
118
+ ListMarketplaceSimilarProductsContent$inboundSchema
119
+ ),
120
+ });
121
+
122
+ export function listMarketplaceSimilarProductsResponseBodyFromJSON(
123
+ jsonString: string,
124
+ ): SafeParseResult<
125
+ ListMarketplaceSimilarProductsResponseBody,
126
+ SDKValidationError
127
+ > {
128
+ return safeParse(
129
+ jsonString,
130
+ (x) =>
131
+ ListMarketplaceSimilarProductsResponseBody$inboundSchema.parse(
132
+ JSON.parse(x),
133
+ ),
134
+ `Failed to parse 'ListMarketplaceSimilarProductsResponseBody' from JSON`,
135
+ );
136
+ }