ce-storefront 0.3.10 → 0.3.17

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 (553) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +129 -108
  3. package/docs/sdks/addresses/README.md +4 -363
  4. package/docs/sdks/auth/README.md +72 -0
  5. package/docs/sdks/authuser/README.md +80 -0
  6. package/docs/sdks/{refunds → cards}/README.md +12 -11
  7. package/docs/sdks/catalogproductreviews/README.md +97 -0
  8. package/docs/sdks/{shipments → catalogproducts}/README.md +12 -12
  9. package/docs/sdks/{skus → catalogskus}/README.md +3 -3
  10. package/docs/sdks/{cestorefrontreviews → cestorefrontaddresses}/README.md +123 -34
  11. package/docs/sdks/cestorefrontproducts/README.md +6 -0
  12. package/docs/sdks/cestorefrontuser/README.md +6 -727
  13. package/docs/sdks/cestorefrontusers/README.md +92 -0
  14. package/docs/sdks/countries/README.md +79 -0
  15. package/docs/sdks/customers/README.md +192 -18
  16. package/docs/sdks/juspay/README.md +15 -15
  17. package/docs/sdks/loyalty/README.md +0 -81
  18. package/docs/sdks/loyaltypoints/README.md +88 -0
  19. package/docs/sdks/notificationpreferences/README.md +4 -162
  20. package/docs/sdks/orders/README.md +163 -5
  21. package/docs/sdks/payments/README.md +15 -95
  22. package/docs/sdks/products/README.md +15 -94
  23. package/docs/sdks/reviews/README.md +17 -13
  24. package/docs/sdks/{shipping → shipment}/README.md +5 -5
  25. package/docs/sdks/user/README.md +425 -0
  26. package/docs/sdks/users/README.md +240 -0
  27. package/docs/sdks/utils/README.md +0 -72
  28. package/docs/sdks/wishlist/README.md +5 -5
  29. package/esm/funcs/{catalogProductsGetCrossSells.d.ts → addressesGet.d.ts} +4 -4
  30. package/esm/funcs/addressesGet.d.ts.map +1 -0
  31. package/esm/funcs/{customersAddressesGet.js → addressesGet.js} +2 -2
  32. package/esm/funcs/addressesGet.js.map +1 -0
  33. package/esm/funcs/{authUserLogout.d.ts → authLogout.d.ts} +2 -2
  34. package/esm/funcs/authLogout.d.ts.map +1 -0
  35. package/esm/funcs/{authUserLogout.js → authLogout.js} +2 -2
  36. package/esm/funcs/authLogout.js.map +1 -0
  37. package/esm/funcs/{authUserDeactivateAccount.d.ts → authUserDeactivate.d.ts} +2 -2
  38. package/esm/funcs/{paymentsGetMethods.d.ts.map → authUserDeactivate.d.ts.map} +1 -1
  39. package/esm/funcs/{authUserDeactivateAccount.js → authUserDeactivate.js} +2 -2
  40. package/esm/funcs/authUserDeactivate.js.map +1 -0
  41. package/esm/funcs/{userNotificationPreferencesGet.d.ts → authUserNotificationPreferencesGet.d.ts} +2 -2
  42. package/esm/funcs/authUserNotificationPreferencesGet.d.ts.map +1 -0
  43. package/esm/funcs/{userNotificationPreferencesGet.js → authUserNotificationPreferencesGet.js} +2 -2
  44. package/esm/funcs/authUserNotificationPreferencesGet.js.map +1 -0
  45. package/esm/funcs/{authUserAddProfileImage.d.ts → authUsersAddProfileImage.d.ts} +2 -2
  46. package/esm/funcs/authUsersAddProfileImage.d.ts.map +1 -0
  47. package/esm/funcs/{authUserAddProfileImage.js → authUsersAddProfileImage.js} +2 -2
  48. package/esm/funcs/authUsersAddProfileImage.js.map +1 -0
  49. package/esm/funcs/{catalogProductsReviewsCreate.d.ts → catalogProductReviewsCreate.d.ts} +2 -2
  50. package/esm/funcs/catalogProductReviewsCreate.d.ts.map +1 -0
  51. package/esm/funcs/{catalogProductsReviewsCreate.js → catalogProductReviewsCreate.js} +2 -2
  52. package/esm/funcs/catalogProductReviewsCreate.js.map +1 -0
  53. package/esm/funcs/customersAddAddress.d.ts +16 -0
  54. package/esm/funcs/{catalogProductsList.d.ts.map → customersAddAddress.d.ts.map} +1 -1
  55. package/esm/funcs/{customersAddressesAdd.js → customersAddAddress.js} +2 -2
  56. package/esm/funcs/customersAddAddress.js.map +1 -0
  57. package/esm/funcs/{customersPostCustomers.d.ts → customersCreate.d.ts} +2 -2
  58. package/esm/funcs/customersCreate.d.ts.map +1 -0
  59. package/esm/funcs/{customersPostCustomers.js → customersCreate.js} +2 -2
  60. package/esm/funcs/customersCreate.js.map +1 -0
  61. package/esm/funcs/{customersGetCustomersId.d.ts → customersGet.d.ts} +2 -2
  62. package/esm/funcs/customersGet.d.ts.map +1 -0
  63. package/esm/funcs/{customersGetCustomersId.js → customersGet.js} +2 -2
  64. package/esm/funcs/customersGet.js.map +1 -0
  65. package/esm/funcs/customersGetReviews.d.ts +15 -0
  66. package/esm/funcs/customersGetReviews.d.ts.map +1 -0
  67. package/esm/funcs/{customersReviewsList.js → customersGetReviews.js} +2 -2
  68. package/esm/funcs/customersGetReviews.js.map +1 -0
  69. package/esm/funcs/{customersAddressesAdd.d.ts → customersUpdate.d.ts} +4 -4
  70. package/esm/funcs/customersUpdate.d.ts.map +1 -0
  71. package/esm/funcs/{customersPutCustomersId.js → customersUpdate.js} +2 -2
  72. package/esm/funcs/customersUpdate.js.map +1 -0
  73. package/esm/funcs/juspayCreateCustomer.d.ts +17 -0
  74. package/esm/funcs/juspayCreateCustomer.d.ts.map +1 -0
  75. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.js → juspayCreateCustomer.js} +2 -2
  76. package/esm/funcs/juspayCreateCustomer.js.map +1 -0
  77. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.d.ts → juspayCreateOrder.d.ts} +2 -2
  78. package/esm/funcs/juspayCreateOrder.d.ts.map +1 -0
  79. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js → juspayCreateOrder.js} +2 -2
  80. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js.map → juspayCreateOrder.js.map} +1 -1
  81. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.d.ts → juspayGetCustomer.d.ts} +2 -2
  82. package/esm/funcs/juspayGetCustomer.d.ts.map +1 -0
  83. package/esm/funcs/{juspayGetPaymentsJuspayCustomer.js → juspayGetCustomer.js} +2 -2
  84. package/esm/funcs/{juspayPostPaymentsJuspayCreateOrder.js.map → juspayGetCustomer.js.map} +1 -1
  85. package/esm/funcs/{customersLoyaltyListActivities.d.ts → loyaltyPointsListActivities.d.ts} +2 -2
  86. package/esm/funcs/loyaltyPointsListActivities.d.ts.map +1 -0
  87. package/esm/funcs/{customersLoyaltyListActivities.js → loyaltyPointsListActivities.js} +2 -2
  88. package/esm/funcs/loyaltyPointsListActivities.js.map +1 -0
  89. package/esm/funcs/{customersReviewsList.d.ts → ordersGetPaymentStatus.d.ts} +4 -4
  90. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -0
  91. package/esm/funcs/{ordersGetOrdersIdPaymentStatus.js → ordersGetPaymentStatus.js} +2 -2
  92. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -0
  93. package/esm/funcs/{ordersRefundsList.d.ts → ordersGetRefunds.d.ts} +2 -2
  94. package/esm/funcs/ordersGetRefunds.d.ts.map +1 -0
  95. package/esm/funcs/{ordersRefundsList.js → ordersGetRefunds.js} +2 -2
  96. package/esm/funcs/ordersGetRefunds.js.map +1 -0
  97. package/esm/funcs/{ordersShipmentsList.d.ts → ordersGetShipments.d.ts} +2 -2
  98. package/esm/funcs/ordersGetShipments.d.ts.map +1 -0
  99. package/esm/funcs/{ordersShipmentsList.js → ordersGetShipments.js} +2 -2
  100. package/esm/funcs/ordersGetShipments.js.map +1 -0
  101. package/esm/funcs/{paymentsPostPaymentsCards.d.ts → paymentsAddCard.d.ts} +2 -2
  102. package/esm/funcs/paymentsAddCard.d.ts.map +1 -0
  103. package/esm/funcs/{paymentsPostPaymentsCards.js → paymentsAddCard.js} +2 -2
  104. package/esm/funcs/paymentsAddCard.js.map +1 -0
  105. package/esm/funcs/{paymentsGetPaymentsCards.d.ts → paymentsCardsList.d.ts} +2 -2
  106. package/esm/funcs/paymentsCardsList.d.ts.map +1 -0
  107. package/esm/funcs/{paymentsGetPaymentsCards.js → paymentsCardsList.js} +2 -2
  108. package/esm/funcs/paymentsCardsList.js.map +1 -0
  109. package/esm/funcs/{paymentsGetMethods.d.ts → paymentsListMethods.d.ts} +2 -2
  110. package/esm/funcs/paymentsListMethods.d.ts.map +1 -0
  111. package/esm/funcs/{paymentsGetMethods.js → paymentsListMethods.js} +2 -2
  112. package/esm/funcs/paymentsListMethods.js.map +1 -0
  113. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.d.ts → paymentsVerifyVpa.d.ts} +2 -2
  114. package/esm/funcs/paymentsVerifyVpa.d.ts.map +1 -0
  115. package/esm/funcs/{paymentsGetPaymentsVerifyVpa.js → paymentsVerifyVpa.js} +2 -2
  116. package/esm/funcs/paymentsVerifyVpa.js.map +1 -0
  117. package/esm/funcs/{catalogProductsGetSimilar.d.ts → productsGetSimilar.d.ts} +2 -2
  118. package/esm/funcs/productsGetSimilar.d.ts.map +1 -0
  119. package/esm/funcs/{catalogProductsGetSimilar.js → productsGetSimilar.js} +2 -2
  120. package/esm/funcs/productsGetSimilar.js.map +1 -0
  121. package/esm/funcs/{catalogProductsGetUpsells.d.ts → productsGetUpsells.d.ts} +2 -2
  122. package/esm/funcs/productsGetUpsells.d.ts.map +1 -0
  123. package/esm/funcs/{catalogProductsGetUpsells.js → productsGetUpsells.js} +2 -2
  124. package/esm/funcs/productsGetUpsells.js.map +1 -0
  125. package/esm/funcs/{catalogProductsList.d.ts → productsList.d.ts} +2 -2
  126. package/esm/funcs/productsList.d.ts.map +1 -0
  127. package/esm/funcs/{catalogProductsList.js → productsList.js} +2 -2
  128. package/esm/funcs/productsList.js.map +1 -0
  129. package/esm/funcs/{juspayPostPaymentsJuspayCreateCustomer.d.ts → productsListCrossSells.d.ts} +4 -5
  130. package/esm/funcs/productsListCrossSells.d.ts.map +1 -0
  131. package/esm/funcs/{catalogProductsGetCrossSells.js → productsListCrossSells.js} +2 -2
  132. package/esm/funcs/productsListCrossSells.js.map +1 -0
  133. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts → shipmentCheckPincodeServiceability.d.ts} +2 -2
  134. package/esm/funcs/{shippingCheckPincodeServiceability.d.ts.map → shipmentCheckPincodeServiceability.d.ts.map} +1 -1
  135. package/esm/funcs/{shippingCheckPincodeServiceability.js → shipmentCheckPincodeServiceability.js} +2 -2
  136. package/esm/funcs/{shippingCheckPincodeServiceability.js.map → shipmentCheckPincodeServiceability.js.map} +1 -1
  137. package/esm/funcs/{authUserDeleteProfileImage.d.ts → userDeleteProfileImage.d.ts} +2 -2
  138. package/esm/funcs/userDeleteProfileImage.d.ts.map +1 -0
  139. package/esm/funcs/{authUserDeleteProfileImage.js → userDeleteProfileImage.js} +2 -2
  140. package/esm/funcs/userDeleteProfileImage.js.map +1 -0
  141. package/esm/funcs/{authUserResetPassword.d.ts → userResetPassword.d.ts} +2 -2
  142. package/esm/funcs/{ordersRefundsList.d.ts.map → userResetPassword.d.ts.map} +1 -1
  143. package/esm/funcs/{authUserResetPassword.js → userResetPassword.js} +2 -2
  144. package/esm/funcs/userResetPassword.js.map +1 -0
  145. package/esm/funcs/{authUserUpdate.d.ts → userUpdate.d.ts} +2 -2
  146. package/esm/funcs/userUpdate.d.ts.map +1 -0
  147. package/esm/funcs/{authUserUpdate.js → userUpdate.js} +2 -2
  148. package/esm/funcs/userUpdate.js.map +1 -0
  149. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts → userUpdateNotificationPreferences.d.ts} +2 -2
  150. package/esm/funcs/{userNotificationPreferencesUpdate.d.ts.map → userUpdateNotificationPreferences.d.ts.map} +1 -1
  151. package/esm/funcs/{userNotificationPreferencesUpdate.js → userUpdateNotificationPreferences.js} +2 -2
  152. package/esm/funcs/{userNotificationPreferencesUpdate.js.map → userUpdateNotificationPreferences.js.map} +1 -1
  153. package/esm/funcs/{authUserUpdateProfileImage.d.ts → userUpdateProfileImage.d.ts} +2 -2
  154. package/esm/funcs/userUpdateProfileImage.d.ts.map +1 -0
  155. package/esm/funcs/{authUserUpdateProfileImage.js → userUpdateProfileImage.js} +2 -2
  156. package/esm/funcs/userUpdateProfileImage.js.map +1 -0
  157. package/esm/funcs/{userNotificationPreferencesCreate.d.ts → usersCreateNotificationPreferences.d.ts} +2 -2
  158. package/esm/funcs/usersCreateNotificationPreferences.d.ts.map +1 -0
  159. package/esm/funcs/{userNotificationPreferencesCreate.js → usersCreateNotificationPreferences.js} +2 -2
  160. package/esm/funcs/usersCreateNotificationPreferences.js.map +1 -0
  161. package/esm/funcs/{authUserGet.d.ts → usersGet.d.ts} +2 -2
  162. package/esm/funcs/usersGet.d.ts.map +1 -0
  163. package/esm/funcs/{authUserGet.js → usersGet.js} +2 -2
  164. package/esm/funcs/usersGet.js.map +1 -0
  165. package/esm/funcs/{authUserGetProfileImage.d.ts → usersGetProfileImage.d.ts} +2 -2
  166. package/esm/funcs/{customersReviewsList.d.ts.map → usersGetProfileImage.d.ts.map} +1 -1
  167. package/esm/funcs/{authUserGetProfileImage.js → usersGetProfileImage.js} +2 -2
  168. package/esm/funcs/{customersReviewsList.js.map → usersGetProfileImage.js.map} +1 -1
  169. package/esm/funcs/{utilsGetCountries.d.ts → utilsCountriesGet.d.ts} +2 -2
  170. package/esm/funcs/{utilsGetCountries.d.ts.map → utilsCountriesGet.d.ts.map} +1 -1
  171. package/esm/funcs/{utilsGetCountries.js → utilsCountriesGet.js} +2 -2
  172. package/esm/funcs/{utilsGetCountries.js.map → utilsCountriesGet.js.map} +1 -1
  173. package/esm/funcs/{wishlistDelete.d.ts → wishlistRemoveItem.d.ts} +2 -2
  174. package/esm/funcs/wishlistRemoveItem.d.ts.map +1 -0
  175. package/esm/funcs/{wishlistDelete.js → wishlistRemoveItem.js} +2 -2
  176. package/esm/funcs/wishlistRemoveItem.js.map +1 -0
  177. package/esm/lib/config.d.ts +2 -2
  178. package/esm/lib/config.js +2 -2
  179. package/esm/models/components/associatedoption.d.ts +4 -102
  180. package/esm/models/components/associatedoption.d.ts.map +1 -1
  181. package/esm/models/components/associatedoption.js +4 -82
  182. package/esm/models/components/associatedoption.js.map +1 -1
  183. package/esm/models/components/bundleproduct.d.ts +48 -48
  184. package/esm/models/components/bundleproduct.d.ts.map +1 -1
  185. package/esm/models/components/bundleproduct.js +46 -50
  186. package/esm/models/components/bundleproduct.js.map +1 -1
  187. package/esm/models/components/bundleproductdetail.d.ts +66 -66
  188. package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
  189. package/esm/models/components/bundleproductdetail.js +62 -66
  190. package/esm/models/components/bundleproductdetail.js.map +1 -1
  191. package/esm/models/components/coloroption.d.ts +72 -0
  192. package/esm/models/components/coloroption.d.ts.map +1 -0
  193. package/esm/models/components/coloroption.js +62 -0
  194. package/esm/models/components/coloroption.js.map +1 -0
  195. package/esm/models/components/currency.d.ts +6 -6
  196. package/esm/models/components/currency.d.ts.map +1 -1
  197. package/esm/models/components/currency.js +6 -6
  198. package/esm/models/components/currency.js.map +1 -1
  199. package/esm/models/components/index.d.ts +2 -0
  200. package/esm/models/components/index.d.ts.map +1 -1
  201. package/esm/models/components/index.js +2 -0
  202. package/esm/models/components/index.js.map +1 -1
  203. package/esm/models/components/notificationpreferences.d.ts +6 -6
  204. package/esm/models/components/notificationpreferences.d.ts.map +1 -1
  205. package/esm/models/components/notificationpreferences.js +6 -6
  206. package/esm/models/components/notificationpreferences.js.map +1 -1
  207. package/esm/models/components/pagination.d.ts +8 -8
  208. package/esm/models/components/pagination.d.ts.map +1 -1
  209. package/esm/models/components/pagination.js +8 -8
  210. package/esm/models/components/pagination.js.map +1 -1
  211. package/esm/models/components/productattribute.d.ts +2 -2
  212. package/esm/models/components/productattribute.d.ts.map +1 -1
  213. package/esm/models/components/productattribute.js +2 -2
  214. package/esm/models/components/productattribute.js.map +1 -1
  215. package/esm/models/components/productcategory.d.ts +20 -20
  216. package/esm/models/components/productcategory.d.ts.map +1 -1
  217. package/esm/models/components/productcategory.js +20 -20
  218. package/esm/models/components/productcategory.js.map +1 -1
  219. package/esm/models/components/productdetail.d.ts +2 -14
  220. package/esm/models/components/productdetail.d.ts.map +1 -1
  221. package/esm/models/components/productdetail.js +4 -18
  222. package/esm/models/components/productdetail.js.map +1 -1
  223. package/esm/models/components/productimage.d.ts +14 -14
  224. package/esm/models/components/productimage.d.ts.map +1 -1
  225. package/esm/models/components/productimage.js +14 -14
  226. package/esm/models/components/productimage.js.map +1 -1
  227. package/esm/models/components/productpricing.d.ts +4 -4
  228. package/esm/models/components/productpricing.d.ts.map +1 -1
  229. package/esm/models/components/productpricing.js +4 -4
  230. package/esm/models/components/productpricing.js.map +1 -1
  231. package/esm/models/components/productshipping.d.ts +12 -12
  232. package/esm/models/components/productshipping.d.ts.map +1 -1
  233. package/esm/models/components/productshipping.js +12 -12
  234. package/esm/models/components/productshipping.js.map +1 -1
  235. package/esm/models/components/productvideo.d.ts +16 -16
  236. package/esm/models/components/productvideo.d.ts.map +1 -1
  237. package/esm/models/components/productvideo.js +16 -16
  238. package/esm/models/components/productvideo.js.map +1 -1
  239. package/esm/models/components/seo.d.ts +8 -8
  240. package/esm/models/components/seo.d.ts.map +1 -1
  241. package/esm/models/components/seo.js +8 -8
  242. package/esm/models/components/seo.js.map +1 -1
  243. package/esm/models/components/singleproduct.d.ts +18 -18
  244. package/esm/models/components/singleproduct.d.ts.map +1 -1
  245. package/esm/models/components/singleproduct.js +18 -18
  246. package/esm/models/components/singleproduct.js.map +1 -1
  247. package/esm/models/components/singleproductdetail.d.ts +36 -36
  248. package/esm/models/components/singleproductdetail.d.ts.map +1 -1
  249. package/esm/models/components/singleproductdetail.js +34 -34
  250. package/esm/models/components/singleproductdetail.js.map +1 -1
  251. package/esm/models/components/singleselectoption.d.ts +42 -0
  252. package/esm/models/components/singleselectoption.d.ts.map +1 -0
  253. package/esm/models/components/singleselectoption.js +35 -0
  254. package/esm/models/components/singleselectoption.js.map +1 -0
  255. package/esm/models/components/sku.d.ts +30 -30
  256. package/esm/models/components/sku.d.ts.map +1 -1
  257. package/esm/models/components/sku.js +28 -30
  258. package/esm/models/components/sku.js.map +1 -1
  259. package/esm/models/components/variant.d.ts +15 -12
  260. package/esm/models/components/variant.d.ts.map +1 -1
  261. package/esm/models/components/variant.js +12 -12
  262. package/esm/models/components/variant.js.map +1 -1
  263. package/esm/models/components/variantdetail.d.ts +41 -38
  264. package/esm/models/components/variantdetail.d.ts.map +1 -1
  265. package/esm/models/components/variantdetail.js +36 -36
  266. package/esm/models/components/variantdetail.js.map +1 -1
  267. package/esm/models/components/variantoption.d.ts +34 -26
  268. package/esm/models/components/variantoption.d.ts.map +1 -1
  269. package/esm/models/components/variantoption.js +32 -45
  270. package/esm/models/components/variantoption.js.map +1 -1
  271. package/esm/sdk/addresses.d.ts +0 -28
  272. package/esm/sdk/addresses.d.ts.map +1 -1
  273. package/esm/sdk/addresses.js +2 -42
  274. package/esm/sdk/addresses.js.map +1 -1
  275. package/esm/sdk/auth.d.ts +10 -0
  276. package/esm/sdk/auth.d.ts.map +1 -1
  277. package/esm/sdk/auth.js +14 -0
  278. package/esm/sdk/auth.js.map +1 -1
  279. package/esm/sdk/authuser.d.ts +12 -0
  280. package/esm/sdk/authuser.d.ts.map +1 -0
  281. package/esm/sdk/authuser.js +18 -0
  282. package/esm/sdk/authuser.js.map +1 -0
  283. package/esm/sdk/cards.d.ts +12 -0
  284. package/esm/sdk/cards.d.ts.map +1 -0
  285. package/esm/sdk/cards.js +18 -0
  286. package/esm/sdk/cards.js.map +1 -0
  287. package/esm/sdk/catalog.d.ts +2 -5
  288. package/esm/sdk/catalog.d.ts.map +1 -1
  289. package/esm/sdk/catalog.js +2 -6
  290. package/esm/sdk/catalog.js.map +1 -1
  291. package/esm/sdk/catalogproductreviews.d.ts +12 -0
  292. package/esm/sdk/catalogproductreviews.d.ts.map +1 -0
  293. package/esm/sdk/catalogproductreviews.js +18 -0
  294. package/esm/sdk/catalogproductreviews.js.map +1 -0
  295. package/esm/sdk/catalogproducts.d.ts +12 -0
  296. package/esm/sdk/catalogproducts.d.ts.map +1 -0
  297. package/esm/sdk/catalogproducts.js +18 -0
  298. package/esm/sdk/catalogproducts.js.map +1 -0
  299. package/esm/sdk/{skus.d.ts → catalogskus.d.ts} +2 -2
  300. package/esm/sdk/catalogskus.d.ts.map +1 -0
  301. package/esm/sdk/{skus.js → catalogskus.js} +2 -2
  302. package/esm/sdk/catalogskus.js.map +1 -0
  303. package/esm/sdk/cestorefrontaddresses.d.ts +26 -0
  304. package/esm/sdk/cestorefrontaddresses.d.ts.map +1 -0
  305. package/esm/sdk/cestorefrontaddresses.js +38 -0
  306. package/esm/sdk/cestorefrontaddresses.js.map +1 -0
  307. package/esm/sdk/cestorefrontproducts.d.ts +10 -0
  308. package/esm/sdk/cestorefrontproducts.d.ts.map +1 -0
  309. package/esm/sdk/cestorefrontproducts.js +15 -0
  310. package/esm/sdk/cestorefrontproducts.js.map +1 -0
  311. package/esm/sdk/cestorefrontuser.d.ts +4 -64
  312. package/esm/sdk/cestorefrontuser.d.ts.map +1 -1
  313. package/esm/sdk/cestorefrontuser.js +6 -92
  314. package/esm/sdk/cestorefrontuser.js.map +1 -1
  315. package/esm/sdk/cestorefrontusers.d.ts +12 -0
  316. package/esm/sdk/cestorefrontusers.d.ts.map +1 -0
  317. package/esm/sdk/cestorefrontusers.js +18 -0
  318. package/esm/sdk/cestorefrontusers.js.map +1 -0
  319. package/esm/sdk/countries.d.ts +12 -0
  320. package/esm/sdk/countries.d.ts.map +1 -0
  321. package/esm/sdk/countries.js +18 -0
  322. package/esm/sdk/countries.js.map +1 -0
  323. package/esm/sdk/customers.d.ts +19 -8
  324. package/esm/sdk/customers.d.ts.map +1 -1
  325. package/esm/sdk/customers.js +31 -15
  326. package/esm/sdk/customers.js.map +1 -1
  327. package/esm/sdk/juspay.d.ts +3 -3
  328. package/esm/sdk/juspay.d.ts.map +1 -1
  329. package/esm/sdk/juspay.js +9 -9
  330. package/esm/sdk/juspay.js.map +1 -1
  331. package/esm/sdk/loyalty.d.ts +0 -7
  332. package/esm/sdk/loyalty.d.ts.map +1 -1
  333. package/esm/sdk/loyalty.js +0 -10
  334. package/esm/sdk/loyalty.js.map +1 -1
  335. package/esm/sdk/loyaltypoints.d.ts +12 -0
  336. package/esm/sdk/loyaltypoints.d.ts.map +1 -0
  337. package/esm/sdk/loyaltypoints.js +18 -0
  338. package/esm/sdk/loyaltypoints.js.map +1 -0
  339. package/esm/sdk/notificationpreferences.d.ts +0 -14
  340. package/esm/sdk/notificationpreferences.d.ts.map +1 -1
  341. package/esm/sdk/notificationpreferences.js +2 -22
  342. package/esm/sdk/notificationpreferences.js.map +1 -1
  343. package/esm/sdk/orders.d.ts +15 -7
  344. package/esm/sdk/orders.d.ts.map +1 -1
  345. package/esm/sdk/orders.js +23 -11
  346. package/esm/sdk/orders.js.map +1 -1
  347. package/esm/sdk/payments.d.ts +6 -10
  348. package/esm/sdk/payments.d.ts.map +1 -1
  349. package/esm/sdk/payments.js +13 -19
  350. package/esm/sdk/payments.js.map +1 -1
  351. package/esm/sdk/products.d.ts +1 -14
  352. package/esm/sdk/products.d.ts.map +1 -1
  353. package/esm/sdk/products.js +9 -27
  354. package/esm/sdk/products.js.map +1 -1
  355. package/esm/sdk/reviews.d.ts +3 -3
  356. package/esm/sdk/reviews.d.ts.map +1 -1
  357. package/esm/sdk/reviews.js +4 -4
  358. package/esm/sdk/reviews.js.map +1 -1
  359. package/esm/sdk/sdk.d.ts +27 -3
  360. package/esm/sdk/sdk.d.ts.map +1 -1
  361. package/esm/sdk/sdk.js +35 -3
  362. package/esm/sdk/sdk.js.map +1 -1
  363. package/esm/sdk/{shipping.d.ts → shipment.d.ts} +2 -2
  364. package/esm/sdk/{shipping.d.ts.map → shipment.d.ts.map} +1 -1
  365. package/esm/sdk/{shipping.js → shipment.js} +4 -4
  366. package/esm/sdk/{shipping.js.map → shipment.js.map} +1 -1
  367. package/esm/sdk/user.d.ts +37 -4
  368. package/esm/sdk/user.d.ts.map +1 -1
  369. package/esm/sdk/user.js +50 -3
  370. package/esm/sdk/user.js.map +1 -1
  371. package/esm/sdk/users.d.ts +26 -0
  372. package/esm/sdk/users.d.ts.map +1 -0
  373. package/esm/sdk/users.js +38 -0
  374. package/esm/sdk/users.js.map +1 -0
  375. package/esm/sdk/utils.d.ts +3 -7
  376. package/esm/sdk/utils.d.ts.map +1 -1
  377. package/esm/sdk/utils.js +3 -9
  378. package/esm/sdk/utils.js.map +1 -1
  379. package/esm/sdk/wishlist.d.ts +1 -1
  380. package/esm/sdk/wishlist.d.ts.map +1 -1
  381. package/esm/sdk/wishlist.js +3 -3
  382. package/esm/sdk/wishlist.js.map +1 -1
  383. package/jsr.json +1 -1
  384. package/package.json +1 -1
  385. package/src/funcs/{customersAddressesGet.ts → addressesGet.ts} +1 -1
  386. package/src/funcs/{authUserLogout.ts → authLogout.ts} +1 -1
  387. package/src/funcs/{authUserDeactivateAccount.ts → authUserDeactivate.ts} +1 -1
  388. package/src/funcs/{userNotificationPreferencesGet.ts → authUserNotificationPreferencesGet.ts} +1 -1
  389. package/src/funcs/{authUserAddProfileImage.ts → authUsersAddProfileImage.ts} +1 -1
  390. package/src/funcs/{catalogProductsReviewsCreate.ts → catalogProductReviewsCreate.ts} +1 -1
  391. package/src/funcs/{customersAddressesAdd.ts → customersAddAddress.ts} +1 -1
  392. package/src/funcs/{customersPostCustomers.ts → customersCreate.ts} +1 -1
  393. package/src/funcs/{customersGetCustomersId.ts → customersGet.ts} +1 -1
  394. package/src/funcs/{customersReviewsList.ts → customersGetReviews.ts} +1 -1
  395. package/src/funcs/{customersPutCustomersId.ts → customersUpdate.ts} +1 -1
  396. package/src/funcs/{juspayPostPaymentsJuspayCreateCustomer.ts → juspayCreateCustomer.ts} +1 -1
  397. package/src/funcs/{juspayPostPaymentsJuspayCreateOrder.ts → juspayCreateOrder.ts} +1 -1
  398. package/src/funcs/{juspayGetPaymentsJuspayCustomer.ts → juspayGetCustomer.ts} +1 -1
  399. package/src/funcs/{customersLoyaltyListActivities.ts → loyaltyPointsListActivities.ts} +1 -1
  400. package/src/funcs/{ordersGetOrdersIdPaymentStatus.ts → ordersGetPaymentStatus.ts} +1 -1
  401. package/src/funcs/{ordersRefundsList.ts → ordersGetRefunds.ts} +1 -1
  402. package/src/funcs/{ordersShipmentsList.ts → ordersGetShipments.ts} +1 -1
  403. package/src/funcs/{paymentsPostPaymentsCards.ts → paymentsAddCard.ts} +1 -1
  404. package/src/funcs/{paymentsGetPaymentsCards.ts → paymentsCardsList.ts} +1 -1
  405. package/src/funcs/{paymentsGetMethods.ts → paymentsListMethods.ts} +1 -1
  406. package/src/funcs/{paymentsGetPaymentsVerifyVpa.ts → paymentsVerifyVpa.ts} +1 -1
  407. package/src/funcs/{catalogProductsGetSimilar.ts → productsGetSimilar.ts} +1 -1
  408. package/src/funcs/{catalogProductsGetUpsells.ts → productsGetUpsells.ts} +1 -1
  409. package/src/funcs/{catalogProductsList.ts → productsList.ts} +1 -1
  410. package/src/funcs/{catalogProductsGetCrossSells.ts → productsListCrossSells.ts} +1 -1
  411. package/src/funcs/{shippingCheckPincodeServiceability.ts → shipmentCheckPincodeServiceability.ts} +1 -1
  412. package/src/funcs/{authUserDeleteProfileImage.ts → userDeleteProfileImage.ts} +1 -1
  413. package/src/funcs/{authUserResetPassword.ts → userResetPassword.ts} +1 -1
  414. package/src/funcs/{authUserUpdate.ts → userUpdate.ts} +1 -1
  415. package/src/funcs/{userNotificationPreferencesUpdate.ts → userUpdateNotificationPreferences.ts} +1 -1
  416. package/src/funcs/{authUserUpdateProfileImage.ts → userUpdateProfileImage.ts} +1 -1
  417. package/src/funcs/{userNotificationPreferencesCreate.ts → usersCreateNotificationPreferences.ts} +1 -1
  418. package/src/funcs/{authUserGet.ts → usersGet.ts} +1 -1
  419. package/src/funcs/{authUserGetProfileImage.ts → usersGetProfileImage.ts} +1 -1
  420. package/src/funcs/{utilsGetCountries.ts → utilsCountriesGet.ts} +1 -1
  421. package/src/funcs/{wishlistDelete.ts → wishlistRemoveItem.ts} +1 -1
  422. package/src/lib/config.ts +2 -2
  423. package/src/models/components/associatedoption.ts +19 -164
  424. package/src/models/components/bundleproduct.ts +92 -99
  425. package/src/models/components/bundleproductdetail.ts +124 -131
  426. package/src/models/components/coloroption.ts +144 -0
  427. package/src/models/components/currency.ts +12 -12
  428. package/src/models/components/index.ts +2 -0
  429. package/src/models/components/notificationpreferences.ts +12 -12
  430. package/src/models/components/pagination.ts +16 -16
  431. package/src/models/components/productattribute.ts +4 -4
  432. package/src/models/components/productcategory.ts +40 -40
  433. package/src/models/components/productdetail.ts +7 -37
  434. package/src/models/components/productimage.ts +28 -28
  435. package/src/models/components/productpricing.ts +8 -8
  436. package/src/models/components/productshipping.ts +24 -24
  437. package/src/models/components/productvideo.ts +32 -32
  438. package/src/models/components/seo.ts +16 -16
  439. package/src/models/components/singleproduct.ts +36 -36
  440. package/src/models/components/singleproductdetail.ts +68 -68
  441. package/src/models/components/singleselectoption.ts +83 -0
  442. package/src/models/components/sku.ts +56 -61
  443. package/src/models/components/variant.ts +27 -24
  444. package/src/models/components/variantdetail.ts +75 -72
  445. package/src/models/components/variantoption.ts +54 -61
  446. package/src/sdk/addresses.ts +2 -74
  447. package/src/sdk/auth.ts +22 -0
  448. package/src/sdk/authuser.ts +27 -0
  449. package/src/sdk/{refunds.ts → cards.ts} +7 -7
  450. package/src/sdk/catalog.ts +4 -10
  451. package/src/sdk/catalogproductreviews.ts +27 -0
  452. package/src/sdk/catalogproducts.ts +27 -0
  453. package/src/sdk/{skus.ts → catalogskus.ts} +1 -1
  454. package/src/sdk/cestorefrontaddresses.ts +63 -0
  455. package/src/sdk/cestorefrontproducts.ts +19 -0
  456. package/src/sdk/cestorefrontuser.ts +8 -160
  457. package/src/sdk/cestorefrontusers.ts +27 -0
  458. package/src/sdk/countries.ts +25 -0
  459. package/src/sdk/customers.ts +49 -19
  460. package/src/sdk/juspay.ts +9 -9
  461. package/src/sdk/loyalty.ts +0 -18
  462. package/src/sdk/loyaltypoints.ts +27 -0
  463. package/src/sdk/notificationpreferences.ts +2 -38
  464. package/src/sdk/orders.ts +39 -15
  465. package/src/sdk/payments.ts +15 -27
  466. package/src/sdk/products.ts +9 -39
  467. package/src/sdk/reviews.ts +6 -6
  468. package/src/sdk/sdk.ts +54 -4
  469. package/src/sdk/{shipping.ts → shipment.ts} +3 -3
  470. package/src/sdk/user.ts +90 -6
  471. package/src/sdk/users.ts +63 -0
  472. package/src/sdk/utils.ts +4 -14
  473. package/src/sdk/wishlist.ts +3 -3
  474. package/esm/funcs/authUserAddProfileImage.d.ts.map +0 -1
  475. package/esm/funcs/authUserAddProfileImage.js.map +0 -1
  476. package/esm/funcs/authUserDeactivateAccount.d.ts.map +0 -1
  477. package/esm/funcs/authUserDeactivateAccount.js.map +0 -1
  478. package/esm/funcs/authUserDeleteProfileImage.d.ts.map +0 -1
  479. package/esm/funcs/authUserDeleteProfileImage.js.map +0 -1
  480. package/esm/funcs/authUserGet.d.ts.map +0 -1
  481. package/esm/funcs/authUserGet.js.map +0 -1
  482. package/esm/funcs/authUserGetProfileImage.d.ts.map +0 -1
  483. package/esm/funcs/authUserGetProfileImage.js.map +0 -1
  484. package/esm/funcs/authUserLogout.d.ts.map +0 -1
  485. package/esm/funcs/authUserLogout.js.map +0 -1
  486. package/esm/funcs/authUserResetPassword.d.ts.map +0 -1
  487. package/esm/funcs/authUserResetPassword.js.map +0 -1
  488. package/esm/funcs/authUserUpdate.d.ts.map +0 -1
  489. package/esm/funcs/authUserUpdate.js.map +0 -1
  490. package/esm/funcs/authUserUpdateProfileImage.d.ts.map +0 -1
  491. package/esm/funcs/authUserUpdateProfileImage.js.map +0 -1
  492. package/esm/funcs/catalogProductsGetCrossSells.d.ts.map +0 -1
  493. package/esm/funcs/catalogProductsGetCrossSells.js.map +0 -1
  494. package/esm/funcs/catalogProductsGetSimilar.d.ts.map +0 -1
  495. package/esm/funcs/catalogProductsGetSimilar.js.map +0 -1
  496. package/esm/funcs/catalogProductsGetUpsells.d.ts.map +0 -1
  497. package/esm/funcs/catalogProductsGetUpsells.js.map +0 -1
  498. package/esm/funcs/catalogProductsList.js.map +0 -1
  499. package/esm/funcs/catalogProductsReviewsCreate.d.ts.map +0 -1
  500. package/esm/funcs/catalogProductsReviewsCreate.js.map +0 -1
  501. package/esm/funcs/customersAddressesAdd.d.ts.map +0 -1
  502. package/esm/funcs/customersAddressesAdd.js.map +0 -1
  503. package/esm/funcs/customersAddressesGet.d.ts +0 -16
  504. package/esm/funcs/customersAddressesGet.d.ts.map +0 -1
  505. package/esm/funcs/customersAddressesGet.js.map +0 -1
  506. package/esm/funcs/customersGetCustomersId.d.ts.map +0 -1
  507. package/esm/funcs/customersGetCustomersId.js.map +0 -1
  508. package/esm/funcs/customersLoyaltyListActivities.d.ts.map +0 -1
  509. package/esm/funcs/customersLoyaltyListActivities.js.map +0 -1
  510. package/esm/funcs/customersPostCustomers.d.ts.map +0 -1
  511. package/esm/funcs/customersPostCustomers.js.map +0 -1
  512. package/esm/funcs/customersPutCustomersId.d.ts +0 -16
  513. package/esm/funcs/customersPutCustomersId.d.ts.map +0 -1
  514. package/esm/funcs/customersPutCustomersId.js.map +0 -1
  515. package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  516. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  517. package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  518. package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  519. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts +0 -15
  520. package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +0 -1
  521. package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +0 -1
  522. package/esm/funcs/ordersRefundsList.js.map +0 -1
  523. package/esm/funcs/ordersShipmentsList.d.ts.map +0 -1
  524. package/esm/funcs/ordersShipmentsList.js.map +0 -1
  525. package/esm/funcs/paymentsGetMethods.js.map +0 -1
  526. package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +0 -1
  527. package/esm/funcs/paymentsGetPaymentsCards.js.map +0 -1
  528. package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +0 -1
  529. package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +0 -1
  530. package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +0 -1
  531. package/esm/funcs/paymentsPostPaymentsCards.js.map +0 -1
  532. package/esm/funcs/userNotificationPreferencesCreate.d.ts.map +0 -1
  533. package/esm/funcs/userNotificationPreferencesCreate.js.map +0 -1
  534. package/esm/funcs/userNotificationPreferencesGet.d.ts.map +0 -1
  535. package/esm/funcs/userNotificationPreferencesGet.js.map +0 -1
  536. package/esm/funcs/wishlistDelete.d.ts.map +0 -1
  537. package/esm/funcs/wishlistDelete.js.map +0 -1
  538. package/esm/sdk/cestorefrontreviews.d.ts +0 -19
  539. package/esm/sdk/cestorefrontreviews.d.ts.map +0 -1
  540. package/esm/sdk/cestorefrontreviews.js +0 -28
  541. package/esm/sdk/cestorefrontreviews.js.map +0 -1
  542. package/esm/sdk/refunds.d.ts +0 -12
  543. package/esm/sdk/refunds.d.ts.map +0 -1
  544. package/esm/sdk/refunds.js +0 -18
  545. package/esm/sdk/refunds.js.map +0 -1
  546. package/esm/sdk/shipments.d.ts +0 -12
  547. package/esm/sdk/shipments.d.ts.map +0 -1
  548. package/esm/sdk/shipments.js +0 -18
  549. package/esm/sdk/shipments.js.map +0 -1
  550. package/esm/sdk/skus.d.ts.map +0 -1
  551. package/esm/sdk/skus.js.map +0 -1
  552. package/src/sdk/cestorefrontreviews.ts +0 -45
  553. package/src/sdk/shipments.ts +0 -27
