@storepecker/storefront-core 2.9.1 → 2.10.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.
Files changed (91) hide show
  1. package/dist/address-BdIB6IuI.d.cts +42 -0
  2. package/dist/address-BdIB6IuI.d.ts +42 -0
  3. package/dist/api/index.cjs +36 -32
  4. package/dist/api/index.d.cts +20 -17
  5. package/dist/api/index.d.ts +20 -17
  6. package/dist/api/index.js +4 -4
  7. package/dist/{buy-now-BqVWXyy8.d.cts → buy-now-CDug6LJ_.d.ts} +2 -2
  8. package/dist/{buy-now-DFdnuLjO.d.ts → buy-now-DrKY5_9R.d.cts} +2 -2
  9. package/dist/checkout/index.cjs +163 -76
  10. package/dist/checkout/index.d.cts +37 -26
  11. package/dist/checkout/index.d.ts +37 -26
  12. package/dist/checkout/index.js +50 -64
  13. package/dist/checkout-totals-CbmXM9L7.d.cts +220 -0
  14. package/dist/checkout-totals-DU8l-Wyb.d.ts +220 -0
  15. package/dist/{chunk-IG4BW3ZB.cjs → chunk-32X4SWN4.cjs} +3 -3
  16. package/dist/{chunk-NQZ5GUOG.cjs → chunk-3YPE6UPC.cjs} +24 -16
  17. package/dist/{chunk-RDUT4W3B.cjs → chunk-6APRQ2ED.cjs} +4 -1
  18. package/dist/{chunk-ICKTXS6B.js → chunk-6IXTFZFS.js} +3 -3
  19. package/dist/{chunk-7M5CVYZJ.js → chunk-A7EI7XLU.js} +8 -1
  20. package/dist/chunk-DZPK7GPG.js +601 -0
  21. package/dist/{chunk-TH7OAMGC.js → chunk-E4D4XOAE.js} +24 -16
  22. package/dist/{chunk-NRPK5GCJ.cjs → chunk-EFYAFXIS.cjs} +3 -3
  23. package/dist/{chunk-CBKJ3Y2I.js → chunk-EWZ7TGI7.js} +11 -1
  24. package/dist/{chunk-5XVHYPOC.js → chunk-FF5N7PTB.js} +1 -1
  25. package/dist/{chunk-NOT6VKXA.cjs → chunk-H6UZTS5O.cjs} +67 -23
  26. package/dist/{chunk-XFOUNOKO.cjs → chunk-KNG4OMS5.cjs} +8 -0
  27. package/dist/{chunk-ZAWZ3RB6.js → chunk-NNE42NMP.js} +1 -1
  28. package/dist/chunk-PN6KH5PX.cjs +661 -0
  29. package/dist/{chunk-QQHQTBAM.js → chunk-QSRVMOXT.js} +48 -6
  30. package/dist/{chunk-W6BDMNSU.js → chunk-QVO56X4E.js} +1 -1
  31. package/dist/{chunk-6LS5F4R3.cjs → chunk-SGJUMI3M.cjs} +11 -0
  32. package/dist/{chunk-YLLAP3H2.cjs → chunk-SGKLMS7W.cjs} +2 -2
  33. package/dist/{chunk-ZGMLOLTC.js → chunk-VRZRV2BR.js} +4 -1
  34. package/dist/{chunk-IVKJJLG7.cjs → chunk-WWJAPKRQ.cjs} +8 -8
  35. package/dist/{collections-CXgOv5_G.d.cts → collections-CKNFcE2d.d.cts} +1 -1
  36. package/dist/{collections-CNh2OGbl.d.ts → collections-CtRKsWVx.d.ts} +1 -1
  37. package/dist/components/address-form.cjs +6 -6
  38. package/dist/components/address-form.d.cts +10 -6
  39. package/dist/components/address-form.d.ts +10 -6
  40. package/dist/components/address-form.js +5 -5
  41. package/dist/components/digital-product-download-modal.d.cts +2 -2
  42. package/dist/components/digital-product-download-modal.d.ts +2 -2
  43. package/dist/components/index.cjs +8 -8
  44. package/dist/components/index.d.cts +6 -7
  45. package/dist/components/index.d.ts +6 -7
  46. package/dist/components/index.js +6 -6
  47. package/dist/components/search-dropdown.d.cts +4 -4
  48. package/dist/components/search-dropdown.d.ts +4 -4
  49. package/dist/components/share-button.cjs +3 -3
  50. package/dist/components/share-button.d.cts +1 -1
  51. package/dist/components/share-button.d.ts +1 -1
  52. package/dist/components/share-button.js +2 -2
  53. package/dist/components/theme-data-initializer.d.cts +4 -5
  54. package/dist/components/theme-data-initializer.d.ts +4 -5
  55. package/dist/hooks/index.cjs +672 -44
  56. package/dist/hooks/index.d.cts +239 -13
  57. package/dist/hooks/index.d.ts +239 -13
  58. package/dist/hooks/index.js +630 -11
  59. package/dist/{instagram-DalreBu6.d.cts → instagram-CSzrxk10.d.cts} +8 -2
  60. package/dist/{instagram-BADLnNQ3.d.ts → instagram-CagTLmyq.d.ts} +8 -2
  61. package/dist/models/index.d.cts +8 -8
  62. package/dist/models/index.d.ts +8 -8
  63. package/dist/orders-B6BmHCJN.d.ts +337 -0
  64. package/dist/orders-ZKP0lqRN.d.cts +337 -0
  65. package/dist/pincode-8u7yWLpQ.d.cts +29 -0
  66. package/dist/pincode-8u7yWLpQ.d.ts +29 -0
  67. package/dist/{pixelEvents-LsealscG.d.ts → pixelEvents-DqJ_CEEr.d.ts} +4 -4
  68. package/dist/{pixelEvents-BtEO5QAR.d.cts → pixelEvents-bahgVW4_.d.cts} +4 -4
  69. package/dist/{product-D9liEtl4.d.cts → product-D4kol-Z-.d.cts} +26 -2
  70. package/dist/{product-D9liEtl4.d.ts → product-D4kol-Z-.d.ts} +26 -2
  71. package/dist/store/index.cjs +20 -30
  72. package/dist/store/index.d.cts +21 -7
  73. package/dist/store/index.d.ts +21 -7
  74. package/dist/store/index.js +9 -26
  75. package/dist/{useAddressForm-DGbEn91-.d.cts → useAddressForm-fMOb5Z-a.d.ts} +6 -1
  76. package/dist/{useAddressForm-cO3Au33k.d.ts → useAddressForm-wleIo78M.d.cts} +6 -1
  77. package/dist/utils/index.cjs +60 -56
  78. package/dist/utils/index.d.cts +24 -9
  79. package/dist/utils/index.d.ts +24 -9
  80. package/dist/utils/index.js +4 -4
  81. package/dist/{wishlist-Cj0sQxiY.d.ts → wishlist-L3fM5-ie.d.ts} +1 -1
  82. package/dist/{wishlist-BakHvIFN.d.cts → wishlist-_0x0r1jt.d.cts} +1 -1
  83. package/package.json +1 -1
  84. package/dist/address-DwBZHzbI.d.cts +0 -19
  85. package/dist/address-DwBZHzbI.d.ts +0 -19
  86. package/dist/cart-DZq1ZEnE.d.ts +0 -153
  87. package/dist/cart-DwMFBmpC.d.cts +0 -153
  88. package/dist/chunk-34Y7Y5FU.cjs +0 -246
  89. package/dist/chunk-VPTN4YXD.js +0 -232
  90. package/dist/orders-B3G4CyhH.d.cts +0 -166
  91. package/dist/orders-Bl-Slh72.d.ts +0 -166
@@ -0,0 +1,42 @@
1
+ interface Address {
2
+ id: number;
3
+ customer: number;
4
+ address: string;
5
+ city: string;
6
+ state: string;
7
+ state_obj: string;
8
+ customer_email: string;
9
+ country: string;
10
+ pincode: string;
11
+ latitude: number | null;
12
+ longitude: number | null;
13
+ is_default: boolean;
14
+ customer_name: string;
15
+ customer_phone: string;
16
+ customer_country_code: string;
17
+ /** Country id as sent on save; present on addresses from the country-aware form. */
18
+ country_obj?: string | number | null;
19
+ }
20
+ /**
21
+ * What the country-aware address form sends to `/store/customer_address/` and
22
+ * hands to the guest checkouts. The second address line is folded into
23
+ * `address`, not sent on its own.
24
+ */
25
+ interface AddressPayload {
26
+ customer_name: string;
27
+ customer_email: string;
28
+ customer_phone: string;
29
+ /** Dial code with the plus, e.g. "+91". */
30
+ customer_country_code: string;
31
+ address: string;
32
+ city: string;
33
+ state_obj: string;
34
+ state: string;
35
+ country_obj: number;
36
+ country: string;
37
+ /** "N/A" for countries with no postal code. */
38
+ pincode: string;
39
+ is_default: boolean;
40
+ }
41
+
42
+ export type { Address as A, AddressPayload as a };
@@ -0,0 +1,42 @@
1
+ interface Address {
2
+ id: number;
3
+ customer: number;
4
+ address: string;
5
+ city: string;
6
+ state: string;
7
+ state_obj: string;
8
+ customer_email: string;
9
+ country: string;
10
+ pincode: string;
11
+ latitude: number | null;
12
+ longitude: number | null;
13
+ is_default: boolean;
14
+ customer_name: string;
15
+ customer_phone: string;
16
+ customer_country_code: string;
17
+ /** Country id as sent on save; present on addresses from the country-aware form. */
18
+ country_obj?: string | number | null;
19
+ }
20
+ /**
21
+ * What the country-aware address form sends to `/store/customer_address/` and
22
+ * hands to the guest checkouts. The second address line is folded into
23
+ * `address`, not sent on its own.
24
+ */
25
+ interface AddressPayload {
26
+ customer_name: string;
27
+ customer_email: string;
28
+ customer_phone: string;
29
+ /** Dial code with the plus, e.g. "+91". */
30
+ customer_country_code: string;
31
+ address: string;
32
+ city: string;
33
+ state_obj: string;
34
+ state: string;
35
+ country_obj: number;
36
+ country: string;
37
+ /** "N/A" for countries with no postal code. */
38
+ pincode: string;
39
+ is_default: boolean;
40
+ }
41
+
42
+ export type { Address as A, AddressPayload as a };
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
4
- var chunkNRPK5GCJ_cjs = require('../chunk-NRPK5GCJ.cjs');
5
- require('../chunk-NQZ5GUOG.cjs');
6
- var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
4
+ var chunkEFYAFXIS_cjs = require('../chunk-EFYAFXIS.cjs');
5
+ require('../chunk-3YPE6UPC.cjs');
6
+ var chunkKNG4OMS5_cjs = require('../chunk-KNG4OMS5.cjs');
7
7
  var chunkH6FJYRO3_cjs = require('../chunk-H6FJYRO3.cjs');
8
- var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
8
+ var chunk6APRQ2ED_cjs = require('../chunk-6APRQ2ED.cjs');
9
9
  var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
10
10
  require('../chunk-BBRXE57K.cjs');
11
11
  require('../chunk-NE3ZHELZ.cjs');
@@ -173,91 +173,95 @@ Object.defineProperty(exports, "updateUserDetails", {
173
173
  });
174
174
  Object.defineProperty(exports, "addToCart", {
175
175
  enumerable: true,
176
- get: function () { return chunkNRPK5GCJ_cjs.addToCart; }
176
+ get: function () { return chunkEFYAFXIS_cjs.addToCart; }
177
177
  });
178
178
  Object.defineProperty(exports, "addWishlist", {
179
179
  enumerable: true,
180
- get: function () { return chunkNRPK5GCJ_cjs.addWishlist; }
180
+ get: function () { return chunkEFYAFXIS_cjs.addWishlist; }
181
181
  });
182
182
  Object.defineProperty(exports, "getCart", {
183
183
  enumerable: true,
184
- get: function () { return chunkNRPK5GCJ_cjs.getCart; }
184
+ get: function () { return chunkEFYAFXIS_cjs.getCart; }
185
185
  });
186
186
  Object.defineProperty(exports, "getCartItemQuantity", {
187
187
  enumerable: true,
188
- get: function () { return chunkNRPK5GCJ_cjs.getCartItemQuantity; }
188
+ get: function () { return chunkEFYAFXIS_cjs.getCartItemQuantity; }
189
189
  });
190
190
  Object.defineProperty(exports, "getCategories", {
191
191
  enumerable: true,
192
- get: function () { return chunkNRPK5GCJ_cjs.getCategories; }
192
+ get: function () { return chunkEFYAFXIS_cjs.getCategories; }
193
193
  });
194
194
  Object.defineProperty(exports, "getDigitalProductDownloadLink", {
195
195
  enumerable: true,
196
- get: function () { return chunkNRPK5GCJ_cjs.getDigitalProductDownloadLink; }
196
+ get: function () { return chunkEFYAFXIS_cjs.getDigitalProductDownloadLink; }
197
197
  });
198
198
  Object.defineProperty(exports, "getProductCategories", {
199
199
  enumerable: true,
200
- get: function () { return chunkNRPK5GCJ_cjs.getProductCategories; }
200
+ get: function () { return chunkEFYAFXIS_cjs.getProductCategories; }
201
201
  });
202
202
  Object.defineProperty(exports, "getProductDetail", {
203
203
  enumerable: true,
204
- get: function () { return chunkNRPK5GCJ_cjs.getProductDetail; }
204
+ get: function () { return chunkEFYAFXIS_cjs.getProductDetail; }
205
205
  });
206
206
  Object.defineProperty(exports, "getProductDetailBySlug", {
207
207
  enumerable: true,
208
- get: function () { return chunkNRPK5GCJ_cjs.getProductDetailBySlug; }
208
+ get: function () { return chunkEFYAFXIS_cjs.getProductDetailBySlug; }
209
209
  });
210
210
  Object.defineProperty(exports, "getProductList", {
211
211
  enumerable: true,
212
- get: function () { return chunkNRPK5GCJ_cjs.getProductList; }
212
+ get: function () { return chunkEFYAFXIS_cjs.getProductList; }
213
213
  });
214
214
  Object.defineProperty(exports, "getProducts", {
215
215
  enumerable: true,
216
- get: function () { return chunkNRPK5GCJ_cjs.getProducts; }
216
+ get: function () { return chunkEFYAFXIS_cjs.getProducts; }
217
217
  });
218
218
  Object.defineProperty(exports, "getWishlist", {
219
219
  enumerable: true,
220
- get: function () { return chunkNRPK5GCJ_cjs.getWishlist; }
220
+ get: function () { return chunkEFYAFXIS_cjs.getWishlist; }
221
221
  });
222
222
  Object.defineProperty(exports, "mergeCart", {
223
223
  enumerable: true,
224
- get: function () { return chunkNRPK5GCJ_cjs.mergeCart; }
224
+ get: function () { return chunkEFYAFXIS_cjs.mergeCart; }
225
225
  });
226
226
  Object.defineProperty(exports, "notifyProductStock", {
227
227
  enumerable: true,
228
- get: function () { return chunkNRPK5GCJ_cjs.notifyProductStock; }
228
+ get: function () { return chunkEFYAFXIS_cjs.notifyProductStock; }
229
229
  });
