@uappi/public-sdk 1.1.0 → 1.1.2

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.
Files changed (28) hide show
  1. package/components/SocialAuth/index.ts +2 -0
  2. package/components/index.ts +3 -0
  3. package/main.ts +2 -16
  4. package/modules/Tracking/events/actions/addPaymentInfo.ts +1 -1
  5. package/modules/Tracking/events/actions/addShippingInfo.ts +1 -1
  6. package/modules/Tracking/events/actions/addToCart.ts +1 -1
  7. package/modules/Tracking/events/actions/beginCheckout.ts +1 -1
  8. package/modules/Tracking/events/actions/customerProfile.ts +1 -1
  9. package/modules/Tracking/events/actions/purchase.ts +1 -1
  10. package/modules/Tracking/events/actions/removeFromCart.ts +1 -1
  11. package/modules/Tracking/events/actions/selectItem.ts +1 -1
  12. package/modules/Tracking/events/actions/selectPromotion.ts +1 -1
  13. package/modules/Tracking/events/actions/upsertToCart.ts +1 -1
  14. package/modules/Tracking/events/views/viewCart.ts +1 -1
  15. package/modules/Tracking/events/views/viewItem.ts +1 -1
  16. package/modules/Tracking/events/views/viewItemList.ts +1 -1
  17. package/modules/Tracking/events/views/viewPromotion.ts +1 -1
  18. package/modules/Tracking/types/actions/customer-profile.interfaces.ts +1 -1
  19. package/modules/index.ts +2 -0
  20. package/package.json +1 -1
  21. /package/{modules → components}/SocialAuth/FacebookAuth/FacebookAuth.vue +0 -0
  22. /package/{modules → components}/SocialAuth/FacebookAuth/img/facebook-icon.svg +0 -0
  23. /package/{modules → components}/SocialAuth/FacebookAuth/styles.scoped.css +0 -0
  24. /package/{modules → components}/SocialAuth/FacebookAuth/types.ts +0 -0
  25. /package/{modules → components}/SocialAuth/GoogleAuth/GoogleAuth.vue +0 -0
  26. /package/{modules → components}/SocialAuth/GoogleAuth/img/google-icon.svg +0 -0
  27. /package/{modules → components}/SocialAuth/GoogleAuth/styles.scoped.css +0 -0
  28. /package/{modules → components}/SocialAuth/GoogleAuth/types.ts +0 -0
@@ -0,0 +1,2 @@
1
+ export { default as FacebookAuth } from './FacebookAuth/FacebookAuth.vue';
2
+ export { default as GoogleAuth } from './GoogleAuth/GoogleAuth.vue';
@@ -0,0 +1,3 @@
1
+ export * from './Animations';
2
+ export * from './ColorTheme';
3
+ export * from './SocialAuth';
package/main.ts CHANGED
@@ -1,16 +1,2 @@
1
- import Api from './modules/Api';
2
- import Tracking from './modules/Tracking';
3
-
4
- import { ExpandTransition } from './components/Animations';
5
- import { ColorTheme } from './components/ColorTheme';
6
-
7
- const components = {
8
- ExpandTransition,
9
- ColorTheme
10
- }
11
-
12
- export {
13
- Api,
14
- Tracking,
15
- components
16
- };
1
+ export * from './modules';
2
+ export * from './components'
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function addPaymentInfoAction(
7
7
  paymentMethod: string,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function addShippingInfoAction(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
4
  import type { UpsertTrackingCartRequest } from '../../types';
5
- import type { CartResponse } from '../../api/types';
5
+ import type { CartResponse } from '../../../Api/types';
6
6
 
7
7
  export function addToCartAction(
8
8
  upsertPayload: UpsertTrackingCartRequest,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function beginCheckoutAction(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -1,6 +1,6 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
- import type { CustomerResponse } from '../../api/types';
3
+ import type { CustomerResponse } from '../../../Api/types';
4
4
 
5
5
  export function customerProfileAction(payload?: CustomerResponse) {
6
6
  if (!payload) {
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function purchaseAction(
7
7
  paymentMethod: string,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse, DeleteCartRequest } from '../../api/types';
4
+ import type { CartResponse, DeleteCartRequest } from '../../../Api/types';
5
5
 
6
6
  export function removeFromCartAction(
7
7
  deletePayload: DeleteCartRequest,
@@ -6,7 +6,7 @@ import type {
6
6
  Showcase,
7
7
  UrlBrand,
8
8
  UrlListing,
9
- } from '../../api/types';
9
+ } from '../../../Api/types';
10
10
 
11
11
  export function selectItemAction(
12
12
  page: UrlBrand | UrlListing | Showcase | Search,
@@ -1,7 +1,7 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
3
  import type { BannerItem } from '../../types';
4
- import type { Banner } from '../../api/types';
4
+ import type { Banner } from '../../../Api/types';
5
5
 
6
6
  export function selectPromotionAction<AdditionalParameters>(
7
7
  banner: Banner<AdditionalParameters>,
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
4
  import type { UpsertTrackingCartRequest } from '../../types';
5
- import type { CartResponse } from '../../api/types';
5
+ import type { CartResponse } from '../../../Api/types';
6
6
 
7
7
  export function upsertToCartAction(
8
8
  upsertPayload: UpsertTrackingCartRequest,
@@ -1,7 +1,7 @@
1
1
  import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { CartResponse } from '../../api/types';
4
+ import type { CartResponse } from '../../../Api/types';
5
5
 
6
6
  export function viewCart(cartPayload: CartResponse) {
7
7
  pushDatalayer({
@@ -1,7 +1,7 @@
1
1
  import { getVariant } from '../../utils/cart';
2
2
  import { pushDatalayer } from '../../utils/pushDatalayer';
3
3
 
4
- import type { Product } from '../../api/types';
4
+ import type { Product } from '../../../Api/types';
5
5
 
6
6
  export function viewItem(product: Product) {
7
7
  pushDatalayer({
@@ -6,7 +6,7 @@ import type {
6
6
  UrlBrand,
7
7
  UrlListing,
8
8
  Search,
9
- } from '../../api/types';
9
+ } from '../../../Api/types';
10
10
 
11
11
  export function viewItemList(page: UrlBrand | UrlListing | Search): void;
12
12
  export function viewItemList(page: Array<Showcase>): void;
@@ -1,7 +1,7 @@
1
1
  import { pushDatalayer } from '../../utils/pushDatalayer';
2
2
 
3
3
  import type { ViewPromotion } from '../../types';
4
- import type { Banners } from '../../api/types';
4
+ import type { Banners } from '../../../Api/types';
5
5
 
6
6
  export function viewPromotion<AdditionalParameters>(
7
7
  bannerGroups: Array<Banners<AdditionalParameters>>,
@@ -2,7 +2,7 @@ import type {
2
2
  CustomerAddressResponse,
3
3
  CustomerGender,
4
4
  CustomerResponse,
5
- } from '../../api/types';
5
+ } from '../../../Api/types';
6
6
 
7
7
  export interface CustomerProfile {
8
8
  event: 'customer_profile';
@@ -0,0 +1,2 @@
1
+ export { default as Api } from './Api';
2
+ export { default as Tracking } from './Tracking';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {