ce-storefront 0.3.4 → 0.3.6

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 (338) hide show
  1. package/README.md +26 -37
  2. package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
  3. package/docs/sdks/customers/README.md +236 -0
  4. package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
  5. package/docs/sdks/orders/README.md +80 -1
  6. package/docs/sdks/payments/README.md +242 -2
  7. package/docs/sdks/products/README.md +1 -1
  8. package/esm/funcs/catalogProductsGet.d.ts +1 -1
  9. package/esm/funcs/catalogProductsGet.js +1 -1
  10. package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
  11. package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
  12. package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
  13. package/esm/funcs/customersGetCustomersId.js.map +1 -0
  14. package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
  15. package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
  16. package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
  17. package/esm/funcs/customersPostCustomers.js.map +1 -0
  18. package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
  19. package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
  20. package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
  21. package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
  22. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
  23. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
  24. package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
  25. package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
  26. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
  27. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
  28. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
  29. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
  30. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
  31. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
  32. package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
  33. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
  34. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
  35. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
  36. package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
  37. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
  38. package/esm/funcs/paymentsGetMethods.d.ts +1 -1
  39. package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
  40. package/esm/funcs/paymentsGetMethods.js +3 -3
  41. package/esm/funcs/paymentsGetMethods.js.map +1 -1
  42. package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
  43. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
  44. package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
  45. package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
  46. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
  47. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
  48. package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
  49. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
  50. package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
  51. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
  52. package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
  53. package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
  54. package/esm/lib/config.d.ts +3 -3
  55. package/esm/lib/config.js +3 -3
  56. package/esm/models/components/analyticsevent.d.ts +8 -8
  57. package/esm/models/components/analyticsevent.d.ts.map +1 -1
  58. package/esm/models/components/analyticsevent.js +12 -12
  59. package/esm/models/components/analyticsevent.js.map +1 -1
  60. package/esm/models/components/associatedoption.d.ts +125 -0
  61. package/esm/models/components/associatedoption.d.ts.map +1 -0
  62. package/esm/models/components/associatedoption.js +107 -0
  63. package/esm/models/components/associatedoption.js.map +1 -0
  64. package/esm/models/components/cart.d.ts +16 -16
  65. package/esm/models/components/cart.d.ts.map +1 -1
  66. package/esm/models/components/cart.js +16 -16
  67. package/esm/models/components/cart.js.map +1 -1
  68. package/esm/models/components/createcustomer.d.ts +1 -1
  69. package/esm/models/components/createcustomer.d.ts.map +1 -1
  70. package/esm/models/components/createcustomer.js +1 -1
  71. package/esm/models/components/createcustomer.js.map +1 -1
  72. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  73. package/esm/models/components/customeraddress.d.ts.map +1 -0
  74. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  75. package/esm/models/components/customeraddress.js.map +1 -0
  76. package/esm/models/components/discountbasedpromotion.d.ts +0 -2
  77. package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
  78. package/esm/models/components/discountbasedpromotion.js +0 -4
  79. package/esm/models/components/discountbasedpromotion.js.map +1 -1
  80. package/esm/models/components/fixedpricepromotion.d.ts +0 -2
  81. package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
  82. package/esm/models/components/fixedpricepromotion.js +0 -4
  83. package/esm/models/components/fixedpricepromotion.js.map +1 -1
  84. package/esm/models/components/freegoodspromotion.d.ts +2 -7
  85. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  86. package/esm/models/components/freegoodspromotion.js +2 -6
  87. package/esm/models/components/freegoodspromotion.js.map +1 -1
  88. package/esm/models/components/index.d.ts +6 -8
  89. package/esm/models/components/index.d.ts.map +1 -1
  90. package/esm/models/components/index.js +6 -8
  91. package/esm/models/components/index.js.map +1 -1
  92. package/esm/models/components/orderdetail.d.ts +1 -1
  93. package/esm/models/components/orderdetail.d.ts.map +1 -1
  94. package/esm/models/components/orderdetail.js +1 -1
  95. package/esm/models/components/orderdetail.js.map +1 -1
  96. package/esm/models/components/{productlist.d.ts → product.d.ts} +38 -78
  97. package/esm/models/components/product.d.ts.map +1 -0
  98. package/esm/models/components/{productlist.js → product.js} +37 -98
  99. package/esm/models/components/product.js.map +1 -0
  100. package/esm/models/components/productattribute.d.ts +97 -64
  101. package/esm/models/components/productattribute.d.ts.map +1 -1
  102. package/esm/models/components/productattribute.js +67 -128
  103. package/esm/models/components/productattribute.js.map +1 -1
  104. package/esm/models/components/productcategory.d.ts +2 -2
  105. package/esm/models/components/productcategory.d.ts.map +1 -1
  106. package/esm/models/components/productcategory.js +2 -2
  107. package/esm/models/components/productcategory.js.map +1 -1
  108. package/esm/models/components/productdetail.d.ts +63 -165
  109. package/esm/models/components/productdetail.d.ts.map +1 -1
  110. package/esm/models/components/productdetail.js +70 -204
  111. package/esm/models/components/productdetail.js.map +1 -1
  112. package/esm/models/components/productlistresponse.d.ts +24 -3
  113. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  114. package/esm/models/components/productlistresponse.js +24 -3
  115. package/esm/models/components/productlistresponse.js.map +1 -1
  116. package/esm/models/components/productpromotion.d.ts +11 -5
  117. package/esm/models/components/productpromotion.d.ts.map +1 -1
  118. package/esm/models/components/productshipping.d.ts +0 -2
  119. package/esm/models/components/productshipping.d.ts.map +1 -1
  120. package/esm/models/components/productshipping.js +0 -4
  121. package/esm/models/components/productshipping.js.map +1 -1
  122. package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
  123. package/esm/models/components/promotiondetail.d.ts.map +1 -0
  124. package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
  125. package/esm/models/components/promotiondetail.js.map +1 -0
  126. package/esm/models/components/seo.d.ts +6 -6
  127. package/esm/models/components/seo.d.ts.map +1 -1
  128. package/esm/models/components/seo.js +6 -19
  129. package/esm/models/components/seo.js.map +1 -1
  130. package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +56 -48
  131. package/esm/models/components/sku.d.ts.map +1 -0
  132. package/esm/models/components/{skuinfo.js → sku.js} +65 -57
  133. package/esm/models/components/sku.js.map +1 -0
  134. package/esm/models/components/variant.d.ts +13 -52
  135. package/esm/models/components/variant.d.ts.map +1 -1
  136. package/esm/models/components/variant.js +5 -55
  137. package/esm/models/components/variant.js.map +1 -1
  138. package/esm/models/components/variantdetail.d.ts +31 -60
  139. package/esm/models/components/variantdetail.d.ts.map +1 -1
  140. package/esm/models/components/variantdetail.js +20 -57
  141. package/esm/models/components/variantdetail.js.map +1 -1
  142. package/esm/models/components/variantoption.d.ts +118 -0
  143. package/esm/models/components/variantoption.d.ts.map +1 -0
  144. package/esm/models/components/variantoption.js +114 -0
  145. package/esm/models/components/variantoption.js.map +1 -0
  146. package/esm/models/components/volumebasedpromotion.d.ts +0 -5
  147. package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
  148. package/esm/models/components/volumebasedpromotion.js +0 -4
  149. package/esm/models/components/volumebasedpromotion.js.map +1 -1
  150. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  151. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  152. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  153. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  154. package/esm/models/operations/getpromotions.d.ts +2 -2
  155. package/esm/models/operations/getpromotions.d.ts.map +1 -1
  156. package/esm/models/operations/getpromotions.js +2 -2
  157. package/esm/models/operations/getpromotions.js.map +1 -1
  158. package/esm/models/operations/getsimilar.d.ts +2 -27
  159. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  160. package/esm/models/operations/getsimilar.js +2 -27
  161. package/esm/models/operations/getsimilar.js.map +1 -1
  162. package/esm/models/operations/getskus.d.ts +2 -2
  163. package/esm/models/operations/getskus.d.ts.map +1 -1
  164. package/esm/models/operations/getskus.js +2 -2
  165. package/esm/models/operations/getskus.js.map +1 -1
  166. package/esm/models/operations/getwishtlist.d.ts +2 -2
  167. package/esm/models/operations/getwishtlist.d.ts.map +1 -1
  168. package/esm/models/operations/getwishtlist.js +2 -2
  169. package/esm/models/operations/getwishtlist.js.map +1 -1
  170. package/esm/models/operations/index.d.ts +1 -2
  171. package/esm/models/operations/index.d.ts.map +1 -1
  172. package/esm/models/operations/index.js +1 -2
  173. package/esm/models/operations/index.js.map +1 -1
  174. package/esm/models/operations/postcartitemid.d.ts +15 -15
  175. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  176. package/esm/models/operations/postcartitemid.js +15 -15
  177. package/esm/models/operations/postcartitemid.js.map +1 -1
  178. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  179. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  180. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  181. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  182. package/esm/sdk/customers.d.ts +24 -1
  183. package/esm/sdk/customers.d.ts.map +1 -1
  184. package/esm/sdk/customers.js +31 -0
  185. package/esm/sdk/customers.js.map +1 -1
  186. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  187. package/esm/sdk/juspay.d.ts.map +1 -0
  188. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  189. package/esm/sdk/juspay.js.map +1 -0
  190. package/esm/sdk/orders.d.ts +9 -2
  191. package/esm/sdk/orders.d.ts.map +1 -1
  192. package/esm/sdk/orders.js +12 -2
  193. package/esm/sdk/orders.js.map +1 -1
  194. package/esm/sdk/payments.d.ts +23 -1
  195. package/esm/sdk/payments.d.ts.map +1 -1
  196. package/esm/sdk/payments.js +31 -0
  197. package/esm/sdk/payments.js.map +1 -1
  198. package/esm/sdk/products.d.ts +1 -1
  199. package/esm/sdk/products.js +1 -1
  200. package/esm/sdk/sdk.d.ts +3 -12
  201. package/esm/sdk/sdk.d.ts.map +1 -1
  202. package/esm/sdk/sdk.js +3 -15
  203. package/esm/sdk/sdk.js.map +1 -1
  204. package/jsr.json +1 -1
  205. package/package.json +1 -1
  206. package/src/funcs/catalogProductsGet.ts +1 -1
  207. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  208. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  209. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  210. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  211. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  212. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  213. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  214. package/src/funcs/paymentsGetMethods.ts +6 -7
  215. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  216. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  217. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  218. package/src/lib/config.ts +3 -3
  219. package/src/models/components/analyticsevent.ts +16 -15
  220. package/src/models/components/associatedoption.ts +217 -0
  221. package/src/models/components/cart.ts +25 -25
  222. package/src/models/components/createcustomer.ts +1 -1
  223. package/src/models/components/discountbasedpromotion.ts +0 -6
  224. package/src/models/components/fixedpricepromotion.ts +0 -6
  225. package/src/models/components/freegoodspromotion.ts +4 -13
  226. package/src/models/components/index.ts +6 -8
  227. package/src/models/components/orderdetail.ts +1 -1
  228. package/src/models/components/{skuinfo.ts → product.ts} +111 -96
  229. package/src/models/components/productattribute.ts +162 -188
  230. package/src/models/components/productcategory.ts +4 -4
  231. package/src/models/components/productdetail.ts +143 -418
  232. package/src/models/components/productlistresponse.ts +55 -9
  233. package/src/models/components/productshipping.ts +0 -6
  234. package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
  235. package/src/models/components/seo.ts +12 -25
  236. package/src/models/components/sku.ts +244 -0
  237. package/src/models/components/variant.ts +14 -119
  238. package/src/models/components/variantdetail.ts +51 -143
  239. package/src/models/components/variantoption.ts +214 -0
  240. package/src/models/components/volumebasedpromotion.ts +0 -9
  241. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  242. package/src/models/operations/getpromotions.ts +4 -4
  243. package/src/models/operations/getsimilar.ts +4 -62
  244. package/src/models/operations/getskus.ts +4 -4
  245. package/src/models/operations/getwishtlist.ts +4 -4
  246. package/src/models/operations/index.ts +1 -2
  247. package/src/models/operations/postcartitemid.ts +27 -25
  248. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  249. package/src/sdk/customers.ts +58 -1
  250. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  251. package/src/sdk/orders.ts +22 -4
  252. package/src/sdk/payments.ts +57 -2
  253. package/src/sdk/products.ts +1 -1
  254. package/src/sdk/sdk.ts +4 -22
  255. package/docs/sdks/customersapi/README.md +0 -321
  256. package/docs/sdks/ordersapi/README.md +0 -86
  257. package/docs/sdks/paymentsapi/README.md +0 -247
  258. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  259. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  260. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  261. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  262. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  263. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  264. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  265. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  266. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  267. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  268. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  269. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  270. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  271. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  272. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  273. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  274. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  275. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  276. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  277. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  278. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  279. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  280. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  281. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  282. package/esm/models/components/customeraddressinput.js.map +0 -1
  283. package/esm/models/components/productbundleitem.d.ts +0 -47
  284. package/esm/models/components/productbundleitem.d.ts.map +0 -1
  285. package/esm/models/components/productbundleitem.js +0 -66
  286. package/esm/models/components/productbundleitem.js.map +0 -1
  287. package/esm/models/components/productlist.d.ts.map +0 -1
  288. package/esm/models/components/productlist.js.map +0 -1
  289. package/esm/models/components/productpackaging.d.ts +0 -68
  290. package/esm/models/components/productpackaging.d.ts.map +0 -1
  291. package/esm/models/components/productpackaging.js +0 -88
  292. package/esm/models/components/productpackaging.js.map +0 -1
  293. package/esm/models/components/promotion.d.ts.map +0 -1
  294. package/esm/models/components/promotion.js.map +0 -1
  295. package/esm/models/components/recommendedproduct.d.ts +0 -155
  296. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  297. package/esm/models/components/recommendedproduct.js +0 -193
  298. package/esm/models/components/recommendedproduct.js.map +0 -1
  299. package/esm/models/components/saleschannel.d.ts +0 -39
  300. package/esm/models/components/saleschannel.d.ts.map +0 -1
  301. package/esm/models/components/saleschannel.js +0 -53
  302. package/esm/models/components/saleschannel.js.map +0 -1
  303. package/esm/models/components/skuinfo.d.ts.map +0 -1
  304. package/esm/models/components/skuinfo.js.map +0 -1
  305. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  306. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  307. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  308. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  309. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  310. package/esm/models/operations/getrecommendedproducts.js +0 -87
  311. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  312. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  313. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  314. package/esm/sdk/customersapi.d.ts +0 -34
  315. package/esm/sdk/customersapi.d.ts.map +0 -1
  316. package/esm/sdk/customersapi.js +0 -48
  317. package/esm/sdk/customersapi.js.map +0 -1
  318. package/esm/sdk/ordersapi.d.ts +0 -12
  319. package/esm/sdk/ordersapi.d.ts.map +0 -1
  320. package/esm/sdk/ordersapi.js +0 -18
  321. package/esm/sdk/ordersapi.js.map +0 -1
  322. package/esm/sdk/paymentsapi.d.ts +0 -27
  323. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  324. package/esm/sdk/paymentsapi.js +0 -39
  325. package/esm/sdk/paymentsapi.js.map +0 -1
  326. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  327. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  328. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  329. package/src/models/components/productbundleitem.ts +0 -127
  330. package/src/models/components/productlist.ts +0 -368
  331. package/src/models/components/productpackaging.ts +0 -162
  332. package/src/models/components/recommendedproduct.ts +0 -385
  333. package/src/models/components/saleschannel.ts +0 -96
  334. package/src/models/operations/getrecommendedproducts.ts +0 -206
  335. package/src/sdk/customersapi.ts +0 -82
  336. package/src/sdk/ordersapi.ts +0 -27
  337. package/src/sdk/paymentsapi.ts +0 -64
  338. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -1,385 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
- import {
12
- ProductAttribute,
13
- ProductAttribute$inboundSchema,
14
- ProductAttribute$Outbound,
15
- ProductAttribute$outboundSchema,
16
- } from "./productattribute.js";
17
- import {
18
- ProductBundleItem,
19
- ProductBundleItem$inboundSchema,
20
- ProductBundleItem$Outbound,
21
- ProductBundleItem$outboundSchema,
22
- } from "./productbundleitem.js";
23
- import {
24
- ProductImage,
25
- ProductImage$inboundSchema,
26
- ProductImage$Outbound,
27
- ProductImage$outboundSchema,
28
- } from "./productimage.js";
29
- import {
30
- ProductPricing,
31
- ProductPricing$inboundSchema,
32
- ProductPricing$Outbound,
33
- ProductPricing$outboundSchema,
34
- } from "./productpricing.js";
35
- import {
36
- ProductPromotion,
37
- ProductPromotion$inboundSchema,
38
- ProductPromotion$Outbound,
39
- ProductPromotion$outboundSchema,
40
- } from "./productpromotion.js";
41
- import {
42
- ProductShipping,
43
- ProductShipping$inboundSchema,
44
- ProductShipping$Outbound,
45
- ProductShipping$outboundSchema,
46
- } from "./productshipping.js";
47
- import {
48
- ProductSubscription,
49
- ProductSubscription$inboundSchema,
50
- ProductSubscription$Outbound,
51
- ProductSubscription$outboundSchema,
52
- } from "./productsubscription.js";
53
- import {
54
- Variant,
55
- Variant$inboundSchema,
56
- Variant$Outbound,
57
- Variant$outboundSchema,
58
- } from "./variant.js";
59
-
60
- export const RecommendedProductProductType = {
61
- Physical: "physical",
62
- Digital: "digital",
63
- Bundle: "bundle",
64
- } as const;
65
- export type RecommendedProductProductType = ClosedEnum<
66
- typeof RecommendedProductProductType
67
- >;
68
-
69
- export type RecommendedProductVariantOptions = {
70
- optionName?: string | undefined;
71
- optionValue?: Array<string> | undefined;
72
- };
73
-
74
- export type RecommendedProduct = {
75
- /**
76
- * The ULID of the product
77
- */
78
- id?: string | undefined;
79
- name?: string | undefined;
80
- description?: string | undefined;
81
- shortDescription?: string | undefined;
82
- productType?: RecommendedProductProductType | undefined;
83
- active?: boolean | undefined;
84
- sku?: string | undefined;
85
- stockAvailable?: boolean | undefined;
86
- isFeatured?: boolean | undefined;
87
- onOffer?: boolean | undefined;
88
- onSubscription?: boolean | undefined;
89
- onPromotion?: boolean | undefined;
90
- hasVariant?: boolean | undefined;
91
- /**
92
- * this will be used if has_variant is true, to auto set default values.
93
- */
94
- variantOptions?: Array<RecommendedProductVariantOptions> | null | undefined;
95
- attributes?: Array<ProductAttribute> | undefined;
96
- images?: Array<ProductImage> | undefined;
97
- pricing?: ProductPricing | undefined;
98
- shipping?: ProductShipping | undefined;
99
- tags?: Array<string> | null | undefined;
100
- categoryIds?: Array<string> | undefined;
101
- reviewsRatingSum?: number | undefined;
102
- reviewsCount?: number | undefined;
103
- hsnCode?: string | undefined;
104
- createdAt?: Date | undefined;
105
- modifiedAt?: Date | undefined;
106
- promotion?: Array<ProductPromotion> | undefined;
107
- subscription?: Array<ProductSubscription> | undefined;
108
- bundleItems?: Array<ProductBundleItem> | undefined;
109
- variants?: Array<Variant> | undefined;
110
- };
111
-
112
- /** @internal */
113
- export const RecommendedProductProductType$inboundSchema: z.ZodNativeEnum<
114
- typeof RecommendedProductProductType
115
- > = z.nativeEnum(RecommendedProductProductType);
116
-
117
- /** @internal */
118
- export const RecommendedProductProductType$outboundSchema: z.ZodNativeEnum<
119
- typeof RecommendedProductProductType
120
- > = RecommendedProductProductType$inboundSchema;
121
-
122
- /**
123
- * @internal
124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
- */
126
- export namespace RecommendedProductProductType$ {
127
- /** @deprecated use `RecommendedProductProductType$inboundSchema` instead. */
128
- export const inboundSchema = RecommendedProductProductType$inboundSchema;
129
- /** @deprecated use `RecommendedProductProductType$outboundSchema` instead. */
130
- export const outboundSchema = RecommendedProductProductType$outboundSchema;
131
- }
132
-
133
- /** @internal */
134
- export const RecommendedProductVariantOptions$inboundSchema: z.ZodType<
135
- RecommendedProductVariantOptions,
136
- z.ZodTypeDef,
137
- unknown
138
- > = z.object({
139
- option_name: z.string().optional(),
140
- option_value: z.array(z.string()).optional(),
141
- }).transform((v) => {
142
- return remap$(v, {
143
- "option_name": "optionName",
144
- "option_value": "optionValue",
145
- });
146
- });
147
-
148
- /** @internal */
149
- export type RecommendedProductVariantOptions$Outbound = {
150
- option_name?: string | undefined;
151
- option_value?: Array<string> | undefined;
152
- };
153
-
154
- /** @internal */
155
- export const RecommendedProductVariantOptions$outboundSchema: z.ZodType<
156
- RecommendedProductVariantOptions$Outbound,
157
- z.ZodTypeDef,
158
- RecommendedProductVariantOptions
159
- > = z.object({
160
- optionName: z.string().optional(),
161
- optionValue: z.array(z.string()).optional(),
162
- }).transform((v) => {
163
- return remap$(v, {
164
- optionName: "option_name",
165
- optionValue: "option_value",
166
- });
167
- });
168
-
169
- /**
170
- * @internal
171
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
172
- */
173
- export namespace RecommendedProductVariantOptions$ {
174
- /** @deprecated use `RecommendedProductVariantOptions$inboundSchema` instead. */
175
- export const inboundSchema = RecommendedProductVariantOptions$inboundSchema;
176
- /** @deprecated use `RecommendedProductVariantOptions$outboundSchema` instead. */
177
- export const outboundSchema = RecommendedProductVariantOptions$outboundSchema;
178
- /** @deprecated use `RecommendedProductVariantOptions$Outbound` instead. */
179
- export type Outbound = RecommendedProductVariantOptions$Outbound;
180
- }
181
-
182
- export function recommendedProductVariantOptionsToJSON(
183
- recommendedProductVariantOptions: RecommendedProductVariantOptions,
184
- ): string {
185
- return JSON.stringify(
186
- RecommendedProductVariantOptions$outboundSchema.parse(
187
- recommendedProductVariantOptions,
188
- ),
189
- );
190
- }
191
-
192
- export function recommendedProductVariantOptionsFromJSON(
193
- jsonString: string,
194
- ): SafeParseResult<RecommendedProductVariantOptions, SDKValidationError> {
195
- return safeParse(
196
- jsonString,
197
- (x) => RecommendedProductVariantOptions$inboundSchema.parse(JSON.parse(x)),
198
- `Failed to parse 'RecommendedProductVariantOptions' from JSON`,
199
- );
200
- }
201
-
202
- /** @internal */
203
- export const RecommendedProduct$inboundSchema: z.ZodType<
204
- RecommendedProduct,
205
- z.ZodTypeDef,
206
- unknown
207
- > = z.object({
208
- id: z.string().optional(),
209
- name: z.string().optional(),
210
- description: z.string().optional(),
211
- short_description: z.string().optional(),
212
- product_type: RecommendedProductProductType$inboundSchema.optional(),
213
- active: z.boolean().default(true),
214
- sku: z.string().optional(),
215
- stock_available: z.boolean().default(true),
216
- is_featured: z.boolean().default(false),
217
- on_offer: z.boolean().default(false),
218
- on_subscription: z.boolean().default(false),
219
- on_promotion: z.boolean().default(false),
220
- has_variant: z.boolean().default(false),
221
- variant_options: z.nullable(
222
- z.array(z.lazy(() => RecommendedProductVariantOptions$inboundSchema)),
223
- ).optional(),
224
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
225
- images: z.array(ProductImage$inboundSchema).optional(),
226
- pricing: ProductPricing$inboundSchema.optional(),
227
- shipping: ProductShipping$inboundSchema.optional(),
228
- tags: z.nullable(z.array(z.string())).optional(),
229
- category_ids: z.array(z.string()).optional(),
230
- reviews_rating_sum: z.number().optional(),
231
- reviews_count: z.number().int().optional(),
232
- hsn_code: z.string().optional(),
233
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
234
- .optional(),
235
- modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
236
- .optional(),
237
- promotion: z.array(ProductPromotion$inboundSchema).optional(),
238
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
239
- bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
240
- variants: z.array(Variant$inboundSchema).optional(),
241
- }).transform((v) => {
242
- return remap$(v, {
243
- "short_description": "shortDescription",
244
- "product_type": "productType",
245
- "stock_available": "stockAvailable",
246
- "is_featured": "isFeatured",
247
- "on_offer": "onOffer",
248
- "on_subscription": "onSubscription",
249
- "on_promotion": "onPromotion",
250
- "has_variant": "hasVariant",
251
- "variant_options": "variantOptions",
252
- "category_ids": "categoryIds",
253
- "reviews_rating_sum": "reviewsRatingSum",
254
- "reviews_count": "reviewsCount",
255
- "hsn_code": "hsnCode",
256
- "created_at": "createdAt",
257
- "modified_at": "modifiedAt",
258
- "bundle_items": "bundleItems",
259
- });
260
- });
261
-
262
- /** @internal */
263
- export type RecommendedProduct$Outbound = {
264
- id?: string | undefined;
265
- name?: string | undefined;
266
- description?: string | undefined;
267
- short_description?: string | undefined;
268
- product_type?: string | undefined;
269
- active: boolean;
270
- sku?: string | undefined;
271
- stock_available: boolean;
272
- is_featured: boolean;
273
- on_offer: boolean;
274
- on_subscription: boolean;
275
- on_promotion: boolean;
276
- has_variant: boolean;
277
- variant_options?:
278
- | Array<RecommendedProductVariantOptions$Outbound>
279
- | null
280
- | undefined;
281
- attributes?: Array<ProductAttribute$Outbound> | undefined;
282
- images?: Array<ProductImage$Outbound> | undefined;
283
- pricing?: ProductPricing$Outbound | undefined;
284
- shipping?: ProductShipping$Outbound | undefined;
285
- tags?: Array<string> | null | undefined;
286
- category_ids?: Array<string> | undefined;
287
- reviews_rating_sum?: number | undefined;
288
- reviews_count?: number | undefined;
289
- hsn_code?: string | undefined;
290
- created_at?: string | undefined;
291
- modified_at?: string | undefined;
292
- promotion?: Array<ProductPromotion$Outbound> | undefined;
293
- subscription?: Array<ProductSubscription$Outbound> | undefined;
294
- bundle_items?: Array<ProductBundleItem$Outbound> | undefined;
295
- variants?: Array<Variant$Outbound> | undefined;
296
- };
297
-
298
- /** @internal */
299
- export const RecommendedProduct$outboundSchema: z.ZodType<
300
- RecommendedProduct$Outbound,
301
- z.ZodTypeDef,
302
- RecommendedProduct
303
- > = z.object({
304
- id: z.string().optional(),
305
- name: z.string().optional(),
306
- description: z.string().optional(),
307
- shortDescription: z.string().optional(),
308
- productType: RecommendedProductProductType$outboundSchema.optional(),
309
- active: z.boolean().default(true),
310
- sku: z.string().optional(),
311
- stockAvailable: z.boolean().default(true),
312
- isFeatured: z.boolean().default(false),
313
- onOffer: z.boolean().default(false),
314
- onSubscription: z.boolean().default(false),
315
- onPromotion: z.boolean().default(false),
316
- hasVariant: z.boolean().default(false),
317
- variantOptions: z.nullable(
318
- z.array(z.lazy(() => RecommendedProductVariantOptions$outboundSchema)),
319
- ).optional(),
320
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
321
- images: z.array(ProductImage$outboundSchema).optional(),
322
- pricing: ProductPricing$outboundSchema.optional(),
323
- shipping: ProductShipping$outboundSchema.optional(),
324
- tags: z.nullable(z.array(z.string())).optional(),
325
- categoryIds: z.array(z.string()).optional(),
326
- reviewsRatingSum: z.number().optional(),
327
- reviewsCount: z.number().int().optional(),
328
- hsnCode: z.string().optional(),
329
- createdAt: z.date().transform(v => v.toISOString()).optional(),
330
- modifiedAt: z.date().transform(v => v.toISOString()).optional(),
331
- promotion: z.array(ProductPromotion$outboundSchema).optional(),
332
- subscription: z.array(ProductSubscription$outboundSchema).optional(),
333
- bundleItems: z.array(ProductBundleItem$outboundSchema).optional(),
334
- variants: z.array(Variant$outboundSchema).optional(),
335
- }).transform((v) => {
336
- return remap$(v, {
337
- shortDescription: "short_description",
338
- productType: "product_type",
339
- stockAvailable: "stock_available",
340
- isFeatured: "is_featured",
341
- onOffer: "on_offer",
342
- onSubscription: "on_subscription",
343
- onPromotion: "on_promotion",
344
- hasVariant: "has_variant",
345
- variantOptions: "variant_options",
346
- categoryIds: "category_ids",
347
- reviewsRatingSum: "reviews_rating_sum",
348
- reviewsCount: "reviews_count",
349
- hsnCode: "hsn_code",
350
- createdAt: "created_at",
351
- modifiedAt: "modified_at",
352
- bundleItems: "bundle_items",
353
- });
354
- });
355
-
356
- /**
357
- * @internal
358
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
359
- */
360
- export namespace RecommendedProduct$ {
361
- /** @deprecated use `RecommendedProduct$inboundSchema` instead. */
362
- export const inboundSchema = RecommendedProduct$inboundSchema;
363
- /** @deprecated use `RecommendedProduct$outboundSchema` instead. */
364
- export const outboundSchema = RecommendedProduct$outboundSchema;
365
- /** @deprecated use `RecommendedProduct$Outbound` instead. */
366
- export type Outbound = RecommendedProduct$Outbound;
367
- }
368
-
369
- export function recommendedProductToJSON(
370
- recommendedProduct: RecommendedProduct,
371
- ): string {
372
- return JSON.stringify(
373
- RecommendedProduct$outboundSchema.parse(recommendedProduct),
374
- );
375
- }
376
-
377
- export function recommendedProductFromJSON(
378
- jsonString: string,
379
- ): SafeParseResult<RecommendedProduct, SDKValidationError> {
380
- return safeParse(
381
- jsonString,
382
- (x) => RecommendedProduct$inboundSchema.parse(JSON.parse(x)),
383
- `Failed to parse 'RecommendedProduct' from JSON`,
384
- );
385
- }
@@ -1,96 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type SalesChannel = {
12
- id?: string | null | undefined;
13
- name?: string | undefined;
14
- description?: string | undefined;
15
- active?: boolean | undefined;
16
- createdAt?: Date | undefined;
17
- modifiedAt?: Date | null | undefined;
18
- };
19
-
20
- /** @internal */
21
- export const SalesChannel$inboundSchema: z.ZodType<
22
- SalesChannel,
23
- z.ZodTypeDef,
24
- unknown
25
- > = z.object({
26
- id: z.nullable(z.string()).optional(),
27
- name: z.string().optional(),
28
- description: z.string().optional(),
29
- active: z.boolean().optional(),
30
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
31
- .optional(),
32
- modified_at: z.nullable(
33
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
34
- ).optional(),
35
- }).transform((v) => {
36
- return remap$(v, {
37
- "created_at": "createdAt",
38
- "modified_at": "modifiedAt",
39
- });
40
- });
41
-
42
- /** @internal */
43
- export type SalesChannel$Outbound = {
44
- id?: string | null | undefined;
45
- name?: string | undefined;
46
- description?: string | undefined;
47
- active?: boolean | undefined;
48
- created_at?: string | undefined;
49
- modified_at?: string | null | undefined;
50
- };
51
-
52
- /** @internal */
53
- export const SalesChannel$outboundSchema: z.ZodType<
54
- SalesChannel$Outbound,
55
- z.ZodTypeDef,
56
- SalesChannel
57
- > = z.object({
58
- id: z.nullable(z.string()).optional(),
59
- name: z.string().optional(),
60
- description: z.string().optional(),
61
- active: z.boolean().optional(),
62
- createdAt: z.date().transform(v => v.toISOString()).optional(),
63
- modifiedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
64
- }).transform((v) => {
65
- return remap$(v, {
66
- createdAt: "created_at",
67
- modifiedAt: "modified_at",
68
- });
69
- });
70
-
71
- /**
72
- * @internal
73
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
- */
75
- export namespace SalesChannel$ {
76
- /** @deprecated use `SalesChannel$inboundSchema` instead. */
77
- export const inboundSchema = SalesChannel$inboundSchema;
78
- /** @deprecated use `SalesChannel$outboundSchema` instead. */
79
- export const outboundSchema = SalesChannel$outboundSchema;
80
- /** @deprecated use `SalesChannel$Outbound` instead. */
81
- export type Outbound = SalesChannel$Outbound;
82
- }
83
-
84
- export function salesChannelToJSON(salesChannel: SalesChannel): string {
85
- return JSON.stringify(SalesChannel$outboundSchema.parse(salesChannel));
86
- }
87
-
88
- export function salesChannelFromJSON(
89
- jsonString: string,
90
- ): SafeParseResult<SalesChannel, SDKValidationError> {
91
- return safeParse(
92
- jsonString,
93
- (x) => SalesChannel$inboundSchema.parse(JSON.parse(x)),
94
- `Failed to parse 'SalesChannel' from JSON`,
95
- );
96
- }
@@ -1,206 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as components from "../components/index.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type GetRecommendedProductsRequest = {
12
- /**
13
- * customer id
14
- */
15
- id: string;
16
- };
17
-
18
- export type GetRecommendedProductsContent = {
19
- products?: Array<components.RecommendedProduct> | undefined;
20
- };
21
-
22
- /**
23
- * Success response
24
- */
25
- export type GetRecommendedProductsResponseBody = {
26
- message?: string | undefined;
27
- success?: boolean | undefined;
28
- content?: GetRecommendedProductsContent | undefined;
29
- };
30
-
31
- /** @internal */
32
- export const GetRecommendedProductsRequest$inboundSchema: z.ZodType<
33
- GetRecommendedProductsRequest,
34
- z.ZodTypeDef,
35
- unknown
36
- > = z.object({
37
- id: z.string(),
38
- });
39
-
40
- /** @internal */
41
- export type GetRecommendedProductsRequest$Outbound = {
42
- id: string;
43
- };
44
-
45
- /** @internal */
46
- export const GetRecommendedProductsRequest$outboundSchema: z.ZodType<
47
- GetRecommendedProductsRequest$Outbound,
48
- z.ZodTypeDef,
49
- GetRecommendedProductsRequest
50
- > = z.object({
51
- id: z.string(),
52
- });
53
-
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace GetRecommendedProductsRequest$ {
59
- /** @deprecated use `GetRecommendedProductsRequest$inboundSchema` instead. */
60
- export const inboundSchema = GetRecommendedProductsRequest$inboundSchema;
61
- /** @deprecated use `GetRecommendedProductsRequest$outboundSchema` instead. */
62
- export const outboundSchema = GetRecommendedProductsRequest$outboundSchema;
63
- /** @deprecated use `GetRecommendedProductsRequest$Outbound` instead. */
64
- export type Outbound = GetRecommendedProductsRequest$Outbound;
65
- }
66
-
67
- export function getRecommendedProductsRequestToJSON(
68
- getRecommendedProductsRequest: GetRecommendedProductsRequest,
69
- ): string {
70
- return JSON.stringify(
71
- GetRecommendedProductsRequest$outboundSchema.parse(
72
- getRecommendedProductsRequest,
73
- ),
74
- );
75
- }
76
-
77
- export function getRecommendedProductsRequestFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<GetRecommendedProductsRequest, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => GetRecommendedProductsRequest$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'GetRecommendedProductsRequest' from JSON`,
84
- );
85
- }
86
-
87
- /** @internal */
88
- export const GetRecommendedProductsContent$inboundSchema: z.ZodType<
89
- GetRecommendedProductsContent,
90
- z.ZodTypeDef,
91
- unknown
92
- > = z.object({
93
- products: z.array(components.RecommendedProduct$inboundSchema).optional(),
94
- });
95
-
96
- /** @internal */
97
- export type GetRecommendedProductsContent$Outbound = {
98
- products?: Array<components.RecommendedProduct$Outbound> | undefined;
99
- };
100
-
101
- /** @internal */
102
- export const GetRecommendedProductsContent$outboundSchema: z.ZodType<
103
- GetRecommendedProductsContent$Outbound,
104
- z.ZodTypeDef,
105
- GetRecommendedProductsContent
106
- > = z.object({
107
- products: z.array(components.RecommendedProduct$outboundSchema).optional(),
108
- });
109
-
110
- /**
111
- * @internal
112
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
- */
114
- export namespace GetRecommendedProductsContent$ {
115
- /** @deprecated use `GetRecommendedProductsContent$inboundSchema` instead. */
116
- export const inboundSchema = GetRecommendedProductsContent$inboundSchema;
117
- /** @deprecated use `GetRecommendedProductsContent$outboundSchema` instead. */
118
- export const outboundSchema = GetRecommendedProductsContent$outboundSchema;
119
- /** @deprecated use `GetRecommendedProductsContent$Outbound` instead. */
120
- export type Outbound = GetRecommendedProductsContent$Outbound;
121
- }
122
-
123
- export function getRecommendedProductsContentToJSON(
124
- getRecommendedProductsContent: GetRecommendedProductsContent,
125
- ): string {
126
- return JSON.stringify(
127
- GetRecommendedProductsContent$outboundSchema.parse(
128
- getRecommendedProductsContent,
129
- ),
130
- );
131
- }
132
-
133
- export function getRecommendedProductsContentFromJSON(
134
- jsonString: string,
135
- ): SafeParseResult<GetRecommendedProductsContent, SDKValidationError> {
136
- return safeParse(
137
- jsonString,
138
- (x) => GetRecommendedProductsContent$inboundSchema.parse(JSON.parse(x)),
139
- `Failed to parse 'GetRecommendedProductsContent' from JSON`,
140
- );
141
- }
142
-
143
- /** @internal */
144
- export const GetRecommendedProductsResponseBody$inboundSchema: z.ZodType<
145
- GetRecommendedProductsResponseBody,
146
- z.ZodTypeDef,
147
- unknown
148
- > = z.object({
149
- message: z.string().optional(),
150
- success: z.boolean().optional(),
151
- content: z.lazy(() => GetRecommendedProductsContent$inboundSchema).optional(),
152
- });
153
-
154
- /** @internal */
155
- export type GetRecommendedProductsResponseBody$Outbound = {
156
- message?: string | undefined;
157
- success?: boolean | undefined;
158
- content?: GetRecommendedProductsContent$Outbound | undefined;
159
- };
160
-
161
- /** @internal */
162
- export const GetRecommendedProductsResponseBody$outboundSchema: z.ZodType<
163
- GetRecommendedProductsResponseBody$Outbound,
164
- z.ZodTypeDef,
165
- GetRecommendedProductsResponseBody
166
- > = z.object({
167
- message: z.string().optional(),
168
- success: z.boolean().optional(),
169
- content: z.lazy(() => GetRecommendedProductsContent$outboundSchema)
170
- .optional(),
171
- });
172
-
173
- /**
174
- * @internal
175
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
- */
177
- export namespace GetRecommendedProductsResponseBody$ {
178
- /** @deprecated use `GetRecommendedProductsResponseBody$inboundSchema` instead. */
179
- export const inboundSchema = GetRecommendedProductsResponseBody$inboundSchema;
180
- /** @deprecated use `GetRecommendedProductsResponseBody$outboundSchema` instead. */
181
- export const outboundSchema =
182
- GetRecommendedProductsResponseBody$outboundSchema;
183
- /** @deprecated use `GetRecommendedProductsResponseBody$Outbound` instead. */
184
- export type Outbound = GetRecommendedProductsResponseBody$Outbound;
185
- }
186
-
187
- export function getRecommendedProductsResponseBodyToJSON(
188
- getRecommendedProductsResponseBody: GetRecommendedProductsResponseBody,
189
- ): string {
190
- return JSON.stringify(
191
- GetRecommendedProductsResponseBody$outboundSchema.parse(
192
- getRecommendedProductsResponseBody,
193
- ),
194
- );
195
- }
196
-
197
- export function getRecommendedProductsResponseBodyFromJSON(
198
- jsonString: string,
199
- ): SafeParseResult<GetRecommendedProductsResponseBody, SDKValidationError> {
200
- return safeParse(
201
- jsonString,
202
- (x) =>
203
- GetRecommendedProductsResponseBody$inboundSchema.parse(JSON.parse(x)),
204
- `Failed to parse 'GetRecommendedProductsResponseBody' from JSON`,
205
- );
206
- }