@storepecker/storefront-core 2.3.1 → 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 +52 -51
- package/dist/api/index.d.cts +6 -6
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.js +3 -2
- 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-XumsY-y0.d.cts → cart-kJoawc_Z.d.cts} +4 -1
- package/dist/{cart-CfsntcpS.d.ts → cart-y-7RPmnQ.d.ts} +4 -1
- package/dist/checkout/index.cjs +40 -35
- package/dist/checkout/index.d.cts +9 -4
- package/dist/checkout/index.d.ts +9 -4
- package/dist/checkout/index.js +4 -3
- package/dist/chunk-7M5CVYZJ.js +17 -0
- package/dist/{chunk-X35IATPX.js → chunk-ANTJLYQD.js} +12 -1
- package/dist/{chunk-65Z7I5UP.cjs → chunk-BTT3XQ32.cjs} +11 -10
- package/dist/{chunk-B7FOXIZN.js → chunk-ELP23UGF.js} +27 -2
- package/dist/{chunk-CV6DWPYF.cjs → chunk-HTFVROIV.cjs} +0 -18
- package/dist/{chunk-AFM4IJVE.js → chunk-ILVGYHNI.js} +1 -1
- package/dist/{chunk-665CNTEX.cjs → chunk-JCOOINQF.cjs} +5 -5
- package/dist/{chunk-VWFZZFZL.js → chunk-LW3V53WJ.js} +1 -15
- package/dist/{chunk-47XTPPII.cjs → chunk-TB72NPRM.cjs} +27 -1
- package/dist/{chunk-YEJZYH55.js → chunk-U25T7M6S.js} +2 -1
- package/dist/{chunk-Z4DBCDAH.cjs → chunk-WZ6I3N4O.cjs} +17 -6
- package/dist/chunk-XFOUNOKO.cjs +22 -0
- package/dist/{chunk-6BVTMDR2.cjs → chunk-Y2CPMT34.cjs} +2 -1
- 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.cjs +3 -3
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +28 -27
- package/dist/hooks/index.d.cts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +7 -6
- 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 +8 -7
- package/dist/store/index.d.cts +8 -3
- package/dist/store/index.d.ts +8 -3
- package/dist/store/index.js +3 -2
- 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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
|
-
var
|
|
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');
|
|
@@ -151,175 +152,175 @@ Object.defineProperty(exports, "updateUserDetails", {
|
|
|
151
152
|
});
|
|
152
153
|
Object.defineProperty(exports, "addToCart", {
|
|
153
154
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkY2CPMT34_cjs.addToCart; }
|
|
155
156
|
});
|
|
156
157
|
Object.defineProperty(exports, "addWishlist", {
|
|
157
158
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkY2CPMT34_cjs.addWishlist; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "getCart", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkY2CPMT34_cjs.getCart; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "getCategories", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkY2CPMT34_cjs.getCategories; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkY2CPMT34_cjs.getDigitalProductDownloadLink; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "getProductCategories", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkY2CPMT34_cjs.getProductCategories; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "getProductDetail", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkY2CPMT34_cjs.getProductDetail; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkY2CPMT34_cjs.getProductDetailBySlug; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "getProductList", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkY2CPMT34_cjs.getProductList; }
|
|
187
188
|
});
|
|
188
189
|
Object.defineProperty(exports, "getProducts", {
|
|
189
190
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkY2CPMT34_cjs.getProducts; }
|
|
191
192
|
});
|
|
192
193
|
Object.defineProperty(exports, "getWishlist", {
|
|
193
194
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkY2CPMT34_cjs.getWishlist; }
|
|
195
196
|
});
|
|
196
197
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
197
198
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkY2CPMT34_cjs.notifyProductStock; }
|
|
199
200
|
});
|
|
200
201
|
Object.defineProperty(exports, "removeFromCart", {
|
|
201
202
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkY2CPMT34_cjs.removeFromCart; }
|
|
203
204
|
});
|
|
204
205
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
205
206
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkY2CPMT34_cjs.removeFromWishlist; }
|
|
207
208
|
});
|
|
208
209
|
Object.defineProperty(exports, "updateCart", {
|
|
209
210
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkY2CPMT34_cjs.updateCart; }
|
|
211
212
|
});
|
|
212
213
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
213
214
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkY2CPMT34_cjs.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
|
-
export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-
|
|
1
|
+
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-DJMdi4D4.cjs';
|
|
2
2
|
|
|
3
3
|
declare namespace User {
|
|
4
4
|
interface Root {
|
|
@@ -94,6 +94,9 @@ declare namespace Cart {
|
|
|
94
94
|
missing_items: {
|
|
95
95
|
[key: number]: number;
|
|
96
96
|
};
|
|
97
|
+
missing_cart_items: {
|
|
98
|
+
[key: string]: number;
|
|
99
|
+
};
|
|
97
100
|
customization_inputs: Array<CustomizationInput>;
|
|
98
101
|
total_coupon_discount: number;
|
|
99
102
|
variant_discounts: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-
|
|
1
|
+
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-DJMdi4D4.js';
|
|
2
2
|
|
|
3
3
|
declare namespace User {
|
|
4
4
|
interface Root {
|
|
@@ -94,6 +94,9 @@ declare namespace Cart {
|
|
|
94
94
|
missing_items: {
|
|
95
95
|
[key: number]: number;
|
|
96
96
|
};
|
|
97
|
+
missing_cart_items: {
|
|
98
|
+
[key: string]: number;
|
|
99
|
+
};
|
|
97
100
|
customization_inputs: Array<CustomizationInput>;
|
|
98
101
|
total_coupon_discount: number;
|
|
99
102
|
variant_discounts: {
|
package/dist/checkout/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
|
|
6
|
+
var chunkHTFVROIV_cjs = require('../chunk-HTFVROIV.cjs');
|
|
7
|
+
var chunkTB72NPRM_cjs = require('../chunk-TB72NPRM.cjs');
|
|
7
8
|
require('../chunk-ECHV2JSY.cjs');
|
|
8
9
|
require('../chunk-BBRXE57K.cjs');
|
|
9
10
|
require('../chunk-NE3ZHELZ.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,103 +125,107 @@ 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,
|
|
179
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkTB72NPRM_cjs.IP_API_CACHE_KEY; }
|
|
180
181
|
});
|
|
181
182
|
Object.defineProperty(exports, "addressFormInitialValues", {
|
|
182
183
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkTB72NPRM_cjs.addressFormInitialValues; }
|
|
184
185
|
});
|
|
185
186
|
Object.defineProperty(exports, "addressValidationSchema", {
|
|
186
187
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkTB72NPRM_cjs.addressValidationSchema; }
|
|
188
189
|
});
|
|
189
190
|
Object.defineProperty(exports, "buildAddressPayload", {
|
|
190
191
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkTB72NPRM_cjs.buildAddressPayload; }
|
|
192
193
|
});
|
|
193
194
|
Object.defineProperty(exports, "buildSubmitPayload", {
|
|
194
195
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkTB72NPRM_cjs.buildSubmitPayload; }
|
|
196
197
|
});
|
|
197
198
|
Object.defineProperty(exports, "clearAddressFormSession", {
|
|
198
199
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkTB72NPRM_cjs.clearAddressFormSession; }
|
|
200
201
|
});
|
|
201
202
|
Object.defineProperty(exports, "decodeAddress", {
|
|
202
203
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkTB72NPRM_cjs.decodeAddress; }
|
|
204
205
|
});
|
|
205
206
|
Object.defineProperty(exports, "encodeAddress", {
|
|
206
207
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkTB72NPRM_cjs.encodeAddress; }
|
|
208
209
|
});
|
|
209
210
|
Object.defineProperty(exports, "isValidPhoneNumber", {
|
|
210
211
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkTB72NPRM_cjs.isValidPhoneNumber; }
|
|
212
213
|
});
|
|
213
214
|
Object.defineProperty(exports, "loadAddressFormFromSession", {
|
|
214
215
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkTB72NPRM_cjs.loadAddressFormFromSession; }
|
|
216
217
|
});
|
|
217
218
|
Object.defineProperty(exports, "parseEditAddress", {
|
|
218
219
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkTB72NPRM_cjs.parseEditAddress; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "sanitizePhoneNumber", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunkTB72NPRM_cjs.sanitizePhoneNumber; }
|
|
220
225
|
});
|
|
221
226
|
Object.defineProperty(exports, "saveAddressFormToSession", {
|
|
222
227
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkTB72NPRM_cjs.saveAddressFormToSession; }
|
|
224
229
|
});
|
|
225
230
|
exports.calculateCartTotals = calculateCartTotals;
|
|
226
231
|
exports.checkPhonepeReturnStatus = checkPhonepeReturnStatus;
|
|
@@ -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
|
/**
|
|
@@ -21,6 +21,11 @@ interface AddressFormValues {
|
|
|
21
21
|
customer_email: string;
|
|
22
22
|
}
|
|
23
23
|
declare const addressFormInitialValues: AddressFormValues;
|
|
24
|
+
/**
|
|
25
|
+
* Strip country calling code prefix and trim whitespace from a phone number.
|
|
26
|
+
* E.g. "+919876543210" with countryCode "IN" → "9876543210"
|
|
27
|
+
*/
|
|
28
|
+
declare function sanitizePhoneNumber(input: string, countryCode: string): string;
|
|
24
29
|
/**
|
|
25
30
|
* Validates a phone number using libphonenumber-js
|
|
26
31
|
*/
|
|
@@ -248,4 +253,4 @@ declare function checkStripeReturnStatus(sessionId: string, orderNumber: number,
|
|
|
248
253
|
*/
|
|
249
254
|
declare function checkTabbyReturnStatus(orderNumber: number, callbacks: PaymentStatusCallbacks): Promise<void>;
|
|
250
255
|
|
|
251
|
-
export { type AddressFormValues, type CartTotals, type CouponCallbacks, IP_API_CACHE_KEY, type PaymentCallbacks, type PaymentStatusCallbacks, addressFormInitialValues, addressValidationSchema, applyCheckoutCoupon, buildAddressPayload, buildSubmitPayload, calculateCartTotals, checkPhonepeReturnStatus, checkPhonepeReturnStatusWithOrder, checkStripeReturnStatus, checkTabbyReturnStatus, clearAddressFormSession, decodeAddress, encodeAddress, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, isValidPhoneNumber, loadAddressFormFromSession, openRazorpayCheckout, parseEditAddress, processPayment, removeCheckoutCoupon, saveAddressFormToSession };
|
|
256
|
+
export { type AddressFormValues, type CartTotals, type CouponCallbacks, IP_API_CACHE_KEY, type PaymentCallbacks, type PaymentStatusCallbacks, addressFormInitialValues, addressValidationSchema, applyCheckoutCoupon, buildAddressPayload, buildSubmitPayload, calculateCartTotals, checkPhonepeReturnStatus, checkPhonepeReturnStatusWithOrder, checkStripeReturnStatus, checkTabbyReturnStatus, clearAddressFormSession, decodeAddress, encodeAddress, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, isValidPhoneNumber, loadAddressFormFromSession, openRazorpayCheckout, parseEditAddress, processPayment, removeCheckoutCoupon, sanitizePhoneNumber, saveAddressFormToSession };
|
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
|
/**
|
|
@@ -21,6 +21,11 @@ interface AddressFormValues {
|
|
|
21
21
|
customer_email: string;
|
|
22
22
|
}
|
|
23
23
|
declare const addressFormInitialValues: AddressFormValues;
|
|
24
|
+
/**
|
|
25
|
+
* Strip country calling code prefix and trim whitespace from a phone number.
|
|
26
|
+
* E.g. "+919876543210" with countryCode "IN" → "9876543210"
|
|
27
|
+
*/
|
|
28
|
+
declare function sanitizePhoneNumber(input: string, countryCode: string): string;
|
|
24
29
|
/**
|
|
25
30
|
* Validates a phone number using libphonenumber-js
|
|
26
31
|
*/
|
|
@@ -248,4 +253,4 @@ declare function checkStripeReturnStatus(sessionId: string, orderNumber: number,
|
|
|
248
253
|
*/
|
|
249
254
|
declare function checkTabbyReturnStatus(orderNumber: number, callbacks: PaymentStatusCallbacks): Promise<void>;
|
|
250
255
|
|
|
251
|
-
export { type AddressFormValues, type CartTotals, type CouponCallbacks, IP_API_CACHE_KEY, type PaymentCallbacks, type PaymentStatusCallbacks, addressFormInitialValues, addressValidationSchema, applyCheckoutCoupon, buildAddressPayload, buildSubmitPayload, calculateCartTotals, checkPhonepeReturnStatus, checkPhonepeReturnStatusWithOrder, checkStripeReturnStatus, checkTabbyReturnStatus, clearAddressFormSession, decodeAddress, encodeAddress, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, isValidPhoneNumber, loadAddressFormFromSession, openRazorpayCheckout, parseEditAddress, processPayment, removeCheckoutCoupon, saveAddressFormToSession };
|
|
256
|
+
export { type AddressFormValues, type CartTotals, type CouponCallbacks, IP_API_CACHE_KEY, type PaymentCallbacks, type PaymentStatusCallbacks, addressFormInitialValues, addressValidationSchema, applyCheckoutCoupon, buildAddressPayload, buildSubmitPayload, calculateCartTotals, checkPhonepeReturnStatus, checkPhonepeReturnStatusWithOrder, checkStripeReturnStatus, checkTabbyReturnStatus, clearAddressFormSession, decodeAddress, encodeAddress, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, isValidPhoneNumber, loadAddressFormFromSession, openRazorpayCheckout, parseEditAddress, processPayment, removeCheckoutCoupon, sanitizePhoneNumber, saveAddressFormToSession };
|
package/dist/checkout/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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
|
-
|
|
4
|
+
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-LW3V53WJ.js';
|
|
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';
|
|
7
8
|
import '../chunk-BQ256JKN.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 };
|