@uappi/public-sdk 1.1.14 → 1.1.16

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.
@@ -56,10 +56,13 @@ export interface Product {
56
56
  isGiftCard: boolean;
57
57
 
58
58
 
59
- restriction: {
60
- tradePolicyId: number;
61
- requiredAge: number;
62
- }
59
+ restriction: ProductRestriction;
60
+ }
61
+
62
+
63
+ export interface ProductRestriction {
64
+ tradePolicyId: number;
65
+ requiredAge: number;
63
66
  }
64
67
 
65
68
  export interface ProductCategory {
@@ -28,6 +28,8 @@ export interface ProductReviewResponse {
28
28
  }
29
29
 
30
30
  export interface ProductReviewRequest {
31
+ name?: string;
32
+ email?: string;
31
33
  comment: string;
32
34
  recommended: boolean;
33
35
  score: number;
@@ -1,4 +1,4 @@
1
- import type { CurrentAttribute, Media, ProductType } from '../..';
1
+ import type { CurrentAttribute, Media, ProductRestriction, ProductType } from '../..';
2
2
 
3
3
  export interface SimpleProduct {
4
4
  productId: number;
@@ -12,4 +12,5 @@ export interface SimpleProduct {
12
12
  medias: Array<Media>;
13
13
  combination: Array<number>;
14
14
  currentAttributes: Array<CurrentAttribute>;
15
+ restriction: ProductRestriction;
15
16
  }
@@ -161,6 +161,7 @@ import type {
161
161
  ProductPrice,
162
162
  Stock,
163
163
  ProductInstallment,
164
+ ProductRestriction
164
165
  } from './endpoints/product/product.interfaces';
165
166
  import type {
166
167
  ProductStatus,
@@ -354,6 +355,7 @@ export type {
354
355
  ProductFlags,
355
356
  ProductPrice,
356
357
  ProductInstallment,
358
+ ProductRestriction,
357
359
  Stock,
358
360
  SimpleProduct,
359
361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {