@uappi/public-sdk 1.12.0 → 1.14.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/components/ColorTheme/ColorTheme.ts +4 -0
- package/components/ColorTheme/types.ts +1 -0
- package/modules/Api/endpoints/ReviewComposable.ts +9 -0
- package/modules/Api/index.ts +2 -0
- package/modules/Api/types/endpoints/review/review.interfaces.ts +25 -0
- package/modules/Api/types/index.ts +2 -0
- package/package.json +1 -1
|
@@ -77,6 +77,10 @@ export const ColorTheme = defineComponent({
|
|
|
77
77
|
'--neutral-surface',
|
|
78
78
|
props.variables.colors.NeutralSurface,
|
|
79
79
|
);
|
|
80
|
+
document.documentElement.style.setProperty(
|
|
81
|
+
'--neutral-surface-low',
|
|
82
|
+
props.variables.colors.NeutralSurfaceLow,
|
|
83
|
+
);
|
|
80
84
|
document.documentElement.style.setProperty(
|
|
81
85
|
'--neutral-surface-hover',
|
|
82
86
|
props.variables.colors.NeutralSurfaceHover,
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
ReviewConditionFields,
|
|
10
10
|
ReviewFields,
|
|
11
11
|
ReviewSortFields,
|
|
12
|
+
StoreReviewRequest,
|
|
12
13
|
} from '../types';
|
|
13
14
|
|
|
14
15
|
export function listProductReview(
|
|
@@ -65,6 +66,14 @@ export function listStoreReview() {
|
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
|
|
69
|
+
export function createStoreReview(payload: StoreReviewRequest) {
|
|
70
|
+
return usePublicApi<ProductReviewResponse>({
|
|
71
|
+
endpoint: '/review/sales-channel',
|
|
72
|
+
method: 'POST',
|
|
73
|
+
payload
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
68
77
|
export function listCustomerReview(
|
|
69
78
|
options?: Pick<
|
|
70
79
|
ApiParams<ReviewFields, ReviewSortFields, ReviewConditionFields>,
|
package/modules/Api/index.ts
CHANGED
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
listProductReview,
|
|
72
72
|
listStoreReview,
|
|
73
73
|
listCustomerReview,
|
|
74
|
+
createStoreReview
|
|
74
75
|
} from './endpoints/ReviewComposable';
|
|
75
76
|
import { getSearch } from './endpoints/SearchComposable';
|
|
76
77
|
import { listShowcase } from './endpoints/ShowcaseComposable';
|
|
@@ -131,6 +132,7 @@ const customer = {
|
|
|
131
132
|
listOrderItemHistory,
|
|
132
133
|
listCustomerHistory,
|
|
133
134
|
listCustomerReview,
|
|
135
|
+
createStoreReview,
|
|
134
136
|
listWalletTransaction,
|
|
135
137
|
claimGiftCard,
|
|
136
138
|
updateDocument,
|
|
@@ -58,3 +58,28 @@ export interface CreateProductReviewMediaResponse {
|
|
|
58
58
|
mediaId: number;
|
|
59
59
|
reviewId: number;
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
export interface StoreReviewResponse {
|
|
63
|
+
salesChannelId: number;
|
|
64
|
+
customerId: number;
|
|
65
|
+
salesChannelDomain: string;
|
|
66
|
+
|
|
67
|
+
id: number;
|
|
68
|
+
name: string;
|
|
69
|
+
email: string;
|
|
70
|
+
comment: string;
|
|
71
|
+
recommended: boolean;
|
|
72
|
+
score: number;
|
|
73
|
+
active: boolean;
|
|
74
|
+
masked: boolean;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface StoreReviewRequest {
|
|
80
|
+
name?: string;
|
|
81
|
+
email?: string;
|
|
82
|
+
comment: string;
|
|
83
|
+
recommended: boolean;
|
|
84
|
+
score: number;
|
|
85
|
+
}
|
|
@@ -202,6 +202,7 @@ import type {
|
|
|
202
202
|
ProductReview,
|
|
203
203
|
CreateProductReviewResponse,
|
|
204
204
|
CreateProductReviewMediaResponse,
|
|
205
|
+
StoreReviewRequest
|
|
205
206
|
} from './endpoints/review/review.interfaces';
|
|
206
207
|
import type { Seal, SealSetting } from './endpoints/seal/seal.interfaces';
|
|
207
208
|
import type { Seals } from './endpoints/seal/seal.types';
|
|
@@ -371,6 +372,7 @@ export type {
|
|
|
371
372
|
ReviewConditionFields,
|
|
372
373
|
ReviewSortFields,
|
|
373
374
|
ReviewFields,
|
|
375
|
+
StoreReviewRequest,
|
|
374
376
|
|
|
375
377
|
// Filtros de listagem
|
|
376
378
|
TypeFilter,
|