@storepecker/storefront-core 2.3.6 → 2.4.0

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 (91) hide show
  1. package/dist/api/index.cjs +28 -24
  2. package/dist/api/index.d.cts +8 -5
  3. package/dist/api/index.d.ts +8 -5
  4. package/dist/api/index.js +1 -1
  5. package/dist/{booking-CG6tul9l.d.ts → booking-BVWe8HHh.d.ts} +1 -1
  6. package/dist/{booking-DNVf5ZAS.d.cts → booking-DX9SU_qm.d.cts} +1 -1
  7. package/dist/cart-kJoawc_Z.d.cts +126 -0
  8. package/dist/cart-y-7RPmnQ.d.ts +126 -0
  9. package/dist/checkout/index.cjs +22 -22
  10. package/dist/checkout/index.d.cts +3 -1
  11. package/dist/checkout/index.d.ts +3 -1
  12. package/dist/checkout/index.js +2 -2
  13. package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
  14. package/dist/chunk-3YRSHPM6.cjs +34 -0
  15. package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
  16. package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
  17. package/dist/chunk-B3BXKMQA.cjs +271 -0
  18. package/dist/chunk-BTR3HLL4.js +14 -0
  19. package/dist/chunk-EGFOTJPC.js +22 -0
  20. package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
  21. package/dist/chunk-HAQWCNDY.cjs +24 -0
  22. package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
  23. package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
  24. package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
  25. package/dist/chunk-L43KF3AC.js +269 -0
  26. package/dist/chunk-LHF5BSWO.cjs +16 -0
  27. package/dist/chunk-LJUGNSQQ.cjs +149 -0
  28. package/dist/chunk-NA5GT4D3.js +75 -0
  29. package/dist/chunk-OSM73ETC.js +139 -0
  30. package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
  31. package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
  32. package/dist/chunk-U7EXLQCT.js +32 -0
  33. package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
  34. package/dist/chunk-V447PVRV.cjs +308 -0
  35. package/dist/chunk-VWQR3A7V.cjs +81 -0
  36. package/dist/chunk-YK4M3SFP.js +301 -0
  37. package/dist/{collections-Bz9KD7Na.d.cts → collections-BDSVfRNo.d.ts} +1 -1
  38. package/dist/{collections-CkEUi3BR.d.ts → collections-WzvTO0OQ.d.cts} +1 -1
  39. package/dist/components/address-form.cjs +17 -0
  40. package/dist/components/address-form.css +329 -0
  41. package/dist/components/address-form.d.cts +33 -0
  42. package/dist/components/address-form.d.ts +33 -0
  43. package/dist/components/address-form.js +11 -0
  44. package/dist/components/digital-product-download-modal.cjs +8 -0
  45. package/dist/components/digital-product-download-modal.d.cts +15 -0
  46. package/dist/components/digital-product-download-modal.d.ts +15 -0
  47. package/dist/components/digital-product-download-modal.js +2 -0
  48. package/dist/components/index.cjs +35 -695
  49. package/dist/components/index.d.cts +14 -87
  50. package/dist/components/index.d.ts +14 -87
  51. package/dist/components/index.js +11 -688
  52. package/dist/components/search-dropdown.cjs +7 -0
  53. package/dist/components/search-dropdown.css +200 -0
  54. package/dist/components/search-dropdown.d.cts +28 -0
  55. package/dist/components/search-dropdown.d.ts +28 -0
  56. package/dist/components/search-dropdown.js +1 -0
  57. package/dist/components/share-button.cjs +9 -0
  58. package/dist/components/share-button.d.cts +11 -0
  59. package/dist/components/share-button.d.ts +11 -0
  60. package/dist/components/share-button.js +3 -0
  61. package/dist/components/share-icon.cjs +7 -0
  62. package/dist/components/share-icon.d.cts +9 -0
  63. package/dist/components/share-icon.d.ts +9 -0
  64. package/dist/components/share-icon.js +1 -0
  65. package/dist/components/theme-data-initializer.cjs +8 -0
  66. package/dist/components/theme-data-initializer.d.cts +12 -0
  67. package/dist/components/theme-data-initializer.d.ts +12 -0
  68. package/dist/components/theme-data-initializer.js +2 -0
  69. package/dist/hooks/index.cjs +18 -17
  70. package/dist/hooks/index.d.cts +4 -2
  71. package/dist/hooks/index.d.ts +4 -2
  72. package/dist/hooks/index.js +6 -5
  73. package/dist/models/index.d.cts +6 -4
  74. package/dist/models/index.d.ts +6 -4
  75. package/dist/orders-CjNmCY5I.d.cts +144 -0
  76. package/dist/orders-L_8eIkUS.d.ts +144 -0
  77. package/dist/{pixelEvents-OVIkPw-J.d.ts → pixelEvents-Bo-VjAx8.d.ts} +4 -2
  78. package/dist/{pixelEvents-DYkiTkb2.d.cts → pixelEvents-C1rFPOwb.d.cts} +4 -2
  79. package/dist/{orders-fIdANHSl.d.ts → product-DJMdi4D4.d.cts} +1 -265
  80. package/dist/{orders-fIdANHSl.d.cts → product-DJMdi4D4.d.ts} +1 -265
  81. package/dist/store/index.cjs +5 -5
  82. package/dist/store/index.d.cts +6 -4
  83. package/dist/store/index.d.ts +6 -4
  84. package/dist/store/index.js +2 -2
  85. package/dist/utils/index.cjs +44 -43
  86. package/dist/utils/index.d.cts +7 -5
  87. package/dist/utils/index.d.ts +7 -5
  88. package/dist/utils/index.js +3 -2
  89. package/dist/{wishlist-stNzfvIP.d.cts → wishlist-CUuCTSVJ.d.cts} +1 -1
  90. package/dist/{wishlist-_bd4gLyQ.d.ts → wishlist-DKYFZR0s.d.ts} +1 -1
  91. package/package.json +49 -1
@@ -4,7 +4,7 @@ var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
4
4
  var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
5
5
  require('../chunk-SMHJRNCR.cjs');
6
6
  var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
7
- var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
7
+ var chunk7UK3E7SL_cjs = require('../chunk-7UK3E7SL.cjs');
8
8
  var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
9
9
  var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
10
10
  require('../chunk-BBRXE57K.cjs');
@@ -232,95 +232,99 @@ Object.defineProperty(exports, "removeCoupon", {
232
232
  });
233
233
  Object.defineProperty(exports, "checkPhonepePaymentStatus", {
234
234
  enumerable: true,
235
- get: function () { return chunkHTFVROIV_cjs.checkPhonepePaymentStatus; }
235
+ get: function () { return chunk7UK3E7SL_cjs.checkPhonepePaymentStatus; }
236
236
  });
237
237
  Object.defineProperty(exports, "getOrderDetails", {
238
238
  enumerable: true,
239
- get: function () { return chunkHTFVROIV_cjs.getOrderDetails; }
239
+ get: function () { return chunk7UK3E7SL_cjs.getOrderDetails; }
240
240
  });
241
241
  Object.defineProperty(exports, "getOrderDetailsByNumber", {
242
242
  enumerable: true,
243
- get: function () { return chunkHTFVROIV_cjs.getOrderDetailsByNumber; }
243
+ get: function () { return chunk7UK3E7SL_cjs.getOrderDetailsByNumber; }
244
+ });
245
+ Object.defineProperty(exports, "getOrderDetailsByRef", {
246
+ enumerable: true,
247
+ get: function () { return chunk7UK3E7SL_cjs.getOrderDetailsByRef; }
244
248
  });
245
249
  Object.defineProperty(exports, "getOrders", {
246
250
  enumerable: true,
247
- get: function () { return chunkHTFVROIV_cjs.getOrders; }
251
+ get: function () { return chunk7UK3E7SL_cjs.getOrders; }
248
252
  });
249
253
  Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
250
254
  enumerable: true,
251
- get: function () { return chunkHTFVROIV_cjs.getPublicOrderDetailsByNumber; }
255
+ get: function () { return chunk7UK3E7SL_cjs.getPublicOrderDetailsByNumber; }
252
256
  });
253
257
  Object.defineProperty(exports, "getStripePaymentStatus", {
254
258
  enumerable: true,
255
- get: function () { return chunkHTFVROIV_cjs.getStripePaymentStatus; }
259
+ get: function () { return chunk7UK3E7SL_cjs.getStripePaymentStatus; }
256
260
  });
257
261
  Object.defineProperty(exports, "getStripePaymentStatusPublic", {
258
262
  enumerable: true,
259
- get: function () { return chunkHTFVROIV_cjs.getStripePaymentStatusPublic; }
263
+ get: function () { return chunk7UK3E7SL_cjs.getStripePaymentStatusPublic; }
260
264
  });
261
265
  Object.defineProperty(exports, "makeCODOrder", {
262
266
  enumerable: true,
263
- get: function () { return chunkHTFVROIV_cjs.makeCODOrder; }
267
+ get: function () { return chunk7UK3E7SL_cjs.makeCODOrder; }
264
268
  });
265
269
  Object.defineProperty(exports, "phonepeOrderSuccess", {
266
270
  enumerable: true,
267
- get: function () { return chunkHTFVROIV_cjs.phonepeOrderSuccess; }
271
+ get: function () { return chunk7UK3E7SL_cjs.phonepeOrderSuccess; }
268
272
  });
269
273
  Object.defineProperty(exports, "phonepePublicOrderSuccess", {
270
274
  enumerable: true,
271
- get: function () { return chunkHTFVROIV_cjs.phonepePublicOrderSuccess; }
275
+ get: function () { return chunk7UK3E7SL_cjs.phonepePublicOrderSuccess; }
272
276
  });
273
277
  Object.defineProperty(exports, "placeOrder", {
274
278
  enumerable: true,
275
- get: function () { return chunkHTFVROIV_cjs.placeOrder; }
279
+ get: function () { return chunk7UK3E7SL_cjs.placeOrder; }
276
280
  });
277
281
  Object.defineProperty(exports, "publicMakeCODOrder", {
278
282
  enumerable: true,
279
- get: function () { return chunkHTFVROIV_cjs.publicMakeCODOrder; }
283
+ get: function () { return chunk7UK3E7SL_cjs.publicMakeCODOrder; }
280
284
  });
281
285
  Object.defineProperty(exports, "publicPlaceOrder", {
282
286
  enumerable: true,
283
- get: function () { return chunkHTFVROIV_cjs.publicPlaceOrder; }
287
+ get: function () { return chunk7UK3E7SL_cjs.publicPlaceOrder; }
284
288
  });
285
289
  Object.defineProperty(exports, "razorpayOrderFail", {
286
290
  enumerable: true,
287
- get: function () { return chunkHTFVROIV_cjs.razorpayOrderFail; }
291
+ get: function () { return chunk7UK3E7SL_cjs.razorpayOrderFail; }
288
292
  });
289
293
  Object.defineProperty(exports, "razorpayOrderSuccess", {
290
294
  enumerable: true,
291
- get: function () { return chunkHTFVROIV_cjs.razorpayOrderSuccess; }
295
+ get: function () { return chunk7UK3E7SL_cjs.razorpayOrderSuccess; }
292
296
  });
293
297
  Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
294
298
  enumerable: true,
295
- get: function () { return chunkHTFVROIV_cjs.razorpayPublicOrderSuccess; }
299
+ get: function () { return chunk7UK3E7SL_cjs.razorpayPublicOrderSuccess; }
296
300
  });
297
301
  Object.defineProperty(exports, "stripeOrderFail", {
298
302
  enumerable: true,
299
- get: function () { return chunkHTFVROIV_cjs.stripeOrderFail; }
303
+ get: function () { return chunk7UK3E7SL_cjs.stripeOrderFail; }
300
304
  });
301
305
  Object.defineProperty(exports, "stripeOrderSuccess", {
302
306
  enumerable: true,
303
- get: function () { return chunkHTFVROIV_cjs.stripeOrderSuccess; }
307
+ get: function () { return chunk7UK3E7SL_cjs.stripeOrderSuccess; }
304
308
  });
305
309
  Object.defineProperty(exports, "stripePublicOrderSuccess", {
306
310
  enumerable: true,
307
- get: function () { return chunkHTFVROIV_cjs.stripePublicOrderSuccess; }
311
+ get: function () { return chunk7UK3E7SL_cjs.stripePublicOrderSuccess; }
308
312
  });
309
313
  Object.defineProperty(exports, "updateOrder", {
310
314
  enumerable: true,
311
- get: function () { return chunkHTFVROIV_cjs.updateOrder; }
315
+ get: function () { return chunk7UK3E7SL_cjs.updateOrder; }
312
316
  });
313
317
  Object.defineProperty(exports, "updateOrderCustomization", {
314
318
  enumerable: true,
315
- get: function () { return chunkHTFVROIV_cjs.updateOrderCustomization; }
319
+ get: function () { return chunk7UK3E7SL_cjs.updateOrderCustomization; }
316
320
  });
317
321
  Object.defineProperty(exports, "uploadCustomizationImage", {
318
322
  enumerable: true,
319
- get: function () { return chunkHTFVROIV_cjs.uploadCustomizationImage; }
323
+ get: function () { return chunk7UK3E7SL_cjs.uploadCustomizationImage; }
320
324
  });
321
325
  Object.defineProperty(exports, "verifyTabbyPayment", {
322
326
  enumerable: true,
323
- get: function () { return chunkHTFVROIV_cjs.verifyTabbyPayment; }
327
+ get: function () { return chunk7UK3E7SL_cjs.verifyTabbyPayment; }
324
328
  });
325
329
  Object.defineProperty(exports, "addAddress", {
326
330
  enumerable: true,
@@ -1,10 +1,12 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import { A as Address } from '../address-DwBZHzbI.cjs';
4
- import { U as User, C as Cart, m as Product, h as CouponResponse, g as Coupon, l as Order, f as Category, o as ProductDetail } from '../orders-fIdANHSl.cjs';
5
- import { W as Wishlist } from '../wishlist-stNzfvIP.cjs';
6
- import { C as CollectionResponse } from '../collections-Bz9KD7Na.cjs';
7
- import { R as Review, A as Analytics, B as Booking } from '../booking-DNVf5ZAS.cjs';
4
+ import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-kJoawc_Z.cjs';
5
+ import { d as Product, f as ProductDetail } from '../product-DJMdi4D4.cjs';
6
+ import { O as Order } from '../orders-CjNmCY5I.cjs';
7
+ import { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
8
+ import { C as CollectionResponse } from '../collections-WzvTO0OQ.cjs';
9
+ import { R as Review, A as Analytics, B as Booking } from '../booking-DX9SU_qm.cjs';
8
10
  import 'react-toastify';
9
11
 
10
12
  /**
@@ -69,6 +71,7 @@ declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<Coun
69
71
  declare function getOrders(url: string): Promise<Order.OrderResponse>;
70
72
  declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
71
73
  declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
74
+ declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
72
75
  declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
73
76
  declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
74
77
  interface PublicOrderDetails {
@@ -161,4 +164,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
161
164
  results: Booking[];
162
165
  }>>;
163
166
 
164
- export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
167
+ export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
@@ -1,10 +1,12 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import { A as Address } from '../address-DwBZHzbI.js';
4
- import { U as User, C as Cart, m as Product, h as CouponResponse, g as Coupon, l as Order, f as Category, o as ProductDetail } from '../orders-fIdANHSl.js';
5
- import { W as Wishlist } from '../wishlist-_bd4gLyQ.js';
6
- import { C as CollectionResponse } from '../collections-CkEUi3BR.js';
7
- import { R as Review, A as Analytics, B as Booking } from '../booking-CG6tul9l.js';
4
+ import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-y-7RPmnQ.js';
5
+ import { d as Product, f as ProductDetail } from '../product-DJMdi4D4.js';
6
+ import { O as Order } from '../orders-L_8eIkUS.js';
7
+ import { W as Wishlist } from '../wishlist-DKYFZR0s.js';
8
+ import { C as CollectionResponse } from '../collections-BDSVfRNo.js';
9
+ import { R as Review, A as Analytics, B as Booking } from '../booking-BVWe8HHh.js';
8
10
  import 'react-toastify';
9
11
 
10
12
  /**
@@ -69,6 +71,7 @@ declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<Coun
69
71
  declare function getOrders(url: string): Promise<Order.OrderResponse>;
70
72
  declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
71
73
  declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
74
+ declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
72
75
  declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
73
76
  declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
74
77
  interface PublicOrderDetails {
@@ -161,4 +164,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
161
164
  results: Booking[];
162
165
  }>>;
163
166
 
164
- export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
167
+ export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
package/dist/api/index.js CHANGED
@@ -2,7 +2,7 @@ export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
2
2
  export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-U25T7M6S.js';
3
3
  import '../chunk-QAC72HKO.js';
4
4
  export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-7M5CVYZJ.js';
5
- export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-LW3V53WJ.js';
5
+ export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-UVU7H4E6.js';
6
6
  export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
7
7
  import { http_service_default } from '../chunk-3SYYP3XV.js';
8
8
  export { getHttpService, http_service_default as httpService, resetHttpService, setSessionExpiredCallback } from '../chunk-3SYYP3XV.js';
@@ -1,4 +1,4 @@
1
- import { o as ProductDetail } from './orders-fIdANHSl.js';
1
+ import { f as ProductDetail } from './product-DJMdi4D4.js';
2
2
 
3
3
  declare namespace Review {
4
4
  interface ReviewPayload {
@@ -1,4 +1,4 @@
1
- import { o as ProductDetail } from './orders-fIdANHSl.cjs';
1
+ import { f as ProductDetail } from './product-DJMdi4D4.cjs';
2
2
 
3
3
  declare namespace Review {
4
4
  interface ReviewPayload {
@@ -0,0 +1,126 @@
1
+ import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-DJMdi4D4.cjs';
2
+
3
+ declare namespace User {
4
+ interface Root {
5
+ customer_name: string;
6
+ phone: string;
7
+ email: string;
8
+ date_of_birth: string;
9
+ country_code: string;
10
+ gender: string;
11
+ }
12
+ interface UserState {
13
+ user: LoginUserData | null;
14
+ isAuthenticated: boolean;
15
+ status: SLICE_STATUS;
16
+ }
17
+ interface LoginUserData {
18
+ email: string;
19
+ first_name: string;
20
+ last_name: string;
21
+ access: string;
22
+ refresh: string;
23
+ user_id: number;
24
+ phone_number: string;
25
+ }
26
+ interface UserDetailsPayload {
27
+ customer_name: string;
28
+ gender: string;
29
+ date_of_birth: string;
30
+ }
31
+ type LoginMethod = "email_otp" | "phone_otp";
32
+ }
33
+
34
+ declare namespace Category {
35
+ interface Root {
36
+ id: number;
37
+ name: string;
38
+ photo: string;
39
+ slug: string;
40
+ description: string;
41
+ children?: Root[];
42
+ }
43
+ interface CategoriesState {
44
+ data: Root[];
45
+ status: SLICE_STATUS;
46
+ }
47
+ }
48
+
49
+ type DiscountType = "discount";
50
+ type ValueType = "percentage" | "fixed";
51
+ type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
52
+ type CouponStatus = "active" | "inactive" | "expired";
53
+ interface Coupon {
54
+ id: number;
55
+ coupon_code: string;
56
+ discount_type: DiscountType;
57
+ value: string;
58
+ value_type: ValueType;
59
+ min_order_amount: string;
60
+ max_discount_amount: string;
61
+ start_date: string;
62
+ end_date: string;
63
+ status: CouponStatus;
64
+ is_deleted: boolean;
65
+ usage_limit: number;
66
+ usage_count: number;
67
+ applicable_target: ApplicableTarget;
68
+ applicable_product_variants: Product.ProductVariant[];
69
+ applicable_product_bundles: any[];
70
+ applicable_product_categories: Category.Root[];
71
+ applicable_customers: User.Root[];
72
+ auto_apply: boolean;
73
+ created_at: string;
74
+ updated_at: string;
75
+ is_cart_applicable: boolean;
76
+ coupon_message: string;
77
+ }
78
+ type Coupons = Coupon[];
79
+ interface CouponResponse {
80
+ coupon: Coupon;
81
+ }
82
+
83
+ interface CartState {
84
+ cart: Cart.Root | null;
85
+ status: SLICE_STATUS;
86
+ }
87
+ declare namespace Cart {
88
+ interface Root {
89
+ product_variants: ProductDetail.Root[];
90
+ total_amount: number;
91
+ total_quantity: number;
92
+ products_quantity: ProductsQuantity;
93
+ cart_count: number;
94
+ missing_items: {
95
+ [key: number]: number;
96
+ };
97
+ missing_cart_items: {
98
+ [key: string]: number;
99
+ };
100
+ customization_inputs: Array<CustomizationInput>;
101
+ total_coupon_discount: number;
102
+ variant_discounts: {
103
+ [key: number]: number;
104
+ };
105
+ total_shipping: number;
106
+ total_tax_amount: number;
107
+ applied_coupon: Coupon | {};
108
+ }
109
+ interface CustomizationInput {
110
+ id: number;
111
+ product_variant: number;
112
+ customization_option: number;
113
+ customer_wishlist: null;
114
+ customer_order: null;
115
+ customer_cart: number;
116
+ customer_input: string;
117
+ customization_option_name: string;
118
+ customization_option_type: string;
119
+ is_mandatory: boolean;
120
+ }
121
+ interface ProductsQuantity {
122
+ [key: number]: number;
123
+ }
124
+ }
125
+
126
+ export { type ApplicableTarget as A, Cart as C, type DiscountType as D, User as U, type ValueType as V, type CartState as a, Category as b, type Coupon as c, type CouponResponse as d, type CouponStatus as e, type Coupons as f };
@@ -0,0 +1,126 @@
1
+ import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-DJMdi4D4.js';
2
+
3
+ declare namespace User {
4
+ interface Root {
5
+ customer_name: string;
6
+ phone: string;
7
+ email: string;
8
+ date_of_birth: string;
9
+ country_code: string;
10
+ gender: string;
11
+ }
12
+ interface UserState {
13
+ user: LoginUserData | null;
14
+ isAuthenticated: boolean;
15
+ status: SLICE_STATUS;
16
+ }
17
+ interface LoginUserData {
18
+ email: string;
19
+ first_name: string;
20
+ last_name: string;
21
+ access: string;
22
+ refresh: string;
23
+ user_id: number;
24
+ phone_number: string;
25
+ }
26
+ interface UserDetailsPayload {
27
+ customer_name: string;
28
+ gender: string;
29
+ date_of_birth: string;
30
+ }
31
+ type LoginMethod = "email_otp" | "phone_otp";
32
+ }
33
+
34
+ declare namespace Category {
35
+ interface Root {
36
+ id: number;
37
+ name: string;
38
+ photo: string;
39
+ slug: string;
40
+ description: string;
41
+ children?: Root[];
42
+ }
43
+ interface CategoriesState {
44
+ data: Root[];
45
+ status: SLICE_STATUS;
46
+ }
47
+ }
48
+
49
+ type DiscountType = "discount";
50
+ type ValueType = "percentage" | "fixed";
51
+ type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
52
+ type CouponStatus = "active" | "inactive" | "expired";
53
+ interface Coupon {
54
+ id: number;
55
+ coupon_code: string;
56
+ discount_type: DiscountType;
57
+ value: string;
58
+ value_type: ValueType;
59
+ min_order_amount: string;
60
+ max_discount_amount: string;
61
+ start_date: string;
62
+ end_date: string;
63
+ status: CouponStatus;
64
+ is_deleted: boolean;
65
+ usage_limit: number;
66
+ usage_count: number;
67
+ applicable_target: ApplicableTarget;
68
+ applicable_product_variants: Product.ProductVariant[];
69
+ applicable_product_bundles: any[];
70
+ applicable_product_categories: Category.Root[];
71
+ applicable_customers: User.Root[];
72
+ auto_apply: boolean;
73
+ created_at: string;
74
+ updated_at: string;
75
+ is_cart_applicable: boolean;
76
+ coupon_message: string;
77
+ }
78
+ type Coupons = Coupon[];
79
+ interface CouponResponse {
80
+ coupon: Coupon;
81
+ }
82
+
83
+ interface CartState {
84
+ cart: Cart.Root | null;
85
+ status: SLICE_STATUS;
86
+ }
87
+ declare namespace Cart {
88
+ interface Root {
89
+ product_variants: ProductDetail.Root[];
90
+ total_amount: number;
91
+ total_quantity: number;
92
+ products_quantity: ProductsQuantity;
93
+ cart_count: number;
94
+ missing_items: {
95
+ [key: number]: number;
96
+ };
97
+ missing_cart_items: {
98
+ [key: string]: number;
99
+ };
100
+ customization_inputs: Array<CustomizationInput>;
101
+ total_coupon_discount: number;
102
+ variant_discounts: {
103
+ [key: number]: number;
104
+ };
105
+ total_shipping: number;
106
+ total_tax_amount: number;
107
+ applied_coupon: Coupon | {};
108
+ }
109
+ interface CustomizationInput {
110
+ id: number;
111
+ product_variant: number;
112
+ customization_option: number;
113
+ customer_wishlist: null;
114
+ customer_order: null;
115
+ customer_cart: number;
116
+ customer_input: string;
117
+ customization_option_name: string;
118
+ customization_option_type: string;
119
+ is_mandatory: boolean;
120
+ }
121
+ interface ProductsQuantity {
122
+ [key: number]: number;
123
+ }
124
+ }
125
+
126
+ export { type ApplicableTarget as A, Cart as C, type DiscountType as D, User as U, type ValueType as V, type CartState as a, Category as b, type Coupon as c, type CouponResponse as d, type CouponStatus as e, type Coupons as f };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkBTT3XQ32_cjs = require('../chunk-BTT3XQ32.cjs');
3
+ var chunk33TWVRZE_cjs = require('../chunk-33TWVRZE.cjs');
4
4
  require('../chunk-XFOUNOKO.cjs');
5
5
  var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
6
- var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
6
+ var chunk7UK3E7SL_cjs = require('../chunk-7UK3E7SL.cjs');
7
7
  var chunkTB72NPRM_cjs = require('../chunk-TB72NPRM.cjs');
8
8
  require('../chunk-ECHV2JSY.cjs');
9
9
  require('../chunk-BBRXE57K.cjs');
@@ -49,7 +49,7 @@ function calculateCartTotals(cart) {
49
49
  // src/checkout/payment-status.ts
50
50
  async function checkPhonepeReturnStatus(transactionId, callbacks) {
51
51
  try {
52
- const response = await chunkHTFVROIV_cjs.checkPhonepePaymentStatus(transactionId);
52
+ const response = await chunk7UK3E7SL_cjs.checkPhonepePaymentStatus(transactionId);
53
53
  if (response.data.success) {
54
54
  callbacks.onSuccess(void 0);
55
55
  } else {
@@ -62,8 +62,8 @@ async function checkPhonepeReturnStatus(transactionId, callbacks) {
62
62
  async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, callbacks) {
63
63
  try {
64
64
  const [paymentResponse, orderResponse] = await Promise.all([
65
- chunkHTFVROIV_cjs.checkPhonepePaymentStatus(transactionId),
66
- chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber)
65
+ chunk7UK3E7SL_cjs.checkPhonepePaymentStatus(transactionId),
66
+ chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber)
67
67
  ]);
68
68
  const order = orderResponse.data;
69
69
  callbacks.onOrderLoaded?.(order);
@@ -80,12 +80,12 @@ async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, cal
80
80
  }
81
81
  async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, callbacks, options) {
82
82
  try {
83
- const getStatus = options?.isPublic ? chunkHTFVROIV_cjs.getStripePaymentStatusPublic : chunkHTFVROIV_cjs.getStripePaymentStatus;
83
+ const getStatus = options?.isPublic ? chunk7UK3E7SL_cjs.getStripePaymentStatusPublic : chunk7UK3E7SL_cjs.getStripePaymentStatus;
84
84
  const response = await getStatus(sessionId, orderNumber, paymentLinkUrl);
85
85
  const data = response.data;
86
86
  if (data.payment_status === "paid" || data.status === "complete") {
87
87
  try {
88
- const orderResponse = await chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber);
88
+ const orderResponse = await chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber);
89
89
  const order = orderResponse.data;
90
90
  callbacks.onOrderLoaded?.(order);
91
91
  chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
@@ -103,10 +103,10 @@ async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, c
103
103
  }
104
104
  async function checkTabbyReturnStatus(orderNumber, callbacks) {
105
105
  try {
106
- const response = await chunkHTFVROIV_cjs.verifyTabbyPayment(orderNumber);
106
+ const response = await chunk7UK3E7SL_cjs.verifyTabbyPayment(orderNumber);
107
107
  if (response.data.order_status === "paid" || response.data.order_status === "confirmed") {
108
108
  try {
109
- const orderResponse = await chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber);
109
+ const orderResponse = await chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber);
110
110
  const order = orderResponse.data;
111
111
  callbacks.onOrderLoaded?.(order);
112
112
  chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
@@ -125,55 +125,55 @@ async function checkTabbyReturnStatus(orderNumber, callbacks) {
125
125
 
126
126
  Object.defineProperty(exports, "applyCheckoutCoupon", {
127
127
  enumerable: true,
128
- get: function () { return chunkBTT3XQ32_cjs.applyCheckoutCoupon; }
128
+ get: function () { return chunk33TWVRZE_cjs.applyCheckoutCoupon; }
129
129
  });
130
130
  Object.defineProperty(exports, "fetchAppliedCoupon", {
131
131
  enumerable: true,
132
- get: function () { return chunkBTT3XQ32_cjs.fetchAppliedCoupon; }
132
+ get: function () { return chunk33TWVRZE_cjs.fetchAppliedCoupon; }
133
133
  });
134
134
  Object.defineProperty(exports, "fetchAvailableCoupons", {
135
135
  enumerable: true,
136
- get: function () { return chunkBTT3XQ32_cjs.fetchAvailableCoupons; }
136
+ get: function () { return chunk33TWVRZE_cjs.fetchAvailableCoupons; }
137
137
  });
138
138
  Object.defineProperty(exports, "handleCODPayment", {
139
139
  enumerable: true,
140
- get: function () { return chunkBTT3XQ32_cjs.handleCODPayment; }
140
+ get: function () { return chunk33TWVRZE_cjs.handleCODPayment; }
141
141
  });
142
142
  Object.defineProperty(exports, "handlePhonepePayment", {
143
143
  enumerable: true,
144
- get: function () { return chunkBTT3XQ32_cjs.handlePhonepePayment; }
144
+ get: function () { return chunk33TWVRZE_cjs.handlePhonepePayment; }
145
145
  });
146
146
  Object.defineProperty(exports, "handleRazorpayFail", {
147
147
  enumerable: true,
148
- get: function () { return chunkBTT3XQ32_cjs.handleRazorpayFail; }
148
+ get: function () { return chunk33TWVRZE_cjs.handleRazorpayFail; }
149
149
  });
150
150
  Object.defineProperty(exports, "handleRazorpaySuccess", {
151
151
  enumerable: true,
152
- get: function () { return chunkBTT3XQ32_cjs.handleRazorpaySuccess; }
152
+ get: function () { return chunk33TWVRZE_cjs.handleRazorpaySuccess; }
153
153
  });
154
154
  Object.defineProperty(exports, "handleStripePayment", {
155
155
  enumerable: true,
156
- get: function () { return chunkBTT3XQ32_cjs.handleStripePayment; }
156
+ get: function () { return chunk33TWVRZE_cjs.handleStripePayment; }
157
157
  });
158
158
  Object.defineProperty(exports, "handleStripeSuccess", {
159
159
  enumerable: true,
160
- get: function () { return chunkBTT3XQ32_cjs.handleStripeSuccess; }
160
+ get: function () { return chunk33TWVRZE_cjs.handleStripeSuccess; }
161
161
  });
162
162
  Object.defineProperty(exports, "handleTabbyPayment", {
163
163
  enumerable: true,
164
- get: function () { return chunkBTT3XQ32_cjs.handleTabbyPayment; }
164
+ get: function () { return chunk33TWVRZE_cjs.handleTabbyPayment; }
165
165
  });
166
166
  Object.defineProperty(exports, "openRazorpayCheckout", {
167
167
  enumerable: true,
168
- get: function () { return chunkBTT3XQ32_cjs.openRazorpayCheckout; }
168
+ get: function () { return chunk33TWVRZE_cjs.openRazorpayCheckout; }
169
169
  });
170
170
  Object.defineProperty(exports, "processPayment", {
171
171
  enumerable: true,
172
- get: function () { return chunkBTT3XQ32_cjs.processPayment; }
172
+ get: function () { return chunk33TWVRZE_cjs.processPayment; }
173
173
  });
174
174
  Object.defineProperty(exports, "removeCheckoutCoupon", {
175
175
  enumerable: true,
176
- get: function () { return chunkBTT3XQ32_cjs.removeCheckoutCoupon; }
176
+ get: function () { return chunk33TWVRZE_cjs.removeCheckoutCoupon; }
177
177
  });
178
178
  Object.defineProperty(exports, "IP_API_CACHE_KEY", {
179
179
  enumerable: true,
@@ -1,5 +1,7 @@
1
1
  import * as Yup from 'yup';
2
- import { C as Cart, g as Coupon, l as Order } from '../orders-fIdANHSl.cjs';
2
+ import { C as Cart, c as Coupon } from '../cart-kJoawc_Z.cjs';
3
+ import { O as Order } from '../orders-CjNmCY5I.cjs';
4
+ import '../product-DJMdi4D4.cjs';
3
5
  import 'react-toastify';
4
6
 
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  import * as Yup from 'yup';
2
- import { C as Cart, g as Coupon, l as Order } from '../orders-fIdANHSl.js';
2
+ import { C as Cart, c as Coupon } from '../cart-y-7RPmnQ.js';
3
+ import { O as Order } from '../orders-L_8eIkUS.js';
4
+ import '../product-DJMdi4D4.js';
3
5
  import 'react-toastify';
4
6
 
5
7
  /**
@@ -1,7 +1,7 @@
1
- export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-Y4NGR42Z.js';
1
+ export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-HUIT4JCR.js';
2
2
  import '../chunk-7M5CVYZJ.js';
3
3
  import { pixelEvents } from '../chunk-WFDKKOO7.js';
4
- import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-LW3V53WJ.js';
4
+ import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-UVU7H4E6.js';
5
5
  export { IP_API_CACHE_KEY, addressFormInitialValues, addressValidationSchema, buildAddressPayload, buildSubmitPayload, clearAddressFormSession, decodeAddress, encodeAddress, isValidPhoneNumber, loadAddressFormFromSession, parseEditAddress, sanitizePhoneNumber, saveAddressFormToSession } from '../chunk-ELP23UGF.js';
6
6
  import '../chunk-3SYYP3XV.js';
7
7
  import '../chunk-WEMNXIRS.js';