ce-storefront 0.3.3 → 0.3.5

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 (244) 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/lib/config.js.map +1 -1
  57. package/esm/models/components/anonymoususer.d.ts +87 -0
  58. package/esm/models/components/anonymoususer.d.ts.map +1 -0
  59. package/esm/models/components/anonymoususer.js +78 -0
  60. package/esm/models/components/anonymoususer.js.map +1 -0
  61. package/esm/models/components/cart.d.ts +1 -1
  62. package/esm/models/components/cart.d.ts.map +1 -1
  63. package/esm/models/components/cart.js +1 -1
  64. package/esm/models/components/cart.js.map +1 -1
  65. package/esm/models/components/createcustomer.d.ts +1 -1
  66. package/esm/models/components/createcustomer.d.ts.map +1 -1
  67. package/esm/models/components/createcustomer.js +1 -1
  68. package/esm/models/components/createcustomer.js.map +1 -1
  69. package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
  70. package/esm/models/components/customeraddress.d.ts.map +1 -0
  71. package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
  72. package/esm/models/components/customeraddress.js.map +1 -0
  73. package/esm/models/components/freegoodspromotion.d.ts +2 -2
  74. package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
  75. package/esm/models/components/freegoodspromotion.js +2 -2
  76. package/esm/models/components/freegoodspromotion.js.map +1 -1
  77. package/esm/models/components/index.d.ts +3 -3
  78. package/esm/models/components/index.d.ts.map +1 -1
  79. package/esm/models/components/index.js +3 -3
  80. package/esm/models/components/index.js.map +1 -1
  81. package/esm/models/components/orderdetail.d.ts +1 -1
  82. package/esm/models/components/orderdetail.d.ts.map +1 -1
  83. package/esm/models/components/orderdetail.js +1 -1
  84. package/esm/models/components/orderdetail.js.map +1 -1
  85. package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
  86. package/esm/models/components/product.d.ts.map +1 -0
  87. package/esm/models/components/{productlist.js → product.js} +16 -20
  88. package/esm/models/components/product.js.map +1 -0
  89. package/esm/models/components/productdetail.d.ts +4 -4
  90. package/esm/models/components/productdetail.d.ts.map +1 -1
  91. package/esm/models/components/productdetail.js +4 -4
  92. package/esm/models/components/productdetail.js.map +1 -1
  93. package/esm/models/components/productlistresponse.d.ts +3 -3
  94. package/esm/models/components/productlistresponse.d.ts.map +1 -1
  95. package/esm/models/components/productlistresponse.js +3 -3
  96. package/esm/models/components/productlistresponse.js.map +1 -1
  97. package/esm/models/components/productpromotion.d.ts +11 -5
  98. package/esm/models/components/productpromotion.d.ts.map +1 -1
  99. package/esm/models/operations/getpaymentmethods.d.ts +143 -0
  100. package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
  101. package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
  102. package/esm/models/operations/getpaymentmethods.js.map +1 -0
  103. package/esm/models/operations/getsimilar.d.ts +2 -27
  104. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  105. package/esm/models/operations/getsimilar.js +2 -27
  106. package/esm/models/operations/getsimilar.js.map +1 -1
  107. package/esm/models/operations/index.d.ts +1 -2
  108. package/esm/models/operations/index.d.ts.map +1 -1
  109. package/esm/models/operations/index.js +1 -2
  110. package/esm/models/operations/index.js.map +1 -1
  111. package/esm/models/operations/postauthanonymous.d.ts +2 -2
  112. package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
  113. package/esm/models/operations/postauthanonymous.js +2 -2
  114. package/esm/models/operations/postauthanonymous.js.map +1 -1
  115. package/esm/models/operations/postcartitemid.d.ts +15 -15
  116. package/esm/models/operations/postcartitemid.d.ts.map +1 -1
  117. package/esm/models/operations/postcartitemid.js +15 -15
  118. package/esm/models/operations/postcartitemid.js.map +1 -1
  119. package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
  120. package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
  121. package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
  122. package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
  123. package/esm/sdk/customers.d.ts +24 -1
  124. package/esm/sdk/customers.d.ts.map +1 -1
  125. package/esm/sdk/customers.js +31 -0
  126. package/esm/sdk/customers.js.map +1 -1
  127. package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
  128. package/esm/sdk/juspay.d.ts.map +1 -0
  129. package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
  130. package/esm/sdk/juspay.js.map +1 -0
  131. package/esm/sdk/orders.d.ts +9 -2
  132. package/esm/sdk/orders.d.ts.map +1 -1
  133. package/esm/sdk/orders.js +12 -2
  134. package/esm/sdk/orders.js.map +1 -1
  135. package/esm/sdk/payments.d.ts +23 -1
  136. package/esm/sdk/payments.d.ts.map +1 -1
  137. package/esm/sdk/payments.js +31 -0
  138. package/esm/sdk/payments.js.map +1 -1
  139. package/esm/sdk/products.d.ts +1 -1
  140. package/esm/sdk/products.js +1 -1
  141. package/esm/sdk/sdk.d.ts +3 -12
  142. package/esm/sdk/sdk.d.ts.map +1 -1
  143. package/esm/sdk/sdk.js +3 -15
  144. package/esm/sdk/sdk.js.map +1 -1
  145. package/jsr.json +1 -1
  146. package/package.json +1 -1
  147. package/src/funcs/catalogProductsGet.ts +1 -1
  148. package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
  149. package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
  150. package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
  151. package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
  152. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
  153. package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
  154. package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
  155. package/src/funcs/paymentsGetMethods.ts +6 -7
  156. package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
  157. package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
  158. package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
  159. package/src/lib/config.ts +3 -3
  160. package/src/models/components/anonymoususer.ts +167 -0
  161. package/src/models/components/cart.ts +1 -1
  162. package/src/models/components/createcustomer.ts +1 -1
  163. package/src/models/components/freegoodspromotion.ts +4 -4
  164. package/src/models/components/index.ts +3 -3
  165. package/src/models/components/orderdetail.ts +1 -1
  166. package/src/models/components/{productlist.ts → product.ts} +73 -78
  167. package/src/models/components/productdetail.ts +8 -8
  168. package/src/models/components/productlistresponse.ts +9 -9
  169. package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
  170. package/src/models/operations/getsimilar.ts +4 -62
  171. package/src/models/operations/index.ts +1 -2
  172. package/src/models/operations/postauthanonymous.ts +4 -4
  173. package/src/models/operations/postcartitemid.ts +27 -25
  174. package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
  175. package/src/sdk/customers.ts +58 -1
  176. package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
  177. package/src/sdk/orders.ts +22 -4
  178. package/src/sdk/payments.ts +57 -2
  179. package/src/sdk/products.ts +1 -1
  180. package/src/sdk/sdk.ts +4 -22
  181. package/docs/sdks/customersapi/README.md +0 -321
  182. package/docs/sdks/ordersapi/README.md +0 -86
  183. package/docs/sdks/paymentsapi/README.md +0 -247
  184. package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
  185. package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
  186. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
  187. package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
  188. package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
  189. package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
  190. package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
  191. package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
  192. package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
  193. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
  194. package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
  195. package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
  196. package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
  197. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
  198. package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
  199. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
  200. package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
  201. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
  202. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
  203. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
  204. package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
  205. package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
  206. package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
  207. package/esm/models/components/customeraddressinput.d.ts.map +0 -1
  208. package/esm/models/components/customeraddressinput.js.map +0 -1
  209. package/esm/models/components/productlist.d.ts.map +0 -1
  210. package/esm/models/components/productlist.js.map +0 -1
  211. package/esm/models/components/recommendedproduct.d.ts +0 -155
  212. package/esm/models/components/recommendedproduct.d.ts.map +0 -1
  213. package/esm/models/components/recommendedproduct.js +0 -193
  214. package/esm/models/components/recommendedproduct.js.map +0 -1
  215. package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
  216. package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
  217. package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
  218. package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
  219. package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
  220. package/esm/models/operations/getrecommendedproducts.js +0 -87
  221. package/esm/models/operations/getrecommendedproducts.js.map +0 -1
  222. package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
  223. package/esm/sdk/cestorefrontpayments.js.map +0 -1
  224. package/esm/sdk/customersapi.d.ts +0 -34
  225. package/esm/sdk/customersapi.d.ts.map +0 -1
  226. package/esm/sdk/customersapi.js +0 -48
  227. package/esm/sdk/customersapi.js.map +0 -1
  228. package/esm/sdk/ordersapi.d.ts +0 -12
  229. package/esm/sdk/ordersapi.d.ts.map +0 -1
  230. package/esm/sdk/ordersapi.js +0 -18
  231. package/esm/sdk/ordersapi.js.map +0 -1
  232. package/esm/sdk/paymentsapi.d.ts +0 -27
  233. package/esm/sdk/paymentsapi.d.ts.map +0 -1
  234. package/esm/sdk/paymentsapi.js +0 -39
  235. package/esm/sdk/paymentsapi.js.map +0 -1
  236. package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
  237. package/esm/sdk/paymentsapijuspay.js.map +0 -1
  238. package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
  239. package/src/models/components/recommendedproduct.ts +0 -385
  240. package/src/models/operations/getrecommendedproducts.ts +0 -206
  241. package/src/sdk/customersapi.ts +0 -82
  242. package/src/sdk/ordersapi.ts +0 -27
  243. package/src/sdk/paymentsapi.ts +0 -64
  244. package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
