@uappi/public-sdk 1.14.0 → 1.15.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.
|
@@ -10,6 +10,7 @@ import type {
|
|
|
10
10
|
ReviewFields,
|
|
11
11
|
ReviewSortFields,
|
|
12
12
|
StoreReviewRequest,
|
|
13
|
+
StoreReviewResponse,
|
|
13
14
|
} from '../types';
|
|
14
15
|
|
|
15
16
|
export function listProductReview(
|
|
@@ -74,6 +75,13 @@ export function createStoreReview(payload: StoreReviewRequest) {
|
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
export function getStoreReviewByCustomer() {
|
|
79
|
+
return usePublicApi<StoreReviewResponse>({
|
|
80
|
+
endpoint: '/review/sales-channel/customer',
|
|
81
|
+
method: 'GET',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
export function listCustomerReview(
|
|
78
86
|
options?: Pick<
|
|
79
87
|
ApiParams<ReviewFields, ReviewSortFields, ReviewConditionFields>,
|
package/modules/Api/index.ts
CHANGED
|
@@ -71,7 +71,8 @@ import {
|
|
|
71
71
|
listProductReview,
|
|
72
72
|
listStoreReview,
|
|
73
73
|
listCustomerReview,
|
|
74
|
-
createStoreReview
|
|
74
|
+
createStoreReview,
|
|
75
|
+
getStoreReviewByCustomer
|
|
75
76
|
} from './endpoints/ReviewComposable';
|
|
76
77
|
import { getSearch } from './endpoints/SearchComposable';
|
|
77
78
|
import { listShowcase } from './endpoints/ShowcaseComposable';
|
|
@@ -133,6 +134,7 @@ const customer = {
|
|
|
133
134
|
listCustomerHistory,
|
|
134
135
|
listCustomerReview,
|
|
135
136
|
createStoreReview,
|
|
137
|
+
getStoreReviewByCustomer,
|
|
136
138
|
listWalletTransaction,
|
|
137
139
|
claimGiftCard,
|
|
138
140
|
updateDocument,
|
|
@@ -143,7 +145,7 @@ const customer = {
|
|
|
143
145
|
sendMfa,
|
|
144
146
|
confirmMfa,
|
|
145
147
|
loginMfa,
|
|
146
|
-
deleteMFA,
|
|
148
|
+
deleteMFA,
|
|
147
149
|
mfaSetup,
|
|
148
150
|
|
|
149
151
|
listSalesChannelByEmail
|
|
@@ -202,7 +202,8 @@ import type {
|
|
|
202
202
|
ProductReview,
|
|
203
203
|
CreateProductReviewResponse,
|
|
204
204
|
CreateProductReviewMediaResponse,
|
|
205
|
-
StoreReviewRequest
|
|
205
|
+
StoreReviewRequest,
|
|
206
|
+
StoreReviewResponse
|
|
206
207
|
} from './endpoints/review/review.interfaces';
|
|
207
208
|
import type { Seal, SealSetting } from './endpoints/seal/seal.interfaces';
|
|
208
209
|
import type { Seals } from './endpoints/seal/seal.types';
|
|
@@ -373,6 +374,7 @@ export type {
|
|
|
373
374
|
ReviewSortFields,
|
|
374
375
|
ReviewFields,
|
|
375
376
|
StoreReviewRequest,
|
|
377
|
+
StoreReviewResponse,
|
|
376
378
|
|
|
377
379
|
// Filtros de listagem
|
|
378
380
|
TypeFilter,
|