@storepecker/storefront-core 2.3.2 → 2.3.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.
- package/dist/api/index.cjs +35 -34
- package/dist/api/index.d.cts +6 -6
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.js +2 -1
- package/dist/{booking-BSZ6NP-e.d.ts → booking-BVWe8HHh.d.ts} +1 -1
- package/dist/{booking-BGvxHd-t.d.cts → booking-DX9SU_qm.d.cts} +1 -1
- package/dist/{cart-B13IUuwP.d.cts → cart-kJoawc_Z.d.cts} +1 -1
- package/dist/{cart-DOy6dICN.d.ts → cart-y-7RPmnQ.d.ts} +1 -1
- package/dist/checkout/index.cjs +23 -22
- package/dist/checkout/index.d.cts +3 -3
- package/dist/checkout/index.d.ts +3 -3
- package/dist/checkout/index.js +3 -2
- package/dist/chunk-7M5CVYZJ.js +17 -0
- package/dist/{chunk-VJCAOV74.js → chunk-ANTJLYQD.js} +11 -0
- package/dist/{chunk-65Z7I5UP.cjs → chunk-BTT3XQ32.cjs} +11 -10
- package/dist/{chunk-CV6DWPYF.cjs → chunk-HTFVROIV.cjs} +0 -18
- package/dist/{chunk-VWFZZFZL.js → chunk-LW3V53WJ.js} +1 -15
- package/dist/{chunk-NKJ4DF4D.cjs → chunk-WZ6I3N4O.cjs} +11 -0
- package/dist/chunk-XFOUNOKO.cjs +22 -0
- package/dist/{chunk-27MTKBJL.js → chunk-Y4NGR42Z.js} +2 -1
- package/dist/{collections-D4tvWcZp.d.ts → collections-BDSVfRNo.d.ts} +1 -1
- package/dist/{collections-dCr3VEJo.d.cts → collections-WzvTO0OQ.d.cts} +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/hooks/index.cjs +17 -16
- package/dist/hooks/index.d.cts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +4 -3
- package/dist/models/index.d.cts +6 -6
- package/dist/models/index.d.ts +6 -6
- package/dist/{orders-Dm5Dq02y.d.cts → orders-CjNmCY5I.d.cts} +1 -1
- package/dist/{orders-CvCa7XWm.d.ts → orders-L_8eIkUS.d.ts} +1 -1
- package/dist/{product-Daxj09p9.d.cts → product-DJMdi4D4.d.cts} +4 -0
- package/dist/{product-Daxj09p9.d.ts → product-DJMdi4D4.d.ts} +4 -0
- package/dist/store/index.cjs +5 -4
- package/dist/store/index.d.cts +8 -3
- package/dist/store/index.d.ts +8 -3
- package/dist/store/index.js +2 -1
- package/dist/utils/index.d.cts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/{wishlist-Cow1wVqf.d.cts → wishlist-CUuCTSVJ.d.cts} +1 -1
- package/dist/{wishlist-gamNg0T1.d.ts → wishlist-DKYFZR0s.d.ts} +1 -1
- package/package.json +1 -1
package/dist/api/index.cjs
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
4
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
7
|
+
var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
|
|
7
8
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
8
9
|
var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
|
|
9
10
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -215,111 +216,111 @@ Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
|
215
216
|
});
|
|
216
217
|
Object.defineProperty(exports, "applyCoupon", {
|
|
217
218
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
219
|
-
});
|
|
220
|
-
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function () { return chunkCV6DWPYF_cjs.checkPhonepePaymentStatus; }
|
|
219
|
+
get: function () { return chunkXFOUNOKO_cjs.applyCoupon; }
|
|
223
220
|
});
|
|
224
221
|
Object.defineProperty(exports, "getAppliedCoupon", {
|
|
225
222
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkXFOUNOKO_cjs.getAppliedCoupon; }
|
|
227
224
|
});
|
|
228
225
|
Object.defineProperty(exports, "getCoupons", {
|
|
229
226
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkXFOUNOKO_cjs.getCoupons; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "removeCoupon", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkXFOUNOKO_cjs.removeCoupon; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkHTFVROIV_cjs.checkPhonepePaymentStatus; }
|
|
231
236
|
});
|
|
232
237
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
233
238
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkHTFVROIV_cjs.getOrderDetails; }
|
|
235
240
|
});
|
|
236
241
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
237
242
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkHTFVROIV_cjs.getOrderDetailsByNumber; }
|
|
239
244
|
});
|
|
240
245
|
Object.defineProperty(exports, "getOrders", {
|
|
241
246
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkHTFVROIV_cjs.getOrders; }
|
|
243
248
|
});
|
|
244
249
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
245
250
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkHTFVROIV_cjs.getPublicOrderDetailsByNumber; }
|
|
247
252
|
});
|
|
248
253
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
249
254
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkHTFVROIV_cjs.getStripePaymentStatus; }
|
|
251
256
|
});
|
|
252
257
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
253
258
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkHTFVROIV_cjs.getStripePaymentStatusPublic; }
|
|
255
260
|
});
|
|
256
261
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
257
262
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkHTFVROIV_cjs.makeCODOrder; }
|
|
259
264
|
});
|
|
260
265
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
261
266
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkHTFVROIV_cjs.phonepeOrderSuccess; }
|
|
263
268
|
});
|
|
264
269
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
265
270
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkHTFVROIV_cjs.phonepePublicOrderSuccess; }
|
|
267
272
|
});
|
|
268
273
|
Object.defineProperty(exports, "placeOrder", {
|
|
269
274
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkHTFVROIV_cjs.placeOrder; }
|
|
271
276
|
});
|
|
272
277
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
273
278
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkHTFVROIV_cjs.publicMakeCODOrder; }
|
|
275
280
|
});
|
|
276
281
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
277
282
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkHTFVROIV_cjs.publicPlaceOrder; }
|
|
279
284
|
});
|
|
280
285
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
281
286
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkHTFVROIV_cjs.razorpayOrderFail; }
|
|
283
288
|
});
|
|
284
289
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
285
290
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkHTFVROIV_cjs.razorpayOrderSuccess; }
|
|
287
292
|
});
|
|
288
293
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
289
294
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
291
|
-
});
|
|
292
|
-
Object.defineProperty(exports, "removeCoupon", {
|
|
293
|
-
enumerable: true,
|
|
294
|
-
get: function () { return chunkCV6DWPYF_cjs.removeCoupon; }
|
|
295
|
+
get: function () { return chunkHTFVROIV_cjs.razorpayPublicOrderSuccess; }
|
|
295
296
|
});
|
|
296
297
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
297
298
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkHTFVROIV_cjs.stripeOrderFail; }
|
|
299
300
|
});
|
|
300
301
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
301
302
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkHTFVROIV_cjs.stripeOrderSuccess; }
|
|
303
304
|
});
|
|
304
305
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
305
306
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkHTFVROIV_cjs.stripePublicOrderSuccess; }
|
|
307
308
|
});
|
|
308
309
|
Object.defineProperty(exports, "updateOrder", {
|
|
309
310
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkHTFVROIV_cjs.updateOrder; }
|
|
311
312
|
});
|
|
312
313
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
313
314
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkHTFVROIV_cjs.updateOrderCustomization; }
|
|
315
316
|
});
|
|
316
317
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
317
318
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkHTFVROIV_cjs.uploadCustomizationImage; }
|
|
319
320
|
});
|
|
320
321
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
321
322
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkHTFVROIV_cjs.verifyTabbyPayment; }
|
|
323
324
|
});
|
|
324
325
|
Object.defineProperty(exports, "addAddress", {
|
|
325
326
|
enumerable: true,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,12 +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, d as CouponResponse, c as Coupon, b as Category } from '../cart-
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import { O as Order } from '../orders-
|
|
7
|
-
import { W as Wishlist } from '../wishlist-
|
|
8
|
-
import { C as CollectionResponse } from '../collections-
|
|
9
|
-
import { R as Review, A as Analytics, B as Booking } from '../booking-
|
|
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';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,12 +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, d as CouponResponse, c as Coupon, b as Category } from '../cart-
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import { O as Order } from '../orders-
|
|
7
|
-
import { W as Wishlist } from '../wishlist-
|
|
8
|
-
import { C as CollectionResponse } from '../collections-
|
|
9
|
-
import { R as Review, A as Analytics, B as Booking } from '../booking-
|
|
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';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/api/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
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
|
-
export { applyCoupon,
|
|
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
6
|
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
|
|
6
7
|
import { http_service_default } from '../chunk-3SYYP3XV.js';
|
|
7
8
|
export { getHttpService, http_service_default as httpService, resetHttpService, setSessionExpiredCallback } from '../chunk-3SYYP3XV.js';
|
package/dist/checkout/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var chunkBTT3XQ32_cjs = require('../chunk-BTT3XQ32.cjs');
|
|
4
|
+
require('../chunk-XFOUNOKO.cjs');
|
|
5
5
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
6
|
+
var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
|
|
6
7
|
var chunkTB72NPRM_cjs = require('../chunk-TB72NPRM.cjs');
|
|
7
8
|
require('../chunk-ECHV2JSY.cjs');
|
|
8
9
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -48,7 +49,7 @@ function calculateCartTotals(cart) {
|
|
|
48
49
|
// src/checkout/payment-status.ts
|
|
49
50
|
async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
50
51
|
try {
|
|
51
|
-
const response = await
|
|
52
|
+
const response = await chunkHTFVROIV_cjs.checkPhonepePaymentStatus(transactionId);
|
|
52
53
|
if (response.data.success) {
|
|
53
54
|
callbacks.onSuccess(void 0);
|
|
54
55
|
} else {
|
|
@@ -61,8 +62,8 @@ async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
|
61
62
|
async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, callbacks) {
|
|
62
63
|
try {
|
|
63
64
|
const [paymentResponse, orderResponse] = await Promise.all([
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
chunkHTFVROIV_cjs.checkPhonepePaymentStatus(transactionId),
|
|
66
|
+
chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber)
|
|
66
67
|
]);
|
|
67
68
|
const order = orderResponse.data;
|
|
68
69
|
callbacks.onOrderLoaded?.(order);
|
|
@@ -79,12 +80,12 @@ async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, cal
|
|
|
79
80
|
}
|
|
80
81
|
async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, callbacks, options) {
|
|
81
82
|
try {
|
|
82
|
-
const getStatus = options?.isPublic ?
|
|
83
|
+
const getStatus = options?.isPublic ? chunkHTFVROIV_cjs.getStripePaymentStatusPublic : chunkHTFVROIV_cjs.getStripePaymentStatus;
|
|
83
84
|
const response = await getStatus(sessionId, orderNumber, paymentLinkUrl);
|
|
84
85
|
const data = response.data;
|
|
85
86
|
if (data.payment_status === "paid" || data.status === "complete") {
|
|
86
87
|
try {
|
|
87
|
-
const orderResponse = await
|
|
88
|
+
const orderResponse = await chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber);
|
|
88
89
|
const order = orderResponse.data;
|
|
89
90
|
callbacks.onOrderLoaded?.(order);
|
|
90
91
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -102,10 +103,10 @@ async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, c
|
|
|
102
103
|
}
|
|
103
104
|
async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
104
105
|
try {
|
|
105
|
-
const response = await
|
|
106
|
+
const response = await chunkHTFVROIV_cjs.verifyTabbyPayment(orderNumber);
|
|
106
107
|
if (response.data.order_status === "paid" || response.data.order_status === "confirmed") {
|
|
107
108
|
try {
|
|
108
|
-
const orderResponse = await
|
|
109
|
+
const orderResponse = await chunkHTFVROIV_cjs.getOrderDetailsByNumber(orderNumber);
|
|
109
110
|
const order = orderResponse.data;
|
|
110
111
|
callbacks.onOrderLoaded?.(order);
|
|
111
112
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -124,55 +125,55 @@ async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
|
124
125
|
|
|
125
126
|
Object.defineProperty(exports, "applyCheckoutCoupon", {
|
|
126
127
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkBTT3XQ32_cjs.applyCheckoutCoupon; }
|
|
128
129
|
});
|
|
129
130
|
Object.defineProperty(exports, "fetchAppliedCoupon", {
|
|
130
131
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkBTT3XQ32_cjs.fetchAppliedCoupon; }
|
|
132
133
|
});
|
|
133
134
|
Object.defineProperty(exports, "fetchAvailableCoupons", {
|
|
134
135
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkBTT3XQ32_cjs.fetchAvailableCoupons; }
|
|
136
137
|
});
|
|
137
138
|
Object.defineProperty(exports, "handleCODPayment", {
|
|
138
139
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkBTT3XQ32_cjs.handleCODPayment; }
|
|
140
141
|
});
|
|
141
142
|
Object.defineProperty(exports, "handlePhonepePayment", {
|
|
142
143
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkBTT3XQ32_cjs.handlePhonepePayment; }
|
|
144
145
|
});
|
|
145
146
|
Object.defineProperty(exports, "handleRazorpayFail", {
|
|
146
147
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkBTT3XQ32_cjs.handleRazorpayFail; }
|
|
148
149
|
});
|
|
149
150
|
Object.defineProperty(exports, "handleRazorpaySuccess", {
|
|
150
151
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkBTT3XQ32_cjs.handleRazorpaySuccess; }
|
|
152
153
|
});
|
|
153
154
|
Object.defineProperty(exports, "handleStripePayment", {
|
|
154
155
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkBTT3XQ32_cjs.handleStripePayment; }
|
|
156
157
|
});
|
|
157
158
|
Object.defineProperty(exports, "handleStripeSuccess", {
|
|
158
159
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkBTT3XQ32_cjs.handleStripeSuccess; }
|
|
160
161
|
});
|
|
161
162
|
Object.defineProperty(exports, "handleTabbyPayment", {
|
|
162
163
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkBTT3XQ32_cjs.handleTabbyPayment; }
|
|
164
165
|
});
|
|
165
166
|
Object.defineProperty(exports, "openRazorpayCheckout", {
|
|
166
167
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkBTT3XQ32_cjs.openRazorpayCheckout; }
|
|
168
169
|
});
|
|
169
170
|
Object.defineProperty(exports, "processPayment", {
|
|
170
171
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkBTT3XQ32_cjs.processPayment; }
|
|
172
173
|
});
|
|
173
174
|
Object.defineProperty(exports, "removeCheckoutCoupon", {
|
|
174
175
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkBTT3XQ32_cjs.removeCheckoutCoupon; }
|
|
176
177
|
});
|
|
177
178
|
Object.defineProperty(exports, "IP_API_CACHE_KEY", {
|
|
178
179
|
enumerable: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
|
-
import { C as Cart, c as Coupon } from '../cart-
|
|
3
|
-
import { O as Order } from '../orders-
|
|
4
|
-
import '../product-
|
|
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';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/checkout/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
|
-
import { C as Cart, c as Coupon } from '../cart-
|
|
3
|
-
import { O as Order } from '../orders-
|
|
4
|
-
import '../product-
|
|
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';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/checkout/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-
|
|
2
|
-
import
|
|
1
|
+
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-Y4NGR42Z.js';
|
|
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
5
|
export { IP_API_CACHE_KEY, addressFormInitialValues, addressValidationSchema, buildAddressPayload, buildSubmitPayload, clearAddressFormSession, decodeAddress, encodeAddress, isValidPhoneNumber, loadAddressFormFromSession, parseEditAddress, sanitizePhoneNumber, saveAddressFormToSession } from '../chunk-ELP23UGF.js';
|
|
5
6
|
import '../chunk-3SYYP3XV.js';
|
|
6
7
|
import '../chunk-WEMNXIRS.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { http_service_default } from './chunk-3SYYP3XV.js';
|
|
2
|
+
|
|
3
|
+
// src/api/coupon.ts
|
|
4
|
+
async function getCoupons() {
|
|
5
|
+
return http_service_default.get("/coupon/available/");
|
|
6
|
+
}
|
|
7
|
+
async function applyCoupon(couponCode) {
|
|
8
|
+
return http_service_default.post("/coupon/use/", { coupon_code: couponCode });
|
|
9
|
+
}
|
|
10
|
+
async function getAppliedCoupon() {
|
|
11
|
+
return http_service_default.get("/coupon/use/");
|
|
12
|
+
}
|
|
13
|
+
async function removeCoupon(couponCode) {
|
|
14
|
+
return http_service_default.delete("/coupon/use/");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { updateCart, removeFromCart, addToCart, getCart } from './chunk-U25T7M6S.js';
|
|
2
2
|
import { cart_default } from './chunk-QAC72HKO.js';
|
|
3
|
+
import { updateOrderCustomization } from './chunk-LW3V53WJ.js';
|
|
3
4
|
import { auth_default } from './chunk-WEMNXIRS.js';
|
|
4
5
|
import { USER_CRED_TOKEN, USER_CREDENTIALS } from './chunk-BQ256JKN.js';
|
|
5
6
|
import { create } from 'zustand';
|
|
@@ -116,6 +117,16 @@ var useCartStore = create((set) => ({
|
|
|
116
117
|
} finally {
|
|
117
118
|
set({ status: "idle" /* IDLE */ });
|
|
118
119
|
}
|
|
120
|
+
},
|
|
121
|
+
updateCustomization: async (customizationInput) => {
|
|
122
|
+
set({ status: "loading" /* LOADING */ });
|
|
123
|
+
try {
|
|
124
|
+
await updateOrderCustomization(customizationInput);
|
|
125
|
+
await useCartStore.getState().syncCart();
|
|
126
|
+
} catch {
|
|
127
|
+
} finally {
|
|
128
|
+
set({ status: "idle" /* IDLE */ });
|
|
129
|
+
}
|
|
119
130
|
}
|
|
120
131
|
}));
|
|
121
132
|
var getInitialState = () => ({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXFOUNOKO_cjs = require('./chunk-XFOUNOKO.cjs');
|
|
4
4
|
var chunkK44JZ5NL_cjs = require('./chunk-K44JZ5NL.cjs');
|
|
5
|
+
var chunkHTFVROIV_cjs = require('./chunk-HTFVROIV.cjs');
|
|
5
6
|
var chunkN3CTXRFT_cjs = require('./chunk-N3CTXRFT.cjs');
|
|
6
7
|
var axios = require('axios');
|
|
7
8
|
|
|
@@ -65,7 +66,7 @@ function openRazorpayCheckout(order, callbacks) {
|
|
|
65
66
|
async function handleRazorpaySuccess(data, order, callbacks) {
|
|
66
67
|
try {
|
|
67
68
|
callbacks.onPaymentStart?.();
|
|
68
|
-
await
|
|
69
|
+
await chunkHTFVROIV_cjs.razorpayOrderSuccess(data);
|
|
69
70
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
70
71
|
chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
|
|
71
72
|
callbacks.onCartReset();
|
|
@@ -78,7 +79,7 @@ async function handleRazorpaySuccess(data, order, callbacks) {
|
|
|
78
79
|
}
|
|
79
80
|
async function handleRazorpayFail(order, callbacks) {
|
|
80
81
|
try {
|
|
81
|
-
await
|
|
82
|
+
await chunkHTFVROIV_cjs.razorpayOrderFail({
|
|
82
83
|
order_id: order.id,
|
|
83
84
|
razorpay_order_id: order.razorpay_order_id
|
|
84
85
|
});
|
|
@@ -110,9 +111,9 @@ async function handleCODPayment(order, callbacks, options) {
|
|
|
110
111
|
callbacks.onPaymentStart?.();
|
|
111
112
|
chunkK44JZ5NL_cjs.pixelEvents.initiateCheckout(order, "cod");
|
|
112
113
|
if (options?.isPublic) {
|
|
113
|
-
await
|
|
114
|
+
await chunkHTFVROIV_cjs.publicMakeCODOrder(order.order_number);
|
|
114
115
|
} else {
|
|
115
|
-
await
|
|
116
|
+
await chunkHTFVROIV_cjs.makeCODOrder(order.id);
|
|
116
117
|
}
|
|
117
118
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
118
119
|
chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
|
|
@@ -140,7 +141,7 @@ function handleStripePayment(order, callbacks) {
|
|
|
140
141
|
async function handleStripeSuccess(order, paymentIntentId, callbacks) {
|
|
141
142
|
try {
|
|
142
143
|
callbacks.onPaymentStart?.();
|
|
143
|
-
await
|
|
144
|
+
await chunkHTFVROIV_cjs.stripeOrderSuccess({
|
|
144
145
|
order_id: order.id,
|
|
145
146
|
payment_intent_id: paymentIntentId
|
|
146
147
|
});
|
|
@@ -174,12 +175,12 @@ function processPayment(order, paymentMethod, callbacks, options) {
|
|
|
174
175
|
handlePhonepePayment(order, callbacks);
|
|
175
176
|
}
|
|
176
177
|
async function fetchAvailableCoupons() {
|
|
177
|
-
const response = await
|
|
178
|
+
const response = await chunkXFOUNOKO_cjs.getCoupons();
|
|
178
179
|
return response.data;
|
|
179
180
|
}
|
|
180
181
|
async function fetchAppliedCoupon() {
|
|
181
182
|
try {
|
|
182
|
-
const response = await
|
|
183
|
+
const response = await chunkXFOUNOKO_cjs.getAppliedCoupon();
|
|
183
184
|
return response.data || null;
|
|
184
185
|
} catch {
|
|
185
186
|
return null;
|
|
@@ -187,7 +188,7 @@ async function fetchAppliedCoupon() {
|
|
|
187
188
|
}
|
|
188
189
|
async function applyCheckoutCoupon(code, callbacks) {
|
|
189
190
|
try {
|
|
190
|
-
const response = await
|
|
191
|
+
const response = await chunkXFOUNOKO_cjs.applyCoupon(code);
|
|
191
192
|
if (response.data?.coupon) {
|
|
192
193
|
await callbacks.onCartRefresh();
|
|
193
194
|
return response.data.coupon;
|
|
@@ -201,7 +202,7 @@ async function applyCheckoutCoupon(code, callbacks) {
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
async function removeCheckoutCoupon(couponCode, callbacks) {
|
|
204
|
-
await
|
|
205
|
+
await chunkXFOUNOKO_cjs.removeCoupon(couponCode);
|
|
205
206
|
await callbacks.onCartRefresh();
|
|
206
207
|
}
|
|
207
208
|
|
|
@@ -2,20 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkECHV2JSY_cjs = require('./chunk-ECHV2JSY.cjs');
|
|
4
4
|
|
|
5
|
-
// src/api/coupon.ts
|
|
6
|
-
async function getCoupons() {
|
|
7
|
-
return chunkECHV2JSY_cjs.http_service_default.get("/coupon/available/");
|
|
8
|
-
}
|
|
9
|
-
async function applyCoupon(couponCode) {
|
|
10
|
-
return chunkECHV2JSY_cjs.http_service_default.post("/coupon/use/", { coupon_code: couponCode });
|
|
11
|
-
}
|
|
12
|
-
async function getAppliedCoupon() {
|
|
13
|
-
return chunkECHV2JSY_cjs.http_service_default.get("/coupon/use/");
|
|
14
|
-
}
|
|
15
|
-
async function removeCoupon(couponCode) {
|
|
16
|
-
return chunkECHV2JSY_cjs.http_service_default.delete("/coupon/use/");
|
|
17
|
-
}
|
|
18
|
-
|
|
19
5
|
// src/api/orders.ts
|
|
20
6
|
async function getOrders(url) {
|
|
21
7
|
const response = await chunkECHV2JSY_cjs.http_service_default.get(url);
|
|
@@ -122,10 +108,7 @@ async function verifyTabbyPayment(orderNumber) {
|
|
|
122
108
|
});
|
|
123
109
|
}
|
|
124
110
|
|
|
125
|
-
exports.applyCoupon = applyCoupon;
|
|
126
111
|
exports.checkPhonepePaymentStatus = checkPhonepePaymentStatus;
|
|
127
|
-
exports.getAppliedCoupon = getAppliedCoupon;
|
|
128
|
-
exports.getCoupons = getCoupons;
|
|
129
112
|
exports.getOrderDetails = getOrderDetails;
|
|
130
113
|
exports.getOrderDetailsByNumber = getOrderDetailsByNumber;
|
|
131
114
|
exports.getOrders = getOrders;
|
|
@@ -141,7 +124,6 @@ exports.publicPlaceOrder = publicPlaceOrder;
|
|
|
141
124
|
exports.razorpayOrderFail = razorpayOrderFail;
|
|
142
125
|
exports.razorpayOrderSuccess = razorpayOrderSuccess;
|
|
143
126
|
exports.razorpayPublicOrderSuccess = razorpayPublicOrderSuccess;
|
|
144
|
-
exports.removeCoupon = removeCoupon;
|
|
145
127
|
exports.stripeOrderFail = stripeOrderFail;
|
|
146
128
|
exports.stripeOrderSuccess = stripeOrderSuccess;
|
|
147
129
|
exports.stripePublicOrderSuccess = stripePublicOrderSuccess;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { http_service_default } from './chunk-3SYYP3XV.js';
|
|
2
2
|
|
|
3
|
-
// src/api/coupon.ts
|
|
4
|
-
async function getCoupons() {
|
|
5
|
-
return http_service_default.get("/coupon/available/");
|
|
6
|
-
}
|
|
7
|
-
async function applyCoupon(couponCode) {
|
|
8
|
-
return http_service_default.post("/coupon/use/", { coupon_code: couponCode });
|
|
9
|
-
}
|
|
10
|
-
async function getAppliedCoupon() {
|
|
11
|
-
return http_service_default.get("/coupon/use/");
|
|
12
|
-
}
|
|
13
|
-
async function removeCoupon(couponCode) {
|
|
14
|
-
return http_service_default.delete("/coupon/use/");
|
|
15
|
-
}
|
|
16
|
-
|
|
17
3
|
// src/api/orders.ts
|
|
18
4
|
async function getOrders(url) {
|
|
19
5
|
const response = await http_service_default.get(url);
|
|
@@ -120,4 +106,4 @@ async function verifyTabbyPayment(orderNumber) {
|
|
|
120
106
|
});
|
|
121
107
|
}
|
|
122
108
|
|
|
123
|
-
export {
|
|
109
|
+
export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY2CPMT34_cjs = require('./chunk-Y2CPMT34.cjs');
|
|
4
4
|
var chunkSMHJRNCR_cjs = require('./chunk-SMHJRNCR.cjs');
|
|
5
|
+
var chunkHTFVROIV_cjs = require('./chunk-HTFVROIV.cjs');
|
|
5
6
|
var chunkBBRXE57K_cjs = require('./chunk-BBRXE57K.cjs');
|
|
6
7
|
var chunkNE3ZHELZ_cjs = require('./chunk-NE3ZHELZ.cjs');
|
|
7
8
|
var zustand = require('zustand');
|
|
@@ -118,6 +119,16 @@ var useCartStore = zustand.create((set) => ({
|
|
|
118
119
|
} finally {
|
|
119
120
|
set({ status: "idle" /* IDLE */ });
|
|
120
121
|
}
|
|
122
|
+
},
|
|
123
|
+
updateCustomization: async (customizationInput) => {
|
|
124
|
+
set({ status: "loading" /* LOADING */ });
|
|
125
|
+
try {
|
|
126
|
+
await chunkHTFVROIV_cjs.updateOrderCustomization(customizationInput);
|
|
127
|
+
await useCartStore.getState().syncCart();
|
|
128
|
+
} catch {
|
|
129
|
+
} finally {
|
|
130
|
+
set({ status: "idle" /* IDLE */ });
|
|
131
|
+
}
|
|
121
132
|
}
|
|
122
133
|
}));
|
|
123
134
|
var getInitialState = () => ({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkECHV2JSY_cjs = require('./chunk-ECHV2JSY.cjs');
|
|
4
|
+
|
|
5
|
+
// src/api/coupon.ts
|
|
6
|
+
async function getCoupons() {
|
|
7
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/coupon/available/");
|
|
8
|
+
}
|
|
9
|
+
async function applyCoupon(couponCode) {
|
|
10
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/coupon/use/", { coupon_code: couponCode });
|
|
11
|
+
}
|
|
12
|
+
async function getAppliedCoupon() {
|
|
13
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/coupon/use/");
|
|
14
|
+
}
|
|
15
|
+
async function removeCoupon(couponCode) {
|
|
16
|
+
return chunkECHV2JSY_cjs.http_service_default.delete("/coupon/use/");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.applyCoupon = applyCoupon;
|
|
20
|
+
exports.getAppliedCoupon = getAppliedCoupon;
|
|
21
|
+
exports.getCoupons = getCoupons;
|
|
22
|
+
exports.removeCoupon = removeCoupon;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getCoupons, getAppliedCoupon, applyCoupon, removeCoupon } from './chunk-7M5CVYZJ.js';
|
|
2
2
|
import { pixelEvents } from './chunk-WFDKKOO7.js';
|
|
3
|
+
import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess } from './chunk-LW3V53WJ.js';
|
|
3
4
|
import { getCloudFront } from './chunk-JQMLHRWL.js';
|
|
4
5
|
import { AxiosError } from 'axios';
|
|
5
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { f as ProductDetail } from '../product-DJMdi4D4.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { O as Order } from '../orders-
|
|
5
|
+
import { O as Order } from '../orders-CjNmCY5I.cjs';
|
|
6
6
|
import 'formik';
|
|
7
7
|
import '../address-DwBZHzbI.cjs';
|
|
8
8
|
import 'react-toastify';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { f as ProductDetail } from '../product-DJMdi4D4.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { O as Order } from '../orders-
|
|
5
|
+
import { O as Order } from '../orders-L_8eIkUS.js';
|
|
6
6
|
import 'formik';
|
|
7
7
|
import '../address-DwBZHzbI.js';
|
|
8
8
|
import 'react-toastify';
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
4
|
var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkWZ6I3N4O_cjs = require('../chunk-WZ6I3N4O.cjs');
|
|
6
6
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
7
7
|
var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunkBTT3XQ32_cjs = require('../chunk-BTT3XQ32.cjs');
|
|
9
|
+
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
10
10
|
require('../chunk-K44JZ5NL.cjs');
|
|
11
|
+
var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
|
|
11
12
|
var chunkJCOOINQF_cjs = require('../chunk-JCOOINQF.cjs');
|
|
12
13
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
13
14
|
var chunk4CVKE6CC_cjs = require('../chunk-4CVKE6CC.cjs');
|
|
@@ -88,7 +89,7 @@ var useOrders = (filters) => {
|
|
|
88
89
|
try {
|
|
89
90
|
setIsLoading(true);
|
|
90
91
|
const url = `/customer/order/?${queryString}`;
|
|
91
|
-
const result = await
|
|
92
|
+
const result = await chunkHTFVROIV_cjs.getOrders(url);
|
|
92
93
|
setData(result);
|
|
93
94
|
setError(null);
|
|
94
95
|
} catch (err) {
|
|
@@ -319,7 +320,7 @@ function useCheckoutPayment(options) {
|
|
|
319
320
|
const [isConfirmingPayment, setIsConfirmingPayment] = react.useState(false);
|
|
320
321
|
const [showSuccessModal, setShowSuccessModal] = react.useState(false);
|
|
321
322
|
const [showFailureModal, setShowFailureModal] = react.useState(false);
|
|
322
|
-
const resetCartCount =
|
|
323
|
+
const resetCartCount = chunkWZ6I3N4O_cjs.useCartStore((s) => s.resetCartCount);
|
|
323
324
|
const callbacks = {
|
|
324
325
|
onSuccess: (order) => {
|
|
325
326
|
setOrderSummary(order);
|
|
@@ -342,7 +343,7 @@ function useCheckoutPayment(options) {
|
|
|
342
343
|
try {
|
|
343
344
|
setIsPlacingOrder(true);
|
|
344
345
|
const isCod = paymentMethod === "cod";
|
|
345
|
-
const response = await
|
|
346
|
+
const response = await chunkHTFVROIV_cjs.placeOrder(
|
|
346
347
|
addressId,
|
|
347
348
|
options.phonepeRedirectUrl,
|
|
348
349
|
isCod,
|
|
@@ -351,7 +352,7 @@ function useCheckoutPayment(options) {
|
|
|
351
352
|
);
|
|
352
353
|
const order = response.data;
|
|
353
354
|
setOrderSummary(order);
|
|
354
|
-
|
|
355
|
+
chunkBTT3XQ32_cjs.processPayment(order, paymentMethod, callbacks);
|
|
355
356
|
} catch {
|
|
356
357
|
setShowFailureModal(true);
|
|
357
358
|
} finally {
|
|
@@ -381,7 +382,7 @@ function useCheckoutCoupon(options) {
|
|
|
381
382
|
const refreshCoupons = react.useCallback(async () => {
|
|
382
383
|
setIsLoading(true);
|
|
383
384
|
try {
|
|
384
|
-
const coupons = await
|
|
385
|
+
const coupons = await chunkBTT3XQ32_cjs.fetchAvailableCoupons();
|
|
385
386
|
setAvailableCoupons(coupons);
|
|
386
387
|
} catch {
|
|
387
388
|
} finally {
|
|
@@ -393,7 +394,7 @@ function useCheckoutCoupon(options) {
|
|
|
393
394
|
setError(null);
|
|
394
395
|
setIsApplying(true);
|
|
395
396
|
try {
|
|
396
|
-
const coupon = await
|
|
397
|
+
const coupon = await chunkBTT3XQ32_cjs.applyCheckoutCoupon(code, callbacks);
|
|
397
398
|
setAppliedCoupon(coupon);
|
|
398
399
|
} catch (err) {
|
|
399
400
|
setError(err instanceof Error ? err.message : "Failed to apply coupon");
|
|
@@ -406,7 +407,7 @@ function useCheckoutCoupon(options) {
|
|
|
406
407
|
const removeCouponHandler = react.useCallback(async () => {
|
|
407
408
|
if (!appliedCoupon) return;
|
|
408
409
|
try {
|
|
409
|
-
await
|
|
410
|
+
await chunkBTT3XQ32_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
|
|
410
411
|
setAppliedCoupon(null);
|
|
411
412
|
setError(null);
|
|
412
413
|
} catch {
|
|
@@ -505,8 +506,8 @@ function useVariantSelector(options) {
|
|
|
505
506
|
}
|
|
506
507
|
function useShopCheckout(options) {
|
|
507
508
|
const { product, onNavigateToCart, onToast } = options;
|
|
508
|
-
const { addToCart, setCart } =
|
|
509
|
-
const isUserAuthenticated =
|
|
509
|
+
const { addToCart, setCart } = chunkWZ6I3N4O_cjs.useCartStore();
|
|
510
|
+
const isUserAuthenticated = chunkWZ6I3N4O_cjs.useAuthStore((s) => s.isAuthenticated);
|
|
510
511
|
const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
|
|
511
512
|
const [isAddedToCart, setIsAddedToCart] = react.useState(false);
|
|
512
513
|
const [loading, setLoading] = react.useState(false);
|
|
@@ -694,7 +695,7 @@ function useCoupon(options = {}) {
|
|
|
694
695
|
react.useEffect(() => {
|
|
695
696
|
const fetchCoupons = async () => {
|
|
696
697
|
try {
|
|
697
|
-
const response = await
|
|
698
|
+
const response = await chunkXFOUNOKO_cjs.getCoupons();
|
|
698
699
|
if (response.data) {
|
|
699
700
|
setAvailableCoupons(response.data);
|
|
700
701
|
}
|
|
@@ -703,7 +704,7 @@ function useCoupon(options = {}) {
|
|
|
703
704
|
};
|
|
704
705
|
const fetchAppliedCoupon2 = async () => {
|
|
705
706
|
try {
|
|
706
|
-
const response = await
|
|
707
|
+
const response = await chunkXFOUNOKO_cjs.getAppliedCoupon();
|
|
707
708
|
if (response.data) {
|
|
708
709
|
setAppliedCoupon(response.data);
|
|
709
710
|
}
|
|
@@ -724,7 +725,7 @@ function useCoupon(options = {}) {
|
|
|
724
725
|
try {
|
|
725
726
|
setCouponApplyingLoading(true);
|
|
726
727
|
setCouponApplyingError(null);
|
|
727
|
-
const response = await
|
|
728
|
+
const response = await chunkXFOUNOKO_cjs.applyCoupon(code);
|
|
728
729
|
if (response.data) {
|
|
729
730
|
onCouponStatusChange?.(response.data.coupon);
|
|
730
731
|
setAppliedCoupon(response.data.coupon);
|
|
@@ -742,7 +743,7 @@ function useCoupon(options = {}) {
|
|
|
742
743
|
const handleRemoveCoupon = react.useCallback(async () => {
|
|
743
744
|
if (!appliedCoupon) return;
|
|
744
745
|
try {
|
|
745
|
-
const response = await
|
|
746
|
+
const response = await chunkXFOUNOKO_cjs.removeCoupon(appliedCoupon.coupon_code);
|
|
746
747
|
if (response.data) {
|
|
747
748
|
setAppliedCoupon(null);
|
|
748
749
|
onCouponStatusChange?.(null);
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
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';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
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';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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-
|
|
3
|
+
import { useCartStore, useAuthStore } from '../chunk-ANTJLYQD.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
|
-
import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-
|
|
7
|
-
import {
|
|
6
|
+
import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-Y4NGR42Z.js';
|
|
7
|
+
import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
|
|
8
8
|
import '../chunk-WFDKKOO7.js';
|
|
9
|
+
import { getOrders, placeOrder } from '../chunk-LW3V53WJ.js';
|
|
9
10
|
export { useAddressForm } from '../chunk-ILVGYHNI.js';
|
|
10
11
|
import { getAddresses } from '../chunk-ZGMLOLTC.js';
|
|
11
12
|
import { shareLink, convertToCurrency } from '../chunk-YUPBTD4M.js';
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
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-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
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';
|
|
6
6
|
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-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
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';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
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-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
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';
|
|
6
6
|
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-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
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';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
|
@@ -53,6 +53,7 @@ declare namespace Product {
|
|
|
53
53
|
actual_price: string;
|
|
54
54
|
selling_price: string;
|
|
55
55
|
stock_quantity: number;
|
|
56
|
+
available_quantity: number;
|
|
56
57
|
product: Product;
|
|
57
58
|
is_active: boolean;
|
|
58
59
|
is_featured: boolean;
|
|
@@ -105,6 +106,7 @@ declare namespace Product {
|
|
|
105
106
|
actual_price: string;
|
|
106
107
|
selling_price: string;
|
|
107
108
|
stock_quantity: number;
|
|
109
|
+
available_quantity: number;
|
|
108
110
|
product: Product;
|
|
109
111
|
is_active: boolean;
|
|
110
112
|
is_featured: boolean;
|
|
@@ -208,6 +210,7 @@ declare namespace ProductDetail {
|
|
|
208
210
|
actual_price: string;
|
|
209
211
|
selling_price: string;
|
|
210
212
|
stock_quantity: number;
|
|
213
|
+
available_quantity: number;
|
|
211
214
|
product: Product;
|
|
212
215
|
is_featured: boolean;
|
|
213
216
|
product_measurements: string;
|
|
@@ -267,6 +270,7 @@ declare namespace ProductDetail {
|
|
|
267
270
|
actual_price: string;
|
|
268
271
|
selling_price: string;
|
|
269
272
|
stock_quantity: number;
|
|
273
|
+
available_quantity: number;
|
|
270
274
|
product: Product;
|
|
271
275
|
is_featured: boolean;
|
|
272
276
|
product_measurements: string;
|
|
@@ -53,6 +53,7 @@ declare namespace Product {
|
|
|
53
53
|
actual_price: string;
|
|
54
54
|
selling_price: string;
|
|
55
55
|
stock_quantity: number;
|
|
56
|
+
available_quantity: number;
|
|
56
57
|
product: Product;
|
|
57
58
|
is_active: boolean;
|
|
58
59
|
is_featured: boolean;
|
|
@@ -105,6 +106,7 @@ declare namespace Product {
|
|
|
105
106
|
actual_price: string;
|
|
106
107
|
selling_price: string;
|
|
107
108
|
stock_quantity: number;
|
|
109
|
+
available_quantity: number;
|
|
108
110
|
product: Product;
|
|
109
111
|
is_active: boolean;
|
|
110
112
|
is_featured: boolean;
|
|
@@ -208,6 +210,7 @@ declare namespace ProductDetail {
|
|
|
208
210
|
actual_price: string;
|
|
209
211
|
selling_price: string;
|
|
210
212
|
stock_quantity: number;
|
|
213
|
+
available_quantity: number;
|
|
211
214
|
product: Product;
|
|
212
215
|
is_featured: boolean;
|
|
213
216
|
product_measurements: string;
|
|
@@ -267,6 +270,7 @@ declare namespace ProductDetail {
|
|
|
267
270
|
actual_price: string;
|
|
268
271
|
selling_price: string;
|
|
269
272
|
stock_quantity: number;
|
|
273
|
+
available_quantity: number;
|
|
270
274
|
product: Product;
|
|
271
275
|
is_featured: boolean;
|
|
272
276
|
product_measurements: string;
|
package/dist/store/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWZ6I3N4O_cjs = require('../chunk-WZ6I3N4O.cjs');
|
|
4
4
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
+
require('../chunk-HTFVROIV.cjs');
|
|
6
7
|
require('../chunk-ECHV2JSY.cjs');
|
|
7
8
|
require('../chunk-BBRXE57K.cjs');
|
|
8
9
|
require('../chunk-NE3ZHELZ.cjs');
|
|
@@ -67,15 +68,15 @@ var useProductStore = zustand.create((set, get) => ({
|
|
|
67
68
|
|
|
68
69
|
Object.defineProperty(exports, "loginUser", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkWZ6I3N4O_cjs.loginUser; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "useAuthStore", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkWZ6I3N4O_cjs.useAuthStore; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "useCartStore", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkWZ6I3N4O_cjs.useCartStore; }
|
|
79
80
|
});
|
|
80
81
|
exports.useProductStore = useProductStore;
|
|
81
82
|
exports.useWishlistStore = useWishlistStore;
|
package/dist/store/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-kJoawc_Z.cjs';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
|
|
4
|
+
import { d as Product } from '../product-DJMdi4D4.cjs';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
interface CartStore extends CartState {
|
|
@@ -33,6 +33,11 @@ interface CartStore extends CartState {
|
|
|
33
33
|
variant_id: number;
|
|
34
34
|
quantity: number;
|
|
35
35
|
}>, addressId?: number) => Promise<void>;
|
|
36
|
+
updateCustomization: (customizationInput: Array<{
|
|
37
|
+
customization_option: number;
|
|
38
|
+
customer_input: string;
|
|
39
|
+
product_variant: number;
|
|
40
|
+
}>) => Promise<void>;
|
|
36
41
|
}
|
|
37
42
|
declare const useCartStore: zustand.UseBoundStore<zustand.StoreApi<CartStore>>;
|
|
38
43
|
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-y-7RPmnQ.js';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-DKYFZR0s.js';
|
|
4
|
+
import { d as Product } from '../product-DJMdi4D4.js';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
interface CartStore extends CartState {
|
|
@@ -33,6 +33,11 @@ interface CartStore extends CartState {
|
|
|
33
33
|
variant_id: number;
|
|
34
34
|
quantity: number;
|
|
35
35
|
}>, addressId?: number) => Promise<void>;
|
|
36
|
+
updateCustomization: (customizationInput: Array<{
|
|
37
|
+
customization_option: number;
|
|
38
|
+
customer_input: string;
|
|
39
|
+
product_variant: number;
|
|
40
|
+
}>) => Promise<void>;
|
|
36
41
|
}
|
|
37
42
|
declare const useCartStore: zustand.UseBoundStore<zustand.StoreApi<CartStore>>;
|
|
38
43
|
|
package/dist/store/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { loginUser, useAuthStore, useCartStore } from '../chunk-
|
|
1
|
+
export { loginUser, useAuthStore, useCartStore } from '../chunk-ANTJLYQD.js';
|
|
2
2
|
import { getWishlist, getProducts } from '../chunk-U25T7M6S.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
|
+
import '../chunk-LW3V53WJ.js';
|
|
4
5
|
import '../chunk-3SYYP3XV.js';
|
|
5
6
|
import '../chunk-WEMNXIRS.js';
|
|
6
7
|
import '../chunk-BQ256JKN.js';
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as ProductDetail, d as Product, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart, b as Category$1 } from '../cart-
|
|
1
|
+
import { f as ProductDetail, d as Product, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-DJMdi4D4.cjs';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-DJMdi4D4.cjs';
|
|
3
|
+
import { C as Cart, b as Category$1 } from '../cart-kJoawc_Z.cjs';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.cjs';
|
|
5
|
-
import { C as CollectionResponse } from '../collections-
|
|
5
|
+
import { C as CollectionResponse } from '../collections-WzvTO0OQ.cjs';
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
|
7
7
|
import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
8
|
-
import { O as Order } from '../orders-
|
|
8
|
+
import { O as Order } from '../orders-CjNmCY5I.cjs';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as ProductDetail, d as Product, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart, b as Category$1 } from '../cart-
|
|
1
|
+
import { f as ProductDetail, d as Product, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-DJMdi4D4.js';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-DJMdi4D4.js';
|
|
3
|
+
import { C as Cart, b as Category$1 } from '../cart-y-7RPmnQ.js';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.js';
|
|
5
|
-
import { C as CollectionResponse } from '../collections-
|
|
5
|
+
import { C as CollectionResponse } from '../collections-BDSVfRNo.js';
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
|
7
7
|
import { a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
8
|
-
import { O as Order } from '../orders-
|
|
8
|
+
import { O as Order } from '../orders-L_8eIkUS.js';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|