@@ -30,11 +30,11 @@ import { Result } from "../types/fp.js";
30
30
  */
31
31
  export async function paymentsGetMethods(
32
32
  client: CeStorefrontCore,
33
- request: operations.GetPaymentsPaymentMethodsRequest,
33
+ request: operations.GetPaymentMethodsRequest,
34
34
  options?: RequestOptions,
35
35
  ): Promise<
36
36
  Result<
37
- operations.GetPaymentsPaymentMethodsResponseBody,
37
+ operations.GetPaymentMethodsResponseBody,
38
38
  | CeError
39
39
  | SDKValidationError
40
40
  | UnexpectedClientError
@@ -46,8 +46,7 @@ export async function paymentsGetMethods(
46
46
  > {
47
47
  const parsed = safeParse(
48
48
  request,
49
- (value) =>
50
- operations.GetPaymentsPaymentMethodsRequest$outboundSchema.parse(value),
49
+ (value) => operations.GetPaymentMethodsRequest$outboundSchema.parse(value),
51
50
  "Input validation failed",
52
51
  );
53
52
  if (!parsed.ok) {
@@ -71,7 +70,7 @@ export async function paymentsGetMethods(
71
70
  const requestSecurity = resolveGlobalSecurity(securityInput);
72
71
 
73
72
  const context = {
74
- operationID: "get-payments-payment-methods",
73
+ operationID: "get-payment-methods",
75
74
  oAuth2Scopes: [],
76
75
 
77
76
  resolvedSecurity: requestSecurity,
@@ -110,7 +109,7 @@ export async function paymentsGetMethods(
110
109
  const response = doResult.value;
111
110
 
112
111
  const [result] = await M.match<
113
- operations.GetPaymentsPaymentMethodsResponseBody,
112
+ operations.GetPaymentMethodsResponseBody,
114
113
  | CeError
115
114
  | SDKValidationError
116
115
  | UnexpectedClientError
@@ -119,7 +118,7 @@ export async function paymentsGetMethods(
119
118
  | RequestTimeoutError
120
119
  | ConnectionError
121
120
  >(
122
- M.json(200, operations.GetPaymentsPaymentMethodsResponseBody$inboundSchema),
121
+ M.json(200, operations.GetPaymentMethodsResponseBody$inboundSchema),
123
122
  M.fail("4XX"),
124
123
  M.fail("5XX"),
125
124
  )(response);
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * List all saved cards.
31
31
  */
32
- export async function paymentsAPIGetPaymentsCards(
32
+ export async function paymentsGetPaymentsCards(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetPaymentsCardsRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
30
30
  * Validating the VPA will help in reducing the failure rate due to incorrect vpa.
31
31
  */
32
- export async function paymentsAPIGetPaymentsVerifyVpa(
32
+ export async function paymentsGetPaymentsVerifyVpa(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.GetPaymentsVerifyVpaRequest,
35
35
  options?: RequestOptions,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * @remarks
30
30
  * Add a new card
31
31
  */
32
- export async function paymentsAPIPostPaymentsCards(
32
+ export async function paymentsPostPaymentsCards(
33
33
  client: CeStorefrontCore,
34
34
  request: operations.PostPaymentsCardsRequestBody,
35
35
  options?: RequestOptions,
package/src/lib/config.ts CHANGED
@@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
74
74
  export const SDK_METADATA = {
75
75
  language: "typescript",
76
76
  openapiDocVersion: "1.0",
77
- sdkVersion: "0.3.3",
78
- genVersion: "2.493.34",
79
- userAgent: "speakeasy-sdk/typescript 0.3.3 2.493.34 1.0 ce-storefront",
77
+ sdkVersion: "0.3.5",
78
+ genVersion: "2.495.0",
79
+ userAgent: "speakeasy-sdk/typescript 0.3.5 2.495.0 1.0 ce-storefront",
80
80
  } as const;
@@ -0,0 +1,167 @@
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 AnonymousUser = {
12
+ /**
13
+ * The unique identifier (ULID) of the user.
14
+ */
15
+ id: string;
16
+ /**
17
+ * Indicates whether the user is anonymous.
18
+ */
19
+ isAnonymous?: boolean | undefined;
20
+ /**
21
+ * Indicates whether the user is currently logged in.
22
+ */
23
+ isLoggedIn?: boolean | undefined;
24
+ /**
25
+ * User’s first name.
26
+ */
27
+ firstName?: string | null | undefined;
28
+ /**
29
+ * User’s last name.
30
+ */
31
+ lastName?: string | null | undefined;
32
+ /**
33
+ * 10 digit phone number without country code.
34
+ */
35
+ phone?: string | null | undefined;
36
+ /**
37
+ * User’s email I’d.
38
+ */
39
+ email?: string | null | undefined;
40
+ /**
41
+ * Boolean indicating whether the email is verified.
42
+ */
43
+ isEmailVerified?: boolean | undefined;
44
+ /**
45
+ * Boolean indicating whether the phone is verified.
46
+ */
47
+ isPhoneVerified?: boolean | undefined;
48
+ /**
49
+ * URL to the user's profile image.
50
+ */
51
+ profileImageUrl?: string | null | undefined;
52
+ /**
53
+ * Timestamps indicate when the user's account was created.
54
+ */
55
+ createdAt?: string | undefined;
56
+ /**
57
+ * Timestamps indicating when the user account was last modified.
58
+ */
59
+ modifiedAt?: string | undefined;
60
+ };
61
+
62
+ /** @internal */
63
+ export const AnonymousUser$inboundSchema: z.ZodType<
64
+ AnonymousUser,
65
+ z.ZodTypeDef,
66
+ unknown
67
+ > = z.object({
68
+ id: z.string(),
69
+ is_anonymous: z.boolean().optional(),
70
+ is_logged_in: z.boolean().optional(),
71
+ first_name: z.nullable(z.string()).optional(),
72
+ last_name: z.nullable(z.string()).optional(),
73
+ phone: z.nullable(z.string()).optional(),
74
+ email: z.nullable(z.string()).optional(),
75
+ is_email_verified: z.boolean().default(false),
76
+ is_phone_verified: z.boolean().default(false),
77
+ profile_image_url: z.nullable(z.string()).optional(),
78
+ created_at: z.string().optional(),
79
+ modified_at: z.string().optional(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ "is_anonymous": "isAnonymous",
83
+ "is_logged_in": "isLoggedIn",
84
+ "first_name": "firstName",
85
+ "last_name": "lastName",
86
+ "is_email_verified": "isEmailVerified",
87
+ "is_phone_verified": "isPhoneVerified",
88
+ "profile_image_url": "profileImageUrl",
89
+ "created_at": "createdAt",
90
+ "modified_at": "modifiedAt",
91
+ });
92
+ });
93
+
94
+ /** @internal */
95
+ export type AnonymousUser$Outbound = {
96
+ id: string;
97
+ is_anonymous?: boolean | undefined;
98
+ is_logged_in?: boolean | undefined;
99
+ first_name?: string | null | undefined;
100
+ last_name?: string | null | undefined;
101
+ phone?: string | null | undefined;
102
+ email?: string | null | undefined;
103
+ is_email_verified: boolean;
104
+ is_phone_verified: boolean;
105
+ profile_image_url?: string | null | undefined;
106
+ created_at?: string | undefined;
107
+ modified_at?: string | undefined;
108
+ };
109
+
110
+ /** @internal */
111
+ export const AnonymousUser$outboundSchema: z.ZodType<
112
+ AnonymousUser$Outbound,
113
+ z.ZodTypeDef,
114
+ AnonymousUser
115
+ > = z.object({
116
+ id: z.string(),
117
+ isAnonymous: z.boolean().optional(),
118
+ isLoggedIn: z.boolean().optional(),
119
+ firstName: z.nullable(z.string()).optional(),
120
+ lastName: z.nullable(z.string()).optional(),
121
+ phone: z.nullable(z.string()).optional(),
122
+ email: z.nullable(z.string()).optional(),
123
+ isEmailVerified: z.boolean().default(false),
124
+ isPhoneVerified: z.boolean().default(false),
125
+ profileImageUrl: z.nullable(z.string()).optional(),
126
+ createdAt: z.string().optional(),
127
+ modifiedAt: z.string().optional(),
128
+ }).transform((v) => {
129
+ return remap$(v, {
130
+ isAnonymous: "is_anonymous",
131
+ isLoggedIn: "is_logged_in",
132
+ firstName: "first_name",
133
+ lastName: "last_name",
134
+ isEmailVerified: "is_email_verified",
135
+ isPhoneVerified: "is_phone_verified",
136
+ profileImageUrl: "profile_image_url",
137
+ createdAt: "created_at",
138
+ modifiedAt: "modified_at",
139
+ });
140
+ });
141
+
142
+ /**
143
+ * @internal
144
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
145
+ */
146
+ export namespace AnonymousUser$ {
147
+ /** @deprecated use `AnonymousUser$inboundSchema` instead. */
148
+ export const inboundSchema = AnonymousUser$inboundSchema;
149
+ /** @deprecated use `AnonymousUser$outboundSchema` instead. */
150
+ export const outboundSchema = AnonymousUser$outboundSchema;
151
+ /** @deprecated use `AnonymousUser$Outbound` instead. */
152
+ export type Outbound = AnonymousUser$Outbound;
153
+ }
154
+
155
+ export function anonymousUserToJSON(anonymousUser: AnonymousUser): string {
156
+ return JSON.stringify(AnonymousUser$outboundSchema.parse(anonymousUser));
157
+ }
158
+
159
+ export function anonymousUserFromJSON(
160
+ jsonString: string,
161
+ ): SafeParseResult<AnonymousUser, SDKValidationError> {
162
+ return safeParse(
163
+ jsonString,
164
+ (x) => AnonymousUser$inboundSchema.parse(JSON.parse(x)),
165
+ `Failed to parse 'AnonymousUser' from JSON`,
166
+ );
167
+ }
@@ -24,7 +24,7 @@ import {
24
24
  CustomerAddress$inboundSchema,
25
25
  CustomerAddress$Outbound,
26
26
  CustomerAddress$outboundSchema,
27
- } from "./customeraddressinput.js";
27
+ } from "./customeraddress.js";
28
28
 
29
29
  export type CartMetadata = {};
30
30
 
@@ -17,7 +17,7 @@ import {
17
17
  CustomerAddressInput$inboundSchema,
18
18
  CustomerAddressInput$Outbound,
19
19
  CustomerAddressInput$outboundSchema,
20
- } from "./customeraddressinput.js";
20
+ } from "./customeraddress.js";
21
21
 
22
22
  export type CreateCustomer = {
23
23
  business?: Business | undefined;
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type FreeGoodsPromotion = {
12
- promotionType?: "discount" | undefined;
12
+ promotionType?: "free-goods" | undefined;
13
13
  /**
14
14
  * The quantity of items a customer must buy to receive free goods.
15
15
  */
@@ -30,7 +30,7 @@ export const FreeGoodsPromotion$inboundSchema: z.ZodType<
30
30
  z.ZodTypeDef,
31
31
  unknown
32
32
  > = z.object({
33
- promotion_type: z.literal("discount").optional(),
33
+ promotion_type: z.literal("free-goods").optional(),
34
34
  buy_quantity: z.number().int(),
35
35
  get_quantity: z.number().int(),
36
36
  customer_group_id: z.nullable(z.string()).optional(),
@@ -45,7 +45,7 @@ export const FreeGoodsPromotion$inboundSchema: z.ZodType<
45
45
 
46
46
  /** @internal */
47
47
  export type FreeGoodsPromotion$Outbound = {
48
- promotion_type: "discount";
48
+ promotion_type: "free-goods";
49
49
  buy_quantity: number;
50
50
  get_quantity: number;
51
51
  customer_group_id?: string | null | undefined;
@@ -57,7 +57,7 @@ export const FreeGoodsPromotion$outboundSchema: z.ZodType<
57
57
  z.ZodTypeDef,
58
58
  FreeGoodsPromotion
59
59
  > = z.object({
60
- promotionType: z.literal("discount").default("discount" as const),
60
+ promotionType: z.literal("free-goods").default("free-goods" as const),
61
61
  buyQuantity: z.number().int(),
62
62
  getQuantity: z.number().int(),
63
63
  customerGroupId: z.nullable(z.string()).optional(),
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  export * from "./analyticsevent.js";
6
+ export * from "./anonymoususer.js";
6
7
  export * from "./banktransfer.js";
7
8
  export * from "./business.js";
8
9
  export * from "./cardpayment.js";
@@ -14,7 +15,7 @@ export * from "./coupon.js";
14
15
  export * from "./createcustomer.js";
15
16
  export * from "./createreview.js";
16
17
  export * from "./currency.js";
17
- export * from "./customeraddressinput.js";
18
+ export * from "./customeraddress.js";
18
19
  export * from "./customerdetail.js";
19
20
  export * from "./customerloyalty.js";
20
21
  export * from "./customerreadyforreview.js";
@@ -50,12 +51,12 @@ export * from "./payupaymentinfo.js";
50
51
  export * from "./payupaymentmethod.js";
51
52
  export * from "./payusavedcard.js";
52
53
  export * from "./pincode.js";
54
+ export * from "./product.js";
53
55
  export * from "./productattribute.js";
54
56
  export * from "./productbundleitem.js";
55
57
  export * from "./productcategory.js";
56
58
  export * from "./productdetail.js";
57
59
  export * from "./productimage.js";
58
- export * from "./productlist.js";
59
60
  export * from "./productlistresponse.js";
60
61
  export * from "./productpackaging.js";
61
62
  export * from "./productpricing.js";
@@ -65,7 +66,6 @@ export * from "./productshipping.js";
65
66
  export * from "./productsubscription.js";
66
67
  export * from "./productvideo.js";
67
68
  export * from "./promotion.js";
68
- export * from "./recommendedproduct.js";
69
69
  export * from "./saleschannel.js";
70
70
  export * from "./security.js";
71
71
  export * from "./seo.js";
@@ -13,7 +13,7 @@ import {
13
13
  CustomerAddress$inboundSchema,
14
14
  CustomerAddress$Outbound,
15
15
  CustomerAddress$outboundSchema,
16
- } from "./customeraddressinput.js";
16
+ } from "./customeraddress.js";
17
17
  import {
18
18
  OrderItem,
19
19
  OrderItem$inboundSchema,
@@ -69,13 +69,12 @@ export type VariantOptions = {
69
69
  optionValue?: Array<string> | undefined;
70
70
  };
71
71
 
72
- export type ProductList = {
72
+ export type Product = {
73
73
  /**
74
74
  * The ULID of the product
75
75
  */
76
76
  id?: string | undefined;
77
77
  name?: string | undefined;
78
- description?: string | undefined;
79
78
  shortDescription?: string | undefined;
80
79
  productType?: ProductType | undefined;
81
80
  active?: boolean | undefined;
@@ -190,70 +189,67 @@ export function variantOptionsFromJSON(
190
189
  }
191
190
 
192
191
  /** @internal */
193
- export const ProductList$inboundSchema: z.ZodType<
194
- ProductList,
195
- z.ZodTypeDef,
196
- unknown
197
- > = z.object({
198
- id: z.string().optional(),
199
- name: z.string().optional(),
200
- description: z.string().optional(),
201
- short_description: z.string().optional(),
202
- product_type: ProductType$inboundSchema.optional(),
203
- active: z.boolean().default(true),
204
- sku: z.string().optional(),
205
- stock_available: z.boolean().default(true),
206
- is_featured: z.boolean().default(false),
207
- on_offer: z.boolean().default(false),
208
- on_subscription: z.boolean().default(false),
209
- on_promotion: z.boolean().default(false),
210
- has_variant: z.boolean().default(false),
211
- variant_options: z.nullable(
212
- z.array(z.lazy(() => VariantOptions$inboundSchema)),
213
- ).optional(),
214
- attributes: z.array(ProductAttribute$inboundSchema).optional(),
215
- images: z.array(ProductImage$inboundSchema).optional(),
216
- pricing: ProductPricing$inboundSchema.optional(),
217
- shipping: ProductShipping$inboundSchema.optional(),
218
- tags: z.nullable(z.array(z.string())).optional(),
219
- category_ids: z.array(z.string()).optional(),
220
- reviews_rating_sum: z.number().optional(),
221
- reviews_count: z.number().int().optional(),
222
- hsn_code: z.string().optional(),
223
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
224
- .optional(),
225
- modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
226
- .optional(),
227
- promotion: z.array(ProductPromotion$inboundSchema).optional(),
228
- subscription: z.array(ProductSubscription$inboundSchema).optional(),
229
- bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
230
- variants: z.array(Variant$inboundSchema).optional(),
231
- }).transform((v) => {
232
- return remap$(v, {
233
- "short_description": "shortDescription",
234
- "product_type": "productType",
235
- "stock_available": "stockAvailable",
236
- "is_featured": "isFeatured",
237
- "on_offer": "onOffer",
238
- "on_subscription": "onSubscription",
239
- "on_promotion": "onPromotion",
240
- "has_variant": "hasVariant",
241
- "variant_options": "variantOptions",
242
- "category_ids": "categoryIds",
243
- "reviews_rating_sum": "reviewsRatingSum",
244
- "reviews_count": "reviewsCount",
245
- "hsn_code": "hsnCode",
246
- "created_at": "createdAt",
247
- "modified_at": "modifiedAt",
248
- "bundle_items": "bundleItems",
192
+ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
193
+ z.object({
194
+ id: z.string().optional(),
195
+ name: z.string().optional(),
196
+ short_description: z.string().optional(),
197
+ product_type: ProductType$inboundSchema.optional(),
198
+ active: z.boolean().default(true),
199
+ sku: z.string().optional(),
200
+ stock_available: z.boolean().default(true),
201
+ is_featured: z.boolean().default(false),
202
+ on_offer: z.boolean().default(false),
203
+ on_subscription: z.boolean().default(false),
204
+ on_promotion: z.boolean().default(false),
205
+ has_variant: z.boolean().default(false),
206
+ variant_options: z.nullable(
207
+ z.array(z.lazy(() => VariantOptions$inboundSchema)),
208
+ ).optional(),
209
+ attributes: z.array(ProductAttribute$inboundSchema).optional(),
210
+ images: z.array(ProductImage$inboundSchema).optional(),
211
+ pricing: ProductPricing$inboundSchema.optional(),
212
+ shipping: ProductShipping$inboundSchema.optional(),
213
+ tags: z.nullable(z.array(z.string())).optional(),
214
+ category_ids: z.array(z.string()).optional(),
215
+ reviews_rating_sum: z.number().optional(),
216
+ reviews_count: z.number().int().optional(),
217
+ hsn_code: z.string().optional(),
218
+ created_at: z.string().datetime({ offset: true }).transform(v =>
219
+ new Date(v)
220
+ ).optional(),
221
+ modified_at: z.string().datetime({ offset: true }).transform(v =>
222
+ new Date(v)
223
+ ).optional(),
224
+ promotion: z.array(ProductPromotion$inboundSchema).optional(),
225
+ subscription: z.array(ProductSubscription$inboundSchema).optional(),
226
+ bundle_items: z.array(ProductBundleItem$inboundSchema).optional(),
227
+ variants: z.array(Variant$inboundSchema).optional(),
228
+ }).transform((v) => {
229
+ return remap$(v, {
230
+ "short_description": "shortDescription",
231
+ "product_type": "productType",
232
+ "stock_available": "stockAvailable",
233
+ "is_featured": "isFeatured",
234
+ "on_offer": "onOffer",
235
+ "on_subscription": "onSubscription",
236
+ "on_promotion": "onPromotion",
237
+ "has_variant": "hasVariant",
238
+ "variant_options": "variantOptions",
239
+ "category_ids": "categoryIds",
240
+ "reviews_rating_sum": "reviewsRatingSum",
241
+ "reviews_count": "reviewsCount",
242
+ "hsn_code": "hsnCode",
243
+ "created_at": "createdAt",
244
+ "modified_at": "modifiedAt",
245
+ "bundle_items": "bundleItems",
246
+ });
249
247
  });
250
- });
251
248
 
252
249
  /** @internal */
253
- export type ProductList$Outbound = {
250
+ export type Product$Outbound = {
254
251
  id?: string | undefined;
255
252
  name?: string | undefined;
256
- description?: string | undefined;
257
253
  short_description?: string | undefined;
258
254
  product_type?: string | undefined;
259
255
  active: boolean;
@@ -283,14 +279,13 @@ export type ProductList$Outbound = {
283
279
  };
284
280
 
285
281
  /** @internal */
286
- export const ProductList$outboundSchema: z.ZodType<
287
- ProductList$Outbound,
282
+ export const Product$outboundSchema: z.ZodType<
283
+ Product$Outbound,
288
284
  z.ZodTypeDef,
289
- ProductList
285
+ Product
290
286
  > = z.object({
291
287
  id: z.string().optional(),
292
288
  name: z.string().optional(),
293
- description: z.string().optional(),
294
289
  shortDescription: z.string().optional(),
295
290
  productType: ProductType$outboundSchema.optional(),
296
291
  active: z.boolean().default(true),
@@ -344,25 +339,25 @@ export const ProductList$outboundSchema: z.ZodType<
344
339
  * @internal
345
340
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
346
341
  */
347
- export namespace ProductList$ {
348
- /** @deprecated use `ProductList$inboundSchema` instead. */
349
- export const inboundSchema = ProductList$inboundSchema;
350
- /** @deprecated use `ProductList$outboundSchema` instead. */
351
- export const outboundSchema = ProductList$outboundSchema;
352
- /** @deprecated use `ProductList$Outbound` instead. */
353
- export type Outbound = ProductList$Outbound;
342
+ export namespace Product$ {
343
+ /** @deprecated use `Product$inboundSchema` instead. */
344
+ export const inboundSchema = Product$inboundSchema;
345
+ /** @deprecated use `Product$outboundSchema` instead. */
346
+ export const outboundSchema = Product$outboundSchema;
347
+ /** @deprecated use `Product$Outbound` instead. */
348
+ export type Outbound = Product$Outbound;
354
349
  }
355
350
 
356
- export function productListToJSON(productList: ProductList): string {
357
- return JSON.stringify(ProductList$outboundSchema.parse(productList));
351
+ export function productToJSON(product: Product): string {
352
+ return JSON.stringify(Product$outboundSchema.parse(product));
358
353
  }
359
354
 
360
- export function productListFromJSON(
355
+ export function productFromJSON(
361
356
  jsonString: string,
362
- ): SafeParseResult<ProductList, SDKValidationError> {
357
+ ): SafeParseResult<Product, SDKValidationError> {
363
358
  return safeParse(
364
359
  jsonString,
365
- (x) => ProductList$inboundSchema.parse(JSON.parse(x)),
366
- `Failed to parse 'ProductList' from JSON`,
360
+ (x) => Product$inboundSchema.parse(JSON.parse(x)),
361
+ `Failed to parse 'Product' from JSON`,
367
362
  );
368
363
  }
@@ -112,7 +112,6 @@ export type ProductDetail = {
112
112
  */
113
113
  id?: string | undefined;
114
114
  name?: string | undefined;
115
- description?: string | undefined;
116
115
  shortDescription?: string | undefined;
117
116
  productType?: ProductDetailProductType | undefined;
118
117
  active?: boolean | undefined;
@@ -138,6 +137,7 @@ export type ProductDetail = {
138
137
  hsnCode?: string | undefined;
139
138
  createdAt?: Date | undefined;
140
139
  modifiedAt?: Date | undefined;
140
+ description?: string | undefined;
141
141
  videos?: Array<ProductVideo> | undefined;
142
142
  promotion?: Array<ProductPromotion> | undefined;
143
143
  subscription?: Array<ProductSubscription> | undefined;
@@ -156,7 +156,7 @@ export type ProductDetail = {
156
156
  salesChannels?: Array<SalesChannel> | undefined;
157
157
  metadata?: Array<ProductDetailMetadata> | null | undefined;
158
158
  seo?: Seo | undefined;
159
- reviewsTags?: Array<string> | undefined;
159
+ reviewsTags?: Array<string> | null | undefined;
160
160
  };
161
161
 
162
162
  /** @internal */
@@ -314,7 +314,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
314
314
  > = z.object({
315
315
  id: z.string().optional(),
316
316
  name: z.string().optional(),
317
- description: z.string().optional(),
318
317
  short_description: z.string().optional(),
319
318
  product_type: ProductDetailProductType$inboundSchema.optional(),
320
319
  active: z.boolean().default(true),
@@ -341,6 +340,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
341
340
  .optional(),
342
341
  modified_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
343
342
  .optional(),
343
+ description: z.string().optional(),
344
344
  videos: z.array(ProductVideo$inboundSchema).optional(),
345
345
  promotion: z.array(ProductPromotion$inboundSchema).optional(),
346
346
  subscription: z.array(ProductSubscription$inboundSchema).optional(),
@@ -355,7 +355,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
355
355
  z.array(z.lazy(() => ProductDetailMetadata$inboundSchema)),
356
356
  ).optional(),
357
357
  seo: Seo$inboundSchema.optional(),
358
- reviews_tags: z.array(z.string()).optional(),
358
+ reviews_tags: z.nullable(z.array(z.string())).optional(),
359
359
  }).transform((v) => {
360
360
  return remap$(v, {
361
361
  "short_description": "shortDescription",
@@ -385,7 +385,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
385
385
  export type ProductDetail$Outbound = {
386
386
  id?: string | undefined;
387
387
  name?: string | undefined;
388
- description?: string | undefined;
389
388
  short_description?: string | undefined;
390
389
  product_type?: string | undefined;
391
390
  active: boolean;
@@ -411,6 +410,7 @@ export type ProductDetail$Outbound = {
411
410
  hsn_code?: string | undefined;
412
411
  created_at?: string | undefined;
413
412
  modified_at?: string | undefined;
413
+ description?: string | undefined;
414
414
  videos?: Array<ProductVideo$Outbound> | undefined;
415
415
  promotion?: Array<ProductPromotion$Outbound> | undefined;
416
416
  subscription?: Array<ProductSubscription$Outbound> | undefined;
@@ -423,7 +423,7 @@ export type ProductDetail$Outbound = {
423
423
  sales_channels?: Array<SalesChannel$Outbound> | undefined;
424
424
  metadata?: Array<ProductDetailMetadata$Outbound> | null | undefined;
425
425
  seo?: Seo$Outbound | undefined;
426
- reviews_tags?: Array<string> | undefined;
426
+ reviews_tags?: Array<string> | null | undefined;
427
427
  };
428
428
 
429
429
  /** @internal */
@@ -434,7 +434,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
434
434
  > = z.object({
435
435
  id: z.string().optional(),
436
436
  name: z.string().optional(),
437
- description: z.string().optional(),
438
437
  shortDescription: z.string().optional(),
439
438
  productType: ProductDetailProductType$outboundSchema.optional(),
440
439
  active: z.boolean().default(true),
@@ -459,6 +458,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
459
458
  hsnCode: z.string().optional(),
460
459
  createdAt: z.date().transform(v => v.toISOString()).optional(),
461
460
  modifiedAt: z.date().transform(v => v.toISOString()).optional(),
461
+ description: z.string().optional(),
462
462
  videos: z.array(ProductVideo$outboundSchema).optional(),
463
463
  promotion: z.array(ProductPromotion$outboundSchema).optional(),
464
464
  subscription: z.array(ProductSubscription$outboundSchema).optional(),
@@ -473,7 +473,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
473
473
  z.array(z.lazy(() => ProductDetailMetadata$outboundSchema)),
474
474
  ).optional(),
475
475
  seo: Seo$outboundSchema.optional(),
476
- reviewsTags: z.array(z.string()).optional(),
476
+ reviewsTags: z.nullable(z.array(z.string())).optional(),
477
477
  }).transform((v) => {
478
478
  return remap$(v, {
479
479
  shortDescription: "short_description",