@uappi/public-sdk 1.2.5 → 1.2.7
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.
|
@@ -42,6 +42,7 @@ import type {
|
|
|
42
42
|
AddProductToWishlistRequest,
|
|
43
43
|
RequestSendMFA
|
|
44
44
|
} from '../types';
|
|
45
|
+
import { SalesChannelByEmailResponse } from '../types/endpoints/customer/customer.interfaces';
|
|
45
46
|
|
|
46
47
|
export function detail(
|
|
47
48
|
options?: Pick<
|
|
@@ -316,3 +317,11 @@ export function removeProductToWishlist(wishlistId: number, productId: number) {
|
|
|
316
317
|
});
|
|
317
318
|
}
|
|
318
319
|
|
|
320
|
+
export function listSalesChannelByEmail(payload: { identification: string; }) {
|
|
321
|
+
return usePublicApi<Array<SalesChannelByEmailResponse>>({
|
|
322
|
+
method: 'POST',
|
|
323
|
+
endpoint: '/customer/login/check-sales-channel',
|
|
324
|
+
payload,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
package/modules/Api/index.ts
CHANGED
|
@@ -47,7 +47,8 @@ import {
|
|
|
47
47
|
listWishlist,
|
|
48
48
|
detailWishlist,
|
|
49
49
|
addProductToWishlist,
|
|
50
|
-
removeProductToWishlist
|
|
50
|
+
removeProductToWishlist,
|
|
51
|
+
listSalesChannelByEmail
|
|
51
52
|
} from './endpoints/CustomerComposable';
|
|
52
53
|
import { createInterest } from './endpoints/InterestComposable';
|
|
53
54
|
import { loggout } from './endpoints/LoggoutComposable';
|
|
@@ -70,6 +71,7 @@ import {
|
|
|
70
71
|
import { getSearch } from './endpoints/SearchComposable';
|
|
71
72
|
import { listShowcase } from './endpoints/ShowcaseComposable';
|
|
72
73
|
import { getUrl } from './endpoints/UrlComposable';
|
|
74
|
+
import { getVerify } from './endpoints/VerifyComposable';
|
|
73
75
|
import { listVariation } from './endpoints/VariationComposable';
|
|
74
76
|
import {
|
|
75
77
|
listWalletTransaction,
|
|
@@ -136,7 +138,9 @@ const customer = {
|
|
|
136
138
|
confirmMfa,
|
|
137
139
|
loginMfa,
|
|
138
140
|
deleteMFA,
|
|
139
|
-
mfaSetup
|
|
141
|
+
mfaSetup,
|
|
142
|
+
|
|
143
|
+
listSalesChannelByEmail
|
|
140
144
|
};
|
|
141
145
|
|
|
142
146
|
const cart = {
|
|
@@ -158,6 +162,7 @@ const product = {
|
|
|
158
162
|
listBrands,
|
|
159
163
|
listVariation,
|
|
160
164
|
getUrl,
|
|
165
|
+
getVerify,
|
|
161
166
|
getSearch,
|
|
162
167
|
listShipmentQuoteProduct,
|
|
163
168
|
deleteProductComment,
|