@@ -90,13 +90,13 @@ export type BundleProductDetailBundleItemsProductType = ClosedEnum<
90
90
  export type BundleProductDetailSKU = {
91
91
  quantity: number;
92
92
  productId: string;
93
- variantId?: string | null | undefined;
93
+ variantId: string | null;
94
94
  sku: string;
95
- slug?: string | undefined;
95
+ slug: string | null;
96
96
  productName: string;
97
- variantName?: string | null | undefined;
97
+ variantName: string | null;
98
98
  productType: BundleProductDetailBundleItemsProductType;
99
- shortDescription?: string | undefined;
99
+ shortDescription: string | null;
100
100
  active?: boolean | undefined;
101
101
  stockAvailable?: boolean | undefined;
102
102
  /**
@@ -105,16 +105,16 @@ export type BundleProductDetailSKU = {
105
105
  onOffer?: boolean | undefined;
106
106
  onSubscription?: boolean | undefined;
107
107
  onPromotion?: boolean | undefined;
108
- categoryIds?: Array<string> | undefined;
109
- tags?: Array<string> | undefined;
110
- reviewsCount?: number | undefined;
111
- reviewsRatingSum?: number | undefined;
112
- attributes?: Array<ProductAttribute> | undefined;
113
- images?: Array<ProductImage> | undefined;
114
- pricing?: ProductPricing | undefined;
115
- promotion?: ProductPromotion | null | undefined;
116
- subscription?: Array<ProductSubscription> | undefined;
117
- associatedOptions?: { [k: string]: AssociatedOption } | null | undefined;
108
+ categoryIds: Array<string>;
109
+ tags: Array<string> | null;
110
+ reviewsCount: number;
111
+ reviewsRatingSum: number | null;
112
+ attributes: Array<ProductAttribute>;
113
+ images: Array<ProductImage>;
114
+ pricing: ProductPricing;
115
+ promotion: ProductPromotion | null;
116
+ subscription: Array<ProductSubscription>;
117
+ associatedOptions: { [k: string]: AssociatedOption } | null;
118
118
  };
119
119
 
120
120
  export type BundleProductDetail = {
@@ -122,10 +122,10 @@ export type BundleProductDetail = {
122
122
  * The ULID of the product
123
123
  */
124
124
  id: string;
125
- sku?: string | undefined;
125
+ sku: string | null;
126
126
  name: string;
127
- slug: string;
128
- shortDescription?: string | undefined;
127
+ slug: string | null;
128
+ shortDescription: string | null;
129
129
  productType: BundleProductDetailProductType;
130
130
  active?: boolean | undefined;
131
131
  /**
@@ -148,11 +148,11 @@ export type BundleProductDetail = {
148
148
  * Indicates whether the product has variants
149
149
  */
150
150
  hasVariant?: boolean | undefined;
151
- tags?: Array<string> | null | undefined;
152
- categoryIds?: Array<string> | undefined;
153
- reviewsRatingSum?: number | undefined;
154
- reviewsCount?: number | undefined;
155
- attributes?: Array<ProductAttribute> | undefined;
151
+ tags: Array<string> | null;
152
+ categoryIds: Array<string>;
153
+ reviewsRatingSum: number;
154
+ reviewsCount: number;
155
+ attributes: Array<ProductAttribute>;
156
156
  pricing: ProductPricing;
157
157
  /**
158
158
  * this will be used if has_variant is true, to auto set default values.
@@ -161,21 +161,21 @@ export type BundleProductDetail = {
161
161
  promotion: ProductPromotion | null;
162
162
  images: Array<ProductImage>;
163
163
  subscription: Array<ProductSubscription>;
164
- bundleItems?: Array<BundleProductDetailSKU> | undefined;
165
- description?: string | undefined;
166
- hsnCode?: string | undefined;
167
- videos?: Array<ProductVideo> | undefined;
168
- shipping?: ProductShipping | null | undefined;
164
+ bundleItems: Array<BundleProductDetailSKU>;
165
+ description: string | null;
166
+ hsnCode: string | null;
167
+ videos: Array<ProductVideo>;
168
+ shipping: ProductShipping | null;
169
169
  /**
170
170
  * An array of product ULIDs
171
171
  */
172
- upsellingProductIds?: Array<string> | undefined;
172
+ upsellingProductIds: Array<string>;
173
173
  /**
174
174
  * An array of product ULIDs
175
175
  */
176
- crosssellingProductIds?: Array<string> | undefined;
177
- seo?: Seo | undefined;
178
- metadata?: { [k: string]: string } | undefined;
176
+ crosssellingProductIds: Array<string>;
177
+ seo: Seo;
178
+ metadata: { [k: string]: string };
179
179
  };
