@storepecker/storefront-core 1.2.0 → 2.1.0
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 +76 -75
- package/dist/api/index.d.cts +5 -3
- package/dist/api/index.d.ts +5 -3
- package/dist/api/index.js +9 -8
- package/dist/{booking-CegE1cje.d.ts → booking-BgZoXUBv.d.cts} +2 -41
- package/dist/{booking-B21s0inO.d.cts → booking-CZ59BXk3.d.ts} +2 -41
- package/dist/cart-BY8D8w-s.d.cts +90 -0
- package/dist/cart-GuhgeBBt.d.ts +90 -0
- package/dist/checkout/index.cjs +38 -37
- package/dist/checkout/index.d.cts +2 -1
- package/dist/checkout/index.d.ts +2 -1
- package/dist/checkout/index.js +6 -5
- package/dist/{chunk-34KV265H.cjs → chunk-26A3EBZI.cjs} +20 -20
- package/dist/chunk-2AHH3XBW.cjs +47 -0
- package/dist/{chunk-K5B62JZO.cjs → chunk-47XTPPII.cjs} +4 -4
- package/dist/chunk-4C4NTH6O.js +41 -0
- package/dist/{chunk-UM24VDYB.js → chunk-7R2V4C7Q.js} +2 -2
- package/dist/{chunk-CSISWBZZ.js → chunk-B7FOXIZN.js} +1 -1
- package/dist/chunk-BBRB475I.cjs +43 -0
- package/dist/chunk-BBRXE57K.cjs +50 -0
- package/dist/{chunk-QCQCFYYR.js → chunk-BHOXJGIE.js} +1 -1
- package/dist/chunk-BQ256JKN.js +39 -0
- package/dist/{chunk-7UH6REGV.js → chunk-C7ZJZEEN.js} +1 -1
- package/dist/{chunk-A6IO3HIN.cjs → chunk-FMHR5ABF.cjs} +28 -28
- package/dist/{chunk-JHGXIIBZ.cjs → chunk-G3R7ZVAG.cjs} +7 -7
- package/dist/{chunk-4MJMNIAB.js → chunk-GHABOHLA.js} +1 -1
- package/dist/chunk-GTV42PDK.cjs +46 -0
- package/dist/chunk-HEFA67WK.js +42 -0
- package/dist/chunk-HSF2D56O.js +40 -0
- package/dist/{chunk-GB3HW6DM.js → chunk-JWKDXFS4.js} +1 -1
- package/dist/{chunk-KWKHHRRJ.cjs → chunk-KKQKHG26.cjs} +3 -3
- package/dist/{chunk-QM73PI5L.cjs → chunk-N3ZCCKXV.cjs} +10 -10
- package/dist/{chunk-GQTO5ZE2.cjs → chunk-NE3ZHELZ.cjs} +0 -46
- package/dist/chunk-PWYWNRVO.cjs +150 -0
- package/dist/{chunk-E7WPE3PV.js → chunk-QAC72HKO.js} +1 -1
- package/dist/{chunk-CFF632IQ.cjs → chunk-SMHJRNCR.cjs} +4 -4
- package/dist/chunk-UOFTDL4D.js +146 -0
- package/dist/chunk-WEMNXIRS.js +47 -0
- package/dist/{chunk-LC5ZAUKL.cjs → chunk-XLQAALMU.cjs} +10 -10
- package/dist/{chunk-Z7LHRD3V.js → chunk-Y6NFUWTH.js} +3 -3
- package/dist/{chunk-LBGIUNM6.js → chunk-YY77CUWX.js} +1 -1
- package/dist/{chunk-UXLUE3HW.cjs → chunk-ZO2HREQL.cjs} +2 -2
- package/dist/collections-CenI9AlQ.d.cts +40 -0
- package/dist/collections-CenI9AlQ.d.ts +40 -0
- package/dist/components/index.cjs +126 -7
- package/dist/components/index.d.cts +35 -8
- package/dist/components/index.d.ts +35 -8
- package/dist/components/index.js +122 -7
- package/dist/hooks/index.cjs +368 -27
- package/dist/hooks/index.d.cts +83 -3
- package/dist/hooks/index.d.ts +83 -3
- package/dist/hooks/index.js +352 -14
- package/dist/middleware/index.cjs +47 -0
- package/dist/middleware/index.d.cts +8 -0
- package/dist/middleware/index.d.ts +8 -0
- package/dist/middleware/index.js +44 -0
- package/dist/models/index.d.cts +5 -3
- package/dist/models/index.d.ts +5 -3
- package/dist/{cart-VaCKkJ1C.d.cts → product-Dfi0ke-4.d.cts} +1 -88
- package/dist/{cart-VaCKkJ1C.d.ts → product-Dfi0ke-4.d.ts} +1 -88
- package/dist/store/index.cjs +17 -85
- package/dist/store/index.d.cts +22 -2
- package/dist/store/index.d.ts +22 -2
- package/dist/store/index.js +7 -82
- package/dist/utils/index.cjs +80 -65
- package/dist/utils/index.d.cts +72 -7
- package/dist/utils/index.d.ts +72 -7
- package/dist/utils/index.js +20 -43
- package/dist/{wishlist-FG8tgn76.d.ts → wishlist-DHOvXmJj.d.cts} +1 -1
- package/dist/{wishlist-CkAhLpbI.d.cts → wishlist-LfdFxddw.d.ts} +1 -1
- package/package.json +24 -5
- package/dist/chunk-7DQIKSGY.js +0 -40
- package/dist/chunk-FLBJKM6G.js +0 -83
- package/dist/chunk-S3WIGYDS.cjs +0 -42
package/dist/api/index.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
3
|
+
var chunkKKQKHG26_cjs = require('../chunk-KKQKHG26.cjs');
|
|
4
|
+
var chunk26A3EBZI_cjs = require('../chunk-26A3EBZI.cjs');
|
|
5
|
+
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
+
var chunkFMHR5ABF_cjs = require('../chunk-FMHR5ABF.cjs');
|
|
7
|
+
var chunkG3R7ZVAG_cjs = require('../chunk-G3R7ZVAG.cjs');
|
|
8
|
+
var chunkZO2HREQL_cjs = require('../chunk-ZO2HREQL.cjs');
|
|
9
|
+
require('../chunk-BBRXE57K.cjs');
|
|
10
|
+
require('../chunk-NE3ZHELZ.cjs');
|
|
10
11
|
var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
|
|
11
12
|
var axios = require('axios');
|
|
12
13
|
|
|
@@ -62,292 +63,292 @@ var server_http_service_default = serverHttpService;
|
|
|
62
63
|
|
|
63
64
|
// src/api/auth.ts
|
|
64
65
|
var sendOTP = async (credentials) => {
|
|
65
|
-
return
|
|
66
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/store/login/", {
|
|
66
67
|
...credentials,
|
|
67
68
|
platform: "APP",
|
|
68
69
|
step: "SEND_OTP"
|
|
69
70
|
});
|
|
70
71
|
};
|
|
71
72
|
var verifyOTP = async (credentials) => {
|
|
72
|
-
return
|
|
73
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/store/login/", {
|
|
73
74
|
...credentials,
|
|
74
75
|
platform: "APP",
|
|
75
76
|
step: "VERIFY_OTP"
|
|
76
77
|
});
|
|
77
78
|
};
|
|
78
79
|
function getNewToken(refresh) {
|
|
79
|
-
return
|
|
80
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/api/token/refresh/", { refresh });
|
|
80
81
|
}
|
|
81
82
|
function getLoginMethod() {
|
|
82
|
-
return
|
|
83
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/store/login_options/");
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
// src/api/filter.ts
|
|
86
87
|
async function getFilters() {
|
|
87
|
-
return
|
|
88
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/store/filter/");
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
// src/api/collection.ts
|
|
91
92
|
async function getCollection(slug) {
|
|
92
|
-
return await
|
|
93
|
+
return await chunkZO2HREQL_cjs.http_service_default.get(`/inventory/public/collections/${slug}/`);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
// src/api/review.ts
|
|
96
97
|
async function addReview(content) {
|
|
97
|
-
return
|
|
98
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/reviews/customer/", content);
|
|
98
99
|
}
|
|
99
100
|
async function getReviews(data) {
|
|
100
101
|
const { filters, ...rest } = data;
|
|
101
|
-
return
|
|
102
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/reviews/store/", {
|
|
102
103
|
params: { ...rest, ...filters }
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
106
|
async function getReviewSummary(review_type, variant_slug) {
|
|
106
|
-
return
|
|
107
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/reviews/summary/", {
|
|
107
108
|
params: { review_type, variant_slug }
|
|
108
109
|
});
|
|
109
110
|
}
|
|
110
111
|
async function uploadReviewImages(uploadForm) {
|
|
111
|
-
return
|
|
112
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/utils/upload_image", uploadForm);
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
// src/api/affiliate.ts
|
|
115
116
|
async function getAffiliateRedirect(ref) {
|
|
116
|
-
return
|
|
117
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/marketing/aff-redirect/", {
|
|
117
118
|
params: { ref }
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
// src/api/analytics.ts
|
|
122
123
|
async function postAnalytics(data) {
|
|
123
|
-
return
|
|
124
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/spa/cad/", data);
|
|
124
125
|
}
|
|
125
126
|
|
|
126
127
|
// src/api/booking.ts
|
|
127
128
|
async function createBooking(bookingData) {
|
|
128
|
-
return
|
|
129
|
+
return chunkZO2HREQL_cjs.http_service_default.post("/customer/service_booking/", bookingData);
|
|
129
130
|
}
|
|
130
131
|
async function getUserBookings(filter) {
|
|
131
|
-
return
|
|
132
|
+
return chunkZO2HREQL_cjs.http_service_default.get("/customer/service_booking/", {
|
|
132
133
|
params: { ...filter }
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
Object.defineProperty(exports, "getUserDetails", {
|
|
137
138
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkKKQKHG26_cjs.getUserDetails; }
|
|
139
140
|
});
|
|
140
141
|
Object.defineProperty(exports, "updateUserDetails", {
|
|
141
142
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkKKQKHG26_cjs.updateUserDetails; }
|
|
143
144
|
});
|
|
144
145
|
Object.defineProperty(exports, "addToCart", {
|
|
145
146
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk26A3EBZI_cjs.addToCart; }
|
|
147
148
|
});
|
|
148
149
|
Object.defineProperty(exports, "addWishlist", {
|
|
149
150
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk26A3EBZI_cjs.addWishlist; }
|
|
151
152
|
});
|
|
152
153
|
Object.defineProperty(exports, "getCart", {
|
|
153
154
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk26A3EBZI_cjs.getCart; }
|
|
155
156
|
});
|
|
156
157
|
Object.defineProperty(exports, "getCategories", {
|
|
157
158
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk26A3EBZI_cjs.getCategories; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk26A3EBZI_cjs.getDigitalProductDownloadLink; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "getProductCategories", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk26A3EBZI_cjs.getProductCategories; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "getProductDetail", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk26A3EBZI_cjs.getProductDetail; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk26A3EBZI_cjs.getProductDetailBySlug; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "getProductList", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk26A3EBZI_cjs.getProductList; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "getProducts", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk26A3EBZI_cjs.getProducts; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "getWishlist", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk26A3EBZI_cjs.getWishlist; }
|
|
187
188
|
});
|
|
188
189
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
189
190
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk26A3EBZI_cjs.notifyProductStock; }
|
|
191
192
|
});
|
|
192
193
|
Object.defineProperty(exports, "removeFromCart", {
|
|
193
194
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk26A3EBZI_cjs.removeFromCart; }
|
|
195
196
|
});
|
|
196
197
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
197
198
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk26A3EBZI_cjs.removeFromWishlist; }
|
|
199
200
|
});
|
|
200
201
|
Object.defineProperty(exports, "updateCart", {
|
|
201
202
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunk26A3EBZI_cjs.updateCart; }
|
|
203
204
|
});
|
|
204
205
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
205
206
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunk26A3EBZI_cjs.updateDigitalProductDownloadLinkCount; }
|
|
207
208
|
});
|
|
208
209
|
Object.defineProperty(exports, "applyCoupon", {
|
|
209
210
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkFMHR5ABF_cjs.applyCoupon; }
|
|
211
212
|
});
|
|
212
213
|
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
213
214
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkFMHR5ABF_cjs.checkPhonepePaymentStatus; }
|
|
215
216
|
});
|
|
216
217
|
Object.defineProperty(exports, "getAppliedCoupon", {
|
|
217
218
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkFMHR5ABF_cjs.getAppliedCoupon; }
|
|
219
220
|
});
|
|
220
221
|
Object.defineProperty(exports, "getCoupons", {
|
|
221
222
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkFMHR5ABF_cjs.getCoupons; }
|
|
223
224
|
});
|
|
224
225
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
225
226
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkFMHR5ABF_cjs.getOrderDetails; }
|
|
227
228
|
});
|
|
228
229
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
229
230
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkFMHR5ABF_cjs.getOrderDetailsByNumber; }
|
|
231
232
|
});
|
|
232
233
|
Object.defineProperty(exports, "getOrders", {
|
|
233
234
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkFMHR5ABF_cjs.getOrders; }
|
|
235
236
|
});
|
|
236
237
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
237
238
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkFMHR5ABF_cjs.getPublicOrderDetailsByNumber; }
|
|
239
240
|
});
|
|
240
241
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
241
242
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkFMHR5ABF_cjs.getStripePaymentStatus; }
|
|
243
244
|
});
|
|
244
245
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
245
246
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkFMHR5ABF_cjs.getStripePaymentStatusPublic; }
|
|
247
248
|
});
|
|
248
249
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
249
250
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkFMHR5ABF_cjs.makeCODOrder; }
|
|
251
252
|
});
|
|
252
253
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
253
254
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkFMHR5ABF_cjs.phonepeOrderSuccess; }
|
|
255
256
|
});
|
|
256
257
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
257
258
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkFMHR5ABF_cjs.phonepePublicOrderSuccess; }
|
|
259
260
|
});
|
|
260
261
|
Object.defineProperty(exports, "placeOrder", {
|
|
261
262
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkFMHR5ABF_cjs.placeOrder; }
|
|
263
264
|
});
|
|
264
265
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
265
266
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkFMHR5ABF_cjs.publicMakeCODOrder; }
|
|
267
268
|
});
|
|
268
269
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
269
270
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkFMHR5ABF_cjs.publicPlaceOrder; }
|
|
271
272
|
});
|
|
272
273
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
273
274
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkFMHR5ABF_cjs.razorpayOrderFail; }
|
|
275
276
|
});
|
|
276
277
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
277
278
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkFMHR5ABF_cjs.razorpayOrderSuccess; }
|
|
279
280
|
});
|
|
280
281
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
281
282
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkFMHR5ABF_cjs.razorpayPublicOrderSuccess; }
|
|
283
284
|
});
|
|
284
285
|
Object.defineProperty(exports, "removeCoupon", {
|
|
285
286
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkFMHR5ABF_cjs.removeCoupon; }
|
|
287
288
|
});
|
|
288
289
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
289
290
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkFMHR5ABF_cjs.stripeOrderFail; }
|
|
291
292
|
});
|
|
292
293
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
293
294
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkFMHR5ABF_cjs.stripeOrderSuccess; }
|
|
295
296
|
});
|
|
296
297
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
297
298
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkFMHR5ABF_cjs.stripePublicOrderSuccess; }
|
|
299
300
|
});
|
|
300
301
|
Object.defineProperty(exports, "updateOrder", {
|
|
301
302
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkFMHR5ABF_cjs.updateOrder; }
|
|
303
304
|
});
|
|
304
305
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
305
306
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkFMHR5ABF_cjs.updateOrderCustomization; }
|
|
307
308
|
});
|
|
308
309
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
309
310
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkFMHR5ABF_cjs.uploadCustomizationImage; }
|
|
311
312
|
});
|
|
312
313
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
313
314
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkFMHR5ABF_cjs.verifyTabbyPayment; }
|
|
315
316
|
});
|
|
316
317
|
Object.defineProperty(exports, "addAddress", {
|
|
317
318
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkG3R7ZVAG_cjs.addAddress; }
|
|
319
320
|
});
|
|
320
321
|
Object.defineProperty(exports, "deleteAddress", {
|
|
321
322
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkG3R7ZVAG_cjs.deleteAddress; }
|
|
323
324
|
});
|
|
324
325
|
Object.defineProperty(exports, "getAddresses", {
|
|
325
326
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkG3R7ZVAG_cjs.getAddresses; }
|
|
327
328
|
});
|
|
328
329
|
Object.defineProperty(exports, "getCountries", {
|
|
329
330
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkG3R7ZVAG_cjs.getCountries; }
|
|
331
332
|
});
|
|
332
333
|
Object.defineProperty(exports, "getSubdivisions", {
|
|
333
334
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkG3R7ZVAG_cjs.getSubdivisions; }
|
|
335
336
|
});
|
|
336
337
|
Object.defineProperty(exports, "updateAddress", {
|
|
337
338
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkG3R7ZVAG_cjs.updateAddress; }
|
|
339
340
|
});
|
|
340
341
|
Object.defineProperty(exports, "getHttpService", {
|
|
341
342
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkZO2HREQL_cjs.getHttpService; }
|
|
343
344
|
});
|
|
344
345
|
Object.defineProperty(exports, "httpService", {
|
|
345
346
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkZO2HREQL_cjs.http_service_default; }
|
|
347
348
|
});
|
|
348
349
|
Object.defineProperty(exports, "resetHttpService", {
|
|
349
350
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkZO2HREQL_cjs.resetHttpService; }
|
|
351
352
|
});
|
|
352
353
|
exports.addReview = addReview;
|
|
353
354
|
exports.createBooking = createBooking;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
3
|
import { A as Address } from '../address-DQEZzyUG.cjs';
|
|
4
|
-
import { U as User, W as Wishlist } from '../wishlist-
|
|
5
|
-
import {
|
|
4
|
+
import { U as User, W as Wishlist } from '../wishlist-DHOvXmJj.cjs';
|
|
5
|
+
import { b as Product, c as ProductDetail } from '../product-Dfi0ke-4.cjs';
|
|
6
|
+
import { C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-BY8D8w-s.cjs';
|
|
6
7
|
import { O as Order } from '../orders-DHJhJ3xz.cjs';
|
|
7
|
-
import { C as CollectionResponse
|
|
8
|
+
import { C as CollectionResponse } from '../collections-CenI9AlQ.cjs';
|
|
9
|
+
import { R as Review, A as Analytics, B as Booking } from '../booking-BgZoXUBv.cjs';
|
|
8
10
|
import 'react-toastify';
|
|
9
11
|
|
|
10
12
|
declare function getHttpService(): AxiosInstance;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
3
|
import { A as Address } from '../address-DQEZzyUG.js';
|
|
4
|
-
import { U as User, W as Wishlist } from '../wishlist-
|
|
5
|
-
import {
|
|
4
|
+
import { U as User, W as Wishlist } from '../wishlist-LfdFxddw.js';
|
|
5
|
+
import { b as Product, c as ProductDetail } from '../product-Dfi0ke-4.js';
|
|
6
|
+
import { C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-GuhgeBBt.js';
|
|
6
7
|
import { O as Order } from '../orders-DHJhJ3xz.js';
|
|
7
|
-
import { C as CollectionResponse
|
|
8
|
+
import { C as CollectionResponse } from '../collections-CenI9AlQ.js';
|
|
9
|
+
import { R as Review, A as Analytics, B as Booking } from '../booking-CZ59BXk3.js';
|
|
8
10
|
import 'react-toastify';
|
|
9
11
|
|
|
10
12
|
declare function getHttpService(): AxiosInstance;
|
package/dist/api/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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-
|
|
3
|
-
import '../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-
|
|
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-
|
|
8
|
-
import '../chunk-
|
|
1
|
+
export { getUserDetails, updateUserDetails } from '../chunk-C7ZJZEEN.js';
|
|
2
|
+
export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-Y6NFUWTH.js';
|
|
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-GHABOHLA.js';
|
|
5
|
+
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-YY77CUWX.js';
|
|
6
|
+
import { http_service_default } from '../chunk-JWKDXFS4.js';
|
|
7
|
+
export { getHttpService, http_service_default as httpService, resetHttpService } from '../chunk-JWKDXFS4.js';
|
|
8
|
+
import '../chunk-WEMNXIRS.js';
|
|
9
|
+
import '../chunk-BQ256JKN.js';
|
|
9
10
|
import { getApiEndpoint } from '../chunk-JQMLHRWL.js';
|
|
10
11
|
import axios from 'axios';
|
|
11
12
|
|
|
@@ -1,43 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface CollectionResponse {
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
is_published: boolean;
|
|
9
|
-
image: string | null;
|
|
10
|
-
published_at: string | null;
|
|
11
|
-
variants?: any[];
|
|
12
|
-
}
|
|
13
|
-
interface singleCollection {
|
|
14
|
-
slug: string;
|
|
15
|
-
}
|
|
16
|
-
interface Attributes {
|
|
17
|
-
[key: string]: {
|
|
18
|
-
name: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
interface CollectionVariant {
|
|
23
|
-
id: number;
|
|
24
|
-
name: string;
|
|
25
|
-
sku: string;
|
|
26
|
-
actual_price: string;
|
|
27
|
-
selling_price: string;
|
|
28
|
-
stock_quantity: number;
|
|
29
|
-
product: number;
|
|
30
|
-
is_active: boolean;
|
|
31
|
-
is_featured: boolean;
|
|
32
|
-
product_measurements: string;
|
|
33
|
-
attributes: Attributes;
|
|
34
|
-
back_order: boolean;
|
|
35
|
-
back_order_limit: number;
|
|
36
|
-
user_purchase_limit: number;
|
|
37
|
-
status: string;
|
|
38
|
-
product_photos: any[];
|
|
39
|
-
media: string;
|
|
40
|
-
}
|
|
1
|
+
import { c as ProductDetail } from './product-Dfi0ke-4.cjs';
|
|
41
2
|
|
|
42
3
|
declare namespace Review {
|
|
43
4
|
interface ReviewPayload {
|
|
@@ -128,4 +89,4 @@ interface Booking {
|
|
|
128
89
|
service_details: ProductDetail.Root;
|
|
129
90
|
}
|
|
130
91
|
|
|
131
|
-
export { Analytics as A, type Booking as B,
|
|
92
|
+
export { Analytics as A, type Booking as B, Review as R, type BookingDetails as a };
|
|
@@ -1,43 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface CollectionResponse {
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
is_published: boolean;
|
|
9
|
-
image: string | null;
|
|
10
|
-
published_at: string | null;
|
|
11
|
-
variants?: any[];
|
|
12
|
-
}
|
|
13
|
-
interface singleCollection {
|
|
14
|
-
slug: string;
|
|
15
|
-
}
|
|
16
|
-
interface Attributes {
|
|
17
|
-
[key: string]: {
|
|
18
|
-
name: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
interface CollectionVariant {
|
|
23
|
-
id: number;
|
|
24
|
-
name: string;
|
|
25
|
-
sku: string;
|
|
26
|
-
actual_price: string;
|
|
27
|
-
selling_price: string;
|
|
28
|
-
stock_quantity: number;
|
|
29
|
-
product: number;
|
|
30
|
-
is_active: boolean;
|
|
31
|
-
is_featured: boolean;
|
|
32
|
-
product_measurements: string;
|
|
33
|
-
attributes: Attributes;
|
|
34
|
-
back_order: boolean;
|
|
35
|
-
back_order_limit: number;
|
|
36
|
-
user_purchase_limit: number;
|
|
37
|
-
status: string;
|
|
38
|
-
product_photos: any[];
|
|
39
|
-
media: string;
|
|
40
|
-
}
|
|
1
|
+
import { c as ProductDetail } from './product-Dfi0ke-4.js';
|
|
41
2
|
|
|
42
3
|
declare namespace Review {
|
|
43
4
|
interface ReviewPayload {
|
|
@@ -128,4 +89,4 @@ interface Booking {
|
|
|
128
89
|
service_details: ProductDetail.Root;
|
|
129
90
|
}
|
|
130
91
|
|
|
131
|
-
export { Analytics as A, type Booking as B,
|
|
92
|
+
export { Analytics as A, type Booking as B, Review as R, type BookingDetails as a };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { d as SLICE_STATUS, c as ProductDetail } from './product-Dfi0ke-4.cjs';
|
|
2
|
+
|
|
3
|
+
declare namespace Category {
|
|
4
|
+
interface Root {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
photo: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
description: string;
|
|
10
|
+
children?: Root[];
|
|
11
|
+
}
|
|
12
|
+
interface CategoriesState {
|
|
13
|
+
data: Root[];
|
|
14
|
+
status: SLICE_STATUS;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type DiscountType = "discount";
|
|
19
|
+
type ValueType = "percentage" | "fixed";
|
|
20
|
+
type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
|
|
21
|
+
type CouponStatus = "active" | "inactive" | "expired";
|
|
22
|
+
interface Coupon {
|
|
23
|
+
id: number;
|
|
24
|
+
coupon_code: string;
|
|
25
|
+
discount_type: DiscountType;
|
|
26
|
+
value: string;
|
|
27
|
+
value_type: ValueType;
|
|
28
|
+
min_order_amount: string;
|
|
29
|
+
max_discount_amount: string;
|
|
30
|
+
start_date: string;
|
|
31
|
+
end_date: string;
|
|
32
|
+
status: CouponStatus;
|
|
33
|
+
is_deleted: boolean;
|
|
34
|
+
usage_limit: number;
|
|
35
|
+
usage_count: number;
|
|
36
|
+
applicable_target: ApplicableTarget;
|
|
37
|
+
applicable_product_variants: any[];
|
|
38
|
+
applicable_product_bundles: any[];
|
|
39
|
+
applicable_product_categories: Category.Root[];
|
|
40
|
+
applicable_customers: any[];
|
|
41
|
+
auto_apply: boolean;
|
|
42
|
+
created_at: string;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
is_cart_applicable: boolean;
|
|
45
|
+
coupon_message: string;
|
|
46
|
+
}
|
|
47
|
+
type Coupons = Coupon[];
|
|
48
|
+
interface CouponResponse {
|
|
49
|
+
coupon: Coupon;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface CartState {
|
|
53
|
+
cart: Cart.Root | null;
|
|
54
|
+
status: SLICE_STATUS;
|
|
55
|
+
}
|
|
56
|
+
declare namespace Cart {
|
|
57
|
+
interface Root {
|
|
58
|
+
product_variants: ProductDetail.Root[];
|
|
59
|
+
total_amount: number;
|
|
60
|
+
total_quantity: number;
|
|
61
|
+
products_quantity: ProductsQuantity;
|
|
62
|
+
cart_count: number;
|
|
63
|
+
missing_items: Array<any>;
|
|
64
|
+
customization_inputs: Array<CustomizationInput>;
|
|
65
|
+
total_coupon_discount: number;
|
|
66
|
+
variant_discounts: {
|
|
67
|
+
[key: number]: number;
|
|
68
|
+
};
|
|
69
|
+
total_shipping: number;
|
|
70
|
+
total_tax_amount: number;
|
|
71
|
+
applied_coupon: Coupon | {};
|
|
72
|
+
}
|
|
73
|
+
interface CustomizationInput {
|
|
74
|
+
id: number;
|
|
75
|
+
product_variant: number;
|
|
76
|
+
customization_option: number;
|
|
77
|
+
customer_wishlist: null;
|
|
78
|
+
customer_order: null;
|
|
79
|
+
customer_cart: number;
|
|
80
|
+
customer_input: string;
|
|
81
|
+
customization_option_name: string;
|
|
82
|
+
customization_option_type: string;
|
|
83
|
+
is_mandatory: boolean;
|
|
84
|
+
}
|
|
85
|
+
interface ProductsQuantity {
|
|
86
|
+
[key: number]: number;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { type ApplicableTarget as A, Cart as C, type DiscountType as D, type ValueType as V, type CartState as a, Category as b, type Coupon as c, type CouponResponse as d, type CouponStatus as e, type Coupons as f };
|