@storepecker/storefront-core 2.7.0 → 2.9.1
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 +94 -46
- package/dist/api/index.d.cts +108 -11
- package/dist/api/index.d.ts +108 -11
- package/dist/api/index.js +3 -3
- package/dist/buy-now-BqVWXyy8.d.cts +197 -0
- package/dist/buy-now-DFdnuLjO.d.ts +197 -0
- package/dist/{cart-BGIsIZdM.d.ts → cart-DZq1ZEnE.d.ts} +1 -1
- package/dist/{cart-CyN2JQTw.d.cts → cart-DwMFBmpC.d.cts} +1 -1
- package/dist/checkout/index.cjs +85 -38
- package/dist/checkout/index.d.cts +49 -11
- package/dist/checkout/index.d.ts +49 -11
- package/dist/checkout/index.js +65 -19
- package/dist/{chunk-KWYFA2LJ.cjs → chunk-34Y7Y5FU.cjs} +49 -31
- package/dist/{chunk-GTV42PDK.cjs → chunk-57UU7IJ2.cjs} +1 -0
- package/dist/{chunk-RNGQUWQW.cjs → chunk-H6FJYRO3.cjs} +49 -1
- package/dist/{chunk-CHRTGR3G.js → chunk-KCLVR6G5.js} +39 -2
- package/dist/{chunk-IWYO22XV.cjs → chunk-NOT6VKXA.cjs} +37 -39
- package/dist/{chunk-LCMJYFHC.cjs → chunk-NQZ5GUOG.cjs} +0 -1
- package/dist/{chunk-5BT3MH4A.cjs → chunk-NRPK5GCJ.cjs} +11 -3
- package/dist/{chunk-K44JZ5NL.cjs → chunk-NSAHGMS7.cjs} +6 -1
- package/dist/{chunk-4C4NTH6O.js → chunk-OOFYY6GR.js} +1 -0
- package/dist/{chunk-6QHEH5XE.js → chunk-QQHQTBAM.js} +20 -22
- package/dist/{chunk-H32TICAM.js → chunk-TH7OAMGC.js} +0 -1
- package/dist/{chunk-WFDKKOO7.js → chunk-VAU5OL72.js} +6 -1
- package/dist/{chunk-5JD6MRVS.js → chunk-VPTN4YXD.js} +36 -18
- package/dist/{chunk-TY5NK7NW.js → chunk-ZAWZ3RB6.js} +9 -2
- package/dist/{collections-ycrA2cPL.d.ts → collections-CNh2OGbl.d.ts} +1 -1
- package/dist/{collections-8YdINtUf.d.cts → collections-CXgOv5_G.d.cts} +1 -1
- package/dist/components/digital-product-download-modal.d.cts +2 -2
- package/dist/components/digital-product-download-modal.d.ts +2 -2
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/share-button.d.cts +1 -1
- package/dist/components/share-button.d.ts +1 -1
- package/dist/components/theme-data-initializer.d.cts +5 -5
- package/dist/components/theme-data-initializer.d.ts +5 -5
- package/dist/hooks/index.cjs +592 -30
- package/dist/hooks/index.d.cts +183 -5
- package/dist/hooks/index.d.ts +183 -5
- package/dist/hooks/index.js +569 -11
- package/dist/{instagram-CqJBZ-0X.d.ts → instagram-BADLnNQ3.d.ts} +1 -1
- package/dist/{instagram-D4JUT4ZU.d.cts → instagram-DalreBu6.d.cts} +1 -1
- package/dist/middleware/index.cjs +3 -3
- package/dist/middleware/index.js +1 -1
- package/dist/models/index.d.cts +7 -6
- package/dist/models/index.d.ts +7 -6
- package/dist/{orders-C1XZr8tx.d.ts → orders-B3G4CyhH.d.cts} +2 -1
- package/dist/{orders-9_scVq_M.d.cts → orders-Bl-Slh72.d.ts} +2 -1
- package/dist/{pixelEvents-uiPHbiAQ.d.cts → pixelEvents-BtEO5QAR.d.cts} +5 -4
- package/dist/{pixelEvents-D0sH22Er.d.ts → pixelEvents-LsealscG.d.ts} +5 -4
- package/dist/{product-CZtFWhxO.d.ts → product-D9liEtl4.d.cts} +1 -0
- package/dist/{product-CZtFWhxO.d.cts → product-D9liEtl4.d.ts} +1 -0
- package/dist/store/index.cjs +9 -9
- package/dist/store/index.d.cts +12 -7
- package/dist/store/index.d.ts +12 -7
- package/dist/store/index.js +4 -4
- package/dist/utils/index.cjs +9 -9
- package/dist/utils/index.d.cts +8 -7
- package/dist/utils/index.d.ts +8 -7
- package/dist/utils/index.js +3 -3
- package/dist/{wishlist-Cx9Vrszq.d.cts → wishlist-BakHvIFN.d.cts} +1 -1
- package/dist/{wishlist-CRNbfFIx.d.ts → wishlist-Cj0sQxiY.d.ts} +1 -1
- package/package.json +1 -1
package/dist/api/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var chunkNRPK5GCJ_cjs = require('../chunk-NRPK5GCJ.cjs');
|
|
5
|
+
require('../chunk-NQZ5GUOG.cjs');
|
|
6
6
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkH6FJYRO3_cjs = require('../chunk-H6FJYRO3.cjs');
|
|
8
8
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
9
9
|
var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
|
|
10
10
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -173,71 +173,75 @@ Object.defineProperty(exports, "updateUserDetails", {
|
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "addToCart", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkNRPK5GCJ_cjs.addToCart; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "addWishlist", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkNRPK5GCJ_cjs.addWishlist; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "getCart", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkNRPK5GCJ_cjs.getCart; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "getCartItemQuantity", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkNRPK5GCJ_cjs.getCartItemQuantity; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "getCategories", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkNRPK5GCJ_cjs.getCategories; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkNRPK5GCJ_cjs.getDigitalProductDownloadLink; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "getProductCategories", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkNRPK5GCJ_cjs.getProductCategories; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "getProductDetail", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkNRPK5GCJ_cjs.getProductDetail; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkNRPK5GCJ_cjs.getProductDetailBySlug; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "getProductList", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkNRPK5GCJ_cjs.getProductList; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "getProducts", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkNRPK5GCJ_cjs.getProducts; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "getWishlist", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkNRPK5GCJ_cjs.getWishlist; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "mergeCart", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunkNRPK5GCJ_cjs.mergeCart; }
|
|
221
225
|
});
|
|
222
226
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
223
227
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkNRPK5GCJ_cjs.notifyProductStock; }
|
|
225
229
|
});
|
|
226
230
|
Object.defineProperty(exports, "removeFromCart", {
|
|
227
231
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkNRPK5GCJ_cjs.removeFromCart; }
|
|
229
233
|
});
|
|
230
234
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
231
235
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkNRPK5GCJ_cjs.removeFromWishlist; }
|
|
233
237
|
});
|
|
234
238
|
Object.defineProperty(exports, "updateCart", {
|
|
235
239
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkNRPK5GCJ_cjs.updateCart; }
|
|
237
241
|
});
|
|
238
242
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
239
243
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkNRPK5GCJ_cjs.updateDigitalProductDownloadLinkCount; }
|
|
241
245
|
});
|
|
242
246
|
Object.defineProperty(exports, "applyCoupon", {
|
|
243
247
|
enumerable: true,
|
|
@@ -255,109 +259,153 @@ Object.defineProperty(exports, "removeCoupon", {
|
|
|
255
259
|
enumerable: true,
|
|
256
260
|
get: function () { return chunkXFOUNOKO_cjs.removeCoupon; }
|
|
257
261
|
});
|
|
262
|
+
Object.defineProperty(exports, "buyNowPreview", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunkH6FJYRO3_cjs.buyNowPreview; }
|
|
265
|
+
});
|
|
258
266
|
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
259
267
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkH6FJYRO3_cjs.checkPhonepePaymentStatus; }
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "checkPhonepePaymentStatusPublic", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () { return chunkH6FJYRO3_cjs.checkPhonepePaymentStatusPublic; }
|
|
261
273
|
});
|
|
262
274
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
263
275
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkH6FJYRO3_cjs.getOrderDetails; }
|
|
265
277
|
});
|
|
266
278
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
267
279
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkH6FJYRO3_cjs.getOrderDetailsByNumber; }
|
|
269
281
|
});
|
|
270
282
|
Object.defineProperty(exports, "getOrderDetailsByRef", {
|
|
271
283
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkH6FJYRO3_cjs.getOrderDetailsByRef; }
|
|
273
285
|
});
|
|
274
286
|
Object.defineProperty(exports, "getOrderDetailsByRefV2", {
|
|
275
287
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkH6FJYRO3_cjs.getOrderDetailsByRefV2; }
|
|
277
289
|
});
|
|
278
290
|
Object.defineProperty(exports, "getOrders", {
|
|
279
291
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkH6FJYRO3_cjs.getOrders; }
|
|
281
293
|
});
|
|
282
294
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
283
295
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkH6FJYRO3_cjs.getPublicOrderDetailsByNumber; }
|
|
285
297
|
});
|
|
286
298
|
Object.defineProperty(exports, "getPublicOrderDetailsByRef", {
|
|
287
299
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkH6FJYRO3_cjs.getPublicOrderDetailsByRef; }
|
|
289
301
|
});
|
|
290
302
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
291
303
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkH6FJYRO3_cjs.getStripePaymentStatus; }
|
|
293
305
|
});
|
|
294
306
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
295
307
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkH6FJYRO3_cjs.getStripePaymentStatusPublic; }
|
|
297
309
|
});
|
|
298
310
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
299
311
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkH6FJYRO3_cjs.makeCODOrder; }
|
|
301
313
|
});
|
|
302
314
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
303
315
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkH6FJYRO3_cjs.phonepeOrderSuccess; }
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "phonepePaymentFailure", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () { return chunkH6FJYRO3_cjs.phonepePaymentFailure; }
|
|
305
321
|
});
|
|
306
322
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
307
323
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkH6FJYRO3_cjs.phonepePublicOrderSuccess; }
|
|
325
|
+
});
|
|
326
|
+
Object.defineProperty(exports, "placeBuyNowOrder", {
|
|
327
|
+
enumerable: true,
|
|
328
|
+
get: function () { return chunkH6FJYRO3_cjs.placeBuyNowOrder; }
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, "placeGuestBuyNowOrder", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () { return chunkH6FJYRO3_cjs.placeGuestBuyNowOrder; }
|
|
309
333
|
});
|
|
310
334
|
Object.defineProperty(exports, "placeOrder", {
|
|
311
335
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkH6FJYRO3_cjs.placeOrder; }
|
|
337
|
+
});
|
|
338
|
+
Object.defineProperty(exports, "placePublicOrder", {
|
|
339
|
+
enumerable: true,
|
|
340
|
+
get: function () { return chunkH6FJYRO3_cjs.placePublicOrder; }
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "publicCheckoutPreview", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () { return chunkH6FJYRO3_cjs.publicCheckoutPreview; }
|
|
313
345
|
});
|
|
314
346
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
315
347
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkH6FJYRO3_cjs.publicMakeCODOrder; }
|
|
349
|
+
});
|
|
350
|
+
Object.defineProperty(exports, "publicPhonepeOrderFailure", {
|
|
351
|
+
enumerable: true,
|
|
352
|
+
get: function () { return chunkH6FJYRO3_cjs.publicPhonepeOrderFailure; }
|
|
317
353
|
});
|
|
318
354
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
319
355
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkH6FJYRO3_cjs.publicPlaceOrder; }
|
|
357
|
+
});
|
|
358
|
+
Object.defineProperty(exports, "publicRazorpayOrderFailure", {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
get: function () { return chunkH6FJYRO3_cjs.publicRazorpayOrderFailure; }
|
|
361
|
+
});
|
|
362
|
+
Object.defineProperty(exports, "publicStripeOrderFailure", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
get: function () { return chunkH6FJYRO3_cjs.publicStripeOrderFailure; }
|
|
321
365
|
});
|
|
322
366
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
323
367
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkH6FJYRO3_cjs.razorpayOrderFail; }
|
|
325
369
|
});
|
|
326
370
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
327
371
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkH6FJYRO3_cjs.razorpayOrderSuccess; }
|
|
329
373
|
});
|
|
330
374
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
331
375
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkH6FJYRO3_cjs.razorpayPublicOrderSuccess; }
|
|
333
377
|
});
|
|
334
378
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
335
379
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkH6FJYRO3_cjs.stripeOrderFail; }
|
|
337
381
|
});
|
|
338
382
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
339
383
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkH6FJYRO3_cjs.stripeOrderSuccess; }
|
|
341
385
|
});
|
|
342
386
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
343
387
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkH6FJYRO3_cjs.stripePublicOrderSuccess; }
|
|
389
|
+
});
|
|
390
|
+
Object.defineProperty(exports, "tabbyPaymentFailure", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function () { return chunkH6FJYRO3_cjs.tabbyPaymentFailure; }
|
|
345
393
|
});
|
|
346
394
|
Object.defineProperty(exports, "updateOrder", {
|
|
347
395
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkH6FJYRO3_cjs.updateOrder; }
|
|
349
397
|
});
|
|
350
398
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
351
399
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkH6FJYRO3_cjs.updateOrderCustomization; }
|
|
353
401
|
});
|
|
354
402
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
355
403
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkH6FJYRO3_cjs.uploadCustomizationImage; }
|
|
357
405
|
});
|
|
358
406
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
359
407
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkH6FJYRO3_cjs.verifyTabbyPayment; }
|
|
361
409
|
});
|
|
362
410
|
Object.defineProperty(exports, "addAddress", {
|
|
363
411
|
enumerable: true,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-DwMFBmpC.cjs';
|
|
5
|
+
import { d as Product, f as ProductDetail } from '../product-D9liEtl4.cjs';
|
|
6
|
+
import { O as Order } from '../orders-B3G4CyhH.cjs';
|
|
7
|
+
import { B as BuyNow, P as PublicCheckout } from '../buy-now-BqVWXyy8.cjs';
|
|
8
|
+
import { W as Wishlist } from '../wishlist-BakHvIFN.cjs';
|
|
9
|
+
import { C as CollectionResponse } from '../collections-CXgOv5_G.cjs';
|
|
10
|
+
import { R as Review, A as Analytics, a as Booking, B as Blog, I as Instagram } from '../instagram-DalreBu6.cjs';
|
|
10
11
|
import 'react-toastify';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -54,6 +55,14 @@ declare function addToCart(product: Array<{
|
|
|
54
55
|
customer_input: string;
|
|
55
56
|
product_variant: number;
|
|
56
57
|
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
58
|
+
declare function mergeCart(product: Array<{
|
|
59
|
+
variant_id: number;
|
|
60
|
+
quantity: number;
|
|
61
|
+
}>, customizationInputs?: Array<{
|
|
62
|
+
customization_option: number;
|
|
63
|
+
customer_input: string;
|
|
64
|
+
product_variant: number;
|
|
65
|
+
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
57
66
|
declare function removeFromCart(product: Array<{
|
|
58
67
|
variant_id: number;
|
|
59
68
|
quantity: number;
|
|
@@ -79,9 +88,6 @@ declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.R
|
|
|
79
88
|
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
80
89
|
declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
81
90
|
declare function getOrderDetailsByRefV2(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use getPublicOrderDetailsByRef instead
|
|
84
|
-
*/
|
|
85
91
|
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
86
92
|
declare function getPublicOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
87
93
|
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, shipping_option_id?: number, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
@@ -95,8 +101,86 @@ interface PublicOrderDetails {
|
|
|
95
101
|
is_cod?: boolean;
|
|
96
102
|
}
|
|
97
103
|
declare function publicPlaceOrder(address: unknown, redirect: string, orderDetails: PublicOrderDetails, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
104
|
+
/**
|
|
105
|
+
* Prices a single inline item for Buy Now. Never persists anything and never
|
|
106
|
+
* touches the customer's cart. Safe to call on every quantity/coupon/address/
|
|
107
|
+
* shipping change. JWT optional — send it for logged-in customers to enable
|
|
108
|
+
* saved-address and cached-coupon resolution; omit it for guests (an inline
|
|
109
|
+
* `address` is used instead).
|
|
110
|
+
*/
|
|
111
|
+
declare function buyNowPreview(payload: BuyNow.PreviewPayload): Promise<AxiosResponse<BuyNow.PreviewResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Places a buy-now order for a logged-in customer. Returns the full order object
|
|
114
|
+
* plus gateway payloads — drive payment exactly like the cart checkout.
|
|
115
|
+
*/
|
|
116
|
+
declare function placeBuyNowOrder(payload: BuyNow.PlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
117
|
+
/**
|
|
118
|
+
* Places a buy-now order for a GUEST through the existing public checkout,
|
|
119
|
+
* flagged with `is_buy_now`. Only allowed when the store has public checkout
|
|
120
|
+
* enabled — otherwise the backend rejects it and the guest must log in first.
|
|
121
|
+
*
|
|
122
|
+
* Returns the same order + gateway payloads as the authenticated endpoint.
|
|
123
|
+
*/
|
|
124
|
+
declare function placeGuestBuyNowOrder(payload: BuyNow.GuestPlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
125
|
+
/**
|
|
126
|
+
* Prices the whole guest cart. Never persists anything — no order, no cart, no
|
|
127
|
+
* customer record — so it is safe to call on every change the customer makes.
|
|
128
|
+
*
|
|
129
|
+
* Always re-price through this instead of computing totals locally (including
|
|
130
|
+
* the COD charge): the returned `total_amount` is contractually equal to what
|
|
131
|
+
* placement will charge for the same payload. JWT optional — send it for a
|
|
132
|
+
* logged-in customer to unlock saved-address and cached-coupon resolution.
|
|
133
|
+
*/
|
|
134
|
+
declare function publicCheckoutPreview(payload: PublicCheckout.PreviewPayload): Promise<AxiosResponse<PublicCheckout.PreviewResponse>>;
|
|
135
|
+
/**
|
|
136
|
+
* Places the guest order from a single flat payload (contact + address +
|
|
137
|
+
* cart_items + gateway urls). Same endpoint as `publicPlaceOrder`, but takes
|
|
138
|
+
* the whole body at once — the shape `usePublicCheckout` builds.
|
|
139
|
+
*
|
|
140
|
+
* Stock is only enforced here — the preview's `missing_items` is advisory — so
|
|
141
|
+
* expect ITEM_UNAVAILABLE / CHECKOUT_STOCK_ERROR and re-price on failure.
|
|
142
|
+
*/
|
|
143
|
+
declare function placePublicOrder(payload: PublicCheckout.PlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
98
144
|
declare function updateOrder(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
99
145
|
declare function razorpayPublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
146
|
+
/**
|
|
147
|
+
* Every outcome is HTTP 200 — branch on `message` / `order_status`, not the
|
|
148
|
+
* status code.
|
|
149
|
+
*/
|
|
150
|
+
interface PaymentFailureResult {
|
|
151
|
+
message?: string;
|
|
152
|
+
order_id?: number;
|
|
153
|
+
order_number?: number;
|
|
154
|
+
order_status?: string;
|
|
155
|
+
}
|
|
156
|
+
declare function publicRazorpayOrderFailure(orderDetails: {
|
|
157
|
+
order_id?: number | string;
|
|
158
|
+
order_number?: number;
|
|
159
|
+
razorpay_order_id: string;
|
|
160
|
+
error?: unknown;
|
|
161
|
+
}): Promise<AxiosResponse<PaymentFailureResult>>;
|
|
162
|
+
declare function publicPhonepeOrderFailure(payload: {
|
|
163
|
+
id: string;
|
|
164
|
+
status: "REJECTED" | "EXPIRED";
|
|
165
|
+
}): Promise<AxiosResponse<{
|
|
166
|
+
message?: string;
|
|
167
|
+
}>>;
|
|
168
|
+
declare function phonepePaymentFailure(payload: {
|
|
169
|
+
order_id: number;
|
|
170
|
+
phonepe_transaction_id: string;
|
|
171
|
+
}): Promise<AxiosResponse<{
|
|
172
|
+
message?: string;
|
|
173
|
+
}>>;
|
|
174
|
+
declare function publicStripeOrderFailure(orderDetails: {
|
|
175
|
+
payment_intent_id: string;
|
|
176
|
+
order_id?: number | string;
|
|
177
|
+
order_number?: number;
|
|
178
|
+
}): Promise<AxiosResponse<PaymentFailureResult & {
|
|
179
|
+
payment_intent_status?: string;
|
|
180
|
+
}>>;
|
|
181
|
+
declare function tabbyPaymentFailure(paymentId: string): Promise<AxiosResponse<{
|
|
182
|
+
message?: string;
|
|
183
|
+
}>>;
|
|
100
184
|
declare function razorpayOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
101
185
|
declare function razorpayOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
102
186
|
declare function phonepePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
@@ -105,11 +189,24 @@ declare function checkPhonepePaymentStatus(transactionId: string): Promise<Axios
|
|
|
105
189
|
message: string;
|
|
106
190
|
success: boolean;
|
|
107
191
|
}>>;
|
|
192
|
+
/**
|
|
193
|
+
* Public (guest) PhonePe status poll. The PhonePe endpoint serves both POST
|
|
194
|
+
* (report success) and GET (check status) on the same URL, so the public status
|
|
195
|
+
* check is a GET on the public order-success route — not a separate `-status` one.
|
|
196
|
+
* Needed for guest buy-now / public checkout on the return leg from PhonePe.
|
|
197
|
+
*/
|
|
198
|
+
declare function checkPhonepePaymentStatusPublic(transactionId: string): Promise<AxiosResponse<{
|
|
199
|
+
message: string;
|
|
200
|
+
success: boolean;
|
|
201
|
+
}>>;
|
|
108
202
|
declare function getStripePaymentStatus(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
109
203
|
declare function getStripePaymentStatusPublic(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
110
204
|
declare function stripePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
111
205
|
declare function stripeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
112
|
-
declare function stripeOrderFail(orderDetails:
|
|
206
|
+
declare function stripeOrderFail(orderDetails: {
|
|
207
|
+
order_id: number;
|
|
208
|
+
payment_intent_id: string;
|
|
209
|
+
}): Promise<AxiosResponse<Cart.Root>>;
|
|
113
210
|
declare function makeCODOrder(orderId: number): Promise<AxiosResponse<unknown>>;
|
|
114
211
|
declare function publicMakeCODOrder(orderNumber: number, ownership?: {
|
|
115
212
|
customer_phone?: string;
|
|
@@ -200,4 +297,4 @@ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
|
|
|
200
297
|
*/
|
|
201
298
|
declare function getInstagramMedia(ids: string | (string | number)[]): Promise<AxiosResponse<Instagram.MediaRefreshResponse>>;
|
|
202
299
|
|
|
203
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getInstagramMedia, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
300
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, buyNowPreview, checkPhonepePaymentStatus, checkPhonepePaymentStatusPublic, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getInstagramMedia, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, mergeCart, notifyProductStock, phonepeOrderSuccess, phonepePaymentFailure, phonepePublicOrderSuccess, placeBuyNowOrder, placeGuestBuyNowOrder, placeOrder, placePublicOrder, postAnalytics, publicCheckoutPreview, publicMakeCODOrder, publicPhonepeOrderFailure, publicPlaceOrder, publicRazorpayOrderFailure, publicStripeOrderFailure, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, tabbyPaymentFailure, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-DZq1ZEnE.js';
|
|
5
|
+
import { d as Product, f as ProductDetail } from '../product-D9liEtl4.js';
|
|
6
|
+
import { O as Order } from '../orders-Bl-Slh72.js';
|
|
7
|
+
import { B as BuyNow, P as PublicCheckout } from '../buy-now-DFdnuLjO.js';
|
|
8
|
+
import { W as Wishlist } from '../wishlist-Cj0sQxiY.js';
|
|
9
|
+
import { C as CollectionResponse } from '../collections-CNh2OGbl.js';
|
|
10
|
+
import { R as Review, A as Analytics, a as Booking, B as Blog, I as Instagram } from '../instagram-BADLnNQ3.js';
|
|
10
11
|
import 'react-toastify';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -54,6 +55,14 @@ declare function addToCart(product: Array<{
|
|
|
54
55
|
customer_input: string;
|
|
55
56
|
product_variant: number;
|
|
56
57
|
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
58
|
+
declare function mergeCart(product: Array<{
|
|
59
|
+
variant_id: number;
|
|
60
|
+
quantity: number;
|
|
61
|
+
}>, customizationInputs?: Array<{
|
|
62
|
+
customization_option: number;
|
|
63
|
+
customer_input: string;
|
|
64
|
+
product_variant: number;
|
|
65
|
+
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
57
66
|
declare function removeFromCart(product: Array<{
|
|
58
67
|
variant_id: number;
|
|
59
68
|
quantity: number;
|
|
@@ -79,9 +88,6 @@ declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.R
|
|
|
79
88
|
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
80
89
|
declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
81
90
|
declare function getOrderDetailsByRefV2(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Use getPublicOrderDetailsByRef instead
|
|
84
|
-
*/
|
|
85
91
|
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
86
92
|
declare function getPublicOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
87
93
|
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, shipping_option_id?: number, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
@@ -95,8 +101,86 @@ interface PublicOrderDetails {
|
|
|
95
101
|
is_cod?: boolean;
|
|
96
102
|
}
|
|
97
103
|
declare function publicPlaceOrder(address: unknown, redirect: string, orderDetails: PublicOrderDetails, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
104
|
+
/**
|
|
105
|
+
* Prices a single inline item for Buy Now. Never persists anything and never
|
|
106
|
+
* touches the customer's cart. Safe to call on every quantity/coupon/address/
|
|
107
|
+
* shipping change. JWT optional — send it for logged-in customers to enable
|
|
108
|
+
* saved-address and cached-coupon resolution; omit it for guests (an inline
|
|
109
|
+
* `address` is used instead).
|
|
110
|
+
*/
|
|
111
|
+
declare function buyNowPreview(payload: BuyNow.PreviewPayload): Promise<AxiosResponse<BuyNow.PreviewResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Places a buy-now order for a logged-in customer. Returns the full order object
|
|
114
|
+
* plus gateway payloads — drive payment exactly like the cart checkout.
|
|
115
|
+
*/
|
|
116
|
+
declare function placeBuyNowOrder(payload: BuyNow.PlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
117
|
+
/**
|
|
118
|
+
* Places a buy-now order for a GUEST through the existing public checkout,
|
|
119
|
+
* flagged with `is_buy_now`. Only allowed when the store has public checkout
|
|
120
|
+
* enabled — otherwise the backend rejects it and the guest must log in first.
|
|
121
|
+
*
|
|
122
|
+
* Returns the same order + gateway payloads as the authenticated endpoint.
|
|
123
|
+
*/
|
|
124
|
+
declare function placeGuestBuyNowOrder(payload: BuyNow.GuestPlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
125
|
+
/**
|
|
126
|
+
* Prices the whole guest cart. Never persists anything — no order, no cart, no
|
|
127
|
+
* customer record — so it is safe to call on every change the customer makes.
|
|
128
|
+
*
|
|
129
|
+
* Always re-price through this instead of computing totals locally (including
|
|
130
|
+
* the COD charge): the returned `total_amount` is contractually equal to what
|
|
131
|
+
* placement will charge for the same payload. JWT optional — send it for a
|
|
132
|
+
* logged-in customer to unlock saved-address and cached-coupon resolution.
|
|
133
|
+
*/
|
|
134
|
+
declare function publicCheckoutPreview(payload: PublicCheckout.PreviewPayload): Promise<AxiosResponse<PublicCheckout.PreviewResponse>>;
|
|
135
|
+
/**
|
|
136
|
+
* Places the guest order from a single flat payload (contact + address +
|
|
137
|
+
* cart_items + gateway urls). Same endpoint as `publicPlaceOrder`, but takes
|
|
138
|
+
* the whole body at once — the shape `usePublicCheckout` builds.
|
|
139
|
+
*
|
|
140
|
+
* Stock is only enforced here — the preview's `missing_items` is advisory — so
|
|
141
|
+
* expect ITEM_UNAVAILABLE / CHECKOUT_STOCK_ERROR and re-price on failure.
|
|
142
|
+
*/
|
|
143
|
+
declare function placePublicOrder(payload: PublicCheckout.PlaceOrderPayload): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
98
144
|
declare function updateOrder(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
99
145
|
declare function razorpayPublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
146
|
+
/**
|
|
147
|
+
* Every outcome is HTTP 200 — branch on `message` / `order_status`, not the
|
|
148
|
+
* status code.
|
|
149
|
+
*/
|
|
150
|
+
interface PaymentFailureResult {
|
|
151
|
+
message?: string;
|
|
152
|
+
order_id?: number;
|
|
153
|
+
order_number?: number;
|
|
154
|
+
order_status?: string;
|
|
155
|
+
}
|
|
156
|
+
declare function publicRazorpayOrderFailure(orderDetails: {
|
|
157
|
+
order_id?: number | string;
|
|
158
|
+
order_number?: number;
|
|
159
|
+
razorpay_order_id: string;
|
|
160
|
+
error?: unknown;
|
|
161
|
+
}): Promise<AxiosResponse<PaymentFailureResult>>;
|
|
162
|
+
declare function publicPhonepeOrderFailure(payload: {
|
|
163
|
+
id: string;
|
|
164
|
+
status: "REJECTED" | "EXPIRED";
|
|
165
|
+
}): Promise<AxiosResponse<{
|
|
166
|
+
message?: string;
|
|
167
|
+
}>>;
|
|
168
|
+
declare function phonepePaymentFailure(payload: {
|
|
169
|
+
order_id: number;
|
|
170
|
+
phonepe_transaction_id: string;
|
|
171
|
+
}): Promise<AxiosResponse<{
|
|
172
|
+
message?: string;
|
|
173
|
+
}>>;
|
|
174
|
+
declare function publicStripeOrderFailure(orderDetails: {
|
|
175
|
+
payment_intent_id: string;
|
|
176
|
+
order_id?: number | string;
|
|
177
|
+
order_number?: number;
|
|
178
|
+
}): Promise<AxiosResponse<PaymentFailureResult & {
|
|
179
|
+
payment_intent_status?: string;
|
|
180
|
+
}>>;
|
|
181
|
+
declare function tabbyPaymentFailure(paymentId: string): Promise<AxiosResponse<{
|
|
182
|
+
message?: string;
|
|
183
|
+
}>>;
|
|
100
184
|
declare function razorpayOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
101
185
|
declare function razorpayOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
102
186
|
declare function phonepePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
@@ -105,11 +189,24 @@ declare function checkPhonepePaymentStatus(transactionId: string): Promise<Axios
|
|
|
105
189
|
message: string;
|
|
106
190
|
success: boolean;
|
|
107
191
|
}>>;
|
|
192
|
+
/**
|
|
193
|
+
* Public (guest) PhonePe status poll. The PhonePe endpoint serves both POST
|
|
194
|
+
* (report success) and GET (check status) on the same URL, so the public status
|
|
195
|
+
* check is a GET on the public order-success route — not a separate `-status` one.
|
|
196
|
+
* Needed for guest buy-now / public checkout on the return leg from PhonePe.
|
|
197
|
+
*/
|
|
198
|
+
declare function checkPhonepePaymentStatusPublic(transactionId: string): Promise<AxiosResponse<{
|
|
199
|
+
message: string;
|
|
200
|
+
success: boolean;
|
|
201
|
+
}>>;
|
|
108
202
|
declare function getStripePaymentStatus(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
109
203
|
declare function getStripePaymentStatusPublic(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
110
204
|
declare function stripePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
111
205
|
declare function stripeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
112
|
-
declare function stripeOrderFail(orderDetails:
|
|
206
|
+
declare function stripeOrderFail(orderDetails: {
|
|
207
|
+
order_id: number;
|
|
208
|
+
payment_intent_id: string;
|
|
209
|
+
}): Promise<AxiosResponse<Cart.Root>>;
|
|
113
210
|
declare function makeCODOrder(orderId: number): Promise<AxiosResponse<unknown>>;
|
|
114
211
|
declare function publicMakeCODOrder(orderNumber: number, ownership?: {
|
|
115
212
|
customer_phone?: string;
|
|
@@ -200,4 +297,4 @@ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
|
|
|
200
297
|
*/
|
|
201
298
|
declare function getInstagramMedia(ids: string | (string | number)[]): Promise<AxiosResponse<Instagram.MediaRefreshResponse>>;
|
|
202
299
|
|
|
203
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getInstagramMedia, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
300
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, buyNowPreview, checkPhonepePaymentStatus, checkPhonepePaymentStatusPublic, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getInstagramMedia, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, mergeCart, notifyProductStock, phonepeOrderSuccess, phonepePaymentFailure, phonepePublicOrderSuccess, placeBuyNowOrder, placeGuestBuyNowOrder, placeOrder, placePublicOrder, postAnalytics, publicCheckoutPreview, publicMakeCODOrder, publicPhonepeOrderFailure, publicPlaceOrder, publicRazorpayOrderFailure, publicStripeOrderFailure, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, tabbyPaymentFailure, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
package/dist/api/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
|
|
2
|
-
export { addToCart, addWishlist, getCart, getCartItemQuantity, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { addToCart, addWishlist, getCart, getCartItemQuantity, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, mergeCart, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-ZAWZ3RB6.js';
|
|
3
|
+
import '../chunk-TH7OAMGC.js';
|
|
4
4
|
export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-7M5CVYZJ.js';
|
|
5
|
-
export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-
|
|
5
|
+
export { buyNowPreview, checkPhonepePaymentStatus, checkPhonepePaymentStatusPublic, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePaymentFailure, phonepePublicOrderSuccess, placeBuyNowOrder, placeGuestBuyNowOrder, placeOrder, placePublicOrder, publicCheckoutPreview, publicMakeCODOrder, publicPhonepeOrderFailure, publicPlaceOrder, publicRazorpayOrderFailure, publicStripeOrderFailure, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, tabbyPaymentFailure, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-KCLVR6G5.js';
|
|
6
6
|
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
|
|
7
7
|
import { http_service_default } from '../chunk-3SYYP3XV.js';
|
|
8
8
|
export { getHttpService, http_service_default as httpService, resetHttpService, setSessionExpiredCallback } from '../chunk-3SYYP3XV.js';
|