@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.
- package/dist/address-BdIB6IuI.d.cts +42 -0
- package/dist/address-BdIB6IuI.d.ts +42 -0
- package/dist/api/index.cjs +36 -32
- package/dist/api/index.d.cts +20 -17
- package/dist/api/index.d.ts +20 -17
- package/dist/api/index.js +4 -4
- package/dist/{buy-now-BqVWXyy8.d.cts → buy-now-CDug6LJ_.d.ts} +2 -2
- package/dist/{buy-now-DFdnuLjO.d.ts → buy-now-DrKY5_9R.d.cts} +2 -2
- package/dist/checkout/index.cjs +163 -76
- package/dist/checkout/index.d.cts +37 -26
- package/dist/checkout/index.d.ts +37 -26
- package/dist/checkout/index.js +50 -64
- package/dist/checkout-totals-CbmXM9L7.d.cts +220 -0
- package/dist/checkout-totals-DU8l-Wyb.d.ts +220 -0
- package/dist/{chunk-IG4BW3ZB.cjs → chunk-32X4SWN4.cjs} +3 -3
- package/dist/{chunk-NQZ5GUOG.cjs → chunk-3YPE6UPC.cjs} +24 -16
- package/dist/{chunk-RDUT4W3B.cjs → chunk-6APRQ2ED.cjs} +4 -1
- package/dist/{chunk-ICKTXS6B.js → chunk-6IXTFZFS.js} +3 -3
- package/dist/{chunk-7M5CVYZJ.js → chunk-A7EI7XLU.js} +8 -1
- package/dist/chunk-DZPK7GPG.js +601 -0
- package/dist/{chunk-TH7OAMGC.js → chunk-E4D4XOAE.js} +24 -16
- package/dist/{chunk-NRPK5GCJ.cjs → chunk-EFYAFXIS.cjs} +3 -3
- package/dist/{chunk-CBKJ3Y2I.js → chunk-EWZ7TGI7.js} +11 -1
- package/dist/{chunk-5XVHYPOC.js → chunk-FF5N7PTB.js} +1 -1
- package/dist/{chunk-NOT6VKXA.cjs → chunk-H6UZTS5O.cjs} +67 -23
- package/dist/{chunk-XFOUNOKO.cjs → chunk-KNG4OMS5.cjs} +8 -0
- package/dist/{chunk-ZAWZ3RB6.js → chunk-NNE42NMP.js} +1 -1
- package/dist/chunk-PN6KH5PX.cjs +661 -0
- package/dist/{chunk-QQHQTBAM.js → chunk-QSRVMOXT.js} +48 -6
- package/dist/{chunk-W6BDMNSU.js → chunk-QVO56X4E.js} +1 -1
- package/dist/{chunk-6LS5F4R3.cjs → chunk-SGJUMI3M.cjs} +11 -0
- package/dist/{chunk-YLLAP3H2.cjs → chunk-SGKLMS7W.cjs} +2 -2
- package/dist/{chunk-ZGMLOLTC.js → chunk-VRZRV2BR.js} +4 -1
- package/dist/{chunk-IVKJJLG7.cjs → chunk-WWJAPKRQ.cjs} +8 -8
- package/dist/{collections-CXgOv5_G.d.cts → collections-CKNFcE2d.d.cts} +1 -1
- package/dist/{collections-CNh2OGbl.d.ts → collections-CtRKsWVx.d.ts} +1 -1
- package/dist/components/address-form.cjs +6 -6
- package/dist/components/address-form.d.cts +10 -6
- package/dist/components/address-form.d.ts +10 -6
- package/dist/components/address-form.js +5 -5
- 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.cjs +8 -8
- package/dist/components/index.d.cts +6 -7
- package/dist/components/index.d.ts +6 -7
- package/dist/components/index.js +6 -6
- package/dist/components/search-dropdown.d.cts +4 -4
- package/dist/components/search-dropdown.d.ts +4 -4
- package/dist/components/share-button.cjs +3 -3
- package/dist/components/share-button.d.cts +1 -1
- package/dist/components/share-button.d.ts +1 -1
- package/dist/components/share-button.js +2 -2
- package/dist/components/theme-data-initializer.d.cts +4 -5
- package/dist/components/theme-data-initializer.d.ts +4 -5
- package/dist/hooks/index.cjs +672 -44
- package/dist/hooks/index.d.cts +239 -13
- package/dist/hooks/index.d.ts +239 -13
- package/dist/hooks/index.js +630 -11
- package/dist/{instagram-DalreBu6.d.cts → instagram-CSzrxk10.d.cts} +8 -2
- package/dist/{instagram-BADLnNQ3.d.ts → instagram-CagTLmyq.d.ts} +8 -2
- package/dist/models/index.d.cts +8 -8
- package/dist/models/index.d.ts +8 -8
- package/dist/orders-B6BmHCJN.d.ts +337 -0
- package/dist/orders-ZKP0lqRN.d.cts +337 -0
- package/dist/pincode-8u7yWLpQ.d.cts +29 -0
- package/dist/pincode-8u7yWLpQ.d.ts +29 -0
- package/dist/{pixelEvents-LsealscG.d.ts → pixelEvents-DqJ_CEEr.d.ts} +4 -4
- package/dist/{pixelEvents-BtEO5QAR.d.cts → pixelEvents-bahgVW4_.d.cts} +4 -4
- package/dist/{product-D9liEtl4.d.cts → product-D4kol-Z-.d.cts} +26 -2
- package/dist/{product-D9liEtl4.d.ts → product-D4kol-Z-.d.ts} +26 -2
- package/dist/store/index.cjs +20 -30
- package/dist/store/index.d.cts +21 -7
- package/dist/store/index.d.ts +21 -7
- package/dist/store/index.js +9 -26
- package/dist/{useAddressForm-DGbEn91-.d.cts → useAddressForm-fMOb5Z-a.d.ts} +6 -1
- package/dist/{useAddressForm-cO3Au33k.d.ts → useAddressForm-wleIo78M.d.cts} +6 -1
- package/dist/utils/index.cjs +60 -56
- package/dist/utils/index.d.cts +24 -9
- package/dist/utils/index.d.ts +24 -9
- package/dist/utils/index.js +4 -4
- package/dist/{wishlist-Cj0sQxiY.d.ts → wishlist-L3fM5-ie.d.ts} +1 -1
- package/dist/{wishlist-BakHvIFN.d.cts → wishlist-_0x0r1jt.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/address-DwBZHzbI.d.cts +0 -19
- package/dist/address-DwBZHzbI.d.ts +0 -19
- package/dist/cart-DZq1ZEnE.d.ts +0 -153
- package/dist/cart-DwMFBmpC.d.cts +0 -153
- package/dist/chunk-34Y7Y5FU.cjs +0 -246
- package/dist/chunk-VPTN4YXD.js +0 -232
- package/dist/orders-B3G4CyhH.d.cts +0 -166
- 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 };
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
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
|
|
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
|
|
176
|
+
get: function () { return chunkEFYAFXIS_cjs.addToCart; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "addWishlist", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkEFYAFXIS_cjs.addWishlist; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "getCart", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkEFYAFXIS_cjs.getCart; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "getCartItemQuantity", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkEFYAFXIS_cjs.getCartItemQuantity; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "getCategories", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkEFYAFXIS_cjs.getCategories; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkEFYAFXIS_cjs.getDigitalProductDownloadLink; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "getProductCategories", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkEFYAFXIS_cjs.getProductCategories; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "getProductDetail", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkEFYAFXIS_cjs.getProductDetail; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkEFYAFXIS_cjs.getProductDetailBySlug; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "getProductList", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkEFYAFXIS_cjs.getProductList; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "getProducts", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkEFYAFXIS_cjs.getProducts; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "getWishlist", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkEFYAFXIS_cjs.getWishlist; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "mergeCart", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkEFYAFXIS_cjs.mergeCart; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkEFYAFXIS_cjs.notifyProductStock; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "removeFromCart", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkEFYAFXIS_cjs.removeFromCart; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkEFYAFXIS_cjs.removeFromWishlist; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "updateCart", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkEFYAFXIS_cjs.updateCart; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkEFYAFXIS_cjs.updateDigitalProductDownloadLinkCount; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "applyCoupon", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkKNG4OMS5_cjs.applyCoupon; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "getAppliedCoupon", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkKNG4OMS5_cjs.getAppliedCoupon; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "getCoupons", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
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
|
|
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
|
|
416
|
+
get: function () { return chunk6APRQ2ED_cjs.addAddress; }
|
|
413
417
|
});
|
|
414
418
|
Object.defineProperty(exports, "deleteAddress", {
|
|
415
419
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunk6APRQ2ED_cjs.deleteAddress; }
|
|
417
421
|
});
|
|
418
422
|
Object.defineProperty(exports, "getAddresses", {
|
|
419
423
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunk6APRQ2ED_cjs.getAddresses; }
|
|
421
425
|
});
|
|
422
426
|
Object.defineProperty(exports, "getCountries", {
|
|
423
427
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunk6APRQ2ED_cjs.getCountries; }
|
|
425
429
|
});
|
|
426
430
|
Object.defineProperty(exports, "getSubdivisions", {
|
|
427
431
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunk6APRQ2ED_cjs.getSubdivisions; }
|
|
429
433
|
});
|
|
430
434
|
Object.defineProperty(exports, "updateAddress", {
|
|
431
435
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunk6APRQ2ED_cjs.updateAddress; }
|
|
433
437
|
});
|
|
434
438
|
Object.defineProperty(exports, "getHttpService", {
|
|
435
439
|
enumerable: true,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -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-
|
|
4
|
-
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
-
|
|
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.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
-
|
|
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-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-
|
|
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-
|
|
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-
|
|
2
|
-
import { C as Cart, c as Coupon } from './
|
|
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-
|
|
2
|
-
import { C as Cart, c as Coupon } from './
|
|
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
|