@storepecker/storefront-core 1.0.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/address-DQEZzyUG.d.cts +19 -0
- package/dist/address-DQEZzyUG.d.ts +19 -0
- package/dist/api/index.cjs +367 -0
- package/dist/api/index.d.cts +127 -0
- package/dist/api/index.d.ts +127 -0
- package/dist/api/index.js +131 -0
- package/dist/booking-ClX-dhX7.d.ts +131 -0
- package/dist/booking-Drl7-IL7.d.cts +131 -0
- package/dist/cart-DVrn8hD0.d.cts +367 -0
- package/dist/cart-DVrn8hD0.d.ts +367 -0
- package/dist/checkout/index.cjs +228 -0
- package/dist/checkout/index.d.cts +251 -0
- package/dist/checkout/index.d.ts +251 -0
- package/dist/checkout/index.js +122 -0
- package/dist/chunk-4CVKE6CC.cjs +312 -0
- package/dist/chunk-4MJMNIAB.js +123 -0
- package/dist/chunk-57ZBPAXU.js +114 -0
- package/dist/chunk-7MQOVWLW.js +40 -0
- package/dist/chunk-7UH6REGV.js +12 -0
- package/dist/chunk-A6IO3HIN.cjs +151 -0
- package/dist/chunk-CFF632IQ.cjs +100 -0
- package/dist/chunk-CSISWBZZ.js +121 -0
- package/dist/chunk-E7WPE3PV.js +98 -0
- package/dist/chunk-FLBJKM6G.js +83 -0
- package/dist/chunk-GB3HW6DM.js +61 -0
- package/dist/chunk-GH75WUO2.cjs +42 -0
- package/dist/chunk-GQTO5ZE2.cjs +96 -0
- package/dist/chunk-JHGXIIBZ.cjs +37 -0
- package/dist/chunk-JQMLHRWL.js +21 -0
- package/dist/chunk-K44JZ5NL.cjs +212 -0
- package/dist/chunk-K5B62JZO.cjs +154 -0
- package/dist/chunk-KWKHHRRJ.cjs +15 -0
- package/dist/chunk-LBGIUNM6.js +30 -0
- package/dist/chunk-LC5ZAUKL.cjs +220 -0
- package/dist/chunk-N3CTXRFT.cjs +30 -0
- package/dist/chunk-QCQCFYYR.js +206 -0
- package/dist/chunk-QM73PI5L.cjs +218 -0
- package/dist/chunk-RCXQJ6XC.cjs +131 -0
- package/dist/chunk-UM24VDYB.js +216 -0
- package/dist/chunk-UXLUE3HW.cjs +69 -0
- package/dist/chunk-WFDKKOO7.js +210 -0
- package/dist/chunk-YUPBTD4M.js +289 -0
- package/dist/components/index.cjs +576 -0
- package/dist/components/index.css +329 -0
- package/dist/components/index.d.cts +58 -0
- package/dist/components/index.d.ts +58 -0
- package/dist/components/index.js +569 -0
- package/dist/coupons-C7iJ-1cy.d.cts +37 -0
- package/dist/coupons-CnfTKL1i.d.ts +37 -0
- package/dist/hooks/index.cjs +381 -0
- package/dist/hooks/index.d.cts +123 -0
- package/dist/hooks/index.d.ts +123 -0
- package/dist/hooks/index.js +364 -0
- package/dist/index-DTyIuLuI.d.cts +18 -0
- package/dist/index-DTyIuLuI.d.ts +18 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/index.cjs +2 -0
- package/dist/models/index.d.cts +53 -0
- package/dist/models/index.d.ts +53 -0
- package/dist/models/index.js +1 -0
- package/dist/orders-CkUzv5Xh.d.ts +159 -0
- package/dist/orders-D0oC9ugD.d.cts +159 -0
- package/dist/phonepe-D7vn-9SR.d.cts +27 -0
- package/dist/phonepe-D7vn-9SR.d.ts +27 -0
- package/dist/store/index.cjs +149 -0
- package/dist/store/index.d.cts +46 -0
- package/dist/store/index.d.ts +46 -0
- package/dist/store/index.js +141 -0
- package/dist/useAddressForm-C-Uzug4d.d.ts +42 -0
- package/dist/useAddressForm-DgkCP1nG.d.cts +42 -0
- package/dist/utils/index.cjs +535 -0
- package/dist/utils/index.d.cts +507 -0
- package/dist/utils/index.d.ts +507 -0
- package/dist/utils/index.js +342 -0
- package/dist/wishlist-BzhnCAQD.d.ts +41 -0
- package/dist/wishlist-CBCZD66Y.d.cts +41 -0
- package/package.json +134 -0
|
@@ -0,0 +1,19 @@
|
|
|
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: any;
|
|
12
|
+
longitude: any;
|
|
13
|
+
is_default: boolean;
|
|
14
|
+
customer_name: string;
|
|
15
|
+
customer_phone: string;
|
|
16
|
+
customer_country_code: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type { Address as A };
|
|
@@ -0,0 +1,19 @@
|
|
|
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: any;
|
|
12
|
+
longitude: any;
|
|
13
|
+
is_default: boolean;
|
|
14
|
+
customer_name: string;
|
|
15
|
+
customer_phone: string;
|
|
16
|
+
customer_country_code: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type { Address as A };
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKWKHHRRJ_cjs = require('../chunk-KWKHHRRJ.cjs');
|
|
4
|
+
var chunkRCXQJ6XC_cjs = require('../chunk-RCXQJ6XC.cjs');
|
|
5
|
+
require('../chunk-CFF632IQ.cjs');
|
|
6
|
+
var chunkA6IO3HIN_cjs = require('../chunk-A6IO3HIN.cjs');
|
|
7
|
+
var chunkJHGXIIBZ_cjs = require('../chunk-JHGXIIBZ.cjs');
|
|
8
|
+
var chunkUXLUE3HW_cjs = require('../chunk-UXLUE3HW.cjs');
|
|
9
|
+
require('../chunk-GQTO5ZE2.cjs');
|
|
10
|
+
var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
|
|
11
|
+
var axios = require('axios');
|
|
12
|
+
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
16
|
+
|
|
17
|
+
var _serverInstance = null;
|
|
18
|
+
function createServerInstance() {
|
|
19
|
+
const baseURL = chunkN3CTXRFT_cjs.getApiEndpoint();
|
|
20
|
+
if (!baseURL) {
|
|
21
|
+
throw new Error("Missing API_ENDPOINT. Call initConfig() with apiEndpoint.");
|
|
22
|
+
}
|
|
23
|
+
axios__default.default.defaults.withCredentials = true;
|
|
24
|
+
const instance = axios__default.default.create({
|
|
25
|
+
baseURL,
|
|
26
|
+
withCredentials: true
|
|
27
|
+
});
|
|
28
|
+
const onRequestSuccess = (config) => {
|
|
29
|
+
return config;
|
|
30
|
+
};
|
|
31
|
+
const onRequestFail = (error) => {
|
|
32
|
+
return Promise.reject(error);
|
|
33
|
+
};
|
|
34
|
+
instance.interceptors.request.use(onRequestSuccess, onRequestFail);
|
|
35
|
+
const onResponseSuccess = (response) => {
|
|
36
|
+
return response;
|
|
37
|
+
};
|
|
38
|
+
const onResponseFail = (error) => {
|
|
39
|
+
if (error && !error.response) ; else {
|
|
40
|
+
const status = error.response?.status;
|
|
41
|
+
if (status === 401) {
|
|
42
|
+
error.response?.data?.detail;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return Promise.reject(error);
|
|
46
|
+
};
|
|
47
|
+
instance.interceptors.response.use(onResponseSuccess, onResponseFail);
|
|
48
|
+
return instance;
|
|
49
|
+
}
|
|
50
|
+
function getServerHttpService() {
|
|
51
|
+
if (!_serverInstance) {
|
|
52
|
+
_serverInstance = createServerInstance();
|
|
53
|
+
}
|
|
54
|
+
return _serverInstance;
|
|
55
|
+
}
|
|
56
|
+
var serverHttpService = new Proxy({}, {
|
|
57
|
+
get(_target, prop) {
|
|
58
|
+
return getServerHttpService()[prop];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var server_http_service_default = serverHttpService;
|
|
62
|
+
|
|
63
|
+
// src/api/auth.ts
|
|
64
|
+
var sendOTP = async (credentials) => {
|
|
65
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/store/login/", {
|
|
66
|
+
...credentials,
|
|
67
|
+
platform: "APP",
|
|
68
|
+
step: "SEND_OTP"
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
var verifyOTP = async (credentials) => {
|
|
72
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/store/login/", {
|
|
73
|
+
...credentials,
|
|
74
|
+
platform: "APP",
|
|
75
|
+
step: "VERIFY_OTP"
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
function getNewToken(refresh) {
|
|
79
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/api/token/refresh/", { refresh });
|
|
80
|
+
}
|
|
81
|
+
function getLoginMethod() {
|
|
82
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/store/login_options/");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// src/api/filter.ts
|
|
86
|
+
async function getFilters() {
|
|
87
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/store/filter/");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// src/api/collection.ts
|
|
91
|
+
async function getCollection(slug) {
|
|
92
|
+
return await chunkUXLUE3HW_cjs.http_service_default.get(`/inventory/public/collections/${slug}/`);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// src/api/review.ts
|
|
96
|
+
async function addReview(content) {
|
|
97
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/reviews/customer/", content);
|
|
98
|
+
}
|
|
99
|
+
async function getReviews(data) {
|
|
100
|
+
const { filters, ...rest } = data;
|
|
101
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/reviews/store/", {
|
|
102
|
+
params: { ...rest, ...filters }
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async function getReviewSummary(review_type, variant_slug) {
|
|
106
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/reviews/summary/", {
|
|
107
|
+
params: { review_type, variant_slug }
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
async function uploadReviewImages(uploadForm) {
|
|
111
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/utils/upload_image", uploadForm);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// src/api/affiliate.ts
|
|
115
|
+
async function getAffiliateRedirect(ref) {
|
|
116
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/marketing/aff-redirect/", {
|
|
117
|
+
params: { ref }
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// src/api/analytics.ts
|
|
122
|
+
async function postAnalytics(data) {
|
|
123
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/spa/cad/", data);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// src/api/booking.ts
|
|
127
|
+
async function createBooking(bookingData) {
|
|
128
|
+
return chunkUXLUE3HW_cjs.http_service_default.post("/customer/service_booking/", bookingData);
|
|
129
|
+
}
|
|
130
|
+
async function getUserBookings(filter) {
|
|
131
|
+
return chunkUXLUE3HW_cjs.http_service_default.get("/customer/service_booking/", {
|
|
132
|
+
params: { ...filter }
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
Object.defineProperty(exports, "getUserDetails", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return chunkKWKHHRRJ_cjs.getUserDetails; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "updateUserDetails", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunkKWKHHRRJ_cjs.updateUserDetails; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "addToCart", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkRCXQJ6XC_cjs.addToCart; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "addWishlist", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkRCXQJ6XC_cjs.addWishlist; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "getCart", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunkRCXQJ6XC_cjs.getCart; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "getCategories", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunkRCXQJ6XC_cjs.getCategories; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunkRCXQJ6XC_cjs.getDigitalProductDownloadLink; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "getProductCategories", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunkRCXQJ6XC_cjs.getProductCategories; }
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "getProductDetail", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () { return chunkRCXQJ6XC_cjs.getProductDetail; }
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () { return chunkRCXQJ6XC_cjs.getProductDetailBySlug; }
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "getProductList", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () { return chunkRCXQJ6XC_cjs.getProductList; }
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "getProducts", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () { return chunkRCXQJ6XC_cjs.getProducts; }
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(exports, "getWishlist", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
get: function () { return chunkRCXQJ6XC_cjs.getWishlist; }
|
|
187
|
+
});
|
|
188
|
+
Object.defineProperty(exports, "notifyProductStock", {
|
|
189
|
+
enumerable: true,
|
|
190
|
+
get: function () { return chunkRCXQJ6XC_cjs.notifyProductStock; }
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "removeFromCart", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () { return chunkRCXQJ6XC_cjs.removeFromCart; }
|
|
195
|
+
});
|
|
196
|
+
Object.defineProperty(exports, "removeFromWishlist", {
|
|
197
|
+
enumerable: true,
|
|
198
|
+
get: function () { return chunkRCXQJ6XC_cjs.removeFromWishlist; }
|
|
199
|
+
});
|
|
200
|
+
Object.defineProperty(exports, "updateCart", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function () { return chunkRCXQJ6XC_cjs.updateCart; }
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () { return chunkRCXQJ6XC_cjs.updateDigitalProductDownloadLinkCount; }
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(exports, "applyCoupon", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function () { return chunkA6IO3HIN_cjs.applyCoupon; }
|
|
211
|
+
});
|
|
212
|
+
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function () { return chunkA6IO3HIN_cjs.checkPhonepePaymentStatus; }
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "getAppliedCoupon", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () { return chunkA6IO3HIN_cjs.getAppliedCoupon; }
|
|
219
|
+
});
|
|
220
|
+
Object.defineProperty(exports, "getCoupons", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function () { return chunkA6IO3HIN_cjs.getCoupons; }
|
|
223
|
+
});
|
|
224
|
+
Object.defineProperty(exports, "getOrderDetails", {
|
|
225
|
+
enumerable: true,
|
|
226
|
+
get: function () { return chunkA6IO3HIN_cjs.getOrderDetails; }
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () { return chunkA6IO3HIN_cjs.getOrderDetailsByNumber; }
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(exports, "getOrders", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function () { return chunkA6IO3HIN_cjs.getOrders; }
|
|
235
|
+
});
|
|
236
|
+
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
237
|
+
enumerable: true,
|
|
238
|
+
get: function () { return chunkA6IO3HIN_cjs.getPublicOrderDetailsByNumber; }
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () { return chunkA6IO3HIN_cjs.getStripePaymentStatus; }
|
|
243
|
+
});
|
|
244
|
+
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () { return chunkA6IO3HIN_cjs.getStripePaymentStatusPublic; }
|
|
247
|
+
});
|
|
248
|
+
Object.defineProperty(exports, "makeCODOrder", {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function () { return chunkA6IO3HIN_cjs.makeCODOrder; }
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () { return chunkA6IO3HIN_cjs.phonepeOrderSuccess; }
|
|
255
|
+
});
|
|
256
|
+
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () { return chunkA6IO3HIN_cjs.phonepePublicOrderSuccess; }
|
|
259
|
+
});
|
|
260
|
+
Object.defineProperty(exports, "placeOrder", {
|
|
261
|
+
enumerable: true,
|
|
262
|
+
get: function () { return chunkA6IO3HIN_cjs.placeOrder; }
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () { return chunkA6IO3HIN_cjs.publicMakeCODOrder; }
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function () { return chunkA6IO3HIN_cjs.publicPlaceOrder; }
|
|
271
|
+
});
|
|
272
|
+
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: function () { return chunkA6IO3HIN_cjs.razorpayOrderFail; }
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () { return chunkA6IO3HIN_cjs.razorpayOrderSuccess; }
|
|
279
|
+
});
|
|
280
|
+
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
281
|
+
enumerable: true,
|
|
282
|
+
get: function () { return chunkA6IO3HIN_cjs.razorpayPublicOrderSuccess; }
|
|
283
|
+
});
|
|
284
|
+
Object.defineProperty(exports, "removeCoupon", {
|
|
285
|
+
enumerable: true,
|
|
286
|
+
get: function () { return chunkA6IO3HIN_cjs.removeCoupon; }
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "stripeOrderFail", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () { return chunkA6IO3HIN_cjs.stripeOrderFail; }
|
|
291
|
+
});
|
|
292
|
+
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
293
|
+
enumerable: true,
|
|
294
|
+
get: function () { return chunkA6IO3HIN_cjs.stripeOrderSuccess; }
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function () { return chunkA6IO3HIN_cjs.stripePublicOrderSuccess; }
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "updateOrder", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () { return chunkA6IO3HIN_cjs.updateOrder; }
|
|
303
|
+
});
|
|
304
|
+
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
305
|
+
enumerable: true,
|
|
306
|
+
get: function () { return chunkA6IO3HIN_cjs.updateOrderCustomization; }
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get: function () { return chunkA6IO3HIN_cjs.uploadCustomizationImage; }
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () { return chunkA6IO3HIN_cjs.verifyTabbyPayment; }
|
|
315
|
+
});
|
|
316
|
+
Object.defineProperty(exports, "addAddress", {
|
|
317
|
+
enumerable: true,
|
|
318
|
+
get: function () { return chunkJHGXIIBZ_cjs.addAddress; }
|
|
319
|
+
});
|
|
320
|
+
Object.defineProperty(exports, "deleteAddress", {
|
|
321
|
+
enumerable: true,
|
|
322
|
+
get: function () { return chunkJHGXIIBZ_cjs.deleteAddress; }
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, "getAddresses", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () { return chunkJHGXIIBZ_cjs.getAddresses; }
|
|
327
|
+
});
|
|
328
|
+
Object.defineProperty(exports, "getCountries", {
|
|
329
|
+
enumerable: true,
|
|
330
|
+
get: function () { return chunkJHGXIIBZ_cjs.getCountries; }
|
|
331
|
+
});
|
|
332
|
+
Object.defineProperty(exports, "getSubdivisions", {
|
|
333
|
+
enumerable: true,
|
|
334
|
+
get: function () { return chunkJHGXIIBZ_cjs.getSubdivisions; }
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "updateAddress", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () { return chunkJHGXIIBZ_cjs.updateAddress; }
|
|
339
|
+
});
|
|
340
|
+
Object.defineProperty(exports, "getHttpService", {
|
|
341
|
+
enumerable: true,
|
|
342
|
+
get: function () { return chunkUXLUE3HW_cjs.getHttpService; }
|
|
343
|
+
});
|
|
344
|
+
Object.defineProperty(exports, "httpService", {
|
|
345
|
+
enumerable: true,
|
|
346
|
+
get: function () { return chunkUXLUE3HW_cjs.http_service_default; }
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "resetHttpService", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () { return chunkUXLUE3HW_cjs.resetHttpService; }
|
|
351
|
+
});
|
|
352
|
+
exports.addReview = addReview;
|
|
353
|
+
exports.createBooking = createBooking;
|
|
354
|
+
exports.getAffiliateRedirect = getAffiliateRedirect;
|
|
355
|
+
exports.getCollection = getCollection;
|
|
356
|
+
exports.getFilters = getFilters;
|
|
357
|
+
exports.getLoginMethod = getLoginMethod;
|
|
358
|
+
exports.getNewToken = getNewToken;
|
|
359
|
+
exports.getReviewSummary = getReviewSummary;
|
|
360
|
+
exports.getReviews = getReviews;
|
|
361
|
+
exports.getServerHttpService = getServerHttpService;
|
|
362
|
+
exports.getUserBookings = getUserBookings;
|
|
363
|
+
exports.postAnalytics = postAnalytics;
|
|
364
|
+
exports.sendOTP = sendOTP;
|
|
365
|
+
exports.serverHttpService = server_http_service_default;
|
|
366
|
+
exports.uploadReviewImages = uploadReviewImages;
|
|
367
|
+
exports.verifyOTP = verifyOTP;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
|
+
import { A as Address } from '../address-DQEZzyUG.cjs';
|
|
4
|
+
import { U as User, W as Wishlist } from '../wishlist-CBCZD66Y.cjs';
|
|
5
|
+
import { C as Cart, d as Product, e as ProductDetail } from '../cart-DVrn8hD0.cjs';
|
|
6
|
+
import { a as CouponResponse, C as Coupon } from '../coupons-C7iJ-1cy.cjs';
|
|
7
|
+
import { O as Order, C as Category } from '../orders-D0oC9ugD.cjs';
|
|
8
|
+
import { C as CollectionResponse, R as Review, A as Analytics, B as Booking } from '../booking-Drl7-IL7.cjs';
|
|
9
|
+
import 'react-toastify';
|
|
10
|
+
|
|
11
|
+
declare function getHttpService(): AxiosInstance;
|
|
12
|
+
declare function resetHttpService(): void;
|
|
13
|
+
declare const httpService: AxiosInstance;
|
|
14
|
+
|
|
15
|
+
declare function getServerHttpService(): axios.AxiosInstance;
|
|
16
|
+
declare const serverHttpService: axios.AxiosInstance;
|
|
17
|
+
|
|
18
|
+
declare function getAddresses(url: string): Promise<Address[]>;
|
|
19
|
+
declare function addAddress(addressDetails: unknown): Promise<AxiosResponse<Address>>;
|
|
20
|
+
declare function updateAddress(addressDetails: unknown): Promise<AxiosResponse<Address>>;
|
|
21
|
+
declare function deleteAddress(address_id: number): Promise<AxiosResponse<Address>>;
|
|
22
|
+
|
|
23
|
+
declare const sendOTP: (credentials: any) => Promise<AxiosResponse<any, any, {}>>;
|
|
24
|
+
declare const verifyOTP: (credentials: any) => Promise<AxiosResponse<User.LoginUserData>>;
|
|
25
|
+
declare function getNewToken(refresh: string): Promise<AxiosResponse<{
|
|
26
|
+
access: string;
|
|
27
|
+
refresh: string;
|
|
28
|
+
}>>;
|
|
29
|
+
declare function getLoginMethod(): Promise<AxiosResponse>;
|
|
30
|
+
|
|
31
|
+
declare function getCart(url: string, addressId?: number): Promise<Cart.Root>;
|
|
32
|
+
declare function addToCart(product: Array<{
|
|
33
|
+
variant_id: number;
|
|
34
|
+
quantity: number;
|
|
35
|
+
}>, customizationInputs?: any): Promise<AxiosResponse<Cart.Root>>;
|
|
36
|
+
declare function removeFromCart(product: Array<{
|
|
37
|
+
variant_id: number;
|
|
38
|
+
quantity: number;
|
|
39
|
+
}>): Promise<AxiosResponse<Product.Root>>;
|
|
40
|
+
declare function updateCart(product: Array<{
|
|
41
|
+
variant_id: number;
|
|
42
|
+
quantity: number;
|
|
43
|
+
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
44
|
+
|
|
45
|
+
declare function getCoupons(): Promise<AxiosResponse<Coupon[]>>;
|
|
46
|
+
declare function applyCoupon(couponCode: string): Promise<AxiosResponse<CouponResponse>>;
|
|
47
|
+
declare function getAppliedCoupon(): Promise<AxiosResponse<Coupon>>;
|
|
48
|
+
declare function removeCoupon(couponCode: string): Promise<AxiosResponse<Coupon>>;
|
|
49
|
+
|
|
50
|
+
declare const getCountries: () => Promise<AxiosResponse<CountryModel.Country[]>>;
|
|
51
|
+
declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<CountryModel.StateResponse1>>;
|
|
52
|
+
|
|
53
|
+
declare function getOrders(url: string): Promise<Order.OrderResponse>;
|
|
54
|
+
declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
|
|
55
|
+
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
56
|
+
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
57
|
+
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
58
|
+
declare function publicPlaceOrder(address: unknown, redirect: string, orderDetails: CustomObject, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
59
|
+
declare function updateOrder(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
60
|
+
declare function razorpayPublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
61
|
+
declare function razorpayOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
62
|
+
declare function razorpayOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
63
|
+
declare function phonepePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
64
|
+
declare function phonepeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
65
|
+
declare function checkPhonepePaymentStatus(transactionId: string): Promise<AxiosResponse<{
|
|
66
|
+
message: string;
|
|
67
|
+
success: boolean;
|
|
68
|
+
}>>;
|
|
69
|
+
declare function getStripePaymentStatus(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
70
|
+
declare function getStripePaymentStatusPublic(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
71
|
+
declare function stripePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
72
|
+
declare function stripeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
73
|
+
declare function stripeOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
74
|
+
declare function makeCODOrder(orderId: number): Promise<AxiosResponse<unknown>>;
|
|
75
|
+
declare function publicMakeCODOrder(orderNumber: number): Promise<AxiosResponse<Cart.Root>>;
|
|
76
|
+
declare function updateOrderCustomization(customizationInput: unknown): Promise<AxiosResponse<undefined>>;
|
|
77
|
+
declare function uploadCustomizationImage(uploadForm: FormData): Promise<AxiosResponse<{
|
|
78
|
+
image_paths: string[];
|
|
79
|
+
}>>;
|
|
80
|
+
declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<{
|
|
81
|
+
order_status: string;
|
|
82
|
+
message: string;
|
|
83
|
+
}>>;
|
|
84
|
+
|
|
85
|
+
declare function getProductList(url: string, filter: unknown): Promise<Product.ProductResponse>;
|
|
86
|
+
declare function getProducts(filter: Product.ProductFilter): Promise<AxiosResponse<Product.ProductResponse>>;
|
|
87
|
+
declare function getProductDetail(url: string, slug: string): Promise<Product.Root | AxiosResponse<Product.Root>>;
|
|
88
|
+
declare function getProductCategories(url: string): Promise<Category.Root[]>;
|
|
89
|
+
declare function getDigitalProductDownloadLink(variantId: number): Promise<AxiosResponse<ProductDetail.DigitalProductVariant[]>>;
|
|
90
|
+
declare function updateDigitalProductDownloadLinkCount(variantId: number, downloadLink: string): Promise<AxiosResponse<any, any, {}>>;
|
|
91
|
+
declare function getCategories(responseType?: "flat" | "nested"): Promise<AxiosResponse<Category.Root[]>>;
|
|
92
|
+
declare function getProductDetailBySlug(url: string, slug: string): Promise<ProductDetail.Root | null>;
|
|
93
|
+
declare function notifyProductStock(userDetails: unknown): Promise<AxiosResponse<any, any, {}>>;
|
|
94
|
+
|
|
95
|
+
declare function getWishlist(url: string): Promise<Wishlist.Root>;
|
|
96
|
+
declare function addWishlist(productDetails: {
|
|
97
|
+
action: "add" | "remove";
|
|
98
|
+
product_variants: number[];
|
|
99
|
+
}): Promise<AxiosResponse<Wishlist.Root>>;
|
|
100
|
+
declare function removeFromWishlist(product_variants: number[]): Promise<AxiosResponse<Wishlist.Root>>;
|
|
101
|
+
|
|
102
|
+
declare function getUserDetails(url: string): Promise<User.Root>;
|
|
103
|
+
declare function updateUserDetails(userDetails: User.UserDetailsPayload): Promise<AxiosResponse<User.Root>>;
|
|
104
|
+
|
|
105
|
+
declare function getFilters(): Promise<AxiosResponse<Product.Filter>>;
|
|
106
|
+
|
|
107
|
+
declare function getCollection(slug: string): Promise<AxiosResponse<CollectionResponse>>;
|
|
108
|
+
|
|
109
|
+
declare function addReview(content: any): Promise<AxiosResponse<Review.ReviewItem>>;
|
|
110
|
+
declare function getReviews(data: any): Promise<AxiosResponse<Review.GetReviewResponse>>;
|
|
111
|
+
declare function getReviewSummary(review_type: Review.ReviewPayload["review_type"], variant_slug: string): Promise<AxiosResponse<Review.ReviewSummary>>;
|
|
112
|
+
declare function uploadReviewImages(uploadForm: FormData): Promise<AxiosResponse<{
|
|
113
|
+
image_paths: string[];
|
|
114
|
+
}>>;
|
|
115
|
+
|
|
116
|
+
declare function getAffiliateRedirect(ref: string): Promise<AxiosResponse<{
|
|
117
|
+
url: string;
|
|
118
|
+
}>>;
|
|
119
|
+
|
|
120
|
+
declare function postAnalytics(data: unknown): Promise<AxiosResponse<Analytics.Root>>;
|
|
121
|
+
|
|
122
|
+
declare function createBooking(bookingData: unknown): Promise<AxiosResponse>;
|
|
123
|
+
declare function getUserBookings(filter: any): Promise<AxiosResponse<{
|
|
124
|
+
results: Booking[];
|
|
125
|
+
}>>;
|
|
126
|
+
|
|
127
|
+
export { addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, 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 };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
|
+
import { A as Address } from '../address-DQEZzyUG.js';
|
|
4
|
+
import { U as User, W as Wishlist } from '../wishlist-BzhnCAQD.js';
|
|
5
|
+
import { C as Cart, d as Product, e as ProductDetail } from '../cart-DVrn8hD0.js';
|
|
6
|
+
import { a as CouponResponse, C as Coupon } from '../coupons-CnfTKL1i.js';
|
|
7
|
+
import { O as Order, C as Category } from '../orders-CkUzv5Xh.js';
|
|
8
|
+
import { C as CollectionResponse, R as Review, A as Analytics, B as Booking } from '../booking-ClX-dhX7.js';
|
|
9
|
+
import 'react-toastify';
|
|
10
|
+
|
|
11
|
+
declare function getHttpService(): AxiosInstance;
|
|
12
|
+
declare function resetHttpService(): void;
|
|
13
|
+
declare const httpService: AxiosInstance;
|
|
14
|
+
|
|
15
|
+
declare function getServerHttpService(): axios.AxiosInstance;
|
|
16
|
+
declare const serverHttpService: axios.AxiosInstance;
|
|
17
|
+
|
|
18
|
+
declare function getAddresses(url: string): Promise<Address[]>;
|
|
19
|
+
declare function addAddress(addressDetails: unknown): Promise<AxiosResponse<Address>>;
|
|
20
|
+
declare function updateAddress(addressDetails: unknown): Promise<AxiosResponse<Address>>;
|
|
21
|
+
declare function deleteAddress(address_id: number): Promise<AxiosResponse<Address>>;
|
|
22
|
+
|
|
23
|
+
declare const sendOTP: (credentials: any) => Promise<AxiosResponse<any, any, {}>>;
|
|
24
|
+
declare const verifyOTP: (credentials: any) => Promise<AxiosResponse<User.LoginUserData>>;
|
|
25
|
+
declare function getNewToken(refresh: string): Promise<AxiosResponse<{
|
|
26
|
+
access: string;
|
|
27
|
+
refresh: string;
|
|
28
|
+
}>>;
|
|
29
|
+
declare function getLoginMethod(): Promise<AxiosResponse>;
|
|
30
|
+
|
|
31
|
+
declare function getCart(url: string, addressId?: number): Promise<Cart.Root>;
|
|
32
|
+
declare function addToCart(product: Array<{
|
|
33
|
+
variant_id: number;
|
|
34
|
+
quantity: number;
|
|
35
|
+
}>, customizationInputs?: any): Promise<AxiosResponse<Cart.Root>>;
|
|
36
|
+
declare function removeFromCart(product: Array<{
|
|
37
|
+
variant_id: number;
|
|
38
|
+
quantity: number;
|
|
39
|
+
}>): Promise<AxiosResponse<Product.Root>>;
|
|
40
|
+
declare function updateCart(product: Array<{
|
|
41
|
+
variant_id: number;
|
|
42
|
+
quantity: number;
|
|
43
|
+
}>): Promise<AxiosResponse<Cart.Root>>;
|
|
44
|
+
|
|
45
|
+
declare function getCoupons(): Promise<AxiosResponse<Coupon[]>>;
|
|
46
|
+
declare function applyCoupon(couponCode: string): Promise<AxiosResponse<CouponResponse>>;
|
|
47
|
+
declare function getAppliedCoupon(): Promise<AxiosResponse<Coupon>>;
|
|
48
|
+
declare function removeCoupon(couponCode: string): Promise<AxiosResponse<Coupon>>;
|
|
49
|
+
|
|
50
|
+
declare const getCountries: () => Promise<AxiosResponse<CountryModel.Country[]>>;
|
|
51
|
+
declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<CountryModel.StateResponse1>>;
|
|
52
|
+
|
|
53
|
+
declare function getOrders(url: string): Promise<Order.OrderResponse>;
|
|
54
|
+
declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
|
|
55
|
+
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
56
|
+
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
57
|
+
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
58
|
+
declare function publicPlaceOrder(address: unknown, redirect: string, orderDetails: CustomObject, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
59
|
+
declare function updateOrder(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
60
|
+
declare function razorpayPublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
61
|
+
declare function razorpayOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
62
|
+
declare function razorpayOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
63
|
+
declare function phonepePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
64
|
+
declare function phonepeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
65
|
+
declare function checkPhonepePaymentStatus(transactionId: string): Promise<AxiosResponse<{
|
|
66
|
+
message: string;
|
|
67
|
+
success: boolean;
|
|
68
|
+
}>>;
|
|
69
|
+
declare function getStripePaymentStatus(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
70
|
+
declare function getStripePaymentStatusPublic(stripeCheckoutSessionId: string, order_number: number, payment_link_id: string): Promise<AxiosResponse<Order.StripePaymentStatus>>;
|
|
71
|
+
declare function stripePublicOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
72
|
+
declare function stripeOrderSuccess(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
73
|
+
declare function stripeOrderFail(orderDetails: unknown): Promise<AxiosResponse<Cart.Root>>;
|
|
74
|
+
declare function makeCODOrder(orderId: number): Promise<AxiosResponse<unknown>>;
|
|
75
|
+
declare function publicMakeCODOrder(orderNumber: number): Promise<AxiosResponse<Cart.Root>>;
|
|
76
|
+
declare function updateOrderCustomization(customizationInput: unknown): Promise<AxiosResponse<undefined>>;
|
|
77
|
+
declare function uploadCustomizationImage(uploadForm: FormData): Promise<AxiosResponse<{
|
|
78
|
+
image_paths: string[];
|
|
79
|
+
}>>;
|
|
80
|
+
declare function verifyTabbyPayment(orderNumber: number): Promise<AxiosResponse<{
|
|
81
|
+
order_status: string;
|
|
82
|
+
message: string;
|
|
83
|
+
}>>;
|
|
84
|
+
|
|
85
|
+
declare function getProductList(url: string, filter: unknown): Promise<Product.ProductResponse>;
|
|
86
|
+
declare function getProducts(filter: Product.ProductFilter): Promise<AxiosResponse<Product.ProductResponse>>;
|
|
87
|
+
declare function getProductDetail(url: string, slug: string): Promise<Product.Root | AxiosResponse<Product.Root>>;
|
|
88
|
+
declare function getProductCategories(url: string): Promise<Category.Root[]>;
|
|
89
|
+
declare function getDigitalProductDownloadLink(variantId: number): Promise<AxiosResponse<ProductDetail.DigitalProductVariant[]>>;
|
|
90
|
+
declare function updateDigitalProductDownloadLinkCount(variantId: number, downloadLink: string): Promise<AxiosResponse<any, any, {}>>;
|
|
91
|
+
declare function getCategories(responseType?: "flat" | "nested"): Promise<AxiosResponse<Category.Root[]>>;
|
|
92
|
+
declare function getProductDetailBySlug(url: string, slug: string): Promise<ProductDetail.Root | null>;
|
|
93
|
+
declare function notifyProductStock(userDetails: unknown): Promise<AxiosResponse<any, any, {}>>;
|
|
94
|
+
|
|
95
|
+
declare function getWishlist(url: string): Promise<Wishlist.Root>;
|
|
96
|
+
declare function addWishlist(productDetails: {
|
|
97
|
+
action: "add" | "remove";
|
|
98
|
+
product_variants: number[];
|
|
99
|
+
}): Promise<AxiosResponse<Wishlist.Root>>;
|
|
100
|
+
declare function removeFromWishlist(product_variants: number[]): Promise<AxiosResponse<Wishlist.Root>>;
|
|
101
|
+
|
|
102
|
+
declare function getUserDetails(url: string): Promise<User.Root>;
|
|
103
|
+
declare function updateUserDetails(userDetails: User.UserDetailsPayload): Promise<AxiosResponse<User.Root>>;
|
|
104
|
+
|
|
105
|
+
declare function getFilters(): Promise<AxiosResponse<Product.Filter>>;
|
|
106
|
+
|
|
107
|
+
declare function getCollection(slug: string): Promise<AxiosResponse<CollectionResponse>>;
|
|
108
|
+
|
|
109
|
+
declare function addReview(content: any): Promise<AxiosResponse<Review.ReviewItem>>;
|
|
110
|
+
declare function getReviews(data: any): Promise<AxiosResponse<Review.GetReviewResponse>>;
|
|
111
|
+
declare function getReviewSummary(review_type: Review.ReviewPayload["review_type"], variant_slug: string): Promise<AxiosResponse<Review.ReviewSummary>>;
|
|
112
|
+
declare function uploadReviewImages(uploadForm: FormData): Promise<AxiosResponse<{
|
|
113
|
+
image_paths: string[];
|
|
114
|
+
}>>;
|
|
115
|
+
|
|
116
|
+
declare function getAffiliateRedirect(ref: string): Promise<AxiosResponse<{
|
|
117
|
+
url: string;
|
|
118
|
+
}>>;
|
|
119
|
+
|
|
120
|
+
declare function postAnalytics(data: unknown): Promise<AxiosResponse<Analytics.Root>>;
|
|
121
|
+
|
|
122
|
+
declare function createBooking(bookingData: unknown): Promise<AxiosResponse>;
|
|
123
|
+
declare function getUserBookings(filter: any): Promise<AxiosResponse<{
|
|
124
|
+
results: Booking[];
|
|
125
|
+
}>>;
|
|
126
|
+
|
|
127
|
+
export { addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, 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 };
|