230
230
  Object.defineProperty(exports, "removeFromCart", {
231
231
  enumerable: true,
232
- get: function () { return chunkNRPK5GCJ_cjs.removeFromCart; }
232
+ get: function () { return chunkEFYAFXIS_cjs.removeFromCart; }
233
233
  });
234
234
  Object.defineProperty(exports, "removeFromWishlist", {
235
235
  enumerable: true,
236
- get: function () { return chunkNRPK5GCJ_cjs.removeFromWishlist; }
236
+ get: function () { return chunkEFYAFXIS_cjs.removeFromWishlist; }
237
237
  });
238
238
  Object.defineProperty(exports, "updateCart", {
239
239
  enumerable: true,
240
- get: function () { return chunkNRPK5GCJ_cjs.updateCart; }
240
+ get: function () { return chunkEFYAFXIS_cjs.updateCart; }
241
241
  });
242
242
  Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
243
243
  enumerable: true,
244
- get: function () { return chunkNRPK5GCJ_cjs.updateDigitalProductDownloadLinkCount; }
244
+ get: function () { return chunkEFYAFXIS_cjs.updateDigitalProductDownloadLinkCount; }
245
245
  });
246
246
  Object.defineProperty(exports, "applyCoupon", {
247
247
  enumerable: true,
248
- get: function () { return chunkXFOUNOKO_cjs.applyCoupon; }
248
+ get: function () { return chunkKNG4OMS5_cjs.applyCoupon; }
249
249
  });
250
250
  Object.defineProperty(exports, "getAppliedCoupon", {
251
251
  enumerable: true,
252
- get: function () { return chunkXFOUNOKO_cjs.getAppliedCoupon; }
252
+ get: function () { return chunkKNG4OMS5_cjs.getAppliedCoupon; }
253
253
  });
254
254
  Object.defineProperty(exports, "getCoupons", {
255
255
  enumerable: true,
256
- get: function () { return chunkXFOUNOKO_cjs.getCoupons; }
256
+ get: function () { return chunkKNG4OMS5_cjs.getCoupons; }
257
+ });
258
+ Object.defineProperty(exports, "getPincodeDetails", {
259
+ enumerable: true,
260
+ get: function () { return chunkKNG4OMS5_cjs.getPincodeDetails; }
257
261
  });
258
262
  Object.defineProperty(exports, "removeCoupon", {
259
263
  enumerable: true,
260
- get: function () { return chunkXFOUNOKO_cjs.removeCoupon; }
264
+ get: function () { return chunkKNG4OMS5_cjs.removeCoupon; }
261
265
  });
262
266
  Object.defineProperty(exports, "buyNowPreview", {
263
267
  enumerable: true,
@@ -409,27 +413,27 @@ Object.defineProperty(exports, "verifyTabbyPayment", {
409
413
  });
410
414
  Object.defineProperty(exports, "addAddress", {
411
415
  enumerable: true,
412
- get: function () { return chunkRDUT4W3B_cjs.addAddress; }
416
+ get: function () { return chunk6APRQ2ED_cjs.addAddress; }
413
417
  });
414
418
  Object.defineProperty(exports, "deleteAddress", {
415
419
  enumerable: true,
416
- get: function () { return chunkRDUT4W3B_cjs.deleteAddress; }
420
+ get: function () { return chunk6APRQ2ED_cjs.deleteAddress; }
417
421
  });
418
422
  Object.defineProperty(exports, "getAddresses", {
419
423
  enumerable: true,
420
- get: function () { return chunkRDUT4W3B_cjs.getAddresses; }
424
+ get: function () { return chunk6APRQ2ED_cjs.getAddresses; }
421
425
  });
422
426
  Object.defineProperty(exports, "getCountries", {
423
427
  enumerable: true,
424
- get: function () { return chunkRDUT4W3B_cjs.getCountries; }
428
+ get: function () { return chunk6APRQ2ED_cjs.getCountries; }
425
429
  });
426
430
  Object.defineProperty(exports, "getSubdivisions", {
427
431
  enumerable: true,
428
- get: function () { return chunkRDUT4W3B_cjs.getSubdivisions; }
432
+ get: function () { return chunk6APRQ2ED_cjs.getSubdivisions; }
429
433
  });
430
434
  Object.defineProperty(exports, "updateAddress", {
431
435
  enumerable: true,
432
- get: function () { return chunkRDUT4W3B_cjs.updateAddress; }
436
+ get: function () { return chunk6APRQ2ED_cjs.updateAddress; }
433
437
  });
434
438
  Object.defineProperty(exports, "getHttpService", {
435
439
  enumerable: true,
@@ -1,13 +1,13 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosInstance, AxiosResponse } from 'axios';
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-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';
3
+ import { A as Address } from '../address-BdIB6IuI.cjs';
4
+ import { U as User, C as Cart, d as CouponResponse, c as Coupon, O as Order, b as Category } from '../orders-ZKP0lqRN.cjs';
5
+ import { d as Product, f as ProductDetail } from '../product-D4kol-Z-.cjs';
6
+ import { B as BuyNow, P as PublicCheckout } from '../buy-now-DrKY5_9R.cjs';
7
+ import { W as Wishlist } from '../wishlist-_0x0r1jt.cjs';
8
+ import { C as CollectionResponse } from '../collections-CKNFcE2d.cjs';
9
+ import { R as Review, A as Analytics, c as BookingResponse, B as Blog, I as Instagram } from '../instagram-CSzrxk10.cjs';
10
+ import { P as Pincode } from '../pincode-8u7yWLpQ.cjs';
11
11
  import 'react-toastify';
12
12
 
13
13
  /**
@@ -216,11 +216,7 @@ declare function updateOrderCustomization(customizationInput: unknown): Promise<
216
216
  declare function uploadCustomizationImage(uploadForm: FormData): Promise<AxiosResponse<{
217
217
  image_paths: string[];
218
218
  }>>;
219
- declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<{
220
- order_status: string;
221
- message: string;
222
- status: string;
223
- }>>;
219
+ declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<Order.TabbyPaymentStatus>>;
224
220
 
225
221
  declare function getProductList(url: string, filter: unknown): Promise<Product.ProductResponse>;
226
222
  declare function getProducts(filter: Product.ProductFilter): Promise<AxiosResponse<Product.ProductResponse>>;
@@ -272,9 +268,7 @@ interface BookingFilter {
272
268
  page?: number;
273
269
  page_size?: number;
274
270
  }
275
- declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
276
- results: Booking[];
277
- }>>;
271
+ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<BookingResponse>>;
278
272
 
279
273
  declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
280
274
  results: Blog.Post[];
@@ -297,4 +291,13 @@ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
297
291
  */
298
292
  declare function getInstagramMedia(ids: string | (string | number)[]): Promise<AxiosResponse<Instagram.MediaRefreshResponse>>;
299
293
 
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 };
294
+ /**
295
+ * Look a pincode up against the backend's postal-code database.
296
+ *
297
+ * @param pincode The postal code to look up.
298
+ * @param country ISO2 of the selected country. Optional: the backend falls
299
+ * back to the store's country.
300
+ */
301
+ declare const getPincodeDetails: (pincode: string, country?: string) => Promise<AxiosResponse<Pincode.LookupResponse>>;
302
+
303
+ 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, getPincodeDetails, 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 };
@@ -1,13 +1,13 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosInstance, AxiosResponse } from 'axios';
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-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';
3
+ import { A as Address } from '../address-BdIB6IuI.js';
4
+ import { U as User, C as Cart, d as CouponResponse, c as Coupon, O as Order, b as Category } from '../orders-B6BmHCJN.js';
5
+ import { d as Product, f as ProductDetail } from '../product-D4kol-Z-.js';
6
+ import { B as BuyNow, P as PublicCheckout } from '../buy-now-CDug6LJ_.js';
7
+ import { W as Wishlist } from '../wishlist-L3fM5-ie.js';
8
+ import { C as CollectionResponse } from '../collections-CtRKsWVx.js';
9
+ import { R as Review, A as Analytics, c as BookingResponse, B as Blog, I as Instagram } from '../instagram-CagTLmyq.js';
10
+ import { P as Pincode } from '../pincode-8u7yWLpQ.js';
11
11
  import 'react-toastify';
12
12
 
13
13
  /**
@@ -216,11 +216,7 @@ declare function updateOrderCustomization(customizationInput: unknown): Promise<
216
216
  declare function uploadCustomizationImage(uploadForm: FormData): Promise<AxiosResponse<{
217
217
  image_paths: string[];
218
218
  }>>;
219
- declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<{
220
- order_status: string;
221
- message: string;
222
- status: string;
223
- }>>;
219
+ declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<Order.TabbyPaymentStatus>>;
224
220
 
225
221
  declare function getProductList(url: string, filter: unknown): Promise<Product.ProductResponse>;
226
222
  declare function getProducts(filter: Product.ProductFilter): Promise<AxiosResponse<Product.ProductResponse>>;
@@ -272,9 +268,7 @@ interface BookingFilter {
272
268
  page?: number;
273
269
  page_size?: number;
274
270
  }
275
- declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
276
- results: Booking[];
277
- }>>;
271
+ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<BookingResponse>>;
278
272
 
279
273
  declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
280
274
  results: Blog.Post[];
@@ -297,4 +291,13 @@ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
297
291
  */
298
292
  declare function getInstagramMedia(ids: string | (string | number)[]): Promise<AxiosResponse<Instagram.MediaRefreshResponse>>;
299
293
 
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 };
294
+ /**
295
+ * Look a pincode up against the backend's postal-code database.
296
+ *
297
+ * @param pincode The postal code to look up.
298
+ * @param country ISO2 of the selected country. Optional: the backend falls
299
+ * back to the store's country.
300
+ */
301
+ declare const getPincodeDetails: (pincode: string, country?: string) => Promise<AxiosResponse<Pincode.LookupResponse>>;
302
+
303
+ 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, getPincodeDetails, 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,9 +1,9 @@
1
1
  export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
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
- export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-7M5CVYZJ.js';
2
+ export { addToCart, addWishlist, getCart, getCartItemQuantity, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, mergeCart, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-NNE42NMP.js';
3
+ import '../chunk-E4D4XOAE.js';
4
+ export { applyCoupon, getAppliedCoupon, getCoupons, getPincodeDetails, removeCoupon } from '../chunk-A7EI7XLU.js';
5
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
- export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
6
+ export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-VRZRV2BR.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';
9
9
  import '../chunk-WEMNXIRS.js';
@@ -1,5 +1,5 @@
1
- import { A as Address } from './address-DwBZHzbI.cjs';
2
- import { C as Cart, c as Coupon } from './cart-DwMFBmpC.cjs';
1
+ import { A as Address } from './address-BdIB6IuI.js';
2
+ import { C as Cart, c as Coupon } from './orders-B6BmHCJN.js';
3
3
 
4
4
  /**
5
5
  * Types shared by the two checkout surfaces that price an *inline* selection
@@ -1,5 +1,5 @@
1
- import { A as Address } from './address-DwBZHzbI.js';
2
- import { C as Cart, c as Coupon } from './cart-DZq1ZEnE.js';
1
+ import { A as Address } from './address-BdIB6IuI.cjs';
2
+ import { C as Cart, c as Coupon } from './orders-ZKP0lqRN.cjs';
3
3
 
4
4
  /**
5
5
  * Types shared by the two checkout surfaces that price an *inline* selection