@uappi/public-sdk 1.1.19 → 1.1.21
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.
|
@@ -2,6 +2,7 @@ import { usePublicApi } from '..';
|
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
4
|
ApiParams,
|
|
5
|
+
CreateProductReviewMediaResponse,
|
|
5
6
|
CreateProductReviewResponse,
|
|
6
7
|
ProductReviewRequest,
|
|
7
8
|
ProductReviewResponse,
|
|
@@ -50,7 +51,7 @@ export function createImageProductReview(
|
|
|
50
51
|
formData.append(`medias[${index}]`, file);
|
|
51
52
|
});
|
|
52
53
|
|
|
53
|
-
return usePublicApi<
|
|
54
|
+
return usePublicApi<Array<CreateProductReviewMediaResponse>>({
|
|
54
55
|
endpoint: `/review/${productReviewId}/product/media`,
|
|
55
56
|
method: 'POST',
|
|
56
57
|
payload: formData,
|
|
@@ -188,6 +188,7 @@ import type {
|
|
|
188
188
|
ProductReviewResponse,
|
|
189
189
|
ProductReview,
|
|
190
190
|
CreateProductReviewResponse,
|
|
191
|
+
CreateProductReviewMediaResponse,
|
|
191
192
|
} from './endpoints/review/review.interfaces';
|
|
192
193
|
import type { Seal, SealSetting } from './endpoints/seal/seal.interfaces';
|
|
193
194
|
import type { Seals } from './endpoints/seal/seal.types';
|
|
@@ -329,6 +330,7 @@ export type {
|
|
|
329
330
|
// Avaliaçoes
|
|
330
331
|
ProductReviewRequest,
|
|
331
332
|
CreateProductReviewResponse,
|
|
333
|
+
CreateProductReviewMediaResponse,
|
|
332
334
|
ProductReviewResponse,
|
|
333
335
|
ProductReview,
|
|
334
336
|
ReviewConditionFields,
|