180
180
 
181
181
  /** @internal */
@@ -230,29 +230,28 @@ export const BundleProductDetailSKU$inboundSchema: z.ZodType<
230
230
  > = z.object({
231
231
  quantity: z.number().int(),
232
232
  product_id: z.string(),
233
- variant_id: z.nullable(z.string()).optional(),
233
+ variant_id: z.nullable(z.string()),
234
234
  sku: z.string(),
235
- slug: z.string().optional(),
235
+ slug: z.nullable(z.string()),
236
236
  product_name: z.string(),
237
- variant_name: z.nullable(z.string()).optional(),
237
+ variant_name: z.nullable(z.string()),
238
238
  product_type: BundleProductDetailBundleItemsProductType$inboundSchema,
239
- short_description: z.string().optional(),
239
+ short_description: z.nullable(z.string()),
240
240
  active: z.boolean().default(true),
241
241
  stock_available: z.boolean().default(true),
242
242
  on_offer: z.boolean().default(false),
243
243
  on_subscription: z.boolean().default(false),
244
244
  on_promotion: z.boolean().default(false),
245
- category_ids: z.array(z.string()).optional(),
246
- tags: z.array(z.string()).optional(),
247
- reviews_count: z.number().int().optional(),
248
- reviews_rating_sum: z.number().optional(),
249
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
250
- images: z.array(ProductImage$inboundSchema).optional(),
251
- pricing: ProductPricing$inboundSchema.optional(),
252
- promotion: z.nullable(ProductPromotion$inboundSchema).optional(),
253
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
254
- associated_options: z.nullable(z.record(AssociatedOption$inboundSchema))
255
- .optional(),
245
+ category_ids: z.array(z.string()),
246
+ tags: z.nullable(z.array(z.string())),
247
+ reviews_count: z.number().int(),
248
+ reviews_rating_sum: z.nullable(z.number()),
249
+ attributes: z.array(ProductAttribute$inboundSchema),
250
+ images: z.array(ProductImage$inboundSchema),
251
+ pricing: ProductPricing$inboundSchema,
252
+ promotion: z.nullable(ProductPromotion$inboundSchema),
253
+ subscription: z.array(ProductSubscription$inboundSchema),
254
+ associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
256
255
  }).transform((v) => {
257
256
  return remap$(v, {
258
257
  "product_id": "productId",
@@ -276,31 +275,28 @@ export const BundleProductDetailSKU$inboundSchema: z.ZodType<
276
275
  export type BundleProductDetailSKU$Outbound = {
277
276
  quantity: number;
278
277
  product_id: string;
279
- variant_id?: string | null | undefined;
278
+ variant_id: string | null;
280
279
  sku: string;
281
- slug?: string | undefined;
280
+ slug: string | null;
282
281
  product_name: string;
283
- variant_name?: string | null | undefined;
282
+ variant_name: string | null;
284
283
  product_type: string;
285
- short_description?: string | undefined;
284
+ short_description: string | null;
286
285
  active: boolean;
287
286
  stock_available: boolean;
288
287
  on_offer: boolean;
289
288
  on_subscription: boolean;
290
289
  on_promotion: boolean;
291
- category_ids?: Array<string> | undefined;
292
- tags?: Array<string> | undefined;
293
- reviews_count?: number | undefined;
294
- reviews_rating_sum?: number | undefined;
295
- attributes?: Array<ProductAttribute$Outbound> | undefined;
296
- images?: Array<ProductImage$Outbound> | undefined;
297
- pricing?: ProductPricing$Outbound | undefined;
298
- promotion?: ProductPromotion$Outbound | null | undefined;
299
- subscription?: Array<ProductSubscription$Outbound> | undefined;
300
- associated_options?:
301
- | { [k: string]: AssociatedOption$Outbound }
302
- | null
303
- | undefined;
290
+ category_ids: Array<string>;
291
+ tags: Array<string> | null;
292
+ reviews_count: number;
293
+ reviews_rating_sum: number | null;
294
+ attributes: Array<ProductAttribute$Outbound>;
295
+ images: Array<ProductImage$Outbound>;
296
+ pricing: ProductPricing$Outbound;
297
+ promotion: ProductPromotion$Outbound | null;
298
+ subscription: Array<ProductSubscription$Outbound>;
299
+ associated_options: { [k: string]: AssociatedOption$Outbound } | null;
304
300
  };
305
301
 
306
302
  /** @internal */
@@ -311,29 +307,28 @@ export const BundleProductDetailSKU$outboundSchema: z.ZodType<
311
307
  > = z.object({
312
308
  quantity: z.number().int(),
313
309
  productId: z.string(),
314
- variantId: z.nullable(z.string()).optional(),
310
+ variantId: z.nullable(z.string()),
315
311
  sku: z.string(),
316
- slug: z.string().optional(),
312
+ slug: z.nullable(z.string()),
317
313
  productName: z.string(),
318
- variantName: z.nullable(z.string()).optional(),
314
+ variantName: z.nullable(z.string()),
319
315
  productType: BundleProductDetailBundleItemsProductType$outboundSchema,
320
- shortDescription: z.string().optional(),
316
+ shortDescription: z.nullable(z.string()),
321
317
  active: z.boolean().default(true),
322
318
  stockAvailable: z.boolean().default(true),
323
319
  onOffer: z.boolean().default(false),
324
320
  onSubscription: z.boolean().default(false),
325
321
  onPromotion: z.boolean().default(false),
326
- categoryIds: z.array(z.string()).optional(),
327
- tags: z.array(z.string()).optional(),
328
- reviewsCount: z.number().int().optional(),
329
- reviewsRatingSum: z.number().optional(),
330
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
331
- images: z.array(ProductImage$outboundSchema).optional(),
332
- pricing: ProductPricing$outboundSchema.optional(),
333
- promotion: z.nullable(ProductPromotion$outboundSchema).optional(),
334
- subscription: z.array(ProductSubscription$outboundSchema).optional(),
335
- associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema))
336
- .optional(),
322
+ categoryIds: z.array(z.string()),
323
+ tags: z.nullable(z.array(z.string())),
324
+ reviewsCount: z.number().int(),
325
+ reviewsRatingSum: z.nullable(z.number()),
326
+ attributes: z.array(ProductAttribute$outboundSchema),
327
+ images: z.array(ProductImage$outboundSchema),
328
+ pricing: ProductPricing$outboundSchema,
329
+ promotion: z.nullable(ProductPromotion$outboundSchema),
330
+ subscription: z.array(ProductSubscription$outboundSchema),
331
+ associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
337
332
  }).transform((v) => {
338
333
  return remap$(v, {
339
334
  productId: "product_id",
@@ -391,10 +386,10 @@ export const BundleProductDetail$inboundSchema: z.ZodType<
391
386
  unknown
392
387
  > = z.object({
393
388
  id: z.string(),
394
- sku: z.string().optional(),
389
+ sku: z.nullable(z.string()),
395
390
  name: z.string(),
396
- slug: z.string(),
397
- short_description: z.string().optional(),
391
+ slug: z.nullable(z.string()),
392
+ short_description: z.nullable(z.string()),
398
393
  product_type: BundleProductDetailProductType$inboundSchema,
399
394
  active: z.boolean().default(true),
400
395
  stock_available: z.boolean().default(true),
@@ -402,26 +397,25 @@ export const BundleProductDetail$inboundSchema: z.ZodType<
402
397
  on_subscription: z.boolean().default(false),
403
398
  on_promotion: z.boolean().default(false),
404
399
  has_variant: z.boolean().default(false),
405
- tags: z.nullable(z.array(z.string())).optional(),
406
- category_ids: z.array(z.string()).optional(),
407
- reviews_rating_sum: z.number().optional(),
408
- reviews_count: z.number().int().optional(),
409
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
400
+ tags: z.nullable(z.array(z.string())),
401
+ category_ids: z.array(z.string()),
402
+ reviews_rating_sum: z.number(),
403
+ reviews_count: z.number().int(),
404
+ attributes: z.array(ProductAttribute$inboundSchema),
410
405
  pricing: ProductPricing$inboundSchema,
411
406
  variant_options: z.nullable(z.array(VariantOption$inboundSchema)),
412
407
  promotion: z.nullable(ProductPromotion$inboundSchema),
413
408
  images: z.array(ProductImage$inboundSchema),
414
409
  subscription: z.array(ProductSubscription$inboundSchema),
415
- bundle_items: z.array(z.lazy(() => BundleProductDetailSKU$inboundSchema))
416
- .optional(),
417
- description: z.string().optional(),
418
- hsn_code: z.string().optional(),
419
- videos: z.array(ProductVideo$inboundSchema).optional(),
420
- shipping: z.nullable(ProductShipping$inboundSchema).optional(),
421
- upselling_product_ids: z.array(z.string()).optional(),
422
- crossselling_product_ids: z.array(z.string()).optional(),
423
- seo: Seo$inboundSchema.optional(),
424
- metadata: z.record(z.string()).optional(),
410
+ bundle_items: z.array(z.lazy(() => BundleProductDetailSKU$inboundSchema)),
411
+ description: z.nullable(z.string()),
412
+ hsn_code: z.nullable(z.string()),
413
+ videos: z.array(ProductVideo$inboundSchema),
414
+ shipping: z.nullable(ProductShipping$inboundSchema),
415
+ upselling_product_ids: z.array(z.string()),
416
+ crossselling_product_ids: z.array(z.string()),
417
+ seo: Seo$inboundSchema,
418
+ metadata: z.record(z.string()),
425
419
  }).transform((v) => {
426
420
  return remap$(v, {
427
421
  "short_description": "shortDescription",
@@ -445,10 +439,10 @@ export const BundleProductDetail$inboundSchema: z.ZodType<
445
439
  /** @internal */
446
440
  export type BundleProductDetail$Outbound = {
447
441
  id: string;
448
- sku?: string | undefined;
442
+ sku: string | null;
449
443
  name: string;
450
- slug: string;
451
- short_description?: string | undefined;
444
+ slug: string | null;
445
+ short_description: string | null;
452
446
  product_type: string;
453
447
  active: boolean;
454
448
  stock_available: boolean;
@@ -456,25 +450,25 @@ export type BundleProductDetail$Outbound = {
456
450
  on_subscription: boolean;
457
451
  on_promotion: boolean;
458
452
  has_variant: boolean;
459
- tags?: Array<string> | null | undefined;
460
- category_ids?: Array<string> | undefined;
461
- reviews_rating_sum?: number | undefined;
462
- reviews_count?: number | undefined;
463
- attributes?: Array<ProductAttribute$Outbound> | undefined;
453
+ tags: Array<string> | null;
454
+ category_ids: Array<string>;
455
+ reviews_rating_sum: number;
456
+ reviews_count: number;
457
+ attributes: Array<ProductAttribute$Outbound>;
464
458
  pricing: ProductPricing$Outbound;
465
459
  variant_options: Array<VariantOption$Outbound> | null;
466
460
  promotion: ProductPromotion$Outbound | null;
467
461
  images: Array<ProductImage$Outbound>;
468
462
  subscription: Array<ProductSubscription$Outbound>;
469
- bundle_items?: Array<BundleProductDetailSKU$Outbound> | undefined;
470
- description?: string | undefined;
471
- hsn_code?: string | undefined;
472
- videos?: Array<ProductVideo$Outbound> | undefined;
473
- shipping?: ProductShipping$Outbound | null | undefined;
474
- upselling_product_ids?: Array<string> | undefined;
475
- crossselling_product_ids?: Array<string> | undefined;
476
- seo?: Seo$Outbound | undefined;
477
- metadata?: { [k: string]: string } | undefined;
463
+ bundle_items: Array<BundleProductDetailSKU$Outbound>;
464
+ description: string | null;
465
+ hsn_code: string | null;
466
+ videos: Array<ProductVideo$Outbound>;
467
+ shipping: ProductShipping$Outbound | null;
468
+ upselling_product_ids: Array<string>;
469
+ crossselling_product_ids: Array<string>;
470
+ seo: Seo$Outbound;
471
+ metadata: { [k: string]: string };
478
472
  };
479
473
 
480
474
  /** @internal */
@@ -484,10 +478,10 @@ export const BundleProductDetail$outboundSchema: z.ZodType<
484
478
  BundleProductDetail
485
479
  > = z.object({
486
480
  id: z.string(),
487
- sku: z.string().optional(),
481
+ sku: z.nullable(z.string()),
488
482
  name: z.string(),
489
- slug: z.string(),
490
- shortDescription: z.string().optional(),
483
+ slug: z.nullable(z.string()),
484
+ shortDescription: z.nullable(z.string()),
491
485
  productType: BundleProductDetailProductType$outboundSchema,
492
486
  active: z.boolean().default(true),
493
487
  stockAvailable: z.boolean().default(true),
@@ -495,26 +489,25 @@ export const BundleProductDetail$outboundSchema: z.ZodType<
495
489
  onSubscription: z.boolean().default(false),
496
490
  onPromotion: z.boolean().default(false),
497
491
  hasVariant: z.boolean().default(false),
498
- tags: z.nullable(z.array(z.string())).optional(),
499
- categoryIds: z.array(z.string()).optional(),
500
- reviewsRatingSum: z.number().optional(),
501
- reviewsCount: z.number().int().optional(),
502
- attributes: z.array(ProductAttribute$outboundSchema).optional(),
492
+ tags: z.nullable(z.array(z.string())),
493
+ categoryIds: z.array(z.string()),
494
+ reviewsRatingSum: z.number(),
495
+ reviewsCount: z.number().int(),
496
+ attributes: z.array(ProductAttribute$outboundSchema),
503
497
  pricing: ProductPricing$outboundSchema,
504
498
  variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
505
499
  promotion: z.nullable(ProductPromotion$outboundSchema),
506
500
  images: z.array(ProductImage$outboundSchema),
507
501
  subscription: z.array(ProductSubscription$outboundSchema),
508
- bundleItems: z.array(z.lazy(() => BundleProductDetailSKU$outboundSchema))
509
- .optional(),
510
- description: z.string().optional(),
511
- hsnCode: z.string().optional(),
512
- videos: z.array(ProductVideo$outboundSchema).optional(),
513
- shipping: z.nullable(ProductShipping$outboundSchema).optional(),
514
- upsellingProductIds: z.array(z.string()).optional(),
515
- crosssellingProductIds: z.array(z.string()).optional(),
516
- seo: Seo$outboundSchema.optional(),
517
- metadata: z.record(z.string()).optional(),
502
+ bundleItems: z.array(z.lazy(() => BundleProductDetailSKU$outboundSchema)),
503
+ description: z.nullable(z.string()),
504
+ hsnCode: z.nullable(z.string()),
505
+ videos: z.array(ProductVideo$outboundSchema),
506
+ shipping: z.nullable(ProductShipping$outboundSchema),
507
+ upsellingProductIds: z.array(z.string()),
508
+ crosssellingProductIds: z.array(z.string()),
509
+ seo: Seo$outboundSchema,
510
+ metadata: z.record(z.string()),
518
511
  }).transform((v) => {
519
512
  return remap$(v, {
520
513
  shortDescription: "short_description",
@@ -0,0 +1,144 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type ColorOptionValue = {
11
+ /**
12
+ * The name of the color.
13
+ */
14
+ name: string;
15
+ /**
16
+ * The hex code of the color (e.g., #000000).
17
+ */
18
+ hexcode: string;
19
+ };
20
+
21
+ export type ColorOption = {
22
+ /**
23
+ * The name of the associated option.
24
+ */
25
+ name: string;
26
+ /**
27
+ * The type of the associated option.
28
+ */
29
+ type?: "color" | undefined;
30
+ value: ColorOptionValue;
31
+ };
32
+
33
+ /** @internal */
34
+ export const ColorOptionValue$inboundSchema: z.ZodType<
35
+ ColorOptionValue,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ name: z.string(),
40
+ hexcode: z.string(),
41
+ });
42
+
43
+ /** @internal */
44
+ export type ColorOptionValue$Outbound = {
45
+ name: string;
46
+ hexcode: string;
47
+ };
48
+
49
+ /** @internal */
50
+ export const ColorOptionValue$outboundSchema: z.ZodType<
51
+ ColorOptionValue$Outbound,
52
+ z.ZodTypeDef,
53
+ ColorOptionValue
54
+ > = z.object({
55
+ name: z.string(),
56
+ hexcode: z.string(),
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace ColorOptionValue$ {
64
+ /** @deprecated use `ColorOptionValue$inboundSchema` instead. */
65
+ export const inboundSchema = ColorOptionValue$inboundSchema;
66
+ /** @deprecated use `ColorOptionValue$outboundSchema` instead. */
67
+ export const outboundSchema = ColorOptionValue$outboundSchema;
68
+ /** @deprecated use `ColorOptionValue$Outbound` instead. */
69
+ export type Outbound = ColorOptionValue$Outbound;
70
+ }
71
+
72
+ export function colorOptionValueToJSON(
73
+ colorOptionValue: ColorOptionValue,
74
+ ): string {
75
+ return JSON.stringify(
76
+ ColorOptionValue$outboundSchema.parse(colorOptionValue),
77
+ );
78
+ }
79
+
80
+ export function colorOptionValueFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<ColorOptionValue, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => ColorOptionValue$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'ColorOptionValue' from JSON`,
87
+ );
88
+ }
89
+
90
+ /** @internal */
91
+ export const ColorOption$inboundSchema: z.ZodType<
92
+ ColorOption,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.object({
96
+ name: z.string(),
97
+ type: z.literal("color").optional(),
98
+ value: z.lazy(() => ColorOptionValue$inboundSchema),
99
+ });
100
+
101
+ /** @internal */
102
+ export type ColorOption$Outbound = {
103
+ name: string;
104
+ type: "color";
105
+ value: ColorOptionValue$Outbound;
106
+ };
107
+
108
+ /** @internal */
109
+ export const ColorOption$outboundSchema: z.ZodType<
110
+ ColorOption$Outbound,
111
+ z.ZodTypeDef,
112
+ ColorOption
113
+ > = z.object({
114
+ name: z.string(),
115
+ type: z.literal("color").default("color" as const),
116
+ value: z.lazy(() => ColorOptionValue$outboundSchema),
117
+ });
118
+
119
+ /**
120
+ * @internal
121
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
122
+ */
123
+ export namespace ColorOption$ {
124
+ /** @deprecated use `ColorOption$inboundSchema` instead. */
125
+ export const inboundSchema = ColorOption$inboundSchema;
126
+ /** @deprecated use `ColorOption$outboundSchema` instead. */
127
+ export const outboundSchema = ColorOption$outboundSchema;
128
+ /** @deprecated use `ColorOption$Outbound` instead. */
129
+ export type Outbound = ColorOption$Outbound;
130
+ }
131
+
132
+ export function colorOptionToJSON(colorOption: ColorOption): string {
133
+ return JSON.stringify(ColorOption$outboundSchema.parse(colorOption));
134
+ }
135
+
136
+ export function colorOptionFromJSON(
137
+ jsonString: string,
138
+ ): SafeParseResult<ColorOption, SDKValidationError> {
139
+ return safeParse(
140
+ jsonString,
141
+ (x) => ColorOption$inboundSchema.parse(JSON.parse(x)),
142
+ `Failed to parse 'ColorOption' from JSON`,
143
+ );
144
+ }
@@ -8,9 +8,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type Currency = {
11
- name?: string | undefined;
12
- code?: string | undefined;
13
- symbol?: string | undefined;
11
+ name: string;
12
+ code: string;
13
+ symbol: string;
14
14
  };
15
15
 
16
16
  /** @internal */
@@ -19,16 +19,16 @@ export const Currency$inboundSchema: z.ZodType<
19
19
  z.ZodTypeDef,
20
20
  unknown
21
21
  > = z.object({
22
- name: z.string().optional(),
23
- code: z.string().optional(),
24
- symbol: z.string().optional(),
22
+ name: z.string(),
23
+ code: z.string(),
24
+ symbol: z.string(),
25
25
  });
26
26
 
27
27
  /** @internal */
28
28
  export type Currency$Outbound = {
29
- name?: string | undefined;
30
- code?: string | undefined;
31
- symbol?: string | undefined;
29
+ name: string;
30
+ code: string;
31
+ symbol: string;
32
32
  };
33
33
 
34
34
  /** @internal */
@@ -37,9 +37,9 @@ export const Currency$outboundSchema: z.ZodType<
37
37
  z.ZodTypeDef,
38
38
  Currency
39
39
  > = z.object({
40
- name: z.string().optional(),
41
- code: z.string().optional(),
42
- symbol: z.string().optional(),
40
+ name: z.string(),
41
+ code: z.string(),
42
+ symbol: z.string(),
43
43
  });
44
44
 
45
45
  /**
@@ -12,6 +12,7 @@ export * from "./business.js";
12
12
  export * from "./cardpayment.js";
13
13
  export * from "./cart.js";
14
14
  export * from "./cartitem.js";
15
+ export * from "./coloroption.js";
15
16
  export * from "./country.js";
16
17
  export * from "./countrystate.js";
17
18
  export * from "./coupon.js";
@@ -71,6 +72,7 @@ export * from "./seo.js";
71
72
  export * from "./shipmentitem.js";
72
73
  export * from "./singleproduct.js";
73
74
  export * from "./singleproductdetail.js";
75
+ export * from "./singleselectoption.js";
74
76
  export * from "./sku.js";
75
77
  export * from "./updatecartitem.js";
76
78
  export * from "./updatecustomer.js";
@@ -20,15 +20,15 @@ export type NotificationPreferences = {
20
20
  /**
21
21
  * Set specific channel preferences
22
22
  */
23
- transactional?: NotificationChannelPreferences | undefined;
23
+ transactional: NotificationChannelPreferences;
24
24
  /**
25
25
  * Set specific channel preferences
26
26
  */
27
- promotional?: NotificationChannelPreferences | undefined;
27
+ promotional: NotificationChannelPreferences;
28
28
  /**
29
29
  * Set specific channel preferences
30
30
  */
31
- newsletter?: NotificationChannelPreferences | undefined;
31
+ newsletter: NotificationChannelPreferences;
32
32
  };
33
33
 
34
34
  /** @internal */
@@ -37,16 +37,16 @@ export const NotificationPreferences$inboundSchema: z.ZodType<
37
37
  z.ZodTypeDef,
38
38
  unknown
39
39
  > = z.object({
40
- transactional: NotificationChannelPreferences$inboundSchema.optional(),
41
- promotional: NotificationChannelPreferences$inboundSchema.optional(),
42
- newsletter: NotificationChannelPreferences$inboundSchema.optional(),
40
+ transactional: NotificationChannelPreferences$inboundSchema,
41
+ promotional: NotificationChannelPreferences$inboundSchema,
42
+ newsletter: NotificationChannelPreferences$inboundSchema,
43
43
  });
44
44
 
45
45
  /** @internal */
46
46
  export type NotificationPreferences$Outbound = {
47
- transactional?: NotificationChannelPreferences$Outbound | undefined;
48
- promotional?: NotificationChannelPreferences$Outbound | undefined;
49
- newsletter?: NotificationChannelPreferences$Outbound | undefined;
47
+ transactional: NotificationChannelPreferences$Outbound;
48
+ promotional: NotificationChannelPreferences$Outbound;
49
+ newsletter: NotificationChannelPreferences$Outbound;
50
50
  };
51
51
 
52
52
  /** @internal */
@@ -55,9 +55,9 @@ export const NotificationPreferences$outboundSchema: z.ZodType<
55
55
  z.ZodTypeDef,
56
56
  NotificationPreferences
57
57
  > = z.object({
58
- transactional: NotificationChannelPreferences$outboundSchema.optional(),
59
- promotional: NotificationChannelPreferences$outboundSchema.optional(),
60
- newsletter: NotificationChannelPreferences$outboundSchema.optional(),
58
+ transactional: NotificationChannelPreferences$outboundSchema,
59
+ promotional: NotificationChannelPreferences$outboundSchema,
60
+ newsletter: NotificationChannelPreferences$outboundSchema,
61
61
  });
62
62
 
63
63
  /**