@uappi/public-sdk 1.2.4 → 1.2.6

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.
@@ -0,0 +1,7 @@
1
+ import { usePublicApi } from '..';
2
+
3
+ export function getVerify(path: string,) {
4
+ return usePublicApi<'brand' | 'category' | 'page' | 'product' | 'redirect'>({
5
+ endpoint: `/api/v3/publics/url/verify?url=${path}`
6
+ });
7
+ }
@@ -70,6 +70,7 @@ import {
70
70
  import { getSearch } from './endpoints/SearchComposable';
71
71
  import { listShowcase } from './endpoints/ShowcaseComposable';
72
72
  import { getUrl } from './endpoints/UrlComposable';
73
+ import { getVerify } from './endpoints/VerifyComposable';
73
74
  import { listVariation } from './endpoints/VariationComposable';
74
75
  import {
75
76
  listWalletTransaction,
@@ -158,6 +159,7 @@ const product = {
158
159
  listBrands,
159
160
  listVariation,
160
161
  getUrl,
162
+ getVerify,
161
163
  getSearch,
162
164
  listShipmentQuoteProduct,
163
165
  deleteProductComment,
@@ -33,6 +33,7 @@ export interface AttributeValue {
33
33
  label: string;
34
34
  order: number;
35
35
  originalImage: null | string;
36
+ productQuantity: number;
36
37
  }
37
38
 
38
39
  export interface CurrentAttribute {
@@ -69,6 +69,7 @@ export interface ProductCategory {
69
69
  id: number;
70
70
  name: string;
71
71
  url: string;
72
+ productQuantity: number;
72
73
  }
73
74
 
74
75
  export interface ProductPrice {
@@ -9,6 +9,7 @@ export interface Seal {
9
9
  originalImage: string | null;
10
10
  setting: SealSetting;
11
11
  createdAt: string;
12
+ productQuantity: number;
12
13
  }
13
14
 
14
15
  export interface SealSetting {
@@ -17,12 +17,14 @@ export interface UrlMenu {
17
17
  name: string;
18
18
  logo: string;
19
19
  url: string;
20
+ productQuantity: number;
20
21
  }>;
21
22
  categories: Array<ProductCategory>;
22
23
  filters: Array<{
23
24
  id: number;
24
25
  name: string;
25
26
  values: Array<FilterValue>;
27
+ productQuantity: number;
26
28
  }>;
27
29
  seals: Array<Seal>;
28
30
  attributes: Array<Attribute>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {