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
@@ -4,10 +4,16 @@
4
4
  import * as z from "zod";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ /**
8
+ * `paymentPage` is the default option that you should select when using hyper-checkout
9
+ */
7
10
  export const Action = {
8
11
  PaymentPage: "paymentPage",
9
12
  PaymentManagement: "paymentManagement",
10
13
  };
14
+ /**
15
+ * Use `hyper-checkout` for Juspay hosted checkout
16
+ */
11
17
  export const IntegrationType = {
12
18
  HyperCheckout: "hyper-checkout",
13
19
  ExpressCheckout: "express-checkout",
@@ -1 +1 @@
1
- {"version":3,"file":"juspaypaymentgatewayparams.js","sourceRoot":"","sources":["../../../src/models/components/juspaypaymentgatewayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,WAAW,EAAE,aAAa;IAC1B,iBAAiB,EAAE,mBAAmB;CAC9B,CAAC;AAGX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAWX,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,MAAM,CAAC,CAAC;AAEtB,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAq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c,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAiB,CAAC;IAC9D,MAAM,EAAE,qBAAqB;IAC7B,eAAe,EAAE,8BAA8B;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,eAAe,EAAE,kBAAkB;QACnC,SAAS,EAAE,YAAY;QACvB,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,wCAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,yCAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,KAA3B,2BAA2B,QAO3C;AAED,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"juspaypaymentgatewayparams.js","sourceRoot":"","sources":["../../../src/models/components/juspaypaymentgatewayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MA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AA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Attribute for multi-select values
6
+ */
7
+ export type MultiSelectAttribute = {
8
+ id: string;
9
+ name: string;
10
+ /**
11
+ * 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`
12
+ */
13
+ key: string;
14
+ type: string;
15
+ /**
16
+ * For multi-select attributes
17
+ */
18
+ value: Array<string>;
19
+ };
20
+ /** @internal */
21
+ export declare const MultiSelectAttribute$inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
22
+ /** @internal */
23
+ export type MultiSelectAttribute$Outbound = {
24
+ id: string;
25
+ name: string;
26
+ key: string;
27
+ type: string;
28
+ value: Array<string>;
29
+ };
30
+ /** @internal */
31
+ export declare const MultiSelectAttribute$outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
32
+ /**
33
+ * @internal
34
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
+ */
36
+ export declare namespace MultiSelectAttribute$ {
37
+ /** @deprecated use `MultiSelectAttribute$inboundSchema` instead. */
38
+ const inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
39
+ /** @deprecated use `MultiSelectAttribute$outboundSchema` instead. */
40
+ const outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
41
+ /** @deprecated use `MultiSelectAttribute$Outbound` instead. */
42
+ type Outbound = MultiSelectAttribute$Outbound;
43
+ }
44
+ export declare function multiSelectAttributeToJSON(multiSelectAttribute: MultiSelectAttribute): string;
45
+ export declare function multiSelectAttributeFromJSON(jsonString: string): SafeParseResult<MultiSelectAttribute, SDKValidationError>;
46
+ //# sourceMappingURL=multiselectattribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselectattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/multiselectattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAOpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ /** @internal */
7
+ export const MultiSelectAttribute$inboundSchema = z.object({
8
+ id: z.string(),
9
+ name: z.string(),
10
+ key: z.string(),
11
+ type: z.string(),
12
+ value: z.array(z.string()),
13
+ });
14
+ /** @internal */
15
+ export const MultiSelectAttribute$outboundSchema = z.object({
16
+ id: z.string(),
17
+ name: z.string(),
18
+ key: z.string(),
19
+ type: z.string(),
20
+ value: z.array(z.string()),
21
+ });
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export var MultiSelectAttribute$;
27
+ (function (MultiSelectAttribute$) {
28
+ /** @deprecated use `MultiSelectAttribute$inboundSchema` instead. */
29
+ MultiSelectAttribute$.inboundSchema = MultiSelectAttribute$inboundSchema;
30
+ /** @deprecated use `MultiSelectAttribute$outboundSchema` instead. */
31
+ MultiSelectAttribute$.outboundSchema = MultiSelectAttribute$outboundSchema;
32
+ })(MultiSelectAttribute$ || (MultiSelectAttribute$ = {}));
33
+ export function multiSelectAttributeToJSON(multiSelectAttribute) {
34
+ return JSON.stringify(MultiSelectAttribute$outboundSchema.parse(multiSelectAttribute));
35
+ }
36
+ export function multiSelectAttributeFromJSON(jsonString) {
37
+ return safeParse(jsonString, (x) => MultiSelectAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MultiSelectAttribute' from JSON`);
38
+ }
39
+ //# sourceMappingURL=multiselectattribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselectattribute.js","sourceRoot":"","sources":["../../../src/models/components/multiselectattribute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAqBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,kCAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,mCAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,KAArB,qBAAqB,QAOrC;AAED,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Attribute for numeric values
6
+ */
7
+ export type NumberAttribute = {
8
+ id: string;
9
+ name: string;
10
+ /**
11
+ * 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`
12
+ */
13
+ key: string;
14
+ type: string;
15
+ /**
16
+ * For numeric attributes
17
+ */
18
+ value: number;
19
+ };
20
+ /** @internal */
21
+ export declare const NumberAttribute$inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
22
+ /** @internal */
23
+ export type NumberAttribute$Outbound = {
24
+ id: string;
25
+ name: string;
26
+ key: string;
27
+ type: string;
28
+ value: number;
29
+ };
30
+ /** @internal */
31
+ export declare const NumberAttribute$outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
32
+ /**
33
+ * @internal
34
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
+ */
36
+ export declare namespace NumberAttribute$ {
37
+ /** @deprecated use `NumberAttribute$inboundSchema` instead. */
38
+ const inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
39
+ /** @deprecated use `NumberAttribute$outboundSchema` instead. */
40
+ const outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
41
+ /** @deprecated use `NumberAttribute$Outbound` instead. */
42
+ type Outbound = NumberAttribute$Outbound;
43
+ }
44
+ export declare function numberAttributeToJSON(numberAttribute: NumberAttribute): string;
45
+ export declare function numberAttributeFromJSON(jsonString: string): SafeParseResult<NumberAttribute, SDKValidationError>;
46
+ //# sourceMappingURL=numberattribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/numberattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAOf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ /** @internal */
7
+ export const NumberAttribute$inboundSchema = z.object({
8
+ id: z.string(),
9
+ name: z.string(),
10
+ key: z.string(),
11
+ type: z.string(),
12
+ value: z.number(),
13
+ });
14
+ /** @internal */
15
+ export const NumberAttribute$outboundSchema = z.object({
16
+ id: z.string(),
17
+ name: z.string(),
18
+ key: z.string(),
19
+ type: z.string(),
20
+ value: z.number(),
21
+ });
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export var NumberAttribute$;
27
+ (function (NumberAttribute$) {
28
+ /** @deprecated use `NumberAttribute$inboundSchema` instead. */
29
+ NumberAttribute$.inboundSchema = NumberAttribute$inboundSchema;
30
+ /** @deprecated use `NumberAttribute$outboundSchema` instead. */
31
+ NumberAttribute$.outboundSchema = NumberAttribute$outboundSchema;
32
+ })(NumberAttribute$ || (NumberAttribute$ = {}));
33
+ export function numberAttributeToJSON(numberAttribute) {
34
+ return JSON.stringify(NumberAttribute$outboundSchema.parse(numberAttribute));
35
+ }
36
+ export function numberAttributeFromJSON(jsonString) {
37
+ return safeParse(jsonString, (x) => NumberAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NumberAttribute' from JSON`);
38
+ }
39
+ //# sourceMappingURL=numberattribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberattribute.js","sourceRoot":"","sources":["../../../src/models/components/numberattribute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAqBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,6BAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,8BAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,KAAhB,gBAAgB,QAOhC;AAED,MAAM,UAAU,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -1,164 +1,13 @@
1
1
  import * as z from "zod";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- /**
5
- * Attribute for boolean values
6
- */
7
- export type BooleanAttribute = {
8
- /**
9
- * Unique identifier for the attribute
10
- */
11
- id: string;
12
- /**
13
- * Name of the attribute
14
- */
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?: "number" | undefined;
21
- /**
22
- * For boolean attributes
23
- */
24
- value: boolean;
25
- };
26
- /**
27
- * Attribute for numeric values
28
- */
29
- export type NumberAttribute = {
30
- /**
31
- * Unique identifier for the attribute
32
- */
33
- id: string;
34
- /**
35
- * Name of the attribute
36
- */
37
- name: string;
38
- /**
39
- * 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`
40
- */
41
- key: string;
42
- type?: "number" | undefined;
43
- /**
44
- * For numeric attributes
45
- */
46
- value: number;
47
- };
48
- /**
49
- * Attribute for date values
50
- */
51
- export type DateAttribute = {
52
- /**
53
- * Unique identifier for the attribute
54
- */
55
- id: string;
56
- /**
57
- * Name of the attribute
58
- */
59
- name: string;
60
- /**
61
- * 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`
62
- */
63
- key: string;
64
- type?: "date" | undefined;
65
- /**
66
- * For date attributes
67
- */
68
- value: Date;
69
- };
70
- /**
71
- * Attribute for text values
72
- */
73
- export type TextAttribute = {
74
- /**
75
- * Unique identifier for the attribute
76
- */
77
- id: string;
78
- /**
79
- * Name of the attribute
80
- */
81
- name: string;
82
- /**
83
- * 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`
84
- */
85
- key: string;
86
- type?: "text" | undefined;
87
- /**
88
- * For text attributes
89
- */
90
- value: string;
91
- };
92
- /**
93
- * Attribute for multi-select values
94
- */
95
- export type MultiSelectAttribute = {
96
- /**
97
- * Unique identifier for the attribute
98
- */
99
- id: string;
100
- /**
101
- * Name of the attribute
102
- */
103
- name: string;
104
- /**
105
- * 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`
106
- */
107
- key: string;
108
- type?: "multi-select" | undefined;
109
- /**
110
- * For multi-select attributes
111
- */
112
- value: Array<string>;
113
- };
114
- /**
115
- * Attribute for single-select values
116
- */
117
- export type SingleSelectAttribute = {
118
- /**
119
- * Unique identifier for the attribute
120
- */
121
- id: string;
122
- /**
123
- * Name of the attribute
124
- */
125
- name: string;
126
- /**
127
- * 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`
128
- */
129
- key: string;
130
- type?: "single-select" | undefined;
131
- /**
132
- * For single-select attributes
133
- */
134
- value: string;
135
- };
136
- export type ColorAttributeValue = {
137
- name: string;
138
- /**
139
- * The hex code of the color (e.g., #000000).
140
- */
141
- hexcode: string;
142
- };
143
- /**
144
- * Attribute for colors
145
- */
146
- export type ColorAttribute = {
147
- /**
148
- * Unique identifier for the attribute
149
- */
150
- id: string;
151
- /**
152
- * Name of the attribute
153
- */
154
- name: string;
155
- /**
156
- * 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`
157
- */
158
- key: string;
159
- type?: "color" | undefined;
160
- value: Array<ColorAttributeValue>;
161
- };
4
+ import { BooleanAttribute, BooleanAttribute$Outbound } from "./booleanattribute.js";
5
+ import { ColorAttribute, ColorAttribute$Outbound } from "./colorattribute.js";
6
+ import { DateAttribute, DateAttribute$Outbound } from "./dateattribute.js";
7
+ import { MultiSelectAttribute, MultiSelectAttribute$Outbound } from "./multiselectattribute.js";
8
+ import { NumberAttribute, NumberAttribute$Outbound } from "./numberattribute.js";
9
+ import { SingleSelectAttribute, SingleSelectAttribute$Outbound } from "./singleselectattribute.js";
10
+ import { TextAttribute, TextAttribute$Outbound } from "./textattribute.js";
162
11
  export type ProductAttribute = (ColorAttribute & {
163
12
  type: "color";
164
13
  }) | (SingleSelectAttribute & {
@@ -175,211 +24,6 @@ export type ProductAttribute = (ColorAttribute & {
175
24
  type: "boolean";
176
25
  });
177
26
  /** @internal */
178
- export declare const BooleanAttribute$inboundSchema: z.ZodType<BooleanAttribute, z.ZodTypeDef, unknown>;
179
- /** @internal */
180
- export type BooleanAttribute$Outbound = {
181
- id: string;
182
- name: string;
183
- key: string;
184
- type: "number";
185
- value: boolean;
186
- };
187
- /** @internal */
188
- export declare const BooleanAttribute$outboundSchema: z.ZodType<BooleanAttribute$Outbound, z.ZodTypeDef, BooleanAttribute>;
189
- /**
190
- * @internal
191
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
192
- */
193
- export declare namespace BooleanAttribute$ {
194
- /** @deprecated use `BooleanAttribute$inboundSchema` instead. */
195
- const inboundSchema: z.ZodType<BooleanAttribute, z.ZodTypeDef, unknown>;
196
- /** @deprecated use `BooleanAttribute$outboundSchema` instead. */
197
- const outboundSchema: z.ZodType<BooleanAttribute$Outbound, z.ZodTypeDef, BooleanAttribute>;
198
- /** @deprecated use `BooleanAttribute$Outbound` instead. */
199
- type Outbound = BooleanAttribute$Outbound;
200
- }
201
- export declare function booleanAttributeToJSON(booleanAttribute: BooleanAttribute): string;
202
- export declare function booleanAttributeFromJSON(jsonString: string): SafeParseResult<BooleanAttribute, SDKValidationError>;
203
- /** @internal */
204
- export declare const NumberAttribute$inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
205
- /** @internal */
206
- export type NumberAttribute$Outbound = {
207
- id: string;
208
- name: string;
209
- key: string;
210
- type: "number";
211
- value: number;
212
- };
213
- /** @internal */
214
- export declare const NumberAttribute$outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
215
- /**
216
- * @internal
217
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
218
- */
219
- export declare namespace NumberAttribute$ {
220
- /** @deprecated use `NumberAttribute$inboundSchema` instead. */
221
- const inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
222
- /** @deprecated use `NumberAttribute$outboundSchema` instead. */
223
- const outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
224
- /** @deprecated use `NumberAttribute$Outbound` instead. */
225
- type Outbound = NumberAttribute$Outbound;
226
- }
227
- export declare function numberAttributeToJSON(numberAttribute: NumberAttribute): string;
228
- export declare function numberAttributeFromJSON(jsonString: string): SafeParseResult<NumberAttribute, SDKValidationError>;
229
- /** @internal */
230
- export declare const DateAttribute$inboundSchema: z.ZodType<DateAttribute, z.ZodTypeDef, unknown>;
231
- /** @internal */
232
- export type DateAttribute$Outbound = {
233
- id: string;
234
- name: string;
235
- key: string;
236
- type: "date";
237
- value: string;
238
- };
239
- /** @internal */
240
- export declare const DateAttribute$outboundSchema: z.ZodType<DateAttribute$Outbound, z.ZodTypeDef, DateAttribute>;
241
- /**
242
- * @internal
243
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
244
- */
245
- export declare namespace DateAttribute$ {
246
- /** @deprecated use `DateAttribute$inboundSchema` instead. */
247
- const inboundSchema: z.ZodType<DateAttribute, z.ZodTypeDef, unknown>;
248
- /** @deprecated use `DateAttribute$outboundSchema` instead. */
249
- const outboundSchema: z.ZodType<DateAttribute$Outbound, z.ZodTypeDef, DateAttribute>;
250
- /** @deprecated use `DateAttribute$Outbound` instead. */
251
- type Outbound = DateAttribute$Outbound;
252
- }
253
- export declare function dateAttributeToJSON(dateAttribute: DateAttribute): string;
254
- export declare function dateAttributeFromJSON(jsonString: string): SafeParseResult<DateAttribute, SDKValidationError>;
255
- /** @internal */
256
- export declare const TextAttribute$inboundSchema: z.ZodType<TextAttribute, z.ZodTypeDef, unknown>;
257
- /** @internal */
258
- export type TextAttribute$Outbound = {
259
- id: string;
260
- name: string;
261
- key: string;
262
- type: "text";
263
- value: string;
264
- };
265
- /** @internal */
266
- export declare const TextAttribute$outboundSchema: z.ZodType<TextAttribute$Outbound, z.ZodTypeDef, TextAttribute>;
267
- /**
268
- * @internal
269
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
- */
271
- export declare namespace TextAttribute$ {
272
- /** @deprecated use `TextAttribute$inboundSchema` instead. */
273
- const inboundSchema: z.ZodType<TextAttribute, z.ZodTypeDef, unknown>;
274
- /** @deprecated use `TextAttribute$outboundSchema` instead. */
275
- const outboundSchema: z.ZodType<TextAttribute$Outbound, z.ZodTypeDef, TextAttribute>;
276
- /** @deprecated use `TextAttribute$Outbound` instead. */
277
- type Outbound = TextAttribute$Outbound;
278
- }
279
- export declare function textAttributeToJSON(textAttribute: TextAttribute): string;
280
- export declare function textAttributeFromJSON(jsonString: string): SafeParseResult<TextAttribute, SDKValidationError>;
281
- /** @internal */
282
- export declare const MultiSelectAttribute$inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
283
- /** @internal */
284
- export type MultiSelectAttribute$Outbound = {
285
- id: string;
286
- name: string;
287
- key: string;
288
- type: "multi-select";
289
- value: Array<string>;
290
- };
291
- /** @internal */
292
- export declare const MultiSelectAttribute$outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
293
- /**
294
- * @internal
295
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
296
- */
297
- export declare namespace MultiSelectAttribute$ {
298
- /** @deprecated use `MultiSelectAttribute$inboundSchema` instead. */
299
- const inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
300
- /** @deprecated use `MultiSelectAttribute$outboundSchema` instead. */
301
- const outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
302
- /** @deprecated use `MultiSelectAttribute$Outbound` instead. */
303
- type Outbound = MultiSelectAttribute$Outbound;
304
- }
305
- export declare function multiSelectAttributeToJSON(multiSelectAttribute: MultiSelectAttribute): string;
306
- export declare function multiSelectAttributeFromJSON(jsonString: string): SafeParseResult<MultiSelectAttribute, SDKValidationError>;
307
- /** @internal */
308
- export declare const SingleSelectAttribute$inboundSchema: z.ZodType<SingleSelectAttribute, z.ZodTypeDef, unknown>;
309
- /** @internal */
310
- export type SingleSelectAttribute$Outbound = {
311
- id: string;
312
- name: string;
313
- key: string;
314
- type: "single-select";
315
- value: string;
316
- };
317
- /** @internal */
318
- export declare const SingleSelectAttribute$outboundSchema: z.ZodType<SingleSelectAttribute$Outbound, z.ZodTypeDef, SingleSelectAttribute>;
319
- /**
320
- * @internal
321
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
322
- */
323
- export declare namespace SingleSelectAttribute$ {
324
- /** @deprecated use `SingleSelectAttribute$inboundSchema` instead. */
325
- const inboundSchema: z.ZodType<SingleSelectAttribute, z.ZodTypeDef, unknown>;
326
- /** @deprecated use `SingleSelectAttribute$outboundSchema` instead. */
327
- const outboundSchema: z.ZodType<SingleSelectAttribute$Outbound, z.ZodTypeDef, SingleSelectAttribute>;
328
- /** @deprecated use `SingleSelectAttribute$Outbound` instead. */
329
- type Outbound = SingleSelectAttribute$Outbound;
330
- }
331
- export declare function singleSelectAttributeToJSON(singleSelectAttribute: SingleSelectAttribute): string;
332
- export declare function singleSelectAttributeFromJSON(jsonString: string): SafeParseResult<SingleSelectAttribute, SDKValidationError>;
333
- /** @internal */
334
- export declare const ColorAttributeValue$inboundSchema: z.ZodType<ColorAttributeValue, z.ZodTypeDef, unknown>;
335
- /** @internal */
336
- export type ColorAttributeValue$Outbound = {
337
- name: string;
338
- hexcode: string;
339
- };
340
- /** @internal */
341
- export declare const ColorAttributeValue$outboundSchema: z.ZodType<ColorAttributeValue$Outbound, z.ZodTypeDef, ColorAttributeValue>;
342
- /**
343
- * @internal
344
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
345
- */
346
- export declare namespace ColorAttributeValue$ {
347
- /** @deprecated use `ColorAttributeValue$inboundSchema` instead. */
348
- const inboundSchema: z.ZodType<ColorAttributeValue, z.ZodTypeDef, unknown>;
349
- /** @deprecated use `ColorAttributeValue$outboundSchema` instead. */
350
- const outboundSchema: z.ZodType<ColorAttributeValue$Outbound, z.ZodTypeDef, ColorAttributeValue>;
351
- /** @deprecated use `ColorAttributeValue$Outbound` instead. */
352
- type Outbound = ColorAttributeValue$Outbound;
353
- }
354
- export declare function colorAttributeValueToJSON(colorAttributeValue: ColorAttributeValue): string;
355
- export declare function colorAttributeValueFromJSON(jsonString: string): SafeParseResult<ColorAttributeValue, SDKValidationError>;
356
- /** @internal */
357
- export declare const ColorAttribute$inboundSchema: z.ZodType<ColorAttribute, z.ZodTypeDef, unknown>;
358
- /** @internal */
359
- export type ColorAttribute$Outbound = {
360
- id: string;
361
- name: string;
362
- key: string;
363
- type: "color";
364
- value: Array<ColorAttributeValue$Outbound>;
365
- };
366
- /** @internal */
367
- export declare const ColorAttribute$outboundSchema: z.ZodType<ColorAttribute$Outbound, z.ZodTypeDef, ColorAttribute>;
368
- /**
369
- * @internal
370
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
- */
372
- export declare namespace ColorAttribute$ {
373
- /** @deprecated use `ColorAttribute$inboundSchema` instead. */
374
- const inboundSchema: z.ZodType<ColorAttribute, z.ZodTypeDef, unknown>;
375
- /** @deprecated use `ColorAttribute$outboundSchema` instead. */
376
- const outboundSchema: z.ZodType<ColorAttribute$Outbound, z.ZodTypeDef, ColorAttribute>;
377
- /** @deprecated use `ColorAttribute$Outbound` instead. */
378
- type Outbound = ColorAttribute$Outbound;
379
- }
380
- export declare function colorAttributeToJSON(colorAttribute: ColorAttribute): string;
381
- export declare function colorAttributeFromJSON(jsonString: string): SafeParseResult<ColorAttribute, SDKValidationError>;
382
- /** @internal */
383
27
  export declare const ProductAttribute$inboundSchema: z.ZodType<ProductAttribute, z.ZodTypeDef, unknown>;
384
28
  /** @internal */
385
29
  export type ProductAttribute$Outbound = (ColorAttribute$Outbound & {
@@ -405,45 +49,9 @@ export declare const ProductAttribute$outboundSchema: z.ZodType<ProductAttribute
405
49
  */
406
50
  export declare namespace ProductAttribute$ {
407
51
  /** @deprecated use `ProductAttribute$inboundSchema` instead. */
408
- const inboundSchema: z.ZodType<(ColorAttribute & {
409
- type: "color";
410
- }) | (SingleSelectAttribute & {
411
- type: "single-select";
412
- }) | (MultiSelectAttribute & {
413
- type: "multi-select";
414
- }) | (TextAttribute & {
415
- type: "text";
416
- }) | (DateAttribute & {
417
- type: "date";
418
- }) | (NumberAttribute & {
419
- type: "number";
420
- }), z.ZodTypeDef, unknown>;
52
+ const inboundSchema: z.ZodType<ProductAttribute, z.ZodTypeDef, unknown>;
421
53
  /** @deprecated use `ProductAttribute$outboundSchema` instead. */
422
- const outboundSchema: z.ZodType<(ColorAttribute$Outbound & {
423
- type: "color";
424
- }) | (SingleSelectAttribute$Outbound & {
425
- type: "single-select";
426
- }) | (MultiSelectAttribute$Outbound & {
427
- type: "multi-select";
428
- }) | (TextAttribute$Outbound & {
429
- type: "text";
430
- }) | (DateAttribute$Outbound & {
431
- type: "date";
432
- }) | (NumberAttribute$Outbound & {
433
- type: "number";
434
- }), z.ZodTypeDef, (ColorAttribute & {
435
- type: "color";
436
- }) | (SingleSelectAttribute & {
437
- type: "single-select";
438
- }) | (MultiSelectAttribute & {
439
- type: "multi-select";
440
- }) | (TextAttribute & {
441
- type: "text";
442
- }) | (DateAttribute & {
443
- type: "date";
444
- }) | (NumberAttribute & {
445
- type: "number";
446
- })>;
54
+ const outboundSchema: z.ZodType<ProductAttribute$Outbound, z.ZodTypeDef, ProductAttribute>;
447
55
  /** @deprecated use `ProductAttribute$Outbound` instead. */
448
56
  type Outbound = ProductAttribute$Outbound;
449
57
  }