ce-storefront 0.7.1 → 0.7.3

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 (275) hide show
  1. package/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
  2. package/esm/funcs/authCheckVerificationStatus.js +1 -0
  3. package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
  4. package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
  5. package/esm/funcs/authCreateNotificationPreferences.js +1 -0
  6. package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
  7. package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
  8. package/esm/funcs/authGenerateOtp.js +1 -0
  9. package/esm/funcs/authGenerateOtp.js.map +1 -1
  10. package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
  11. package/esm/funcs/authGetAnonymousToken.js +1 -0
  12. package/esm/funcs/authGetAnonymousToken.js.map +1 -1
  13. package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
  14. package/esm/funcs/authGetNotificationPreferences.js +1 -0
  15. package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
  16. package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
  17. package/esm/funcs/authGetUserDetail.js +1 -0
  18. package/esm/funcs/authGetUserDetail.js.map +1 -1
  19. package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
  20. package/esm/funcs/authLoginWithEmail.js +1 -0
  21. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  22. package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
  23. package/esm/funcs/authLoginWithPhone.js +1 -0
  24. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  25. package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
  26. package/esm/funcs/authLoginWithWhatsapp.js +1 -0
  27. package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
  28. package/esm/funcs/authLogout.d.ts.map +1 -1
  29. package/esm/funcs/authLogout.js +1 -0
  30. package/esm/funcs/authLogout.js.map +1 -1
  31. package/esm/funcs/authRefreshToken.d.ts.map +1 -1
  32. package/esm/funcs/authRefreshToken.js +1 -0
  33. package/esm/funcs/authRefreshToken.js.map +1 -1
  34. package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
  35. package/esm/funcs/authUpdateNotificationPreferences.js +1 -0
  36. package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
  37. package/esm/funcs/authUpdateUser.d.ts.map +1 -1
  38. package/esm/funcs/authUpdateUser.js +1 -0
  39. package/esm/funcs/authUpdateUser.js.map +1 -1
  40. package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
  41. package/esm/funcs/authVerifyOtp.js +1 -0
  42. package/esm/funcs/authVerifyOtp.js.map +1 -1
  43. package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
  44. package/esm/funcs/campaignsSubscribeNewsletter.js +1 -0
  45. package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
  46. package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
  47. package/esm/funcs/cartsApplyCoupon.js +1 -0
  48. package/esm/funcs/cartsApplyCoupon.js.map +1 -1
  49. package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
  50. package/esm/funcs/cartsCreateCart.js +1 -0
  51. package/esm/funcs/cartsCreateCart.js.map +1 -1
  52. package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
  53. package/esm/funcs/cartsCreateCartAddress.js +1 -0
  54. package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
  55. package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
  56. package/esm/funcs/cartsDeleteCart.js +1 -0
  57. package/esm/funcs/cartsDeleteCart.js.map +1 -1
  58. package/esm/funcs/cartsGetCart.d.ts.map +1 -1
  59. package/esm/funcs/cartsGetCart.js +1 -0
  60. package/esm/funcs/cartsGetCart.js.map +1 -1
  61. package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
  62. package/esm/funcs/cartsGetUserCart.js +1 -0
  63. package/esm/funcs/cartsGetUserCart.js.map +1 -1
  64. package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
  65. package/esm/funcs/cartsRemoveCoupon.js +1 -0
  66. package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
  67. package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
  68. package/esm/funcs/cartsRemoveUserCart.js +1 -0
  69. package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
  70. package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
  71. package/esm/funcs/cartsUpdateCart.js +1 -0
  72. package/esm/funcs/cartsUpdateCart.js.map +1 -1
  73. package/esm/funcs/catalogCreateProductReview.d.ts.map +1 -1
  74. package/esm/funcs/catalogCreateProductReview.js +1 -0
  75. package/esm/funcs/catalogCreateProductReview.js.map +1 -1
  76. package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
  77. package/esm/funcs/catalogGetProductDetail.js +1 -0
  78. package/esm/funcs/catalogGetProductDetail.js.map +1 -1
  79. package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
  80. package/esm/funcs/catalogGetVariantDetail.js +1 -0
  81. package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
  82. package/esm/funcs/catalogListCategories.d.ts.map +1 -1
  83. package/esm/funcs/catalogListCategories.js +1 -0
  84. package/esm/funcs/catalogListCategories.js.map +1 -1
  85. package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
  86. package/esm/funcs/catalogListCrosssellProducts.js +1 -0
  87. package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
  88. package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
  89. package/esm/funcs/catalogListProductReviews.js +1 -0
  90. package/esm/funcs/catalogListProductReviews.js.map +1 -1
  91. package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
  92. package/esm/funcs/catalogListProductVariants.js +1 -0
  93. package/esm/funcs/catalogListProductVariants.js.map +1 -1
  94. package/esm/funcs/catalogListProducts.d.ts.map +1 -1
  95. package/esm/funcs/catalogListProducts.js +1 -0
  96. package/esm/funcs/catalogListProducts.js.map +1 -1
  97. package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
  98. package/esm/funcs/catalogListSimilarProducts.js +1 -0
  99. package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
  100. package/esm/funcs/catalogListSkus.d.ts.map +1 -1
  101. package/esm/funcs/catalogListSkus.js +1 -0
  102. package/esm/funcs/catalogListSkus.js.map +1 -1
  103. package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
  104. package/esm/funcs/catalogListUpsellProducts.js +1 -0
  105. package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
  106. package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
  107. package/esm/funcs/catalogSearchProducts.js +1 -0
  108. package/esm/funcs/catalogSearchProducts.js.map +1 -1
  109. package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
  110. package/esm/funcs/commonListCountryPincodes.js +1 -0
  111. package/esm/funcs/commonListCountryPincodes.js.map +1 -1
  112. package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
  113. package/esm/funcs/customersCreateAddress.js +1 -0
  114. package/esm/funcs/customersCreateAddress.js.map +1 -1
  115. package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
  116. package/esm/funcs/customersDeleteAddress.js +1 -0
  117. package/esm/funcs/customersDeleteAddress.js.map +1 -1
  118. package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
  119. package/esm/funcs/customersGetAddressDetail.js +1 -0
  120. package/esm/funcs/customersGetAddressDetail.js.map +1 -1
  121. package/esm/funcs/customersListAddresses.d.ts.map +1 -1
  122. package/esm/funcs/customersListAddresses.js +1 -0
  123. package/esm/funcs/customersListAddresses.js.map +1 -1
  124. package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
  125. package/esm/funcs/customersListUserReviews.js +1 -0
  126. package/esm/funcs/customersListUserReviews.js.map +1 -1
  127. package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
  128. package/esm/funcs/customersUpdateAddressDetail.js +1 -0
  129. package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
  130. package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
  131. package/esm/funcs/ordersCancelOrder.js +1 -0
  132. package/esm/funcs/ordersCancelOrder.js.map +1 -1
  133. package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
  134. package/esm/funcs/ordersCreateOrder.js +1 -0
  135. package/esm/funcs/ordersCreateOrder.js.map +1 -1
  136. package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
  137. package/esm/funcs/ordersGetOrderDetail.js +1 -0
  138. package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
  139. package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
  140. package/esm/funcs/ordersGetPaymentStatus.js +1 -0
  141. package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
  142. package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
  143. package/esm/funcs/ordersListOrderShipments.js +1 -0
  144. package/esm/funcs/ordersListOrderShipments.js.map +1 -1
  145. package/esm/funcs/ordersListOrders.d.ts.map +1 -1
  146. package/esm/funcs/ordersListOrders.js +1 -0
  147. package/esm/funcs/ordersListOrders.js.map +1 -1
  148. package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
  149. package/esm/funcs/ordersRetryOrderPayment.js +1 -0
  150. package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
  151. package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
  152. package/esm/funcs/shippingCheckDeliveryAvailability.js +1 -0
  153. package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
  154. package/esm/hooks/types.d.ts +1 -0
  155. package/esm/hooks/types.d.ts.map +1 -1
  156. package/esm/lib/config.d.ts +3 -3
  157. package/esm/lib/config.js +3 -3
  158. package/esm/lib/security.d.ts.map +1 -1
  159. package/esm/lib/security.js.map +1 -1
  160. package/esm/models/components/booleanattribute.d.ts +46 -0
  161. package/esm/models/components/booleanattribute.d.ts.map +1 -0
  162. package/esm/models/components/booleanattribute.js +39 -0
  163. package/esm/models/components/booleanattribute.js.map +1 -0
  164. package/esm/models/components/colorattribute.d.ts +73 -0
  165. package/esm/models/components/colorattribute.d.ts.map +1 -0
  166. package/esm/models/components/colorattribute.js +67 -0
  167. package/esm/models/components/colorattribute.js.map +1 -0
  168. package/esm/models/components/dateattribute.d.ts +46 -0
  169. package/esm/models/components/dateattribute.d.ts.map +1 -0
  170. package/esm/models/components/dateattribute.js +39 -0
  171. package/esm/models/components/dateattribute.js.map +1 -0
  172. package/esm/models/components/index.d.ts +7 -0
  173. package/esm/models/components/index.d.ts.map +1 -1
  174. package/esm/models/components/index.js +7 -0
  175. package/esm/models/components/index.js.map +1 -1
  176. package/esm/models/components/juspaypaymentgatewayparams.d.ts +24 -0
  177. package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +1 -1
  178. package/esm/models/components/juspaypaymentgatewayparams.js +6 -0
  179. package/esm/models/components/juspaypaymentgatewayparams.js.map +1 -1
  180. package/esm/models/components/multiselectattribute.d.ts +46 -0
  181. package/esm/models/components/multiselectattribute.d.ts.map +1 -0
  182. package/esm/models/components/multiselectattribute.js +39 -0
  183. package/esm/models/components/multiselectattribute.js.map +1 -0
  184. package/esm/models/components/numberattribute.d.ts +46 -0
  185. package/esm/models/components/numberattribute.d.ts.map +1 -0
  186. package/esm/models/components/numberattribute.js +39 -0
  187. package/esm/models/components/numberattribute.js.map +1 -0
  188. package/esm/models/components/productattribute.d.ts +9 -401
  189. package/esm/models/components/productattribute.d.ts.map +1 -1
  190. package/esm/models/components/productattribute.js +21 -272
  191. package/esm/models/components/productattribute.js.map +1 -1
  192. package/esm/models/components/singleselectattribute.d.ts +46 -0
  193. package/esm/models/components/singleselectattribute.d.ts.map +1 -0
  194. package/esm/models/components/singleselectattribute.js +39 -0
  195. package/esm/models/components/singleselectattribute.js.map +1 -0
  196. package/esm/models/components/textattribute.d.ts +46 -0
  197. package/esm/models/components/textattribute.d.ts.map +1 -0
  198. package/esm/models/components/textattribute.js +39 -0
  199. package/esm/models/components/textattribute.js.map +1 -0
  200. package/esm/models/components/variantoption.d.ts +13 -13
  201. package/esm/models/components/variantoption.d.ts.map +1 -1
  202. package/esm/models/components/variantoption.js +13 -14
  203. package/esm/models/components/variantoption.js.map +1 -1
  204. package/esm/models/operations/getpaymentstatus.d.ts +12 -10
  205. package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
  206. package/esm/models/operations/getpaymentstatus.js +14 -10
  207. package/esm/models/operations/getpaymentstatus.js.map +1 -1
  208. package/jsr.json +1 -1
  209. package/package.json +1 -1
  210. package/src/funcs/authCheckVerificationStatus.ts +1 -0
  211. package/src/funcs/authCreateNotificationPreferences.ts +1 -0
  212. package/src/funcs/authGenerateOtp.ts +1 -0
  213. package/src/funcs/authGetAnonymousToken.ts +1 -0
  214. package/src/funcs/authGetNotificationPreferences.ts +1 -0
  215. package/src/funcs/authGetUserDetail.ts +1 -0
  216. package/src/funcs/authLoginWithEmail.ts +1 -0
  217. package/src/funcs/authLoginWithPhone.ts +1 -0
  218. package/src/funcs/authLoginWithWhatsapp.ts +1 -0
  219. package/src/funcs/authLogout.ts +1 -0
  220. package/src/funcs/authRefreshToken.ts +1 -0
  221. package/src/funcs/authUpdateNotificationPreferences.ts +1 -0
  222. package/src/funcs/authUpdateUser.ts +1 -0
  223. package/src/funcs/authVerifyOtp.ts +1 -0
  224. package/src/funcs/campaignsSubscribeNewsletter.ts +1 -0
  225. package/src/funcs/cartsApplyCoupon.ts +1 -0
  226. package/src/funcs/cartsCreateCart.ts +1 -0
  227. package/src/funcs/cartsCreateCartAddress.ts +1 -0
  228. package/src/funcs/cartsDeleteCart.ts +1 -0
  229. package/src/funcs/cartsGetCart.ts +1 -0
  230. package/src/funcs/cartsGetUserCart.ts +1 -0
  231. package/src/funcs/cartsRemoveCoupon.ts +1 -0
  232. package/src/funcs/cartsRemoveUserCart.ts +1 -0
  233. package/src/funcs/cartsUpdateCart.ts +1 -0
  234. package/src/funcs/catalogCreateProductReview.ts +1 -0
  235. package/src/funcs/catalogGetProductDetail.ts +1 -0
  236. package/src/funcs/catalogGetVariantDetail.ts +1 -0
  237. package/src/funcs/catalogListCategories.ts +1 -0
  238. package/src/funcs/catalogListCrosssellProducts.ts +1 -0
  239. package/src/funcs/catalogListProductReviews.ts +1 -0
  240. package/src/funcs/catalogListProductVariants.ts +1 -0
  241. package/src/funcs/catalogListProducts.ts +1 -0
  242. package/src/funcs/catalogListSimilarProducts.ts +1 -0
  243. package/src/funcs/catalogListSkus.ts +1 -0
  244. package/src/funcs/catalogListUpsellProducts.ts +1 -0
  245. package/src/funcs/catalogSearchProducts.ts +1 -0
  246. package/src/funcs/commonListCountryPincodes.ts +1 -0
  247. package/src/funcs/customersCreateAddress.ts +1 -0
  248. package/src/funcs/customersDeleteAddress.ts +1 -0
  249. package/src/funcs/customersGetAddressDetail.ts +1 -0
  250. package/src/funcs/customersListAddresses.ts +1 -0
  251. package/src/funcs/customersListUserReviews.ts +1 -0
  252. package/src/funcs/customersUpdateAddressDetail.ts +1 -0
  253. package/src/funcs/ordersCancelOrder.ts +1 -0
  254. package/src/funcs/ordersCreateOrder.ts +1 -0
  255. package/src/funcs/ordersGetOrderDetail.ts +1 -0
  256. package/src/funcs/ordersGetPaymentStatus.ts +1 -0
  257. package/src/funcs/ordersListOrderShipments.ts +1 -0
  258. package/src/funcs/ordersListOrders.ts +1 -0
  259. package/src/funcs/ordersRetryOrderPayment.ts +1 -0
  260. package/src/funcs/shippingCheckDeliveryAvailability.ts +1 -0
  261. package/src/hooks/types.ts +1 -0
  262. package/src/lib/config.ts +3 -3
  263. package/src/lib/security.ts +0 -1
  264. package/src/models/components/booleanattribute.ts +91 -0
  265. package/src/models/components/colorattribute.ts +142 -0
  266. package/src/models/components/dateattribute.ts +87 -0
  267. package/src/models/components/index.ts +7 -0
  268. package/src/models/components/juspaypaymentgatewayparams.ts +24 -0
  269. package/src/models/components/multiselectattribute.ts +91 -0
  270. package/src/models/components/numberattribute.ts +89 -0
  271. package/src/models/components/productattribute.ts +56 -685
  272. package/src/models/components/singleselectattribute.ts +91 -0
  273. package/src/models/components/textattribute.ts +87 -0
  274. package/src/models/components/variantoption.ts +27 -20
  275. package/src/models/operations/getpaymentstatus.ts +26 -20
