@uappi/public-sdk 1.0.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.
- package/.editorconfig +6 -0
- package/.vscode/extensions.json +5 -0
- package/.vscode/settings.json +7 -0
- package/components/Animations/ExpandTransition.ts +89 -0
- package/components/Animations/index.ts +1 -0
- package/components/Themes/CustomTheme.ts +77 -0
- package/components/Themes/index.ts +1 -0
- package/main.ts +16 -0
- package/modules/Api/README.md +469 -0
- package/modules/Api/endpoints/BannerComposable.ts +31 -0
- package/modules/Api/endpoints/BrandComposable.ts +21 -0
- package/modules/Api/endpoints/CartComposable.ts +121 -0
- package/modules/Api/endpoints/CommonComposable.ts +24 -0
- package/modules/Api/endpoints/CouponComposable.ts +18 -0
- package/modules/Api/endpoints/CustomerComposable.ts +255 -0
- package/modules/Api/endpoints/InterestComposable.ts +11 -0
- package/modules/Api/endpoints/LoggoutComposable.ts +8 -0
- package/modules/Api/endpoints/MenuComposable.ts +25 -0
- package/modules/Api/endpoints/PairOfferComposable.ts +14 -0
- package/modules/Api/endpoints/PaymentComposable.ts +14 -0
- package/modules/Api/endpoints/ProductCommentComposable.ts +51 -0
- package/modules/Api/endpoints/ProductQuoteShipment.ts +20 -0
- package/modules/Api/endpoints/PublicComposable.ts +9 -0
- package/modules/Api/endpoints/ReviewComposable.ts +64 -0
- package/modules/Api/endpoints/SearchComposable.ts +27 -0
- package/modules/Api/endpoints/ShowcaseComposable.ts +45 -0
- package/modules/Api/endpoints/TemplateComposable.ts +8 -0
- package/modules/Api/endpoints/ThirdPartyComposable.ts +14 -0
- package/modules/Api/endpoints/UpsellComposable.ts +18 -0
- package/modules/Api/endpoints/UrlComposable.ts +26 -0
- package/modules/Api/endpoints/VariationComposable.ts +36 -0
- package/modules/Api/endpoints/WalletComposable.ts +36 -0
- package/modules/Api/endpoints/ZipcodeComposable.ts +10 -0
- package/modules/Api/index.ts +194 -0
- package/modules/Api/paramsSerializer/encodeWafNormalizer.ts +7 -0
- package/modules/Api/types/context/api-config.types.ts +68 -0
- package/modules/Api/types/context/api-params.types.ts +74 -0
- package/modules/Api/types/endpoints/attribute/attribute.interfaces.ts +42 -0
- package/modules/Api/types/endpoints/banner/banner.interfaces.ts +45 -0
- package/modules/Api/types/endpoints/brand/brand-field.types.ts +3 -0
- package/modules/Api/types/endpoints/brand/brand.interfaces.ts +23 -0
- package/modules/Api/types/endpoints/cart/cart.interfaces.ts +161 -0
- package/modules/Api/types/endpoints/cart/cart.types.ts +27 -0
- package/modules/Api/types/endpoints/common/common.interfaces.ts +21 -0
- package/modules/Api/types/endpoints/context/context.types.ts +1 -0
- package/modules/Api/types/endpoints/country/country.types.ts +7502 -0
- package/modules/Api/types/endpoints/coupon/coupon.interfaces.ts +13 -0
- package/modules/Api/types/endpoints/customer/customer-erros.ts +13 -0
- package/modules/Api/types/endpoints/customer/customer-obsearch.ts +103 -0
- package/modules/Api/types/endpoints/customer/customer.interfaces.ts +448 -0
- package/modules/Api/types/endpoints/customer/customer.types.ts +3 -0
- package/modules/Api/types/endpoints/description/description.interfaces.ts +30 -0
- package/modules/Api/types/endpoints/discounts/discounts.interfaces.ts +9 -0
- package/modules/Api/types/endpoints/discounts/discounts.types.ts +5 -0
- package/modules/Api/types/endpoints/filters/filter.type.ts +1 -0
- package/modules/Api/types/endpoints/filters/filters.interfaces.ts +26 -0
- package/modules/Api/types/endpoints/interest/interest.interfaces.ts +22 -0
- package/modules/Api/types/endpoints/media/media.interfaces.ts +13 -0
- package/modules/Api/types/endpoints/menu/menu.enums.ts +8 -0
- package/modules/Api/types/endpoints/menu/menu.interfaces.ts +26 -0
- package/modules/Api/types/endpoints/order/order.interfaces.ts +63 -0
- package/modules/Api/types/endpoints/page/page.interfaces.ts +15 -0
- package/modules/Api/types/endpoints/pagination/pagination.interfaces.ts +6 -0
- package/modules/Api/types/endpoints/pair-offer/pair-offer.interfaces.ts +19 -0
- package/modules/Api/types/endpoints/payment/payment.interfaces.ts +103 -0
- package/modules/Api/types/endpoints/payment/payment.types.ts +27 -0
- package/modules/Api/types/endpoints/price/price.interfaces.ts +22 -0
- package/modules/Api/types/endpoints/product/product-obsearch.types.ts +63 -0
- package/modules/Api/types/endpoints/product/product.interfaces.ts +109 -0
- package/modules/Api/types/endpoints/product/product.types.ts +3 -0
- package/modules/Api/types/endpoints/product-comment/product-comment-obsearch.types.ts +24 -0
- package/modules/Api/types/endpoints/product-comment/product-comment.interfaces.ts +32 -0
- package/modules/Api/types/endpoints/redirect/redirect.interfaces.ts +7 -0
- package/modules/Api/types/endpoints/review/review-obsearch.types.ts +18 -0
- package/modules/Api/types/endpoints/review/review.interfaces.ts +34 -0
- package/modules/Api/types/endpoints/seal/seal.interfaces.ts +21 -0
- package/modules/Api/types/endpoints/seal/seal.types.ts +3 -0
- package/modules/Api/types/endpoints/search/search.interfaces.ts +11 -0
- package/modules/Api/types/endpoints/seo/seo.interfaces.ts +11 -0
- package/modules/Api/types/endpoints/shipment/shipment.interfaces.ts +137 -0
- package/modules/Api/types/endpoints/showcase/showcase.enums.ts +8 -0
- package/modules/Api/types/endpoints/showcase/showcase.interfaces.ts +10 -0
- package/modules/Api/types/endpoints/simple-product/simple-product.interfaces.ts +15 -0
- package/modules/Api/types/endpoints/storage/storage.interfaces.ts +16 -0
- package/modules/Api/types/endpoints/template/template.interfaces.ts +30 -0
- package/modules/Api/types/endpoints/third-party/oauth.interfaces.ts +6 -0
- package/modules/Api/types/endpoints/upsell/upsell.interfaces.ts +13 -0
- package/modules/Api/types/endpoints/url/url.interfaces.ts +85 -0
- package/modules/Api/types/endpoints/wallet/wallet-obsearch.ts +8 -0
- package/modules/Api/types/endpoints/wallet/wallet.interfaces.ts +57 -0
- package/modules/Api/types/endpoints/zipcode/zipcode.interfaces.ts +23 -0
- package/modules/Api/types/index.ts +459 -0
- package/modules/Api/usePublicApi.ts +68 -0
- package/modules/Tracking/endpoints/BannerComposable.ts +33 -0
- package/modules/Tracking/endpoints/CartComposable.ts +75 -0
- package/modules/Tracking/endpoints/CustomerComposable.ts +68 -0
- package/modules/Tracking/endpoints/ProductQuoteShipment.ts +14 -0
- package/modules/Tracking/endpoints/SearchComposable.ts +32 -0
- package/modules/Tracking/endpoints/ShowcaseComposable.ts +54 -0
- package/modules/Tracking/endpoints/UrlComposable.ts +41 -0
- package/modules/Tracking/endpoints/types.ts +11 -0
- package/modules/Tracking/events/actions/addPaymentInfo.ts +31 -0
- package/modules/Tracking/events/actions/addShippingInfo.ts +27 -0
- package/modules/Tracking/events/actions/addToCart.ts +35 -0
- package/modules/Tracking/events/actions/beginCheckout.ts +28 -0
- package/modules/Tracking/events/actions/customerProfile.ts +36 -0
- package/modules/Tracking/events/actions/generateLead.ts +12 -0
- package/modules/Tracking/events/actions/login.ts +8 -0
- package/modules/Tracking/events/actions/purchase.ts +42 -0
- package/modules/Tracking/events/actions/removeFromCart.ts +52 -0
- package/modules/Tracking/events/actions/search.ts +8 -0
- package/modules/Tracking/events/actions/selectItem.ts +64 -0
- package/modules/Tracking/events/actions/selectPromotion.ts +24 -0
- package/modules/Tracking/events/actions/shippingCalculation.ts +7 -0
- package/modules/Tracking/events/actions/signup.ts +8 -0
- package/modules/Tracking/events/actions/upsertToCart.ts +62 -0
- package/modules/Tracking/events/views/viewCart.ts +28 -0
- package/modules/Tracking/events/views/viewHome.ts +5 -0
- package/modules/Tracking/events/views/viewItem.ts +31 -0
- package/modules/Tracking/events/views/viewItemList.ts +65 -0
- package/modules/Tracking/events/views/viewNotFound.ts +5 -0
- package/modules/Tracking/events/views/viewOther.ts +5 -0
- package/modules/Tracking/events/views/viewPayment.ts +7 -0
- package/modules/Tracking/events/views/viewPromotion.ts +28 -0
- package/modules/Tracking/events/views/viewShipping.ts +7 -0
- package/modules/Tracking/index.ts +84 -0
- package/modules/Tracking/publicApiTracking.ts +36 -0
- package/modules/Tracking/types/actions/add-payment-info.interfaces.ts +12 -0
- package/modules/Tracking/types/actions/add-shipping-info.interfaces.ts +11 -0
- package/modules/Tracking/types/actions/add-to-cart.interfaces.ts +10 -0
- package/modules/Tracking/types/actions/begin-checkout.interfaces.ts +12 -0
- package/modules/Tracking/types/actions/customer-profile.interfaces.ts +19 -0
- package/modules/Tracking/types/actions/file-download.interfaces.ts +4 -0
- package/modules/Tracking/types/actions/generate-lead.interfaces.ts +12 -0
- package/modules/Tracking/types/actions/login.interfaces.ts +4 -0
- package/modules/Tracking/types/actions/purchase.interfaces.ts +18 -0
- package/modules/Tracking/types/actions/remove-from-cart.interfaces.ts +10 -0
- package/modules/Tracking/types/actions/search.interfaces.ts +4 -0
- package/modules/Tracking/types/actions/select-item.interfaces.ts +16 -0
- package/modules/Tracking/types/actions/select-promotion.interfaces.ts +8 -0
- package/modules/Tracking/types/actions/share.interfaces.ts +4 -0
- package/modules/Tracking/types/actions/shipping-calculation.interfaces.ts +3 -0
- package/modules/Tracking/types/actions/signup.interfaces.ts +4 -0
- package/modules/Tracking/types/event.types.ts +54 -0
- package/modules/Tracking/types/index.ts +37 -0
- package/modules/Tracking/types/item.interfaces.ts +30 -0
- package/modules/Tracking/types/views/view-cart.interfaces.ts +11 -0
- package/modules/Tracking/types/views/view-home.interfaces.ts +3 -0
- package/modules/Tracking/types/views/view-item-list.interfaces.ts +11 -0
- package/modules/Tracking/types/views/view-item.interfaces.ts +15 -0
- package/modules/Tracking/types/views/view-not-found.interfaces.ts +3 -0
- package/modules/Tracking/types/views/view-other.interfaces.ts +3 -0
- package/modules/Tracking/types/views/view-payment.interfaces.ts +3 -0
- package/modules/Tracking/types/views/view-promotion.interfaces.ts +8 -0
- package/modules/Tracking/types/views/view-shipping.interfaces.ts +3 -0
- package/modules/Tracking/utils/cart.ts +100 -0
- package/modules/Tracking/utils/pushDatalayer.ts +7 -0
- package/package.json +27 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CountryAlpha3,
|
|
3
|
+
Media,
|
|
4
|
+
ProductType,
|
|
5
|
+
StateCode,
|
|
6
|
+
Storage,
|
|
7
|
+
} from '../..';
|
|
8
|
+
|
|
9
|
+
export interface ShipmentQuoteCartRequest {
|
|
10
|
+
targetCountryCode: CountryAlpha3;
|
|
11
|
+
targetZipCode: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ShippingOption {
|
|
14
|
+
beginShippingTime: number;
|
|
15
|
+
endShippingTime: number;
|
|
16
|
+
label: string;
|
|
17
|
+
selected: boolean;
|
|
18
|
+
shippingPickupPointId: null;
|
|
19
|
+
shippingTableId: number;
|
|
20
|
+
shippingTimeType: string;
|
|
21
|
+
shippingValue: number;
|
|
22
|
+
details: {
|
|
23
|
+
beginShippingTime: number;
|
|
24
|
+
carrierName: string;
|
|
25
|
+
endShippingTime: number;
|
|
26
|
+
error: null | string;
|
|
27
|
+
externalShippingCode: string;
|
|
28
|
+
integrationCode: string;
|
|
29
|
+
label: string;
|
|
30
|
+
pickups: null | Array<PickupPoint>;
|
|
31
|
+
row: null;
|
|
32
|
+
shippingTableId: number;
|
|
33
|
+
value: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface PickupPoint {
|
|
38
|
+
address: string;
|
|
39
|
+
city: string;
|
|
40
|
+
selected: boolean;
|
|
41
|
+
complement: string;
|
|
42
|
+
countryCode: CountryAlpha3;
|
|
43
|
+
district: string;
|
|
44
|
+
id: number;
|
|
45
|
+
latitude: string;
|
|
46
|
+
longitude: string;
|
|
47
|
+
name: string;
|
|
48
|
+
number: string;
|
|
49
|
+
openingHours: string;
|
|
50
|
+
stateCode: StateCode;
|
|
51
|
+
type: 'inner' | 'outer';
|
|
52
|
+
zipCode: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ShipmentQuoteProductRequest {
|
|
56
|
+
targetCountryCode: string;
|
|
57
|
+
targetZipCode: string;
|
|
58
|
+
items: Array<{ productId: number; quantity: number }>;
|
|
59
|
+
}
|
|
60
|
+
export interface ShipmentQuoteProductResponse {
|
|
61
|
+
errorItems: Array<never>;
|
|
62
|
+
quoteGroups: Array<QuoteGroupProduct>;
|
|
63
|
+
}
|
|
64
|
+
export interface QuoteGroupProduct {
|
|
65
|
+
additionalTimeGroup: number;
|
|
66
|
+
cargoTypeCombination: [];
|
|
67
|
+
distance: number;
|
|
68
|
+
error: null | string;
|
|
69
|
+
|
|
70
|
+
items: Array<QuoteGroupProductItem>;
|
|
71
|
+
|
|
72
|
+
originZipCode: string;
|
|
73
|
+
productStorageId: number;
|
|
74
|
+
quantityItems: number;
|
|
75
|
+
quoteId: string;
|
|
76
|
+
service: boolean;
|
|
77
|
+
|
|
78
|
+
shippingOptions: Array<ShippingOptionProduct>;
|
|
79
|
+
storage: Storage;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface QuoteGroupProductItem {
|
|
83
|
+
additionalTime: number;
|
|
84
|
+
cargoTypeId: number;
|
|
85
|
+
category: { id: number; name: string };
|
|
86
|
+
code: null;
|
|
87
|
+
cubicVolumeItem: number;
|
|
88
|
+
error: null;
|
|
89
|
+
name: string;
|
|
90
|
+
product: {
|
|
91
|
+
active: boolean;
|
|
92
|
+
combination: Array<number>;
|
|
93
|
+
comparisonPrice: number;
|
|
94
|
+
medias: Array<Media>;
|
|
95
|
+
name: string;
|
|
96
|
+
productId: number;
|
|
97
|
+
sku: string;
|
|
98
|
+
stock: number;
|
|
99
|
+
type: ProductType;
|
|
100
|
+
url: string | null;
|
|
101
|
+
};
|
|
102
|
+
productId: number;
|
|
103
|
+
productPairOfferId: null;
|
|
104
|
+
productPriceRuleId: number;
|
|
105
|
+
productPriceRuleName: string;
|
|
106
|
+
productStorages: Array<never>;
|
|
107
|
+
quantity: number;
|
|
108
|
+
saleWithoutStock: boolean;
|
|
109
|
+
service: boolean;
|
|
110
|
+
sku: string;
|
|
111
|
+
totalCubicVolume: number;
|
|
112
|
+
upsellId: null;
|
|
113
|
+
value: number;
|
|
114
|
+
volume: { width: number; height: number; length: number; weight: number };
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ShippingOptionProduct {
|
|
118
|
+
beginShippingTime: number;
|
|
119
|
+
carrierName: string;
|
|
120
|
+
endShippingTime: number;
|
|
121
|
+
error: null;
|
|
122
|
+
externalShippingCode: string;
|
|
123
|
+
integrationCode: string;
|
|
124
|
+
label: string;
|
|
125
|
+
pickups: null;
|
|
126
|
+
row: null;
|
|
127
|
+
shippingTableId: number;
|
|
128
|
+
value: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface SelectShipimentRequest {
|
|
132
|
+
orders: Array<{
|
|
133
|
+
cartOrderId: number;
|
|
134
|
+
shippingTableId: number;
|
|
135
|
+
shippingPickupPointId?: number;
|
|
136
|
+
}>;
|
|
137
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CurrentAttribute, Media, ProductType } from '../..';
|
|
2
|
+
|
|
3
|
+
export interface SimpleProduct {
|
|
4
|
+
productId: number;
|
|
5
|
+
type: ProductType;
|
|
6
|
+
sku: string;
|
|
7
|
+
name: string;
|
|
8
|
+
active: boolean;
|
|
9
|
+
url: string;
|
|
10
|
+
comparisonPrice: number;
|
|
11
|
+
stock: number;
|
|
12
|
+
medias: Array<Media>;
|
|
13
|
+
combination: Array<number>;
|
|
14
|
+
currentAttributes: Array<CurrentAttribute>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Storage {
|
|
2
|
+
active: boolean;
|
|
3
|
+
address: string;
|
|
4
|
+
city: string;
|
|
5
|
+
code: string;
|
|
6
|
+
complement: string;
|
|
7
|
+
corporateName: string;
|
|
8
|
+
district: string;
|
|
9
|
+
document: string;
|
|
10
|
+
id: number;
|
|
11
|
+
latitude: number;
|
|
12
|
+
longitude: number;
|
|
13
|
+
number: string;
|
|
14
|
+
observation: null;
|
|
15
|
+
zipCode: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type App = {
|
|
2
|
+
code: 'google-tag-manager';
|
|
3
|
+
settings: {
|
|
4
|
+
'google-tag-manager-id': string;
|
|
5
|
+
}
|
|
6
|
+
} | {
|
|
7
|
+
code: 'meta-pixel';
|
|
8
|
+
settings: {
|
|
9
|
+
'meta-pixel-id': string;
|
|
10
|
+
}
|
|
11
|
+
} | {
|
|
12
|
+
code: 'google-consumer-reviews';
|
|
13
|
+
settings: {
|
|
14
|
+
'google-merchant-id': string;
|
|
15
|
+
}
|
|
16
|
+
} | {
|
|
17
|
+
code: 'google-login';
|
|
18
|
+
settings: {
|
|
19
|
+
'google-login-client-id': string;
|
|
20
|
+
}
|
|
21
|
+
} | {
|
|
22
|
+
code: 'facebook-login';
|
|
23
|
+
settings: {
|
|
24
|
+
'facebook-login-client-id': string;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export interface TemplateResponse<S = unknown> {
|
|
28
|
+
apps: Array<App>;
|
|
29
|
+
settings: S;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PriceRule, Product } from '../..';
|
|
2
|
+
|
|
3
|
+
export interface Upsell {
|
|
4
|
+
id: number;
|
|
5
|
+
displayTitle: string;
|
|
6
|
+
displayDescription: string;
|
|
7
|
+
displayButtonText: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
upsellProduct: Product;
|
|
10
|
+
priceRule: PriceRule;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type UpsellResponse = Array<Upsell>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Product,
|
|
3
|
+
Page,
|
|
4
|
+
ProductCategory,
|
|
5
|
+
FilterValue,
|
|
6
|
+
PriceFilter,
|
|
7
|
+
Seal,
|
|
8
|
+
Descriptions,
|
|
9
|
+
Pagination,
|
|
10
|
+
Attribute,
|
|
11
|
+
BrandItem,
|
|
12
|
+
} from '../..';
|
|
13
|
+
|
|
14
|
+
export interface UrlMenu {
|
|
15
|
+
brands: Array<{
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
logo: string;
|
|
19
|
+
url: string;
|
|
20
|
+
}>;
|
|
21
|
+
categories: Array<ProductCategory>;
|
|
22
|
+
filters: Array<{
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
values: Array<FilterValue>;
|
|
26
|
+
}>;
|
|
27
|
+
seals: Array<Seal>;
|
|
28
|
+
attributes: Array<Attribute>;
|
|
29
|
+
prices: Array<PriceFilter>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface UrlProduct {
|
|
33
|
+
type: 'product';
|
|
34
|
+
entity: Product;
|
|
35
|
+
menu: null;
|
|
36
|
+
content: Product;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface UrlPage {
|
|
40
|
+
type: 'page';
|
|
41
|
+
entity: Page;
|
|
42
|
+
menu: null;
|
|
43
|
+
content: Array<never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface UrlBrand {
|
|
47
|
+
type: 'brand';
|
|
48
|
+
entity: BrandItem;
|
|
49
|
+
menu: UrlMenu;
|
|
50
|
+
content: {
|
|
51
|
+
registers: Array<Product>;
|
|
52
|
+
pagination: Pagination;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface UrlListing {
|
|
57
|
+
type: 'category';
|
|
58
|
+
entity: {
|
|
59
|
+
id: number;
|
|
60
|
+
parentProductCategoryId: null | string;
|
|
61
|
+
code: string;
|
|
62
|
+
name: string;
|
|
63
|
+
productOrdering: string;
|
|
64
|
+
active: boolean;
|
|
65
|
+
directAccess: boolean;
|
|
66
|
+
bannerGroups: Array<string>;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
tree: {
|
|
70
|
+
current: null;
|
|
71
|
+
children: Array<ProductCategory>;
|
|
72
|
+
sisters: Array<ProductCategory>;
|
|
73
|
+
parent: Array<ProductCategory>;
|
|
74
|
+
};
|
|
75
|
+
url: string;
|
|
76
|
+
urls: Array<never>;
|
|
77
|
+
linkedTradePolicies: null;
|
|
78
|
+
description: Descriptions;
|
|
79
|
+
};
|
|
80
|
+
menu: UrlMenu;
|
|
81
|
+
content: {
|
|
82
|
+
registers: Array<Product>;
|
|
83
|
+
pagination: Pagination;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Pagination } from '../pagination/pagination.interfaces';
|
|
2
|
+
|
|
3
|
+
export interface WalletTransactionResponse {
|
|
4
|
+
registers: Array<WalletTransaction>;
|
|
5
|
+
pagination: Pagination;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface WalletTransaction {
|
|
9
|
+
id: number;
|
|
10
|
+
voucher: null | {
|
|
11
|
+
createdAt: string;
|
|
12
|
+
customer: null;
|
|
13
|
+
customerId: number;
|
|
14
|
+
hash: string;
|
|
15
|
+
id: number;
|
|
16
|
+
observation: null | string;
|
|
17
|
+
userEmail: string;
|
|
18
|
+
userId: number;
|
|
19
|
+
userName: string;
|
|
20
|
+
value: number;
|
|
21
|
+
};
|
|
22
|
+
giftCard: null | {
|
|
23
|
+
activatedAt: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
code: string;
|
|
26
|
+
id: number;
|
|
27
|
+
orderItemId: null;
|
|
28
|
+
productId: number;
|
|
29
|
+
userEmail: string;
|
|
30
|
+
userId: number;
|
|
31
|
+
userName: string;
|
|
32
|
+
value: number;
|
|
33
|
+
};
|
|
34
|
+
order: {
|
|
35
|
+
id: number;
|
|
36
|
+
orderGroupId: number;
|
|
37
|
+
productStorageId: number;
|
|
38
|
+
orderStatusId: number;
|
|
39
|
+
};
|
|
40
|
+
action: 'remove' | 'action';
|
|
41
|
+
value: number;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ClaimGiftCardRequest {
|
|
46
|
+
codes: Array<string>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type ClaimGiftCardResponse = Array<{
|
|
50
|
+
code: string;
|
|
51
|
+
customerId: number;
|
|
52
|
+
error:
|
|
53
|
+
| 'UAPPI_STORE_GIFT_CARD_NOT_FOUND'
|
|
54
|
+
| 'UAPPI_STORE_GIFT_CARD_ALREADY_LINKED'
|
|
55
|
+
| null;
|
|
56
|
+
giftCardId: number | null;
|
|
57
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CountryAlpha2,
|
|
3
|
+
CountryAlpha3,
|
|
4
|
+
CountryName,
|
|
5
|
+
CountryPhoneCode,
|
|
6
|
+
StateCode,
|
|
7
|
+
} from '../country/country.types';
|
|
8
|
+
|
|
9
|
+
export interface ZipcodeResponse {
|
|
10
|
+
zipCode: string;
|
|
11
|
+
publicPlace: string;
|
|
12
|
+
complement: string;
|
|
13
|
+
district: string;
|
|
14
|
+
city: string;
|
|
15
|
+
stateCode: StateCode;
|
|
16
|
+
latitude: number;
|
|
17
|
+
longitude: number;
|
|
18
|
+
countryName: CountryName;
|
|
19
|
+
countryCodeAlpha2: CountryAlpha2;
|
|
20
|
+
countryCodeAlpha3: CountryAlpha3;
|
|
21
|
+
ddi: CountryPhoneCode;
|
|
22
|
+
currency: string;
|
|
23
|
+
}
|