@uappi/public-sdk 1.2.9 → 1.2.10
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/.gitlab-ci.yml +43 -0
- package/.vscode/extensions.json +4 -4
- package/.vscode/settings.json +6 -6
- package/README.md +67 -0
- package/components/Animations/ExpandTransition.ts +89 -89
- package/components/Animations/index.ts +1 -1
- package/components/ColorTheme/ColorTheme.ts +80 -80
- package/components/ColorTheme/index.ts +1 -1
- package/components/ColorTheme/types.ts +18 -18
- package/components/SocialAuth/FacebookAuth/types.ts +2 -2
- package/components/SocialAuth/GoogleAuth/types.ts +2 -2
- package/components/SocialAuth/index.ts +1 -1
- package/components/index.ts +2 -2
- package/main.ts +4 -4
- package/modules/Api/README.md +469 -469
- package/modules/Api/endpoints/CommonComposable.ts +24 -24
- package/modules/Api/endpoints/CouponComposable.ts +18 -18
- package/modules/Api/endpoints/LoggoutComposable.ts +8 -8
- package/modules/Api/endpoints/MFAComposable.ts +43 -43
- package/modules/Api/endpoints/PaymentComposable.ts +14 -14
- package/modules/Api/endpoints/PublicComposable.ts +8 -8
- package/modules/Api/endpoints/TemplateComposable.ts +7 -7
- package/modules/Api/endpoints/ThirdPartyComposable.ts +13 -13
- package/modules/Api/endpoints/UpsellComposable.ts +17 -17
- package/modules/Api/endpoints/VerifyComposable.ts +7 -7
- package/modules/Api/endpoints/WalletComposable.ts +36 -36
- package/modules/Api/paramsSerializer/encodeWafNormalizer.ts +7 -7
- package/modules/Api/types/endpoints/cart/cart.interfaces.ts +161 -161
- package/modules/Api/types/endpoints/cart/cart.types.ts +27 -27
- package/modules/Api/types/endpoints/common/common.interfaces.ts +21 -21
- package/modules/Api/types/endpoints/country/country.types.ts +7502 -7502
- package/modules/Api/types/endpoints/coupon/coupon.interfaces.ts +13 -13
- package/modules/Api/types/endpoints/discounts/discounts.interfaces.ts +9 -9
- package/modules/Api/types/endpoints/mfa/mfa.interfaces.ts +51 -51
- package/modules/Api/types/endpoints/payment/payment.interfaces.ts +103 -103
- package/modules/Api/types/endpoints/payment/payment.types.ts +27 -27
- package/modules/Api/types/endpoints/price/price.interfaces.ts +21 -21
- package/modules/Api/types/endpoints/template/template.interfaces.ts +29 -29
- package/modules/Api/types/endpoints/third-party/oauth.interfaces.ts +5 -5
- package/modules/Api/types/endpoints/upsell/upsell.interfaces.ts +12 -12
- package/modules/Api/types/endpoints/wallet/wallet-obsearch.ts +8 -8
- package/modules/Api/types/endpoints/wallet/wallet.interfaces.ts +57 -57
- package/modules/Api/types/endpoints/zipcode/zipcode.interfaces.ts +23 -23
- package/modules/Api/types/index.ts +504 -504
- package/modules/Tracking/endpoints/CartComposable.ts +75 -75
- package/modules/Tracking/endpoints/CustomerComposable.ts +71 -71
- package/modules/Tracking/endpoints/types.ts +11 -11
- package/modules/Tracking/events/actions/addPaymentInfo.ts +31 -31
- package/modules/Tracking/events/actions/addShippingInfo.ts +27 -27
- package/modules/Tracking/events/actions/addToCart.ts +35 -35
- package/modules/Tracking/events/actions/beginCheckout.ts +28 -28
- package/modules/Tracking/events/actions/customerProfile.ts +36 -36
- package/modules/Tracking/events/actions/generateLead.ts +12 -12
- package/modules/Tracking/events/actions/login.ts +8 -8
- package/modules/Tracking/events/actions/purchase.ts +42 -42
- package/modules/Tracking/events/actions/removeFromCart.ts +52 -52
- package/modules/Tracking/events/actions/search.ts +8 -8
- package/modules/Tracking/events/actions/selectItem.ts +64 -64
- package/modules/Tracking/events/actions/selectPromotion.ts +24 -24
- package/modules/Tracking/events/actions/shippingCalculation.ts +7 -7
- package/modules/Tracking/events/actions/signup.ts +8 -8
- package/modules/Tracking/events/actions/upsertToCart.ts +62 -62
- package/modules/Tracking/events/views/viewCart.ts +28 -28
- package/modules/Tracking/events/views/viewHome.ts +5 -5
- package/modules/Tracking/events/views/viewItem.ts +31 -31
- package/modules/Tracking/events/views/viewItemList.ts +65 -65
- package/modules/Tracking/events/views/viewNotFound.ts +5 -5
- package/modules/Tracking/events/views/viewOther.ts +5 -5
- package/modules/Tracking/events/views/viewPayment.ts +7 -7
- package/modules/Tracking/events/views/viewPromotion.ts +28 -28
- package/modules/Tracking/events/views/viewShipping.ts +7 -7
- package/modules/Tracking/index.ts +84 -84
- package/modules/Tracking/publicApiTracking.ts +35 -35
- package/modules/Tracking/types/actions/add-payment-info.interfaces.ts +12 -12
- package/modules/Tracking/types/actions/add-shipping-info.interfaces.ts +11 -11
- package/modules/Tracking/types/actions/add-to-cart.interfaces.ts +10 -10
- package/modules/Tracking/types/actions/begin-checkout.interfaces.ts +12 -12
- package/modules/Tracking/types/actions/customer-profile.interfaces.ts +19 -19
- package/modules/Tracking/types/actions/file-download.interfaces.ts +4 -4
- package/modules/Tracking/types/actions/generate-lead.interfaces.ts +12 -12
- package/modules/Tracking/types/actions/login.interfaces.ts +4 -4
- package/modules/Tracking/types/actions/purchase.interfaces.ts +18 -18
- package/modules/Tracking/types/actions/remove-from-cart.interfaces.ts +10 -10
- package/modules/Tracking/types/actions/search.interfaces.ts +4 -4
- package/modules/Tracking/types/actions/select-item.interfaces.ts +16 -16
- package/modules/Tracking/types/actions/select-promotion.interfaces.ts +8 -8
- package/modules/Tracking/types/actions/share.interfaces.ts +4 -4
- package/modules/Tracking/types/actions/shipping-calculation.interfaces.ts +3 -3
- package/modules/Tracking/types/actions/signup.interfaces.ts +4 -4
- package/modules/Tracking/types/event.types.ts +54 -54
- package/modules/Tracking/types/index.ts +37 -37
- package/modules/Tracking/types/item.interfaces.ts +30 -30
- package/modules/Tracking/types/views/view-cart.interfaces.ts +11 -11
- package/modules/Tracking/types/views/view-home.interfaces.ts +3 -3
- package/modules/Tracking/types/views/view-item-list.interfaces.ts +11 -11
- package/modules/Tracking/types/views/view-item.interfaces.ts +15 -15
- package/modules/Tracking/types/views/view-not-found.interfaces.ts +3 -3
- package/modules/Tracking/types/views/view-other.interfaces.ts +3 -3
- package/modules/Tracking/types/views/view-payment.interfaces.ts +3 -3
- package/modules/Tracking/types/views/view-promotion.interfaces.ts +8 -8
- package/modules/Tracking/types/views/view-shipping.interfaces.ts +3 -3
- package/modules/Tracking/utils/cart.ts +100 -100
- package/modules/Tracking/utils/pushDatalayer.ts +7 -7
- package/modules/index.ts +1 -1
- package/package.json +1 -1
- package/scripts/release.sh +34 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
CustomerAddressResponse,
|
|
3
|
-
CustomerGender,
|
|
4
|
-
CustomerResponse,
|
|
5
|
-
} from '../../../Api/types';
|
|
6
|
-
|
|
7
|
-
export interface CustomerProfile {
|
|
8
|
-
event: 'customer_profile';
|
|
9
|
-
customer: {
|
|
10
|
-
id: number;
|
|
11
|
-
email: string;
|
|
12
|
-
name: string;
|
|
13
|
-
gender: CustomerGender;
|
|
14
|
-
birthdate: string;
|
|
15
|
-
address: null | Array<CustomerAddressResponse>;
|
|
16
|
-
flags: CustomerResponse['flags'];
|
|
17
|
-
loginStatus: boolean;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
CustomerAddressResponse,
|
|
3
|
+
CustomerGender,
|
|
4
|
+
CustomerResponse,
|
|
5
|
+
} from '../../../Api/types';
|
|
6
|
+
|
|
7
|
+
export interface CustomerProfile {
|
|
8
|
+
event: 'customer_profile';
|
|
9
|
+
customer: {
|
|
10
|
+
id: number;
|
|
11
|
+
email: string;
|
|
12
|
+
name: string;
|
|
13
|
+
gender: CustomerGender;
|
|
14
|
+
birthdate: string;
|
|
15
|
+
address: null | Array<CustomerAddressResponse>;
|
|
16
|
+
flags: CustomerResponse['flags'];
|
|
17
|
+
loginStatus: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface FileDownload {
|
|
2
|
-
event: 'file_download';
|
|
3
|
-
item_id: number;
|
|
4
|
-
}
|
|
1
|
+
export interface FileDownload {
|
|
2
|
+
event: 'file_download';
|
|
3
|
+
item_id: number;
|
|
4
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface GenerateLead {
|
|
2
|
-
event: 'generate_lead';
|
|
3
|
-
name: string;
|
|
4
|
-
email: string;
|
|
5
|
-
phone: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface CustomerLead {
|
|
9
|
-
name: string;
|
|
10
|
-
email: string;
|
|
11
|
-
phone: string;
|
|
12
|
-
}
|
|
1
|
+
export interface GenerateLead {
|
|
2
|
+
event: 'generate_lead';
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface CustomerLead {
|
|
9
|
+
name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
phone: string;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Login {
|
|
2
|
-
event: 'login';
|
|
3
|
-
method: 'Google' | 'Facebook' | 'Internal';
|
|
4
|
-
}
|
|
1
|
+
export interface Login {
|
|
2
|
+
event: 'login';
|
|
3
|
+
method: 'Google' | 'Facebook' | 'Internal';
|
|
4
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { Item } from '../item.interfaces';
|
|
2
|
-
|
|
3
|
-
export interface Purchase {
|
|
4
|
-
event: 'purchase';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
transaction_id: string;
|
|
7
|
-
affiliation: string;
|
|
8
|
-
value: number;
|
|
9
|
-
tax: number;
|
|
10
|
-
shipping: number;
|
|
11
|
-
currency: 'BRL';
|
|
12
|
-
coupon: string;
|
|
13
|
-
payment_type: string;
|
|
14
|
-
payment_status: string;
|
|
15
|
-
shipping_tier: string;
|
|
16
|
-
items: Array<Item>;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
1
|
+
import type { Item } from '../item.interfaces';
|
|
2
|
+
|
|
3
|
+
export interface Purchase {
|
|
4
|
+
event: 'purchase';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
transaction_id: string;
|
|
7
|
+
affiliation: string;
|
|
8
|
+
value: number;
|
|
9
|
+
tax: number;
|
|
10
|
+
shipping: number;
|
|
11
|
+
currency: 'BRL';
|
|
12
|
+
coupon: string;
|
|
13
|
+
payment_type: string;
|
|
14
|
+
payment_status: string;
|
|
15
|
+
shipping_tier: string;
|
|
16
|
+
items: Array<Item>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Item } from '..';
|
|
2
|
-
|
|
3
|
-
export interface RemoveFromCart {
|
|
4
|
-
event: 'remove_from_cart';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
currency: 'BRL';
|
|
7
|
-
value: number;
|
|
8
|
-
items: Array<Item>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
1
|
+
import type { Item } from '..';
|
|
2
|
+
|
|
3
|
+
export interface RemoveFromCart {
|
|
4
|
+
event: 'remove_from_cart';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
currency: 'BRL';
|
|
7
|
+
value: number;
|
|
8
|
+
items: Array<Item>;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Search {
|
|
2
|
-
event: 'search';
|
|
3
|
-
search_term: string;
|
|
4
|
-
}
|
|
1
|
+
export interface Search {
|
|
2
|
+
event: 'search';
|
|
3
|
+
search_term: string;
|
|
4
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { Item } from '../item.interfaces';
|
|
2
|
-
|
|
3
|
-
interface SelectedItem extends Item {
|
|
4
|
-
item_list_id: string;
|
|
5
|
-
item_list_name: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface SelectItem {
|
|
9
|
-
event: 'select_item';
|
|
10
|
-
ecommerce: {
|
|
11
|
-
item_list_id: string;
|
|
12
|
-
item_list_name: string;
|
|
13
|
-
currency: 'BRL';
|
|
14
|
-
items: Array<SelectedItem>;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
import type { Item } from '../item.interfaces';
|
|
2
|
+
|
|
3
|
+
interface SelectedItem extends Item {
|
|
4
|
+
item_list_id: string;
|
|
5
|
+
item_list_name: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface SelectItem {
|
|
9
|
+
event: 'select_item';
|
|
10
|
+
ecommerce: {
|
|
11
|
+
item_list_id: string;
|
|
12
|
+
item_list_name: string;
|
|
13
|
+
currency: 'BRL';
|
|
14
|
+
items: Array<SelectedItem>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BannerItem } from '..';
|
|
2
|
-
|
|
3
|
-
export interface SelectPromotion {
|
|
4
|
-
event: 'select_promotion';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
items: Array<BannerItem>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
1
|
+
import type { BannerItem } from '..';
|
|
2
|
+
|
|
3
|
+
export interface SelectPromotion {
|
|
4
|
+
event: 'select_promotion';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
items: Array<BannerItem>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Share {
|
|
2
|
-
event: 'share';
|
|
3
|
-
item_id: number;
|
|
4
|
-
}
|
|
1
|
+
export interface Share {
|
|
2
|
+
event: 'share';
|
|
3
|
+
item_id: number;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ShippingCalculation {
|
|
2
|
-
event: 'item_view_shipping_calculation';
|
|
3
|
-
}
|
|
1
|
+
export interface ShippingCalculation {
|
|
2
|
+
event: 'item_view_shipping_calculation';
|
|
3
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface Signup {
|
|
2
|
-
event: 'sign_up';
|
|
3
|
-
method: 'Google' | 'Facebook' | 'Internal';
|
|
4
|
-
}
|
|
1
|
+
export interface Signup {
|
|
2
|
+
event: 'sign_up';
|
|
3
|
+
method: 'Google' | 'Facebook' | 'Internal';
|
|
4
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AddToCart,
|
|
3
|
-
CustomerProfile,
|
|
4
|
-
Login,
|
|
5
|
-
RemoveFromCart,
|
|
6
|
-
Signup,
|
|
7
|
-
BeginCheckout,
|
|
8
|
-
AddShippingInfo,
|
|
9
|
-
AddPaymentInfo,
|
|
10
|
-
ShippingCalculation,
|
|
11
|
-
ViewPayment,
|
|
12
|
-
ViewShipping,
|
|
13
|
-
Purchase,
|
|
14
|
-
ViewCart,
|
|
15
|
-
ViewHome,
|
|
16
|
-
ViewItem,
|
|
17
|
-
ViewItemList,
|
|
18
|
-
ViewOther,
|
|
19
|
-
ViewNotFound,
|
|
20
|
-
Search,
|
|
21
|
-
GenerateLead,
|
|
22
|
-
ViewPromotion,
|
|
23
|
-
SelectPromotion,
|
|
24
|
-
FileDownload,
|
|
25
|
-
Share,
|
|
26
|
-
SelectItem,
|
|
27
|
-
} from '.';
|
|
28
|
-
|
|
29
|
-
export type Event =
|
|
30
|
-
| AddToCart
|
|
31
|
-
| RemoveFromCart
|
|
32
|
-
| ViewCart
|
|
33
|
-
| ViewPayment
|
|
34
|
-
| ViewShipping
|
|
35
|
-
| BeginCheckout
|
|
36
|
-
| CustomerProfile
|
|
37
|
-
| Login
|
|
38
|
-
| Signup
|
|
39
|
-
| AddShippingInfo
|
|
40
|
-
| AddPaymentInfo
|
|
41
|
-
| ShippingCalculation
|
|
42
|
-
| Purchase
|
|
43
|
-
| ViewHome
|
|
44
|
-
| ViewItem
|
|
45
|
-
| ViewItemList
|
|
46
|
-
| ViewOther
|
|
47
|
-
| ViewNotFound
|
|
48
|
-
| Search
|
|
49
|
-
| GenerateLead
|
|
50
|
-
| ViewPromotion
|
|
51
|
-
| SelectPromotion
|
|
52
|
-
| FileDownload
|
|
53
|
-
| Share
|
|
54
|
-
| SelectItem;
|
|
1
|
+
import type {
|
|
2
|
+
AddToCart,
|
|
3
|
+
CustomerProfile,
|
|
4
|
+
Login,
|
|
5
|
+
RemoveFromCart,
|
|
6
|
+
Signup,
|
|
7
|
+
BeginCheckout,
|
|
8
|
+
AddShippingInfo,
|
|
9
|
+
AddPaymentInfo,
|
|
10
|
+
ShippingCalculation,
|
|
11
|
+
ViewPayment,
|
|
12
|
+
ViewShipping,
|
|
13
|
+
Purchase,
|
|
14
|
+
ViewCart,
|
|
15
|
+
ViewHome,
|
|
16
|
+
ViewItem,
|
|
17
|
+
ViewItemList,
|
|
18
|
+
ViewOther,
|
|
19
|
+
ViewNotFound,
|
|
20
|
+
Search,
|
|
21
|
+
GenerateLead,
|
|
22
|
+
ViewPromotion,
|
|
23
|
+
SelectPromotion,
|
|
24
|
+
FileDownload,
|
|
25
|
+
Share,
|
|
26
|
+
SelectItem,
|
|
27
|
+
} from '.';
|
|
28
|
+
|
|
29
|
+
export type Event =
|
|
30
|
+
| AddToCart
|
|
31
|
+
| RemoveFromCart
|
|
32
|
+
| ViewCart
|
|
33
|
+
| ViewPayment
|
|
34
|
+
| ViewShipping
|
|
35
|
+
| BeginCheckout
|
|
36
|
+
| CustomerProfile
|
|
37
|
+
| Login
|
|
38
|
+
| Signup
|
|
39
|
+
| AddShippingInfo
|
|
40
|
+
| AddPaymentInfo
|
|
41
|
+
| ShippingCalculation
|
|
42
|
+
| Purchase
|
|
43
|
+
| ViewHome
|
|
44
|
+
| ViewItem
|
|
45
|
+
| ViewItemList
|
|
46
|
+
| ViewOther
|
|
47
|
+
| ViewNotFound
|
|
48
|
+
| Search
|
|
49
|
+
| GenerateLead
|
|
50
|
+
| ViewPromotion
|
|
51
|
+
| SelectPromotion
|
|
52
|
+
| FileDownload
|
|
53
|
+
| Share
|
|
54
|
+
| SelectItem;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export type { Event } from './event.types';
|
|
2
|
-
export type {
|
|
3
|
-
Item,
|
|
4
|
-
UpsertTrackingCartItem,
|
|
5
|
-
UpsertTrackingCartRequest,
|
|
6
|
-
BannerItem,
|
|
7
|
-
} from './item.interfaces';
|
|
8
|
-
|
|
9
|
-
export type { Purchase } from './actions/purchase.interfaces';
|
|
10
|
-
export type { AddToCart } from './actions/add-to-cart.interfaces';
|
|
11
|
-
export type { RemoveFromCart } from './actions/remove-from-cart.interfaces';
|
|
12
|
-
export type { Login } from './actions/login.interfaces';
|
|
13
|
-
export type { Signup } from './actions/signup.interfaces';
|
|
14
|
-
export type { CustomerProfile } from './actions/customer-profile.interfaces';
|
|
15
|
-
export type { BeginCheckout } from './actions/begin-checkout.interfaces';
|
|
16
|
-
export type { AddShippingInfo } from './actions/add-shipping-info.interfaces';
|
|
17
|
-
export type { AddPaymentInfo } from './actions/add-payment-info.interfaces';
|
|
18
|
-
export type { ShippingCalculation } from './actions/shipping-calculation.interfaces';
|
|
19
|
-
export type { Search } from './actions/search.interfaces';
|
|
20
|
-
export type {
|
|
21
|
-
CustomerLead,
|
|
22
|
-
GenerateLead,
|
|
23
|
-
} from './actions/generate-lead.interfaces';
|
|
24
|
-
export type { FileDownload } from './actions/file-download.interfaces';
|
|
25
|
-
export type { Share } from './actions/share.interfaces';
|
|
26
|
-
export type { SelectPromotion } from './actions/select-promotion.interfaces';
|
|
27
|
-
export type { SelectItem } from './actions/select-item.interfaces';
|
|
28
|
-
|
|
29
|
-
export type { ViewCart } from './views/view-cart.interfaces';
|
|
30
|
-
export type { ViewPayment } from './views/view-payment.interfaces';
|
|
31
|
-
export type { ViewShipping } from './views/view-shipping.interfaces';
|
|
32
|
-
export type { ViewHome } from './views/view-home.interfaces';
|
|
33
|
-
export type { ViewItemList } from './views/view-item-list.interfaces';
|
|
34
|
-
export type { ViewItem } from './views/view-item.interfaces';
|
|
35
|
-
export type { ViewOther } from './views/view-other.interfaces';
|
|
36
|
-
export type { ViewNotFound } from './views/view-not-found.interfaces';
|
|
37
|
-
export type { ViewPromotion } from './views/view-promotion.interfaces';
|
|
1
|
+
export type { Event } from './event.types';
|
|
2
|
+
export type {
|
|
3
|
+
Item,
|
|
4
|
+
UpsertTrackingCartItem,
|
|
5
|
+
UpsertTrackingCartRequest,
|
|
6
|
+
BannerItem,
|
|
7
|
+
} from './item.interfaces';
|
|
8
|
+
|
|
9
|
+
export type { Purchase } from './actions/purchase.interfaces';
|
|
10
|
+
export type { AddToCart } from './actions/add-to-cart.interfaces';
|
|
11
|
+
export type { RemoveFromCart } from './actions/remove-from-cart.interfaces';
|
|
12
|
+
export type { Login } from './actions/login.interfaces';
|
|
13
|
+
export type { Signup } from './actions/signup.interfaces';
|
|
14
|
+
export type { CustomerProfile } from './actions/customer-profile.interfaces';
|
|
15
|
+
export type { BeginCheckout } from './actions/begin-checkout.interfaces';
|
|
16
|
+
export type { AddShippingInfo } from './actions/add-shipping-info.interfaces';
|
|
17
|
+
export type { AddPaymentInfo } from './actions/add-payment-info.interfaces';
|
|
18
|
+
export type { ShippingCalculation } from './actions/shipping-calculation.interfaces';
|
|
19
|
+
export type { Search } from './actions/search.interfaces';
|
|
20
|
+
export type {
|
|
21
|
+
CustomerLead,
|
|
22
|
+
GenerateLead,
|
|
23
|
+
} from './actions/generate-lead.interfaces';
|
|
24
|
+
export type { FileDownload } from './actions/file-download.interfaces';
|
|
25
|
+
export type { Share } from './actions/share.interfaces';
|
|
26
|
+
export type { SelectPromotion } from './actions/select-promotion.interfaces';
|
|
27
|
+
export type { SelectItem } from './actions/select-item.interfaces';
|
|
28
|
+
|
|
29
|
+
export type { ViewCart } from './views/view-cart.interfaces';
|
|
30
|
+
export type { ViewPayment } from './views/view-payment.interfaces';
|
|
31
|
+
export type { ViewShipping } from './views/view-shipping.interfaces';
|
|
32
|
+
export type { ViewHome } from './views/view-home.interfaces';
|
|
33
|
+
export type { ViewItemList } from './views/view-item-list.interfaces';
|
|
34
|
+
export type { ViewItem } from './views/view-item.interfaces';
|
|
35
|
+
export type { ViewOther } from './views/view-other.interfaces';
|
|
36
|
+
export type { ViewNotFound } from './views/view-not-found.interfaces';
|
|
37
|
+
export type { ViewPromotion } from './views/view-promotion.interfaces';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import type { UpsertCartItem } from '../../Api/types';
|
|
2
|
-
|
|
3
|
-
export interface Item {
|
|
4
|
-
coupon?: string;
|
|
5
|
-
item_id: number;
|
|
6
|
-
item_name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
quantity?: number;
|
|
9
|
-
item_brand: string;
|
|
10
|
-
item_category: string;
|
|
11
|
-
item_variant: string;
|
|
12
|
-
index?: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface UpsertTrackingCartItem
|
|
16
|
-
extends Omit<UpsertCartItem, 'quantity'> {
|
|
17
|
-
oldQuantity?: number;
|
|
18
|
-
quantity?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface UpsertTrackingCartRequest {
|
|
21
|
-
items: Array<UpsertTrackingCartItem>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface BannerItem {
|
|
25
|
-
promotion_id: number;
|
|
26
|
-
promotion_name: 'Banners';
|
|
27
|
-
creative_name: string;
|
|
28
|
-
creative_slot: number;
|
|
29
|
-
index: number;
|
|
30
|
-
}
|
|
1
|
+
import type { UpsertCartItem } from '../../Api/types';
|
|
2
|
+
|
|
3
|
+
export interface Item {
|
|
4
|
+
coupon?: string;
|
|
5
|
+
item_id: number;
|
|
6
|
+
item_name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
quantity?: number;
|
|
9
|
+
item_brand: string;
|
|
10
|
+
item_category: string;
|
|
11
|
+
item_variant: string;
|
|
12
|
+
index?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface UpsertTrackingCartItem
|
|
16
|
+
extends Omit<UpsertCartItem, 'quantity'> {
|
|
17
|
+
oldQuantity?: number;
|
|
18
|
+
quantity?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface UpsertTrackingCartRequest {
|
|
21
|
+
items: Array<UpsertTrackingCartItem>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface BannerItem {
|
|
25
|
+
promotion_id: number;
|
|
26
|
+
promotion_name: 'Banners';
|
|
27
|
+
creative_name: string;
|
|
28
|
+
creative_slot: number;
|
|
29
|
+
index: number;
|
|
30
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Item } from '..';
|
|
2
|
-
|
|
3
|
-
export interface ViewCart {
|
|
4
|
-
event: 'view_cart';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
currency: 'BRL';
|
|
7
|
-
value: number;
|
|
8
|
-
coupon: string;
|
|
9
|
-
items: Array<Item>;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import type { Item } from '..';
|
|
2
|
+
|
|
3
|
+
export interface ViewCart {
|
|
4
|
+
event: 'view_cart';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
currency: 'BRL';
|
|
7
|
+
value: number;
|
|
8
|
+
coupon: string;
|
|
9
|
+
items: Array<Item>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ViewHome {
|
|
2
|
-
event: 'view_home';
|
|
3
|
-
}
|
|
1
|
+
export interface ViewHome {
|
|
2
|
+
event: 'view_home';
|
|
3
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Item } from '../item.interfaces';
|
|
2
|
-
|
|
3
|
-
export interface ViewItemList {
|
|
4
|
-
event: 'view_item_list';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
item_list_id: string;
|
|
7
|
-
item_list_name: string;
|
|
8
|
-
currency: 'BRL';
|
|
9
|
-
items: Array<Item>;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import type { Item } from '../item.interfaces';
|
|
2
|
+
|
|
3
|
+
export interface ViewItemList {
|
|
4
|
+
event: 'view_item_list';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
item_list_id: string;
|
|
7
|
+
item_list_name: string;
|
|
8
|
+
currency: 'BRL';
|
|
9
|
+
items: Array<Item>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { Item } from '..';
|
|
2
|
-
|
|
3
|
-
export interface ViewItem {
|
|
4
|
-
event: 'view_item';
|
|
5
|
-
google_tag_params: {
|
|
6
|
-
ecomm_prodid: number;
|
|
7
|
-
ecomm_pagetype: 'product';
|
|
8
|
-
ecomm_totalvalue: number;
|
|
9
|
-
ecomm_category: string;
|
|
10
|
-
};
|
|
11
|
-
ecommerce: {
|
|
12
|
-
currency: 'BRL';
|
|
13
|
-
items: Array<Item>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
1
|
+
import type { Item } from '..';
|
|
2
|
+
|
|
3
|
+
export interface ViewItem {
|
|
4
|
+
event: 'view_item';
|
|
5
|
+
google_tag_params: {
|
|
6
|
+
ecomm_prodid: number;
|
|
7
|
+
ecomm_pagetype: 'product';
|
|
8
|
+
ecomm_totalvalue: number;
|
|
9
|
+
ecomm_category: string;
|
|
10
|
+
};
|
|
11
|
+
ecommerce: {
|
|
12
|
+
currency: 'BRL';
|
|
13
|
+
items: Array<Item>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ViewNotFound {
|
|
2
|
-
event: 'view_not_found';
|
|
3
|
-
}
|
|
1
|
+
export interface ViewNotFound {
|
|
2
|
+
event: 'view_not_found';
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ViewOther {
|
|
2
|
-
event: 'view_other';
|
|
3
|
-
}
|
|
1
|
+
export interface ViewOther {
|
|
2
|
+
event: 'view_other';
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ViewPayment {
|
|
2
|
-
event: 'view_payment';
|
|
3
|
-
}
|
|
1
|
+
export interface ViewPayment {
|
|
2
|
+
event: 'view_payment';
|
|
3
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BannerItem } from '..';
|
|
2
|
-
|
|
3
|
-
export interface ViewPromotion {
|
|
4
|
-
event: 'view_promotion';
|
|
5
|
-
ecommerce: {
|
|
6
|
-
items: Array<BannerItem>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
1
|
+
import type { BannerItem } from '..';
|
|
2
|
+
|
|
3
|
+
export interface ViewPromotion {
|
|
4
|
+
event: 'view_promotion';
|
|
5
|
+
ecommerce: {
|
|
6
|
+
items: Array<BannerItem>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ViewShipping {
|
|
2
|
-
event: 'view_shipping';
|
|
3
|
-
}
|
|
1
|
+
export interface ViewShipping {
|
|
2
|
+
event: 'view_shipping';
|
|
3
|
+
}
|