@@ -0,0 +1,89 @@
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
+ /**
11
+ * Attribute for numeric values
12
+ */
13
+ export type NumberAttribute = {
14
+ id: string;
15
+ name: string;
16
+ /**
17
+ * A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
18
+ */
19
+ key: string;
20
+ type: string;
21
+ /**
22
+ * For numeric attributes
23
+ */
24
+ value: number;
25
+ };
26
+
27
+ /** @internal */
28
+ export const NumberAttribute$inboundSchema: z.ZodType<
29
+ NumberAttribute,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ id: z.string(),
34
+ name: z.string(),
35
+ key: z.string(),
36
+ type: z.string(),
37
+ value: z.number(),
38
+ });
39
+
40
+ /** @internal */
41
+ export type NumberAttribute$Outbound = {
42
+ id: string;
43
+ name: string;
44
+ key: string;
45
+ type: string;
46
+ value: number;
47
+ };
48
+
49
+ /** @internal */
50
+ export const NumberAttribute$outboundSchema: z.ZodType<
51
+ NumberAttribute$Outbound,
52
+ z.ZodTypeDef,
53
+ NumberAttribute
54
+ > = z.object({
55
+ id: z.string(),
56
+ name: z.string(),
57
+ key: z.string(),
58
+ type: z.string(),
59
+ value: z.number(),
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace NumberAttribute$ {
67
+ /** @deprecated use `NumberAttribute$inboundSchema` instead. */
68
+ export const inboundSchema = NumberAttribute$inboundSchema;
69
+ /** @deprecated use `NumberAttribute$outboundSchema` instead. */
70
+ export const outboundSchema = NumberAttribute$outboundSchema;
71
+ /** @deprecated use `NumberAttribute$Outbound` instead. */
72
+ export type Outbound = NumberAttribute$Outbound;
73
+ }
74
+
75
+ export function numberAttributeToJSON(
76
+ numberAttribute: NumberAttribute,
77
+ ): string {
78
+ return JSON.stringify(NumberAttribute$outboundSchema.parse(numberAttribute));
79
+ }
80
+
81
+ export function numberAttributeFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<NumberAttribute, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => NumberAttribute$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'NumberAttribute' from JSON`,
88
+ );
89
+ }