@uappi/public-sdk 1.1.13 → 1.1.15

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.
@@ -308,9 +308,9 @@ export function addProductToWishlist(payload: AddProductToWishlistRequest) {
308
308
  });
309
309
  }
310
310
 
311
- export function removeProductToWishlist(productId: number) {
311
+ export function removeProductToWishlist(wishlistId: number, productId: number) {
312
312
  return usePublicApi<true>({
313
- endpoint: `/customer/wish-list/product/${productId}`,
313
+ endpoint: `/customer/wish-list/${wishlistId}/product/${productId}`,
314
314
  method: 'DELETE'
315
315
  });
316
316
  }
@@ -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 {
@@ -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.13",
3
+ "version": "1.1.15",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {