@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.
@@ -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,
@@ -25,6 +25,7 @@ export interface CSSVariables {
25
25
  NeutralTextLow: string;
26
26
  NeutralTextDisabled: string;
27
27
  NeutralSurface: string;
28
+ NeutralSurfaceLow: string;
28
29
  NeutralSurfaceHover: string;
29
30
  NeutralSurfaceDisabled: string;
30
31
  NeutralBorder: string;
@@ -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>,
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {