@storepecker/storefront-core 2.3.0 → 2.3.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 +78 -74
- package/dist/api/index.d.cts +6 -1
- package/dist/api/index.d.ts +6 -1
- package/dist/api/index.js +6 -6
- package/dist/checkout/index.cjs +23 -23
- package/dist/checkout/index.js +3 -3
- package/dist/{chunk-BHOXJGIE.js → chunk-27MTKBJL.js} +1 -1
- package/dist/chunk-3SYYP3XV.js +121 -0
- package/dist/{chunk-XLQAALMU.cjs → chunk-65Z7I5UP.cjs} +10 -10
- package/dist/{chunk-N3ZCCKXV.cjs → chunk-665CNTEX.cjs} +5 -5
- package/dist/{chunk-A67PCF55.cjs → chunk-6BVTMDR2.cjs} +17 -17
- package/dist/{chunk-7R2V4C7Q.js → chunk-AFM4IJVE.js} +1 -1
- package/dist/{chunk-FMHR5ABF.cjs → chunk-CV6DWPYF.cjs} +28 -28
- package/dist/chunk-ECHV2JSY.cjs +130 -0
- package/dist/{chunk-G3R7ZVAG.cjs → chunk-RDUT4W3B.cjs} +7 -7
- package/dist/{chunk-GHABOHLA.js → chunk-VWFZZFZL.js} +1 -1
- package/dist/{chunk-C7ZJZEEN.js → chunk-WYXT5AAG.js} +1 -1
- package/dist/{chunk-QBRME5AG.js → chunk-X35IATPX.js} +1 -1
- package/dist/{chunk-KKQKHG26.cjs → chunk-Y46EHRJQ.cjs} +3 -3
- package/dist/{chunk-ERLBPVFK.js → chunk-YEJZYH55.js} +1 -1
- package/dist/{chunk-SABICUTC.cjs → chunk-Z4DBCDAH.cjs} +6 -6
- package/dist/{chunk-YY77CUWX.js → chunk-ZGMLOLTC.js} +1 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +3 -3
- package/dist/hooks/index.cjs +31 -31
- package/dist/hooks/index.js +8 -8
- package/dist/store/index.cjs +8 -8
- package/dist/store/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-JWKDXFS4.js +0 -61
- package/dist/chunk-ZO2HREQL.cjs +0 -69
package/dist/api/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
|
+
var chunk6BVTMDR2_cjs = require('../chunk-6BVTMDR2.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
6
|
+
var chunkCV6DWPYF_cjs = require('../chunk-CV6DWPYF.cjs');
|
|
7
|
+
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
8
|
+
var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
|
|
9
9
|
require('../chunk-BBRXE57K.cjs');
|
|
10
10
|
require('../chunk-NE3ZHELZ.cjs');
|
|
11
11
|
var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
|
|
@@ -63,37 +63,37 @@ var server_http_service_default = serverHttpService;
|
|
|
63
63
|
|
|
64
64
|
// src/api/auth.ts
|
|
65
65
|
var sendOTP = async (credentials) => {
|
|
66
|
-
return
|
|
66
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/store/login/", {
|
|
67
67
|
...credentials,
|
|
68
68
|
platform: "APP",
|
|
69
69
|
step: "SEND_OTP"
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
var verifyOTP = async (credentials) => {
|
|
73
|
-
return
|
|
73
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/store/login/", {
|
|
74
74
|
...credentials,
|
|
75
75
|
platform: "APP",
|
|
76
76
|
step: "VERIFY_OTP"
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
function getNewToken(refresh) {
|
|
80
|
-
return
|
|
80
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/api/token/refresh/", { refresh });
|
|
81
81
|
}
|
|
82
82
|
function getLoginMethod() {
|
|
83
|
-
return
|
|
83
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/store/login_options/");
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// src/api/filter.ts
|
|
87
87
|
async function getFilters() {
|
|
88
|
-
return
|
|
88
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/store/filter/");
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
// src/api/collection.ts
|
|
92
92
|
async function getCollection(slug) {
|
|
93
|
-
return await
|
|
93
|
+
return await chunkECHV2JSY_cjs.http_service_default.get(`/inventory/public/collections/${slug}/`);
|
|
94
94
|
}
|
|
95
95
|
async function getMultipleCollections(slugs) {
|
|
96
|
-
return await
|
|
96
|
+
return await chunkECHV2JSY_cjs.http_service_default.get(`/inventory/public/collections/multiple/`, {
|
|
97
97
|
params: {
|
|
98
98
|
slugs
|
|
99
99
|
}
|
|
@@ -102,260 +102,264 @@ async function getMultipleCollections(slugs) {
|
|
|
102
102
|
|
|
103
103
|
// src/api/review.ts
|
|
104
104
|
async function addReview(content) {
|
|
105
|
-
return
|
|
105
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/reviews/customer/", content);
|
|
106
106
|
}
|
|
107
107
|
async function getReviews(data) {
|
|
108
108
|
const { filters, ...rest } = data;
|
|
109
|
-
return
|
|
109
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/reviews/store/", {
|
|
110
110
|
params: { ...rest, ...filters }
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
async function getReviewSummary(review_type, variant_slug) {
|
|
114
|
-
return
|
|
114
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/reviews/summary/", {
|
|
115
115
|
params: { review_type, variant_slug }
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
async function uploadReviewImages(uploadForm) {
|
|
119
|
-
return
|
|
119
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/utils/upload_image", uploadForm);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// src/api/affiliate.ts
|
|
123
123
|
async function getAffiliateRedirect(ref) {
|
|
124
|
-
return
|
|
124
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/marketing/aff-redirect/", {
|
|
125
125
|
params: { ref }
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// src/api/analytics.ts
|
|
130
130
|
async function postAnalytics(data) {
|
|
131
|
-
return
|
|
131
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/spa/cad/", data);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
// src/api/booking.ts
|
|
135
135
|
async function createBooking(bookingData) {
|
|
136
|
-
return
|
|
136
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/customer/service_booking/", bookingData);
|
|
137
137
|
}
|
|
138
138
|
async function getUserBookings(filter) {
|
|
139
|
-
return
|
|
139
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/customer/service_booking/", {
|
|
140
140
|
params: { ...filter }
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
Object.defineProperty(exports, "getUserDetails", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkY46EHRJQ_cjs.getUserDetails; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "updateUserDetails", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkY46EHRJQ_cjs.updateUserDetails; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "addToCart", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk6BVTMDR2_cjs.addToCart; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "addWishlist", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk6BVTMDR2_cjs.addWishlist; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "getCart", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk6BVTMDR2_cjs.getCart; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "getCategories", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk6BVTMDR2_cjs.getCategories; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk6BVTMDR2_cjs.getDigitalProductDownloadLink; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "getProductCategories", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk6BVTMDR2_cjs.getProductCategories; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "getProductDetail", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk6BVTMDR2_cjs.getProductDetail; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk6BVTMDR2_cjs.getProductDetailBySlug; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "getProductList", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk6BVTMDR2_cjs.getProductList; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "getProducts", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk6BVTMDR2_cjs.getProducts; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "getWishlist", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk6BVTMDR2_cjs.getWishlist; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk6BVTMDR2_cjs.notifyProductStock; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "removeFromCart", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk6BVTMDR2_cjs.removeFromCart; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk6BVTMDR2_cjs.removeFromWishlist; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "updateCart", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk6BVTMDR2_cjs.updateCart; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk6BVTMDR2_cjs.updateDigitalProductDownloadLinkCount; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "applyCoupon", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkCV6DWPYF_cjs.applyCoupon; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkCV6DWPYF_cjs.checkPhonepePaymentStatus; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "getAppliedCoupon", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkCV6DWPYF_cjs.getAppliedCoupon; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "getCoupons", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkCV6DWPYF_cjs.getCoupons; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkCV6DWPYF_cjs.getOrderDetails; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkCV6DWPYF_cjs.getOrderDetailsByNumber; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "getOrders", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkCV6DWPYF_cjs.getOrders; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkCV6DWPYF_cjs.getPublicOrderDetailsByNumber; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkCV6DWPYF_cjs.getStripePaymentStatus; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkCV6DWPYF_cjs.getStripePaymentStatusPublic; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkCV6DWPYF_cjs.makeCODOrder; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkCV6DWPYF_cjs.phonepeOrderSuccess; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkCV6DWPYF_cjs.phonepePublicOrderSuccess; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "placeOrder", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkCV6DWPYF_cjs.placeOrder; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkCV6DWPYF_cjs.publicMakeCODOrder; }
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
277
277
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkCV6DWPYF_cjs.publicPlaceOrder; }
|
|
279
279
|
});
|
|
280
280
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkCV6DWPYF_cjs.razorpayOrderFail; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkCV6DWPYF_cjs.razorpayOrderSuccess; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkCV6DWPYF_cjs.razorpayPublicOrderSuccess; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "removeCoupon", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkCV6DWPYF_cjs.removeCoupon; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkCV6DWPYF_cjs.stripeOrderFail; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkCV6DWPYF_cjs.stripeOrderSuccess; }
|
|
303
303
|
});
|
|
304
304
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
305
305
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkCV6DWPYF_cjs.stripePublicOrderSuccess; }
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "updateOrder", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkCV6DWPYF_cjs.updateOrder; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkCV6DWPYF_cjs.updateOrderCustomization; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkCV6DWPYF_cjs.uploadCustomizationImage; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkCV6DWPYF_cjs.verifyTabbyPayment; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "addAddress", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunkRDUT4W3B_cjs.addAddress; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "deleteAddress", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunkRDUT4W3B_cjs.deleteAddress; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "getAddresses", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkRDUT4W3B_cjs.getAddresses; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "getCountries", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunkRDUT4W3B_cjs.getCountries; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "getSubdivisions", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunkRDUT4W3B_cjs.getSubdivisions; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "updateAddress", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkRDUT4W3B_cjs.updateAddress; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "getHttpService", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkECHV2JSY_cjs.getHttpService; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "httpService", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkECHV2JSY_cjs.http_service_default; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "resetHttpService", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkECHV2JSY_cjs.resetHttpService; }
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "setSessionExpiredCallback", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () { return chunkECHV2JSY_cjs.setSessionExpiredCallback; }
|
|
359
363
|
});
|
|
360
364
|
exports.addReview = addReview;
|
|
361
365
|
exports.createBooking = createBooking;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -9,6 +9,11 @@ import { C as CollectionResponse } from '../collections-dCr3VEJo.cjs';
|
|
|
9
9
|
import { R as Review, A as Analytics, B as Booking } from '../booking-BGvxHd-t.cjs';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Register a callback fired when the session cannot be recovered
|
|
14
|
+
* (refresh token is invalid/expired). Forge calls this internally.
|
|
15
|
+
*/
|
|
16
|
+
declare function setSessionExpiredCallback(cb: () => void): void;
|
|
12
17
|
declare function getHttpService(): AxiosInstance;
|
|
13
18
|
declare function resetHttpService(): void;
|
|
14
19
|
declare const httpService: AxiosInstance;
|
|
@@ -158,4 +163,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
|
|
|
158
163
|
results: Booking[];
|
|
159
164
|
}>>;
|
|
160
165
|
|
|
161
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, 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, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
166
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, 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 };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ import { C as CollectionResponse } from '../collections-D4tvWcZp.js';
|
|
|
9
9
|
import { R as Review, A as Analytics, B as Booking } from '../booking-BSZ6NP-e.js';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Register a callback fired when the session cannot be recovered
|
|
14
|
+
* (refresh token is invalid/expired). Forge calls this internally.
|
|
15
|
+
*/
|
|
16
|
+
declare function setSessionExpiredCallback(cb: () => void): void;
|
|
12
17
|
declare function getHttpService(): AxiosInstance;
|
|
13
18
|
declare function resetHttpService(): void;
|
|
14
19
|
declare const httpService: AxiosInstance;
|
|
@@ -158,4 +163,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
|
|
|
158
163
|
results: Booking[];
|
|
159
164
|
}>>;
|
|
160
165
|
|
|
161
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, 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, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
166
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, 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 };
|
package/dist/api/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { getUserDetails, updateUserDetails } from '../chunk-
|
|
2
|
-
export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-
|
|
1
|
+
export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
|
|
2
|
+
export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-YEJZYH55.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
|
-
export { applyCoupon, checkPhonepePaymentStatus, getAppliedCoupon, getCoupons, getOrderDetails, getOrderDetailsByNumber, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-
|
|
5
|
-
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-
|
|
6
|
-
import { http_service_default } from '../chunk-
|
|
7
|
-
export { getHttpService, http_service_default as httpService, resetHttpService } from '../chunk-
|
|
4
|
+
export { applyCoupon, checkPhonepePaymentStatus, getAppliedCoupon, getCoupons, getOrderDetails, getOrderDetailsByNumber, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-VWFZZFZL.js';
|
|
5
|
+
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
|
|
6
|
+
import { http_service_default } from '../chunk-3SYYP3XV.js';
|
|
7
|
+
export { getHttpService, http_service_default as httpService, resetHttpService, setSessionExpiredCallback } from '../chunk-3SYYP3XV.js';
|
|
8
8
|
import '../chunk-WEMNXIRS.js';
|
|
9
9
|
import '../chunk-BQ256JKN.js';
|
|
10
10
|
import { getApiEndpoint } from '../chunk-JQMLHRWL.js';
|
package/dist/checkout/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk65Z7I5UP_cjs = require('../chunk-65Z7I5UP.cjs');
|
|
4
|
+
var chunkCV6DWPYF_cjs = require('../chunk-CV6DWPYF.cjs');
|
|
5
5
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
6
6
|
var chunk47XTPPII_cjs = require('../chunk-47XTPPII.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-ECHV2JSY.cjs');
|
|
8
8
|
require('../chunk-BBRXE57K.cjs');
|
|
9
9
|
require('../chunk-NE3ZHELZ.cjs');
|
|
10
10
|
require('../chunk-N3CTXRFT.cjs');
|
|
@@ -48,7 +48,7 @@ function calculateCartTotals(cart) {
|
|
|
48
48
|
// src/checkout/payment-status.ts
|
|
49
49
|
async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
50
50
|
try {
|
|
51
|
-
const response = await
|
|
51
|
+
const response = await chunkCV6DWPYF_cjs.checkPhonepePaymentStatus(transactionId);
|
|
52
52
|
if (response.data.success) {
|
|
53
53
|
callbacks.onSuccess(void 0);
|
|
54
54
|
} else {
|
|
@@ -61,8 +61,8 @@ async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
|
61
61
|
async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, callbacks) {
|
|
62
62
|
try {
|
|
63
63
|
const [paymentResponse, orderResponse] = await Promise.all([
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
chunkCV6DWPYF_cjs.checkPhonepePaymentStatus(transactionId),
|
|
65
|
+
chunkCV6DWPYF_cjs.getOrderDetailsByNumber(orderNumber)
|
|
66
66
|
]);
|
|
67
67
|
const order = orderResponse.data;
|
|
68
68
|
callbacks.onOrderLoaded?.(order);
|
|
@@ -79,12 +79,12 @@ async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, cal
|
|
|
79
79
|
}
|
|
80
80
|
async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, callbacks, options) {
|
|
81
81
|
try {
|
|
82
|
-
const getStatus = options?.isPublic ?
|
|
82
|
+
const getStatus = options?.isPublic ? chunkCV6DWPYF_cjs.getStripePaymentStatusPublic : chunkCV6DWPYF_cjs.getStripePaymentStatus;
|
|
83
83
|
const response = await getStatus(sessionId, orderNumber, paymentLinkUrl);
|
|
84
84
|
const data = response.data;
|
|
85
85
|
if (data.payment_status === "paid" || data.status === "complete") {
|
|
86
86
|
try {
|
|
87
|
-
const orderResponse = await
|
|
87
|
+
const orderResponse = await chunkCV6DWPYF_cjs.getOrderDetailsByNumber(orderNumber);
|
|
88
88
|
const order = orderResponse.data;
|
|
89
89
|
callbacks.onOrderLoaded?.(order);
|
|
90
90
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -102,10 +102,10 @@ async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, c
|
|
|
102
102
|
}
|
|
103
103
|
async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
104
104
|
try {
|
|
105
|
-
const response = await
|
|
105
|
+
const response = await chunkCV6DWPYF_cjs.verifyTabbyPayment(orderNumber);
|
|
106
106
|
if (response.data.order_status === "paid" || response.data.order_status === "confirmed") {
|
|
107
107
|
try {
|
|
108
|
-
const orderResponse = await
|
|
108
|
+
const orderResponse = await chunkCV6DWPYF_cjs.getOrderDetailsByNumber(orderNumber);
|
|
109
109
|
const order = orderResponse.data;
|
|
110
110
|
callbacks.onOrderLoaded?.(order);
|
|
111
111
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -124,55 +124,55 @@ async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
|
124
124
|
|
|
125
125
|
Object.defineProperty(exports, "applyCheckoutCoupon", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk65Z7I5UP_cjs.applyCheckoutCoupon; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "fetchAppliedCoupon", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk65Z7I5UP_cjs.fetchAppliedCoupon; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "fetchAvailableCoupons", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk65Z7I5UP_cjs.fetchAvailableCoupons; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "handleCODPayment", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk65Z7I5UP_cjs.handleCODPayment; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "handlePhonepePayment", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk65Z7I5UP_cjs.handlePhonepePayment; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "handleRazorpayFail", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk65Z7I5UP_cjs.handleRazorpayFail; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "handleRazorpaySuccess", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk65Z7I5UP_cjs.handleRazorpaySuccess; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "handleStripePayment", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk65Z7I5UP_cjs.handleStripePayment; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "handleStripeSuccess", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk65Z7I5UP_cjs.handleStripeSuccess; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "handleTabbyPayment", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk65Z7I5UP_cjs.handleTabbyPayment; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "openRazorpayCheckout", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk65Z7I5UP_cjs.openRazorpayCheckout; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "processPayment", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk65Z7I5UP_cjs.processPayment; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "removeCheckoutCoupon", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk65Z7I5UP_cjs.removeCheckoutCoupon; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "IP_API_CACHE_KEY", {
|
|
178
178
|
enumerable: true,
|
package/dist/checkout/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-
|
|
2
|
-
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-
|
|
1
|
+
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-27MTKBJL.js';
|
|
2
|
+
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-VWFZZFZL.js';
|
|
3
3
|
import { pixelEvents } from '../chunk-WFDKKOO7.js';
|
|
4
4
|
export { IP_API_CACHE_KEY, addressFormInitialValues, addressValidationSchema, buildAddressPayload, buildSubmitPayload, clearAddressFormSession, decodeAddress, encodeAddress, isValidPhoneNumber, loadAddressFormFromSession, parseEditAddress, saveAddressFormToSession } from '../chunk-B7FOXIZN.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-3SYYP3XV.js';
|
|
6
6
|
import '../chunk-WEMNXIRS.js';
|
|
7
7
|
import '../chunk-BQ256JKN.js';
|
|
8
8
|
import '../chunk-JQMLHRWL.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess, getCoupons, getAppliedCoupon, applyCoupon, removeCoupon } from './chunk-
|
|
1
|
+
import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess, getCoupons, getAppliedCoupon, applyCoupon, removeCoupon } from './chunk-VWFZZFZL.js';
|
|
2
2
|
import { pixelEvents } from './chunk-WFDKKOO7.js';
|
|
3
3
|
import { getCloudFront } from './chunk-JQMLHRWL.js';
|
|
4
4
|
import { AxiosError } from 'axios';
|