@uappi/public-sdk 1.13.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.
@@ -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;
@@ -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>,
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.13.0",
3
+ "version": "1.15.0",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {