@storepecker/storefront-core 2.3.4 → 2.3.6

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 (39) hide show
  1. package/dist/api/index.d.cts +4 -6
  2. package/dist/api/index.d.ts +4 -6
  3. package/dist/{booking-BVWe8HHh.d.ts → booking-CG6tul9l.d.ts} +1 -1
  4. package/dist/{booking-DX9SU_qm.d.cts → booking-DNVf5ZAS.d.cts} +1 -1
  5. package/dist/checkout/index.d.cts +1 -3
  6. package/dist/checkout/index.d.ts +1 -3
  7. package/dist/chunk-5NUDTIQ2.js +9 -0
  8. package/dist/chunk-DODFO744.cjs +11 -0
  9. package/dist/{chunk-SITQV6WZ.cjs → chunk-JH4JJBXE.cjs} +2 -2
  10. package/dist/{chunk-XGRX4LHO.js → chunk-TF2KMTB6.js} +2 -2
  11. package/dist/{collections-BDSVfRNo.d.ts → collections-Bz9KD7Na.d.cts} +1 -1
  12. package/dist/{collections-WzvTO0OQ.d.cts → collections-CkEUi3BR.d.ts} +1 -1
  13. package/dist/components/index.cjs +11 -0
  14. package/dist/components/index.d.cts +8 -3
  15. package/dist/components/index.d.ts +8 -3
  16. package/dist/components/index.js +11 -1
  17. package/dist/hooks/index.cjs +4 -4
  18. package/dist/hooks/index.d.cts +2 -4
  19. package/dist/hooks/index.d.ts +2 -4
  20. package/dist/hooks/index.js +1 -1
  21. package/dist/models/index.d.cts +4 -6
  22. package/dist/models/index.d.ts +4 -6
  23. package/dist/{product-DJMdi4D4.d.cts → orders-fIdANHSl.d.cts} +265 -1
  24. package/dist/{product-DJMdi4D4.d.ts → orders-fIdANHSl.d.ts} +265 -1
  25. package/dist/pixelEvents-DYkiTkb2.d.cts +369 -0
  26. package/dist/pixelEvents-OVIkPw-J.d.ts +369 -0
  27. package/dist/store/index.cjs +9 -4
  28. package/dist/store/index.d.cts +14 -8
  29. package/dist/store/index.d.ts +14 -8
  30. package/dist/store/index.js +2 -1
  31. package/dist/utils/index.d.cts +6 -371
  32. package/dist/utils/index.d.ts +6 -371
  33. package/dist/{wishlist-DKYFZR0s.d.ts → wishlist-_bd4gLyQ.d.ts} +1 -1
  34. package/dist/{wishlist-CUuCTSVJ.d.cts → wishlist-stNzfvIP.d.cts} +1 -1
  35. package/package.json +1 -1
  36. package/dist/cart-kJoawc_Z.d.cts +0 -126
  37. package/dist/cart-y-7RPmnQ.d.ts +0 -126
  38. package/dist/orders-CjNmCY5I.d.cts +0 -144
  39. package/dist/orders-L_8eIkUS.d.ts +0 -144
@@ -1,12 +1,10 @@
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, 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';
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';
10
8
  import 'react-toastify';
11
9
 
12
10
  /**
@@ -1,12 +1,10 @@
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, 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';
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';
10
8
  import 'react-toastify';
11
9
 
12
10
  /**
@@ -1,4 +1,4 @@
1
- import { f as ProductDetail } from './product-DJMdi4D4.js';
1
+ import { o as ProductDetail } from './orders-fIdANHSl.js';
2
2
 
3
3
  declare namespace Review {
4
4
  interface ReviewPayload {
@@ -1,4 +1,4 @@
1
- import { f as ProductDetail } from './product-DJMdi4D4.cjs';
1
+ import { o as ProductDetail } from './orders-fIdANHSl.cjs';
2
2
 
3
3
  declare namespace Review {
4
4
  interface ReviewPayload {
@@ -1,7 +1,5 @@
1
1
  import * as Yup from 'yup';
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';
2
+ import { C as Cart, g as Coupon, l as Order } from '../orders-fIdANHSl.cjs';
5
3
  import 'react-toastify';
6
4
 
7
5
  /**
@@ -1,7 +1,5 @@
1
1
  import * as Yup from 'yup';
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';
2
+ import { C as Cart, g as Coupon, l as Order } from '../orders-fIdANHSl.js';
5
3
  import 'react-toastify';
6
4
 
7
5
  /**
@@ -0,0 +1,9 @@
1
+ import { create } from 'zustand';
2
+
3
+ // src/store/themeData.ts
4
+ var useThemeData = create((set) => ({
5
+ themeData: null,
6
+ setThemeData: (data) => set({ themeData: data })
7
+ }));
8
+
9
+ export { useThemeData };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var zustand = require('zustand');
4
+
5
+ // src/store/themeData.ts
6
+ var useThemeData = zustand.create((set) => ({
7
+ themeData: null,
8
+ setThemeData: (data) => set({ themeData: data })
9
+ }));
10
+
11
+ exports.useThemeData = useThemeData;
@@ -120,10 +120,10 @@ var useCartStore = zustand.create((set) => ({
120
120
  set({ status: "idle" /* IDLE */ });
121
121
  }
122
122
  },
123
- updateCustomization: async (customizationInput) => {
123
+ updateCustomization: async (customizationInputs) => {
124
124
  set({ status: "loading" /* LOADING */ });
125
125
  try {
126
- await chunkHTFVROIV_cjs.updateOrderCustomization(customizationInput);
126
+ await chunkHTFVROIV_cjs.updateOrderCustomization({ customization_inputs: customizationInputs });
127
127
  } catch {
128
128
  } finally {
129
129
  set({ status: "idle" /* IDLE */ });
@@ -118,10 +118,10 @@ var useCartStore = create((set) => ({
118
118
  set({ status: "idle" /* IDLE */ });
119
119
  }
120
120
  },
121
- updateCustomization: async (customizationInput) => {
121
+ updateCustomization: async (customizationInputs) => {
122
122
  set({ status: "loading" /* LOADING */ });
123
123
  try {
124
- await updateOrderCustomization(customizationInput);
124
+ await updateOrderCustomization({ customization_inputs: customizationInputs });
125
125
  } catch {
126
126
  } finally {
127
127
  set({ status: "idle" /* IDLE */ });
@@ -1,4 +1,4 @@
1
- import { d as Product } from './product-DJMdi4D4.js';
1
+ import { m as Product } from './orders-fIdANHSl.cjs';
2
2
 
3
3
  interface CollectionResponse {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import { d as Product } from './product-DJMdi4D4.cjs';
1
+ import { m as Product } from './orders-fIdANHSl.js';
2
2
 
3
3
  interface CollectionResponse {
4
4
  id: number;
@@ -4,6 +4,7 @@ var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
4
4
  var chunkJCOOINQF_cjs = require('../chunk-JCOOINQF.cjs');
5
5
  require('../chunk-RDUT4W3B.cjs');
6
6
  var chunk4CVKE6CC_cjs = require('../chunk-4CVKE6CC.cjs');
7
+ var chunkDODFO744_cjs = require('../chunk-DODFO744.cjs');
7
8
  require('../chunk-TB72NPRM.cjs');
8
9
  require('../chunk-ECHV2JSY.cjs');
9
10
  require('../chunk-BBRXE57K.cjs');
@@ -687,9 +688,19 @@ var DigitalProductDownloadModal = ({ open, onClose, product, downloadAttribute,
687
688
  );
688
689
  };
689
690
  var digital_product_download_modal_default = DigitalProductDownloadModal;
691
+ function ThemeDataInitializer({
692
+ themeData
693
+ }) {
694
+ const setThemeData = chunkDODFO744_cjs.useThemeData((state) => state.setThemeData);
695
+ react.useEffect(() => {
696
+ setThemeData(themeData);
697
+ }, [themeData]);
698
+ return null;
699
+ }
690
700
 
691
701
  exports.AddressForm = address_form_default2;
692
702
  exports.DigitalProductDownloadModal = digital_product_download_modal_default;
693
703
  exports.SearchDropdown = search_dropdown_default2;
694
704
  exports.ShareButton = share_button_default;
695
705
  exports.ShareIcon = ShareIcon;
706
+ exports.ThemeDataInitializer = ThemeDataInitializer;
@@ -1,11 +1,12 @@
1
1
  import React__default from 'react';
2
2
  import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
3
- import { f as ProductDetail } from '../product-DJMdi4D4.cjs';
3
+ import { o as ProductDetail, l as Order } from '../orders-fIdANHSl.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { O as Order } from '../orders-CjNmCY5I.cjs';
5
+ import { P as PageHeaderProps } from '../pixelEvents-DYkiTkb2.cjs';
6
6
  import 'formik';
7
7
  import '../address-DwBZHzbI.cjs';
8
8
  import 'react-toastify';
9
+ import '../collections-Bz9KD7Na.cjs';
9
10
 
10
11
  interface SearchDropdownOption {
11
12
  value: string | number;
@@ -82,4 +83,8 @@ interface DigitalProductDownloadModalProps {
82
83
  }
83
84
  declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
84
85
 
85
- export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon };
86
+ declare function ThemeDataInitializer({ themeData, }: {
87
+ themeData: PageHeaderProps;
88
+ }): null;
89
+
90
+ export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon, ThemeDataInitializer };
@@ -1,11 +1,12 @@
1
1
  import React__default from 'react';
2
2
  import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
3
- import { f as ProductDetail } from '../product-DJMdi4D4.js';
3
+ import { o as ProductDetail, l as Order } from '../orders-fIdANHSl.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { O as Order } from '../orders-L_8eIkUS.js';
5
+ import { P as PageHeaderProps } from '../pixelEvents-OVIkPw-J.js';
6
6
  import 'formik';
7
7
  import '../address-DwBZHzbI.js';
8
8
  import 'react-toastify';
9
+ import '../collections-CkEUi3BR.js';
9
10
 
10
11
  interface SearchDropdownOption {
11
12
  value: string | number;
@@ -82,4 +83,8 @@ interface DigitalProductDownloadModalProps {
82
83
  }
83
84
  declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
84
85
 
85
- export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon };
86
+ declare function ThemeDataInitializer({ themeData, }: {
87
+ themeData: PageHeaderProps;
88
+ }): null;
89
+
90
+ export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon, ThemeDataInitializer };
@@ -2,6 +2,7 @@ import { timeFromNow, isExpired } from '../chunk-HSF2D56O.js';
2
2
  import { useAddressForm } from '../chunk-ILVGYHNI.js';
3
3
  import '../chunk-ZGMLOLTC.js';
4
4
  import { shareLink, convertToCurrency } from '../chunk-YUPBTD4M.js';
5
+ import { useThemeData } from '../chunk-5NUDTIQ2.js';
5
6
  import '../chunk-ELP23UGF.js';
6
7
  import '../chunk-3SYYP3XV.js';
7
8
  import '../chunk-WEMNXIRS.js';
@@ -680,5 +681,14 @@ var DigitalProductDownloadModal = ({ open, onClose, product, downloadAttribute,
680
681
  );
681
682
  };
682
683
  var digital_product_download_modal_default = DigitalProductDownloadModal;
684
+ function ThemeDataInitializer({
685
+ themeData
686
+ }) {
687
+ const setThemeData = useThemeData((state) => state.setThemeData);
688
+ useEffect(() => {
689
+ setThemeData(themeData);
690
+ }, [themeData]);
691
+ return null;
692
+ }
683
693
 
684
- export { address_form_default2 as AddressForm, digital_product_download_modal_default as DigitalProductDownloadModal, search_dropdown_default2 as SearchDropdown, share_button_default as ShareButton, ShareIcon };
694
+ export { address_form_default2 as AddressForm, digital_product_download_modal_default as DigitalProductDownloadModal, search_dropdown_default2 as SearchDropdown, share_button_default as ShareButton, ShareIcon, ThemeDataInitializer };
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
4
4
  var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
5
- var chunkSITQV6WZ_cjs = require('../chunk-SITQV6WZ.cjs');
5
+ var chunkJH4JJBXE_cjs = require('../chunk-JH4JJBXE.cjs');
6
6
  var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
7
7
  var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
8
8
  var chunkBTT3XQ32_cjs = require('../chunk-BTT3XQ32.cjs');
@@ -320,7 +320,7 @@ function useCheckoutPayment(options) {
320
320
  const [isConfirmingPayment, setIsConfirmingPayment] = react.useState(false);
321
321
  const [showSuccessModal, setShowSuccessModal] = react.useState(false);
322
322
  const [showFailureModal, setShowFailureModal] = react.useState(false);
323
- const resetCartCount = chunkSITQV6WZ_cjs.useCartStore((s) => s.resetCartCount);
323
+ const resetCartCount = chunkJH4JJBXE_cjs.useCartStore((s) => s.resetCartCount);
324
324
  const callbacks = {
325
325
  onSuccess: (order) => {
326
326
  setOrderSummary(order);
@@ -506,8 +506,8 @@ function useVariantSelector(options) {
506
506
  }
507
507
  function useShopCheckout(options) {
508
508
  const { product, onNavigateToCart, onToast } = options;
509
- const { addToCart, setCart } = chunkSITQV6WZ_cjs.useCartStore();
510
- const isUserAuthenticated = chunkSITQV6WZ_cjs.useAuthStore((s) => s.isAuthenticated);
509
+ const { addToCart, setCart } = chunkJH4JJBXE_cjs.useCartStore();
510
+ const isUserAuthenticated = chunkJH4JJBXE_cjs.useAuthStore((s) => s.isAuthenticated);
511
511
  const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
512
512
  const [isAddedToCart, setIsAddedToCart] = react.useState(false);
513
513
  const [loading, setLoading] = react.useState(false);
@@ -1,9 +1,7 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.cjs';
2
2
  import * as React from 'react';
3
- import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-kJoawc_Z.cjs';
4
- import { O as Order } from '../orders-CjNmCY5I.cjs';
5
- import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-DJMdi4D4.cjs';
6
- import { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
3
+ import { C as Cart, l as Order, m as Product, f as Category, U as User, g as Coupon, o as ProductDetail, n as ProductAttribute, a as Attributes } from '../orders-fIdANHSl.cjs';
4
+ import { W as Wishlist } from '../wishlist-stNzfvIP.cjs';
7
5
  export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
8
6
  import 'react-toastify';
9
7
  import 'formik';
@@ -1,9 +1,7 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.js';
2
2
  import * as React from 'react';
3
- import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-y-7RPmnQ.js';
4
- import { O as Order } from '../orders-L_8eIkUS.js';
5
- import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-DJMdi4D4.js';
6
- import { W as Wishlist } from '../wishlist-DKYFZR0s.js';
3
+ import { C as Cart, l as Order, m as Product, f as Category, U as User, g as Coupon, o as ProductDetail, n as ProductAttribute, a as Attributes } from '../orders-fIdANHSl.js';
4
+ import { W as Wishlist } from '../wishlist-_bd4gLyQ.js';
7
5
  export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
8
6
  import 'react-toastify';
9
7
  import 'formik';
@@ -1,6 +1,6 @@
1
1
  import { getUserDetails } from '../chunk-WYXT5AAG.js';
2
2
  import { findMatchingVariant, findSimilarVariant, isVariantCombinationAvailable, isColorVariantType } from '../chunk-HEFA67WK.js';
3
- import { useCartStore, useAuthStore } from '../chunk-XGRX4LHO.js';
3
+ import { useCartStore, useAuthStore } from '../chunk-TF2KMTB6.js';
4
4
  import { getCart, getProductList, getProductDetail, getWishlist, notifyProductStock, getProductCategories, getCategories } from '../chunk-U25T7M6S.js';
5
5
  import { cart_default } from '../chunk-QAC72HKO.js';
6
6
  import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-Y4NGR42Z.js';
@@ -1,11 +1,9 @@
1
1
  export { A as Address } from '../address-DwBZHzbI.cjs';
2
- export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-DX9SU_qm.cjs';
3
- export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-kJoawc_Z.cjs';
4
- export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-WzvTO0OQ.cjs';
5
- export { O as Order } from '../orders-CjNmCY5I.cjs';
2
+ export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-DNVf5ZAS.cjs';
3
+ export { A as ApplicableTarget, a as Attributes, B as BaseProduct, b as BookingService, c as BookingServiceDate, d as Brand, C as Cart, e as CartState, f as Category, g as Coupon, h as CouponResponse, i as CouponStatus, j as Coupons, k as CustomField, D as DiscountType, O as OperatingHours, l as Order, P as Photos, m as Product, n as ProductAttribute, o as ProductDetail, S as SpecialHours, T as TimeSlot, U as User, V as ValueType, W as WishlistState } from '../orders-fIdANHSl.cjs';
4
+ export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-Bz9KD7Na.cjs';
6
5
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.cjs';
7
- export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-DJMdi4D4.cjs';
8
- export { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
6
+ export { W as Wishlist } from '../wishlist-stNzfvIP.cjs';
9
7
  import 'react-toastify';
10
8
 
11
9
  declare namespace CountryModel {
@@ -1,11 +1,9 @@
1
1
  export { A as Address } from '../address-DwBZHzbI.js';
2
- export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-BVWe8HHh.js';
3
- export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-y-7RPmnQ.js';
4
- export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-BDSVfRNo.js';
5
- export { O as Order } from '../orders-L_8eIkUS.js';
2
+ export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-CG6tul9l.js';
3
+ export { A as ApplicableTarget, a as Attributes, B as BaseProduct, b as BookingService, c as BookingServiceDate, d as Brand, C as Cart, e as CartState, f as Category, g as Coupon, h as CouponResponse, i as CouponStatus, j as Coupons, k as CustomField, D as DiscountType, O as OperatingHours, l as Order, P as Photos, m as Product, n as ProductAttribute, o as ProductDetail, S as SpecialHours, T as TimeSlot, U as User, V as ValueType, W as WishlistState } from '../orders-fIdANHSl.js';
4
+ export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-CkEUi3BR.js';
6
5
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.js';
7
- export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-DJMdi4D4.js';
8
- export { W as Wishlist } from '../wishlist-DKYFZR0s.js';
6
+ export { W as Wishlist } from '../wishlist-_bd4gLyQ.js';
9
7
  import 'react-toastify';
10
8
 
11
9
  declare namespace CountryModel {
@@ -18,6 +18,37 @@ declare const DEFAULT_TOAST_CONFIG: ToastOptions;
18
18
  declare const ALLOWED_COUNTRIES: string[];
19
19
  declare const ADDRESS_FORM_SESSION_KEY = "address_form_values";
20
20
 
21
+ declare namespace User {
22
+ interface Root {
23
+ customer_name: string;
24
+ phone: string;
25
+ email: string;
26
+ date_of_birth: string;
27
+ country_code: string;
28
+ gender: string;
29
+ }
30
+ interface UserState {
31
+ user: LoginUserData | null;
32
+ isAuthenticated: boolean;
33
+ status: SLICE_STATUS;
34
+ }
35
+ interface LoginUserData {
36
+ email: string;
37
+ first_name: string;
38
+ last_name: string;
39
+ access: string;
40
+ refresh: string;
41
+ user_id: number;
42
+ phone_number: string;
43
+ }
44
+ interface UserDetailsPayload {
45
+ customer_name: string;
46
+ gender: string;
47
+ date_of_birth: string;
48
+ }
49
+ type LoginMethod = "email_otp" | "phone_otp";
50
+ }
51
+
21
52
  declare namespace Product {
22
53
  interface Variant {
23
54
  id: number;
@@ -334,4 +365,237 @@ interface TimeSlot {
334
365
  interface SpecialHours {
335
366
  }
336
367
 
337
- export { type Attributes as A, type BaseProduct as B, type CustomField as C, DEFAULT_TOAST_CONFIG as D, type OperatingHours as O, type Photos as P, type SpecialHours as S, type TimeSlot as T, USER_CART as U, type WishlistState as W, type BookingService as a, type BookingServiceDate as b, type Brand as c, Product as d, type ProductAttribute as e, ProductDetail as f, SLICE_STATUS as g, ADDRESS_FORM_SESSION_KEY as h, ALLOWED_COUNTRIES as i, PRODUCT_STATUSES as j, USER_CREDENTIALS as k, USER_CRED_REFRESH_TOKEN as l, USER_CRED_TOKEN as m, pathNameMap as p };
368
+ declare namespace Category {
369
+ interface Root {
370
+ id: number;
371
+ name: string;
372
+ photo: string;
373
+ slug: string;
374
+ description: string;
375
+ children?: Root[];
376
+ }
377
+ interface CategoriesState {
378
+ data: Root[];
379
+ status: SLICE_STATUS;
380
+ }
381
+ }
382
+
383
+ type DiscountType = "discount";
384
+ type ValueType = "percentage" | "fixed";
385
+ type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
386
+ type CouponStatus = "active" | "inactive" | "expired";
387
+ interface Coupon {
388
+ id: number;
389
+ coupon_code: string;
390
+ discount_type: DiscountType;
391
+ value: string;
392
+ value_type: ValueType;
393
+ min_order_amount: string;
394
+ max_discount_amount: string;
395
+ start_date: string;
396
+ end_date: string;
397
+ status: CouponStatus;
398
+ is_deleted: boolean;
399
+ usage_limit: number;
400
+ usage_count: number;
401
+ applicable_target: ApplicableTarget;
402
+ applicable_product_variants: Product.ProductVariant[];
403
+ applicable_product_bundles: any[];
404
+ applicable_product_categories: Category.Root[];
405
+ applicable_customers: User.Root[];
406
+ auto_apply: boolean;
407
+ created_at: string;
408
+ updated_at: string;
409
+ is_cart_applicable: boolean;
410
+ coupon_message: string;
411
+ }
412
+ type Coupons = Coupon[];
413
+ interface CouponResponse {
414
+ coupon: Coupon;
415
+ }
416
+
417
+ interface CartState {
418
+ cart: Cart.Root | null;
419
+ status: SLICE_STATUS;
420
+ }
421
+ declare namespace Cart {
422
+ interface Root {
423
+ product_variants: ProductDetail.Root[];
424
+ total_amount: number;
425
+ total_quantity: number;
426
+ products_quantity: ProductsQuantity;
427
+ cart_count: number;
428
+ missing_items: {
429
+ [key: number]: number;
430
+ };
431
+ missing_cart_items: {
432
+ [key: string]: number;
433
+ };
434
+ customization_inputs: Array<CustomizationInput>;
435
+ total_coupon_discount: number;
436
+ variant_discounts: {
437
+ [key: number]: number;
438
+ };
439
+ total_shipping: number;
440
+ total_tax_amount: number;
441
+ applied_coupon: Coupon | {};
442
+ }
443
+ interface CustomizationInput {
444
+ id: number;
445
+ product_variant: number;
446
+ customization_option: number;
447
+ customer_wishlist: null;
448
+ customer_order: null;
449
+ customer_cart: number;
450
+ customer_input: string;
451
+ customization_option_name: string;
452
+ customization_option_type: string;
453
+ is_mandatory: boolean;
454
+ }
455
+ interface ProductsQuantity {
456
+ [key: number]: number;
457
+ }
458
+ }
459
+
460
+ declare namespace Order {
461
+ interface Root {
462
+ id: number;
463
+ store: number;
464
+ customer: number;
465
+ total_amount: number;
466
+ paid_amount: number;
467
+ purchased_at: string;
468
+ purchased_products: PurchasedProduct[];
469
+ order_status: OrderStatus;
470
+ order_number: number;
471
+ payment_method: string | null;
472
+ shipping_address: string;
473
+ shipping_city: string;
474
+ shipping_state: string;
475
+ shipping_country: string;
476
+ shipping_zip: string;
477
+ tracking_id: string | null;
478
+ tracking_url: string | null;
479
+ delivery_date?: string;
480
+ delivered_at: string | null;
481
+ cancelled_at: string | null;
482
+ returned_at: string | null;
483
+ customer_details: CustomerDetails;
484
+ customer_name: string;
485
+ customer_phone: string;
486
+ }
487
+ interface OrderResponse {
488
+ currentPage: number;
489
+ totalPages: number;
490
+ results: Root[];
491
+ }
492
+ interface VariantAttributes {
493
+ size: {
494
+ name: string;
495
+ value: string;
496
+ };
497
+ color?: {
498
+ name: string;
499
+ value: string;
500
+ };
501
+ Color?: {
502
+ name: string;
503
+ value: string;
504
+ };
505
+ }
506
+ interface CustomerDetails {
507
+ name: string;
508
+ phone: string;
509
+ }
510
+ type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid";
511
+ interface OrderSummary {
512
+ id: number;
513
+ store: number;
514
+ customer: number;
515
+ total_amount: number;
516
+ paid_amount: number;
517
+ purchased_at: string;
518
+ purchased_products: PurchasedProduct[];
519
+ order_status: string;
520
+ order_number: number;
521
+ payment_method: string | null;
522
+ shipping_address: string;
523
+ shipping_city: string;
524
+ shipping_state: string;
525
+ shipping_country: string;
526
+ shipping_zip: string;
527
+ tracking_id: string | null;
528
+ tracking_url: string | null;
529
+ delivery_date: string | null;
530
+ delivered_at: string | null;
531
+ cancelled_at: string | null;
532
+ returned_at: string | null;
533
+ customer_email: string;
534
+ customer_name: string;
535
+ customer_phone: string;
536
+ shipped_at: string | null;
537
+ confirmed_at: string | null;
538
+ refunded_at: string | null;
539
+ store_address: string;
540
+ store_city: string;
541
+ store_state: string;
542
+ store_country: string;
543
+ store_zip: string;
544
+ cart_count: number;
545
+ razorpay_public_token: string;
546
+ razorpay_order_id: string;
547
+ razorpay_order_status: string;
548
+ razorpay_order_amount: number;
549
+ razorpay_order_currency: string;
550
+ razorpay_payment_id: string;
551
+ razorpay_signature: string;
552
+ store_color_scheme: {
553
+ primary: string;
554
+ secondary: string;
555
+ };
556
+ store_logo: string;
557
+ store_name: string;
558
+ shipping_amount: number;
559
+ phonepe_redirect_url: string;
560
+ stripe_client_secret: string;
561
+ stripe_payment_intent_id: string;
562
+ stripe_publishable_key: string;
563
+ total_coupon_discount: number;
564
+ stripe_payment_link_url: string;
565
+ tabby_redirect_url?: string;
566
+ }
567
+ interface PurchasedProduct {
568
+ product_id: number;
569
+ product_name: string;
570
+ product_variant_id: number;
571
+ product_variant_slug: string;
572
+ product_variant_name: string;
573
+ product_variant_sku: string;
574
+ quantity: number;
575
+ variant_price: number;
576
+ tax_percentage: number;
577
+ total_tax_price: number;
578
+ total_price: number;
579
+ variant_attributes: VariantAttributes;
580
+ product_variant_photo: Photos | null;
581
+ is_digital: boolean;
582
+ discount_amount: number;
583
+ }
584
+ interface StripePaymentStatus {
585
+ order_id: number;
586
+ order_status: string;
587
+ payment_link_id: string;
588
+ payment_link_url: string;
589
+ checkout_session_id: string;
590
+ status: string;
591
+ payment_status: string;
592
+ session_status: string;
593
+ amount_total: number;
594
+ currency: string;
595
+ customer_email: string | null;
596
+ payment_intent: string;
597
+ payment_link: string;
598
+ }
599
+ }
600
+
601
+ export { type ApplicableTarget as A, type BaseProduct as B, Cart as C, type DiscountType as D, type OperatingHours as O, type Photos as P, type SpecialHours as S, type TimeSlot as T, User as U, type ValueType as V, type WishlistState as W, type Attributes as a, type BookingService as b, type BookingServiceDate as c, type Brand as d, type CartState as e, Category as f, type Coupon as g, type CouponResponse as h, type CouponStatus as i, type Coupons as j, type CustomField as k, Order as l, Product as m, type ProductAttribute as n, ProductDetail as o, ADDRESS_FORM_SESSION_KEY as p, ALLOWED_COUNTRIES as q, DEFAULT_TOAST_CONFIG as r, PRODUCT_STATUSES as s, SLICE_STATUS as t, USER_CART as u, USER_CREDENTIALS as v, USER_CRED_REFRESH_TOKEN as w, USER_CRED_TOKEN as x, pathNameMap as y };